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