1 2008-02-02 Doug Evans <dje@google.com>
3 * typeprint.c (*): Whitespace cleanup.
5 2008-02-02 Mark Kettenis <kettenis@gnu.org>
6 Luis Machado <luisgpm@br.ibm.com>
7 Thiago Jung Bauermann <bauerman@br.ibm.com>
9 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10 don't fit into registerson the stack the way GCC does.
12 2008-02-01 Joel Brobecker <brobecker@adacore.com>
14 * symtab.c (symbol_set_names): Do not add an entry in the demangling
15 hash table for Ada symbols. Just store the linkage name as is,
16 and leave the demangled_name as NULL.
18 2007-02-01 Joel Brobecker <brobecker@adacore.com>
20 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
22 (new_symbol): Likewise.
24 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
26 * breakpoint.c (break_command_1): Return void.
27 (break_command_really): Return void. Rethrow
28 exceptions instead of returning.
29 (gdb_breakpoint): Remove the error_message parameter.
30 Return void. Rename to set_breakpoint.
31 * gdb.h (gdb_breakpoint): Rename and move to...
32 * breakpoint.h (set_breakpoint): ...here.
33 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
34 event hooks even if exception is thrown. Adjust to
35 gdb_breakpoint interface changes.
38 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
40 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
41 float in both first and second word in the doubleword, to support
44 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
46 Properly rethrow exception. This fixes errors
47 about non-existent functions for -break-insert.
48 * breakpoint.c (break_command_really): Use throw_exception
49 for rethrowing. If rethrowing, don't print the exception.
51 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
53 * NEWS: Mention Decimal Floating Point support.
55 2008-01-31 Joel Brobecker <brobecker@adacore.com>
57 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
58 value type to builtin_type_void_func_ptr.
60 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
62 * s390-tdep.c (is_float_singleton, is_float_like,
63 alignment_of, s390_return_value): Make checks for
64 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
66 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
67 Thiago Jung Bauermann <bauerman@br.ibm.com>
69 * infcmd.c (default_print_registers_info): Also print hex
70 raw contents for TYPE_CODE_DECFLOAT registers.
71 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
72 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
73 (rs6000_register_name): Add support for DFP pseudo-registers.
74 (rs6000_pseudo_register_type): Likewise.
75 rs6000_pseudo_register_reggroup_p): Likewise.
76 (ppc_pseudo_register_read): New function.
77 (ppc_pseudo_register_write): Likewise.
78 (rs6000_pseudo_register_read): Likewise.
79 (rs6000_pseudo_register_write): Likewise.
80 (e500_pseudo_register_read): Move checks to
81 rs6000_pseudo_register_read.
82 (e500_pseudo_register_write): Move checks to
83 rs6000_pseudo_register_write.
84 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
85 rs6000_pseudo_register_read and rs6000_pseudo_register_write
86 in gdbarch if SPE or DFP is available. Adjust gdbarch's
87 num_pseudo_regs to account for DFP pseudo regs.
89 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
91 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
92 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
93 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
94 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
95 e500_pseudo_register_read, e500_pseudo_register_write): Use
96 IS_SPE_PSEUDOREG macro.
97 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
98 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
99 Remove initialization of tdep->ppc_ev31_regnum.
101 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
103 * printcmd.c (print_formatted): Handle references as for unformatted
106 2008-01-30 Joel Brobecker <brobecker@adacore.com>
108 * eval.c (evaluate_subexp_standard): Add handling of user
109 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
111 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
113 * eval.c (evaluate_subexp_standard): Support
116 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
118 * valarith.c (value_binop): Add floating-point BINOP_MIN and
120 For BINOP_EXP, use length and signedness of left operand only for
121 result, as for shifts.
122 For integral operands to BINOP_EXP, use new integer_pow and
123 uinteger_pow functions so as to get full range of results.
124 (integer_pow): New function.
125 (uinteger_pow): New function.
127 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
129 Use vector for varobj_list_children interface.
130 * gdb/varobj.c (varobj_list_children): Return vector
132 * gdb/varobj.h (varobj_list_children): Adjust
134 (varobj_p): Declare. Declare vector thereof.
135 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
136 for varobj_list_children change.
137 * Makefile.in (varobj_h): Update dependencies.
139 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
141 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
142 TYPE_CODE_DECFLOAT arguments.
143 (ppc64_sysv_abi_push_dummy_call) Likewise.
144 (get_decimal_float_return_value): New function.
145 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
146 values by calling get_decimal_float_return_value.
147 (ppc64_sysv_abi_return_value): Likewise.
149 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
151 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
152 for preprocessor macro information. Formatting changes.
154 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
156 * remote.c (struct remote_state): Add cached_wait_status.
157 (remote_exec_file): New variable.
158 (PACKET_vAttach, PACKET_vRun): New constants.
159 (extended_remote_restart): Do not query for status.
160 (struct start_remote_args): New.
161 (remote_start_remote): Take it as a second argument. Check
162 whether the target is running. Issue an error for non-running
163 non-extended targets. Cache the wait status. Set inferior_ptid
165 (remote_open_1): Prompt to disconnect non-running targets. Make
166 sure the target is marked running. Do not set inferior_ptid here.
167 Update call to remote_start_remote. Do not call remote_check_symbols
168 if the target is not running.
169 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
170 argument. Handle a non-running target.
171 (remote_detach): Use it.
172 (extended_remote_detach): New.
173 (remote_disconnect): Fix typo. Use remoute_mourn_1.
174 (extended_remote_attach_1, extended_remote_attach)
175 (extended_async_remote_attach): New.
176 (remote_vcont_resume): Remove unused variable.
177 (remote_wait, remote_async_wait): Use any cached wait status.
178 (putpkt_binary, getpkt): Clear any cached wait status.
179 (extended_remoute_mourn_1): New.
180 (extended_remote_mourn): Use it.
181 (extended_async_remote_mourn, extended_remote_run): New.
182 (extended_remote_create_inferior_1): New.
183 (extended_remote_create_inferior): Use it.
184 (extended_remote_async_create_inferior): Likewise.
185 (remote_xfer_partial): Skip for non-executing targets.
186 (init_extended_remote_ops): Set to_detach and to_attach.
187 (init_extended_async_remote_ops): Likewise. Use
188 extended_async_remote_mourn.
189 (_initialize_remote): Register vAttach, vRun, and
190 set remote exec-file.
191 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
193 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
195 * Makefile.in (symfile.o): Update.
196 * NEWS: Mention exec tracing support.
197 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
199 * infcmd.c (kill_if_already_running, detach_command)
200 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
201 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
202 (follow_exec): Do not check may_follow_exec. Do not mourn and push
203 targets. Apply the sysroot path to the loaded executable. Use
205 * linux-nat.c (linux_child_follow_fork): Print fork following
207 (kill_wait_callback): Kill again before waiting a second time.
208 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
211 2008-01-29 Joel Brobecker <brobecker@adacore.com>
213 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
215 2008-01-29 Joel Brobecker <brobecker@adacore.com>
217 * nto-tdep.h: Remove #include "defs.h".
218 * nto-tdep.c: Add #include "defs.h".
219 * Makefile.in (nto_tdep_h): Update dependencies.
220 (nto-tdep.o): Likewise.
222 2008-01-29 Joel Brobecker <brobecker@adacore.com>
224 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
226 (proceed, start_remote): Update call to wait_for_inferior.
227 * inferior.h (wait_for_inferior): Update declaration.
228 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
229 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
230 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
231 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
233 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
235 * varobj (adjust_value_for_child_access): Added checking for
236 returned value from gdb_value_ind.
237 (c_describe_child): Likewise.
238 (cplus_describe_child): Fixed a typo.
240 2008-01-29 Jim Blandy <jimb@red-bean.com>
242 * MAINTAINERS: Update my info.
244 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
246 Use multiple locations for hardware watchpoints.
247 This eliminates the need to traverse value chain, doing
248 various checks, in three different places.
250 * breakpoint.h (struct bp_location): New fields
251 lengths and watchpoint_type.
252 (struct breakpoint): Remove the val_chain field.
253 * breakpoint.c (is_hardware_watchpoint): New.
254 (free_valchain): Remove.
255 (update_watchpoint): New.
256 (insert_bp_location): For hardware watchpoint, just
258 (insert_breakpoints): Call update_watchpoint_locations
259 on all watchpoints. If we have failed to insert
260 any location of a hardware watchpoint, remove all inserted
262 (remove_breakpoint): For hardware watchpoints, directly
264 (watchpoints_triggered): Iterate over locations.
265 (bpstat_stop_status): Use only first location of
266 a resource watchpoint.
267 (delete_breakpoint): Don't call free_valchain.
268 (print_one_breakpoint): Don't print all
269 locations for watchpoints.
270 (breakpoint_re_set_one): Use update_watchpoint for
273 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
275 Don't reset watchpoint block on solib load.
277 * breakpoint.c (insert_bp_location): For watchpoints,
279 (breakpoint_re_set_one): Instead of recomputing value
280 and condition for watchpoints, just reset value and
281 let insert_breakpoints/insert_bp_location recompute it.
282 Don't do anything about disabled watchpoint.
284 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
286 * valarith.c (value_binop): Handle unsigned integer
289 2008-01-28 Kevin Buettner <kevinb@redhat.com>
291 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
292 instruction pattern that appears frequently in position
293 independent code. Fix bug in code which looks for "fmov" and
294 backtracks if no "fmov" is found.
296 2008-01-28 Doug Evans <dje@google.com>
298 * dbxread.c (read_dbx_symtab): Fix indentation.
299 Reformat comments to 80 columns.
300 Move local var def closer to only use.
302 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
304 * fork-child.c (SHELL_FILE): Remove #ifndef.
305 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
307 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
309 * i386-tdep.c (i386_skip_noop): New function.
310 (i386_analyze_prologue): Call i386_skip_noop function.
312 2008-01-24 Michael Snyder <msnyder@specifix.com>
314 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
315 * win32-nat.c (win32_xfer_partial): Ditto.
316 * target.c (default_xfer_partial): Minor whitespace adjustment.
318 2008-01-24 Pedro Alves <pedro@codesourcery.com>
320 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
321 strip bit 1 even if pc doesn't point to thumb code.
323 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
325 * remote.c (remote_wait): Handle SIGINT between packets.
326 (remote_async_wait): Likewise.
328 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
329 Chris Demetriou <cgd@google.com>
331 * thread.c (add_thread_silent): Renamed
333 (print_thread_events): New variable definition.
334 (show_print_thread_events): New function.
335 (_initialize_thread): Add "set print thread-events" and
336 "show print thread-events" commands.
337 (add_thread): Announce new thread.
338 * gdbthread.h (add_thread_silent): Declare.
339 (print_thread_events): New variable declaration.
340 * inf-ttrace.c (inf_ttrace_wait): Don't
341 inform about new thread, as add_thread is always
342 called too, and will take care of that.
343 * infrun.c (handle_inferior_event): Likewise.
344 * procfs.c (procfs_wait): Likewise.
345 * remote.c (remote_currthread): Likewise.
346 * sol-thread.c (sol_thread_wait): Likewise.
347 * win32-nat.c (get_win32_debug_event): Likewise.
348 * linux-thread-db.c (attach_thread): Likewise.
349 Remove the verbose parameter.
350 (check_event): Make detach_thread be verbose
351 only if print_thread_events is set.
352 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
353 about new thread. This is called only from
354 linux-thread-db.c:attach_thread, which will take care.
355 Remove the verbose parameter.
356 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
358 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
360 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
362 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
364 * breakpoint.c (break_command_really): New parameter
366 (break_command_1): Pass 0 as
367 ignore_count to break_command_really.
368 (gdb_breakpoint): Pass ignore_count to
369 break_command_really.
371 2008-01-21 Kevin Buettner <kevinb@redhat.com>
373 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
374 sigcontext struct via pointer.
375 (struct sigframe comment): Update to show new field `psc'.
377 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
379 * infrun.c (handle_inferior_event): If
380 we failed to remove breakpoints, error,
381 don't try to increment PC by hand.
383 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
385 Add NetBSD/hppa target and host support.
387 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
388 (hppabsd_gregset): Move to ...
389 (hppabsd_regset_from_core_section): Rename
390 hppaobsd_regset_from_core_section and move to ...
391 (hppabsd_find_global_pointer): Update comment.
392 (hppabsd_init_abi): Make global. Do not register
393 hppabsd_regset_from_core_section.
394 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
396 (_initialize_hppabsd_tdep): Move to ...
397 * hppaobsd-tdep.c: ... here. New file.
398 * hppnbsd-tdep.c: New file.
399 * hppnbsd-nat.c: New file.
400 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
401 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
402 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
403 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
404 * configure.host (hppa*-*-netbsd*): New entry.
405 * configure.tgt (hppa*-*-netbsd*): New entry.
406 (hppa*-*-openbsd*): Update.
407 * NEWS (New native configuration): Mention NetBSD/hppa.
408 (New targets): Mention NetBSD/hppa.
410 2008-01-18 Markus Deuling <deuling@de.ibm.com>
412 * gdbarch.sh (function_list): Add new property bits_big_endian to
414 * gdbarch.{c,h}: Regenerate.
416 * value.c (struct value): Replace BITS_BIG_ENDIAN by
417 gdbarch_bits_big_endian (comment).
418 (unpack_field_as_long, modify_field): Likewise.
419 * value.h: Likewise (comment).
420 * valops.c (value_slice): Likewise.
421 * valarith.c (value_subscript, value_bit_index): Likewise.
422 * gdbtypes.h (field): Likewise (comment).
423 * eval.c (evaluate_subexp_standard): Likewise.
424 * dwarf2read.c (dwarf2_add_field): Likewise.
425 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
426 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
428 * defs.h (BITS_BIG_ENDIAN): Remove.
430 2008-01-18 Markus Deuling <deuling@de.ibm.com>
432 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
434 * m2-exp.y (yylex): Likewise.
435 * objc-exp.y (yylex): Likewise.
437 * defs.h (DEPRECATED_STREQN): Remove.
439 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
441 * MAINTAINERS: Update my email address.
443 2008-01-17 Jim Blandy <jimb@codesourcery.com>
445 * README: Mention gdbserver/README.
447 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
449 * valarith.c (value_binop): Handle BINOP_INTDIV
450 for unsigned and signed integers.
452 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
454 * s390-tdep.c (s390_gdbarch_init): Set default long double
455 type to 128-bit IEEE quad.
457 2008-01-17 Joel Brobecker <brobecker@adacore.com>
459 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
461 2008-01-16 Mark Kettenis <kettenis@gnu.org>
463 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
465 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
466 * value.c: All callers changed.
468 2008-01-16 Markus Deuling <deuling@de.ibm.com>
470 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
471 DEPRECATED_STREQ by its expression.
472 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
473 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
474 (scan_xcoff_symtab): Likewise.
475 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
476 * f-lang.c (find_common_for_function): Likewise.
477 * objc-exp.y (parse_number): Likewise.
479 * defs.h (DEPRECATED_STREQ): Remove.
481 2008-01-16 Markus Deuling <deuling@de.ibm.com>
483 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
484 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
485 get_frame_arch to get at the current_architecture. Update AM33_MODE
487 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
488 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
490 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
492 2008-01-16 Markus Deuling <deuling@de.ibm.com>
494 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
496 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
498 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
499 current_gdbarch by gdbarch. Update caller.
501 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
502 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
503 the current architecture. Update calls of
504 amd64_native_gregset_supplies_p.
505 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
506 (amd64bsd_store_inferior_registers): Likewise.
508 2008-01-16 Markus Deuling <deuling@de.ibm.com>
510 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
511 Replace current_gdbarch by gdbarch. Update caller.
513 2008-01-16 Markus Deuling <deuling@de.ibm.com>
515 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
516 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
517 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
518 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
519 (stabsect_build_psymtabs): Fix indentation.
521 2008-01-15 Michael Snyder <msnyder@specifix.com>
523 * corelow.c (core_xfer_partial): Comment, cut/paste error.
525 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
527 * win32-nat.c (win32_create_inferior): Restore code calling
528 CloseHandle on ProcessInformation structure.
530 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
532 * configure.ac: Check for void * as 3 argument of ptrace.
533 * configure: regenerate.
535 2008-01-11 Markus Deuling <deuling@de.ibm.com>
537 * alpha-tdep.c (alpha_heuristic_proc_start)
538 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
539 current_gdbarch by gdbarch.
541 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
542 current architecture by frame_info. Update alpha_heuristic_proc_start
545 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
546 get_frame_arch to get at the current architecture by frame_info. Update
547 alpha_sigtramp_register_address call.
549 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
550 current_gdbarch by gdbarch. Update caller.
551 (convert_to_extended, convert_from_extended): Add endianess parameter
552 for comparison. Update caller.
553 (arm_extract_return_value, arm_store_return_value): Use
554 get_regcache_arch to get at the current architecture.
556 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
557 current_gdbarch by gdbarch. Update caller.
558 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
559 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
561 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
562 gdbarch as parameter. Update caller.
563 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
564 current_gdbarch by gdbarch. Update caller.
566 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
567 update caller. Replace current_gdbarch by gdbarch.
569 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
570 the current architecture. Replace current_gdbarch by gdbarch.
571 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
572 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
573 expression. Add gdbarch as parameter and replace current_gdbarch with
575 (M6811_TDEP): Remove.
576 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
578 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
579 current_gdbarch by gdbarch. Update caller.
581 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
583 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
586 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
587 caller. Relace current_gdbarch by gdbarch.
588 (altivec_register_p, spe_register_p): Likewise.
589 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
591 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
592 altivec_register_p and spe_register_p.
594 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
595 caller. Replace current_gdbarch by gdbarch.
596 (score_analyze_prologue): use get_frame_arch to get at the current
599 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
600 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
601 current_gdbarch by gdbarch. Update caller.
602 (sparc_frame_cache): Use get_frame_arch to get at the current
604 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
605 sparc_analyze_prologue.
607 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
610 2008-01-11 Markus Deuling <deuling@de.ibm.com>
612 * exec.c: #include "arch-utils.h"
613 (print_section_info): Use gdbarch_from_bfd to get at the
614 current architecture. Replace current_gdbarch. Fix indention. Replace
615 deprecated_print_address_numeric by paddress.
616 * Makefile.in (exec.o) Add dependency to arch-utils.h.
618 * valprint.c (val_print_string): Replace
619 deprecated_print_address_numeric.
620 * tracepoint.c (trace_mention, scope_info): Likewise.
621 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
622 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
623 (maintenance_check_symtabs): Likewise.
624 * symfile.c (list_overlays_command): Likewise.
625 * stack.c (frame_info, print_block_frame_labels): Likewise.
626 * printcmd.c (print_address, print_address_demangle)
627 (address_info): Likewise.
628 * corefile.c (memory_error): Likewise.
629 * infcmd.c (jump_command): Likewise.
630 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
631 (mention, delete_breakpoint): Likewise.
632 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
633 * dwarf2read.c (dump_die): Likewise.
634 * ada-valprint.c (ada_val_print_1): Likewise.
635 * f-valprint.c (f_val_print): Likewise.
636 * linux-fork.c (info_forks_command): Likewise.
637 * m32r-com.c (m32r_load_section, m32r_load)
638 (m32r_upload_command): Likewise.
640 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
642 2008-01-11 Markus Deuling <deuling@de.ibm.com>
644 * gdbarch.sh (skip_prologue): Add gdbarch
646 * gdbarch.{c,h}: Regenerate.
648 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
649 * amd64-tdep.c (amd64_skip_prologue): Likewise.
650 * avr-tdep.c (avr_skip_prologue): Likewise.
651 * cris-tdep.c (cris_skip_prologue): Likewise.
652 * frv-tdep.c (frv_skip_prologue): Likewise.
653 * h8300-tdep.c (h8300_skip_prologue): Likewise.
654 * hppa-tdep.c (hppa_skip_prologue): Likewise.
655 * i386-tdep.c (i386_skip_prologue): Likewise.
656 * ia64-tdep.c (ia64_skip_prologue): Likewise.
657 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
658 * m32r-tdep.c (m32r_skip_prologue): Likewise.
659 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
660 * m68k-tdep.c (m68k_skip_prologue): Likewise.
661 * m88k-tdep.c (m88k_skip_prologue): Likewise.
662 * mep-tdep.c (mep_skip_prologue): Likewise.
663 * mips-tdep.c (mips_skip_prologue): Likewise.
664 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
665 * mt-tdep.c (mt_skip_prologue): Likewise.
666 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
667 * score-tdep.c (score_skip_prologue): Likewise.
668 * sh64-tdep.c (sh64_skip_prologue): Likewise.
669 * sh-tdep.c (sh_skip_prologue): Likewise.
670 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
671 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
672 * spu-tdep.c (spu_skip_prologue): Likewise.
673 * v850-tdep.c (v850_skip_prologue): Likewise.
674 * vax-tdep.c (vax_skip_prologue): Likewise.
675 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
676 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
678 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
679 current_gdbarch by gdbarch.
680 * m32c-tdep.c (m32c_skip_prologue): Likewise.
681 * s390-tdep.c (s390_skip_prologue): Likewise.
683 2008-01-10 Doug Evans <dje@google.com>
685 * defs.h (struct continuation_arg): Fix typo in comment.
686 * target.c (target_translate_tls_address): Fix comment spelling error.
688 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
690 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
691 (DOUBLEST_SCAN_FORMAT): Likewise.
692 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
693 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
694 * c-exp.y (parse_number): Likewise.
695 * jv-exp.y (parse_number): Likewise.
696 * objc-exp.y (parse_number): Likewise.
697 * p-exp.y (parse_number): Likewise.
699 2008-01-09 Joel Brobecker <brobecker@adacore.com>
701 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
702 (check_typedef): Likewise.
704 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
706 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
707 seen_double_big_d, treat the new H, D, and DD modifiers as length
710 2008-01-08 Joel Brobecker <brobecker@adacore.com>
712 * dwarf2read.c (read_enumeration_type): Add comment.
714 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
716 * config.in: Regenerate.
718 2008-01-08 Joel Brobecker <brobecker@adacore.com>
720 * ada-lang.c (ada_convert_actual): Renames convert_actual.
722 (ada_convert_actuals): Delete.
723 * ada-lang.h (ada_convert_actual): Add declaration.
724 (ada_convert_actuals): Remove declaration.
725 * infcall.c: #include "ada-lang.h".
726 (value_arg_coerce): Add new parameter sp. Update function
727 documetnation. Add handling of Ada function call parameters.
728 * Makefile.in (infcall.o): Update dependencies.
730 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
732 * ada-lang.c (ensure_lval): Fix value lval kind.
733 (convert_actual): Add handling for arguments passed by reference.
735 2008-01-08 Doug Evans <dje@google.com>
737 * dbxread.c (read_dbx_symtab): Fix indentation.
739 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
741 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
742 (valarith.o): Depend on dfp.h.
743 (valops.o): Likewise.
744 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
745 (set_decnumber_context): New function.
746 (decimal_check_errors): Likewise.
747 (decimal_from_number): Likewise.
748 (decimal_to_number): Likewise.
749 (decimal_from_string): Use set_decnumber_context and
750 decimal_check_errors.
751 (decimal_from_integral): New function.
752 (decimal_from_floating): Likewise.
753 (decimal_to_double): Likewise.
754 (promote_decimal): Likewise.
755 (decimal_binop): Likewise.
756 (decimal_is_zero): Likewise.
757 (decimal_compare): Likewise.
758 (decimal_convert): Likewise.
759 * dfp.h (decimal_from_integral): New prototype.
760 (decimal_from_floating): Likewise.
761 (decimal_to_double): Likewise.
762 (decimal_binop): Likewise.
763 (decimal_is_zero): Likewise.
764 (decimal_compare): Likewise.
765 (decimal_convert): Likewise.
766 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
767 call to value_from_decfloat.
768 * valarith.c: Include dfp.h.
769 (value_args_as_decimal): New function.
770 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
771 (value_logical_not): Likewise.
772 (value_equal): Likewise.
773 (value_less): Likewise.
774 (value_pos): Likewise.
775 (value_neg): Formatting fix.
776 * valops.c: Include dfp.h.
777 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
778 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
779 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
780 (value_from_decfloat): Remove expect_type argument.
781 * value.h (value_from_decfloat): Update prototype.
783 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
785 Ignore change in name of dynamic linker during
786 execution on Solaris. This also unbreaks pending breakpoints.
788 * solist.h (struct target_so_ops): New field same.
789 * solib-svr4.c (svr4_same): New.
790 (_initialize_svr4_solib): Register svr4_same.
791 * solib.c (update_solib_list): Use ops->same, if available.
793 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
795 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
796 when using MS-DOS paths.
798 2008-01-05 Pedro Alves <pedro@codesourcery.com>
800 * NEWS: Mention --pid and --core command line behaviour changes.
802 2008-01-05 Pedro Alves <pedro@codesourcery.com>
804 * main.c (captured_main): Remove 'count' varible and the
805 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
806 --pid options were issued simultaneously. If an explicit pid
807 option was passed, don't fallback to core file. Detect extra
808 arguments better in the presence of explicit pid or core
811 2008-01-05 Joel Brobecker <brobecker@adacore.com>
813 * ada-lang.c (ada_which_variant_applies): Correctly compute
814 the value of the discriminant when the variant record is packed.
816 2008-01-04 Joel Brobecker <brobecker@adacore.com>
818 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
819 that are used to differentiate homonyms.
821 2008-01-04 Jerome Guitton <guitton@adacore.com>
823 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
824 when the type is an anonymous pointer type.
825 (ada_check_typedef): Avoid a seg fault when the type is null.
826 * ada-typeprint.c (print_array_type): Add support for pointer
829 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
831 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
833 2008-01-04 Joel Brobecker <brobecker@adacore.com>
835 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
836 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
838 2008-01-04 Joel Brobecker <brobecker@adacore.com>
840 * ada-exp.y (chop_separator): New function.
841 (write_selectors): Rewrite to re-use chop_separator.
842 (ada_nget_field_index, get_symbol_field_type): New functions.
843 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
846 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
848 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
849 of SYMBOL_VALUE when working with function symbols.
851 2008-01-03 Joel Brobecker <brobecker@adacore.com>
853 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
854 expressions. These expressions do not need to be rewriten.
856 2008-01-03 Joel Brobecker <brobecker@adacore.com>
858 * dwarf2read.c (read_enumeration_type): Flag type as stub if
859 the given die is a declaration.
861 2008-01-03 Joel Brobecker <brobecker@adacore.com>
863 * ada-lang.c (ada_array_bound_from_type): Make non-static.
864 Handle properly the case when the index type is an enumerated type.
865 Do not return the subtype of the bounds type, just return the
866 bounds type directly - this is not needed and is more consistent
867 with what we do for arrays when no XA parallel type exists.
869 2008-01-03 Joel Brobecker <brobecker@adacore.com>
871 * ada-lang.c (static_unwrap_type): Add forward declaration.
872 (template_to_static_fixed_type): Fields of dynamic types sometimes
873 also need to be unwrapped. Take this into account.
874 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
875 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
876 * ada-typeprint.c (ada_print_type): Get the typename from
877 the original type, not the base type.
879 2008-01-03 Jerome Guitton <guitton@adacore.com>
881 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
882 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
883 Update calls to ada_to_fixed_type.
884 (ada_template_to_fixed_record_type_1): Ditto, but without looking
886 (ada_to_fixed_type): Add check_tag parameter; do not look for
887 tag if null. When looking for a tag, use a fixed record type.
888 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
889 * ada-valprint.c (printable_val_type, ada_value_print): Update
890 calls to ada_to_fixed_type.
892 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
894 * doublest.c (convert_floatformat_to_doublest): Call
895 floatformat_to_doublest instead of floatformat_to_double and use
897 (convert_doublest_to_floatformat): Call floatformat_from_doublest
898 instead of floatformat_from_double and use DOUBLEST variables.
900 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
902 * MAINTAINERS (Write After Approval): Add self.
904 2008-01-03 Joel Brobecker <brobecker@adacore.com>
906 * symfile.c (set_initial_language): Make non-static.
907 * symfile.h (set_initial_language): Add declaration.
908 * language.c: #include "symfile.h".
909 (set_language): Call set_initial_language if the frame language
910 could not be determined.
912 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
914 * eval.c (evaluate_subexp_for_address): Provide frame address to
915 locate_var_value only if it will be needed.
917 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
919 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
921 2008-01-02 Joel Brobecker <brobecker@adacore.com>
923 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
924 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
925 This is needed to make sure that any other treatment applied
926 to the resulting value does not fail for spurious reason,
927 such as trying to take the address of this value.
929 2008-01-02 Joel Brobecker <brobecker@adacore.com>
931 * ada-lang.c (ada_value_equal): Dereference reference types when
934 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
936 Updated copyright notices for most files.
938 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
940 * win32-nat.c (psapi_module_handle): Remove static.
941 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
942 return first module found if base_address is zero. Don't initialize
943 psapi function pointers here. Convert to cygwin paths when
945 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
946 executable name. Use get_module_name when that fails or when
948 (_initialize_psapi): New function. Initialize psapi stuff before it is
949 needed or issue a warning if it is not found. Move psapi_module_handle
952 2008-01-01 Joel Brobecker <brobecker@adacore.com>
954 * ada-lang.c (ada_remove_trailing_digits): New function.
955 (ada_remove_po_subprogram_suffix): New function.
956 (ada_decode): Improve. Move the description of the algorithm
957 directly inside the code, instead of in the function global
960 2008-01-01 Joel Brobecker <brobecker@adacore.com>
962 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
963 and always print the dereferenced value.
965 2008-01-01 Joel Brobecker <brobecker@adacore.com>
967 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
968 of the case where the first argument is a reference.
969 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
971 2008-01-01 Joel Brobecker <brobecker@adacore.com>
973 Implement support for Ada interface types.
975 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
976 (ada_is_ignored_field): Ignore fields that are a dispatch table
979 2008-01-01 Joel Brobecker <brobecker@adacore.com>
981 * top.c (print_gdb_version): Update copyright year.
983 2008-01-01 Joel Brobecker <brobecker@adacore.com>
985 * ChangeLog-2007: New ChangeLog rotation.
986 * ChangeLog: Reset for 2008.
987 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
990 For older changes see ChangeLog-2007.
996 version-control: never