1 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3 * amd64-tdep.c (amd64_classify): Add support for decimal float
5 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
6 use the struct return convention.
8 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
10 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
11 to old format. Discard breakpoint address if shared library is
13 (breakpoint_1): Adjust formatting of table header accordingly.
15 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
17 * remote.c (remote_get_threadlist): If the response
18 is empty, don't try to parse it.
20 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
22 Unbreak 'target async'.
23 * serial.c (serial_async): Set the
24 handler function before enabling async
27 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
29 * solib-svr4.c (enable_break): Convert r_brk to a code address.
31 2008-02-21 Pedro Alves <pedro@codesourcery.com>
33 * remote.c (extended_remote_attach_1): Set attach_flag.
34 (extended_remote_create_inferior_1): Clear attach_flag.
36 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
38 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
40 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
41 * solib-svr4.c (solib_svr4_r_brk): New.
42 (open_symbol_file_object, svr4_current_sos): Always check the
44 (svr4_fetch_objfile_link_map): Do not set debug_base.
45 (enable_break): Use r_brk if it is set.
46 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
47 (svr4_lp64_fetch_link_map_offsets): Likewise.
48 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
50 2008-02-20 Markus Deuling <deuling@de.ibm.com>
51 Mark Kettenis <kettenis@gnu.org>
53 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
55 (trad-frame.h): New include.
57 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
58 instead of frame_obstack_zalloc.
59 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
61 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
63 2008-02-20 Markus Deuling <deuling@de.ibm.com>
65 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
66 from disassemble_info instead of gdbarch_byte_order.
68 * mips-tdep.c (gdb_print_insn_mips): Likewise.
69 * arm-tdep.c (gdb_print_insn_arm): Likewise.
71 2008-02-20 Markus Deuling <deuling@de.ibm.com>
73 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
76 * gdbarch.{c,h}: Regenerate.
78 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
80 * mem-break.c (default_memory_insert_breakpoint)
81 (default_memory_remove_breakpoint): Likewise.
82 * target.h (default_memory_remove_breakpoint)
83 (default_memory_insert_breakpoint): Likewise.
85 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
86 parameter. Replace current_gdbarch by gdbarch.
87 * m32r-tdep.c (m32r_memory_insert_breakpoint)
88 (m32r_memory_remove_breakpoint): Likewise.
90 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
92 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
94 2008-02-19 Joel Brobecker <brobecker@adacore.com>
96 * NEWS: Add entry describing Add support improvements.
98 2008-02-18 Markus Deuling <deuling@de.ibm.com>
100 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
103 2008-02-18 Markus Deuling <deuling@de.ibm.com>
105 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
106 register_offset_hack anymore.
108 * regcache.{c,h} (register_offset_hack): Remove.
110 2008-02-18 Markus Deuling <deuling@de.ibm.com>
112 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
114 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
115 current_gdbarch by gdbarch.
116 (hppa64_hpux_find_global_pointer): Likewise.
117 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
118 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
121 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
123 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
125 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
128 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
129 replace current_gdbarch by gdbarch.
130 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
132 2008-02-18 Markus Deuling <deuling@de.ibm.com>
134 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
135 and replace current_gdbarch by gdbarch.
137 (store_register): Update call for exec_one_dummy_insn.
138 (fetch_register, store_register): Update call of regmap.
140 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
141 parameter and replace current_gdbarch by gdbarch.
143 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
144 the current architecture. Update call for getregs_supplies and
146 (ppcnbsd_fetch_inferior_registers): Likewise.
148 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
149 replace current_gdbarch by gdbarch.
150 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
151 get_regcache_arch to get at the current architecture. Update call for
154 2008-02-18 Markus Deuling <deuling@de.ibm.com>
156 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
159 2008-02-15 Markus Deuling <deuling@de.ibm.com>
161 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
163 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
165 * NEWS: Mention pending breakpints in MI.
167 2008-02-14 Markus Deuling <deuling@de.ibm.com>
169 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
171 2008-02-13 Markus Deuling <deuling@de.ibm.com>
173 Add script to build and test GDB using enable-targets=all.
175 * gdb_buildall.sh: New file.
177 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
179 * NEWS (New native configurations): Xtensa GNU/Linux.
180 (New targets): Xtensa GNU/Linux.
181 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
183 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
184 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
185 * configure.tgt (xtensa*-*-linux*): New entry.
186 * xtensa-config.c (xtensa_tdep): New variable.
187 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
188 (rmap): Change format based on new macro XTREG.
189 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
190 * xtensa-linux-nat.c: New.
191 * xtensa-linux-tdep.c: New.
192 * xtensa-xtregs.c: New.
193 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
194 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
195 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
196 (xtensa_register_t): New field coprocessor.
197 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
198 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
199 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
200 Update to handle privileged registers.
201 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
202 (xtensa_push_dummy_call): Set windowstart register correctly.
203 (call0_analyze_prologue): Initialize xtensa_default_isa.
204 (xtensa_derive_tdep): New.
205 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
206 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
207 Call xtensa_derive_tdep().
208 * config/xtensa/linux.mh: New.
209 * regformats/reg-xtensa.dat: New.
211 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
213 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
214 (filenames.h): New include.
215 * Makefile.in (corelow.o): Add dependency for filenames.h.
217 2008-02-08 Doug Evans <dje@google.com>
219 * source.c (find_and_open_source): Always rewrite absolute filenames.
221 2008-02-07 Doug Evans <dje@google.com>
223 * breakpoint.c: #include "hashtab.h".
224 (ambiguous_names_p): New fn.
225 (update_breakpoint_locations): When restoring bp enable status, don't
226 compare function names if any functions have same name.
227 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
229 2008-02-07 Joel Brobecker <brobecker@adacore.com>
231 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
232 instead of just a VEC*. Update use of SV.
233 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
235 2007-02-07 Joel Brobecker <brobecker@adacore.com>
237 * NEWS: Put all new commands since gdb-6.7 together.
239 2007-02-07 Joel Brobecker <brobecker@adacore.com>
241 * ada-lang.c: #include "vec.h".
242 (struct string_vector, new_string_vector, string_vector_append):
244 (char_ptr): New typedef.
245 (DEF_VEC_P (char_ptr)): New VEC type.
246 (symbol_completion_add): Update profile to take the new VEC type
247 instead of the old string_vector structure. Update code accordingly.
248 (ada_make_symbol_completion_list): Use the new VEC type instead of
249 the old string_vector structure, and update the code accordingly.
250 * Makefile.in (ada-lang.o): Add dependency on vec.h.
252 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
254 * p-exp.y: Set current_type in missing places.
255 (leftdiv_is_integer): New static variable.
256 Typecast right operand of BINOP_DIV to long_double if both operands
259 2008-02-06 Maciej W. Rozycki <macro@mips.com>
261 * remote-mips.c (set_breakpoint): Rename to...
262 (mips_set_breakpoint): ... this.
263 (clear_breakpoint): Rename to...
264 (mips_clear_breakpoint): ... this.
265 (common_breakpoint): Rename to...
266 (mips_common_breakpoint): ... this.
267 (check_lsi_error): Rename to...
268 (mips_check_lsi_error): ... this.
270 2007-02-05 Joel Brobecker <brobecker@adacore.com>
272 * language.h (struct language_defn): Add new field
273 la_make_symbol_completion_list.
274 * symtab.c (default_make_symbol_completion_list): Renames
275 make_symbol_completion_list.
276 (make_symbol_completion_list): New function.
277 * symtab.h (default_make_symbol_completion_list): Add declaration.
278 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
279 (auto_language, local_language): Likewise.
280 * objc-lang.c (objc_language_defn): Likewise.
281 * scm-lang.c (scm_language_defn): Likewise.
282 * m2-lang.c (m2_language_defn): Likewise.
283 * f-lang.c (f_language_defn): Likewise.
284 * jv-lang.c (java_language_defn): Likewise.
285 * p-lang.c (pascal_language_defn): Likewise.
286 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
287 (minimal_language_defn): Likewise.
288 * ada-lang.c (struct string_vector): New structure.
289 (new_string_vector, string_vector_append, ada_unqualified_name)
290 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
291 (ada_make_symbol_completion_list): New functions.
292 (ada_language_defn): Set la_make_symbol_completion_list.
293 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
294 this function is static.
296 2008-02-05 Kevin Buettner <kevinb@redhat.com>
298 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
299 to account for call site optimizations.
301 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
303 * tracepoint.c (read_actions): Handle end-of-text indicator
304 in action list properly. (Committed by Jim Blandy)
306 2008-02-05 Jim Blandy <jimb@red-bean.com>
308 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
309 pseudoregister, not an internal error.
310 Reported by: Andrzej Zaborowski
312 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
314 * varobj.c (c_value_of_variable): Use xstrdup.
316 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
318 Update stored rendition of varobj value when format changes.
319 * varobj.c (varobj_set_display_format): Recomputed
321 (c_value_of_variable): Return print_value.
323 2008-02-03 Doug Evans <dje@google.com>
325 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
326 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
327 * valops.c (value_one): New function.
328 * value.h (value_one): Declare.
330 Fix argument promotion for binary arithmetic ops for C.
331 * valarith.c (unop_result_type): New fn.
332 (binop_result_type): New fn.
333 (value_binop): Move result type computation to binop_result_type.
334 (value_pos, value_neg, value_complement): Move result type
335 computation to unop_result_type.
338 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
339 Return basetype, fieldno if found. All callers updated.
340 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
342 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
343 * symfile.h (fill_in_vptr_fieldno): Delete.
345 2008-02-02 Doug Evans <dje@google.com>
347 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
349 * typeprint.c (*): Whitespace cleanup.
351 2008-02-02 Mark Kettenis <kettenis@gnu.org>
352 Luis Machado <luisgpm@br.ibm.com>
353 Thiago Jung Bauermann <bauerman@br.ibm.com>
355 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
356 don't fit into registerson the stack the way GCC does.
358 2008-02-01 Joel Brobecker <brobecker@adacore.com>
360 * symtab.c (symbol_set_names): Do not add an entry in the demangling
361 hash table for Ada symbols. Just store the linkage name as is,
362 and leave the demangled_name as NULL.
364 2007-02-01 Joel Brobecker <brobecker@adacore.com>
366 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
368 (new_symbol): Likewise.
370 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
372 * breakpoint.c (break_command_1): Return void.
373 (break_command_really): Return void. Rethrow
374 exceptions instead of returning.
375 (gdb_breakpoint): Remove the error_message parameter.
376 Return void. Rename to set_breakpoint.
377 * gdb.h (gdb_breakpoint): Rename and move to...
378 * breakpoint.h (set_breakpoint): ...here.
379 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
380 event hooks even if exception is thrown. Adjust to
381 gdb_breakpoint interface changes.
384 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
386 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
387 float in both first and second word in the doubleword, to support
390 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
392 Properly rethrow exception. This fixes errors
393 about non-existent functions for -break-insert.
394 * breakpoint.c (break_command_really): Use throw_exception
395 for rethrowing. If rethrowing, don't print the exception.
397 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
399 * NEWS: Mention Decimal Floating Point support.
401 2008-01-31 Joel Brobecker <brobecker@adacore.com>
403 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
404 value type to builtin_type_void_func_ptr.
406 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
408 * s390-tdep.c (is_float_singleton, is_float_like,
409 alignment_of, s390_return_value): Make checks for
410 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
412 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
413 Thiago Jung Bauermann <bauerman@br.ibm.com>
415 * infcmd.c (default_print_registers_info): Also print hex
416 raw contents for TYPE_CODE_DECFLOAT registers.
417 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
418 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
419 (rs6000_register_name): Add support for DFP pseudo-registers.
420 (rs6000_pseudo_register_type): Likewise.
421 rs6000_pseudo_register_reggroup_p): Likewise.
422 (ppc_pseudo_register_read): New function.
423 (ppc_pseudo_register_write): Likewise.
424 (rs6000_pseudo_register_read): Likewise.
425 (rs6000_pseudo_register_write): Likewise.
426 (e500_pseudo_register_read): Move checks to
427 rs6000_pseudo_register_read.
428 (e500_pseudo_register_write): Move checks to
429 rs6000_pseudo_register_write.
430 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
431 rs6000_pseudo_register_read and rs6000_pseudo_register_write
432 in gdbarch if SPE or DFP is available. Adjust gdbarch's
433 num_pseudo_regs to account for DFP pseudo regs.
435 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
437 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
438 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
439 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
440 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
441 e500_pseudo_register_read, e500_pseudo_register_write): Use
442 IS_SPE_PSEUDOREG macro.
443 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
444 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
445 Remove initialization of tdep->ppc_ev31_regnum.
447 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
449 * printcmd.c (print_formatted): Handle references as for unformatted
452 2008-01-30 Joel Brobecker <brobecker@adacore.com>
454 * eval.c (evaluate_subexp_standard): Add handling of user
455 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
457 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
459 * eval.c (evaluate_subexp_standard): Support
462 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
464 * valarith.c (value_binop): Add floating-point BINOP_MIN and
466 For BINOP_EXP, use length and signedness of left operand only for
467 result, as for shifts.
468 For integral operands to BINOP_EXP, use new integer_pow and
469 uinteger_pow functions so as to get full range of results.
470 (integer_pow): New function.
471 (uinteger_pow): New function.
473 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
475 Use vector for varobj_list_children interface.
476 * gdb/varobj.c (varobj_list_children): Return vector
478 * gdb/varobj.h (varobj_list_children): Adjust
480 (varobj_p): Declare. Declare vector thereof.
481 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
482 for varobj_list_children change.
483 * Makefile.in (varobj_h): Update dependencies.
485 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
487 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
488 TYPE_CODE_DECFLOAT arguments.
489 (ppc64_sysv_abi_push_dummy_call) Likewise.
490 (get_decimal_float_return_value): New function.
491 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
492 values by calling get_decimal_float_return_value.
493 (ppc64_sysv_abi_return_value): Likewise.
495 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
497 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
498 for preprocessor macro information. Formatting changes.
500 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
502 * remote.c (struct remote_state): Add cached_wait_status.
503 (remote_exec_file): New variable.
504 (PACKET_vAttach, PACKET_vRun): New constants.
505 (extended_remote_restart): Do not query for status.
506 (struct start_remote_args): New.
507 (remote_start_remote): Take it as a second argument. Check
508 whether the target is running. Issue an error for non-running
509 non-extended targets. Cache the wait status. Set inferior_ptid
511 (remote_open_1): Prompt to disconnect non-running targets. Make
512 sure the target is marked running. Do not set inferior_ptid here.
513 Update call to remote_start_remote. Do not call remote_check_symbols
514 if the target is not running.
515 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
516 argument. Handle a non-running target.
517 (remote_detach): Use it.
518 (extended_remote_detach): New.
519 (remote_disconnect): Fix typo. Use remoute_mourn_1.
520 (extended_remote_attach_1, extended_remote_attach)
521 (extended_async_remote_attach): New.
522 (remote_vcont_resume): Remove unused variable.
523 (remote_wait, remote_async_wait): Use any cached wait status.
524 (putpkt_binary, getpkt): Clear any cached wait status.
525 (extended_remoute_mourn_1): New.
526 (extended_remote_mourn): Use it.
527 (extended_async_remote_mourn, extended_remote_run): New.
528 (extended_remote_create_inferior_1): New.
529 (extended_remote_create_inferior): Use it.
530 (extended_remote_async_create_inferior): Likewise.
531 (remote_xfer_partial): Skip for non-executing targets.
532 (init_extended_remote_ops): Set to_detach and to_attach.
533 (init_extended_async_remote_ops): Likewise. Use
534 extended_async_remote_mourn.
535 (_initialize_remote): Register vAttach, vRun, and
536 set remote exec-file.
537 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
539 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
541 * Makefile.in (symfile.o): Update.
542 * NEWS: Mention exec tracing support.
543 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
545 * infcmd.c (kill_if_already_running, detach_command)
546 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
547 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
548 (follow_exec): Do not check may_follow_exec. Do not mourn and push
549 targets. Apply the sysroot path to the loaded executable. Use
551 * linux-nat.c (linux_child_follow_fork): Print fork following
553 (kill_wait_callback): Kill again before waiting a second time.
554 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
557 2008-01-29 Joel Brobecker <brobecker@adacore.com>
559 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
561 2008-01-29 Joel Brobecker <brobecker@adacore.com>
563 * nto-tdep.h: Remove #include "defs.h".
564 * nto-tdep.c: Add #include "defs.h".
565 * Makefile.in (nto_tdep_h): Update dependencies.
566 (nto-tdep.o): Likewise.
568 2008-01-29 Joel Brobecker <brobecker@adacore.com>
570 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
572 (proceed, start_remote): Update call to wait_for_inferior.
573 * inferior.h (wait_for_inferior): Update declaration.
574 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
575 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
576 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
577 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
579 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
581 * varobj (adjust_value_for_child_access): Added checking for
582 returned value from gdb_value_ind.
583 (c_describe_child): Likewise.
584 (cplus_describe_child): Fixed a typo.
586 2008-01-29 Jim Blandy <jimb@red-bean.com>
588 * MAINTAINERS: Update my info.
590 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
592 Use multiple locations for hardware watchpoints.
593 This eliminates the need to traverse value chain, doing
594 various checks, in three different places.
596 * breakpoint.h (struct bp_location): New fields
597 lengths and watchpoint_type.
598 (struct breakpoint): Remove the val_chain field.
599 * breakpoint.c (is_hardware_watchpoint): New.
600 (free_valchain): Remove.
601 (update_watchpoint): New.
602 (insert_bp_location): For hardware watchpoint, just
604 (insert_breakpoints): Call update_watchpoint_locations
605 on all watchpoints. If we have failed to insert
606 any location of a hardware watchpoint, remove all inserted
608 (remove_breakpoint): For hardware watchpoints, directly
610 (watchpoints_triggered): Iterate over locations.
611 (bpstat_stop_status): Use only first location of
612 a resource watchpoint.
613 (delete_breakpoint): Don't call free_valchain.
614 (print_one_breakpoint): Don't print all
615 locations for watchpoints.
616 (breakpoint_re_set_one): Use update_watchpoint for
619 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
621 Don't reset watchpoint block on solib load.
623 * breakpoint.c (insert_bp_location): For watchpoints,
625 (breakpoint_re_set_one): Instead of recomputing value
626 and condition for watchpoints, just reset value and
627 let insert_breakpoints/insert_bp_location recompute it.
628 Don't do anything about disabled watchpoint.
630 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
632 * valarith.c (value_binop): Handle unsigned integer
635 2008-01-28 Kevin Buettner <kevinb@redhat.com>
637 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
638 instruction pattern that appears frequently in position
639 independent code. Fix bug in code which looks for "fmov" and
640 backtracks if no "fmov" is found.
642 2008-01-28 Doug Evans <dje@google.com>
644 * dbxread.c (read_dbx_symtab): Fix indentation.
645 Reformat comments to 80 columns.
646 Move local var def closer to only use.
648 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
650 * fork-child.c (SHELL_FILE): Remove #ifndef.
651 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
653 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
655 * i386-tdep.c (i386_skip_noop): New function.
656 (i386_analyze_prologue): Call i386_skip_noop function.
658 2008-01-24 Michael Snyder <msnyder@specifix.com>
660 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
661 * win32-nat.c (win32_xfer_partial): Ditto.
662 * target.c (default_xfer_partial): Minor whitespace adjustment.
664 2008-01-24 Pedro Alves <pedro@codesourcery.com>
666 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
667 strip bit 1 even if pc doesn't point to thumb code.
669 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
671 * remote.c (remote_wait): Handle SIGINT between packets.
672 (remote_async_wait): Likewise.
674 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
675 Chris Demetriou <cgd@google.com>
677 * thread.c (add_thread_silent): Renamed
679 (print_thread_events): New variable definition.
680 (show_print_thread_events): New function.
681 (_initialize_thread): Add "set print thread-events" and
682 "show print thread-events" commands.
683 (add_thread): Announce new thread.
684 * gdbthread.h (add_thread_silent): Declare.
685 (print_thread_events): New variable declaration.
686 * inf-ttrace.c (inf_ttrace_wait): Don't
687 inform about new thread, as add_thread is always
688 called too, and will take care of that.
689 * infrun.c (handle_inferior_event): Likewise.
690 * procfs.c (procfs_wait): Likewise.
691 * remote.c (remote_currthread): Likewise.
692 * sol-thread.c (sol_thread_wait): Likewise.
693 * win32-nat.c (get_win32_debug_event): Likewise.
694 * linux-thread-db.c (attach_thread): Likewise.
695 Remove the verbose parameter.
696 (check_event): Make detach_thread be verbose
697 only if print_thread_events is set.
698 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
699 about new thread. This is called only from
700 linux-thread-db.c:attach_thread, which will take care.
701 Remove the verbose parameter.
702 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
704 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
706 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
708 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
710 * breakpoint.c (break_command_really): New parameter
712 (break_command_1): Pass 0 as
713 ignore_count to break_command_really.
714 (gdb_breakpoint): Pass ignore_count to
715 break_command_really.
717 2008-01-21 Kevin Buettner <kevinb@redhat.com>
719 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
720 sigcontext struct via pointer.
721 (struct sigframe comment): Update to show new field `psc'.
723 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
725 * infrun.c (handle_inferior_event): If
726 we failed to remove breakpoints, error,
727 don't try to increment PC by hand.
729 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
731 Add NetBSD/hppa target and host support.
733 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
734 (hppabsd_gregset): Move to ...
735 (hppabsd_regset_from_core_section): Rename
736 hppaobsd_regset_from_core_section and move to ...
737 (hppabsd_find_global_pointer): Update comment.
738 (hppabsd_init_abi): Make global. Do not register
739 hppabsd_regset_from_core_section.
740 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
742 (_initialize_hppabsd_tdep): Move to ...
743 * hppaobsd-tdep.c: ... here. New file.
744 * hppnbsd-tdep.c: New file.
745 * hppnbsd-nat.c: New file.
746 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
747 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
748 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
749 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
750 * configure.host (hppa*-*-netbsd*): New entry.
751 * configure.tgt (hppa*-*-netbsd*): New entry.
752 (hppa*-*-openbsd*): Update.
753 * NEWS (New native configuration): Mention NetBSD/hppa.
754 (New targets): Mention NetBSD/hppa.
756 2008-01-18 Markus Deuling <deuling@de.ibm.com>
758 * gdbarch.sh (function_list): Add new property bits_big_endian to
760 * gdbarch.{c,h}: Regenerate.
762 * value.c (struct value): Replace BITS_BIG_ENDIAN by
763 gdbarch_bits_big_endian (comment).
764 (unpack_field_as_long, modify_field): Likewise.
765 * value.h: Likewise (comment).
766 * valops.c (value_slice): Likewise.
767 * valarith.c (value_subscript, value_bit_index): Likewise.
768 * gdbtypes.h (field): Likewise (comment).
769 * eval.c (evaluate_subexp_standard): Likewise.
770 * dwarf2read.c (dwarf2_add_field): Likewise.
771 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
772 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
774 * defs.h (BITS_BIG_ENDIAN): Remove.
776 2008-01-18 Markus Deuling <deuling@de.ibm.com>
778 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
780 * m2-exp.y (yylex): Likewise.
781 * objc-exp.y (yylex): Likewise.
783 * defs.h (DEPRECATED_STREQN): Remove.
785 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
787 * MAINTAINERS: Update my email address.
789 2008-01-17 Jim Blandy <jimb@codesourcery.com>
791 * README: Mention gdbserver/README.
793 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
795 * valarith.c (value_binop): Handle BINOP_INTDIV
796 for unsigned and signed integers.
798 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
800 * s390-tdep.c (s390_gdbarch_init): Set default long double
801 type to 128-bit IEEE quad.
803 2008-01-17 Joel Brobecker <brobecker@adacore.com>
805 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
807 2008-01-16 Mark Kettenis <kettenis@gnu.org>
809 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
811 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
812 * value.c: All callers changed.
814 2008-01-16 Markus Deuling <deuling@de.ibm.com>
816 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
817 DEPRECATED_STREQ by its expression.
818 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
819 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
820 (scan_xcoff_symtab): Likewise.
821 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
822 * f-lang.c (find_common_for_function): Likewise.
823 * objc-exp.y (parse_number): Likewise.
825 * defs.h (DEPRECATED_STREQ): Remove.
827 2008-01-16 Markus Deuling <deuling@de.ibm.com>
829 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
830 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
831 get_frame_arch to get at the current_architecture. Update AM33_MODE
833 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
834 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
836 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
838 2008-01-16 Markus Deuling <deuling@de.ibm.com>
840 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
842 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
844 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
845 current_gdbarch by gdbarch. Update caller.
847 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
848 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
849 the current architecture. Update calls of
850 amd64_native_gregset_supplies_p.
851 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
852 (amd64bsd_store_inferior_registers): Likewise.
854 2008-01-16 Markus Deuling <deuling@de.ibm.com>
856 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
857 Replace current_gdbarch by gdbarch. Update caller.
859 2008-01-16 Markus Deuling <deuling@de.ibm.com>
861 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
862 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
863 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
864 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
865 (stabsect_build_psymtabs): Fix indentation.
867 2008-01-15 Michael Snyder <msnyder@specifix.com>
869 * corelow.c (core_xfer_partial): Comment, cut/paste error.
871 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
873 * win32-nat.c (win32_create_inferior): Restore code calling
874 CloseHandle on ProcessInformation structure.
876 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
878 * configure.ac: Check for void * as 3 argument of ptrace.
879 * configure: regenerate.
881 2008-01-11 Markus Deuling <deuling@de.ibm.com>
883 * alpha-tdep.c (alpha_heuristic_proc_start)
884 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
885 current_gdbarch by gdbarch.
887 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
888 current architecture by frame_info. Update alpha_heuristic_proc_start
891 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
892 get_frame_arch to get at the current architecture by frame_info. Update
893 alpha_sigtramp_register_address call.
895 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
896 current_gdbarch by gdbarch. Update caller.
897 (convert_to_extended, convert_from_extended): Add endianess parameter
898 for comparison. Update caller.
899 (arm_extract_return_value, arm_store_return_value): Use
900 get_regcache_arch to get at the current architecture.
902 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
903 current_gdbarch by gdbarch. Update caller.
904 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
905 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
907 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
908 gdbarch as parameter. Update caller.
909 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
910 current_gdbarch by gdbarch. Update caller.
912 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
913 update caller. Replace current_gdbarch by gdbarch.
915 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
916 the current architecture. Replace current_gdbarch by gdbarch.
917 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
918 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
919 expression. Add gdbarch as parameter and replace current_gdbarch with
921 (M6811_TDEP): Remove.
922 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
924 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
925 current_gdbarch by gdbarch. Update caller.
927 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
929 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
932 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
933 caller. Relace current_gdbarch by gdbarch.
934 (altivec_register_p, spe_register_p): Likewise.
935 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
937 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
938 altivec_register_p and spe_register_p.
940 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
941 caller. Replace current_gdbarch by gdbarch.
942 (score_analyze_prologue): use get_frame_arch to get at the current
945 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
946 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
947 current_gdbarch by gdbarch. Update caller.
948 (sparc_frame_cache): Use get_frame_arch to get at the current
950 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
951 sparc_analyze_prologue.
953 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
956 2008-01-11 Markus Deuling <deuling@de.ibm.com>
958 * exec.c: #include "arch-utils.h"
959 (print_section_info): Use gdbarch_from_bfd to get at the
960 current architecture. Replace current_gdbarch. Fix indention. Replace
961 deprecated_print_address_numeric by paddress.
962 * Makefile.in (exec.o) Add dependency to arch-utils.h.
964 * valprint.c (val_print_string): Replace
965 deprecated_print_address_numeric.
966 * tracepoint.c (trace_mention, scope_info): Likewise.
967 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
968 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
969 (maintenance_check_symtabs): Likewise.
970 * symfile.c (list_overlays_command): Likewise.
971 * stack.c (frame_info, print_block_frame_labels): Likewise.
972 * printcmd.c (print_address, print_address_demangle)
973 (address_info): Likewise.
974 * corefile.c (memory_error): Likewise.
975 * infcmd.c (jump_command): Likewise.
976 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
977 (mention, delete_breakpoint): Likewise.
978 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
979 * dwarf2read.c (dump_die): Likewise.
980 * ada-valprint.c (ada_val_print_1): Likewise.
981 * f-valprint.c (f_val_print): Likewise.
982 * linux-fork.c (info_forks_command): Likewise.
983 * m32r-com.c (m32r_load_section, m32r_load)
984 (m32r_upload_command): Likewise.
986 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
988 2008-01-11 Markus Deuling <deuling@de.ibm.com>
990 * gdbarch.sh (skip_prologue): Add gdbarch
992 * gdbarch.{c,h}: Regenerate.
994 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
995 * amd64-tdep.c (amd64_skip_prologue): Likewise.
996 * avr-tdep.c (avr_skip_prologue): Likewise.
997 * cris-tdep.c (cris_skip_prologue): Likewise.
998 * frv-tdep.c (frv_skip_prologue): Likewise.
999 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1000 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1001 * i386-tdep.c (i386_skip_prologue): Likewise.
1002 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1003 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1004 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1005 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1006 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1007 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1008 * mep-tdep.c (mep_skip_prologue): Likewise.
1009 * mips-tdep.c (mips_skip_prologue): Likewise.
1010 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1011 * mt-tdep.c (mt_skip_prologue): Likewise.
1012 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1013 * score-tdep.c (score_skip_prologue): Likewise.
1014 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1015 * sh-tdep.c (sh_skip_prologue): Likewise.
1016 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1017 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1018 * spu-tdep.c (spu_skip_prologue): Likewise.
1019 * v850-tdep.c (v850_skip_prologue): Likewise.
1020 * vax-tdep.c (vax_skip_prologue): Likewise.
1021 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1022 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1024 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1025 current_gdbarch by gdbarch.
1026 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1027 * s390-tdep.c (s390_skip_prologue): Likewise.
1029 2008-01-10 Doug Evans <dje@google.com>
1031 * defs.h (struct continuation_arg): Fix typo in comment.
1032 * target.c (target_translate_tls_address): Fix comment spelling error.
1034 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1036 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1037 (DOUBLEST_SCAN_FORMAT): Likewise.
1038 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1039 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1040 * c-exp.y (parse_number): Likewise.
1041 * jv-exp.y (parse_number): Likewise.
1042 * objc-exp.y (parse_number): Likewise.
1043 * p-exp.y (parse_number): Likewise.
1045 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1047 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1048 (check_typedef): Likewise.
1050 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1052 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1053 seen_double_big_d, treat the new H, D, and DD modifiers as length
1056 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1058 * dwarf2read.c (read_enumeration_type): Add comment.
1060 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1062 * config.in: Regenerate.
1064 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1066 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1068 (ada_convert_actuals): Delete.
1069 * ada-lang.h (ada_convert_actual): Add declaration.
1070 (ada_convert_actuals): Remove declaration.
1071 * infcall.c: #include "ada-lang.h".
1072 (value_arg_coerce): Add new parameter sp. Update function
1073 documetnation. Add handling of Ada function call parameters.
1074 * Makefile.in (infcall.o): Update dependencies.
1076 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1078 * ada-lang.c (ensure_lval): Fix value lval kind.
1079 (convert_actual): Add handling for arguments passed by reference.
1081 2008-01-08 Doug Evans <dje@google.com>
1083 * dbxread.c (read_dbx_symtab): Fix indentation.
1085 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1087 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1088 (valarith.o): Depend on dfp.h.
1089 (valops.o): Likewise.
1090 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1091 (set_decnumber_context): New function.
1092 (decimal_check_errors): Likewise.
1093 (decimal_from_number): Likewise.
1094 (decimal_to_number): Likewise.
1095 (decimal_from_string): Use set_decnumber_context and
1096 decimal_check_errors.
1097 (decimal_from_integral): New function.
1098 (decimal_from_floating): Likewise.
1099 (decimal_to_double): Likewise.
1100 (promote_decimal): Likewise.
1101 (decimal_binop): Likewise.
1102 (decimal_is_zero): Likewise.
1103 (decimal_compare): Likewise.
1104 (decimal_convert): Likewise.
1105 * dfp.h (decimal_from_integral): New prototype.
1106 (decimal_from_floating): Likewise.
1107 (decimal_to_double): Likewise.
1108 (decimal_binop): Likewise.
1109 (decimal_is_zero): Likewise.
1110 (decimal_compare): Likewise.
1111 (decimal_convert): Likewise.
1112 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1113 call to value_from_decfloat.
1114 * valarith.c: Include dfp.h.
1115 (value_args_as_decimal): New function.
1116 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1117 (value_logical_not): Likewise.
1118 (value_equal): Likewise.
1119 (value_less): Likewise.
1120 (value_pos): Likewise.
1121 (value_neg): Formatting fix.
1122 * valops.c: Include dfp.h.
1123 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1124 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1125 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1126 (value_from_decfloat): Remove expect_type argument.
1127 * value.h (value_from_decfloat): Update prototype.
1129 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1131 Ignore change in name of dynamic linker during
1132 execution on Solaris. This also unbreaks pending breakpoints.
1134 * solist.h (struct target_so_ops): New field same.
1135 * solib-svr4.c (svr4_same): New.
1136 (_initialize_svr4_solib): Register svr4_same.
1137 * solib.c (update_solib_list): Use ops->same, if available.
1139 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1141 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1142 when using MS-DOS paths.
1144 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1146 * NEWS: Mention --pid and --core command line behaviour changes.
1148 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1150 * main.c (captured_main): Remove 'count' varible and the
1151 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1152 --pid options were issued simultaneously. If an explicit pid
1153 option was passed, don't fallback to core file. Detect extra
1154 arguments better in the presence of explicit pid or core
1157 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1159 * ada-lang.c (ada_which_variant_applies): Correctly compute
1160 the value of the discriminant when the variant record is packed.
1162 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1164 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1165 that are used to differentiate homonyms.
1167 2008-01-04 Jerome Guitton <guitton@adacore.com>
1169 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1170 when the type is an anonymous pointer type.
1171 (ada_check_typedef): Avoid a seg fault when the type is null.
1172 * ada-typeprint.c (print_array_type): Add support for pointer
1175 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1177 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1179 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1181 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1182 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1184 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1186 * ada-exp.y (chop_separator): New function.
1187 (write_selectors): Rewrite to re-use chop_separator.
1188 (ada_nget_field_index, get_symbol_field_type): New functions.
1189 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1192 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1194 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1195 of SYMBOL_VALUE when working with function symbols.
1197 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1199 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1200 expressions. These expressions do not need to be rewriten.
1202 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1204 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1205 the given die is a declaration.
1207 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1209 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1210 Handle properly the case when the index type is an enumerated type.
1211 Do not return the subtype of the bounds type, just return the
1212 bounds type directly - this is not needed and is more consistent
1213 with what we do for arrays when no XA parallel type exists.
1215 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1217 * ada-lang.c (static_unwrap_type): Add forward declaration.
1218 (template_to_static_fixed_type): Fields of dynamic types sometimes
1219 also need to be unwrapped. Take this into account.
1220 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1221 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1222 * ada-typeprint.c (ada_print_type): Get the typename from
1223 the original type, not the base type.
1225 2008-01-03 Jerome Guitton <guitton@adacore.com>
1227 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1228 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1229 Update calls to ada_to_fixed_type.
1230 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1232 (ada_to_fixed_type): Add check_tag parameter; do not look for
1233 tag if null. When looking for a tag, use a fixed record type.
1234 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1235 * ada-valprint.c (printable_val_type, ada_value_print): Update
1236 calls to ada_to_fixed_type.
1238 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1240 * doublest.c (convert_floatformat_to_doublest): Call
1241 floatformat_to_doublest instead of floatformat_to_double and use
1243 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1244 instead of floatformat_from_double and use DOUBLEST variables.
1246 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1248 * MAINTAINERS (Write After Approval): Add self.
1250 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1252 * symfile.c (set_initial_language): Make non-static.
1253 * symfile.h (set_initial_language): Add declaration.
1254 * language.c: #include "symfile.h".
1255 (set_language): Call set_initial_language if the frame language
1256 could not be determined.
1258 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1260 * eval.c (evaluate_subexp_for_address): Provide frame address to
1261 locate_var_value only if it will be needed.
1263 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1265 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1267 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1269 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1270 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1271 This is needed to make sure that any other treatment applied
1272 to the resulting value does not fail for spurious reason,
1273 such as trying to take the address of this value.
1275 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1277 * ada-lang.c (ada_value_equal): Dereference reference types when
1280 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1282 Updated copyright notices for most files.
1284 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1286 * win32-nat.c (psapi_module_handle): Remove static.
1287 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1288 return first module found if base_address is zero. Don't initialize
1289 psapi function pointers here. Convert to cygwin paths when
1291 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1292 executable name. Use get_module_name when that fails or when
1294 (_initialize_psapi): New function. Initialize psapi stuff before it is
1295 needed or issue a warning if it is not found. Move psapi_module_handle
1298 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1300 * ada-lang.c (ada_remove_trailing_digits): New function.
1301 (ada_remove_po_subprogram_suffix): New function.
1302 (ada_decode): Improve. Move the description of the algorithm
1303 directly inside the code, instead of in the function global
1306 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1308 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1309 and always print the dereferenced value.
1311 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1313 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1314 of the case where the first argument is a reference.
1315 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1317 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1319 Implement support for Ada interface types.
1321 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1322 (ada_is_ignored_field): Ignore fields that are a dispatch table
1325 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1327 * top.c (print_gdb_version): Update copyright year.
1329 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1331 * ChangeLog-2007: New ChangeLog rotation.
1332 * ChangeLog: Reset for 2008.
1333 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1336 For older changes see ChangeLog-2007.
1342 version-control: never