1 2008-02-21 Pedro Alves <pedro@codesourcery.com>
3 * remote.c (extended_remote_attach_1): Set attach_flag.
4 (extended_remote_create_inferior_1): Clear attach_flag.
6 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
10 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
11 * solib-svr4.c (solib_svr4_r_brk): New.
12 (open_symbol_file_object, svr4_current_sos): Always check the
14 (svr4_fetch_objfile_link_map): Do not set debug_base.
15 (enable_break): Use r_brk if it is set.
16 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
17 (svr4_lp64_fetch_link_map_offsets): Likewise.
18 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
20 2008-02-20 Markus Deuling <deuling@de.ibm.com>
21 Mark Kettenis <kettenis@gnu.org>
23 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
25 (trad-frame.h): New include.
27 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
28 instead of frame_obstack_zalloc.
29 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
31 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
33 2008-02-20 Markus Deuling <deuling@de.ibm.com>
35 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
36 from disassemble_info instead of gdbarch_byte_order.
38 * mips-tdep.c (gdb_print_insn_mips): Likewise.
39 * arm-tdep.c (gdb_print_insn_arm): Likewise.
41 2008-02-20 Markus Deuling <deuling@de.ibm.com>
43 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
46 * gdbarch.{c,h}: Regenerate.
48 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
50 * mem-break.c (default_memory_insert_breakpoint)
51 (default_memory_remove_breakpoint): Likewise.
52 * target.h (default_memory_remove_breakpoint)
53 (default_memory_insert_breakpoint): Likewise.
55 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
56 parameter. Replace current_gdbarch by gdbarch.
57 * m32r-tdep.c (m32r_memory_insert_breakpoint)
58 (m32r_memory_remove_breakpoint): Likewise.
60 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
62 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
64 2008-02-19 Joel Brobecker <brobecker@adacore.com>
66 * NEWS: Add entry describing Add support improvements.
68 2008-02-18 Markus Deuling <deuling@de.ibm.com>
70 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
73 2008-02-18 Markus Deuling <deuling@de.ibm.com>
75 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
76 register_offset_hack anymore.
78 * regcache.{c,h} (register_offset_hack): Remove.
80 2008-02-18 Markus Deuling <deuling@de.ibm.com>
82 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
84 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
85 current_gdbarch by gdbarch.
86 (hppa64_hpux_find_global_pointer): Likewise.
87 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
88 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
91 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
93 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
95 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
98 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
99 replace current_gdbarch by gdbarch.
100 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
102 2008-02-18 Markus Deuling <deuling@de.ibm.com>
104 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
105 and replace current_gdbarch by gdbarch.
107 (store_register): Update call for exec_one_dummy_insn.
108 (fetch_register, store_register): Update call of regmap.
110 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
111 parameter and replace current_gdbarch by gdbarch.
113 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
114 the current architecture. Update call for getregs_supplies and
116 (ppcnbsd_fetch_inferior_registers): Likewise.
118 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
119 replace current_gdbarch by gdbarch.
120 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
121 get_regcache_arch to get at the current architecture. Update call for
124 2008-02-18 Markus Deuling <deuling@de.ibm.com>
126 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
129 2008-02-15 Markus Deuling <deuling@de.ibm.com>
131 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
133 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
135 * NEWS: Mention pending breakpints in MI.
137 2008-02-14 Markus Deuling <deuling@de.ibm.com>
139 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
141 2008-02-13 Markus Deuling <deuling@de.ibm.com>
143 Add script to build and test GDB using enable-targets=all.
145 * gdb_buildall.sh: New file.
147 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
149 * NEWS (New native configurations): Xtensa GNU/Linux.
150 (New targets): Xtensa GNU/Linux.
151 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
153 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
154 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
155 * configure.tgt (xtensa*-*-linux*): New entry.
156 * xtensa-config.c (xtensa_tdep): New variable.
157 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
158 (rmap): Change format based on new macro XTREG.
159 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
160 * xtensa-linux-nat.c: New.
161 * xtensa-linux-tdep.c: New.
162 * xtensa-xtregs.c: New.
163 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
164 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
165 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
166 (xtensa_register_t): New field coprocessor.
167 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
168 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
169 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
170 Update to handle privileged registers.
171 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
172 (xtensa_push_dummy_call): Set windowstart register correctly.
173 (call0_analyze_prologue): Initialize xtensa_default_isa.
174 (xtensa_derive_tdep): New.
175 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
176 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
177 Call xtensa_derive_tdep().
178 * config/xtensa/linux.mh: New.
179 * regformats/reg-xtensa.dat: New.
181 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
183 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
184 (filenames.h): New include.
185 * Makefile.in (corelow.o): Add dependency for filenames.h.
187 2008-02-08 Doug Evans <dje@google.com>
189 * source.c (find_and_open_source): Always rewrite absolute filenames.
191 2008-02-07 Doug Evans <dje@google.com>
193 * breakpoint.c: #include "hashtab.h".
194 (ambiguous_names_p): New fn.
195 (update_breakpoint_locations): When restoring bp enable status, don't
196 compare function names if any functions have same name.
197 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
199 2008-02-07 Joel Brobecker <brobecker@adacore.com>
201 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
202 instead of just a VEC*. Update use of SV.
203 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
205 2007-02-07 Joel Brobecker <brobecker@adacore.com>
207 * NEWS: Put all new commands since gdb-6.7 together.
209 2007-02-07 Joel Brobecker <brobecker@adacore.com>
211 * ada-lang.c: #include "vec.h".
212 (struct string_vector, new_string_vector, string_vector_append):
214 (char_ptr): New typedef.
215 (DEF_VEC_P (char_ptr)): New VEC type.
216 (symbol_completion_add): Update profile to take the new VEC type
217 instead of the old string_vector structure. Update code accordingly.
218 (ada_make_symbol_completion_list): Use the new VEC type instead of
219 the old string_vector structure, and update the code accordingly.
220 * Makefile.in (ada-lang.o): Add dependency on vec.h.
222 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
224 * p-exp.y: Set current_type in missing places.
225 (leftdiv_is_integer): New static variable.
226 Typecast right operand of BINOP_DIV to long_double if both operands
229 2008-02-06 Maciej W. Rozycki <macro@mips.com>
231 * remote-mips.c (set_breakpoint): Rename to...
232 (mips_set_breakpoint): ... this.
233 (clear_breakpoint): Rename to...
234 (mips_clear_breakpoint): ... this.
235 (common_breakpoint): Rename to...
236 (mips_common_breakpoint): ... this.
237 (check_lsi_error): Rename to...
238 (mips_check_lsi_error): ... this.
240 2007-02-05 Joel Brobecker <brobecker@adacore.com>
242 * language.h (struct language_defn): Add new field
243 la_make_symbol_completion_list.
244 * symtab.c (default_make_symbol_completion_list): Renames
245 make_symbol_completion_list.
246 (make_symbol_completion_list): New function.
247 * symtab.h (default_make_symbol_completion_list): Add declaration.
248 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
249 (auto_language, local_language): Likewise.
250 * objc-lang.c (objc_language_defn): Likewise.
251 * scm-lang.c (scm_language_defn): Likewise.
252 * m2-lang.c (m2_language_defn): Likewise.
253 * f-lang.c (f_language_defn): Likewise.
254 * jv-lang.c (java_language_defn): Likewise.
255 * p-lang.c (pascal_language_defn): Likewise.
256 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
257 (minimal_language_defn): Likewise.
258 * ada-lang.c (struct string_vector): New structure.
259 (new_string_vector, string_vector_append, ada_unqualified_name)
260 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
261 (ada_make_symbol_completion_list): New functions.
262 (ada_language_defn): Set la_make_symbol_completion_list.
263 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
264 this function is static.
266 2008-02-05 Kevin Buettner <kevinb@redhat.com>
268 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
269 to account for call site optimizations.
271 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
273 * tracepoint.c (read_actions): Handle end-of-text indicator
274 in action list properly. (Committed by Jim Blandy)
276 2008-02-05 Jim Blandy <jimb@red-bean.com>
278 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
279 pseudoregister, not an internal error.
280 Reported by: Andrzej Zaborowski
282 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
284 * varobj.c (c_value_of_variable): Use xstrdup.
286 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
288 Update stored rendition of varobj value when format changes.
289 * varobj.c (varobj_set_display_format): Recomputed
291 (c_value_of_variable): Return print_value.
293 2008-02-03 Doug Evans <dje@google.com>
295 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
296 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
297 * valops.c (value_one): New function.
298 * value.h (value_one): Declare.
300 Fix argument promotion for binary arithmetic ops for C.
301 * valarith.c (unop_result_type): New fn.
302 (binop_result_type): New fn.
303 (value_binop): Move result type computation to binop_result_type.
304 (value_pos, value_neg, value_complement): Move result type
305 computation to unop_result_type.
308 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
309 Return basetype, fieldno if found. All callers updated.
310 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
312 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
313 * symfile.h (fill_in_vptr_fieldno): Delete.
315 2008-02-02 Doug Evans <dje@google.com>
317 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
319 * typeprint.c (*): Whitespace cleanup.
321 2008-02-02 Mark Kettenis <kettenis@gnu.org>
322 Luis Machado <luisgpm@br.ibm.com>
323 Thiago Jung Bauermann <bauerman@br.ibm.com>
325 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
326 don't fit into registerson the stack the way GCC does.
328 2008-02-01 Joel Brobecker <brobecker@adacore.com>
330 * symtab.c (symbol_set_names): Do not add an entry in the demangling
331 hash table for Ada symbols. Just store the linkage name as is,
332 and leave the demangled_name as NULL.
334 2007-02-01 Joel Brobecker <brobecker@adacore.com>
336 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
338 (new_symbol): Likewise.
340 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
342 * breakpoint.c (break_command_1): Return void.
343 (break_command_really): Return void. Rethrow
344 exceptions instead of returning.
345 (gdb_breakpoint): Remove the error_message parameter.
346 Return void. Rename to set_breakpoint.
347 * gdb.h (gdb_breakpoint): Rename and move to...
348 * breakpoint.h (set_breakpoint): ...here.
349 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
350 event hooks even if exception is thrown. Adjust to
351 gdb_breakpoint interface changes.
354 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
356 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
357 float in both first and second word in the doubleword, to support
360 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
362 Properly rethrow exception. This fixes errors
363 about non-existent functions for -break-insert.
364 * breakpoint.c (break_command_really): Use throw_exception
365 for rethrowing. If rethrowing, don't print the exception.
367 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
369 * NEWS: Mention Decimal Floating Point support.
371 2008-01-31 Joel Brobecker <brobecker@adacore.com>
373 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
374 value type to builtin_type_void_func_ptr.
376 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
378 * s390-tdep.c (is_float_singleton, is_float_like,
379 alignment_of, s390_return_value): Make checks for
380 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
382 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
383 Thiago Jung Bauermann <bauerman@br.ibm.com>
385 * infcmd.c (default_print_registers_info): Also print hex
386 raw contents for TYPE_CODE_DECFLOAT registers.
387 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
388 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
389 (rs6000_register_name): Add support for DFP pseudo-registers.
390 (rs6000_pseudo_register_type): Likewise.
391 rs6000_pseudo_register_reggroup_p): Likewise.
392 (ppc_pseudo_register_read): New function.
393 (ppc_pseudo_register_write): Likewise.
394 (rs6000_pseudo_register_read): Likewise.
395 (rs6000_pseudo_register_write): Likewise.
396 (e500_pseudo_register_read): Move checks to
397 rs6000_pseudo_register_read.
398 (e500_pseudo_register_write): Move checks to
399 rs6000_pseudo_register_write.
400 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
401 rs6000_pseudo_register_read and rs6000_pseudo_register_write
402 in gdbarch if SPE or DFP is available. Adjust gdbarch's
403 num_pseudo_regs to account for DFP pseudo regs.
405 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
407 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
408 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
409 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
410 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
411 e500_pseudo_register_read, e500_pseudo_register_write): Use
412 IS_SPE_PSEUDOREG macro.
413 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
414 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
415 Remove initialization of tdep->ppc_ev31_regnum.
417 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
419 * printcmd.c (print_formatted): Handle references as for unformatted
422 2008-01-30 Joel Brobecker <brobecker@adacore.com>
424 * eval.c (evaluate_subexp_standard): Add handling of user
425 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
427 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
429 * eval.c (evaluate_subexp_standard): Support
432 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
434 * valarith.c (value_binop): Add floating-point BINOP_MIN and
436 For BINOP_EXP, use length and signedness of left operand only for
437 result, as for shifts.
438 For integral operands to BINOP_EXP, use new integer_pow and
439 uinteger_pow functions so as to get full range of results.
440 (integer_pow): New function.
441 (uinteger_pow): New function.
443 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
445 Use vector for varobj_list_children interface.
446 * gdb/varobj.c (varobj_list_children): Return vector
448 * gdb/varobj.h (varobj_list_children): Adjust
450 (varobj_p): Declare. Declare vector thereof.
451 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
452 for varobj_list_children change.
453 * Makefile.in (varobj_h): Update dependencies.
455 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
457 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
458 TYPE_CODE_DECFLOAT arguments.
459 (ppc64_sysv_abi_push_dummy_call) Likewise.
460 (get_decimal_float_return_value): New function.
461 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
462 values by calling get_decimal_float_return_value.
463 (ppc64_sysv_abi_return_value): Likewise.
465 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
467 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
468 for preprocessor macro information. Formatting changes.
470 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
472 * remote.c (struct remote_state): Add cached_wait_status.
473 (remote_exec_file): New variable.
474 (PACKET_vAttach, PACKET_vRun): New constants.
475 (extended_remote_restart): Do not query for status.
476 (struct start_remote_args): New.
477 (remote_start_remote): Take it as a second argument. Check
478 whether the target is running. Issue an error for non-running
479 non-extended targets. Cache the wait status. Set inferior_ptid
481 (remote_open_1): Prompt to disconnect non-running targets. Make
482 sure the target is marked running. Do not set inferior_ptid here.
483 Update call to remote_start_remote. Do not call remote_check_symbols
484 if the target is not running.
485 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
486 argument. Handle a non-running target.
487 (remote_detach): Use it.
488 (extended_remote_detach): New.
489 (remote_disconnect): Fix typo. Use remoute_mourn_1.
490 (extended_remote_attach_1, extended_remote_attach)
491 (extended_async_remote_attach): New.
492 (remote_vcont_resume): Remove unused variable.
493 (remote_wait, remote_async_wait): Use any cached wait status.
494 (putpkt_binary, getpkt): Clear any cached wait status.
495 (extended_remoute_mourn_1): New.
496 (extended_remote_mourn): Use it.
497 (extended_async_remote_mourn, extended_remote_run): New.
498 (extended_remote_create_inferior_1): New.
499 (extended_remote_create_inferior): Use it.
500 (extended_remote_async_create_inferior): Likewise.
501 (remote_xfer_partial): Skip for non-executing targets.
502 (init_extended_remote_ops): Set to_detach and to_attach.
503 (init_extended_async_remote_ops): Likewise. Use
504 extended_async_remote_mourn.
505 (_initialize_remote): Register vAttach, vRun, and
506 set remote exec-file.
507 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
509 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
511 * Makefile.in (symfile.o): Update.
512 * NEWS: Mention exec tracing support.
513 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
515 * infcmd.c (kill_if_already_running, detach_command)
516 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
517 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
518 (follow_exec): Do not check may_follow_exec. Do not mourn and push
519 targets. Apply the sysroot path to the loaded executable. Use
521 * linux-nat.c (linux_child_follow_fork): Print fork following
523 (kill_wait_callback): Kill again before waiting a second time.
524 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
527 2008-01-29 Joel Brobecker <brobecker@adacore.com>
529 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
531 2008-01-29 Joel Brobecker <brobecker@adacore.com>
533 * nto-tdep.h: Remove #include "defs.h".
534 * nto-tdep.c: Add #include "defs.h".
535 * Makefile.in (nto_tdep_h): Update dependencies.
536 (nto-tdep.o): Likewise.
538 2008-01-29 Joel Brobecker <brobecker@adacore.com>
540 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
542 (proceed, start_remote): Update call to wait_for_inferior.
543 * inferior.h (wait_for_inferior): Update declaration.
544 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
545 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
546 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
547 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
549 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
551 * varobj (adjust_value_for_child_access): Added checking for
552 returned value from gdb_value_ind.
553 (c_describe_child): Likewise.
554 (cplus_describe_child): Fixed a typo.
556 2008-01-29 Jim Blandy <jimb@red-bean.com>
558 * MAINTAINERS: Update my info.
560 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
562 Use multiple locations for hardware watchpoints.
563 This eliminates the need to traverse value chain, doing
564 various checks, in three different places.
566 * breakpoint.h (struct bp_location): New fields
567 lengths and watchpoint_type.
568 (struct breakpoint): Remove the val_chain field.
569 * breakpoint.c (is_hardware_watchpoint): New.
570 (free_valchain): Remove.
571 (update_watchpoint): New.
572 (insert_bp_location): For hardware watchpoint, just
574 (insert_breakpoints): Call update_watchpoint_locations
575 on all watchpoints. If we have failed to insert
576 any location of a hardware watchpoint, remove all inserted
578 (remove_breakpoint): For hardware watchpoints, directly
580 (watchpoints_triggered): Iterate over locations.
581 (bpstat_stop_status): Use only first location of
582 a resource watchpoint.
583 (delete_breakpoint): Don't call free_valchain.
584 (print_one_breakpoint): Don't print all
585 locations for watchpoints.
586 (breakpoint_re_set_one): Use update_watchpoint for
589 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
591 Don't reset watchpoint block on solib load.
593 * breakpoint.c (insert_bp_location): For watchpoints,
595 (breakpoint_re_set_one): Instead of recomputing value
596 and condition for watchpoints, just reset value and
597 let insert_breakpoints/insert_bp_location recompute it.
598 Don't do anything about disabled watchpoint.
600 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
602 * valarith.c (value_binop): Handle unsigned integer
605 2008-01-28 Kevin Buettner <kevinb@redhat.com>
607 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
608 instruction pattern that appears frequently in position
609 independent code. Fix bug in code which looks for "fmov" and
610 backtracks if no "fmov" is found.
612 2008-01-28 Doug Evans <dje@google.com>
614 * dbxread.c (read_dbx_symtab): Fix indentation.
615 Reformat comments to 80 columns.
616 Move local var def closer to only use.
618 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
620 * fork-child.c (SHELL_FILE): Remove #ifndef.
621 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
623 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
625 * i386-tdep.c (i386_skip_noop): New function.
626 (i386_analyze_prologue): Call i386_skip_noop function.
628 2008-01-24 Michael Snyder <msnyder@specifix.com>
630 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
631 * win32-nat.c (win32_xfer_partial): Ditto.
632 * target.c (default_xfer_partial): Minor whitespace adjustment.
634 2008-01-24 Pedro Alves <pedro@codesourcery.com>
636 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
637 strip bit 1 even if pc doesn't point to thumb code.
639 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
641 * remote.c (remote_wait): Handle SIGINT between packets.
642 (remote_async_wait): Likewise.
644 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
645 Chris Demetriou <cgd@google.com>
647 * thread.c (add_thread_silent): Renamed
649 (print_thread_events): New variable definition.
650 (show_print_thread_events): New function.
651 (_initialize_thread): Add "set print thread-events" and
652 "show print thread-events" commands.
653 (add_thread): Announce new thread.
654 * gdbthread.h (add_thread_silent): Declare.
655 (print_thread_events): New variable declaration.
656 * inf-ttrace.c (inf_ttrace_wait): Don't
657 inform about new thread, as add_thread is always
658 called too, and will take care of that.
659 * infrun.c (handle_inferior_event): Likewise.
660 * procfs.c (procfs_wait): Likewise.
661 * remote.c (remote_currthread): Likewise.
662 * sol-thread.c (sol_thread_wait): Likewise.
663 * win32-nat.c (get_win32_debug_event): Likewise.
664 * linux-thread-db.c (attach_thread): Likewise.
665 Remove the verbose parameter.
666 (check_event): Make detach_thread be verbose
667 only if print_thread_events is set.
668 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
669 about new thread. This is called only from
670 linux-thread-db.c:attach_thread, which will take care.
671 Remove the verbose parameter.
672 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
674 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
676 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
678 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
680 * breakpoint.c (break_command_really): New parameter
682 (break_command_1): Pass 0 as
683 ignore_count to break_command_really.
684 (gdb_breakpoint): Pass ignore_count to
685 break_command_really.
687 2008-01-21 Kevin Buettner <kevinb@redhat.com>
689 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
690 sigcontext struct via pointer.
691 (struct sigframe comment): Update to show new field `psc'.
693 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
695 * infrun.c (handle_inferior_event): If
696 we failed to remove breakpoints, error,
697 don't try to increment PC by hand.
699 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
701 Add NetBSD/hppa target and host support.
703 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
704 (hppabsd_gregset): Move to ...
705 (hppabsd_regset_from_core_section): Rename
706 hppaobsd_regset_from_core_section and move to ...
707 (hppabsd_find_global_pointer): Update comment.
708 (hppabsd_init_abi): Make global. Do not register
709 hppabsd_regset_from_core_section.
710 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
712 (_initialize_hppabsd_tdep): Move to ...
713 * hppaobsd-tdep.c: ... here. New file.
714 * hppnbsd-tdep.c: New file.
715 * hppnbsd-nat.c: New file.
716 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
717 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
718 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
719 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
720 * configure.host (hppa*-*-netbsd*): New entry.
721 * configure.tgt (hppa*-*-netbsd*): New entry.
722 (hppa*-*-openbsd*): Update.
723 * NEWS (New native configuration): Mention NetBSD/hppa.
724 (New targets): Mention NetBSD/hppa.
726 2008-01-18 Markus Deuling <deuling@de.ibm.com>
728 * gdbarch.sh (function_list): Add new property bits_big_endian to
730 * gdbarch.{c,h}: Regenerate.
732 * value.c (struct value): Replace BITS_BIG_ENDIAN by
733 gdbarch_bits_big_endian (comment).
734 (unpack_field_as_long, modify_field): Likewise.
735 * value.h: Likewise (comment).
736 * valops.c (value_slice): Likewise.
737 * valarith.c (value_subscript, value_bit_index): Likewise.
738 * gdbtypes.h (field): Likewise (comment).
739 * eval.c (evaluate_subexp_standard): Likewise.
740 * dwarf2read.c (dwarf2_add_field): Likewise.
741 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
742 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
744 * defs.h (BITS_BIG_ENDIAN): Remove.
746 2008-01-18 Markus Deuling <deuling@de.ibm.com>
748 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
750 * m2-exp.y (yylex): Likewise.
751 * objc-exp.y (yylex): Likewise.
753 * defs.h (DEPRECATED_STREQN): Remove.
755 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
757 * MAINTAINERS: Update my email address.
759 2008-01-17 Jim Blandy <jimb@codesourcery.com>
761 * README: Mention gdbserver/README.
763 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
765 * valarith.c (value_binop): Handle BINOP_INTDIV
766 for unsigned and signed integers.
768 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
770 * s390-tdep.c (s390_gdbarch_init): Set default long double
771 type to 128-bit IEEE quad.
773 2008-01-17 Joel Brobecker <brobecker@adacore.com>
775 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
777 2008-01-16 Mark Kettenis <kettenis@gnu.org>
779 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
781 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
782 * value.c: All callers changed.
784 2008-01-16 Markus Deuling <deuling@de.ibm.com>
786 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
787 DEPRECATED_STREQ by its expression.
788 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
789 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
790 (scan_xcoff_symtab): Likewise.
791 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
792 * f-lang.c (find_common_for_function): Likewise.
793 * objc-exp.y (parse_number): Likewise.
795 * defs.h (DEPRECATED_STREQ): Remove.
797 2008-01-16 Markus Deuling <deuling@de.ibm.com>
799 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
800 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
801 get_frame_arch to get at the current_architecture. Update AM33_MODE
803 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
804 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
806 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
808 2008-01-16 Markus Deuling <deuling@de.ibm.com>
810 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
812 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
814 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
815 current_gdbarch by gdbarch. Update caller.
817 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
818 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
819 the current architecture. Update calls of
820 amd64_native_gregset_supplies_p.
821 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
822 (amd64bsd_store_inferior_registers): Likewise.
824 2008-01-16 Markus Deuling <deuling@de.ibm.com>
826 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
827 Replace current_gdbarch by gdbarch. Update caller.
829 2008-01-16 Markus Deuling <deuling@de.ibm.com>
831 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
832 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
833 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
834 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
835 (stabsect_build_psymtabs): Fix indentation.
837 2008-01-15 Michael Snyder <msnyder@specifix.com>
839 * corelow.c (core_xfer_partial): Comment, cut/paste error.
841 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
843 * win32-nat.c (win32_create_inferior): Restore code calling
844 CloseHandle on ProcessInformation structure.
846 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
848 * configure.ac: Check for void * as 3 argument of ptrace.
849 * configure: regenerate.
851 2008-01-11 Markus Deuling <deuling@de.ibm.com>
853 * alpha-tdep.c (alpha_heuristic_proc_start)
854 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
855 current_gdbarch by gdbarch.
857 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
858 current architecture by frame_info. Update alpha_heuristic_proc_start
861 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
862 get_frame_arch to get at the current architecture by frame_info. Update
863 alpha_sigtramp_register_address call.
865 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
866 current_gdbarch by gdbarch. Update caller.
867 (convert_to_extended, convert_from_extended): Add endianess parameter
868 for comparison. Update caller.
869 (arm_extract_return_value, arm_store_return_value): Use
870 get_regcache_arch to get at the current architecture.
872 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
873 current_gdbarch by gdbarch. Update caller.
874 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
875 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
877 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
878 gdbarch as parameter. Update caller.
879 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
880 current_gdbarch by gdbarch. Update caller.
882 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
883 update caller. Replace current_gdbarch by gdbarch.
885 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
886 the current architecture. Replace current_gdbarch by gdbarch.
887 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
888 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
889 expression. Add gdbarch as parameter and replace current_gdbarch with
891 (M6811_TDEP): Remove.
892 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
894 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
895 current_gdbarch by gdbarch. Update caller.
897 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
899 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
902 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
903 caller. Relace current_gdbarch by gdbarch.
904 (altivec_register_p, spe_register_p): Likewise.
905 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
907 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
908 altivec_register_p and spe_register_p.
910 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
911 caller. Replace current_gdbarch by gdbarch.
912 (score_analyze_prologue): use get_frame_arch to get at the current
915 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
916 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
917 current_gdbarch by gdbarch. Update caller.
918 (sparc_frame_cache): Use get_frame_arch to get at the current
920 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
921 sparc_analyze_prologue.
923 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
926 2008-01-11 Markus Deuling <deuling@de.ibm.com>
928 * exec.c: #include "arch-utils.h"
929 (print_section_info): Use gdbarch_from_bfd to get at the
930 current architecture. Replace current_gdbarch. Fix indention. Replace
931 deprecated_print_address_numeric by paddress.
932 * Makefile.in (exec.o) Add dependency to arch-utils.h.
934 * valprint.c (val_print_string): Replace
935 deprecated_print_address_numeric.
936 * tracepoint.c (trace_mention, scope_info): Likewise.
937 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
938 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
939 (maintenance_check_symtabs): Likewise.
940 * symfile.c (list_overlays_command): Likewise.
941 * stack.c (frame_info, print_block_frame_labels): Likewise.
942 * printcmd.c (print_address, print_address_demangle)
943 (address_info): Likewise.
944 * corefile.c (memory_error): Likewise.
945 * infcmd.c (jump_command): Likewise.
946 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
947 (mention, delete_breakpoint): Likewise.
948 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
949 * dwarf2read.c (dump_die): Likewise.
950 * ada-valprint.c (ada_val_print_1): Likewise.
951 * f-valprint.c (f_val_print): Likewise.
952 * linux-fork.c (info_forks_command): Likewise.
953 * m32r-com.c (m32r_load_section, m32r_load)
954 (m32r_upload_command): Likewise.
956 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
958 2008-01-11 Markus Deuling <deuling@de.ibm.com>
960 * gdbarch.sh (skip_prologue): Add gdbarch
962 * gdbarch.{c,h}: Regenerate.
964 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
965 * amd64-tdep.c (amd64_skip_prologue): Likewise.
966 * avr-tdep.c (avr_skip_prologue): Likewise.
967 * cris-tdep.c (cris_skip_prologue): Likewise.
968 * frv-tdep.c (frv_skip_prologue): Likewise.
969 * h8300-tdep.c (h8300_skip_prologue): Likewise.
970 * hppa-tdep.c (hppa_skip_prologue): Likewise.
971 * i386-tdep.c (i386_skip_prologue): Likewise.
972 * ia64-tdep.c (ia64_skip_prologue): Likewise.
973 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
974 * m32r-tdep.c (m32r_skip_prologue): Likewise.
975 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
976 * m68k-tdep.c (m68k_skip_prologue): Likewise.
977 * m88k-tdep.c (m88k_skip_prologue): Likewise.
978 * mep-tdep.c (mep_skip_prologue): Likewise.
979 * mips-tdep.c (mips_skip_prologue): Likewise.
980 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
981 * mt-tdep.c (mt_skip_prologue): Likewise.
982 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
983 * score-tdep.c (score_skip_prologue): Likewise.
984 * sh64-tdep.c (sh64_skip_prologue): Likewise.
985 * sh-tdep.c (sh_skip_prologue): Likewise.
986 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
987 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
988 * spu-tdep.c (spu_skip_prologue): Likewise.
989 * v850-tdep.c (v850_skip_prologue): Likewise.
990 * vax-tdep.c (vax_skip_prologue): Likewise.
991 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
992 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
994 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
995 current_gdbarch by gdbarch.
996 * m32c-tdep.c (m32c_skip_prologue): Likewise.
997 * s390-tdep.c (s390_skip_prologue): Likewise.
999 2008-01-10 Doug Evans <dje@google.com>
1001 * defs.h (struct continuation_arg): Fix typo in comment.
1002 * target.c (target_translate_tls_address): Fix comment spelling error.
1004 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1006 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1007 (DOUBLEST_SCAN_FORMAT): Likewise.
1008 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1009 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1010 * c-exp.y (parse_number): Likewise.
1011 * jv-exp.y (parse_number): Likewise.
1012 * objc-exp.y (parse_number): Likewise.
1013 * p-exp.y (parse_number): Likewise.
1015 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1017 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1018 (check_typedef): Likewise.
1020 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1022 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1023 seen_double_big_d, treat the new H, D, and DD modifiers as length
1026 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1028 * dwarf2read.c (read_enumeration_type): Add comment.
1030 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1032 * config.in: Regenerate.
1034 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1036 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1038 (ada_convert_actuals): Delete.
1039 * ada-lang.h (ada_convert_actual): Add declaration.
1040 (ada_convert_actuals): Remove declaration.
1041 * infcall.c: #include "ada-lang.h".
1042 (value_arg_coerce): Add new parameter sp. Update function
1043 documetnation. Add handling of Ada function call parameters.
1044 * Makefile.in (infcall.o): Update dependencies.
1046 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1048 * ada-lang.c (ensure_lval): Fix value lval kind.
1049 (convert_actual): Add handling for arguments passed by reference.
1051 2008-01-08 Doug Evans <dje@google.com>
1053 * dbxread.c (read_dbx_symtab): Fix indentation.
1055 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1057 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1058 (valarith.o): Depend on dfp.h.
1059 (valops.o): Likewise.
1060 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1061 (set_decnumber_context): New function.
1062 (decimal_check_errors): Likewise.
1063 (decimal_from_number): Likewise.
1064 (decimal_to_number): Likewise.
1065 (decimal_from_string): Use set_decnumber_context and
1066 decimal_check_errors.
1067 (decimal_from_integral): New function.
1068 (decimal_from_floating): Likewise.
1069 (decimal_to_double): Likewise.
1070 (promote_decimal): Likewise.
1071 (decimal_binop): Likewise.
1072 (decimal_is_zero): Likewise.
1073 (decimal_compare): Likewise.
1074 (decimal_convert): Likewise.
1075 * dfp.h (decimal_from_integral): New prototype.
1076 (decimal_from_floating): Likewise.
1077 (decimal_to_double): Likewise.
1078 (decimal_binop): Likewise.
1079 (decimal_is_zero): Likewise.
1080 (decimal_compare): Likewise.
1081 (decimal_convert): Likewise.
1082 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1083 call to value_from_decfloat.
1084 * valarith.c: Include dfp.h.
1085 (value_args_as_decimal): New function.
1086 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1087 (value_logical_not): Likewise.
1088 (value_equal): Likewise.
1089 (value_less): Likewise.
1090 (value_pos): Likewise.
1091 (value_neg): Formatting fix.
1092 * valops.c: Include dfp.h.
1093 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1094 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1095 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1096 (value_from_decfloat): Remove expect_type argument.
1097 * value.h (value_from_decfloat): Update prototype.
1099 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1101 Ignore change in name of dynamic linker during
1102 execution on Solaris. This also unbreaks pending breakpoints.
1104 * solist.h (struct target_so_ops): New field same.
1105 * solib-svr4.c (svr4_same): New.
1106 (_initialize_svr4_solib): Register svr4_same.
1107 * solib.c (update_solib_list): Use ops->same, if available.
1109 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1111 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1112 when using MS-DOS paths.
1114 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1116 * NEWS: Mention --pid and --core command line behaviour changes.
1118 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1120 * main.c (captured_main): Remove 'count' varible and the
1121 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1122 --pid options were issued simultaneously. If an explicit pid
1123 option was passed, don't fallback to core file. Detect extra
1124 arguments better in the presence of explicit pid or core
1127 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1129 * ada-lang.c (ada_which_variant_applies): Correctly compute
1130 the value of the discriminant when the variant record is packed.
1132 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1134 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1135 that are used to differentiate homonyms.
1137 2008-01-04 Jerome Guitton <guitton@adacore.com>
1139 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1140 when the type is an anonymous pointer type.
1141 (ada_check_typedef): Avoid a seg fault when the type is null.
1142 * ada-typeprint.c (print_array_type): Add support for pointer
1145 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1147 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1149 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1151 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1152 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1154 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1156 * ada-exp.y (chop_separator): New function.
1157 (write_selectors): Rewrite to re-use chop_separator.
1158 (ada_nget_field_index, get_symbol_field_type): New functions.
1159 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1162 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1164 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1165 of SYMBOL_VALUE when working with function symbols.
1167 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1169 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1170 expressions. These expressions do not need to be rewriten.
1172 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1174 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1175 the given die is a declaration.
1177 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1179 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1180 Handle properly the case when the index type is an enumerated type.
1181 Do not return the subtype of the bounds type, just return the
1182 bounds type directly - this is not needed and is more consistent
1183 with what we do for arrays when no XA parallel type exists.
1185 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1187 * ada-lang.c (static_unwrap_type): Add forward declaration.
1188 (template_to_static_fixed_type): Fields of dynamic types sometimes
1189 also need to be unwrapped. Take this into account.
1190 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1191 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1192 * ada-typeprint.c (ada_print_type): Get the typename from
1193 the original type, not the base type.
1195 2008-01-03 Jerome Guitton <guitton@adacore.com>
1197 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1198 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1199 Update calls to ada_to_fixed_type.
1200 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1202 (ada_to_fixed_type): Add check_tag parameter; do not look for
1203 tag if null. When looking for a tag, use a fixed record type.
1204 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1205 * ada-valprint.c (printable_val_type, ada_value_print): Update
1206 calls to ada_to_fixed_type.
1208 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1210 * doublest.c (convert_floatformat_to_doublest): Call
1211 floatformat_to_doublest instead of floatformat_to_double and use
1213 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1214 instead of floatformat_from_double and use DOUBLEST variables.
1216 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1218 * MAINTAINERS (Write After Approval): Add self.
1220 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1222 * symfile.c (set_initial_language): Make non-static.
1223 * symfile.h (set_initial_language): Add declaration.
1224 * language.c: #include "symfile.h".
1225 (set_language): Call set_initial_language if the frame language
1226 could not be determined.
1228 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1230 * eval.c (evaluate_subexp_for_address): Provide frame address to
1231 locate_var_value only if it will be needed.
1233 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1235 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1237 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1239 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1240 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1241 This is needed to make sure that any other treatment applied
1242 to the resulting value does not fail for spurious reason,
1243 such as trying to take the address of this value.
1245 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1247 * ada-lang.c (ada_value_equal): Dereference reference types when
1250 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1252 Updated copyright notices for most files.
1254 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1256 * win32-nat.c (psapi_module_handle): Remove static.
1257 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1258 return first module found if base_address is zero. Don't initialize
1259 psapi function pointers here. Convert to cygwin paths when
1261 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1262 executable name. Use get_module_name when that fails or when
1264 (_initialize_psapi): New function. Initialize psapi stuff before it is
1265 needed or issue a warning if it is not found. Move psapi_module_handle
1268 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1270 * ada-lang.c (ada_remove_trailing_digits): New function.
1271 (ada_remove_po_subprogram_suffix): New function.
1272 (ada_decode): Improve. Move the description of the algorithm
1273 directly inside the code, instead of in the function global
1276 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1278 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1279 and always print the dereferenced value.
1281 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1283 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1284 of the case where the first argument is a reference.
1285 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1287 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1289 Implement support for Ada interface types.
1291 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1292 (ada_is_ignored_field): Ignore fields that are a dispatch table
1295 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1297 * top.c (print_gdb_version): Update copyright year.
1299 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1301 * ChangeLog-2007: New ChangeLog rotation.
1302 * ChangeLog: Reset for 2008.
1303 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1306 For older changes see ChangeLog-2007.
1312 version-control: never