1 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3 * NEWS: Mention Decimal Floating Point support.
5 2008-01-31 Joel Brobecker <brobecker@adacore.com>
7 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
8 value type to builtin_type_void_func_ptr.
10 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
12 * s390-tdep.c (is_float_singleton, is_float_like,
13 alignment_of, s390_return_value): Make checks for
14 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
16 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
17 Thiago Jung Bauermann <bauerman@br.ibm.com>
19 * infcmd.c (default_print_registers_info): Also print hex
20 raw contents for TYPE_CODE_DECFLOAT registers.
21 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
22 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
23 (rs6000_register_name): Add support for DFP pseudo-registers.
24 (rs6000_pseudo_register_type): Likewise.
25 rs6000_pseudo_register_reggroup_p): Likewise.
26 (ppc_pseudo_register_read): New function.
27 (ppc_pseudo_register_write): Likewise.
28 (rs6000_pseudo_register_read): Likewise.
29 (rs6000_pseudo_register_write): Likewise.
30 (e500_pseudo_register_read): Move checks to
31 rs6000_pseudo_register_read.
32 (e500_pseudo_register_write): Move checks to
33 rs6000_pseudo_register_write.
34 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
35 rs6000_pseudo_register_read and rs6000_pseudo_register_write
36 in gdbarch if SPE or DFP is available. Adjust gdbarch's
37 num_pseudo_regs to account for DFP pseudo regs.
39 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
41 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
42 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
43 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
44 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
45 e500_pseudo_register_read, e500_pseudo_register_write): Use
46 IS_SPE_PSEUDOREG macro.
47 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
48 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
49 Remove initialization of tdep->ppc_ev31_regnum.
51 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
53 * printcmd.c (print_formatted): Handle references as for unformatted
56 2008-01-30 Joel Brobecker <brobecker@adacore.com>
58 * eval.c (evaluate_subexp_standard): Add handling of user
59 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
61 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
63 * eval.c (evaluate_subexp_standard): Support
66 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
68 * valarith.c (value_binop): Add floating-point BINOP_MIN and
70 For BINOP_EXP, use length and signedness of left operand only for
71 result, as for shifts.
72 For integral operands to BINOP_EXP, use new integer_pow and
73 uinteger_pow functions so as to get full range of results.
74 (integer_pow): New function.
75 (uinteger_pow): New function.
77 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
79 Use vector for varobj_list_children interface.
80 * gdb/varobj.c (varobj_list_children): Return vector
82 * gdb/varobj.h (varobj_list_children): Adjust
84 (varobj_p): Declare. Declare vector thereof.
85 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
86 for varobj_list_children change.
87 * Makefile.in (varobj_h): Update dependencies.
89 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
91 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
92 TYPE_CODE_DECFLOAT arguments.
93 (ppc64_sysv_abi_push_dummy_call) Likewise.
94 (get_decimal_float_return_value): New function.
95 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
96 values by calling get_decimal_float_return_value.
97 (ppc64_sysv_abi_return_value): Likewise.
99 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
101 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
102 for preprocessor macro information. Formatting changes.
104 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
106 * remote.c (struct remote_state): Add cached_wait_status.
107 (remote_exec_file): New variable.
108 (PACKET_vAttach, PACKET_vRun): New constants.
109 (extended_remote_restart): Do not query for status.
110 (struct start_remote_args): New.
111 (remote_start_remote): Take it as a second argument. Check
112 whether the target is running. Issue an error for non-running
113 non-extended targets. Cache the wait status. Set inferior_ptid
115 (remote_open_1): Prompt to disconnect non-running targets. Make
116 sure the target is marked running. Do not set inferior_ptid here.
117 Update call to remote_start_remote. Do not call remote_check_symbols
118 if the target is not running.
119 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
120 argument. Handle a non-running target.
121 (remote_detach): Use it.
122 (extended_remote_detach): New.
123 (remote_disconnect): Fix typo. Use remoute_mourn_1.
124 (extended_remote_attach_1, extended_remote_attach)
125 (extended_async_remote_attach): New.
126 (remote_vcont_resume): Remove unused variable.
127 (remote_wait, remote_async_wait): Use any cached wait status.
128 (putpkt_binary, getpkt): Clear any cached wait status.
129 (extended_remoute_mourn_1): New.
130 (extended_remote_mourn): Use it.
131 (extended_async_remote_mourn, extended_remote_run): New.
132 (extended_remote_create_inferior_1): New.
133 (extended_remote_create_inferior): Use it.
134 (extended_remote_async_create_inferior): Likewise.
135 (remote_xfer_partial): Skip for non-executing targets.
136 (init_extended_remote_ops): Set to_detach and to_attach.
137 (init_extended_async_remote_ops): Likewise. Use
138 extended_async_remote_mourn.
139 (_initialize_remote): Register vAttach, vRun, and
140 set remote exec-file.
141 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
143 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
145 * Makefile.in (symfile.o): Update.
146 * NEWS: Mention exec tracing support.
147 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
149 * infcmd.c (kill_if_already_running, detach_command)
150 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
151 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
152 (follow_exec): Do not check may_follow_exec. Do not mourn and push
153 targets. Apply the sysroot path to the loaded executable. Use
155 * linux-nat.c (linux_child_follow_fork): Print fork following
157 (kill_wait_callback): Kill again before waiting a second time.
158 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
161 2008-01-29 Joel Brobecker <brobecker@adacore.com>
163 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
165 2008-01-29 Joel Brobecker <brobecker@adacore.com>
167 * nto-tdep.h: Remove #include "defs.h".
168 * nto-tdep.c: Add #include "defs.h".
169 * Makefile.in (nto_tdep_h): Update dependencies.
170 (nto-tdep.o): Likewise.
172 2008-01-29 Joel Brobecker <brobecker@adacore.com>
174 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
176 (proceed, start_remote): Update call to wait_for_inferior.
177 * inferior.h (wait_for_inferior): Update declaration.
178 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
179 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
180 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
181 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
183 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
185 * varobj (adjust_value_for_child_access): Added checking for
186 returned value from gdb_value_ind.
187 (c_describe_child): Likewise.
188 (cplus_describe_child): Fixed a typo.
190 2008-01-29 Jim Blandy <jimb@red-bean.com>
192 * MAINTAINERS: Update my info.
194 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
196 Use multiple locations for hardware watchpoints.
197 This eliminates the need to traverse value chain, doing
198 various checks, in three different places.
200 * breakpoint.h (struct bp_location): New fields
201 lengths and watchpoint_type.
202 (struct breakpoint): Remove the val_chain field.
203 * breakpoint.c (is_hardware_watchpoint): New.
204 (free_valchain): Remove.
205 (update_watchpoint): New.
206 (insert_bp_location): For hardware watchpoint, just
208 (insert_breakpoints): Call update_watchpoint_locations
209 on all watchpoints. If we have failed to insert
210 any location of a hardware watchpoint, remove all inserted
212 (remove_breakpoint): For hardware watchpoints, directly
214 (watchpoints_triggered): Iterate over locations.
215 (bpstat_stop_status): Use only first location of
216 a resource watchpoint.
217 (delete_breakpoint): Don't call free_valchain.
218 (print_one_breakpoint): Don't print all
219 locations for watchpoints.
220 (breakpoint_re_set_one): Use update_watchpoint for
223 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
225 Don't reset watchpoint block on solib load.
227 * breakpoint.c (insert_bp_location): For watchpoints,
229 (breakpoint_re_set_one): Instead of recomputing value
230 and condition for watchpoints, just reset value and
231 let insert_breakpoints/insert_bp_location recompute it.
232 Don't do anything about disabled watchpoint.
234 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
236 * valarith.c (value_binop): Handle unsigned integer
239 2008-01-28 Kevin Buettner <kevinb@redhat.com>
241 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
242 instruction pattern that appears frequently in position
243 independent code. Fix bug in code which looks for "fmov" and
244 backtracks if no "fmov" is found.
246 2008-01-28 Doug Evans <dje@google.com>
248 * dbxread.c (read_dbx_symtab): Fix indentation.
249 Reformat comments to 80 columns.
250 Move local var def closer to only use.
252 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
254 * fork-child.c (SHELL_FILE): Remove #ifndef.
255 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
257 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
259 * i386-tdep.c (i386_skip_noop): New function.
260 (i386_analyze_prologue): Call i386_skip_noop function.
262 2008-01-24 Michael Snyder <msnyder@specifix.com>
264 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
265 * win32-nat.c (win32_xfer_partial): Ditto.
266 * target.c (default_xfer_partial): Minor whitespace adjustment.
268 2008-01-24 Pedro Alves <pedro@codesourcery.com>
270 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
271 strip bit 1 even if pc doesn't point to thumb code.
273 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
275 * remote.c (remote_wait): Handle SIGINT between packets.
276 (remote_async_wait): Likewise.
278 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
279 Chris Demetriou <cgd@google.com>
281 * thread.c (add_thread_silent): Renamed
283 (print_thread_events): New variable definition.
284 (show_print_thread_events): New function.
285 (_initialize_thread): Add "set print thread-events" and
286 "show print thread-events" commands.
287 (add_thread): Announce new thread.
288 * gdbthread.h (add_thread_silent): Declare.
289 (print_thread_events): New variable declaration.
290 * inf-ttrace.c (inf_ttrace_wait): Don't
291 inform about new thread, as add_thread is always
292 called too, and will take care of that.
293 * infrun.c (handle_inferior_event): Likewise.
294 * procfs.c (procfs_wait): Likewise.
295 * remote.c (remote_currthread): Likewise.
296 * sol-thread.c (sol_thread_wait): Likewise.
297 * win32-nat.c (get_win32_debug_event): Likewise.
298 * linux-thread-db.c (attach_thread): Likewise.
299 Remove the verbose parameter.
300 (check_event): Make detach_thread be verbose
301 only if print_thread_events is set.
302 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
303 about new thread. This is called only from
304 linux-thread-db.c:attach_thread, which will take care.
305 Remove the verbose parameter.
306 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
308 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
310 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
312 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
314 * breakpoint.c (break_command_really): New parameter
316 (break_command_1): Pass 0 as
317 ignore_count to break_command_really.
318 (gdb_breakpoint): Pass ignore_count to
319 break_command_really.
321 2008-01-21 Kevin Buettner <kevinb@redhat.com>
323 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
324 sigcontext struct via pointer.
325 (struct sigframe comment): Update to show new field `psc'.
327 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
329 * infrun.c (handle_inferior_event): If
330 we failed to remove breakpoints, error,
331 don't try to increment PC by hand.
333 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
335 Add NetBSD/hppa target and host support.
337 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
338 (hppabsd_gregset): Move to ...
339 (hppabsd_regset_from_core_section): Rename
340 hppaobsd_regset_from_core_section and move to ...
341 (hppabsd_find_global_pointer): Update comment.
342 (hppabsd_init_abi): Make global. Do not register
343 hppabsd_regset_from_core_section.
344 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
346 (_initialize_hppabsd_tdep): Move to ...
347 * hppaobsd-tdep.c: ... here. New file.
348 * hppnbsd-tdep.c: New file.
349 * hppnbsd-nat.c: New file.
350 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
351 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
352 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
353 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
354 * configure.host (hppa*-*-netbsd*): New entry.
355 * configure.tgt (hppa*-*-netbsd*): New entry.
356 (hppa*-*-openbsd*): Update.
357 * NEWS (New native configuration): Mention NetBSD/hppa.
358 (New targets): Mention NetBSD/hppa.
360 2008-01-18 Markus Deuling <deuling@de.ibm.com>
362 * gdbarch.sh (function_list): Add new property bits_big_endian to
364 * gdbarch.{c,h}: Regenerate.
366 * value.c (struct value): Replace BITS_BIG_ENDIAN by
367 gdbarch_bits_big_endian (comment).
368 (unpack_field_as_long, modify_field): Likewise.
369 * value.h: Likewise (comment).
370 * valops.c (value_slice): Likewise.
371 * valarith.c (value_subscript, value_bit_index): Likewise.
372 * gdbtypes.h (field): Likewise (comment).
373 * eval.c (evaluate_subexp_standard): Likewise.
374 * dwarf2read.c (dwarf2_add_field): Likewise.
375 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
376 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
378 * defs.h (BITS_BIG_ENDIAN): Remove.
380 2008-01-18 Markus Deuling <deuling@de.ibm.com>
382 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
384 * m2-exp.y (yylex): Likewise.
385 * objc-exp.y (yylex): Likewise.
387 * defs.h (DEPRECATED_STREQN): Remove.
389 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
391 * MAINTAINERS: Update my email address.
393 2008-01-17 Jim Blandy <jimb@codesourcery.com>
395 * README: Mention gdbserver/README.
397 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
399 * valarith.c (value_binop): Handle BINOP_INTDIV
400 for unsigned and signed integers.
402 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
404 * s390-tdep.c (s390_gdbarch_init): Set default long double
405 type to 128-bit IEEE quad.
407 2008-01-17 Joel Brobecker <brobecker@adacore.com>
409 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
411 2008-01-16 Mark Kettenis <kettenis@gnu.org>
413 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
415 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
416 * value.c: All callers changed.
418 2008-01-16 Markus Deuling <deuling@de.ibm.com>
420 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
421 DEPRECATED_STREQ by its expression.
422 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
423 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
424 (scan_xcoff_symtab): Likewise.
425 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
426 * f-lang.c (find_common_for_function): Likewise.
427 * objc-exp.y (parse_number): Likewise.
429 * defs.h (DEPRECATED_STREQ): Remove.
431 2008-01-16 Markus Deuling <deuling@de.ibm.com>
433 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
434 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
435 get_frame_arch to get at the current_architecture. Update AM33_MODE
437 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
438 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
440 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
442 2008-01-16 Markus Deuling <deuling@de.ibm.com>
444 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
446 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
448 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
449 current_gdbarch by gdbarch. Update caller.
451 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
452 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
453 the current architecture. Update calls of
454 amd64_native_gregset_supplies_p.
455 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
456 (amd64bsd_store_inferior_registers): Likewise.
458 2008-01-16 Markus Deuling <deuling@de.ibm.com>
460 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
461 Replace current_gdbarch by gdbarch. Update caller.
463 2008-01-16 Markus Deuling <deuling@de.ibm.com>
465 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
466 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
467 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
468 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
469 (stabsect_build_psymtabs): Fix indentation.
471 2008-01-15 Michael Snyder <msnyder@specifix.com>
473 * corelow.c (core_xfer_partial): Comment, cut/paste error.
475 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
477 * win32-nat.c (win32_create_inferior): Restore code calling
478 CloseHandle on ProcessInformation structure.
480 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
482 * configure.ac: Check for void * as 3 argument of ptrace.
483 * configure: regenerate.
485 2008-01-11 Markus Deuling <deuling@de.ibm.com>
487 * alpha-tdep.c (alpha_heuristic_proc_start)
488 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
489 current_gdbarch by gdbarch.
491 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
492 current architecture by frame_info. Update alpha_heuristic_proc_start
495 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
496 get_frame_arch to get at the current architecture by frame_info. Update
497 alpha_sigtramp_register_address call.
499 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
500 current_gdbarch by gdbarch. Update caller.
501 (convert_to_extended, convert_from_extended): Add endianess parameter
502 for comparison. Update caller.
503 (arm_extract_return_value, arm_store_return_value): Use
504 get_regcache_arch to get at the current architecture.
506 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
507 current_gdbarch by gdbarch. Update caller.
508 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
509 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
511 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
512 gdbarch as parameter. Update caller.
513 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
514 current_gdbarch by gdbarch. Update caller.
516 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
517 update caller. Replace current_gdbarch by gdbarch.
519 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
520 the current architecture. Replace current_gdbarch by gdbarch.
521 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
522 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
523 expression. Add gdbarch as parameter and replace current_gdbarch with
525 (M6811_TDEP): Remove.
526 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
528 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
529 current_gdbarch by gdbarch. Update caller.
531 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
533 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
536 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
537 caller. Relace current_gdbarch by gdbarch.
538 (altivec_register_p, spe_register_p): Likewise.
539 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
541 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
542 altivec_register_p and spe_register_p.
544 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
545 caller. Replace current_gdbarch by gdbarch.
546 (score_analyze_prologue): use get_frame_arch to get at the current
549 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
550 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
551 current_gdbarch by gdbarch. Update caller.
552 (sparc_frame_cache): Use get_frame_arch to get at the current
554 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
555 sparc_analyze_prologue.
557 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
560 2008-01-11 Markus Deuling <deuling@de.ibm.com>
562 * exec.c: #include "arch-utils.h"
563 (print_section_info): Use gdbarch_from_bfd to get at the
564 current architecture. Replace current_gdbarch. Fix indention. Replace
565 deprecated_print_address_numeric by paddress.
566 * Makefile.in (exec.o) Add dependency to arch-utils.h.
568 * valprint.c (val_print_string): Replace
569 deprecated_print_address_numeric.
570 * tracepoint.c (trace_mention, scope_info): Likewise.
571 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
572 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
573 (maintenance_check_symtabs): Likewise.
574 * symfile.c (list_overlays_command): Likewise.
575 * stack.c (frame_info, print_block_frame_labels): Likewise.
576 * printcmd.c (print_address, print_address_demangle)
577 (address_info): Likewise.
578 * corefile.c (memory_error): Likewise.
579 * infcmd.c (jump_command): Likewise.
580 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
581 (mention, delete_breakpoint): Likewise.
582 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
583 * dwarf2read.c (dump_die): Likewise.
584 * ada-valprint.c (ada_val_print_1): Likewise.
585 * f-valprint.c (f_val_print): Likewise.
586 * linux-fork.c (info_forks_command): Likewise.
587 * m32r-com.c (m32r_load_section, m32r_load)
588 (m32r_upload_command): Likewise.
590 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
592 2008-01-11 Markus Deuling <deuling@de.ibm.com>
594 * gdbarch.sh (skip_prologue): Add gdbarch
596 * gdbarch.{c,h}: Regenerate.
598 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
599 * amd64-tdep.c (amd64_skip_prologue): Likewise.
600 * avr-tdep.c (avr_skip_prologue): Likewise.
601 * cris-tdep.c (cris_skip_prologue): Likewise.
602 * frv-tdep.c (frv_skip_prologue): Likewise.
603 * h8300-tdep.c (h8300_skip_prologue): Likewise.
604 * hppa-tdep.c (hppa_skip_prologue): Likewise.
605 * i386-tdep.c (i386_skip_prologue): Likewise.
606 * ia64-tdep.c (ia64_skip_prologue): Likewise.
607 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
608 * m32r-tdep.c (m32r_skip_prologue): Likewise.
609 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
610 * m68k-tdep.c (m68k_skip_prologue): Likewise.
611 * m88k-tdep.c (m88k_skip_prologue): Likewise.
612 * mep-tdep.c (mep_skip_prologue): Likewise.
613 * mips-tdep.c (mips_skip_prologue): Likewise.
614 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
615 * mt-tdep.c (mt_skip_prologue): Likewise.
616 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
617 * score-tdep.c (score_skip_prologue): Likewise.
618 * sh64-tdep.c (sh64_skip_prologue): Likewise.
619 * sh-tdep.c (sh_skip_prologue): Likewise.
620 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
621 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
622 * spu-tdep.c (spu_skip_prologue): Likewise.
623 * v850-tdep.c (v850_skip_prologue): Likewise.
624 * vax-tdep.c (vax_skip_prologue): Likewise.
625 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
626 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
628 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
629 current_gdbarch by gdbarch.
630 * m32c-tdep.c (m32c_skip_prologue): Likewise.
631 * s390-tdep.c (s390_skip_prologue): Likewise.
633 2008-01-10 Doug Evans <dje@google.com>
635 * defs.h (struct continuation_arg): Fix typo in comment.
636 * target.c (target_translate_tls_address): Fix comment spelling error.
638 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
640 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
641 (DOUBLEST_SCAN_FORMAT): Likewise.
642 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
643 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
644 * c-exp.y (parse_number): Likewise.
645 * jv-exp.y (parse_number): Likewise.
646 * objc-exp.y (parse_number): Likewise.
647 * p-exp.y (parse_number): Likewise.
649 2008-01-09 Joel Brobecker <brobecker@adacore.com>
651 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
652 (check_typedef): Likewise.
654 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
656 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
657 seen_double_big_d, treat the new H, D, and DD modifiers as length
660 2008-01-08 Joel Brobecker <brobecker@adacore.com>
662 * dwarf2read.c (read_enumeration_type): Add comment.
664 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
666 * config.in: Regenerate.
668 2008-01-08 Joel Brobecker <brobecker@adacore.com>
670 * ada-lang.c (ada_convert_actual): Renames convert_actual.
672 (ada_convert_actuals): Delete.
673 * ada-lang.h (ada_convert_actual): Add declaration.
674 (ada_convert_actuals): Remove declaration.
675 * infcall.c: #include "ada-lang.h".
676 (value_arg_coerce): Add new parameter sp. Update function
677 documetnation. Add handling of Ada function call parameters.
678 * Makefile.in (infcall.o): Update dependencies.
680 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
682 * ada-lang.c (ensure_lval): Fix value lval kind.
683 (convert_actual): Add handling for arguments passed by reference.
685 2008-01-08 Doug Evans <dje@google.com>
687 * dbxread.c (read_dbx_symtab): Fix indentation.
689 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
691 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
692 (valarith.o): Depend on dfp.h.
693 (valops.o): Likewise.
694 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
695 (set_decnumber_context): New function.
696 (decimal_check_errors): Likewise.
697 (decimal_from_number): Likewise.
698 (decimal_to_number): Likewise.
699 (decimal_from_string): Use set_decnumber_context and
700 decimal_check_errors.
701 (decimal_from_integral): New function.
702 (decimal_from_floating): Likewise.
703 (decimal_to_double): Likewise.
704 (promote_decimal): Likewise.
705 (decimal_binop): Likewise.
706 (decimal_is_zero): Likewise.
707 (decimal_compare): Likewise.
708 (decimal_convert): Likewise.
709 * dfp.h (decimal_from_integral): New prototype.
710 (decimal_from_floating): Likewise.
711 (decimal_to_double): Likewise.
712 (decimal_binop): Likewise.
713 (decimal_is_zero): Likewise.
714 (decimal_compare): Likewise.
715 (decimal_convert): Likewise.
716 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
717 call to value_from_decfloat.
718 * valarith.c: Include dfp.h.
719 (value_args_as_decimal): New function.
720 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
721 (value_logical_not): Likewise.
722 (value_equal): Likewise.
723 (value_less): Likewise.
724 (value_pos): Likewise.
725 (value_neg): Formatting fix.
726 * valops.c: Include dfp.h.
727 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
728 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
729 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
730 (value_from_decfloat): Remove expect_type argument.
731 * value.h (value_from_decfloat): Update prototype.
733 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
735 Ignore change in name of dynamic linker during
736 execution on Solaris. This also unbreaks pending breakpoints.
738 * solist.h (struct target_so_ops): New field same.
739 * solib-svr4.c (svr4_same): New.
740 (_initialize_svr4_solib): Register svr4_same.
741 * solib.c (update_solib_list): Use ops->same, if available.
743 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
745 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
746 when using MS-DOS paths.
748 2008-01-05 Pedro Alves <pedro@codesourcery.com>
750 * NEWS: Mention --pid and --core command line behaviour changes.
752 2008-01-05 Pedro Alves <pedro@codesourcery.com>
754 * main.c (captured_main): Remove 'count' varible and the
755 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
756 --pid options were issued simultaneously. If an explicit pid
757 option was passed, don't fallback to core file. Detect extra
758 arguments better in the presence of explicit pid or core
761 2008-01-05 Joel Brobecker <brobecker@adacore.com>
763 * ada-lang.c (ada_which_variant_applies): Correctly compute
764 the value of the discriminant when the variant record is packed.
766 2008-01-04 Joel Brobecker <brobecker@adacore.com>
768 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
769 that are used to differentiate homonyms.
771 2008-01-04 Jerome Guitton <guitton@adacore.com>
773 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
774 when the type is an anonymous pointer type.
775 (ada_check_typedef): Avoid a seg fault when the type is null.
776 * ada-typeprint.c (print_array_type): Add support for pointer
779 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
781 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
783 2008-01-04 Joel Brobecker <brobecker@adacore.com>
785 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
786 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
788 2008-01-04 Joel Brobecker <brobecker@adacore.com>
790 * ada-exp.y (chop_separator): New function.
791 (write_selectors): Rewrite to re-use chop_separator.
792 (ada_nget_field_index, get_symbol_field_type): New functions.
793 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
796 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
798 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
799 of SYMBOL_VALUE when working with function symbols.
801 2008-01-03 Joel Brobecker <brobecker@adacore.com>
803 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
804 expressions. These expressions do not need to be rewriten.
806 2008-01-03 Joel Brobecker <brobecker@adacore.com>
808 * dwarf2read.c (read_enumeration_type): Flag type as stub if
809 the given die is a declaration.
811 2008-01-03 Joel Brobecker <brobecker@adacore.com>
813 * ada-lang.c (ada_array_bound_from_type): Make non-static.
814 Handle properly the case when the index type is an enumerated type.
815 Do not return the subtype of the bounds type, just return the
816 bounds type directly - this is not needed and is more consistent
817 with what we do for arrays when no XA parallel type exists.
819 2008-01-03 Joel Brobecker <brobecker@adacore.com>
821 * ada-lang.c (static_unwrap_type): Add forward declaration.
822 (template_to_static_fixed_type): Fields of dynamic types sometimes
823 also need to be unwrapped. Take this into account.
824 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
825 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
826 * ada-typeprint.c (ada_print_type): Get the typename from
827 the original type, not the base type.
829 2008-01-03 Jerome Guitton <guitton@adacore.com>
831 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
832 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
833 Update calls to ada_to_fixed_type.
834 (ada_template_to_fixed_record_type_1): Ditto, but without looking
836 (ada_to_fixed_type): Add check_tag parameter; do not look for
837 tag if null. When looking for a tag, use a fixed record type.
838 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
839 * ada-valprint.c (printable_val_type, ada_value_print): Update
840 calls to ada_to_fixed_type.
842 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
844 * doublest.c (convert_floatformat_to_doublest): Call
845 floatformat_to_doublest instead of floatformat_to_double and use
847 (convert_doublest_to_floatformat): Call floatformat_from_doublest
848 instead of floatformat_from_double and use DOUBLEST variables.
850 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
852 * MAINTAINERS (Write After Approval): Add self.
854 2008-01-03 Joel Brobecker <brobecker@adacore.com>
856 * symfile.c (set_initial_language): Make non-static.
857 * symfile.h (set_initial_language): Add declaration.
858 * language.c: #include "symfile.h".
859 (set_language): Call set_initial_language if the frame language
860 could not be determined.
862 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
864 * eval.c (evaluate_subexp_for_address): Provide frame address to
865 locate_var_value only if it will be needed.
867 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
869 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
871 2008-01-02 Joel Brobecker <brobecker@adacore.com>
873 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
874 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
875 This is needed to make sure that any other treatment applied
876 to the resulting value does not fail for spurious reason,
877 such as trying to take the address of this value.
879 2008-01-02 Joel Brobecker <brobecker@adacore.com>
881 * ada-lang.c (ada_value_equal): Dereference reference types when
884 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
886 Updated copyright notices for most files.
888 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
890 * win32-nat.c (psapi_module_handle): Remove static.
891 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
892 return first module found if base_address is zero. Don't initialize
893 psapi function pointers here. Convert to cygwin paths when
895 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
896 executable name. Use get_module_name when that fails or when
898 (_initialize_psapi): New function. Initialize psapi stuff before it is
899 needed or issue a warning if it is not found. Move psapi_module_handle
902 2008-01-01 Joel Brobecker <brobecker@adacore.com>
904 * ada-lang.c (ada_remove_trailing_digits): New function.
905 (ada_remove_po_subprogram_suffix): New function.
906 (ada_decode): Improve. Move the description of the algorithm
907 directly inside the code, instead of in the function global
910 2008-01-01 Joel Brobecker <brobecker@adacore.com>
912 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
913 and always print the dereferenced value.
915 2008-01-01 Joel Brobecker <brobecker@adacore.com>
917 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
918 of the case where the first argument is a reference.
919 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
921 2008-01-01 Joel Brobecker <brobecker@adacore.com>
923 Implement support for Ada interface types.
925 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
926 (ada_is_ignored_field): Ignore fields that are a dispatch table
929 2008-01-01 Joel Brobecker <brobecker@adacore.com>
931 * top.c (print_gdb_version): Update copyright year.
933 2008-01-01 Joel Brobecker <brobecker@adacore.com>
935 * ChangeLog-2007: New ChangeLog rotation.
936 * ChangeLog: Reset for 2008.
937 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
940 For older changes see ChangeLog-2007.
946 version-control: never