1 2008-03-13 Joel Brobecker <brobecker@adacore.com>
3 * version.in: Set version to 6.7.90.
5 2008-03-13 Joel Brobecker <brobecker@adacore.com>
7 * README: Update GDB version number to 6.7.90.
9 2008-03-12 Pedro Alves <pedro@codesourcery.com>
11 * thread.c (add_thread): Use printf_unfiltered to print.
13 2008-03-12 Joel Brobecker <brobecker@gnat.com>
15 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
16 that is true only on x86-solaris and x86_64-solaris.
17 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
18 with proc_get_LDT_entry.
20 2008-03-10 Matt Rice <ratmice@gmail.com>
22 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
24 2008-03-04 Daniel Jacobowitz <dan@codesourcery.com>
26 * frame.c (reinit_frame_cache): Only annotate if frames were
29 2008-03-04 Greg Law <glaw@undo-software.com>
31 * regcache.c (registers_changed): Call reinit_frame_cache.
33 2008-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
35 * amd64-tdep.c (amd64_classify): Add support for decimal float
37 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
38 use the struct return convention.
40 2008-02-29 Joel Brobecker <brobecker@adacore.com>
42 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
43 * version.in: Bump version to 6.7.90.20080226-cvs.
45 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
47 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
48 to old format. Discard breakpoint address if shared library is
50 (breakpoint_1): Adjust formatting of table header accordingly.
52 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
54 * remote.c (remote_get_threadlist): If the response
55 is empty, don't try to parse it.
57 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
59 Unbreak 'target async'.
60 * serial.c (serial_async): Set the
61 handler function before enabling async
64 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
66 * solib-svr4.c (enable_break): Convert r_brk to a code address.
68 2008-02-21 Pedro Alves <pedro@codesourcery.com>
70 * remote.c (extended_remote_attach_1): Set attach_flag.
71 (extended_remote_create_inferior_1): Clear attach_flag.
73 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
75 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
77 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
78 * solib-svr4.c (solib_svr4_r_brk): New.
79 (open_symbol_file_object, svr4_current_sos): Always check the
81 (svr4_fetch_objfile_link_map): Do not set debug_base.
82 (enable_break): Use r_brk if it is set.
83 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
84 (svr4_lp64_fetch_link_map_offsets): Likewise.
85 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
87 2008-02-20 Markus Deuling <deuling@de.ibm.com>
88 Mark Kettenis <kettenis@gnu.org>
90 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
92 (trad-frame.h): New include.
94 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
95 instead of frame_obstack_zalloc.
96 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
98 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
100 2008-02-20 Markus Deuling <deuling@de.ibm.com>
102 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
103 from disassemble_info instead of gdbarch_byte_order.
105 * mips-tdep.c (gdb_print_insn_mips): Likewise.
106 * arm-tdep.c (gdb_print_insn_arm): Likewise.
108 2008-02-20 Markus Deuling <deuling@de.ibm.com>
110 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
111 gdbarch as parameter.
113 * gdbarch.{c,h}: Regenerate.
115 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
117 * mem-break.c (default_memory_insert_breakpoint)
118 (default_memory_remove_breakpoint): Likewise.
119 * target.h (default_memory_remove_breakpoint)
120 (default_memory_insert_breakpoint): Likewise.
122 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
123 parameter. Replace current_gdbarch by gdbarch.
124 * m32r-tdep.c (m32r_memory_insert_breakpoint)
125 (m32r_memory_remove_breakpoint): Likewise.
127 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
129 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
131 2008-02-19 Joel Brobecker <brobecker@adacore.com>
133 * NEWS: Add entry describing Add support improvements.
135 2008-02-18 Markus Deuling <deuling@de.ibm.com>
137 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
140 2008-02-18 Markus Deuling <deuling@de.ibm.com>
142 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
143 register_offset_hack anymore.
145 * regcache.{c,h} (register_offset_hack): Remove.
147 2008-02-18 Markus Deuling <deuling@de.ibm.com>
149 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
151 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
152 current_gdbarch by gdbarch.
153 (hppa64_hpux_find_global_pointer): Likewise.
154 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
155 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
158 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
160 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
162 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
165 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
166 replace current_gdbarch by gdbarch.
167 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
169 2008-02-18 Markus Deuling <deuling@de.ibm.com>
171 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
172 and replace current_gdbarch by gdbarch.
174 (store_register): Update call for exec_one_dummy_insn.
175 (fetch_register, store_register): Update call of regmap.
177 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
178 parameter and replace current_gdbarch by gdbarch.
180 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
181 the current architecture. Update call for getregs_supplies and
183 (ppcnbsd_fetch_inferior_registers): Likewise.
185 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
186 replace current_gdbarch by gdbarch.
187 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
188 get_regcache_arch to get at the current architecture. Update call for
191 2008-02-18 Markus Deuling <deuling@de.ibm.com>
193 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
196 2008-02-15 Markus Deuling <deuling@de.ibm.com>
198 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
200 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
202 * NEWS: Mention pending breakpints in MI.
204 2008-02-14 Markus Deuling <deuling@de.ibm.com>
206 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
208 2008-02-13 Markus Deuling <deuling@de.ibm.com>
210 Add script to build and test GDB using enable-targets=all.
212 * gdb_buildall.sh: New file.
214 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
216 * NEWS (New native configurations): Xtensa GNU/Linux.
217 (New targets): Xtensa GNU/Linux.
218 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
220 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
221 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
222 * configure.tgt (xtensa*-*-linux*): New entry.
223 * xtensa-config.c (xtensa_tdep): New variable.
224 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
225 (rmap): Change format based on new macro XTREG.
226 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
227 * xtensa-linux-nat.c: New.
228 * xtensa-linux-tdep.c: New.
229 * xtensa-xtregs.c: New.
230 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
231 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
232 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
233 (xtensa_register_t): New field coprocessor.
234 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
235 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
236 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
237 Update to handle privileged registers.
238 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
239 (xtensa_push_dummy_call): Set windowstart register correctly.
240 (call0_analyze_prologue): Initialize xtensa_default_isa.
241 (xtensa_derive_tdep): New.
242 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
243 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
244 Call xtensa_derive_tdep().
245 * config/xtensa/linux.mh: New.
246 * regformats/reg-xtensa.dat: New.
248 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
250 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
251 (filenames.h): New include.
252 * Makefile.in (corelow.o): Add dependency for filenames.h.
254 2008-02-08 Doug Evans <dje@google.com>
256 * source.c (find_and_open_source): Always rewrite absolute filenames.
258 2008-02-07 Doug Evans <dje@google.com>
260 * breakpoint.c: #include "hashtab.h".
261 (ambiguous_names_p): New fn.
262 (update_breakpoint_locations): When restoring bp enable status, don't
263 compare function names if any functions have same name.
264 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
266 2008-02-07 Joel Brobecker <brobecker@adacore.com>
268 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
269 instead of just a VEC*. Update use of SV.
270 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
272 2007-02-07 Joel Brobecker <brobecker@adacore.com>
274 * NEWS: Put all new commands since gdb-6.7 together.
276 2007-02-07 Joel Brobecker <brobecker@adacore.com>
278 * ada-lang.c: #include "vec.h".
279 (struct string_vector, new_string_vector, string_vector_append):
281 (char_ptr): New typedef.
282 (DEF_VEC_P (char_ptr)): New VEC type.
283 (symbol_completion_add): Update profile to take the new VEC type
284 instead of the old string_vector structure. Update code accordingly.
285 (ada_make_symbol_completion_list): Use the new VEC type instead of
286 the old string_vector structure, and update the code accordingly.
287 * Makefile.in (ada-lang.o): Add dependency on vec.h.
289 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
291 * p-exp.y: Set current_type in missing places.
292 (leftdiv_is_integer): New static variable.
293 Typecast right operand of BINOP_DIV to long_double if both operands
296 2008-02-06 Maciej W. Rozycki <macro@mips.com>
298 * remote-mips.c (set_breakpoint): Rename to...
299 (mips_set_breakpoint): ... this.
300 (clear_breakpoint): Rename to...
301 (mips_clear_breakpoint): ... this.
302 (common_breakpoint): Rename to...
303 (mips_common_breakpoint): ... this.
304 (check_lsi_error): Rename to...
305 (mips_check_lsi_error): ... this.
307 2007-02-05 Joel Brobecker <brobecker@adacore.com>
309 * language.h (struct language_defn): Add new field
310 la_make_symbol_completion_list.
311 * symtab.c (default_make_symbol_completion_list): Renames
312 make_symbol_completion_list.
313 (make_symbol_completion_list): New function.
314 * symtab.h (default_make_symbol_completion_list): Add declaration.
315 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
316 (auto_language, local_language): Likewise.
317 * objc-lang.c (objc_language_defn): Likewise.
318 * scm-lang.c (scm_language_defn): Likewise.
319 * m2-lang.c (m2_language_defn): Likewise.
320 * f-lang.c (f_language_defn): Likewise.
321 * jv-lang.c (java_language_defn): Likewise.
322 * p-lang.c (pascal_language_defn): Likewise.
323 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
324 (minimal_language_defn): Likewise.
325 * ada-lang.c (struct string_vector): New structure.
326 (new_string_vector, string_vector_append, ada_unqualified_name)
327 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
328 (ada_make_symbol_completion_list): New functions.
329 (ada_language_defn): Set la_make_symbol_completion_list.
330 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
331 this function is static.
333 2008-02-05 Kevin Buettner <kevinb@redhat.com>
335 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
336 to account for call site optimizations.
338 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
340 * tracepoint.c (read_actions): Handle end-of-text indicator
341 in action list properly. (Committed by Jim Blandy)
343 2008-02-05 Jim Blandy <jimb@red-bean.com>
345 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
346 pseudoregister, not an internal error.
347 Reported by: Andrzej Zaborowski
349 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
351 * varobj.c (c_value_of_variable): Use xstrdup.
353 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
355 Update stored rendition of varobj value when format changes.
356 * varobj.c (varobj_set_display_format): Recomputed
358 (c_value_of_variable): Return print_value.
360 2008-02-03 Doug Evans <dje@google.com>
362 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
363 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
364 * valops.c (value_one): New function.
365 * value.h (value_one): Declare.
367 Fix argument promotion for binary arithmetic ops for C.
368 * valarith.c (unop_result_type): New fn.
369 (binop_result_type): New fn.
370 (value_binop): Move result type computation to binop_result_type.
371 (value_pos, value_neg, value_complement): Move result type
372 computation to unop_result_type.
375 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
376 Return basetype, fieldno if found. All callers updated.
377 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
379 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
380 * symfile.h (fill_in_vptr_fieldno): Delete.
382 2008-02-02 Doug Evans <dje@google.com>
384 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
386 * typeprint.c (*): Whitespace cleanup.
388 2008-02-02 Mark Kettenis <kettenis@gnu.org>
389 Luis Machado <luisgpm@br.ibm.com>
390 Thiago Jung Bauermann <bauerman@br.ibm.com>
392 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
393 don't fit into registerson the stack the way GCC does.
395 2008-02-01 Joel Brobecker <brobecker@adacore.com>
397 * symtab.c (symbol_set_names): Do not add an entry in the demangling
398 hash table for Ada symbols. Just store the linkage name as is,
399 and leave the demangled_name as NULL.
401 2007-02-01 Joel Brobecker <brobecker@adacore.com>
403 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
405 (new_symbol): Likewise.
407 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
409 * breakpoint.c (break_command_1): Return void.
410 (break_command_really): Return void. Rethrow
411 exceptions instead of returning.
412 (gdb_breakpoint): Remove the error_message parameter.
413 Return void. Rename to set_breakpoint.
414 * gdb.h (gdb_breakpoint): Rename and move to...
415 * breakpoint.h (set_breakpoint): ...here.
416 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
417 event hooks even if exception is thrown. Adjust to
418 gdb_breakpoint interface changes.
421 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
423 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
424 float in both first and second word in the doubleword, to support
427 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
429 Properly rethrow exception. This fixes errors
430 about non-existent functions for -break-insert.
431 * breakpoint.c (break_command_really): Use throw_exception
432 for rethrowing. If rethrowing, don't print the exception.
434 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
436 * NEWS: Mention Decimal Floating Point support.
438 2008-01-31 Joel Brobecker <brobecker@adacore.com>
440 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
441 value type to builtin_type_void_func_ptr.
443 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
445 * s390-tdep.c (is_float_singleton, is_float_like,
446 alignment_of, s390_return_value): Make checks for
447 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
449 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
450 Thiago Jung Bauermann <bauerman@br.ibm.com>
452 * infcmd.c (default_print_registers_info): Also print hex
453 raw contents for TYPE_CODE_DECFLOAT registers.
454 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
455 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
456 (rs6000_register_name): Add support for DFP pseudo-registers.
457 (rs6000_pseudo_register_type): Likewise.
458 rs6000_pseudo_register_reggroup_p): Likewise.
459 (ppc_pseudo_register_read): New function.
460 (ppc_pseudo_register_write): Likewise.
461 (rs6000_pseudo_register_read): Likewise.
462 (rs6000_pseudo_register_write): Likewise.
463 (e500_pseudo_register_read): Move checks to
464 rs6000_pseudo_register_read.
465 (e500_pseudo_register_write): Move checks to
466 rs6000_pseudo_register_write.
467 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
468 rs6000_pseudo_register_read and rs6000_pseudo_register_write
469 in gdbarch if SPE or DFP is available. Adjust gdbarch's
470 num_pseudo_regs to account for DFP pseudo regs.
472 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
474 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
475 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
476 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
477 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
478 e500_pseudo_register_read, e500_pseudo_register_write): Use
479 IS_SPE_PSEUDOREG macro.
480 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
481 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
482 Remove initialization of tdep->ppc_ev31_regnum.
484 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
486 * printcmd.c (print_formatted): Handle references as for unformatted
489 2008-01-30 Joel Brobecker <brobecker@adacore.com>
491 * eval.c (evaluate_subexp_standard): Add handling of user
492 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
494 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
496 * eval.c (evaluate_subexp_standard): Support
499 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
501 * valarith.c (value_binop): Add floating-point BINOP_MIN and
503 For BINOP_EXP, use length and signedness of left operand only for
504 result, as for shifts.
505 For integral operands to BINOP_EXP, use new integer_pow and
506 uinteger_pow functions so as to get full range of results.
507 (integer_pow): New function.
508 (uinteger_pow): New function.
510 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
512 Use vector for varobj_list_children interface.
513 * gdb/varobj.c (varobj_list_children): Return vector
515 * gdb/varobj.h (varobj_list_children): Adjust
517 (varobj_p): Declare. Declare vector thereof.
518 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
519 for varobj_list_children change.
520 * Makefile.in (varobj_h): Update dependencies.
522 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
524 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
525 TYPE_CODE_DECFLOAT arguments.
526 (ppc64_sysv_abi_push_dummy_call) Likewise.
527 (get_decimal_float_return_value): New function.
528 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
529 values by calling get_decimal_float_return_value.
530 (ppc64_sysv_abi_return_value): Likewise.
532 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
534 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
535 for preprocessor macro information. Formatting changes.
537 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
539 * remote.c (struct remote_state): Add cached_wait_status.
540 (remote_exec_file): New variable.
541 (PACKET_vAttach, PACKET_vRun): New constants.
542 (extended_remote_restart): Do not query for status.
543 (struct start_remote_args): New.
544 (remote_start_remote): Take it as a second argument. Check
545 whether the target is running. Issue an error for non-running
546 non-extended targets. Cache the wait status. Set inferior_ptid
548 (remote_open_1): Prompt to disconnect non-running targets. Make
549 sure the target is marked running. Do not set inferior_ptid here.
550 Update call to remote_start_remote. Do not call remote_check_symbols
551 if the target is not running.
552 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
553 argument. Handle a non-running target.
554 (remote_detach): Use it.
555 (extended_remote_detach): New.
556 (remote_disconnect): Fix typo. Use remoute_mourn_1.
557 (extended_remote_attach_1, extended_remote_attach)
558 (extended_async_remote_attach): New.
559 (remote_vcont_resume): Remove unused variable.
560 (remote_wait, remote_async_wait): Use any cached wait status.
561 (putpkt_binary, getpkt): Clear any cached wait status.
562 (extended_remoute_mourn_1): New.
563 (extended_remote_mourn): Use it.
564 (extended_async_remote_mourn, extended_remote_run): New.
565 (extended_remote_create_inferior_1): New.
566 (extended_remote_create_inferior): Use it.
567 (extended_remote_async_create_inferior): Likewise.
568 (remote_xfer_partial): Skip for non-executing targets.
569 (init_extended_remote_ops): Set to_detach and to_attach.
570 (init_extended_async_remote_ops): Likewise. Use
571 extended_async_remote_mourn.
572 (_initialize_remote): Register vAttach, vRun, and
573 set remote exec-file.
574 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
576 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
578 * Makefile.in (symfile.o): Update.
579 * NEWS: Mention exec tracing support.
580 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
582 * infcmd.c (kill_if_already_running, detach_command)
583 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
584 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
585 (follow_exec): Do not check may_follow_exec. Do not mourn and push
586 targets. Apply the sysroot path to the loaded executable. Use
588 * linux-nat.c (linux_child_follow_fork): Print fork following
590 (kill_wait_callback): Kill again before waiting a second time.
591 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
594 2008-01-29 Joel Brobecker <brobecker@adacore.com>
596 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
598 2008-01-29 Joel Brobecker <brobecker@adacore.com>
600 * nto-tdep.h: Remove #include "defs.h".
601 * nto-tdep.c: Add #include "defs.h".
602 * Makefile.in (nto_tdep_h): Update dependencies.
603 (nto-tdep.o): Likewise.
605 2008-01-29 Joel Brobecker <brobecker@adacore.com>
607 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
609 (proceed, start_remote): Update call to wait_for_inferior.
610 * inferior.h (wait_for_inferior): Update declaration.
611 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
612 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
613 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
614 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
616 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
618 * varobj (adjust_value_for_child_access): Added checking for
619 returned value from gdb_value_ind.
620 (c_describe_child): Likewise.
621 (cplus_describe_child): Fixed a typo.
623 2008-01-29 Jim Blandy <jimb@red-bean.com>
625 * MAINTAINERS: Update my info.
627 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
629 Use multiple locations for hardware watchpoints.
630 This eliminates the need to traverse value chain, doing
631 various checks, in three different places.
633 * breakpoint.h (struct bp_location): New fields
634 lengths and watchpoint_type.
635 (struct breakpoint): Remove the val_chain field.
636 * breakpoint.c (is_hardware_watchpoint): New.
637 (free_valchain): Remove.
638 (update_watchpoint): New.
639 (insert_bp_location): For hardware watchpoint, just
641 (insert_breakpoints): Call update_watchpoint_locations
642 on all watchpoints. If we have failed to insert
643 any location of a hardware watchpoint, remove all inserted
645 (remove_breakpoint): For hardware watchpoints, directly
647 (watchpoints_triggered): Iterate over locations.
648 (bpstat_stop_status): Use only first location of
649 a resource watchpoint.
650 (delete_breakpoint): Don't call free_valchain.
651 (print_one_breakpoint): Don't print all
652 locations for watchpoints.
653 (breakpoint_re_set_one): Use update_watchpoint for
656 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
658 Don't reset watchpoint block on solib load.
660 * breakpoint.c (insert_bp_location): For watchpoints,
662 (breakpoint_re_set_one): Instead of recomputing value
663 and condition for watchpoints, just reset value and
664 let insert_breakpoints/insert_bp_location recompute it.
665 Don't do anything about disabled watchpoint.
667 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
669 * valarith.c (value_binop): Handle unsigned integer
672 2008-01-28 Kevin Buettner <kevinb@redhat.com>
674 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
675 instruction pattern that appears frequently in position
676 independent code. Fix bug in code which looks for "fmov" and
677 backtracks if no "fmov" is found.
679 2008-01-28 Doug Evans <dje@google.com>
681 * dbxread.c (read_dbx_symtab): Fix indentation.
682 Reformat comments to 80 columns.
683 Move local var def closer to only use.
685 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
687 * fork-child.c (SHELL_FILE): Remove #ifndef.
688 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
690 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
692 * i386-tdep.c (i386_skip_noop): New function.
693 (i386_analyze_prologue): Call i386_skip_noop function.
695 2008-01-24 Michael Snyder <msnyder@specifix.com>
697 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
698 * win32-nat.c (win32_xfer_partial): Ditto.
699 * target.c (default_xfer_partial): Minor whitespace adjustment.
701 2008-01-24 Pedro Alves <pedro@codesourcery.com>
703 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
704 strip bit 1 even if pc doesn't point to thumb code.
706 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
708 * remote.c (remote_wait): Handle SIGINT between packets.
709 (remote_async_wait): Likewise.
711 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
712 Chris Demetriou <cgd@google.com>
714 * thread.c (add_thread_silent): Renamed
716 (print_thread_events): New variable definition.
717 (show_print_thread_events): New function.
718 (_initialize_thread): Add "set print thread-events" and
719 "show print thread-events" commands.
720 (add_thread): Announce new thread.
721 * gdbthread.h (add_thread_silent): Declare.
722 (print_thread_events): New variable declaration.
723 * inf-ttrace.c (inf_ttrace_wait): Don't
724 inform about new thread, as add_thread is always
725 called too, and will take care of that.
726 * infrun.c (handle_inferior_event): Likewise.
727 * procfs.c (procfs_wait): Likewise.
728 * remote.c (remote_currthread): Likewise.
729 * sol-thread.c (sol_thread_wait): Likewise.
730 * win32-nat.c (get_win32_debug_event): Likewise.
731 * linux-thread-db.c (attach_thread): Likewise.
732 Remove the verbose parameter.
733 (check_event): Make detach_thread be verbose
734 only if print_thread_events is set.
735 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
736 about new thread. This is called only from
737 linux-thread-db.c:attach_thread, which will take care.
738 Remove the verbose parameter.
739 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
741 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
743 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
745 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
747 * breakpoint.c (break_command_really): New parameter
749 (break_command_1): Pass 0 as
750 ignore_count to break_command_really.
751 (gdb_breakpoint): Pass ignore_count to
752 break_command_really.
754 2008-01-21 Kevin Buettner <kevinb@redhat.com>
756 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
757 sigcontext struct via pointer.
758 (struct sigframe comment): Update to show new field `psc'.
760 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
762 * infrun.c (handle_inferior_event): If
763 we failed to remove breakpoints, error,
764 don't try to increment PC by hand.
766 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
768 Add NetBSD/hppa target and host support.
770 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
771 (hppabsd_gregset): Move to ...
772 (hppabsd_regset_from_core_section): Rename
773 hppaobsd_regset_from_core_section and move to ...
774 (hppabsd_find_global_pointer): Update comment.
775 (hppabsd_init_abi): Make global. Do not register
776 hppabsd_regset_from_core_section.
777 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
779 (_initialize_hppabsd_tdep): Move to ...
780 * hppaobsd-tdep.c: ... here. New file.
781 * hppnbsd-tdep.c: New file.
782 * hppnbsd-nat.c: New file.
783 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
784 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
785 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
786 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
787 * configure.host (hppa*-*-netbsd*): New entry.
788 * configure.tgt (hppa*-*-netbsd*): New entry.
789 (hppa*-*-openbsd*): Update.
790 * NEWS (New native configuration): Mention NetBSD/hppa.
791 (New targets): Mention NetBSD/hppa.
793 2008-01-18 Markus Deuling <deuling@de.ibm.com>
795 * gdbarch.sh (function_list): Add new property bits_big_endian to
797 * gdbarch.{c,h}: Regenerate.
799 * value.c (struct value): Replace BITS_BIG_ENDIAN by
800 gdbarch_bits_big_endian (comment).
801 (unpack_field_as_long, modify_field): Likewise.
802 * value.h: Likewise (comment).
803 * valops.c (value_slice): Likewise.
804 * valarith.c (value_subscript, value_bit_index): Likewise.
805 * gdbtypes.h (field): Likewise (comment).
806 * eval.c (evaluate_subexp_standard): Likewise.
807 * dwarf2read.c (dwarf2_add_field): Likewise.
808 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
809 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
811 * defs.h (BITS_BIG_ENDIAN): Remove.
813 2008-01-18 Markus Deuling <deuling@de.ibm.com>
815 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
817 * m2-exp.y (yylex): Likewise.
818 * objc-exp.y (yylex): Likewise.
820 * defs.h (DEPRECATED_STREQN): Remove.
822 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
824 * MAINTAINERS: Update my email address.
826 2008-01-17 Jim Blandy <jimb@codesourcery.com>
828 * README: Mention gdbserver/README.
830 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
832 * valarith.c (value_binop): Handle BINOP_INTDIV
833 for unsigned and signed integers.
835 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
837 * s390-tdep.c (s390_gdbarch_init): Set default long double
838 type to 128-bit IEEE quad.
840 2008-01-17 Joel Brobecker <brobecker@adacore.com>
842 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
844 2008-01-16 Mark Kettenis <kettenis@gnu.org>
846 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
848 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
849 * value.c: All callers changed.
851 2008-01-16 Markus Deuling <deuling@de.ibm.com>
853 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
854 DEPRECATED_STREQ by its expression.
855 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
856 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
857 (scan_xcoff_symtab): Likewise.
858 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
859 * f-lang.c (find_common_for_function): Likewise.
860 * objc-exp.y (parse_number): Likewise.
862 * defs.h (DEPRECATED_STREQ): Remove.
864 2008-01-16 Markus Deuling <deuling@de.ibm.com>
866 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
867 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
868 get_frame_arch to get at the current_architecture. Update AM33_MODE
870 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
871 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
873 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
875 2008-01-16 Markus Deuling <deuling@de.ibm.com>
877 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
879 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
881 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
882 current_gdbarch by gdbarch. Update caller.
884 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
885 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
886 the current architecture. Update calls of
887 amd64_native_gregset_supplies_p.
888 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
889 (amd64bsd_store_inferior_registers): Likewise.
891 2008-01-16 Markus Deuling <deuling@de.ibm.com>
893 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
894 Replace current_gdbarch by gdbarch. Update caller.
896 2008-01-16 Markus Deuling <deuling@de.ibm.com>
898 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
899 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
900 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
901 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
902 (stabsect_build_psymtabs): Fix indentation.
904 2008-01-15 Michael Snyder <msnyder@specifix.com>
906 * corelow.c (core_xfer_partial): Comment, cut/paste error.
908 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
910 * win32-nat.c (win32_create_inferior): Restore code calling
911 CloseHandle on ProcessInformation structure.
913 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
915 * configure.ac: Check for void * as 3 argument of ptrace.
916 * configure: regenerate.
918 2008-01-11 Markus Deuling <deuling@de.ibm.com>
920 * alpha-tdep.c (alpha_heuristic_proc_start)
921 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
922 current_gdbarch by gdbarch.
924 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
925 current architecture by frame_info. Update alpha_heuristic_proc_start
928 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
929 get_frame_arch to get at the current architecture by frame_info. Update
930 alpha_sigtramp_register_address call.
932 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
933 current_gdbarch by gdbarch. Update caller.
934 (convert_to_extended, convert_from_extended): Add endianess parameter
935 for comparison. Update caller.
936 (arm_extract_return_value, arm_store_return_value): Use
937 get_regcache_arch to get at the current architecture.
939 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
940 current_gdbarch by gdbarch. Update caller.
941 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
942 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
944 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
945 gdbarch as parameter. Update caller.
946 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
947 current_gdbarch by gdbarch. Update caller.
949 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
950 update caller. Replace current_gdbarch by gdbarch.
952 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
953 the current architecture. Replace current_gdbarch by gdbarch.
954 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
955 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
956 expression. Add gdbarch as parameter and replace current_gdbarch with
958 (M6811_TDEP): Remove.
959 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
961 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
962 current_gdbarch by gdbarch. Update caller.
964 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
966 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
969 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
970 caller. Relace current_gdbarch by gdbarch.
971 (altivec_register_p, spe_register_p): Likewise.
972 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
974 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
975 altivec_register_p and spe_register_p.
977 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
978 caller. Replace current_gdbarch by gdbarch.
979 (score_analyze_prologue): use get_frame_arch to get at the current
982 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
983 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
984 current_gdbarch by gdbarch. Update caller.
985 (sparc_frame_cache): Use get_frame_arch to get at the current
987 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
988 sparc_analyze_prologue.
990 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
993 2008-01-11 Markus Deuling <deuling@de.ibm.com>
995 * exec.c: #include "arch-utils.h"
996 (print_section_info): Use gdbarch_from_bfd to get at the
997 current architecture. Replace current_gdbarch. Fix indention. Replace
998 deprecated_print_address_numeric by paddress.
999 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1001 * valprint.c (val_print_string): Replace
1002 deprecated_print_address_numeric.
1003 * tracepoint.c (trace_mention, scope_info): Likewise.
1004 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1005 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1006 (maintenance_check_symtabs): Likewise.
1007 * symfile.c (list_overlays_command): Likewise.
1008 * stack.c (frame_info, print_block_frame_labels): Likewise.
1009 * printcmd.c (print_address, print_address_demangle)
1010 (address_info): Likewise.
1011 * corefile.c (memory_error): Likewise.
1012 * infcmd.c (jump_command): Likewise.
1013 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1014 (mention, delete_breakpoint): Likewise.
1015 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1016 * dwarf2read.c (dump_die): Likewise.
1017 * ada-valprint.c (ada_val_print_1): Likewise.
1018 * f-valprint.c (f_val_print): Likewise.
1019 * linux-fork.c (info_forks_command): Likewise.
1020 * m32r-com.c (m32r_load_section, m32r_load)
1021 (m32r_upload_command): Likewise.
1023 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1025 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1027 * gdbarch.sh (skip_prologue): Add gdbarch
1029 * gdbarch.{c,h}: Regenerate.
1031 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1032 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1033 * avr-tdep.c (avr_skip_prologue): Likewise.
1034 * cris-tdep.c (cris_skip_prologue): Likewise.
1035 * frv-tdep.c (frv_skip_prologue): Likewise.
1036 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1037 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1038 * i386-tdep.c (i386_skip_prologue): Likewise.
1039 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1040 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1041 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1042 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1043 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1044 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1045 * mep-tdep.c (mep_skip_prologue): Likewise.
1046 * mips-tdep.c (mips_skip_prologue): Likewise.
1047 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1048 * mt-tdep.c (mt_skip_prologue): Likewise.
1049 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1050 * score-tdep.c (score_skip_prologue): Likewise.
1051 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1052 * sh-tdep.c (sh_skip_prologue): Likewise.
1053 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1054 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1055 * spu-tdep.c (spu_skip_prologue): Likewise.
1056 * v850-tdep.c (v850_skip_prologue): Likewise.
1057 * vax-tdep.c (vax_skip_prologue): Likewise.
1058 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1059 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1061 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1062 current_gdbarch by gdbarch.
1063 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1064 * s390-tdep.c (s390_skip_prologue): Likewise.
1066 2008-01-10 Doug Evans <dje@google.com>
1068 * defs.h (struct continuation_arg): Fix typo in comment.
1069 * target.c (target_translate_tls_address): Fix comment spelling error.
1071 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1073 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1074 (DOUBLEST_SCAN_FORMAT): Likewise.
1075 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1076 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1077 * c-exp.y (parse_number): Likewise.
1078 * jv-exp.y (parse_number): Likewise.
1079 * objc-exp.y (parse_number): Likewise.
1080 * p-exp.y (parse_number): Likewise.
1082 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1084 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1085 (check_typedef): Likewise.
1087 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1089 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1090 seen_double_big_d, treat the new H, D, and DD modifiers as length
1093 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1095 * dwarf2read.c (read_enumeration_type): Add comment.
1097 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1099 * config.in: Regenerate.
1101 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1103 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1105 (ada_convert_actuals): Delete.
1106 * ada-lang.h (ada_convert_actual): Add declaration.
1107 (ada_convert_actuals): Remove declaration.
1108 * infcall.c: #include "ada-lang.h".
1109 (value_arg_coerce): Add new parameter sp. Update function
1110 documetnation. Add handling of Ada function call parameters.
1111 * Makefile.in (infcall.o): Update dependencies.
1113 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1115 * ada-lang.c (ensure_lval): Fix value lval kind.
1116 (convert_actual): Add handling for arguments passed by reference.
1118 2008-01-08 Doug Evans <dje@google.com>
1120 * dbxread.c (read_dbx_symtab): Fix indentation.
1122 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1124 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1125 (valarith.o): Depend on dfp.h.
1126 (valops.o): Likewise.
1127 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1128 (set_decnumber_context): New function.
1129 (decimal_check_errors): Likewise.
1130 (decimal_from_number): Likewise.
1131 (decimal_to_number): Likewise.
1132 (decimal_from_string): Use set_decnumber_context and
1133 decimal_check_errors.
1134 (decimal_from_integral): New function.
1135 (decimal_from_floating): Likewise.
1136 (decimal_to_double): Likewise.
1137 (promote_decimal): Likewise.
1138 (decimal_binop): Likewise.
1139 (decimal_is_zero): Likewise.
1140 (decimal_compare): Likewise.
1141 (decimal_convert): Likewise.
1142 * dfp.h (decimal_from_integral): New prototype.
1143 (decimal_from_floating): Likewise.
1144 (decimal_to_double): Likewise.
1145 (decimal_binop): Likewise.
1146 (decimal_is_zero): Likewise.
1147 (decimal_compare): Likewise.
1148 (decimal_convert): Likewise.
1149 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1150 call to value_from_decfloat.
1151 * valarith.c: Include dfp.h.
1152 (value_args_as_decimal): New function.
1153 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1154 (value_logical_not): Likewise.
1155 (value_equal): Likewise.
1156 (value_less): Likewise.
1157 (value_pos): Likewise.
1158 (value_neg): Formatting fix.
1159 * valops.c: Include dfp.h.
1160 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1161 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1162 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1163 (value_from_decfloat): Remove expect_type argument.
1164 * value.h (value_from_decfloat): Update prototype.
1166 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1168 Ignore change in name of dynamic linker during
1169 execution on Solaris. This also unbreaks pending breakpoints.
1171 * solist.h (struct target_so_ops): New field same.
1172 * solib-svr4.c (svr4_same): New.
1173 (_initialize_svr4_solib): Register svr4_same.
1174 * solib.c (update_solib_list): Use ops->same, if available.
1176 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1178 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1179 when using MS-DOS paths.
1181 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1183 * NEWS: Mention --pid and --core command line behaviour changes.
1185 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1187 * main.c (captured_main): Remove 'count' varible and the
1188 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1189 --pid options were issued simultaneously. If an explicit pid
1190 option was passed, don't fallback to core file. Detect extra
1191 arguments better in the presence of explicit pid or core
1194 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1196 * ada-lang.c (ada_which_variant_applies): Correctly compute
1197 the value of the discriminant when the variant record is packed.
1199 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1201 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1202 that are used to differentiate homonyms.
1204 2008-01-04 Jerome Guitton <guitton@adacore.com>
1206 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1207 when the type is an anonymous pointer type.
1208 (ada_check_typedef): Avoid a seg fault when the type is null.
1209 * ada-typeprint.c (print_array_type): Add support for pointer
1212 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1214 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1216 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1218 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1219 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1221 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1223 * ada-exp.y (chop_separator): New function.
1224 (write_selectors): Rewrite to re-use chop_separator.
1225 (ada_nget_field_index, get_symbol_field_type): New functions.
1226 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1229 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1231 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1232 of SYMBOL_VALUE when working with function symbols.
1234 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1236 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1237 expressions. These expressions do not need to be rewriten.
1239 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1241 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1242 the given die is a declaration.
1244 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1246 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1247 Handle properly the case when the index type is an enumerated type.
1248 Do not return the subtype of the bounds type, just return the
1249 bounds type directly - this is not needed and is more consistent
1250 with what we do for arrays when no XA parallel type exists.
1252 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1254 * ada-lang.c (static_unwrap_type): Add forward declaration.
1255 (template_to_static_fixed_type): Fields of dynamic types sometimes
1256 also need to be unwrapped. Take this into account.
1257 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1258 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1259 * ada-typeprint.c (ada_print_type): Get the typename from
1260 the original type, not the base type.
1262 2008-01-03 Jerome Guitton <guitton@adacore.com>
1264 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1265 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1266 Update calls to ada_to_fixed_type.
1267 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1269 (ada_to_fixed_type): Add check_tag parameter; do not look for
1270 tag if null. When looking for a tag, use a fixed record type.
1271 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1272 * ada-valprint.c (printable_val_type, ada_value_print): Update
1273 calls to ada_to_fixed_type.
1275 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1277 * doublest.c (convert_floatformat_to_doublest): Call
1278 floatformat_to_doublest instead of floatformat_to_double and use
1280 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1281 instead of floatformat_from_double and use DOUBLEST variables.
1283 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1285 * MAINTAINERS (Write After Approval): Add self.
1287 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1289 * symfile.c (set_initial_language): Make non-static.
1290 * symfile.h (set_initial_language): Add declaration.
1291 * language.c: #include "symfile.h".
1292 (set_language): Call set_initial_language if the frame language
1293 could not be determined.
1295 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1297 * eval.c (evaluate_subexp_for_address): Provide frame address to
1298 locate_var_value only if it will be needed.
1300 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1302 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1304 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1306 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1307 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1308 This is needed to make sure that any other treatment applied
1309 to the resulting value does not fail for spurious reason,
1310 such as trying to take the address of this value.
1312 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1314 * ada-lang.c (ada_value_equal): Dereference reference types when
1317 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1319 Updated copyright notices for most files.
1321 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1323 * win32-nat.c (psapi_module_handle): Remove static.
1324 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1325 return first module found if base_address is zero. Don't initialize
1326 psapi function pointers here. Convert to cygwin paths when
1328 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1329 executable name. Use get_module_name when that fails or when
1331 (_initialize_psapi): New function. Initialize psapi stuff before it is
1332 needed or issue a warning if it is not found. Move psapi_module_handle
1335 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1337 * ada-lang.c (ada_remove_trailing_digits): New function.
1338 (ada_remove_po_subprogram_suffix): New function.
1339 (ada_decode): Improve. Move the description of the algorithm
1340 directly inside the code, instead of in the function global
1343 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1345 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1346 and always print the dereferenced value.
1348 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1350 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1351 of the case where the first argument is a reference.
1352 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1354 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1356 Implement support for Ada interface types.
1358 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1359 (ada_is_ignored_field): Ignore fields that are a dispatch table
1362 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1364 * top.c (print_gdb_version): Update copyright year.
1366 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1368 * ChangeLog-2007: New ChangeLog rotation.
1369 * ChangeLog: Reset for 2008.
1370 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1373 For older changes see ChangeLog-2007.
1379 version-control: never