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