1 2007-02-05 Joel Brobecker <brobecker@adacore.com>
3 * language.h (struct language_defn): Add new field
4 la_make_symbol_completion_list.
5 * symtab.c (default_make_symbol_completion_list): Renames
6 make_symbol_completion_list.
7 (make_symbol_completion_list): New function.
8 * symtab.h (default_make_symbol_completion_list): Add declaration.
9 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
10 (auto_language, local_language): Likewise.
11 * objc-lang.c (objc_language_defn): Likewise.
12 * scm-lang.c (scm_language_defn): Likewise.
13 * m2-lang.c (m2_language_defn): Likewise.
14 * f-lang.c (f_language_defn): Likewise.
15 * jv-lang.c (java_language_defn): Likewise.
16 * p-lang.c (pascal_language_defn): Likewise.
17 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
18 (minimal_language_defn): Likewise.
19 * ada-lang.c (struct string_vector): New structure.
20 (new_string_vector, string_vector_append, ada_unqualified_name)
21 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
22 (ada_make_symbol_completion_list): New functions.
23 (ada_language_defn): Set la_make_symbol_completion_list.
24 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
25 this function is static.
27 2008-02-05 Kevin Buettner <kevinb@redhat.com>
29 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
30 to account for call site optimizations.
32 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
34 * tracepoint.c (read_actions): Handle end-of-text indicator
35 in action list properly. (Committed by Jim Blandy)
37 2008-02-05 Jim Blandy <jimb@red-bean.com>
39 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
40 pseudoregister, not an internal error.
41 Reported by: Andrzej Zaborowski
43 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
45 * varobj.c (c_value_of_variable): Use xstrdup.
47 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
49 Update stored rendition of varobj value when format changes.
50 * varobj.c (varobj_set_display_format): Recomputed
52 (c_value_of_variable): Return print_value.
54 2008-02-03 Doug Evans <dje@google.com>
56 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
57 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
58 * valops.c (value_one): New function.
59 * value.h (value_one): Declare.
61 Fix argument promotion for binary arithmetic ops for C.
62 * valarith.c (unop_result_type): New fn.
63 (binop_result_type): New fn.
64 (value_binop): Move result type computation to binop_result_type.
65 (value_pos, value_neg, value_complement): Move result type
66 computation to unop_result_type.
69 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
70 Return basetype, fieldno if found. All callers updated.
71 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
73 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
74 * symfile.h (fill_in_vptr_fieldno): Delete.
76 2008-02-02 Doug Evans <dje@google.com>
78 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
80 * typeprint.c (*): Whitespace cleanup.
82 2008-02-02 Mark Kettenis <kettenis@gnu.org>
83 Luis Machado <luisgpm@br.ibm.com>
84 Thiago Jung Bauermann <bauerman@br.ibm.com>
86 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
87 don't fit into registerson the stack the way GCC does.
89 2008-02-01 Joel Brobecker <brobecker@adacore.com>
91 * symtab.c (symbol_set_names): Do not add an entry in the demangling
92 hash table for Ada symbols. Just store the linkage name as is,
93 and leave the demangled_name as NULL.
95 2007-02-01 Joel Brobecker <brobecker@adacore.com>
97 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
99 (new_symbol): Likewise.
101 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
103 * breakpoint.c (break_command_1): Return void.
104 (break_command_really): Return void. Rethrow
105 exceptions instead of returning.
106 (gdb_breakpoint): Remove the error_message parameter.
107 Return void. Rename to set_breakpoint.
108 * gdb.h (gdb_breakpoint): Rename and move to...
109 * breakpoint.h (set_breakpoint): ...here.
110 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
111 event hooks even if exception is thrown. Adjust to
112 gdb_breakpoint interface changes.
115 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
117 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
118 float in both first and second word in the doubleword, to support
121 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
123 Properly rethrow exception. This fixes errors
124 about non-existent functions for -break-insert.
125 * breakpoint.c (break_command_really): Use throw_exception
126 for rethrowing. If rethrowing, don't print the exception.
128 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
130 * NEWS: Mention Decimal Floating Point support.
132 2008-01-31 Joel Brobecker <brobecker@adacore.com>
134 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
135 value type to builtin_type_void_func_ptr.
137 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
139 * s390-tdep.c (is_float_singleton, is_float_like,
140 alignment_of, s390_return_value): Make checks for
141 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
143 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
144 Thiago Jung Bauermann <bauerman@br.ibm.com>
146 * infcmd.c (default_print_registers_info): Also print hex
147 raw contents for TYPE_CODE_DECFLOAT registers.
148 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
149 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
150 (rs6000_register_name): Add support for DFP pseudo-registers.
151 (rs6000_pseudo_register_type): Likewise.
152 rs6000_pseudo_register_reggroup_p): Likewise.
153 (ppc_pseudo_register_read): New function.
154 (ppc_pseudo_register_write): Likewise.
155 (rs6000_pseudo_register_read): Likewise.
156 (rs6000_pseudo_register_write): Likewise.
157 (e500_pseudo_register_read): Move checks to
158 rs6000_pseudo_register_read.
159 (e500_pseudo_register_write): Move checks to
160 rs6000_pseudo_register_write.
161 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
162 rs6000_pseudo_register_read and rs6000_pseudo_register_write
163 in gdbarch if SPE or DFP is available. Adjust gdbarch's
164 num_pseudo_regs to account for DFP pseudo regs.
166 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
168 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
169 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
170 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
171 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
172 e500_pseudo_register_read, e500_pseudo_register_write): Use
173 IS_SPE_PSEUDOREG macro.
174 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
175 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
176 Remove initialization of tdep->ppc_ev31_regnum.
178 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
180 * printcmd.c (print_formatted): Handle references as for unformatted
183 2008-01-30 Joel Brobecker <brobecker@adacore.com>
185 * eval.c (evaluate_subexp_standard): Add handling of user
186 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
188 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
190 * eval.c (evaluate_subexp_standard): Support
193 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
195 * valarith.c (value_binop): Add floating-point BINOP_MIN and
197 For BINOP_EXP, use length and signedness of left operand only for
198 result, as for shifts.
199 For integral operands to BINOP_EXP, use new integer_pow and
200 uinteger_pow functions so as to get full range of results.
201 (integer_pow): New function.
202 (uinteger_pow): New function.
204 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
206 Use vector for varobj_list_children interface.
207 * gdb/varobj.c (varobj_list_children): Return vector
209 * gdb/varobj.h (varobj_list_children): Adjust
211 (varobj_p): Declare. Declare vector thereof.
212 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
213 for varobj_list_children change.
214 * Makefile.in (varobj_h): Update dependencies.
216 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
218 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
219 TYPE_CODE_DECFLOAT arguments.
220 (ppc64_sysv_abi_push_dummy_call) Likewise.
221 (get_decimal_float_return_value): New function.
222 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
223 values by calling get_decimal_float_return_value.
224 (ppc64_sysv_abi_return_value): Likewise.
226 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
228 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
229 for preprocessor macro information. Formatting changes.
231 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
233 * remote.c (struct remote_state): Add cached_wait_status.
234 (remote_exec_file): New variable.
235 (PACKET_vAttach, PACKET_vRun): New constants.
236 (extended_remote_restart): Do not query for status.
237 (struct start_remote_args): New.
238 (remote_start_remote): Take it as a second argument. Check
239 whether the target is running. Issue an error for non-running
240 non-extended targets. Cache the wait status. Set inferior_ptid
242 (remote_open_1): Prompt to disconnect non-running targets. Make
243 sure the target is marked running. Do not set inferior_ptid here.
244 Update call to remote_start_remote. Do not call remote_check_symbols
245 if the target is not running.
246 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
247 argument. Handle a non-running target.
248 (remote_detach): Use it.
249 (extended_remote_detach): New.
250 (remote_disconnect): Fix typo. Use remoute_mourn_1.
251 (extended_remote_attach_1, extended_remote_attach)
252 (extended_async_remote_attach): New.
253 (remote_vcont_resume): Remove unused variable.
254 (remote_wait, remote_async_wait): Use any cached wait status.
255 (putpkt_binary, getpkt): Clear any cached wait status.
256 (extended_remoute_mourn_1): New.
257 (extended_remote_mourn): Use it.
258 (extended_async_remote_mourn, extended_remote_run): New.
259 (extended_remote_create_inferior_1): New.
260 (extended_remote_create_inferior): Use it.
261 (extended_remote_async_create_inferior): Likewise.
262 (remote_xfer_partial): Skip for non-executing targets.
263 (init_extended_remote_ops): Set to_detach and to_attach.
264 (init_extended_async_remote_ops): Likewise. Use
265 extended_async_remote_mourn.
266 (_initialize_remote): Register vAttach, vRun, and
267 set remote exec-file.
268 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
270 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
272 * Makefile.in (symfile.o): Update.
273 * NEWS: Mention exec tracing support.
274 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
276 * infcmd.c (kill_if_already_running, detach_command)
277 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
278 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
279 (follow_exec): Do not check may_follow_exec. Do not mourn and push
280 targets. Apply the sysroot path to the loaded executable. Use
282 * linux-nat.c (linux_child_follow_fork): Print fork following
284 (kill_wait_callback): Kill again before waiting a second time.
285 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
288 2008-01-29 Joel Brobecker <brobecker@adacore.com>
290 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
292 2008-01-29 Joel Brobecker <brobecker@adacore.com>
294 * nto-tdep.h: Remove #include "defs.h".
295 * nto-tdep.c: Add #include "defs.h".
296 * Makefile.in (nto_tdep_h): Update dependencies.
297 (nto-tdep.o): Likewise.
299 2008-01-29 Joel Brobecker <brobecker@adacore.com>
301 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
303 (proceed, start_remote): Update call to wait_for_inferior.
304 * inferior.h (wait_for_inferior): Update declaration.
305 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
306 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
307 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
308 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
310 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
312 * varobj (adjust_value_for_child_access): Added checking for
313 returned value from gdb_value_ind.
314 (c_describe_child): Likewise.
315 (cplus_describe_child): Fixed a typo.
317 2008-01-29 Jim Blandy <jimb@red-bean.com>
319 * MAINTAINERS: Update my info.
321 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
323 Use multiple locations for hardware watchpoints.
324 This eliminates the need to traverse value chain, doing
325 various checks, in three different places.
327 * breakpoint.h (struct bp_location): New fields
328 lengths and watchpoint_type.
329 (struct breakpoint): Remove the val_chain field.
330 * breakpoint.c (is_hardware_watchpoint): New.
331 (free_valchain): Remove.
332 (update_watchpoint): New.
333 (insert_bp_location): For hardware watchpoint, just
335 (insert_breakpoints): Call update_watchpoint_locations
336 on all watchpoints. If we have failed to insert
337 any location of a hardware watchpoint, remove all inserted
339 (remove_breakpoint): For hardware watchpoints, directly
341 (watchpoints_triggered): Iterate over locations.
342 (bpstat_stop_status): Use only first location of
343 a resource watchpoint.
344 (delete_breakpoint): Don't call free_valchain.
345 (print_one_breakpoint): Don't print all
346 locations for watchpoints.
347 (breakpoint_re_set_one): Use update_watchpoint for
350 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
352 Don't reset watchpoint block on solib load.
354 * breakpoint.c (insert_bp_location): For watchpoints,
356 (breakpoint_re_set_one): Instead of recomputing value
357 and condition for watchpoints, just reset value and
358 let insert_breakpoints/insert_bp_location recompute it.
359 Don't do anything about disabled watchpoint.
361 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
363 * valarith.c (value_binop): Handle unsigned integer
366 2008-01-28 Kevin Buettner <kevinb@redhat.com>
368 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
369 instruction pattern that appears frequently in position
370 independent code. Fix bug in code which looks for "fmov" and
371 backtracks if no "fmov" is found.
373 2008-01-28 Doug Evans <dje@google.com>
375 * dbxread.c (read_dbx_symtab): Fix indentation.
376 Reformat comments to 80 columns.
377 Move local var def closer to only use.
379 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
381 * fork-child.c (SHELL_FILE): Remove #ifndef.
382 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
384 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
386 * i386-tdep.c (i386_skip_noop): New function.
387 (i386_analyze_prologue): Call i386_skip_noop function.
389 2008-01-24 Michael Snyder <msnyder@specifix.com>
391 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
392 * win32-nat.c (win32_xfer_partial): Ditto.
393 * target.c (default_xfer_partial): Minor whitespace adjustment.
395 2008-01-24 Pedro Alves <pedro@codesourcery.com>
397 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
398 strip bit 1 even if pc doesn't point to thumb code.
400 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
402 * remote.c (remote_wait): Handle SIGINT between packets.
403 (remote_async_wait): Likewise.
405 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
406 Chris Demetriou <cgd@google.com>
408 * thread.c (add_thread_silent): Renamed
410 (print_thread_events): New variable definition.
411 (show_print_thread_events): New function.
412 (_initialize_thread): Add "set print thread-events" and
413 "show print thread-events" commands.
414 (add_thread): Announce new thread.
415 * gdbthread.h (add_thread_silent): Declare.
416 (print_thread_events): New variable declaration.
417 * inf-ttrace.c (inf_ttrace_wait): Don't
418 inform about new thread, as add_thread is always
419 called too, and will take care of that.
420 * infrun.c (handle_inferior_event): Likewise.
421 * procfs.c (procfs_wait): Likewise.
422 * remote.c (remote_currthread): Likewise.
423 * sol-thread.c (sol_thread_wait): Likewise.
424 * win32-nat.c (get_win32_debug_event): Likewise.
425 * linux-thread-db.c (attach_thread): Likewise.
426 Remove the verbose parameter.
427 (check_event): Make detach_thread be verbose
428 only if print_thread_events is set.
429 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
430 about new thread. This is called only from
431 linux-thread-db.c:attach_thread, which will take care.
432 Remove the verbose parameter.
433 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
435 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
437 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
439 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
441 * breakpoint.c (break_command_really): New parameter
443 (break_command_1): Pass 0 as
444 ignore_count to break_command_really.
445 (gdb_breakpoint): Pass ignore_count to
446 break_command_really.
448 2008-01-21 Kevin Buettner <kevinb@redhat.com>
450 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
451 sigcontext struct via pointer.
452 (struct sigframe comment): Update to show new field `psc'.
454 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
456 * infrun.c (handle_inferior_event): If
457 we failed to remove breakpoints, error,
458 don't try to increment PC by hand.
460 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
462 Add NetBSD/hppa target and host support.
464 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
465 (hppabsd_gregset): Move to ...
466 (hppabsd_regset_from_core_section): Rename
467 hppaobsd_regset_from_core_section and move to ...
468 (hppabsd_find_global_pointer): Update comment.
469 (hppabsd_init_abi): Make global. Do not register
470 hppabsd_regset_from_core_section.
471 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
473 (_initialize_hppabsd_tdep): Move to ...
474 * hppaobsd-tdep.c: ... here. New file.
475 * hppnbsd-tdep.c: New file.
476 * hppnbsd-nat.c: New file.
477 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
478 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
479 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
480 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
481 * configure.host (hppa*-*-netbsd*): New entry.
482 * configure.tgt (hppa*-*-netbsd*): New entry.
483 (hppa*-*-openbsd*): Update.
484 * NEWS (New native configuration): Mention NetBSD/hppa.
485 (New targets): Mention NetBSD/hppa.
487 2008-01-18 Markus Deuling <deuling@de.ibm.com>
489 * gdbarch.sh (function_list): Add new property bits_big_endian to
491 * gdbarch.{c,h}: Regenerate.
493 * value.c (struct value): Replace BITS_BIG_ENDIAN by
494 gdbarch_bits_big_endian (comment).
495 (unpack_field_as_long, modify_field): Likewise.
496 * value.h: Likewise (comment).
497 * valops.c (value_slice): Likewise.
498 * valarith.c (value_subscript, value_bit_index): Likewise.
499 * gdbtypes.h (field): Likewise (comment).
500 * eval.c (evaluate_subexp_standard): Likewise.
501 * dwarf2read.c (dwarf2_add_field): Likewise.
502 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
503 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
505 * defs.h (BITS_BIG_ENDIAN): Remove.
507 2008-01-18 Markus Deuling <deuling@de.ibm.com>
509 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
511 * m2-exp.y (yylex): Likewise.
512 * objc-exp.y (yylex): Likewise.
514 * defs.h (DEPRECATED_STREQN): Remove.
516 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
518 * MAINTAINERS: Update my email address.
520 2008-01-17 Jim Blandy <jimb@codesourcery.com>
522 * README: Mention gdbserver/README.
524 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
526 * valarith.c (value_binop): Handle BINOP_INTDIV
527 for unsigned and signed integers.
529 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
531 * s390-tdep.c (s390_gdbarch_init): Set default long double
532 type to 128-bit IEEE quad.
534 2008-01-17 Joel Brobecker <brobecker@adacore.com>
536 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
538 2008-01-16 Mark Kettenis <kettenis@gnu.org>
540 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
542 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
543 * value.c: All callers changed.
545 2008-01-16 Markus Deuling <deuling@de.ibm.com>
547 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
548 DEPRECATED_STREQ by its expression.
549 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
550 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
551 (scan_xcoff_symtab): Likewise.
552 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
553 * f-lang.c (find_common_for_function): Likewise.
554 * objc-exp.y (parse_number): Likewise.
556 * defs.h (DEPRECATED_STREQ): Remove.
558 2008-01-16 Markus Deuling <deuling@de.ibm.com>
560 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
561 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
562 get_frame_arch to get at the current_architecture. Update AM33_MODE
564 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
565 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
567 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
569 2008-01-16 Markus Deuling <deuling@de.ibm.com>
571 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
573 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
575 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
576 current_gdbarch by gdbarch. Update caller.
578 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
579 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
580 the current architecture. Update calls of
581 amd64_native_gregset_supplies_p.
582 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
583 (amd64bsd_store_inferior_registers): Likewise.
585 2008-01-16 Markus Deuling <deuling@de.ibm.com>
587 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
588 Replace current_gdbarch by gdbarch. Update caller.
590 2008-01-16 Markus Deuling <deuling@de.ibm.com>
592 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
593 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
594 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
595 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
596 (stabsect_build_psymtabs): Fix indentation.
598 2008-01-15 Michael Snyder <msnyder@specifix.com>
600 * corelow.c (core_xfer_partial): Comment, cut/paste error.
602 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
604 * win32-nat.c (win32_create_inferior): Restore code calling
605 CloseHandle on ProcessInformation structure.
607 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
609 * configure.ac: Check for void * as 3 argument of ptrace.
610 * configure: regenerate.
612 2008-01-11 Markus Deuling <deuling@de.ibm.com>
614 * alpha-tdep.c (alpha_heuristic_proc_start)
615 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
616 current_gdbarch by gdbarch.
618 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
619 current architecture by frame_info. Update alpha_heuristic_proc_start
622 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
623 get_frame_arch to get at the current architecture by frame_info. Update
624 alpha_sigtramp_register_address call.
626 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
627 current_gdbarch by gdbarch. Update caller.
628 (convert_to_extended, convert_from_extended): Add endianess parameter
629 for comparison. Update caller.
630 (arm_extract_return_value, arm_store_return_value): Use
631 get_regcache_arch to get at the current architecture.
633 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
634 current_gdbarch by gdbarch. Update caller.
635 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
636 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
638 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
639 gdbarch as parameter. Update caller.
640 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
641 current_gdbarch by gdbarch. Update caller.
643 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
644 update caller. Replace current_gdbarch by gdbarch.
646 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
647 the current architecture. Replace current_gdbarch by gdbarch.
648 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
649 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
650 expression. Add gdbarch as parameter and replace current_gdbarch with
652 (M6811_TDEP): Remove.
653 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
655 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
656 current_gdbarch by gdbarch. Update caller.
658 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
660 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
663 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
664 caller. Relace current_gdbarch by gdbarch.
665 (altivec_register_p, spe_register_p): Likewise.
666 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
668 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
669 altivec_register_p and spe_register_p.
671 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
672 caller. Replace current_gdbarch by gdbarch.
673 (score_analyze_prologue): use get_frame_arch to get at the current
676 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
677 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
678 current_gdbarch by gdbarch. Update caller.
679 (sparc_frame_cache): Use get_frame_arch to get at the current
681 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
682 sparc_analyze_prologue.
684 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
687 2008-01-11 Markus Deuling <deuling@de.ibm.com>
689 * exec.c: #include "arch-utils.h"
690 (print_section_info): Use gdbarch_from_bfd to get at the
691 current architecture. Replace current_gdbarch. Fix indention. Replace
692 deprecated_print_address_numeric by paddress.
693 * Makefile.in (exec.o) Add dependency to arch-utils.h.
695 * valprint.c (val_print_string): Replace
696 deprecated_print_address_numeric.
697 * tracepoint.c (trace_mention, scope_info): Likewise.
698 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
699 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
700 (maintenance_check_symtabs): Likewise.
701 * symfile.c (list_overlays_command): Likewise.
702 * stack.c (frame_info, print_block_frame_labels): Likewise.
703 * printcmd.c (print_address, print_address_demangle)
704 (address_info): Likewise.
705 * corefile.c (memory_error): Likewise.
706 * infcmd.c (jump_command): Likewise.
707 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
708 (mention, delete_breakpoint): Likewise.
709 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
710 * dwarf2read.c (dump_die): Likewise.
711 * ada-valprint.c (ada_val_print_1): Likewise.
712 * f-valprint.c (f_val_print): Likewise.
713 * linux-fork.c (info_forks_command): Likewise.
714 * m32r-com.c (m32r_load_section, m32r_load)
715 (m32r_upload_command): Likewise.
717 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
719 2008-01-11 Markus Deuling <deuling@de.ibm.com>
721 * gdbarch.sh (skip_prologue): Add gdbarch
723 * gdbarch.{c,h}: Regenerate.
725 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
726 * amd64-tdep.c (amd64_skip_prologue): Likewise.
727 * avr-tdep.c (avr_skip_prologue): Likewise.
728 * cris-tdep.c (cris_skip_prologue): Likewise.
729 * frv-tdep.c (frv_skip_prologue): Likewise.
730 * h8300-tdep.c (h8300_skip_prologue): Likewise.
731 * hppa-tdep.c (hppa_skip_prologue): Likewise.
732 * i386-tdep.c (i386_skip_prologue): Likewise.
733 * ia64-tdep.c (ia64_skip_prologue): Likewise.
734 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
735 * m32r-tdep.c (m32r_skip_prologue): Likewise.
736 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
737 * m68k-tdep.c (m68k_skip_prologue): Likewise.
738 * m88k-tdep.c (m88k_skip_prologue): Likewise.
739 * mep-tdep.c (mep_skip_prologue): Likewise.
740 * mips-tdep.c (mips_skip_prologue): Likewise.
741 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
742 * mt-tdep.c (mt_skip_prologue): Likewise.
743 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
744 * score-tdep.c (score_skip_prologue): Likewise.
745 * sh64-tdep.c (sh64_skip_prologue): Likewise.
746 * sh-tdep.c (sh_skip_prologue): Likewise.
747 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
748 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
749 * spu-tdep.c (spu_skip_prologue): Likewise.
750 * v850-tdep.c (v850_skip_prologue): Likewise.
751 * vax-tdep.c (vax_skip_prologue): Likewise.
752 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
753 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
755 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
756 current_gdbarch by gdbarch.
757 * m32c-tdep.c (m32c_skip_prologue): Likewise.
758 * s390-tdep.c (s390_skip_prologue): Likewise.
760 2008-01-10 Doug Evans <dje@google.com>
762 * defs.h (struct continuation_arg): Fix typo in comment.
763 * target.c (target_translate_tls_address): Fix comment spelling error.
765 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
767 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
768 (DOUBLEST_SCAN_FORMAT): Likewise.
769 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
770 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
771 * c-exp.y (parse_number): Likewise.
772 * jv-exp.y (parse_number): Likewise.
773 * objc-exp.y (parse_number): Likewise.
774 * p-exp.y (parse_number): Likewise.
776 2008-01-09 Joel Brobecker <brobecker@adacore.com>
778 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
779 (check_typedef): Likewise.
781 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
783 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
784 seen_double_big_d, treat the new H, D, and DD modifiers as length
787 2008-01-08 Joel Brobecker <brobecker@adacore.com>
789 * dwarf2read.c (read_enumeration_type): Add comment.
791 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
793 * config.in: Regenerate.
795 2008-01-08 Joel Brobecker <brobecker@adacore.com>
797 * ada-lang.c (ada_convert_actual): Renames convert_actual.
799 (ada_convert_actuals): Delete.
800 * ada-lang.h (ada_convert_actual): Add declaration.
801 (ada_convert_actuals): Remove declaration.
802 * infcall.c: #include "ada-lang.h".
803 (value_arg_coerce): Add new parameter sp. Update function
804 documetnation. Add handling of Ada function call parameters.
805 * Makefile.in (infcall.o): Update dependencies.
807 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
809 * ada-lang.c (ensure_lval): Fix value lval kind.
810 (convert_actual): Add handling for arguments passed by reference.
812 2008-01-08 Doug Evans <dje@google.com>
814 * dbxread.c (read_dbx_symtab): Fix indentation.
816 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
818 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
819 (valarith.o): Depend on dfp.h.
820 (valops.o): Likewise.
821 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
822 (set_decnumber_context): New function.
823 (decimal_check_errors): Likewise.
824 (decimal_from_number): Likewise.
825 (decimal_to_number): Likewise.
826 (decimal_from_string): Use set_decnumber_context and
827 decimal_check_errors.
828 (decimal_from_integral): New function.
829 (decimal_from_floating): Likewise.
830 (decimal_to_double): Likewise.
831 (promote_decimal): Likewise.
832 (decimal_binop): Likewise.
833 (decimal_is_zero): Likewise.
834 (decimal_compare): Likewise.
835 (decimal_convert): Likewise.
836 * dfp.h (decimal_from_integral): New prototype.
837 (decimal_from_floating): Likewise.
838 (decimal_to_double): Likewise.
839 (decimal_binop): Likewise.
840 (decimal_is_zero): Likewise.
841 (decimal_compare): Likewise.
842 (decimal_convert): Likewise.
843 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
844 call to value_from_decfloat.
845 * valarith.c: Include dfp.h.
846 (value_args_as_decimal): New function.
847 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
848 (value_logical_not): Likewise.
849 (value_equal): Likewise.
850 (value_less): Likewise.
851 (value_pos): Likewise.
852 (value_neg): Formatting fix.
853 * valops.c: Include dfp.h.
854 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
855 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
856 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
857 (value_from_decfloat): Remove expect_type argument.
858 * value.h (value_from_decfloat): Update prototype.
860 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
862 Ignore change in name of dynamic linker during
863 execution on Solaris. This also unbreaks pending breakpoints.
865 * solist.h (struct target_so_ops): New field same.
866 * solib-svr4.c (svr4_same): New.
867 (_initialize_svr4_solib): Register svr4_same.
868 * solib.c (update_solib_list): Use ops->same, if available.
870 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
872 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
873 when using MS-DOS paths.
875 2008-01-05 Pedro Alves <pedro@codesourcery.com>
877 * NEWS: Mention --pid and --core command line behaviour changes.
879 2008-01-05 Pedro Alves <pedro@codesourcery.com>
881 * main.c (captured_main): Remove 'count' varible and the
882 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
883 --pid options were issued simultaneously. If an explicit pid
884 option was passed, don't fallback to core file. Detect extra
885 arguments better in the presence of explicit pid or core
888 2008-01-05 Joel Brobecker <brobecker@adacore.com>
890 * ada-lang.c (ada_which_variant_applies): Correctly compute
891 the value of the discriminant when the variant record is packed.
893 2008-01-04 Joel Brobecker <brobecker@adacore.com>
895 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
896 that are used to differentiate homonyms.
898 2008-01-04 Jerome Guitton <guitton@adacore.com>
900 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
901 when the type is an anonymous pointer type.
902 (ada_check_typedef): Avoid a seg fault when the type is null.
903 * ada-typeprint.c (print_array_type): Add support for pointer
906 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
908 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
910 2008-01-04 Joel Brobecker <brobecker@adacore.com>
912 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
913 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
915 2008-01-04 Joel Brobecker <brobecker@adacore.com>
917 * ada-exp.y (chop_separator): New function.
918 (write_selectors): Rewrite to re-use chop_separator.
919 (ada_nget_field_index, get_symbol_field_type): New functions.
920 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
923 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
925 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
926 of SYMBOL_VALUE when working with function symbols.
928 2008-01-03 Joel Brobecker <brobecker@adacore.com>
930 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
931 expressions. These expressions do not need to be rewriten.
933 2008-01-03 Joel Brobecker <brobecker@adacore.com>
935 * dwarf2read.c (read_enumeration_type): Flag type as stub if
936 the given die is a declaration.
938 2008-01-03 Joel Brobecker <brobecker@adacore.com>
940 * ada-lang.c (ada_array_bound_from_type): Make non-static.
941 Handle properly the case when the index type is an enumerated type.
942 Do not return the subtype of the bounds type, just return the
943 bounds type directly - this is not needed and is more consistent
944 with what we do for arrays when no XA parallel type exists.
946 2008-01-03 Joel Brobecker <brobecker@adacore.com>
948 * ada-lang.c (static_unwrap_type): Add forward declaration.
949 (template_to_static_fixed_type): Fields of dynamic types sometimes
950 also need to be unwrapped. Take this into account.
951 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
952 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
953 * ada-typeprint.c (ada_print_type): Get the typename from
954 the original type, not the base type.
956 2008-01-03 Jerome Guitton <guitton@adacore.com>
958 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
959 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
960 Update calls to ada_to_fixed_type.
961 (ada_template_to_fixed_record_type_1): Ditto, but without looking
963 (ada_to_fixed_type): Add check_tag parameter; do not look for
964 tag if null. When looking for a tag, use a fixed record type.
965 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
966 * ada-valprint.c (printable_val_type, ada_value_print): Update
967 calls to ada_to_fixed_type.
969 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
971 * doublest.c (convert_floatformat_to_doublest): Call
972 floatformat_to_doublest instead of floatformat_to_double and use
974 (convert_doublest_to_floatformat): Call floatformat_from_doublest
975 instead of floatformat_from_double and use DOUBLEST variables.
977 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
979 * MAINTAINERS (Write After Approval): Add self.
981 2008-01-03 Joel Brobecker <brobecker@adacore.com>
983 * symfile.c (set_initial_language): Make non-static.
984 * symfile.h (set_initial_language): Add declaration.
985 * language.c: #include "symfile.h".
986 (set_language): Call set_initial_language if the frame language
987 could not be determined.
989 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
991 * eval.c (evaluate_subexp_for_address): Provide frame address to
992 locate_var_value only if it will be needed.
994 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
996 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
998 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1000 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1001 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1002 This is needed to make sure that any other treatment applied
1003 to the resulting value does not fail for spurious reason,
1004 such as trying to take the address of this value.
1006 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1008 * ada-lang.c (ada_value_equal): Dereference reference types when
1011 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1013 Updated copyright notices for most files.
1015 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1017 * win32-nat.c (psapi_module_handle): Remove static.
1018 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1019 return first module found if base_address is zero. Don't initialize
1020 psapi function pointers here. Convert to cygwin paths when
1022 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1023 executable name. Use get_module_name when that fails or when
1025 (_initialize_psapi): New function. Initialize psapi stuff before it is
1026 needed or issue a warning if it is not found. Move psapi_module_handle
1029 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1031 * ada-lang.c (ada_remove_trailing_digits): New function.
1032 (ada_remove_po_subprogram_suffix): New function.
1033 (ada_decode): Improve. Move the description of the algorithm
1034 directly inside the code, instead of in the function global
1037 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1039 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1040 and always print the dereferenced value.
1042 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1044 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1045 of the case where the first argument is a reference.
1046 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1048 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1050 Implement support for Ada interface types.
1052 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1053 (ada_is_ignored_field): Ignore fields that are a dispatch table
1056 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1058 * top.c (print_gdb_version): Update copyright year.
1060 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1062 * ChangeLog-2007: New ChangeLog rotation.
1063 * ChangeLog: Reset for 2008.
1064 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1067 For older changes see ChangeLog-2007.
1073 version-control: never