1 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
3 * remote.c (remote_wait, remote_async_wait): Stop if we receive
6 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8 * utils.c (debug_timestamp): New.
9 (vfprintf_unfiltered): Print timestamps if requested.
10 (show_debug_timestamp): New.
11 (initialize_utils): Register "set debug timestamp".
12 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
14 2008-02-27 Joel Brobecker <brobecker@adacore.com>
16 * breakpoint.c (skip_prologue_sal): New function.
17 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
18 computed from a line number.
20 2008-02-27 Joel Brobecker <brobecker@adacore.com>
22 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
23 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
24 Set PC register type to "code_ptr".
25 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
26 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
27 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
28 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
29 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
30 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
31 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
34 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
36 * regformats/regdat.sh: Rename init_registers function in
37 generated file to init_registers_${name}.
39 * regformats/reg-crisv32.dat: Set "name" to crisv32.
40 * regformats/reg-ppc64.dat: Set "name" to ppc64.
41 * regformats/reg-s390x.dat: Set "name" to s390x.
43 2008-02-26 Greg Law <glaw@undo-software.com>
45 * regcache.c (registers_changed): Call reinit_frame_cache.
47 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
49 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
50 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
51 and svr4_fetch_objfile_link_map.
52 * Makefile.in (sh-linux-tdep.o): Update.
54 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
56 * amd64-tdep.c (amd64_classify): Add support for decimal float
58 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
59 use the struct return convention.
61 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
63 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
64 to old format. Discard breakpoint address if shared library is
66 (breakpoint_1): Adjust formatting of table header accordingly.
68 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
70 * remote.c (remote_get_threadlist): If the response
71 is empty, don't try to parse it.
73 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
75 Unbreak 'target async'.
76 * serial.c (serial_async): Set the
77 handler function before enabling async
80 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
82 * solib-svr4.c (enable_break): Convert r_brk to a code address.
84 2008-02-21 Pedro Alves <pedro@codesourcery.com>
86 * remote.c (extended_remote_attach_1): Set attach_flag.
87 (extended_remote_create_inferior_1): Clear attach_flag.
89 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
91 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
93 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
94 * solib-svr4.c (solib_svr4_r_brk): New.
95 (open_symbol_file_object, svr4_current_sos): Always check the
97 (svr4_fetch_objfile_link_map): Do not set debug_base.
98 (enable_break): Use r_brk if it is set.
99 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
100 (svr4_lp64_fetch_link_map_offsets): Likewise.
101 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
103 2008-02-20 Markus Deuling <deuling@de.ibm.com>
104 Mark Kettenis <kettenis@gnu.org>
106 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
107 trad_frame_saved_reg.
108 (trad-frame.h): New include.
110 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
111 instead of frame_obstack_zalloc.
112 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
114 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
116 2008-02-20 Markus Deuling <deuling@de.ibm.com>
118 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
119 from disassemble_info instead of gdbarch_byte_order.
121 * mips-tdep.c (gdb_print_insn_mips): Likewise.
122 * arm-tdep.c (gdb_print_insn_arm): Likewise.
124 2008-02-20 Markus Deuling <deuling@de.ibm.com>
126 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
127 gdbarch as parameter.
129 * gdbarch.{c,h}: Regenerate.
131 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
133 * mem-break.c (default_memory_insert_breakpoint)
134 (default_memory_remove_breakpoint): Likewise.
135 * target.h (default_memory_remove_breakpoint)
136 (default_memory_insert_breakpoint): Likewise.
138 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
139 parameter. Replace current_gdbarch by gdbarch.
140 * m32r-tdep.c (m32r_memory_insert_breakpoint)
141 (m32r_memory_remove_breakpoint): Likewise.
143 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
145 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
147 2008-02-19 Joel Brobecker <brobecker@adacore.com>
149 * NEWS: Add entry describing Add support improvements.
151 2008-02-18 Markus Deuling <deuling@de.ibm.com>
153 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
156 2008-02-18 Markus Deuling <deuling@de.ibm.com>
158 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
159 register_offset_hack anymore.
161 * regcache.{c,h} (register_offset_hack): Remove.
163 2008-02-18 Markus Deuling <deuling@de.ibm.com>
165 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
167 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
168 current_gdbarch by gdbarch.
169 (hppa64_hpux_find_global_pointer): Likewise.
170 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
171 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
174 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
176 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
178 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
181 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
182 replace current_gdbarch by gdbarch.
183 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
185 2008-02-18 Markus Deuling <deuling@de.ibm.com>
187 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
188 and replace current_gdbarch by gdbarch.
190 (store_register): Update call for exec_one_dummy_insn.
191 (fetch_register, store_register): Update call of regmap.
193 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
194 parameter and replace current_gdbarch by gdbarch.
196 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
197 the current architecture. Update call for getregs_supplies and
199 (ppcnbsd_fetch_inferior_registers): Likewise.
201 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
202 replace current_gdbarch by gdbarch.
203 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
204 get_regcache_arch to get at the current architecture. Update call for
207 2008-02-18 Markus Deuling <deuling@de.ibm.com>
209 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
212 2008-02-15 Markus Deuling <deuling@de.ibm.com>
214 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
216 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
218 * NEWS: Mention pending breakpints in MI.
220 2008-02-14 Markus Deuling <deuling@de.ibm.com>
222 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
224 2008-02-13 Markus Deuling <deuling@de.ibm.com>
226 Add script to build and test GDB using enable-targets=all.
228 * gdb_buildall.sh: New file.
230 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
232 * NEWS (New native configurations): Xtensa GNU/Linux.
233 (New targets): Xtensa GNU/Linux.
234 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
236 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
237 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
238 * configure.tgt (xtensa*-*-linux*): New entry.
239 * xtensa-config.c (xtensa_tdep): New variable.
240 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
241 (rmap): Change format based on new macro XTREG.
242 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
243 * xtensa-linux-nat.c: New.
244 * xtensa-linux-tdep.c: New.
245 * xtensa-xtregs.c: New.
246 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
247 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
248 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
249 (xtensa_register_t): New field coprocessor.
250 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
251 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
252 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
253 Update to handle privileged registers.
254 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
255 (xtensa_push_dummy_call): Set windowstart register correctly.
256 (call0_analyze_prologue): Initialize xtensa_default_isa.
257 (xtensa_derive_tdep): New.
258 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
259 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
260 Call xtensa_derive_tdep().
261 * config/xtensa/linux.mh: New.
262 * regformats/reg-xtensa.dat: New.
264 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
266 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
267 (filenames.h): New include.
268 * Makefile.in (corelow.o): Add dependency for filenames.h.
270 2008-02-08 Doug Evans <dje@google.com>
272 * source.c (find_and_open_source): Always rewrite absolute filenames.
274 2008-02-07 Doug Evans <dje@google.com>
276 * breakpoint.c: #include "hashtab.h".
277 (ambiguous_names_p): New fn.
278 (update_breakpoint_locations): When restoring bp enable status, don't
279 compare function names if any functions have same name.
280 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
282 2008-02-07 Joel Brobecker <brobecker@adacore.com>
284 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
285 instead of just a VEC*. Update use of SV.
286 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
288 2007-02-07 Joel Brobecker <brobecker@adacore.com>
290 * NEWS: Put all new commands since gdb-6.7 together.
292 2007-02-07 Joel Brobecker <brobecker@adacore.com>
294 * ada-lang.c: #include "vec.h".
295 (struct string_vector, new_string_vector, string_vector_append):
297 (char_ptr): New typedef.
298 (DEF_VEC_P (char_ptr)): New VEC type.
299 (symbol_completion_add): Update profile to take the new VEC type
300 instead of the old string_vector structure. Update code accordingly.
301 (ada_make_symbol_completion_list): Use the new VEC type instead of
302 the old string_vector structure, and update the code accordingly.
303 * Makefile.in (ada-lang.o): Add dependency on vec.h.
305 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
307 * p-exp.y: Set current_type in missing places.
308 (leftdiv_is_integer): New static variable.
309 Typecast right operand of BINOP_DIV to long_double if both operands
312 2008-02-06 Maciej W. Rozycki <macro@mips.com>
314 * remote-mips.c (set_breakpoint): Rename to...
315 (mips_set_breakpoint): ... this.
316 (clear_breakpoint): Rename to...
317 (mips_clear_breakpoint): ... this.
318 (common_breakpoint): Rename to...
319 (mips_common_breakpoint): ... this.
320 (check_lsi_error): Rename to...
321 (mips_check_lsi_error): ... this.
323 2007-02-05 Joel Brobecker <brobecker@adacore.com>
325 * language.h (struct language_defn): Add new field
326 la_make_symbol_completion_list.
327 * symtab.c (default_make_symbol_completion_list): Renames
328 make_symbol_completion_list.
329 (make_symbol_completion_list): New function.
330 * symtab.h (default_make_symbol_completion_list): Add declaration.
331 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
332 (auto_language, local_language): Likewise.
333 * objc-lang.c (objc_language_defn): Likewise.
334 * scm-lang.c (scm_language_defn): Likewise.
335 * m2-lang.c (m2_language_defn): Likewise.
336 * f-lang.c (f_language_defn): Likewise.
337 * jv-lang.c (java_language_defn): Likewise.
338 * p-lang.c (pascal_language_defn): Likewise.
339 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
340 (minimal_language_defn): Likewise.
341 * ada-lang.c (struct string_vector): New structure.
342 (new_string_vector, string_vector_append, ada_unqualified_name)
343 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
344 (ada_make_symbol_completion_list): New functions.
345 (ada_language_defn): Set la_make_symbol_completion_list.
346 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
347 this function is static.
349 2008-02-05 Kevin Buettner <kevinb@redhat.com>
351 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
352 to account for call site optimizations.
354 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
356 * tracepoint.c (read_actions): Handle end-of-text indicator
357 in action list properly. (Committed by Jim Blandy)
359 2008-02-05 Jim Blandy <jimb@red-bean.com>
361 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
362 pseudoregister, not an internal error.
363 Reported by: Andrzej Zaborowski
365 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
367 * varobj.c (c_value_of_variable): Use xstrdup.
369 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
371 Update stored rendition of varobj value when format changes.
372 * varobj.c (varobj_set_display_format): Recomputed
374 (c_value_of_variable): Return print_value.
376 2008-02-03 Doug Evans <dje@google.com>
378 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
379 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
380 * valops.c (value_one): New function.
381 * value.h (value_one): Declare.
383 Fix argument promotion for binary arithmetic ops for C.
384 * valarith.c (unop_result_type): New fn.
385 (binop_result_type): New fn.
386 (value_binop): Move result type computation to binop_result_type.
387 (value_pos, value_neg, value_complement): Move result type
388 computation to unop_result_type.
391 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
392 Return basetype, fieldno if found. All callers updated.
393 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
395 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
396 * symfile.h (fill_in_vptr_fieldno): Delete.
398 2008-02-02 Doug Evans <dje@google.com>
400 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
402 * typeprint.c (*): Whitespace cleanup.
404 2008-02-02 Mark Kettenis <kettenis@gnu.org>
405 Luis Machado <luisgpm@br.ibm.com>
406 Thiago Jung Bauermann <bauerman@br.ibm.com>
408 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
409 don't fit into registerson the stack the way GCC does.
411 2008-02-01 Joel Brobecker <brobecker@adacore.com>
413 * symtab.c (symbol_set_names): Do not add an entry in the demangling
414 hash table for Ada symbols. Just store the linkage name as is,
415 and leave the demangled_name as NULL.
417 2007-02-01 Joel Brobecker <brobecker@adacore.com>
419 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
421 (new_symbol): Likewise.
423 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
425 * breakpoint.c (break_command_1): Return void.
426 (break_command_really): Return void. Rethrow
427 exceptions instead of returning.
428 (gdb_breakpoint): Remove the error_message parameter.
429 Return void. Rename to set_breakpoint.
430 * gdb.h (gdb_breakpoint): Rename and move to...
431 * breakpoint.h (set_breakpoint): ...here.
432 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
433 event hooks even if exception is thrown. Adjust to
434 gdb_breakpoint interface changes.
437 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
439 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
440 float in both first and second word in the doubleword, to support
443 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
445 Properly rethrow exception. This fixes errors
446 about non-existent functions for -break-insert.
447 * breakpoint.c (break_command_really): Use throw_exception
448 for rethrowing. If rethrowing, don't print the exception.
450 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
452 * NEWS: Mention Decimal Floating Point support.
454 2008-01-31 Joel Brobecker <brobecker@adacore.com>
456 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
457 value type to builtin_type_void_func_ptr.
459 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
461 * s390-tdep.c (is_float_singleton, is_float_like,
462 alignment_of, s390_return_value): Make checks for
463 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
465 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
466 Thiago Jung Bauermann <bauerman@br.ibm.com>
468 * infcmd.c (default_print_registers_info): Also print hex
469 raw contents for TYPE_CODE_DECFLOAT registers.
470 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
471 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
472 (rs6000_register_name): Add support for DFP pseudo-registers.
473 (rs6000_pseudo_register_type): Likewise.
474 rs6000_pseudo_register_reggroup_p): Likewise.
475 (ppc_pseudo_register_read): New function.
476 (ppc_pseudo_register_write): Likewise.
477 (rs6000_pseudo_register_read): Likewise.
478 (rs6000_pseudo_register_write): Likewise.
479 (e500_pseudo_register_read): Move checks to
480 rs6000_pseudo_register_read.
481 (e500_pseudo_register_write): Move checks to
482 rs6000_pseudo_register_write.
483 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
484 rs6000_pseudo_register_read and rs6000_pseudo_register_write
485 in gdbarch if SPE or DFP is available. Adjust gdbarch's
486 num_pseudo_regs to account for DFP pseudo regs.
488 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
490 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
491 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
492 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
493 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
494 e500_pseudo_register_read, e500_pseudo_register_write): Use
495 IS_SPE_PSEUDOREG macro.
496 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
497 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
498 Remove initialization of tdep->ppc_ev31_regnum.
500 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
502 * printcmd.c (print_formatted): Handle references as for unformatted
505 2008-01-30 Joel Brobecker <brobecker@adacore.com>
507 * eval.c (evaluate_subexp_standard): Add handling of user
508 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
510 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
512 * eval.c (evaluate_subexp_standard): Support
515 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
517 * valarith.c (value_binop): Add floating-point BINOP_MIN and
519 For BINOP_EXP, use length and signedness of left operand only for
520 result, as for shifts.
521 For integral operands to BINOP_EXP, use new integer_pow and
522 uinteger_pow functions so as to get full range of results.
523 (integer_pow): New function.
524 (uinteger_pow): New function.
526 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
528 Use vector for varobj_list_children interface.
529 * gdb/varobj.c (varobj_list_children): Return vector
531 * gdb/varobj.h (varobj_list_children): Adjust
533 (varobj_p): Declare. Declare vector thereof.
534 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
535 for varobj_list_children change.
536 * Makefile.in (varobj_h): Update dependencies.
538 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
540 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
541 TYPE_CODE_DECFLOAT arguments.
542 (ppc64_sysv_abi_push_dummy_call) Likewise.
543 (get_decimal_float_return_value): New function.
544 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
545 values by calling get_decimal_float_return_value.
546 (ppc64_sysv_abi_return_value): Likewise.
548 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
550 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
551 for preprocessor macro information. Formatting changes.
553 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
555 * remote.c (struct remote_state): Add cached_wait_status.
556 (remote_exec_file): New variable.
557 (PACKET_vAttach, PACKET_vRun): New constants.
558 (extended_remote_restart): Do not query for status.
559 (struct start_remote_args): New.
560 (remote_start_remote): Take it as a second argument. Check
561 whether the target is running. Issue an error for non-running
562 non-extended targets. Cache the wait status. Set inferior_ptid
564 (remote_open_1): Prompt to disconnect non-running targets. Make
565 sure the target is marked running. Do not set inferior_ptid here.
566 Update call to remote_start_remote. Do not call remote_check_symbols
567 if the target is not running.
568 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
569 argument. Handle a non-running target.
570 (remote_detach): Use it.
571 (extended_remote_detach): New.
572 (remote_disconnect): Fix typo. Use remoute_mourn_1.
573 (extended_remote_attach_1, extended_remote_attach)
574 (extended_async_remote_attach): New.
575 (remote_vcont_resume): Remove unused variable.
576 (remote_wait, remote_async_wait): Use any cached wait status.
577 (putpkt_binary, getpkt): Clear any cached wait status.
578 (extended_remoute_mourn_1): New.
579 (extended_remote_mourn): Use it.
580 (extended_async_remote_mourn, extended_remote_run): New.
581 (extended_remote_create_inferior_1): New.
582 (extended_remote_create_inferior): Use it.
583 (extended_remote_async_create_inferior): Likewise.
584 (remote_xfer_partial): Skip for non-executing targets.
585 (init_extended_remote_ops): Set to_detach and to_attach.
586 (init_extended_async_remote_ops): Likewise. Use
587 extended_async_remote_mourn.
588 (_initialize_remote): Register vAttach, vRun, and
589 set remote exec-file.
590 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
592 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
594 * Makefile.in (symfile.o): Update.
595 * NEWS: Mention exec tracing support.
596 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
598 * infcmd.c (kill_if_already_running, detach_command)
599 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
600 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
601 (follow_exec): Do not check may_follow_exec. Do not mourn and push
602 targets. Apply the sysroot path to the loaded executable. Use
604 * linux-nat.c (linux_child_follow_fork): Print fork following
606 (kill_wait_callback): Kill again before waiting a second time.
607 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
610 2008-01-29 Joel Brobecker <brobecker@adacore.com>
612 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
614 2008-01-29 Joel Brobecker <brobecker@adacore.com>
616 * nto-tdep.h: Remove #include "defs.h".
617 * nto-tdep.c: Add #include "defs.h".
618 * Makefile.in (nto_tdep_h): Update dependencies.
619 (nto-tdep.o): Likewise.
621 2008-01-29 Joel Brobecker <brobecker@adacore.com>
623 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
625 (proceed, start_remote): Update call to wait_for_inferior.
626 * inferior.h (wait_for_inferior): Update declaration.
627 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
628 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
629 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
630 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
632 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
634 * varobj (adjust_value_for_child_access): Added checking for
635 returned value from gdb_value_ind.
636 (c_describe_child): Likewise.
637 (cplus_describe_child): Fixed a typo.
639 2008-01-29 Jim Blandy <jimb@red-bean.com>
641 * MAINTAINERS: Update my info.
643 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
645 Use multiple locations for hardware watchpoints.
646 This eliminates the need to traverse value chain, doing
647 various checks, in three different places.
649 * breakpoint.h (struct bp_location): New fields
650 lengths and watchpoint_type.
651 (struct breakpoint): Remove the val_chain field.
652 * breakpoint.c (is_hardware_watchpoint): New.
653 (free_valchain): Remove.
654 (update_watchpoint): New.
655 (insert_bp_location): For hardware watchpoint, just
657 (insert_breakpoints): Call update_watchpoint_locations
658 on all watchpoints. If we have failed to insert
659 any location of a hardware watchpoint, remove all inserted
661 (remove_breakpoint): For hardware watchpoints, directly
663 (watchpoints_triggered): Iterate over locations.
664 (bpstat_stop_status): Use only first location of
665 a resource watchpoint.
666 (delete_breakpoint): Don't call free_valchain.
667 (print_one_breakpoint): Don't print all
668 locations for watchpoints.
669 (breakpoint_re_set_one): Use update_watchpoint for
672 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
674 Don't reset watchpoint block on solib load.
676 * breakpoint.c (insert_bp_location): For watchpoints,
678 (breakpoint_re_set_one): Instead of recomputing value
679 and condition for watchpoints, just reset value and
680 let insert_breakpoints/insert_bp_location recompute it.
681 Don't do anything about disabled watchpoint.
683 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
685 * valarith.c (value_binop): Handle unsigned integer
688 2008-01-28 Kevin Buettner <kevinb@redhat.com>
690 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
691 instruction pattern that appears frequently in position
692 independent code. Fix bug in code which looks for "fmov" and
693 backtracks if no "fmov" is found.
695 2008-01-28 Doug Evans <dje@google.com>
697 * dbxread.c (read_dbx_symtab): Fix indentation.
698 Reformat comments to 80 columns.
699 Move local var def closer to only use.
701 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
703 * fork-child.c (SHELL_FILE): Remove #ifndef.
704 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
706 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
708 * i386-tdep.c (i386_skip_noop): New function.
709 (i386_analyze_prologue): Call i386_skip_noop function.
711 2008-01-24 Michael Snyder <msnyder@specifix.com>
713 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
714 * win32-nat.c (win32_xfer_partial): Ditto.
715 * target.c (default_xfer_partial): Minor whitespace adjustment.
717 2008-01-24 Pedro Alves <pedro@codesourcery.com>
719 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
720 strip bit 1 even if pc doesn't point to thumb code.
722 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
724 * remote.c (remote_wait): Handle SIGINT between packets.
725 (remote_async_wait): Likewise.
727 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
728 Chris Demetriou <cgd@google.com>
730 * thread.c (add_thread_silent): Renamed
732 (print_thread_events): New variable definition.
733 (show_print_thread_events): New function.
734 (_initialize_thread): Add "set print thread-events" and
735 "show print thread-events" commands.
736 (add_thread): Announce new thread.
737 * gdbthread.h (add_thread_silent): Declare.
738 (print_thread_events): New variable declaration.
739 * inf-ttrace.c (inf_ttrace_wait): Don't
740 inform about new thread, as add_thread is always
741 called too, and will take care of that.
742 * infrun.c (handle_inferior_event): Likewise.
743 * procfs.c (procfs_wait): Likewise.
744 * remote.c (remote_currthread): Likewise.
745 * sol-thread.c (sol_thread_wait): Likewise.
746 * win32-nat.c (get_win32_debug_event): Likewise.
747 * linux-thread-db.c (attach_thread): Likewise.
748 Remove the verbose parameter.
749 (check_event): Make detach_thread be verbose
750 only if print_thread_events is set.
751 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
752 about new thread. This is called only from
753 linux-thread-db.c:attach_thread, which will take care.
754 Remove the verbose parameter.
755 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
757 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
759 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
761 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
763 * breakpoint.c (break_command_really): New parameter
765 (break_command_1): Pass 0 as
766 ignore_count to break_command_really.
767 (gdb_breakpoint): Pass ignore_count to
768 break_command_really.
770 2008-01-21 Kevin Buettner <kevinb@redhat.com>
772 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
773 sigcontext struct via pointer.
774 (struct sigframe comment): Update to show new field `psc'.
776 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
778 * infrun.c (handle_inferior_event): If
779 we failed to remove breakpoints, error,
780 don't try to increment PC by hand.
782 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
784 Add NetBSD/hppa target and host support.
786 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
787 (hppabsd_gregset): Move to ...
788 (hppabsd_regset_from_core_section): Rename
789 hppaobsd_regset_from_core_section and move to ...
790 (hppabsd_find_global_pointer): Update comment.
791 (hppabsd_init_abi): Make global. Do not register
792 hppabsd_regset_from_core_section.
793 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
795 (_initialize_hppabsd_tdep): Move to ...
796 * hppaobsd-tdep.c: ... here. New file.
797 * hppnbsd-tdep.c: New file.
798 * hppnbsd-nat.c: New file.
799 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
800 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
801 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
802 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
803 * configure.host (hppa*-*-netbsd*): New entry.
804 * configure.tgt (hppa*-*-netbsd*): New entry.
805 (hppa*-*-openbsd*): Update.
806 * NEWS (New native configuration): Mention NetBSD/hppa.
807 (New targets): Mention NetBSD/hppa.
809 2008-01-18 Markus Deuling <deuling@de.ibm.com>
811 * gdbarch.sh (function_list): Add new property bits_big_endian to
813 * gdbarch.{c,h}: Regenerate.
815 * value.c (struct value): Replace BITS_BIG_ENDIAN by
816 gdbarch_bits_big_endian (comment).
817 (unpack_field_as_long, modify_field): Likewise.
818 * value.h: Likewise (comment).
819 * valops.c (value_slice): Likewise.
820 * valarith.c (value_subscript, value_bit_index): Likewise.
821 * gdbtypes.h (field): Likewise (comment).
822 * eval.c (evaluate_subexp_standard): Likewise.
823 * dwarf2read.c (dwarf2_add_field): Likewise.
824 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
825 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
827 * defs.h (BITS_BIG_ENDIAN): Remove.
829 2008-01-18 Markus Deuling <deuling@de.ibm.com>
831 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
833 * m2-exp.y (yylex): Likewise.
834 * objc-exp.y (yylex): Likewise.
836 * defs.h (DEPRECATED_STREQN): Remove.
838 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
840 * MAINTAINERS: Update my email address.
842 2008-01-17 Jim Blandy <jimb@codesourcery.com>
844 * README: Mention gdbserver/README.
846 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
848 * valarith.c (value_binop): Handle BINOP_INTDIV
849 for unsigned and signed integers.
851 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
853 * s390-tdep.c (s390_gdbarch_init): Set default long double
854 type to 128-bit IEEE quad.
856 2008-01-17 Joel Brobecker <brobecker@adacore.com>
858 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
860 2008-01-16 Mark Kettenis <kettenis@gnu.org>
862 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
864 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
865 * value.c: All callers changed.
867 2008-01-16 Markus Deuling <deuling@de.ibm.com>
869 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
870 DEPRECATED_STREQ by its expression.
871 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
872 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
873 (scan_xcoff_symtab): Likewise.
874 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
875 * f-lang.c (find_common_for_function): Likewise.
876 * objc-exp.y (parse_number): Likewise.
878 * defs.h (DEPRECATED_STREQ): Remove.
880 2008-01-16 Markus Deuling <deuling@de.ibm.com>
882 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
883 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
884 get_frame_arch to get at the current_architecture. Update AM33_MODE
886 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
887 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
889 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
891 2008-01-16 Markus Deuling <deuling@de.ibm.com>
893 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
895 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
897 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
898 current_gdbarch by gdbarch. Update caller.
900 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
901 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
902 the current architecture. Update calls of
903 amd64_native_gregset_supplies_p.
904 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
905 (amd64bsd_store_inferior_registers): Likewise.
907 2008-01-16 Markus Deuling <deuling@de.ibm.com>
909 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
910 Replace current_gdbarch by gdbarch. Update caller.
912 2008-01-16 Markus Deuling <deuling@de.ibm.com>
914 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
915 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
916 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
917 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
918 (stabsect_build_psymtabs): Fix indentation.
920 2008-01-15 Michael Snyder <msnyder@specifix.com>
922 * corelow.c (core_xfer_partial): Comment, cut/paste error.
924 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
926 * win32-nat.c (win32_create_inferior): Restore code calling
927 CloseHandle on ProcessInformation structure.
929 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
931 * configure.ac: Check for void * as 3 argument of ptrace.
932 * configure: regenerate.
934 2008-01-11 Markus Deuling <deuling@de.ibm.com>
936 * alpha-tdep.c (alpha_heuristic_proc_start)
937 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
938 current_gdbarch by gdbarch.
940 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
941 current architecture by frame_info. Update alpha_heuristic_proc_start
944 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
945 get_frame_arch to get at the current architecture by frame_info. Update
946 alpha_sigtramp_register_address call.
948 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
949 current_gdbarch by gdbarch. Update caller.
950 (convert_to_extended, convert_from_extended): Add endianess parameter
951 for comparison. Update caller.
952 (arm_extract_return_value, arm_store_return_value): Use
953 get_regcache_arch to get at the current architecture.
955 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
956 current_gdbarch by gdbarch. Update caller.
957 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
958 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
960 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
961 gdbarch as parameter. Update caller.
962 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
963 current_gdbarch by gdbarch. Update caller.
965 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
966 update caller. Replace current_gdbarch by gdbarch.
968 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
969 the current architecture. Replace current_gdbarch by gdbarch.
970 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
971 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
972 expression. Add gdbarch as parameter and replace current_gdbarch with
974 (M6811_TDEP): Remove.
975 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
977 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
978 current_gdbarch by gdbarch. Update caller.
980 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
982 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
985 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
986 caller. Relace current_gdbarch by gdbarch.
987 (altivec_register_p, spe_register_p): Likewise.
988 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
990 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
991 altivec_register_p and spe_register_p.
993 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
994 caller. Replace current_gdbarch by gdbarch.
995 (score_analyze_prologue): use get_frame_arch to get at the current
998 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
999 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1000 current_gdbarch by gdbarch. Update caller.
1001 (sparc_frame_cache): Use get_frame_arch to get at the current
1003 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1004 sparc_analyze_prologue.
1006 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1009 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1011 * exec.c: #include "arch-utils.h"
1012 (print_section_info): Use gdbarch_from_bfd to get at the
1013 current architecture. Replace current_gdbarch. Fix indention. Replace
1014 deprecated_print_address_numeric by paddress.
1015 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1017 * valprint.c (val_print_string): Replace
1018 deprecated_print_address_numeric.
1019 * tracepoint.c (trace_mention, scope_info): Likewise.
1020 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1021 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1022 (maintenance_check_symtabs): Likewise.
1023 * symfile.c (list_overlays_command): Likewise.
1024 * stack.c (frame_info, print_block_frame_labels): Likewise.
1025 * printcmd.c (print_address, print_address_demangle)
1026 (address_info): Likewise.
1027 * corefile.c (memory_error): Likewise.
1028 * infcmd.c (jump_command): Likewise.
1029 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1030 (mention, delete_breakpoint): Likewise.
1031 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1032 * dwarf2read.c (dump_die): Likewise.
1033 * ada-valprint.c (ada_val_print_1): Likewise.
1034 * f-valprint.c (f_val_print): Likewise.
1035 * linux-fork.c (info_forks_command): Likewise.
1036 * m32r-com.c (m32r_load_section, m32r_load)
1037 (m32r_upload_command): Likewise.
1039 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1041 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1043 * gdbarch.sh (skip_prologue): Add gdbarch
1045 * gdbarch.{c,h}: Regenerate.
1047 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1048 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1049 * avr-tdep.c (avr_skip_prologue): Likewise.
1050 * cris-tdep.c (cris_skip_prologue): Likewise.
1051 * frv-tdep.c (frv_skip_prologue): Likewise.
1052 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1053 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1054 * i386-tdep.c (i386_skip_prologue): Likewise.
1055 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1056 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1057 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1058 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1059 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1060 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1061 * mep-tdep.c (mep_skip_prologue): Likewise.
1062 * mips-tdep.c (mips_skip_prologue): Likewise.
1063 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1064 * mt-tdep.c (mt_skip_prologue): Likewise.
1065 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1066 * score-tdep.c (score_skip_prologue): Likewise.
1067 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1068 * sh-tdep.c (sh_skip_prologue): Likewise.
1069 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1070 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1071 * spu-tdep.c (spu_skip_prologue): Likewise.
1072 * v850-tdep.c (v850_skip_prologue): Likewise.
1073 * vax-tdep.c (vax_skip_prologue): Likewise.
1074 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1075 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1077 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1078 current_gdbarch by gdbarch.
1079 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1080 * s390-tdep.c (s390_skip_prologue): Likewise.
1082 2008-01-10 Doug Evans <dje@google.com>
1084 * defs.h (struct continuation_arg): Fix typo in comment.
1085 * target.c (target_translate_tls_address): Fix comment spelling error.
1087 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1089 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1090 (DOUBLEST_SCAN_FORMAT): Likewise.
1091 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1092 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1093 * c-exp.y (parse_number): Likewise.
1094 * jv-exp.y (parse_number): Likewise.
1095 * objc-exp.y (parse_number): Likewise.
1096 * p-exp.y (parse_number): Likewise.
1098 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1100 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1101 (check_typedef): Likewise.
1103 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1105 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1106 seen_double_big_d, treat the new H, D, and DD modifiers as length
1109 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1111 * dwarf2read.c (read_enumeration_type): Add comment.
1113 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1115 * config.in: Regenerate.
1117 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1119 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1121 (ada_convert_actuals): Delete.
1122 * ada-lang.h (ada_convert_actual): Add declaration.
1123 (ada_convert_actuals): Remove declaration.
1124 * infcall.c: #include "ada-lang.h".
1125 (value_arg_coerce): Add new parameter sp. Update function
1126 documetnation. Add handling of Ada function call parameters.
1127 * Makefile.in (infcall.o): Update dependencies.
1129 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1131 * ada-lang.c (ensure_lval): Fix value lval kind.
1132 (convert_actual): Add handling for arguments passed by reference.
1134 2008-01-08 Doug Evans <dje@google.com>
1136 * dbxread.c (read_dbx_symtab): Fix indentation.
1138 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1140 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1141 (valarith.o): Depend on dfp.h.
1142 (valops.o): Likewise.
1143 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1144 (set_decnumber_context): New function.
1145 (decimal_check_errors): Likewise.
1146 (decimal_from_number): Likewise.
1147 (decimal_to_number): Likewise.
1148 (decimal_from_string): Use set_decnumber_context and
1149 decimal_check_errors.
1150 (decimal_from_integral): New function.
1151 (decimal_from_floating): Likewise.
1152 (decimal_to_double): Likewise.
1153 (promote_decimal): Likewise.
1154 (decimal_binop): Likewise.
1155 (decimal_is_zero): Likewise.
1156 (decimal_compare): Likewise.
1157 (decimal_convert): Likewise.
1158 * dfp.h (decimal_from_integral): New prototype.
1159 (decimal_from_floating): Likewise.
1160 (decimal_to_double): Likewise.
1161 (decimal_binop): Likewise.
1162 (decimal_is_zero): Likewise.
1163 (decimal_compare): Likewise.
1164 (decimal_convert): Likewise.
1165 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1166 call to value_from_decfloat.
1167 * valarith.c: Include dfp.h.
1168 (value_args_as_decimal): New function.
1169 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1170 (value_logical_not): Likewise.
1171 (value_equal): Likewise.
1172 (value_less): Likewise.
1173 (value_pos): Likewise.
1174 (value_neg): Formatting fix.
1175 * valops.c: Include dfp.h.
1176 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1177 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1178 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1179 (value_from_decfloat): Remove expect_type argument.
1180 * value.h (value_from_decfloat): Update prototype.
1182 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1184 Ignore change in name of dynamic linker during
1185 execution on Solaris. This also unbreaks pending breakpoints.
1187 * solist.h (struct target_so_ops): New field same.
1188 * solib-svr4.c (svr4_same): New.
1189 (_initialize_svr4_solib): Register svr4_same.
1190 * solib.c (update_solib_list): Use ops->same, if available.
1192 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1194 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1195 when using MS-DOS paths.
1197 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1199 * NEWS: Mention --pid and --core command line behaviour changes.
1201 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1203 * main.c (captured_main): Remove 'count' varible and the
1204 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1205 --pid options were issued simultaneously. If an explicit pid
1206 option was passed, don't fallback to core file. Detect extra
1207 arguments better in the presence of explicit pid or core
1210 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1212 * ada-lang.c (ada_which_variant_applies): Correctly compute
1213 the value of the discriminant when the variant record is packed.
1215 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1217 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1218 that are used to differentiate homonyms.
1220 2008-01-04 Jerome Guitton <guitton@adacore.com>
1222 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1223 when the type is an anonymous pointer type.
1224 (ada_check_typedef): Avoid a seg fault when the type is null.
1225 * ada-typeprint.c (print_array_type): Add support for pointer
1228 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1230 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1232 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1234 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1235 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1237 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1239 * ada-exp.y (chop_separator): New function.
1240 (write_selectors): Rewrite to re-use chop_separator.
1241 (ada_nget_field_index, get_symbol_field_type): New functions.
1242 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1245 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1247 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1248 of SYMBOL_VALUE when working with function symbols.
1250 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1252 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1253 expressions. These expressions do not need to be rewriten.
1255 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1257 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1258 the given die is a declaration.
1260 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1262 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1263 Handle properly the case when the index type is an enumerated type.
1264 Do not return the subtype of the bounds type, just return the
1265 bounds type directly - this is not needed and is more consistent
1266 with what we do for arrays when no XA parallel type exists.
1268 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1270 * ada-lang.c (static_unwrap_type): Add forward declaration.
1271 (template_to_static_fixed_type): Fields of dynamic types sometimes
1272 also need to be unwrapped. Take this into account.
1273 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1274 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1275 * ada-typeprint.c (ada_print_type): Get the typename from
1276 the original type, not the base type.
1278 2008-01-03 Jerome Guitton <guitton@adacore.com>
1280 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1281 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1282 Update calls to ada_to_fixed_type.
1283 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1285 (ada_to_fixed_type): Add check_tag parameter; do not look for
1286 tag if null. When looking for a tag, use a fixed record type.
1287 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1288 * ada-valprint.c (printable_val_type, ada_value_print): Update
1289 calls to ada_to_fixed_type.
1291 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1293 * doublest.c (convert_floatformat_to_doublest): Call
1294 floatformat_to_doublest instead of floatformat_to_double and use
1296 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1297 instead of floatformat_from_double and use DOUBLEST variables.
1299 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1301 * MAINTAINERS (Write After Approval): Add self.
1303 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1305 * symfile.c (set_initial_language): Make non-static.
1306 * symfile.h (set_initial_language): Add declaration.
1307 * language.c: #include "symfile.h".
1308 (set_language): Call set_initial_language if the frame language
1309 could not be determined.
1311 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1313 * eval.c (evaluate_subexp_for_address): Provide frame address to
1314 locate_var_value only if it will be needed.
1316 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1318 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1320 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1322 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1323 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1324 This is needed to make sure that any other treatment applied
1325 to the resulting value does not fail for spurious reason,
1326 such as trying to take the address of this value.
1328 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1330 * ada-lang.c (ada_value_equal): Dereference reference types when
1333 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1335 Updated copyright notices for most files.
1337 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1339 * win32-nat.c (psapi_module_handle): Remove static.
1340 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1341 return first module found if base_address is zero. Don't initialize
1342 psapi function pointers here. Convert to cygwin paths when
1344 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1345 executable name. Use get_module_name when that fails or when
1347 (_initialize_psapi): New function. Initialize psapi stuff before it is
1348 needed or issue a warning if it is not found. Move psapi_module_handle
1351 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1353 * ada-lang.c (ada_remove_trailing_digits): New function.
1354 (ada_remove_po_subprogram_suffix): New function.
1355 (ada_decode): Improve. Move the description of the algorithm
1356 directly inside the code, instead of in the function global
1359 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1361 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1362 and always print the dereferenced value.
1364 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1366 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1367 of the case where the first argument is a reference.
1368 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1370 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1372 Implement support for Ada interface types.
1374 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1375 (ada_is_ignored_field): Ignore fields that are a dispatch table
1378 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1380 * top.c (print_gdb_version): Update copyright year.
1382 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1384 * ChangeLog-2007: New ChangeLog rotation.
1385 * ChangeLog: Reset for 2008.
1386 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1389 For older changes see ChangeLog-2007.
1395 version-control: never