1 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
3 * infcmd.c (kill_if_already_running): Make static. Use
4 target_require_runnable.
5 * target.c (target_require_runnable): New.
6 * target.h (target_require_runnable): Declare.
8 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
10 * frame.c (reinit_frame_cache): Only annotate if frames were
13 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15 * regformats/reg-ppc.dat: Rename "ps" to "msr".
16 * regformats/reg-ppc64.dat: Likewise.
18 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20 * features/Makefile (%.dat): Emit xmltarget statement.
22 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
23 Generate code to set gdbserver_xmltarget in init_registers_${name}.
25 * regformats/arm-with-iwmmxt.dat: Regenerate.
26 * regformats/mips64-linux.dat: Regenerate.
27 * regformats/mips-linux.dat: Regenerate.
28 * regformats/rs6000/powerpc-32.dat: Regenerate.
29 * regformats/rs6000/powerpc-64.dat: Regenerate.
30 * regformats/rs6000/powerpc-e500.dat: Regenerate.
32 * regformats/reg-arm.dat: Add xmlarch statement.
33 * regformats/reg-i386.dat: Likewise.
34 * regformats/reg-i386-linux.dat: Likewise.
35 * regformats/reg-x86-64-linux.dat: Likewise.
36 * regformats/reg-spu.dat: Likewise.
38 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
40 * remote.c (remote_wait, remote_async_wait): Stop if we receive
43 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
45 * utils.c (debug_timestamp): New.
46 (vfprintf_unfiltered): Print timestamps if requested.
47 (show_debug_timestamp): New.
48 (initialize_utils): Register "set debug timestamp".
49 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
51 2008-02-27 Joel Brobecker <brobecker@adacore.com>
53 * breakpoint.c (skip_prologue_sal): New function.
54 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
55 computed from a line number.
57 2008-02-27 Joel Brobecker <brobecker@adacore.com>
59 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
60 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
61 Set PC register type to "code_ptr".
62 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
63 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
64 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
65 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
66 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
67 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
68 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
71 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
73 * regformats/regdat.sh: Rename init_registers function in
74 generated file to init_registers_${name}.
76 * regformats/reg-crisv32.dat: Set "name" to crisv32.
77 * regformats/reg-ppc64.dat: Set "name" to ppc64.
78 * regformats/reg-s390x.dat: Set "name" to s390x.
80 2008-02-26 Greg Law <glaw@undo-software.com>
82 * regcache.c (registers_changed): Call reinit_frame_cache.
84 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
86 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
87 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
88 and svr4_fetch_objfile_link_map.
89 * Makefile.in (sh-linux-tdep.o): Update.
91 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
93 * amd64-tdep.c (amd64_classify): Add support for decimal float
95 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
96 use the struct return convention.
98 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
100 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
101 to old format. Discard breakpoint address if shared library is
103 (breakpoint_1): Adjust formatting of table header accordingly.
105 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
107 * remote.c (remote_get_threadlist): If the response
108 is empty, don't try to parse it.
110 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
112 Unbreak 'target async'.
113 * serial.c (serial_async): Set the
114 handler function before enabling async
117 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
119 * solib-svr4.c (enable_break): Convert r_brk to a code address.
121 2008-02-21 Pedro Alves <pedro@codesourcery.com>
123 * remote.c (extended_remote_attach_1): Set attach_flag.
124 (extended_remote_create_inferior_1): Clear attach_flag.
126 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
128 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
130 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
131 * solib-svr4.c (solib_svr4_r_brk): New.
132 (open_symbol_file_object, svr4_current_sos): Always check the
134 (svr4_fetch_objfile_link_map): Do not set debug_base.
135 (enable_break): Use r_brk if it is set.
136 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
137 (svr4_lp64_fetch_link_map_offsets): Likewise.
138 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
140 2008-02-20 Markus Deuling <deuling@de.ibm.com>
141 Mark Kettenis <kettenis@gnu.org>
143 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
144 trad_frame_saved_reg.
145 (trad-frame.h): New include.
147 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
148 instead of frame_obstack_zalloc.
149 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
151 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
153 2008-02-20 Markus Deuling <deuling@de.ibm.com>
155 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
156 from disassemble_info instead of gdbarch_byte_order.
158 * mips-tdep.c (gdb_print_insn_mips): Likewise.
159 * arm-tdep.c (gdb_print_insn_arm): Likewise.
161 2008-02-20 Markus Deuling <deuling@de.ibm.com>
163 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
164 gdbarch as parameter.
166 * gdbarch.{c,h}: Regenerate.
168 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
170 * mem-break.c (default_memory_insert_breakpoint)
171 (default_memory_remove_breakpoint): Likewise.
172 * target.h (default_memory_remove_breakpoint)
173 (default_memory_insert_breakpoint): Likewise.
175 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
176 parameter. Replace current_gdbarch by gdbarch.
177 * m32r-tdep.c (m32r_memory_insert_breakpoint)
178 (m32r_memory_remove_breakpoint): Likewise.
180 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
182 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
184 2008-02-19 Joel Brobecker <brobecker@adacore.com>
186 * NEWS: Add entry describing Add support improvements.
188 2008-02-18 Markus Deuling <deuling@de.ibm.com>
190 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
193 2008-02-18 Markus Deuling <deuling@de.ibm.com>
195 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
196 register_offset_hack anymore.
198 * regcache.{c,h} (register_offset_hack): Remove.
200 2008-02-18 Markus Deuling <deuling@de.ibm.com>
202 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
204 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
205 current_gdbarch by gdbarch.
206 (hppa64_hpux_find_global_pointer): Likewise.
207 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
208 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
211 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
213 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
215 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
218 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
219 replace current_gdbarch by gdbarch.
220 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
222 2008-02-18 Markus Deuling <deuling@de.ibm.com>
224 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
225 and replace current_gdbarch by gdbarch.
227 (store_register): Update call for exec_one_dummy_insn.
228 (fetch_register, store_register): Update call of regmap.
230 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
231 parameter and replace current_gdbarch by gdbarch.
233 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
234 the current architecture. Update call for getregs_supplies and
236 (ppcnbsd_fetch_inferior_registers): Likewise.
238 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
239 replace current_gdbarch by gdbarch.
240 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
241 get_regcache_arch to get at the current architecture. Update call for
244 2008-02-18 Markus Deuling <deuling@de.ibm.com>
246 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
249 2008-02-15 Markus Deuling <deuling@de.ibm.com>
251 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
253 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
255 * NEWS: Mention pending breakpints in MI.
257 2008-02-14 Markus Deuling <deuling@de.ibm.com>
259 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
261 2008-02-13 Markus Deuling <deuling@de.ibm.com>
263 Add script to build and test GDB using enable-targets=all.
265 * gdb_buildall.sh: New file.
267 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
269 * NEWS (New native configurations): Xtensa GNU/Linux.
270 (New targets): Xtensa GNU/Linux.
271 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
273 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
274 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
275 * configure.tgt (xtensa*-*-linux*): New entry.
276 * xtensa-config.c (xtensa_tdep): New variable.
277 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
278 (rmap): Change format based on new macro XTREG.
279 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
280 * xtensa-linux-nat.c: New.
281 * xtensa-linux-tdep.c: New.
282 * xtensa-xtregs.c: New.
283 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
284 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
285 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
286 (xtensa_register_t): New field coprocessor.
287 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
288 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
289 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
290 Update to handle privileged registers.
291 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
292 (xtensa_push_dummy_call): Set windowstart register correctly.
293 (call0_analyze_prologue): Initialize xtensa_default_isa.
294 (xtensa_derive_tdep): New.
295 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
296 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
297 Call xtensa_derive_tdep().
298 * config/xtensa/linux.mh: New.
299 * regformats/reg-xtensa.dat: New.
301 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
303 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
304 (filenames.h): New include.
305 * Makefile.in (corelow.o): Add dependency for filenames.h.
307 2008-02-08 Doug Evans <dje@google.com>
309 * source.c (find_and_open_source): Always rewrite absolute filenames.
311 2008-02-07 Doug Evans <dje@google.com>
313 * breakpoint.c: #include "hashtab.h".
314 (ambiguous_names_p): New fn.
315 (update_breakpoint_locations): When restoring bp enable status, don't
316 compare function names if any functions have same name.
317 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
319 2008-02-07 Joel Brobecker <brobecker@adacore.com>
321 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
322 instead of just a VEC*. Update use of SV.
323 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
325 2007-02-07 Joel Brobecker <brobecker@adacore.com>
327 * NEWS: Put all new commands since gdb-6.7 together.
329 2007-02-07 Joel Brobecker <brobecker@adacore.com>
331 * ada-lang.c: #include "vec.h".
332 (struct string_vector, new_string_vector, string_vector_append):
334 (char_ptr): New typedef.
335 (DEF_VEC_P (char_ptr)): New VEC type.
336 (symbol_completion_add): Update profile to take the new VEC type
337 instead of the old string_vector structure. Update code accordingly.
338 (ada_make_symbol_completion_list): Use the new VEC type instead of
339 the old string_vector structure, and update the code accordingly.
340 * Makefile.in (ada-lang.o): Add dependency on vec.h.
342 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
344 * p-exp.y: Set current_type in missing places.
345 (leftdiv_is_integer): New static variable.
346 Typecast right operand of BINOP_DIV to long_double if both operands
349 2008-02-06 Maciej W. Rozycki <macro@mips.com>
351 * remote-mips.c (set_breakpoint): Rename to...
352 (mips_set_breakpoint): ... this.
353 (clear_breakpoint): Rename to...
354 (mips_clear_breakpoint): ... this.
355 (common_breakpoint): Rename to...
356 (mips_common_breakpoint): ... this.
357 (check_lsi_error): Rename to...
358 (mips_check_lsi_error): ... this.
360 2007-02-05 Joel Brobecker <brobecker@adacore.com>
362 * language.h (struct language_defn): Add new field
363 la_make_symbol_completion_list.
364 * symtab.c (default_make_symbol_completion_list): Renames
365 make_symbol_completion_list.
366 (make_symbol_completion_list): New function.
367 * symtab.h (default_make_symbol_completion_list): Add declaration.
368 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
369 (auto_language, local_language): Likewise.
370 * objc-lang.c (objc_language_defn): Likewise.
371 * scm-lang.c (scm_language_defn): Likewise.
372 * m2-lang.c (m2_language_defn): Likewise.
373 * f-lang.c (f_language_defn): Likewise.
374 * jv-lang.c (java_language_defn): Likewise.
375 * p-lang.c (pascal_language_defn): Likewise.
376 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
377 (minimal_language_defn): Likewise.
378 * ada-lang.c (struct string_vector): New structure.
379 (new_string_vector, string_vector_append, ada_unqualified_name)
380 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
381 (ada_make_symbol_completion_list): New functions.
382 (ada_language_defn): Set la_make_symbol_completion_list.
383 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
384 this function is static.
386 2008-02-05 Kevin Buettner <kevinb@redhat.com>
388 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
389 to account for call site optimizations.
391 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
393 * tracepoint.c (read_actions): Handle end-of-text indicator
394 in action list properly. (Committed by Jim Blandy)
396 2008-02-05 Jim Blandy <jimb@red-bean.com>
398 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
399 pseudoregister, not an internal error.
400 Reported by: Andrzej Zaborowski
402 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
404 * varobj.c (c_value_of_variable): Use xstrdup.
406 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
408 Update stored rendition of varobj value when format changes.
409 * varobj.c (varobj_set_display_format): Recomputed
411 (c_value_of_variable): Return print_value.
413 2008-02-03 Doug Evans <dje@google.com>
415 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
416 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
417 * valops.c (value_one): New function.
418 * value.h (value_one): Declare.
420 Fix argument promotion for binary arithmetic ops for C.
421 * valarith.c (unop_result_type): New fn.
422 (binop_result_type): New fn.
423 (value_binop): Move result type computation to binop_result_type.
424 (value_pos, value_neg, value_complement): Move result type
425 computation to unop_result_type.
428 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
429 Return basetype, fieldno if found. All callers updated.
430 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
432 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
433 * symfile.h (fill_in_vptr_fieldno): Delete.
435 2008-02-02 Doug Evans <dje@google.com>
437 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
439 * typeprint.c (*): Whitespace cleanup.
441 2008-02-02 Mark Kettenis <kettenis@gnu.org>
442 Luis Machado <luisgpm@br.ibm.com>
443 Thiago Jung Bauermann <bauerman@br.ibm.com>
445 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
446 don't fit into registerson the stack the way GCC does.
448 2008-02-01 Joel Brobecker <brobecker@adacore.com>
450 * symtab.c (symbol_set_names): Do not add an entry in the demangling
451 hash table for Ada symbols. Just store the linkage name as is,
452 and leave the demangled_name as NULL.
454 2007-02-01 Joel Brobecker <brobecker@adacore.com>
456 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
458 (new_symbol): Likewise.
460 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
462 * breakpoint.c (break_command_1): Return void.
463 (break_command_really): Return void. Rethrow
464 exceptions instead of returning.
465 (gdb_breakpoint): Remove the error_message parameter.
466 Return void. Rename to set_breakpoint.
467 * gdb.h (gdb_breakpoint): Rename and move to...
468 * breakpoint.h (set_breakpoint): ...here.
469 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
470 event hooks even if exception is thrown. Adjust to
471 gdb_breakpoint interface changes.
474 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
476 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
477 float in both first and second word in the doubleword, to support
480 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
482 Properly rethrow exception. This fixes errors
483 about non-existent functions for -break-insert.
484 * breakpoint.c (break_command_really): Use throw_exception
485 for rethrowing. If rethrowing, don't print the exception.
487 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
489 * NEWS: Mention Decimal Floating Point support.
491 2008-01-31 Joel Brobecker <brobecker@adacore.com>
493 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
494 value type to builtin_type_void_func_ptr.
496 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
498 * s390-tdep.c (is_float_singleton, is_float_like,
499 alignment_of, s390_return_value): Make checks for
500 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
502 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
503 Thiago Jung Bauermann <bauerman@br.ibm.com>
505 * infcmd.c (default_print_registers_info): Also print hex
506 raw contents for TYPE_CODE_DECFLOAT registers.
507 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
508 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
509 (rs6000_register_name): Add support for DFP pseudo-registers.
510 (rs6000_pseudo_register_type): Likewise.
511 rs6000_pseudo_register_reggroup_p): Likewise.
512 (ppc_pseudo_register_read): New function.
513 (ppc_pseudo_register_write): Likewise.
514 (rs6000_pseudo_register_read): Likewise.
515 (rs6000_pseudo_register_write): Likewise.
516 (e500_pseudo_register_read): Move checks to
517 rs6000_pseudo_register_read.
518 (e500_pseudo_register_write): Move checks to
519 rs6000_pseudo_register_write.
520 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
521 rs6000_pseudo_register_read and rs6000_pseudo_register_write
522 in gdbarch if SPE or DFP is available. Adjust gdbarch's
523 num_pseudo_regs to account for DFP pseudo regs.
525 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
527 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
528 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
529 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
530 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
531 e500_pseudo_register_read, e500_pseudo_register_write): Use
532 IS_SPE_PSEUDOREG macro.
533 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
534 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
535 Remove initialization of tdep->ppc_ev31_regnum.
537 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
539 * printcmd.c (print_formatted): Handle references as for unformatted
542 2008-01-30 Joel Brobecker <brobecker@adacore.com>
544 * eval.c (evaluate_subexp_standard): Add handling of user
545 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
547 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
549 * eval.c (evaluate_subexp_standard): Support
552 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
554 * valarith.c (value_binop): Add floating-point BINOP_MIN and
556 For BINOP_EXP, use length and signedness of left operand only for
557 result, as for shifts.
558 For integral operands to BINOP_EXP, use new integer_pow and
559 uinteger_pow functions so as to get full range of results.
560 (integer_pow): New function.
561 (uinteger_pow): New function.
563 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
565 Use vector for varobj_list_children interface.
566 * gdb/varobj.c (varobj_list_children): Return vector
568 * gdb/varobj.h (varobj_list_children): Adjust
570 (varobj_p): Declare. Declare vector thereof.
571 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
572 for varobj_list_children change.
573 * Makefile.in (varobj_h): Update dependencies.
575 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
577 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
578 TYPE_CODE_DECFLOAT arguments.
579 (ppc64_sysv_abi_push_dummy_call) Likewise.
580 (get_decimal_float_return_value): New function.
581 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
582 values by calling get_decimal_float_return_value.
583 (ppc64_sysv_abi_return_value): Likewise.
585 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
587 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
588 for preprocessor macro information. Formatting changes.
590 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
592 * remote.c (struct remote_state): Add cached_wait_status.
593 (remote_exec_file): New variable.
594 (PACKET_vAttach, PACKET_vRun): New constants.
595 (extended_remote_restart): Do not query for status.
596 (struct start_remote_args): New.
597 (remote_start_remote): Take it as a second argument. Check
598 whether the target is running. Issue an error for non-running
599 non-extended targets. Cache the wait status. Set inferior_ptid
601 (remote_open_1): Prompt to disconnect non-running targets. Make
602 sure the target is marked running. Do not set inferior_ptid here.
603 Update call to remote_start_remote. Do not call remote_check_symbols
604 if the target is not running.
605 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
606 argument. Handle a non-running target.
607 (remote_detach): Use it.
608 (extended_remote_detach): New.
609 (remote_disconnect): Fix typo. Use remoute_mourn_1.
610 (extended_remote_attach_1, extended_remote_attach)
611 (extended_async_remote_attach): New.
612 (remote_vcont_resume): Remove unused variable.
613 (remote_wait, remote_async_wait): Use any cached wait status.
614 (putpkt_binary, getpkt): Clear any cached wait status.
615 (extended_remoute_mourn_1): New.
616 (extended_remote_mourn): Use it.
617 (extended_async_remote_mourn, extended_remote_run): New.
618 (extended_remote_create_inferior_1): New.
619 (extended_remote_create_inferior): Use it.
620 (extended_remote_async_create_inferior): Likewise.
621 (remote_xfer_partial): Skip for non-executing targets.
622 (init_extended_remote_ops): Set to_detach and to_attach.
623 (init_extended_async_remote_ops): Likewise. Use
624 extended_async_remote_mourn.
625 (_initialize_remote): Register vAttach, vRun, and
626 set remote exec-file.
627 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
629 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
631 * Makefile.in (symfile.o): Update.
632 * NEWS: Mention exec tracing support.
633 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
635 * infcmd.c (kill_if_already_running, detach_command)
636 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
637 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
638 (follow_exec): Do not check may_follow_exec. Do not mourn and push
639 targets. Apply the sysroot path to the loaded executable. Use
641 * linux-nat.c (linux_child_follow_fork): Print fork following
643 (kill_wait_callback): Kill again before waiting a second time.
644 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
647 2008-01-29 Joel Brobecker <brobecker@adacore.com>
649 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
651 2008-01-29 Joel Brobecker <brobecker@adacore.com>
653 * nto-tdep.h: Remove #include "defs.h".
654 * nto-tdep.c: Add #include "defs.h".
655 * Makefile.in (nto_tdep_h): Update dependencies.
656 (nto-tdep.o): Likewise.
658 2008-01-29 Joel Brobecker <brobecker@adacore.com>
660 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
662 (proceed, start_remote): Update call to wait_for_inferior.
663 * inferior.h (wait_for_inferior): Update declaration.
664 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
665 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
666 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
667 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
669 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
671 * varobj (adjust_value_for_child_access): Added checking for
672 returned value from gdb_value_ind.
673 (c_describe_child): Likewise.
674 (cplus_describe_child): Fixed a typo.
676 2008-01-29 Jim Blandy <jimb@red-bean.com>
678 * MAINTAINERS: Update my info.
680 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
682 Use multiple locations for hardware watchpoints.
683 This eliminates the need to traverse value chain, doing
684 various checks, in three different places.
686 * breakpoint.h (struct bp_location): New fields
687 lengths and watchpoint_type.
688 (struct breakpoint): Remove the val_chain field.
689 * breakpoint.c (is_hardware_watchpoint): New.
690 (free_valchain): Remove.
691 (update_watchpoint): New.
692 (insert_bp_location): For hardware watchpoint, just
694 (insert_breakpoints): Call update_watchpoint_locations
695 on all watchpoints. If we have failed to insert
696 any location of a hardware watchpoint, remove all inserted
698 (remove_breakpoint): For hardware watchpoints, directly
700 (watchpoints_triggered): Iterate over locations.
701 (bpstat_stop_status): Use only first location of
702 a resource watchpoint.
703 (delete_breakpoint): Don't call free_valchain.
704 (print_one_breakpoint): Don't print all
705 locations for watchpoints.
706 (breakpoint_re_set_one): Use update_watchpoint for
709 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
711 Don't reset watchpoint block on solib load.
713 * breakpoint.c (insert_bp_location): For watchpoints,
715 (breakpoint_re_set_one): Instead of recomputing value
716 and condition for watchpoints, just reset value and
717 let insert_breakpoints/insert_bp_location recompute it.
718 Don't do anything about disabled watchpoint.
720 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
722 * valarith.c (value_binop): Handle unsigned integer
725 2008-01-28 Kevin Buettner <kevinb@redhat.com>
727 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
728 instruction pattern that appears frequently in position
729 independent code. Fix bug in code which looks for "fmov" and
730 backtracks if no "fmov" is found.
732 2008-01-28 Doug Evans <dje@google.com>
734 * dbxread.c (read_dbx_symtab): Fix indentation.
735 Reformat comments to 80 columns.
736 Move local var def closer to only use.
738 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
740 * fork-child.c (SHELL_FILE): Remove #ifndef.
741 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
743 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
745 * i386-tdep.c (i386_skip_noop): New function.
746 (i386_analyze_prologue): Call i386_skip_noop function.
748 2008-01-24 Michael Snyder <msnyder@specifix.com>
750 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
751 * win32-nat.c (win32_xfer_partial): Ditto.
752 * target.c (default_xfer_partial): Minor whitespace adjustment.
754 2008-01-24 Pedro Alves <pedro@codesourcery.com>
756 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
757 strip bit 1 even if pc doesn't point to thumb code.
759 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
761 * remote.c (remote_wait): Handle SIGINT between packets.
762 (remote_async_wait): Likewise.
764 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
765 Chris Demetriou <cgd@google.com>
767 * thread.c (add_thread_silent): Renamed
769 (print_thread_events): New variable definition.
770 (show_print_thread_events): New function.
771 (_initialize_thread): Add "set print thread-events" and
772 "show print thread-events" commands.
773 (add_thread): Announce new thread.
774 * gdbthread.h (add_thread_silent): Declare.
775 (print_thread_events): New variable declaration.
776 * inf-ttrace.c (inf_ttrace_wait): Don't
777 inform about new thread, as add_thread is always
778 called too, and will take care of that.
779 * infrun.c (handle_inferior_event): Likewise.
780 * procfs.c (procfs_wait): Likewise.
781 * remote.c (remote_currthread): Likewise.
782 * sol-thread.c (sol_thread_wait): Likewise.
783 * win32-nat.c (get_win32_debug_event): Likewise.
784 * linux-thread-db.c (attach_thread): Likewise.
785 Remove the verbose parameter.
786 (check_event): Make detach_thread be verbose
787 only if print_thread_events is set.
788 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
789 about new thread. This is called only from
790 linux-thread-db.c:attach_thread, which will take care.
791 Remove the verbose parameter.
792 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
794 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
796 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
798 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
800 * breakpoint.c (break_command_really): New parameter
802 (break_command_1): Pass 0 as
803 ignore_count to break_command_really.
804 (gdb_breakpoint): Pass ignore_count to
805 break_command_really.
807 2008-01-21 Kevin Buettner <kevinb@redhat.com>
809 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
810 sigcontext struct via pointer.
811 (struct sigframe comment): Update to show new field `psc'.
813 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
815 * infrun.c (handle_inferior_event): If
816 we failed to remove breakpoints, error,
817 don't try to increment PC by hand.
819 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
821 Add NetBSD/hppa target and host support.
823 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
824 (hppabsd_gregset): Move to ...
825 (hppabsd_regset_from_core_section): Rename
826 hppaobsd_regset_from_core_section and move to ...
827 (hppabsd_find_global_pointer): Update comment.
828 (hppabsd_init_abi): Make global. Do not register
829 hppabsd_regset_from_core_section.
830 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
832 (_initialize_hppabsd_tdep): Move to ...
833 * hppaobsd-tdep.c: ... here. New file.
834 * hppnbsd-tdep.c: New file.
835 * hppnbsd-nat.c: New file.
836 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
837 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
838 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
839 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
840 * configure.host (hppa*-*-netbsd*): New entry.
841 * configure.tgt (hppa*-*-netbsd*): New entry.
842 (hppa*-*-openbsd*): Update.
843 * NEWS (New native configuration): Mention NetBSD/hppa.
844 (New targets): Mention NetBSD/hppa.
846 2008-01-18 Markus Deuling <deuling@de.ibm.com>
848 * gdbarch.sh (function_list): Add new property bits_big_endian to
850 * gdbarch.{c,h}: Regenerate.
852 * value.c (struct value): Replace BITS_BIG_ENDIAN by
853 gdbarch_bits_big_endian (comment).
854 (unpack_field_as_long, modify_field): Likewise.
855 * value.h: Likewise (comment).
856 * valops.c (value_slice): Likewise.
857 * valarith.c (value_subscript, value_bit_index): Likewise.
858 * gdbtypes.h (field): Likewise (comment).
859 * eval.c (evaluate_subexp_standard): Likewise.
860 * dwarf2read.c (dwarf2_add_field): Likewise.
861 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
862 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
864 * defs.h (BITS_BIG_ENDIAN): Remove.
866 2008-01-18 Markus Deuling <deuling@de.ibm.com>
868 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
870 * m2-exp.y (yylex): Likewise.
871 * objc-exp.y (yylex): Likewise.
873 * defs.h (DEPRECATED_STREQN): Remove.
875 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
877 * MAINTAINERS: Update my email address.
879 2008-01-17 Jim Blandy <jimb@codesourcery.com>
881 * README: Mention gdbserver/README.
883 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
885 * valarith.c (value_binop): Handle BINOP_INTDIV
886 for unsigned and signed integers.
888 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
890 * s390-tdep.c (s390_gdbarch_init): Set default long double
891 type to 128-bit IEEE quad.
893 2008-01-17 Joel Brobecker <brobecker@adacore.com>
895 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
897 2008-01-16 Mark Kettenis <kettenis@gnu.org>
899 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
901 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
902 * value.c: All callers changed.
904 2008-01-16 Markus Deuling <deuling@de.ibm.com>
906 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
907 DEPRECATED_STREQ by its expression.
908 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
909 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
910 (scan_xcoff_symtab): Likewise.
911 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
912 * f-lang.c (find_common_for_function): Likewise.
913 * objc-exp.y (parse_number): Likewise.
915 * defs.h (DEPRECATED_STREQ): Remove.
917 2008-01-16 Markus Deuling <deuling@de.ibm.com>
919 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
920 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
921 get_frame_arch to get at the current_architecture. Update AM33_MODE
923 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
924 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
926 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
928 2008-01-16 Markus Deuling <deuling@de.ibm.com>
930 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
932 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
934 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
935 current_gdbarch by gdbarch. Update caller.
937 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
938 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
939 the current architecture. Update calls of
940 amd64_native_gregset_supplies_p.
941 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
942 (amd64bsd_store_inferior_registers): Likewise.
944 2008-01-16 Markus Deuling <deuling@de.ibm.com>
946 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
947 Replace current_gdbarch by gdbarch. Update caller.
949 2008-01-16 Markus Deuling <deuling@de.ibm.com>
951 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
952 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
953 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
954 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
955 (stabsect_build_psymtabs): Fix indentation.
957 2008-01-15 Michael Snyder <msnyder@specifix.com>
959 * corelow.c (core_xfer_partial): Comment, cut/paste error.
961 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
963 * win32-nat.c (win32_create_inferior): Restore code calling
964 CloseHandle on ProcessInformation structure.
966 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
968 * configure.ac: Check for void * as 3 argument of ptrace.
969 * configure: regenerate.
971 2008-01-11 Markus Deuling <deuling@de.ibm.com>
973 * alpha-tdep.c (alpha_heuristic_proc_start)
974 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
975 current_gdbarch by gdbarch.
977 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
978 current architecture by frame_info. Update alpha_heuristic_proc_start
981 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
982 get_frame_arch to get at the current architecture by frame_info. Update
983 alpha_sigtramp_register_address call.
985 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
986 current_gdbarch by gdbarch. Update caller.
987 (convert_to_extended, convert_from_extended): Add endianess parameter
988 for comparison. Update caller.
989 (arm_extract_return_value, arm_store_return_value): Use
990 get_regcache_arch to get at the current architecture.
992 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
993 current_gdbarch by gdbarch. Update caller.
994 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
995 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
997 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
998 gdbarch as parameter. Update caller.
999 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1000 current_gdbarch by gdbarch. Update caller.
1002 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1003 update caller. Replace current_gdbarch by gdbarch.
1005 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1006 the current architecture. Replace current_gdbarch by gdbarch.
1007 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1008 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1009 expression. Add gdbarch as parameter and replace current_gdbarch with
1011 (M6811_TDEP): Remove.
1012 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1014 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1015 current_gdbarch by gdbarch. Update caller.
1017 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1019 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1022 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1023 caller. Relace current_gdbarch by gdbarch.
1024 (altivec_register_p, spe_register_p): Likewise.
1025 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1027 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1028 altivec_register_p and spe_register_p.
1030 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1031 caller. Replace current_gdbarch by gdbarch.
1032 (score_analyze_prologue): use get_frame_arch to get at the current
1035 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1036 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1037 current_gdbarch by gdbarch. Update caller.
1038 (sparc_frame_cache): Use get_frame_arch to get at the current
1040 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1041 sparc_analyze_prologue.
1043 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1046 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1048 * exec.c: #include "arch-utils.h"
1049 (print_section_info): Use gdbarch_from_bfd to get at the
1050 current architecture. Replace current_gdbarch. Fix indention. Replace
1051 deprecated_print_address_numeric by paddress.
1052 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1054 * valprint.c (val_print_string): Replace
1055 deprecated_print_address_numeric.
1056 * tracepoint.c (trace_mention, scope_info): Likewise.
1057 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1058 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1059 (maintenance_check_symtabs): Likewise.
1060 * symfile.c (list_overlays_command): Likewise.
1061 * stack.c (frame_info, print_block_frame_labels): Likewise.
1062 * printcmd.c (print_address, print_address_demangle)
1063 (address_info): Likewise.
1064 * corefile.c (memory_error): Likewise.
1065 * infcmd.c (jump_command): Likewise.
1066 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1067 (mention, delete_breakpoint): Likewise.
1068 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1069 * dwarf2read.c (dump_die): Likewise.
1070 * ada-valprint.c (ada_val_print_1): Likewise.
1071 * f-valprint.c (f_val_print): Likewise.
1072 * linux-fork.c (info_forks_command): Likewise.
1073 * m32r-com.c (m32r_load_section, m32r_load)
1074 (m32r_upload_command): Likewise.
1076 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1078 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1080 * gdbarch.sh (skip_prologue): Add gdbarch
1082 * gdbarch.{c,h}: Regenerate.
1084 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1085 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1086 * avr-tdep.c (avr_skip_prologue): Likewise.
1087 * cris-tdep.c (cris_skip_prologue): Likewise.
1088 * frv-tdep.c (frv_skip_prologue): Likewise.
1089 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1090 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1091 * i386-tdep.c (i386_skip_prologue): Likewise.
1092 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1093 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1094 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1095 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1096 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1097 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1098 * mep-tdep.c (mep_skip_prologue): Likewise.
1099 * mips-tdep.c (mips_skip_prologue): Likewise.
1100 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1101 * mt-tdep.c (mt_skip_prologue): Likewise.
1102 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1103 * score-tdep.c (score_skip_prologue): Likewise.
1104 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1105 * sh-tdep.c (sh_skip_prologue): Likewise.
1106 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1107 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1108 * spu-tdep.c (spu_skip_prologue): Likewise.
1109 * v850-tdep.c (v850_skip_prologue): Likewise.
1110 * vax-tdep.c (vax_skip_prologue): Likewise.
1111 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1112 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1114 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1115 current_gdbarch by gdbarch.
1116 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1117 * s390-tdep.c (s390_skip_prologue): Likewise.
1119 2008-01-10 Doug Evans <dje@google.com>
1121 * defs.h (struct continuation_arg): Fix typo in comment.
1122 * target.c (target_translate_tls_address): Fix comment spelling error.
1124 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1126 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1127 (DOUBLEST_SCAN_FORMAT): Likewise.
1128 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1129 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1130 * c-exp.y (parse_number): Likewise.
1131 * jv-exp.y (parse_number): Likewise.
1132 * objc-exp.y (parse_number): Likewise.
1133 * p-exp.y (parse_number): Likewise.
1135 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1137 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1138 (check_typedef): Likewise.
1140 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1142 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1143 seen_double_big_d, treat the new H, D, and DD modifiers as length
1146 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1148 * dwarf2read.c (read_enumeration_type): Add comment.
1150 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1152 * config.in: Regenerate.
1154 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1156 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1158 (ada_convert_actuals): Delete.
1159 * ada-lang.h (ada_convert_actual): Add declaration.
1160 (ada_convert_actuals): Remove declaration.
1161 * infcall.c: #include "ada-lang.h".
1162 (value_arg_coerce): Add new parameter sp. Update function
1163 documetnation. Add handling of Ada function call parameters.
1164 * Makefile.in (infcall.o): Update dependencies.
1166 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1168 * ada-lang.c (ensure_lval): Fix value lval kind.
1169 (convert_actual): Add handling for arguments passed by reference.
1171 2008-01-08 Doug Evans <dje@google.com>
1173 * dbxread.c (read_dbx_symtab): Fix indentation.
1175 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1177 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1178 (valarith.o): Depend on dfp.h.
1179 (valops.o): Likewise.
1180 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1181 (set_decnumber_context): New function.
1182 (decimal_check_errors): Likewise.
1183 (decimal_from_number): Likewise.
1184 (decimal_to_number): Likewise.
1185 (decimal_from_string): Use set_decnumber_context and
1186 decimal_check_errors.
1187 (decimal_from_integral): New function.
1188 (decimal_from_floating): Likewise.
1189 (decimal_to_double): Likewise.
1190 (promote_decimal): Likewise.
1191 (decimal_binop): Likewise.
1192 (decimal_is_zero): Likewise.
1193 (decimal_compare): Likewise.
1194 (decimal_convert): Likewise.
1195 * dfp.h (decimal_from_integral): New prototype.
1196 (decimal_from_floating): Likewise.
1197 (decimal_to_double): Likewise.
1198 (decimal_binop): Likewise.
1199 (decimal_is_zero): Likewise.
1200 (decimal_compare): Likewise.
1201 (decimal_convert): Likewise.
1202 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1203 call to value_from_decfloat.
1204 * valarith.c: Include dfp.h.
1205 (value_args_as_decimal): New function.
1206 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1207 (value_logical_not): Likewise.
1208 (value_equal): Likewise.
1209 (value_less): Likewise.
1210 (value_pos): Likewise.
1211 (value_neg): Formatting fix.
1212 * valops.c: Include dfp.h.
1213 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1214 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1215 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1216 (value_from_decfloat): Remove expect_type argument.
1217 * value.h (value_from_decfloat): Update prototype.
1219 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1221 Ignore change in name of dynamic linker during
1222 execution on Solaris. This also unbreaks pending breakpoints.
1224 * solist.h (struct target_so_ops): New field same.
1225 * solib-svr4.c (svr4_same): New.
1226 (_initialize_svr4_solib): Register svr4_same.
1227 * solib.c (update_solib_list): Use ops->same, if available.
1229 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1231 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1232 when using MS-DOS paths.
1234 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1236 * NEWS: Mention --pid and --core command line behaviour changes.
1238 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1240 * main.c (captured_main): Remove 'count' varible and the
1241 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1242 --pid options were issued simultaneously. If an explicit pid
1243 option was passed, don't fallback to core file. Detect extra
1244 arguments better in the presence of explicit pid or core
1247 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1249 * ada-lang.c (ada_which_variant_applies): Correctly compute
1250 the value of the discriminant when the variant record is packed.
1252 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1254 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1255 that are used to differentiate homonyms.
1257 2008-01-04 Jerome Guitton <guitton@adacore.com>
1259 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1260 when the type is an anonymous pointer type.
1261 (ada_check_typedef): Avoid a seg fault when the type is null.
1262 * ada-typeprint.c (print_array_type): Add support for pointer
1265 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1267 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1269 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1271 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1272 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1274 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1276 * ada-exp.y (chop_separator): New function.
1277 (write_selectors): Rewrite to re-use chop_separator.
1278 (ada_nget_field_index, get_symbol_field_type): New functions.
1279 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1282 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1284 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1285 of SYMBOL_VALUE when working with function symbols.
1287 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1289 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1290 expressions. These expressions do not need to be rewriten.
1292 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1294 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1295 the given die is a declaration.
1297 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1299 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1300 Handle properly the case when the index type is an enumerated type.
1301 Do not return the subtype of the bounds type, just return the
1302 bounds type directly - this is not needed and is more consistent
1303 with what we do for arrays when no XA parallel type exists.
1305 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1307 * ada-lang.c (static_unwrap_type): Add forward declaration.
1308 (template_to_static_fixed_type): Fields of dynamic types sometimes
1309 also need to be unwrapped. Take this into account.
1310 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1311 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1312 * ada-typeprint.c (ada_print_type): Get the typename from
1313 the original type, not the base type.
1315 2008-01-03 Jerome Guitton <guitton@adacore.com>
1317 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1318 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1319 Update calls to ada_to_fixed_type.
1320 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1322 (ada_to_fixed_type): Add check_tag parameter; do not look for
1323 tag if null. When looking for a tag, use a fixed record type.
1324 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1325 * ada-valprint.c (printable_val_type, ada_value_print): Update
1326 calls to ada_to_fixed_type.
1328 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1330 * doublest.c (convert_floatformat_to_doublest): Call
1331 floatformat_to_doublest instead of floatformat_to_double and use
1333 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1334 instead of floatformat_from_double and use DOUBLEST variables.
1336 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1338 * MAINTAINERS (Write After Approval): Add self.
1340 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1342 * symfile.c (set_initial_language): Make non-static.
1343 * symfile.h (set_initial_language): Add declaration.
1344 * language.c: #include "symfile.h".
1345 (set_language): Call set_initial_language if the frame language
1346 could not be determined.
1348 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1350 * eval.c (evaluate_subexp_for_address): Provide frame address to
1351 locate_var_value only if it will be needed.
1353 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1355 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1357 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1359 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1360 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1361 This is needed to make sure that any other treatment applied
1362 to the resulting value does not fail for spurious reason,
1363 such as trying to take the address of this value.
1365 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1367 * ada-lang.c (ada_value_equal): Dereference reference types when
1370 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1372 Updated copyright notices for most files.
1374 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1376 * win32-nat.c (psapi_module_handle): Remove static.
1377 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1378 return first module found if base_address is zero. Don't initialize
1379 psapi function pointers here. Convert to cygwin paths when
1381 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1382 executable name. Use get_module_name when that fails or when
1384 (_initialize_psapi): New function. Initialize psapi stuff before it is
1385 needed or issue a warning if it is not found. Move psapi_module_handle
1388 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1390 * ada-lang.c (ada_remove_trailing_digits): New function.
1391 (ada_remove_po_subprogram_suffix): New function.
1392 (ada_decode): Improve. Move the description of the algorithm
1393 directly inside the code, instead of in the function global
1396 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1398 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1399 and always print the dereferenced value.
1401 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1403 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1404 of the case where the first argument is a reference.
1405 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1407 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1409 Implement support for Ada interface types.
1411 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1412 (ada_is_ignored_field): Ignore fields that are a dispatch table
1415 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1417 * top.c (print_gdb_version): Update copyright year.
1419 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1421 * ChangeLog-2007: New ChangeLog rotation.
1422 * ChangeLog: Reset for 2008.
1423 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1426 For older changes see ChangeLog-2007.
1432 version-control: never