1 2008-02-27 Joel Brobecker <brobecker@adacore.com>
3 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
4 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5 Set PC register type to "code_ptr".
6 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
10 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
11 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
12 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
15 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17 * regformats/regdat.sh: Rename init_registers function in
18 generated file to init_registers_${name}.
20 * regformats/reg-crisv32.dat: Set "name" to crisv32.
21 * regformats/reg-ppc64.dat: Set "name" to ppc64.
22 * regformats/reg-s390x.dat: Set "name" to s390x.
24 2008-02-26 Greg Law <glaw@undo-software.com>
26 * regcache.c (registers_changed): Call reinit_frame_cache.
28 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
30 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
31 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
32 and svr4_fetch_objfile_link_map.
33 * Makefile.in (sh-linux-tdep.o): Update.
35 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
37 * amd64-tdep.c (amd64_classify): Add support for decimal float
39 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
40 use the struct return convention.
42 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
44 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
45 to old format. Discard breakpoint address if shared library is
47 (breakpoint_1): Adjust formatting of table header accordingly.
49 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
51 * remote.c (remote_get_threadlist): If the response
52 is empty, don't try to parse it.
54 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
56 Unbreak 'target async'.
57 * serial.c (serial_async): Set the
58 handler function before enabling async
61 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
63 * solib-svr4.c (enable_break): Convert r_brk to a code address.
65 2008-02-21 Pedro Alves <pedro@codesourcery.com>
67 * remote.c (extended_remote_attach_1): Set attach_flag.
68 (extended_remote_create_inferior_1): Clear attach_flag.
70 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
72 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
74 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
75 * solib-svr4.c (solib_svr4_r_brk): New.
76 (open_symbol_file_object, svr4_current_sos): Always check the
78 (svr4_fetch_objfile_link_map): Do not set debug_base.
79 (enable_break): Use r_brk if it is set.
80 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
81 (svr4_lp64_fetch_link_map_offsets): Likewise.
82 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
84 2008-02-20 Markus Deuling <deuling@de.ibm.com>
85 Mark Kettenis <kettenis@gnu.org>
87 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
89 (trad-frame.h): New include.
91 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
92 instead of frame_obstack_zalloc.
93 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
95 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
97 2008-02-20 Markus Deuling <deuling@de.ibm.com>
99 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
100 from disassemble_info instead of gdbarch_byte_order.
102 * mips-tdep.c (gdb_print_insn_mips): Likewise.
103 * arm-tdep.c (gdb_print_insn_arm): Likewise.
105 2008-02-20 Markus Deuling <deuling@de.ibm.com>
107 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
108 gdbarch as parameter.
110 * gdbarch.{c,h}: Regenerate.
112 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
114 * mem-break.c (default_memory_insert_breakpoint)
115 (default_memory_remove_breakpoint): Likewise.
116 * target.h (default_memory_remove_breakpoint)
117 (default_memory_insert_breakpoint): Likewise.
119 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
120 parameter. Replace current_gdbarch by gdbarch.
121 * m32r-tdep.c (m32r_memory_insert_breakpoint)
122 (m32r_memory_remove_breakpoint): Likewise.
124 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
126 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
128 2008-02-19 Joel Brobecker <brobecker@adacore.com>
130 * NEWS: Add entry describing Add support improvements.
132 2008-02-18 Markus Deuling <deuling@de.ibm.com>
134 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
137 2008-02-18 Markus Deuling <deuling@de.ibm.com>
139 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
140 register_offset_hack anymore.
142 * regcache.{c,h} (register_offset_hack): Remove.
144 2008-02-18 Markus Deuling <deuling@de.ibm.com>
146 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
148 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
149 current_gdbarch by gdbarch.
150 (hppa64_hpux_find_global_pointer): Likewise.
151 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
152 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
155 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
157 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
159 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
162 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
163 replace current_gdbarch by gdbarch.
164 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
166 2008-02-18 Markus Deuling <deuling@de.ibm.com>
168 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
169 and replace current_gdbarch by gdbarch.
171 (store_register): Update call for exec_one_dummy_insn.
172 (fetch_register, store_register): Update call of regmap.
174 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
175 parameter and replace current_gdbarch by gdbarch.
177 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
178 the current architecture. Update call for getregs_supplies and
180 (ppcnbsd_fetch_inferior_registers): Likewise.
182 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
183 replace current_gdbarch by gdbarch.
184 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
185 get_regcache_arch to get at the current architecture. Update call for
188 2008-02-18 Markus Deuling <deuling@de.ibm.com>
190 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
193 2008-02-15 Markus Deuling <deuling@de.ibm.com>
195 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
197 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
199 * NEWS: Mention pending breakpints in MI.
201 2008-02-14 Markus Deuling <deuling@de.ibm.com>
203 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
205 2008-02-13 Markus Deuling <deuling@de.ibm.com>
207 Add script to build and test GDB using enable-targets=all.
209 * gdb_buildall.sh: New file.
211 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
213 * NEWS (New native configurations): Xtensa GNU/Linux.
214 (New targets): Xtensa GNU/Linux.
215 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
217 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
218 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
219 * configure.tgt (xtensa*-*-linux*): New entry.
220 * xtensa-config.c (xtensa_tdep): New variable.
221 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
222 (rmap): Change format based on new macro XTREG.
223 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
224 * xtensa-linux-nat.c: New.
225 * xtensa-linux-tdep.c: New.
226 * xtensa-xtregs.c: New.
227 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
228 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
229 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
230 (xtensa_register_t): New field coprocessor.
231 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
232 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
233 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
234 Update to handle privileged registers.
235 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
236 (xtensa_push_dummy_call): Set windowstart register correctly.
237 (call0_analyze_prologue): Initialize xtensa_default_isa.
238 (xtensa_derive_tdep): New.
239 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
240 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
241 Call xtensa_derive_tdep().
242 * config/xtensa/linux.mh: New.
243 * regformats/reg-xtensa.dat: New.
245 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
247 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
248 (filenames.h): New include.
249 * Makefile.in (corelow.o): Add dependency for filenames.h.
251 2008-02-08 Doug Evans <dje@google.com>
253 * source.c (find_and_open_source): Always rewrite absolute filenames.
255 2008-02-07 Doug Evans <dje@google.com>
257 * breakpoint.c: #include "hashtab.h".
258 (ambiguous_names_p): New fn.
259 (update_breakpoint_locations): When restoring bp enable status, don't
260 compare function names if any functions have same name.
261 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
263 2008-02-07 Joel Brobecker <brobecker@adacore.com>
265 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
266 instead of just a VEC*. Update use of SV.
267 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
269 2007-02-07 Joel Brobecker <brobecker@adacore.com>
271 * NEWS: Put all new commands since gdb-6.7 together.
273 2007-02-07 Joel Brobecker <brobecker@adacore.com>
275 * ada-lang.c: #include "vec.h".
276 (struct string_vector, new_string_vector, string_vector_append):
278 (char_ptr): New typedef.
279 (DEF_VEC_P (char_ptr)): New VEC type.
280 (symbol_completion_add): Update profile to take the new VEC type
281 instead of the old string_vector structure. Update code accordingly.
282 (ada_make_symbol_completion_list): Use the new VEC type instead of
283 the old string_vector structure, and update the code accordingly.
284 * Makefile.in (ada-lang.o): Add dependency on vec.h.
286 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
288 * p-exp.y: Set current_type in missing places.
289 (leftdiv_is_integer): New static variable.
290 Typecast right operand of BINOP_DIV to long_double if both operands
293 2008-02-06 Maciej W. Rozycki <macro@mips.com>
295 * remote-mips.c (set_breakpoint): Rename to...
296 (mips_set_breakpoint): ... this.
297 (clear_breakpoint): Rename to...
298 (mips_clear_breakpoint): ... this.
299 (common_breakpoint): Rename to...
300 (mips_common_breakpoint): ... this.
301 (check_lsi_error): Rename to...
302 (mips_check_lsi_error): ... this.
304 2007-02-05 Joel Brobecker <brobecker@adacore.com>
306 * language.h (struct language_defn): Add new field
307 la_make_symbol_completion_list.
308 * symtab.c (default_make_symbol_completion_list): Renames
309 make_symbol_completion_list.
310 (make_symbol_completion_list): New function.
311 * symtab.h (default_make_symbol_completion_list): Add declaration.
312 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
313 (auto_language, local_language): Likewise.
314 * objc-lang.c (objc_language_defn): Likewise.
315 * scm-lang.c (scm_language_defn): Likewise.
316 * m2-lang.c (m2_language_defn): Likewise.
317 * f-lang.c (f_language_defn): Likewise.
318 * jv-lang.c (java_language_defn): Likewise.
319 * p-lang.c (pascal_language_defn): Likewise.
320 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
321 (minimal_language_defn): Likewise.
322 * ada-lang.c (struct string_vector): New structure.
323 (new_string_vector, string_vector_append, ada_unqualified_name)
324 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
325 (ada_make_symbol_completion_list): New functions.
326 (ada_language_defn): Set la_make_symbol_completion_list.
327 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
328 this function is static.
330 2008-02-05 Kevin Buettner <kevinb@redhat.com>
332 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
333 to account for call site optimizations.
335 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
337 * tracepoint.c (read_actions): Handle end-of-text indicator
338 in action list properly. (Committed by Jim Blandy)
340 2008-02-05 Jim Blandy <jimb@red-bean.com>
342 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
343 pseudoregister, not an internal error.
344 Reported by: Andrzej Zaborowski
346 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
348 * varobj.c (c_value_of_variable): Use xstrdup.
350 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
352 Update stored rendition of varobj value when format changes.
353 * varobj.c (varobj_set_display_format): Recomputed
355 (c_value_of_variable): Return print_value.
357 2008-02-03 Doug Evans <dje@google.com>
359 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
360 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
361 * valops.c (value_one): New function.
362 * value.h (value_one): Declare.
364 Fix argument promotion for binary arithmetic ops for C.
365 * valarith.c (unop_result_type): New fn.
366 (binop_result_type): New fn.
367 (value_binop): Move result type computation to binop_result_type.
368 (value_pos, value_neg, value_complement): Move result type
369 computation to unop_result_type.
372 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
373 Return basetype, fieldno if found. All callers updated.
374 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
376 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
377 * symfile.h (fill_in_vptr_fieldno): Delete.
379 2008-02-02 Doug Evans <dje@google.com>
381 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
383 * typeprint.c (*): Whitespace cleanup.
385 2008-02-02 Mark Kettenis <kettenis@gnu.org>
386 Luis Machado <luisgpm@br.ibm.com>
387 Thiago Jung Bauermann <bauerman@br.ibm.com>
389 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
390 don't fit into registerson the stack the way GCC does.
392 2008-02-01 Joel Brobecker <brobecker@adacore.com>
394 * symtab.c (symbol_set_names): Do not add an entry in the demangling
395 hash table for Ada symbols. Just store the linkage name as is,
396 and leave the demangled_name as NULL.
398 2007-02-01 Joel Brobecker <brobecker@adacore.com>
400 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
402 (new_symbol): Likewise.
404 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
406 * breakpoint.c (break_command_1): Return void.
407 (break_command_really): Return void. Rethrow
408 exceptions instead of returning.
409 (gdb_breakpoint): Remove the error_message parameter.
410 Return void. Rename to set_breakpoint.
411 * gdb.h (gdb_breakpoint): Rename and move to...
412 * breakpoint.h (set_breakpoint): ...here.
413 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
414 event hooks even if exception is thrown. Adjust to
415 gdb_breakpoint interface changes.
418 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
420 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
421 float in both first and second word in the doubleword, to support
424 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
426 Properly rethrow exception. This fixes errors
427 about non-existent functions for -break-insert.
428 * breakpoint.c (break_command_really): Use throw_exception
429 for rethrowing. If rethrowing, don't print the exception.
431 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
433 * NEWS: Mention Decimal Floating Point support.
435 2008-01-31 Joel Brobecker <brobecker@adacore.com>
437 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
438 value type to builtin_type_void_func_ptr.
440 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
442 * s390-tdep.c (is_float_singleton, is_float_like,
443 alignment_of, s390_return_value): Make checks for
444 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
446 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
447 Thiago Jung Bauermann <bauerman@br.ibm.com>
449 * infcmd.c (default_print_registers_info): Also print hex
450 raw contents for TYPE_CODE_DECFLOAT registers.
451 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
452 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
453 (rs6000_register_name): Add support for DFP pseudo-registers.
454 (rs6000_pseudo_register_type): Likewise.
455 rs6000_pseudo_register_reggroup_p): Likewise.
456 (ppc_pseudo_register_read): New function.
457 (ppc_pseudo_register_write): Likewise.
458 (rs6000_pseudo_register_read): Likewise.
459 (rs6000_pseudo_register_write): Likewise.
460 (e500_pseudo_register_read): Move checks to
461 rs6000_pseudo_register_read.
462 (e500_pseudo_register_write): Move checks to
463 rs6000_pseudo_register_write.
464 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
465 rs6000_pseudo_register_read and rs6000_pseudo_register_write
466 in gdbarch if SPE or DFP is available. Adjust gdbarch's
467 num_pseudo_regs to account for DFP pseudo regs.
469 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
471 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
472 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
473 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
474 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
475 e500_pseudo_register_read, e500_pseudo_register_write): Use
476 IS_SPE_PSEUDOREG macro.
477 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
478 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
479 Remove initialization of tdep->ppc_ev31_regnum.
481 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
483 * printcmd.c (print_formatted): Handle references as for unformatted
486 2008-01-30 Joel Brobecker <brobecker@adacore.com>
488 * eval.c (evaluate_subexp_standard): Add handling of user
489 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
491 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
493 * eval.c (evaluate_subexp_standard): Support
496 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
498 * valarith.c (value_binop): Add floating-point BINOP_MIN and
500 For BINOP_EXP, use length and signedness of left operand only for
501 result, as for shifts.
502 For integral operands to BINOP_EXP, use new integer_pow and
503 uinteger_pow functions so as to get full range of results.
504 (integer_pow): New function.
505 (uinteger_pow): New function.
507 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
509 Use vector for varobj_list_children interface.
510 * gdb/varobj.c (varobj_list_children): Return vector
512 * gdb/varobj.h (varobj_list_children): Adjust
514 (varobj_p): Declare. Declare vector thereof.
515 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
516 for varobj_list_children change.
517 * Makefile.in (varobj_h): Update dependencies.
519 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
521 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
522 TYPE_CODE_DECFLOAT arguments.
523 (ppc64_sysv_abi_push_dummy_call) Likewise.
524 (get_decimal_float_return_value): New function.
525 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
526 values by calling get_decimal_float_return_value.
527 (ppc64_sysv_abi_return_value): Likewise.
529 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
531 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
532 for preprocessor macro information. Formatting changes.
534 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
536 * remote.c (struct remote_state): Add cached_wait_status.
537 (remote_exec_file): New variable.
538 (PACKET_vAttach, PACKET_vRun): New constants.
539 (extended_remote_restart): Do not query for status.
540 (struct start_remote_args): New.
541 (remote_start_remote): Take it as a second argument. Check
542 whether the target is running. Issue an error for non-running
543 non-extended targets. Cache the wait status. Set inferior_ptid
545 (remote_open_1): Prompt to disconnect non-running targets. Make
546 sure the target is marked running. Do not set inferior_ptid here.
547 Update call to remote_start_remote. Do not call remote_check_symbols
548 if the target is not running.
549 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
550 argument. Handle a non-running target.
551 (remote_detach): Use it.
552 (extended_remote_detach): New.
553 (remote_disconnect): Fix typo. Use remoute_mourn_1.
554 (extended_remote_attach_1, extended_remote_attach)
555 (extended_async_remote_attach): New.
556 (remote_vcont_resume): Remove unused variable.
557 (remote_wait, remote_async_wait): Use any cached wait status.
558 (putpkt_binary, getpkt): Clear any cached wait status.
559 (extended_remoute_mourn_1): New.
560 (extended_remote_mourn): Use it.
561 (extended_async_remote_mourn, extended_remote_run): New.
562 (extended_remote_create_inferior_1): New.
563 (extended_remote_create_inferior): Use it.
564 (extended_remote_async_create_inferior): Likewise.
565 (remote_xfer_partial): Skip for non-executing targets.
566 (init_extended_remote_ops): Set to_detach and to_attach.
567 (init_extended_async_remote_ops): Likewise. Use
568 extended_async_remote_mourn.
569 (_initialize_remote): Register vAttach, vRun, and
570 set remote exec-file.
571 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
573 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
575 * Makefile.in (symfile.o): Update.
576 * NEWS: Mention exec tracing support.
577 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
579 * infcmd.c (kill_if_already_running, detach_command)
580 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
581 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
582 (follow_exec): Do not check may_follow_exec. Do not mourn and push
583 targets. Apply the sysroot path to the loaded executable. Use
585 * linux-nat.c (linux_child_follow_fork): Print fork following
587 (kill_wait_callback): Kill again before waiting a second time.
588 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
591 2008-01-29 Joel Brobecker <brobecker@adacore.com>
593 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
595 2008-01-29 Joel Brobecker <brobecker@adacore.com>
597 * nto-tdep.h: Remove #include "defs.h".
598 * nto-tdep.c: Add #include "defs.h".
599 * Makefile.in (nto_tdep_h): Update dependencies.
600 (nto-tdep.o): Likewise.
602 2008-01-29 Joel Brobecker <brobecker@adacore.com>
604 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
606 (proceed, start_remote): Update call to wait_for_inferior.
607 * inferior.h (wait_for_inferior): Update declaration.
608 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
609 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
610 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
611 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
613 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
615 * varobj (adjust_value_for_child_access): Added checking for
616 returned value from gdb_value_ind.
617 (c_describe_child): Likewise.
618 (cplus_describe_child): Fixed a typo.
620 2008-01-29 Jim Blandy <jimb@red-bean.com>
622 * MAINTAINERS: Update my info.
624 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
626 Use multiple locations for hardware watchpoints.
627 This eliminates the need to traverse value chain, doing
628 various checks, in three different places.
630 * breakpoint.h (struct bp_location): New fields
631 lengths and watchpoint_type.
632 (struct breakpoint): Remove the val_chain field.
633 * breakpoint.c (is_hardware_watchpoint): New.
634 (free_valchain): Remove.
635 (update_watchpoint): New.
636 (insert_bp_location): For hardware watchpoint, just
638 (insert_breakpoints): Call update_watchpoint_locations
639 on all watchpoints. If we have failed to insert
640 any location of a hardware watchpoint, remove all inserted
642 (remove_breakpoint): For hardware watchpoints, directly
644 (watchpoints_triggered): Iterate over locations.
645 (bpstat_stop_status): Use only first location of
646 a resource watchpoint.
647 (delete_breakpoint): Don't call free_valchain.
648 (print_one_breakpoint): Don't print all
649 locations for watchpoints.
650 (breakpoint_re_set_one): Use update_watchpoint for
653 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
655 Don't reset watchpoint block on solib load.
657 * breakpoint.c (insert_bp_location): For watchpoints,
659 (breakpoint_re_set_one): Instead of recomputing value
660 and condition for watchpoints, just reset value and
661 let insert_breakpoints/insert_bp_location recompute it.
662 Don't do anything about disabled watchpoint.
664 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
666 * valarith.c (value_binop): Handle unsigned integer
669 2008-01-28 Kevin Buettner <kevinb@redhat.com>
671 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
672 instruction pattern that appears frequently in position
673 independent code. Fix bug in code which looks for "fmov" and
674 backtracks if no "fmov" is found.
676 2008-01-28 Doug Evans <dje@google.com>
678 * dbxread.c (read_dbx_symtab): Fix indentation.
679 Reformat comments to 80 columns.
680 Move local var def closer to only use.
682 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
684 * fork-child.c (SHELL_FILE): Remove #ifndef.
685 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
687 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
689 * i386-tdep.c (i386_skip_noop): New function.
690 (i386_analyze_prologue): Call i386_skip_noop function.
692 2008-01-24 Michael Snyder <msnyder@specifix.com>
694 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
695 * win32-nat.c (win32_xfer_partial): Ditto.
696 * target.c (default_xfer_partial): Minor whitespace adjustment.
698 2008-01-24 Pedro Alves <pedro@codesourcery.com>
700 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
701 strip bit 1 even if pc doesn't point to thumb code.
703 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
705 * remote.c (remote_wait): Handle SIGINT between packets.
706 (remote_async_wait): Likewise.
708 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
709 Chris Demetriou <cgd@google.com>
711 * thread.c (add_thread_silent): Renamed
713 (print_thread_events): New variable definition.
714 (show_print_thread_events): New function.
715 (_initialize_thread): Add "set print thread-events" and
716 "show print thread-events" commands.
717 (add_thread): Announce new thread.
718 * gdbthread.h (add_thread_silent): Declare.
719 (print_thread_events): New variable declaration.
720 * inf-ttrace.c (inf_ttrace_wait): Don't
721 inform about new thread, as add_thread is always
722 called too, and will take care of that.
723 * infrun.c (handle_inferior_event): Likewise.
724 * procfs.c (procfs_wait): Likewise.
725 * remote.c (remote_currthread): Likewise.
726 * sol-thread.c (sol_thread_wait): Likewise.
727 * win32-nat.c (get_win32_debug_event): Likewise.
728 * linux-thread-db.c (attach_thread): Likewise.
729 Remove the verbose parameter.
730 (check_event): Make detach_thread be verbose
731 only if print_thread_events is set.
732 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
733 about new thread. This is called only from
734 linux-thread-db.c:attach_thread, which will take care.
735 Remove the verbose parameter.
736 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
738 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
740 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
742 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
744 * breakpoint.c (break_command_really): New parameter
746 (break_command_1): Pass 0 as
747 ignore_count to break_command_really.
748 (gdb_breakpoint): Pass ignore_count to
749 break_command_really.
751 2008-01-21 Kevin Buettner <kevinb@redhat.com>
753 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
754 sigcontext struct via pointer.
755 (struct sigframe comment): Update to show new field `psc'.
757 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
759 * infrun.c (handle_inferior_event): If
760 we failed to remove breakpoints, error,
761 don't try to increment PC by hand.
763 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
765 Add NetBSD/hppa target and host support.
767 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
768 (hppabsd_gregset): Move to ...
769 (hppabsd_regset_from_core_section): Rename
770 hppaobsd_regset_from_core_section and move to ...
771 (hppabsd_find_global_pointer): Update comment.
772 (hppabsd_init_abi): Make global. Do not register
773 hppabsd_regset_from_core_section.
774 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
776 (_initialize_hppabsd_tdep): Move to ...
777 * hppaobsd-tdep.c: ... here. New file.
778 * hppnbsd-tdep.c: New file.
779 * hppnbsd-nat.c: New file.
780 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
781 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
782 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
783 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
784 * configure.host (hppa*-*-netbsd*): New entry.
785 * configure.tgt (hppa*-*-netbsd*): New entry.
786 (hppa*-*-openbsd*): Update.
787 * NEWS (New native configuration): Mention NetBSD/hppa.
788 (New targets): Mention NetBSD/hppa.
790 2008-01-18 Markus Deuling <deuling@de.ibm.com>
792 * gdbarch.sh (function_list): Add new property bits_big_endian to
794 * gdbarch.{c,h}: Regenerate.
796 * value.c (struct value): Replace BITS_BIG_ENDIAN by
797 gdbarch_bits_big_endian (comment).
798 (unpack_field_as_long, modify_field): Likewise.
799 * value.h: Likewise (comment).
800 * valops.c (value_slice): Likewise.
801 * valarith.c (value_subscript, value_bit_index): Likewise.
802 * gdbtypes.h (field): Likewise (comment).
803 * eval.c (evaluate_subexp_standard): Likewise.
804 * dwarf2read.c (dwarf2_add_field): Likewise.
805 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
806 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
808 * defs.h (BITS_BIG_ENDIAN): Remove.
810 2008-01-18 Markus Deuling <deuling@de.ibm.com>
812 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
814 * m2-exp.y (yylex): Likewise.
815 * objc-exp.y (yylex): Likewise.
817 * defs.h (DEPRECATED_STREQN): Remove.
819 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
821 * MAINTAINERS: Update my email address.
823 2008-01-17 Jim Blandy <jimb@codesourcery.com>
825 * README: Mention gdbserver/README.
827 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
829 * valarith.c (value_binop): Handle BINOP_INTDIV
830 for unsigned and signed integers.
832 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
834 * s390-tdep.c (s390_gdbarch_init): Set default long double
835 type to 128-bit IEEE quad.
837 2008-01-17 Joel Brobecker <brobecker@adacore.com>
839 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
841 2008-01-16 Mark Kettenis <kettenis@gnu.org>
843 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
845 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
846 * value.c: All callers changed.
848 2008-01-16 Markus Deuling <deuling@de.ibm.com>
850 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
851 DEPRECATED_STREQ by its expression.
852 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
853 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
854 (scan_xcoff_symtab): Likewise.
855 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
856 * f-lang.c (find_common_for_function): Likewise.
857 * objc-exp.y (parse_number): Likewise.
859 * defs.h (DEPRECATED_STREQ): Remove.
861 2008-01-16 Markus Deuling <deuling@de.ibm.com>
863 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
864 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
865 get_frame_arch to get at the current_architecture. Update AM33_MODE
867 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
868 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
870 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
872 2008-01-16 Markus Deuling <deuling@de.ibm.com>
874 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
876 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
878 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
879 current_gdbarch by gdbarch. Update caller.
881 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
882 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
883 the current architecture. Update calls of
884 amd64_native_gregset_supplies_p.
885 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
886 (amd64bsd_store_inferior_registers): Likewise.
888 2008-01-16 Markus Deuling <deuling@de.ibm.com>
890 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
891 Replace current_gdbarch by gdbarch. Update caller.
893 2008-01-16 Markus Deuling <deuling@de.ibm.com>
895 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
896 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
897 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
898 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
899 (stabsect_build_psymtabs): Fix indentation.
901 2008-01-15 Michael Snyder <msnyder@specifix.com>
903 * corelow.c (core_xfer_partial): Comment, cut/paste error.
905 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
907 * win32-nat.c (win32_create_inferior): Restore code calling
908 CloseHandle on ProcessInformation structure.
910 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
912 * configure.ac: Check for void * as 3 argument of ptrace.
913 * configure: regenerate.
915 2008-01-11 Markus Deuling <deuling@de.ibm.com>
917 * alpha-tdep.c (alpha_heuristic_proc_start)
918 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
919 current_gdbarch by gdbarch.
921 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
922 current architecture by frame_info. Update alpha_heuristic_proc_start
925 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
926 get_frame_arch to get at the current architecture by frame_info. Update
927 alpha_sigtramp_register_address call.
929 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
930 current_gdbarch by gdbarch. Update caller.
931 (convert_to_extended, convert_from_extended): Add endianess parameter
932 for comparison. Update caller.
933 (arm_extract_return_value, arm_store_return_value): Use
934 get_regcache_arch to get at the current architecture.
936 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
937 current_gdbarch by gdbarch. Update caller.
938 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
939 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
941 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
942 gdbarch as parameter. Update caller.
943 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
944 current_gdbarch by gdbarch. Update caller.
946 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
947 update caller. Replace current_gdbarch by gdbarch.
949 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
950 the current architecture. Replace current_gdbarch by gdbarch.
951 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
952 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
953 expression. Add gdbarch as parameter and replace current_gdbarch with
955 (M6811_TDEP): Remove.
956 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
958 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
959 current_gdbarch by gdbarch. Update caller.
961 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
963 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
966 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
967 caller. Relace current_gdbarch by gdbarch.
968 (altivec_register_p, spe_register_p): Likewise.
969 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
971 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
972 altivec_register_p and spe_register_p.
974 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
975 caller. Replace current_gdbarch by gdbarch.
976 (score_analyze_prologue): use get_frame_arch to get at the current
979 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
980 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
981 current_gdbarch by gdbarch. Update caller.
982 (sparc_frame_cache): Use get_frame_arch to get at the current
984 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
985 sparc_analyze_prologue.
987 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
990 2008-01-11 Markus Deuling <deuling@de.ibm.com>
992 * exec.c: #include "arch-utils.h"
993 (print_section_info): Use gdbarch_from_bfd to get at the
994 current architecture. Replace current_gdbarch. Fix indention. Replace
995 deprecated_print_address_numeric by paddress.
996 * Makefile.in (exec.o) Add dependency to arch-utils.h.
998 * valprint.c (val_print_string): Replace
999 deprecated_print_address_numeric.
1000 * tracepoint.c (trace_mention, scope_info): Likewise.
1001 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1002 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1003 (maintenance_check_symtabs): Likewise.
1004 * symfile.c (list_overlays_command): Likewise.
1005 * stack.c (frame_info, print_block_frame_labels): Likewise.
1006 * printcmd.c (print_address, print_address_demangle)
1007 (address_info): Likewise.
1008 * corefile.c (memory_error): Likewise.
1009 * infcmd.c (jump_command): Likewise.
1010 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1011 (mention, delete_breakpoint): Likewise.
1012 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1013 * dwarf2read.c (dump_die): Likewise.
1014 * ada-valprint.c (ada_val_print_1): Likewise.
1015 * f-valprint.c (f_val_print): Likewise.
1016 * linux-fork.c (info_forks_command): Likewise.
1017 * m32r-com.c (m32r_load_section, m32r_load)
1018 (m32r_upload_command): Likewise.
1020 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1022 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1024 * gdbarch.sh (skip_prologue): Add gdbarch
1026 * gdbarch.{c,h}: Regenerate.
1028 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1029 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1030 * avr-tdep.c (avr_skip_prologue): Likewise.
1031 * cris-tdep.c (cris_skip_prologue): Likewise.
1032 * frv-tdep.c (frv_skip_prologue): Likewise.
1033 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1034 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1035 * i386-tdep.c (i386_skip_prologue): Likewise.
1036 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1037 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1038 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1039 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1040 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1041 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1042 * mep-tdep.c (mep_skip_prologue): Likewise.
1043 * mips-tdep.c (mips_skip_prologue): Likewise.
1044 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1045 * mt-tdep.c (mt_skip_prologue): Likewise.
1046 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1047 * score-tdep.c (score_skip_prologue): Likewise.
1048 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1049 * sh-tdep.c (sh_skip_prologue): Likewise.
1050 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1051 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1052 * spu-tdep.c (spu_skip_prologue): Likewise.
1053 * v850-tdep.c (v850_skip_prologue): Likewise.
1054 * vax-tdep.c (vax_skip_prologue): Likewise.
1055 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1056 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1058 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1059 current_gdbarch by gdbarch.
1060 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1061 * s390-tdep.c (s390_skip_prologue): Likewise.
1063 2008-01-10 Doug Evans <dje@google.com>
1065 * defs.h (struct continuation_arg): Fix typo in comment.
1066 * target.c (target_translate_tls_address): Fix comment spelling error.
1068 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1070 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1071 (DOUBLEST_SCAN_FORMAT): Likewise.
1072 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1073 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1074 * c-exp.y (parse_number): Likewise.
1075 * jv-exp.y (parse_number): Likewise.
1076 * objc-exp.y (parse_number): Likewise.
1077 * p-exp.y (parse_number): Likewise.
1079 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1081 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1082 (check_typedef): Likewise.
1084 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1086 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1087 seen_double_big_d, treat the new H, D, and DD modifiers as length
1090 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1092 * dwarf2read.c (read_enumeration_type): Add comment.
1094 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1096 * config.in: Regenerate.
1098 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1100 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1102 (ada_convert_actuals): Delete.
1103 * ada-lang.h (ada_convert_actual): Add declaration.
1104 (ada_convert_actuals): Remove declaration.
1105 * infcall.c: #include "ada-lang.h".
1106 (value_arg_coerce): Add new parameter sp. Update function
1107 documetnation. Add handling of Ada function call parameters.
1108 * Makefile.in (infcall.o): Update dependencies.
1110 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1112 * ada-lang.c (ensure_lval): Fix value lval kind.
1113 (convert_actual): Add handling for arguments passed by reference.
1115 2008-01-08 Doug Evans <dje@google.com>
1117 * dbxread.c (read_dbx_symtab): Fix indentation.
1119 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1121 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1122 (valarith.o): Depend on dfp.h.
1123 (valops.o): Likewise.
1124 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1125 (set_decnumber_context): New function.
1126 (decimal_check_errors): Likewise.
1127 (decimal_from_number): Likewise.
1128 (decimal_to_number): Likewise.
1129 (decimal_from_string): Use set_decnumber_context and
1130 decimal_check_errors.
1131 (decimal_from_integral): New function.
1132 (decimal_from_floating): Likewise.
1133 (decimal_to_double): Likewise.
1134 (promote_decimal): Likewise.
1135 (decimal_binop): Likewise.
1136 (decimal_is_zero): Likewise.
1137 (decimal_compare): Likewise.
1138 (decimal_convert): Likewise.
1139 * dfp.h (decimal_from_integral): New prototype.
1140 (decimal_from_floating): Likewise.
1141 (decimal_to_double): Likewise.
1142 (decimal_binop): Likewise.
1143 (decimal_is_zero): Likewise.
1144 (decimal_compare): Likewise.
1145 (decimal_convert): Likewise.
1146 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1147 call to value_from_decfloat.
1148 * valarith.c: Include dfp.h.
1149 (value_args_as_decimal): New function.
1150 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1151 (value_logical_not): Likewise.
1152 (value_equal): Likewise.
1153 (value_less): Likewise.
1154 (value_pos): Likewise.
1155 (value_neg): Formatting fix.
1156 * valops.c: Include dfp.h.
1157 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1158 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1159 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1160 (value_from_decfloat): Remove expect_type argument.
1161 * value.h (value_from_decfloat): Update prototype.
1163 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1165 Ignore change in name of dynamic linker during
1166 execution on Solaris. This also unbreaks pending breakpoints.
1168 * solist.h (struct target_so_ops): New field same.
1169 * solib-svr4.c (svr4_same): New.
1170 (_initialize_svr4_solib): Register svr4_same.
1171 * solib.c (update_solib_list): Use ops->same, if available.
1173 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1175 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1176 when using MS-DOS paths.
1178 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1180 * NEWS: Mention --pid and --core command line behaviour changes.
1182 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1184 * main.c (captured_main): Remove 'count' varible and the
1185 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1186 --pid options were issued simultaneously. If an explicit pid
1187 option was passed, don't fallback to core file. Detect extra
1188 arguments better in the presence of explicit pid or core
1191 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1193 * ada-lang.c (ada_which_variant_applies): Correctly compute
1194 the value of the discriminant when the variant record is packed.
1196 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1198 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1199 that are used to differentiate homonyms.
1201 2008-01-04 Jerome Guitton <guitton@adacore.com>
1203 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1204 when the type is an anonymous pointer type.
1205 (ada_check_typedef): Avoid a seg fault when the type is null.
1206 * ada-typeprint.c (print_array_type): Add support for pointer
1209 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1211 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1213 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1215 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1216 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1218 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1220 * ada-exp.y (chop_separator): New function.
1221 (write_selectors): Rewrite to re-use chop_separator.
1222 (ada_nget_field_index, get_symbol_field_type): New functions.
1223 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1226 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1228 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1229 of SYMBOL_VALUE when working with function symbols.
1231 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1233 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1234 expressions. These expressions do not need to be rewriten.
1236 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1238 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1239 the given die is a declaration.
1241 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1243 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1244 Handle properly the case when the index type is an enumerated type.
1245 Do not return the subtype of the bounds type, just return the
1246 bounds type directly - this is not needed and is more consistent
1247 with what we do for arrays when no XA parallel type exists.
1249 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1251 * ada-lang.c (static_unwrap_type): Add forward declaration.
1252 (template_to_static_fixed_type): Fields of dynamic types sometimes
1253 also need to be unwrapped. Take this into account.
1254 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1255 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1256 * ada-typeprint.c (ada_print_type): Get the typename from
1257 the original type, not the base type.
1259 2008-01-03 Jerome Guitton <guitton@adacore.com>
1261 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1262 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1263 Update calls to ada_to_fixed_type.
1264 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1266 (ada_to_fixed_type): Add check_tag parameter; do not look for
1267 tag if null. When looking for a tag, use a fixed record type.
1268 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1269 * ada-valprint.c (printable_val_type, ada_value_print): Update
1270 calls to ada_to_fixed_type.
1272 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1274 * doublest.c (convert_floatformat_to_doublest): Call
1275 floatformat_to_doublest instead of floatformat_to_double and use
1277 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1278 instead of floatformat_from_double and use DOUBLEST variables.
1280 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1282 * MAINTAINERS (Write After Approval): Add self.
1284 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1286 * symfile.c (set_initial_language): Make non-static.
1287 * symfile.h (set_initial_language): Add declaration.
1288 * language.c: #include "symfile.h".
1289 (set_language): Call set_initial_language if the frame language
1290 could not be determined.
1292 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1294 * eval.c (evaluate_subexp_for_address): Provide frame address to
1295 locate_var_value only if it will be needed.
1297 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1299 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1301 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1303 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1304 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1305 This is needed to make sure that any other treatment applied
1306 to the resulting value does not fail for spurious reason,
1307 such as trying to take the address of this value.
1309 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1311 * ada-lang.c (ada_value_equal): Dereference reference types when
1314 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1316 Updated copyright notices for most files.
1318 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1320 * win32-nat.c (psapi_module_handle): Remove static.
1321 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1322 return first module found if base_address is zero. Don't initialize
1323 psapi function pointers here. Convert to cygwin paths when
1325 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1326 executable name. Use get_module_name when that fails or when
1328 (_initialize_psapi): New function. Initialize psapi stuff before it is
1329 needed or issue a warning if it is not found. Move psapi_module_handle
1332 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1334 * ada-lang.c (ada_remove_trailing_digits): New function.
1335 (ada_remove_po_subprogram_suffix): New function.
1336 (ada_decode): Improve. Move the description of the algorithm
1337 directly inside the code, instead of in the function global
1340 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1342 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1343 and always print the dereferenced value.
1345 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1347 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1348 of the case where the first argument is a reference.
1349 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1351 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1353 Implement support for Ada interface types.
1355 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1356 (ada_is_ignored_field): Ignore fields that are a dispatch table
1359 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1361 * top.c (print_gdb_version): Update copyright year.
1363 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1365 * ChangeLog-2007: New ChangeLog rotation.
1366 * ChangeLog: Reset for 2008.
1367 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1370 For older changes see ChangeLog-2007.
1376 version-control: never