Update
[gdb.git] / gdb / ChangeLog
blob1eecd4bdc8ec9a62300955639a230340ea800e9e
1 2008-01-30  Vladimir Prus  <vladimir@codesourcery.com>
3         Use vector for varobj_list_children interface.
4         * gdb/varobj.c (varobj_list_children): Return vector
5         of varobjs.
6         * gdb/varobj.h (varobj_list_children): Adjust
7         prototype.
8         (varobj_p): Declare.  Declare vector thereof.
9         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10         for varobj_list_children change.
11         * Makefile.in (varobj_h): Update dependencies.
13 2008-01-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
15         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
16         TYPE_CODE_DECFLOAT arguments.
17         (ppc64_sysv_abi_push_dummy_call) Likewise.
18         (get_decimal_float_return_value): New function.
19         (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
20         values by calling get_decimal_float_return_value.
21         (ppc64_sysv_abi_return_value): Likewise.
23 2008-01-30  Nick Roberts  <nickrob@snap.net.nz>
25         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):  Add field
26         for preprocessor macro information.  Formatting changes.
28 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
30         * remote.c (struct remote_state): Add cached_wait_status.
31         (remote_exec_file): New variable.
32         (PACKET_vAttach, PACKET_vRun): New constants.
33         (extended_remote_restart): Do not query for status.
34         (struct start_remote_args): New.
35         (remote_start_remote): Take it as a second argument.  Check
36         whether the target is running.  Issue an error for non-running
37         non-extended targets.  Cache the wait status.  Set inferior_ptid
38         here.
39         (remote_open_1): Prompt to disconnect non-running targets.  Make
40         sure the target is marked running.  Do not set inferior_ptid here.
41         Update call to remote_start_remote.  Do not call remote_check_symbols
42         if the target is not running.
43         (remote_detach_1): Rename from remote_detach.  Take an EXTENDED
44         argument.  Handle a non-running target.
45         (remote_detach): Use it.
46         (extended_remote_detach): New.
47         (remote_disconnect): Fix typo.  Use remoute_mourn_1.
48         (extended_remote_attach_1, extended_remote_attach)
49         (extended_async_remote_attach): New.
50         (remote_vcont_resume): Remove unused variable.
51         (remote_wait, remote_async_wait): Use any cached wait status.
52         (putpkt_binary, getpkt): Clear any cached wait status.
53         (extended_remoute_mourn_1): New.
54         (extended_remote_mourn): Use it.
55         (extended_async_remote_mourn, extended_remote_run): New.
56         (extended_remote_create_inferior_1): New.
57         (extended_remote_create_inferior): Use it.
58         (extended_remote_async_create_inferior): Likewise.
59         (remote_xfer_partial): Skip for non-executing targets.
60         (init_extended_remote_ops): Set to_detach and to_attach.
61         (init_extended_async_remote_ops): Likewise.  Use
62         extended_async_remote_mourn.
63         (_initialize_remote): Register vAttach, vRun, and
64         set remote exec-file.
65         * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
67 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
69         * Makefile.in (symfile.o): Update.
70         * NEWS: Mention exec tracing support.
71         * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
72         exec events.
73         * infcmd.c (kill_if_already_running, detach_command)
74         (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
75         * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
76         (follow_exec): Do not check may_follow_exec.  Do not mourn and push
77         targets.  Apply the sysroot path to the loaded executable.  Use
78         no_shared_libraries.
79         * linux-nat.c (linux_child_follow_fork): Print fork following
80         messages if verbose.
81         (kill_wait_callback): Kill again before waiting a second time.
82         * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
83         no_shared_libraries.
85 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
87         * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
89 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
91         * nto-tdep.h: Remove #include "defs.h".
92         * nto-tdep.c: Add #include "defs.h".
93         * Makefile.in (nto_tdep_h): Update dependencies.
94         (nto-tdep.o): Likewise.
96 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
98         * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
99         and use it.
100         (proceed, start_remote): Update call to wait_for_inferior.
101         * inferior.h (wait_for_inferior): Update declaration.
102         * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
103         solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
104         * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
105         TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
107 2008-01-29  Aleksandar Ristovski  <aristovski@qnx.com>
109         * varobj (adjust_value_for_child_access): Added checking for 
110         returned value from gdb_value_ind.
111         (c_describe_child): Likewise.
112         (cplus_describe_child): Fixed a typo.
114 2008-01-29  Jim Blandy  <jimb@red-bean.com>
116         * MAINTAINERS: Update my info.
118 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
120         Use multiple locations for hardware watchpoints.
121         This eliminates the need to traverse value chain, doing
122         various checks, in three different places.
124         * breakpoint.h (struct bp_location): New fields
125         lengths and watchpoint_type.
126         (struct breakpoint): Remove the val_chain field.
127         * breakpoint.c (is_hardware_watchpoint): New.
128         (free_valchain): Remove.
129         (update_watchpoint): New.
130         (insert_bp_location): For hardware watchpoint, just
131         directly insert it.
132         (insert_breakpoints): Call update_watchpoint_locations
133         on all watchpoints.  If we have failed to insert
134         any location of a hardware watchpoint, remove all inserted
135         locations.
136         (remove_breakpoint): For hardware watchpoints, directly
137         remove location.
138         (watchpoints_triggered): Iterate over locations.
139         (bpstat_stop_status): Use only first location of
140         a resource watchpoint.
141         (delete_breakpoint): Don't call free_valchain.
142         (print_one_breakpoint): Don't print all
143         locations for watchpoints.
144         (breakpoint_re_set_one): Use update_watchpoint for
145         watchpoints.
147 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
149         Don't reset watchpoint block on solib load.
151         * breakpoint.c (insert_bp_location): For watchpoints,
152         recompute condition.
153         (breakpoint_re_set_one): Instead of recomputing value
154         and condition for watchpoints, just reset value and
155         let insert_breakpoints/insert_bp_location recompute it.
156         Don't do anything about disabled watchpoint.
158 2008-01-29  Pierre Muller  <muller@ics.u-strasbg.fr>
160         * valarith.c (value_binop): Handle unsigned integer
161         division by zero.
163 2008-01-28  Kevin Buettner  <kevinb@redhat.com>
165         * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
166         instruction pattern that appears frequently in position
167         independent code.  Fix bug in code which looks for "fmov" and
168         backtracks if no "fmov" is found.
170 2008-01-28  Doug Evans  <dje@google.com>
172         * dbxread.c (read_dbx_symtab): Fix indentation.
173         Reformat comments to 80 columns.
174         Move local var def closer to only use.
176 2008-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
178         * fork-child.c (SHELL_FILE): Remove #ifndef.
179         (fork_inferior): Remove SHELL_COMMAND_CONCAT.
181 2008-01-25  Pierre Muller  <muller@ics.u-strasbg.fr>
183         * i386-tdep.c (i386_skip_noop): New function.
184         (i386_analyze_prologue): Call i386_skip_noop function.
186 2008-01-24  Michael Snyder  <msnyder@specifix.com>
188         * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
189         * win32-nat.c (win32_xfer_partial): Ditto.
190         * target.c (default_xfer_partial): Minor whitespace adjustment.
192 2008-01-24  Pedro Alves  <pedro@codesourcery.com>
194         * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
195         strip bit 1 even if pc doesn't point to thumb code.
197 2008-01-23  Daniel Jacobowitz  <dan@codesourcery.com>
199         * remote.c (remote_wait): Handle SIGINT between packets.
200         (remote_async_wait): Likewise.
202 2008-01-23  Vladimir Prus  <vladimir@codesourcery.com>
203             Chris Demetriou  <cgd@google.com>
205         * thread.c (add_thread_silent): Renamed
206         from add_thread.
207         (print_thread_events): New variable definition.
208         (show_print_thread_events): New function.
209         (_initialize_thread): Add "set print thread-events" and
210         "show print thread-events" commands.
211         (add_thread): Announce new thread.
212         * gdbthread.h (add_thread_silent): Declare.
213         (print_thread_events): New variable declaration.
214         * inf-ttrace.c (inf_ttrace_wait): Don't
215         inform about new thread, as add_thread is always
216         called too, and will take care of that.
217         * infrun.c (handle_inferior_event): Likewise.
218         * procfs.c (procfs_wait): Likewise.
219         * remote.c (remote_currthread): Likewise.
220         * sol-thread.c (sol_thread_wait): Likewise.
221         * win32-nat.c (get_win32_debug_event): Likewise.
222         * linux-thread-db.c (attach_thread): Likewise.
223         Remove the verbose parameter.
224         (check_event): Make detach_thread be verbose
225         only if print_thread_events is set.
226         * linux-nat.c (lin_lwp_attach_lwp): Don't inform
227         about new thread.  This is called only from
228         linux-thread-db.c:attach_thread, which will take care.
229         Remove the verbose parameter.
230         * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
232 2008-01-23  Nick Roberts  <nickrob@snap.net.nz>
234         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
236 2008-01-22  Vladimir Prus  <vladimir@codesourcery.com>
238         * breakpoint.c (break_command_really): New parameter
239         ignore_count.
240         (break_command_1): Pass 0 as
241         ignore_count to break_command_really.
242         (gdb_breakpoint): Pass ignore_count to
243         break_command_really.
245 2008-01-21  Kevin Buettner  <kevinb@redhat.com>
247         * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
248         sigcontext struct via pointer.
249         (struct sigframe comment): Update to show new field `psc'.
251 2008-01-21  Vladimir Prus  <vladimir@codesourcery.com>
253         * infrun.c (handle_inferior_event): If
254         we failed to remove breakpoints, error,
255         don't try to increment PC by hand.
257 2008-01-18  Nick Hudson  <nick.hudson@dsl.pipex.com>
259         Add NetBSD/hppa target and host support.
261         * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
262         (hppabsd_gregset): Move to ...
263         (hppabsd_regset_from_core_section): Rename
264         hppaobsd_regset_from_core_section and move to ...
265         (hppabsd_find_global_pointer): Update comment.
266         (hppabsd_init_abi): Make global. Do not register
267         hppabsd_regset_from_core_section.
268         (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
269         move to ...
270         (_initialize_hppabsd_tdep): Move to ...
271         * hppaobsd-tdep.c: ... here. New file.
272         * hppnbsd-tdep.c: New file.
273         * hppnbsd-nat.c: New file.
274         * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
275         (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
276         (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
277         (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
278         * configure.host (hppa*-*-netbsd*): New entry.
279         * configure.tgt (hppa*-*-netbsd*): New entry.
280         (hppa*-*-openbsd*): Update.
281         * NEWS (New native configuration): Mention NetBSD/hppa.
282         (New targets): Mention NetBSD/hppa.
284 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
286         * gdbarch.sh (function_list): Add new property bits_big_endian to
287         gdbarch structure.
288         * gdbarch.{c,h}: Regenerate.
290         * value.c (struct value): Replace BITS_BIG_ENDIAN by
291         gdbarch_bits_big_endian (comment).
292         (unpack_field_as_long, modify_field): Likewise.
293         * value.h: Likewise (comment).
294         * valops.c (value_slice): Likewise.
295         * valarith.c (value_subscript, value_bit_index): Likewise.
296         * gdbtypes.h (field): Likewise (comment).
297         * eval.c (evaluate_subexp_standard): Likewise.
298         * dwarf2read.c (dwarf2_add_field): Likewise.
299         * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
300         (move_bits, ada_value_assign, value_assign_to_component): Likewise.
301         
302         * defs.h (BITS_BIG_ENDIAN): Remove.
304 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
306         * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
307         function calls.
308         * m2-exp.y (yylex): Likewise.
309         * objc-exp.y (yylex): Likewise.
311         * defs.h (DEPRECATED_STREQN): Remove.
313 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
315         * MAINTAINERS: Update my email address.
317 2008-01-17  Jim Blandy  <jimb@codesourcery.com>
319         * README: Mention gdbserver/README.
321 2008-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
323         * valarith.c (value_binop): Handle BINOP_INTDIV
324         for unsigned and signed integers.
326 2008-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
328         * s390-tdep.c (s390_gdbarch_init): Set default long double
329         type to 128-bit IEEE quad.
331 2008-01-17  Joel Brobecker  <brobecker@adacore.com>
333         * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
335 2008-01-16  Mark Kettenis  <kettenis@gnu.org>
337         * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
339         * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
340         * value.c: All callers changed.
342 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
344         * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
345         DEPRECATED_STREQ by its expression.
346         * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
347         * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
348         (scan_xcoff_symtab): Likewise.
349         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
350         * f-lang.c (find_common_for_function): Likewise.
351         * objc-exp.y (parse_number): Likewise.
353         * defs.h (DEPRECATED_STREQ): Remove.
355 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
357         * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
358         * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
359         get_frame_arch to get at the current_architecture. Update AM33_MODE
360         call.
361         (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
362         (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
363         architecture.
364         (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
366 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
368         * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as 
369         parameter.
370         * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
372         (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
373         current_gdbarch by gdbarch. Update caller.
375         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
376         (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
377         the current architecture. Update calls of
378         amd64_native_gregset_supplies_p.
379         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
380         (amd64bsd_store_inferior_registers): Likewise.
382 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
384         * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
385         Replace current_gdbarch by gdbarch. Update caller.
387 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
389         * dbxread.c (repeated_header_complaint, dbx_symfile_init)
390         (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
391         (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
392         (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
393         (stabsect_build_psymtabs): Fix indentation.
395 2008-01-15  Michael Snyder  <msnyder@specifix.com>
397         * corelow.c (core_xfer_partial): Comment, cut/paste error.
399 2008-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
401         * win32-nat.c (win32_create_inferior): Restore code calling
402         CloseHandle on ProcessInformation structure.
404 2008-01-13  Nick Hudson  <nick.hudson@dsl.pipex.com>
406         * configure.ac: Check for void * as 3 argument of ptrace.
407         * configure: regenerate.
409 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
411         * alpha-tdep.c (alpha_heuristic_proc_start)
412         (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
413         current_gdbarch by gdbarch.
415         (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
416         current architecture by frame_info. Update alpha_heuristic_proc_start 
417         call.
419         (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
420         get_frame_arch to get at the current architecture by frame_info. Update
421         alpha_sigtramp_register_address call.
423         * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
424         current_gdbarch by gdbarch. Update caller.
425         (convert_to_extended, convert_from_extended): Add endianess parameter
426         for comparison. Update caller.
427         (arm_extract_return_value, arm_store_return_value): Use
428         get_regcache_arch to get at the current architecture.
430         * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
431         current_gdbarch by gdbarch. Update caller.
432         (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
433         gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
435         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
436         gdbarch as parameter. Update caller.    
437         (h8300_init_frame_cache): Add gdbarch as parameter. Replace
438         current_gdbarch by gdbarch. Update caller.
440         * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and 
441         update caller. Replace current_gdbarch by gdbarch.
443         * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
444         the current architecture. Replace current_gdbarch by gdbarch.
445         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
446         (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
447         expression. Add gdbarch as parameter and replace current_gdbarch with
448         it. Update caller.
449         (M6811_TDEP): Remove.
450         (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
451         architecture.
452         (m68hc11_scan_prologue): Add gdbarch as parameter. Replace 
453         current_gdbarch by gdbarch. Update caller.
455         * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
456         update caller.
457         (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
458         by gdbarch.
460         * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
461         caller. Relace current_gdbarch by gdbarch.
462         (altivec_register_p, spe_register_p): Likewise.
463         * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
464         parameter.
465         * ppc-linux-nat.c (fetch_register, store_register): Update caller of
466         altivec_register_p and spe_register_p.
468         * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update 
469         caller. Replace current_gdbarch by gdbarch.
470         (score_analyze_prologue): use get_frame_arch to get at the current
471         architecture.   
473         * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
474         * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
475         current_gdbarch by gdbarch. Update caller.
476         (sparc_frame_cache): Use get_frame_arch to get at the current
477         architecture.
478         * sparce64-tdep.c (sparc64_skip_prologue): Update call of
479         sparc_analyze_prologue.
481         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
482         parameter.
484 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
486         * exec.c: #include "arch-utils.h"
487          (print_section_info): Use gdbarch_from_bfd to get at the
488         current architecture. Replace current_gdbarch. Fix indention. Replace
489         deprecated_print_address_numeric by paddress.
490         * Makefile.in (exec.o) Add dependency to arch-utils.h.
492         * valprint.c (val_print_string): Replace 
493         deprecated_print_address_numeric.
494         * tracepoint.c (trace_mention, scope_info): Likewise.
495         * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
496         (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
497         (maintenance_check_symtabs): Likewise.
498         * symfile.c (list_overlays_command): Likewise.
499         * stack.c (frame_info, print_block_frame_labels): Likewise.
500         * printcmd.c (print_address, print_address_demangle)
501         (address_info): Likewise.
502         * corefile.c (memory_error): Likewise.
503         * infcmd.c (jump_command): Likewise.
504         * breakpoint.c (insert_bp_location, describe_other_breakpoints)
505         (mention, delete_breakpoint): Likewise.
506         * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
507         * dwarf2read.c (dump_die): Likewise.
508         * ada-valprint.c (ada_val_print_1): Likewise.
509         * f-valprint.c (f_val_print): Likewise.
510         * linux-fork.c (info_forks_command): Likewise.  
511         * m32r-com.c (m32r_load_section, m32r_load)
512         (m32r_upload_command): Likewise.
514         * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
516 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
518         * gdbarch.sh (skip_prologue): Add gdbarch
519         as parameter.
520         * gdbarch.{c,h}: Regenerate.
522         * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
523         * amd64-tdep.c (amd64_skip_prologue): Likewise.
524         * avr-tdep.c (avr_skip_prologue): Likewise.
525         * cris-tdep.c (cris_skip_prologue): Likewise.
526         * frv-tdep.c (frv_skip_prologue): Likewise.
527         * h8300-tdep.c (h8300_skip_prologue): Likewise.
528         * hppa-tdep.c (hppa_skip_prologue): Likewise.
529         * i386-tdep.c (i386_skip_prologue): Likewise.
530         * ia64-tdep.c (ia64_skip_prologue): Likewise.
531         * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
532         * m32r-tdep.c (m32r_skip_prologue): Likewise.
533         * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
534         * m68k-tdep.c (m68k_skip_prologue): Likewise.
535         * m88k-tdep.c (m88k_skip_prologue): Likewise.
536         * mep-tdep.c (mep_skip_prologue): Likewise.
537         * mips-tdep.c (mips_skip_prologue): Likewise.
538         * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
539         * mt-tdep.c (mt_skip_prologue): Likewise.
540         * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
541         * score-tdep.c (score_skip_prologue): Likewise.
542         * sh64-tdep.c (sh64_skip_prologue): Likewise.
543         * sh-tdep.c (sh_skip_prologue): Likewise.
544         * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
545         * sparc-tdep.c (sparc32_skip_prologue): Likewise.
546         * spu-tdep.c (spu_skip_prologue): Likewise.
547         * v850-tdep.c (v850_skip_prologue): Likewise.
548         * vax-tdep.c (vax_skip_prologue): Likewise.
549         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
550         * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
552         * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
553         current_gdbarch by gdbarch.
554         * m32c-tdep.c (m32c_skip_prologue): Likewise.
555         * s390-tdep.c (s390_skip_prologue): Likewise.
557 2008-01-10  Doug Evans  <dje@google.com>
559         * defs.h (struct continuation_arg): Fix typo in comment.
560         * target.c (target_translate_tls_address): Fix comment spelling error.
562 2008-01-09  Thiago Jung Bauermann  <bauerman@br.ibm.com>
564         * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
565         (DOUBLEST_SCAN_FORMAT): Likewise.
566         * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
567         * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
568         * c-exp.y (parse_number): Likewise.
569         * jv-exp.y (parse_number): Likewise.
570         * objc-exp.y (parse_number): Likewise.
571         * p-exp.y (parse_number): Likewise.
573 2008-01-09  Joel Brobecker  <brobecker@adacore.com>
575         * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
576         (check_typedef): Likewise.
578 2008-01-09  Luis Machado  <luisgpm@br.ibm.com>
580         * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
581         seen_double_big_d, treat the new H, D, and DD modifiers as length
582         modifiers.
584 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
586         * dwarf2read.c (read_enumeration_type): Add comment.
588 2008-01-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
590         * config.in: Regenerate.
592 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
594         * ada-lang.c (ada_convert_actual): Renames convert_actual.
595         Make non-static.
596         (ada_convert_actuals): Delete.
597         * ada-lang.h (ada_convert_actual): Add declaration.
598         (ada_convert_actuals): Remove declaration.
599         * infcall.c: #include "ada-lang.h".
600         (value_arg_coerce): Add new parameter sp.  Update function
601         documetnation.  Add handling of Ada function call parameters.
602         * Makefile.in (infcall.o): Update dependencies.
604 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
606         * ada-lang.c (ensure_lval): Fix value lval kind.
607         (convert_actual): Add handling for arguments passed by reference.
609 2008-01-08  Doug Evans  <dje@google.com>
611         * dbxread.c (read_dbx_symtab): Fix indentation.
613 2008-01-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
615         * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
616         (valarith.o): Depend on dfp.h.
617         (valops.o): Likewise.
618         * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
619         (set_decnumber_context): New function.
620         (decimal_check_errors): Likewise.
621         (decimal_from_number): Likewise.
622         (decimal_to_number): Likewise.
623         (decimal_from_string): Use set_decnumber_context and
624         decimal_check_errors.
625         (decimal_from_integral): New function.
626         (decimal_from_floating): Likewise.
627         (decimal_to_double): Likewise.
628         (promote_decimal): Likewise.
629         (decimal_binop): Likewise.
630         (decimal_is_zero): Likewise.
631         (decimal_compare): Likewise.
632         (decimal_convert): Likewise.
633         * dfp.h (decimal_from_integral): New prototype.
634         (decimal_from_floating): Likewise.
635         (decimal_to_double): Likewise.
636         (decimal_binop): Likewise.
637         (decimal_is_zero): Likewise.
638         (decimal_compare): Likewise.
639         (decimal_convert): Likewise.
640         * eval.c (evaluate_subexp_standard): Remove expect_type argument from
641         call to value_from_decfloat.
642         * valarith.c: Include dfp.h.
643         (value_args_as_decimal): New function.
644         (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
645         (value_logical_not): Likewise.
646         (value_equal): Likewise.
647         (value_less): Likewise.
648         (value_pos): Likewise.
649         (value_neg): Formatting fix.
650         * valops.c: Include dfp.h.
651         (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
652         * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
653         (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
654         (value_from_decfloat): Remove expect_type argument.
655         * value.h (value_from_decfloat): Update prototype.
657 2008-01-07  Vladimir Prus  <vladimir@codesourcery.com>
659         Ignore change in name of dynamic linker during
660         execution on Solaris.  This also unbreaks pending breakpoints.
662         * solist.h (struct target_so_ops): New field same.
663         * solib-svr4.c (svr4_same): New.
664         (_initialize_svr4_solib): Register svr4_same.
665         * solib.c (update_solib_list): Use ops->same, if available.
667 2008-01-06  Christopher Faylor  <me+cygwin@cgf.cx>
669         * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
670         when using MS-DOS paths.
672 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
674         * NEWS: Mention --pid and --core command line behaviour changes.
676 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
678         * main.c (captured_main): Remove 'count' varible and the
679         ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
680         --pid options were issued simultaneously.  If an explicit pid
681         option was passed, don't fallback to core file.  Detect extra
682         arguments better in the presence of explicit pid or core
683         arguments.
685 2008-01-05  Joel Brobecker  <brobecker@adacore.com>
687         * ada-lang.c (ada_which_variant_applies): Correctly compute
688         the value of the discriminant when the variant record is packed.
690 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
692         * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
693         that are used to differentiate homonyms.
695 2008-01-04  Jerome Guitton  <guitton@adacore.com>
697         * ada-lang.c (decode_packed_array_type): Avoid a seg fault
698         when the type is an anonymous pointer type.
699         (ada_check_typedef): Avoid a seg fault when the type is null.
700         * ada-typeprint.c (print_array_type): Add support for pointer
701         to packed arrays.
703 2008-01-04  Paul N. Hilfinger  <hilfinger@adacore.com>
705         * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
707 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
709         * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
710         EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
712 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
714         * ada-exp.y (chop_separator): New function.
715         (write_selectors): Rewrite to re-use chop_separator.
716         (ada_nget_field_index, get_symbol_field_type): New functions.
717         (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
718         expressions.
720 2008-01-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
722         * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
723         of SYMBOL_VALUE when working with function symbols.
725 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
727         * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
728         expressions.  These expressions do not need to be rewriten.
730 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
732         * dwarf2read.c (read_enumeration_type): Flag type as stub if
733         the given die is a declaration.
735 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
737         * ada-lang.c (ada_array_bound_from_type): Make non-static.
738         Handle properly the case when the index type is an enumerated type.
739         Do not return the subtype of the bounds type, just return the
740         bounds type directly - this is not needed and is more consistent
741         with what we do for arrays when no XA parallel type exists.
743 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
745         * ada-lang.c (static_unwrap_type): Add forward declaration.
746         (template_to_static_fixed_type): Fields of dynamic types sometimes
747         also need to be unwrapped. Take this into account.
748         (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
749         (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
750         * ada-typeprint.c (ada_print_type): Get the typename from
751         the original type, not the base type. 
753 2008-01-03  Jerome Guitton  <guitton@adacore.com>
755         * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
756         (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value): 
757         Update calls to ada_to_fixed_type.
758         (ada_template_to_fixed_record_type_1): Ditto, but without looking
759         for the tag.
760         (ada_to_fixed_type): Add check_tag parameter; do not look for
761         tag if null.  When looking for a tag, use a fixed record type.
762         * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
763         * ada-valprint.c (printable_val_type, ada_value_print): Update
764         calls to ada_to_fixed_type.
766 2008-01-03  Luis Machado  <luisgpm@br.ibm.com>
768         * doublest.c (convert_floatformat_to_doublest): Call 
769         floatformat_to_doublest instead of floatformat_to_double and use
770         DOUBLEST variables.
771         (convert_doublest_to_floatformat): Call floatformat_from_doublest
772         instead of floatformat_from_double and use DOUBLEST variables.
774 2008-01-03  Nick Hudson  <nick.hudson@dsl.pipex.com>
776         * MAINTAINERS (Write After Approval): Add self.
778 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
780         * symfile.c (set_initial_language): Make non-static.
781         * symfile.h (set_initial_language): Add declaration.
782         * language.c: #include "symfile.h".
783         (set_language): Call set_initial_language if the frame language
784         could not be determined.
786 2008-01-03  Paul N. Hilfinger  <hilfinger@adacore.com>
788         * eval.c (evaluate_subexp_for_address): Provide frame address to
789         locate_var_value only if it will be needed.
791 2008-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
793         * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
795 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
797         * ada-lang.c (ada_evaluate_subexp): Modify the value returned
798         when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
799         This is needed to make sure that any other treatment applied
800         to the resulting value does not fail for spurious reason,
801         such as trying to take the address of this value.
803 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
805         * ada-lang.c (ada_value_equal): Dereference reference types when
806         comparing arrays.
808 2008-01-01  Daniel Jacobowitz  <dan@codesourcery.com>
810         Updated copyright notices for most files.
812 2008-01-01  Christopher Faylor  <me+gdb@cgf.cx>
814         * win32-nat.c (psapi_module_handle): Remove static.
815         (get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to
816         return first module found if base_address is zero.  Don't initialize
817         psapi function pointers here.  Convert to cygwin paths when
818         appropriate.
819         (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
820         executable name.  Use get_module_name when that fails or when
821         !__CYGWIN__.
822         (_initialize_psapi): New function.  Initialize psapi stuff before it is
823         needed or issue a warning if it is not found.  Move psapi_module_handle
824         here.
826 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
828         * ada-lang.c (ada_remove_trailing_digits): New function.
829         (ada_remove_po_subprogram_suffix): New function.
830         (ada_decode): Improve. Move the description of the algorithm
831         directly inside the code, instead of in the function global
832         description.
834 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
836         * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
837         and always print the dereferenced value.
839 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
841         * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
842         of the case where the first argument is a reference.
843         (ada_evaluate_subexp, case BINOP_ADD): Likewise.
845 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
847         Implement support for Ada interface types.
849         * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
850         (ada_is_ignored_field): Ignore fields that are a dispatch table
851         of a tagged type.
853 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
855         * top.c (print_gdb_version): Update copyright year.
857 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
859         * ChangeLog-2007: New ChangeLog rotation.
860         * ChangeLog: Reset for 2008.
861         * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
862         ChangeLog-2007.
864 For older changes see ChangeLog-2007.
866 Local Variables:
867 mode: change-log
868 left-margin: 8
869 fill-column: 74
870 version-control: never
871 coding: utf-8
872 End: