1 2005-05-14 Mark Kettenis <kettenis@gnu.org>
3 * config/m68k/obsd.mt (DEPRECATED_TM_FILE): Remove.
4 * config/i386/obsd.mt (DEPRECATED_TM_FILE): Remove.
5 * config/i386/obsd64.mt (DEPRECATED_TM_FILE): Remove.
6 * config/pa/obsd.mt (DEPRECATED_TM_FILE): Remove.
7 * config/sparc/obsd.mt (DEPRECATED_TM_FILE): Remove.
8 * config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Remove.
10 * sparc-tdep.c (sparc_fetch_instruction, sparc_fetch_wcookie): Use
12 (sparc32_pseudo_register_read, sparc32_pseudo_register_write):
13 Change type of last argument to `gdb_byte *'. Remove casts that
15 (sparc32_push_dummy_code, sparc32_store_arguments): Use gdb_byte
17 (sparc_breakpoint_from_pc): Change return type to `const gdb_byte
18 *'. Use gdb_byte for break_insn.
19 (sparc32_extract_return_value, sparc32_store_return_value): Change
20 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
21 (sparc32_return_value): Change type of readbuf and writebuf
22 arguments to `gdb_byte *'.
23 (sparc_software_single_step): Use gdb_byte for npc_save and
25 (sparc_supply_rwindow, sparc_collect_rwindow): Use gdb_byte for
27 (sparc32_supply_gregset, sparc32_collect_gregset)
28 (sparc32_supply_fpregset, sparc32_collect_fpregset): Use `gdb_byte
30 * sparc64-tdep.c (sparc64_pseudo_register_read)
31 (sparc64_pseudo_register_write): Change type of last argument to
32 `gdb_byte *'. Remove casts that are no longer needed.
33 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
34 Change type of valbuf argument to `gfd_byte *'.
35 (sparc64_store_arguments): Use `gdb_byte *' for valbuf. use
37 (sparc64_extract_return_value, sparc64_store_return_value): Change
38 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
39 (sparc64_return_value): Change type of readbuf and writebuf
40 arguments to `gdb_byte *'.
41 (sparc64_supply_gregset, sparc64_collect_gregset)
42 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use `gdb_byte
45 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Change return type
46 to `const gdb_byte *'. Use gdb_byte for break_insn.
47 (m68k_register_to_value): Change type of last argument to
48 `gdb_byte *'. Use gdb_byte for from.
49 (m68k_value_to_register): Change type of last argument to
50 `gdb_byte *'. Use gdb_byte for to.
51 (m68k_extract_return_value): Change type of last argument to
52 `gdb_byte *'. Use gdb_byte for buf. Remove unnecessary cast.
53 (m68k_svr4_extract_return_value): Change type of last argument to
54 `gdb_byte *'. Use gdb_byte for buf.
55 (m68k_store_return_value): Change type of last argument to
56 `gdb_byte *'. Remove unnecessary cast.
57 (m68k_svr4_store_return_value): Change type of last argument to
58 `gdb_byte *'. Use gdb_byte for buf.
59 (m68k_return_value, m68k_svr4_return_value): Change type of
60 readbuf and writebuf arguments to `gdb_byte *'.
61 (m68k_push_dummy_call, m68k_unwind_pc, m68k_frame_cache)
62 (m68k_unwind_dummy_id): Use gdb_byte for buf.
63 (m68k_get_longjmp_target): Use `gdb_byte *' for buf.
64 * m68kbsd-tdep.c (m68kbsd_supply_fpregset)
65 (m68kbsd_supply_gregset): Use `gdb_byte *' for regs.
67 * m88k-tdep.c (m88k_breakpoint_from_pc): Change return type to
68 `const gdb_byte *'. Use gdb_byte for break_insn.
69 (m88k_return_value): Change type of readbuf and
70 writebuf arguments to `gdb_byte *'. Use gdb_byte for buf.
71 (m88k_supply_gregset): Use `gdb_byte *' for regs.
73 * vax-tdep.c (vax_return_value): Change type of readbuf and
74 writebuf arguments to `gdb_byte *'.
76 * amd64-tdep.c (amd64_return_value): Change type of readbuf and
77 writebuf arguments to `gdb_byte *'. Remove now redundant casts.
78 * i386-tdep.c (i386_return_value): Change type of readbuf and
79 writebuf arguments to `gdb_byte *'.
80 (i386_pseudo_register_read, i386_pseudo_register_write): Change
81 type of last argument to `gdb_byte *'.
82 (i386_register_to_value, i386_value_to_register): Change type of
83 last argument to `gdb_byte *'. Simplify function a bit.
84 * i387-tdep.h (i387_value_to_register, i387_register_to_value):
85 Change type of last argument to `gdb_byte *'.
86 * i387-tdep.c: Likewise.
88 2005-05-13 Andrew Cagney <cagney@gnu.org>
90 * gdbarch.sh (pseudo_register_read, pseudo_register_write)
91 (value_to_register, register_to_value, pointer_to_address)
92 (address_to_pointer, return_value, extract_return_value)
93 (store_return_value): Instead of a void pointer, use gdb_byte.
94 * gdbarch.h, gdbarch.c: Regenerate.
95 * inferior.h (unsigned_address_to_pointer)
96 (signed_pointer_to_address, address_to_signed_pointer)
97 (unsigned_pointer_to_address): Update.
98 * arch-utils.h (legacy_return_value):
99 * arch-utils.c (legacy_extract_return_value)
100 (legacy_return_value): Update.
101 * findvar.c (unsigned_pointer_to_address)
102 (signed_pointer_to_address, unsigned_address_to_pointer)
103 (address_to_signed_pointer): Update.
105 2005-05-13 Orjan Friberg <orjanf@axis.com>
107 * cris-tdep.c (_initialize_cris_tdep): Improve help strings for
108 cris-version, cris-mode, and cris-dwarf2-cfi settings.
110 2005-05-13 Orjan Friberg <orjanf@axis.com>
112 * cris-tdep.c (usr_cmd_cris_version): Change type to int.
113 (cris_mode_normal, cris_mode_guru, cris_modes, usr_cmd_cris_mode): Add.
114 (struct gdbarch_tdep): Change type of cris_version to int. Add
116 (cris_mode, set_cris_mode): New functions.
117 (crisv32_single_step_through_delay): Read from NRP register instead
118 of ERP register in guru mode.
119 (cris_breakpoint_from_pc): Rename break_insn to break8_insn.
120 Add break15_insn, returned in guru mode.
121 (_initialize_cris_tdep): Add call to add_setshow_enum_cmd for new
123 (cris_dump_tdep): Add dump of cris_mode.
124 (cris_gdbarch_init): Add cris_mode to search criteria for architecture.
125 Register the sigtramp frame sniffer only if not in guru mode.
127 2005-05-13 Eli Zaretskii <eliz@gnu.org>
129 * Makefile.in (go32-nat.o): Add $(top_h) to prerequisites.
131 * go32-nat.c: Include top.h. Update copyright years.
132 (init_go32_ops): Override the default value of gdbinit[] with
135 * cli/cli-cmds.c: Don't define GDBINIT_FILENAME.
136 (init_cli_cmds): Use gdbinit[] instead of a compile-time literal
137 string GDBINIT_FILENAME.
139 * top.c (PATH_MAX): Define if not defined.
140 (gdbinit): Declare with a constant size PATH_MAX.
142 * config/i386/go32.mh (XM_FILE): Remove.
144 * config/i386/xm-go32.h: Remove file.
146 2005-05-12 Mark Kettenis <kettenis@gnu.org>
148 * sol-thread.c: Include "solib.h".
149 (sol_thread_attach): Use solib_add instead of SOLIB_ADD.
150 * Makefile.in (sol-thread.o): Update dependencies.
152 * NEWS: Mention OpenBSD/mips64 as a new native configuration.
154 2005-05-12 Eli Zaretskii <eliz@gnu.org>
156 * observer.sh (texi) [DJGPP]: If the file name includes a colon,
157 convert it to the /dev/x/ form.
159 2005-05-12 Mark Kettenis <kettenis@gnu.org>
161 * solib.h (CLEAR_SOLIB, SOLIB_ADD)
162 (SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
163 (SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
164 (DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
165 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
167 * breakpoint.c: Include "solib.h".
168 (insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
170 (remove_solib_event_breakpoints, create_solib_event_breakpoint)
171 (disable_breakpoints_in_shlibs)
172 (disable_breakpoints_in_unloaded_shlib)
173 (re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
174 defined. If PC_SOLIB isn't defined, call solib_address.
175 (_initialize_breakpoint): Unconditionally install observer.
176 * corelow.c: Include "solib.h".
177 [SOLIB_ADD] (solib_add_stub): Remove prototype.
178 (core_close) [!CLEAR_SOLIB]: Call clear_solib.
179 (solib_add_stub) [!SOLIB_ADD] Call solib_add.
180 (core_open): Unconditionally call solib_add_stub.
181 * fork-child.c: Include "solib.h".
182 (fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
183 solib_create_inferior_hook.
184 * infcmd.c: Include "solib.h".
185 (attach_command) [!SOLIB_ADD]: Call shlib_rescan. Unconditionally
186 call re_enable_breakpoints_in_shlibs.
187 * infrun.c: Include "solib.h".
188 (SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
190 (stop_on_solib_events, show_stop_on_solib_events): Include
192 (follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
193 solib_create_inferior_hook.
194 (handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
195 [!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
196 (_initialize_infrun): Unconditionally add "stop_on_solib-events"
198 * remote.c: Include "solib.h".
199 (remote_open_1): Unconditionally call no_shared_libraries.
200 [!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
201 * stack.c: Include "solib.h".
202 (print_frame) [!PC_SOLIB] Call shlib_for_pc.
203 * xcoffsolib.c (no_shared_libraries): Remove function.
204 * Makefile.in (SFILES): Add solib.c.
205 (ALLDEPFILES): Remove solib.c.
206 (COMMON_OBS): Add solib.o.
207 (breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
208 (remote.o, stack.o): Update dependencies.
210 2005-05-12 Daniel Jacobowitz <dan@codesourcery.com>
212 * cp-names.y: Renamed to ...
213 * cp-name-parser.y: ... this.
214 * Makefile.in (SFILES, YYFILES, YYOBJ): Rename cp-names.y to
216 (test-cp-names.o): Renamed to test-cp-name-parser.o.
217 (test-cp-names): Renamed to test-cp-name-parser.
218 (clean, local-maintainer-clean): Update.
219 (cp-names.o): Renamed to cp-name-parser.o.
221 2005-05-12 Eli Zaretskii <eliz@gnu.org>
223 * observer.sh: Use observer.tmp instead of observer.inc-tmp which
224 on 8+3 filesystems overwrites observer.inc. Update copyright year
225 of the resultant file.
227 * gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and
228 is_gnu_v3_mangled_ctor to avoid compiler warnings.
230 * config/djgpp/config.sed: Adapt to latest Autoconf.
232 * config/djgpp/djconfig.sh: Add -Wpointer-arith and
233 -Wuninitialized to the build warnings.
235 2005-05-11 Eli Zaretskii <eliz@gnu.org>
237 * config/djgpp/fnchange.lst: Add mappings for inttypes*.m4,
238 ChangeLog-2004, reg-cris*.dat, dw2-intermix.*, semcris*-switch.c.
239 Fix mappings for hilo-hazard-?.s.
241 * config/djgpp/README: Update GDB versions and my email address.
243 2005-05-09 Andrew Cagney <cagney@gnu.org>
245 Use gdb_byte in preference to bfd_byte.
246 * gdbarch.sh: Update.
247 * gdbarch.h, gdbarch.c: Re-generate.
248 * ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update.
249 * c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update.
250 * f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update.
251 * jv-valprint.c, language.c, language.h, m2-lang.c: Update.
252 * m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update.
253 * p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update.
254 * scm-lang.h, scm-valprint.c, target.c, target.h: Update.
255 * tramp-frame.c, valarith.c, valops.c, valprint.c: Update.
256 * valprint.h, value.c, value.h: Update.
258 2005-05-09 Mark Kettenis <kettenis@gnu.org>
260 * vaxbsd-nat.c (vaxbsd_supply_gregset, vaxbsd_collect_gregset):
261 Use `gdb_byte *' for regs.
262 * vax-tdep.c (vax_supply_gregset): Use `gdb_byte *' for regs;
263 (vax_store_arguments, vax_push_dummy_call, vax_return_value): Use
265 (vax_breakpoint_from_pc): Change return type to `const gdb_byte
266 *'. Use gdb_byte for break_insn.
267 (vax_skip_prologue): Use gdb_byte for op.
269 * i387-tdep.c: Remove outdated comments.
271 * defs.h: Unconditionally include <sys/types.h>.
273 2005-05-08 Daniel Jacobowitz <dan@codesourcery.com>
275 * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs
278 2005-05-08 Mark Kettenis <kettenis@gnu.org>
280 * i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
281 Change type to `static const gdb_byte'.
282 (i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start)
283 (i386_linux_sigcontext_addr): Use gdb_byte for buf.
284 * amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static
286 (amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use
288 * amd64fbsd-tdep.c (amd64fbsd_supply_uthread)
289 (amd64fbsd_collect_uthread): Use gdb_byte for buf.
291 * config/ia64/nm-aix.h: Remove file.
293 * amd64-tdep.c (amd64_return_value): Use `gdb_byte *' in casts.
294 (amd64_push_arguments): Use gdb_byte instead of bfd_byte. Use
296 (amd64_push_dummy_call): Use gdb_byte for buf.
297 (amd64_analyze_prologue): Use gdb_byte for proto, buf and op.
298 (amd64_frame_cache, amd64_sigtramp_frame_cache)
299 (amd64_unwind_dummy_id): Use gdb_byte for buf.
300 (amd64_supply_fxsave, amd64_collect_fxsave): Use `gdb_byte *' for
302 * amd64obsd-tdep.c (amd64obsd_supply_regset): Use `gdb_byte *' in
304 (amd64obsd_sigtramp_p): Use gdb_byte for sigreturn and `gdb_byte
307 * i386-tdep.c (i386_breakpoint_from_pc): Change return type to
308 `const gdb_byte *'. Use gdb_byte for break_insn.
309 (i386_follow_jump): Use gdb_byte for op.
310 (i386_analyze_struct_return): Use gdb_byte for proto1, proto2, buf
312 (i386_skip_probe): Use gdb_byte for buf and op.
313 (struct i386_insn): Use gdb_byte for insn and mask.
314 (i386_match_insn, i386_analyze_frame_setup)
315 (i386_analyze_register_saves): Use gdb_byte for op.
316 (i386_skip_prologue): Use gdb_byte for pic_pat and op;
317 (i386_unwind_pc, i386_frame_cache, i386_sigtramp_frame_cache)
318 (i386_unwind_dummy_id, i386_get_longjmp_target): Use gdb_byte for
320 (i386_extract_return_value, i386_store_return_value): Use
321 `gdb_byte *' instead of `void *' for valbuf argument. Remove now
323 (i386_pseudo_register_read, i386_pseudo_register_write): Use
324 gdb_byte for mmx_buf.
325 (i386_register_to_value, i386_value_to_register): Use `gdb_byte *'
326 instead of `char *' for buf.
327 (i386_supply_gregset, i386_collect_gregset): Use `gdb_byte *'
328 instead of `char *' for regs.
329 (i386_svr4_sigcontext_addr): Use gdb_byte for buf.
330 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use gdb_byte for
331 sigreturn and `gdb_byte *' for buf.
332 (i386obsd_aout_supply_regset): Use `const gdb_byte *' in cast.
333 (i386obsd_supply_uthread, i386obsd_collect_uthread): Use gdb_byte
335 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use gdb_byte for buf.
337 * defs.h (gdb_byte): New typedef. Tweak comments.
339 * target.h (target_link): Remove prototype.
340 * target.c (target_link): Remove function.
341 * symfile.c: Remove comment about rombug.
343 2005-05-04 Mark Kettenis <kettenis@gnu.org>
345 * config/i386/cygwin.mh (XM_FILE): Remove variable.
346 * config/i386/xm-cygwin.h: Remove file.
348 2005-05-03 Ben Elliston <bje@au.ibm.com>
350 * infrun.c (handle_inferior_event): Update the comment about users
351 of stepped_after_stopped_by_watchpoint.
353 2005-05-02 Corinna Vinschen <vinschen@redhat.com>
355 * MAINTAINERS: Remove hint that sh64 doesn't build.
356 * sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory.
357 (sh64_do_fp_register): make raw_buffer unsigned.
358 (sh64_do_register): Ditto.
360 2005-05-02 Mark Kettenis <kettenis@gnu.org>
362 * bsd-uthread.c: Include "solib.h".
363 * Makefile.in (bsd-uthread.o): Update dependencies.
365 2005-05-01 Daniel Jacobowitz <dan@codesourcery.com>
367 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
368 cached frames when changing gdbarch.
369 * gdbarch.c: Regenerated.
371 2005-05-01 Andrew Cagney <cagney@gnu.org>
373 * MAINTAINERS: Note that cris, m68k, mn10300, sh64, sparc and vax
376 * gdbarch.sh (deprecated_extract_return_value)
377 (breakpoint_from_pc, deprecated_store_return_value)
378 (memory_insert_breakpoint, memory_remove_breakpoint): Change type
379 of buffer to a bfd_byte pointer.
380 * gdbarch.h, gdbarch.c: Re-generate.
381 * mem-break.c (memory_insert_breakpoint)
382 (memory_remove_breakpoint, default_memory_insert_breakpoint)
383 (default_memory_remove_breakpoint): Update.
384 * target.h (memory_insert_breakpoint)
385 (memory_remove_breakpoint, default_memory_insert_breakpoint)
386 (default_memory_remove_breakpoint): Update declarations.
387 (struct target_ops): Update to_insert_breakpoint and
388 to_remove_breakpoint.
389 * target.c (debug_to_remove_breakpoint)
390 (debug_to_insert_breakpoint): Update.
391 * remote-m32r-sdi.c (m32r_remove_breakpoint)
392 (m32r_insert_breakpoint): Update.
393 * m32r-tdep.c (m32r_memory_insert_breakpoint)
394 (m32r_memory_remove_breakpoint): Update.
395 * remote-e7000.c (e7000_insert_breakpoint)
396 (e7000_remove_breakpoint): Update.
397 * remote-rdi.c (arm_rdi_insert_breakpoint)
398 (arm_rdi_remove_breakpoint): Update.
399 * remote-sim.c (gdbsim_insert_breakpoint)
400 (gdbsim_remove_breakpoint): Update.
401 * exec.c (ignore): Update.
402 * rs6000-tdep.c (rs6000_extract_return_value): Update.
403 * ia64-tdep.c (ia64_memory_insert_breakpoint)
404 (ia64_memory_remove_breakpoint): Update.
405 * remote-rdp.c (remote_rdp_insert_breakpoint)
406 (remote_rdp_remove_breakpoint): Update.
408 2005-05-01 Mark Kettenis <kettenis@gnu.org>
410 * somsolib.c, somsolib.h: Remove files.
411 * Makefile.in (somsolib_h): Remove.
412 (somsolib.o): Remove dependency.
414 * fbsd-nat.c: Include <sys/sysctl.h>.
415 (fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
416 available. Plug memory leak. Fixes PR gdb/1922.
418 2005-04-29 Mark Kettenis <kettenis@gnu.org>
420 * solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB)
421 (TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK)
422 (TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS)
423 (TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
424 * solib.c (solib_data): New variable.
425 (solib_init, solib_ops): New functions.
426 (solib_open, solib_map_sections, free_so, update_solib_list)
427 (solib_add, clear_solib, solib_create_inferior_hook)
428 (in_solib_dynsym_resolve_code): Call architecture-dependent code
430 (_initialize_solib): Register SOLIB_DATA.
432 2005-04-29 Kevin Buettner <kevinb@redhat.com>
434 * frv-tdep.c (find_func_descr): Verify that entry point can be
435 found in symbol table prior to looking up its function descriptor.
436 * solib-frv.c (find_canonical_descriptor_in_load_object): Add
437 test for non-NULL link map.
439 2005-04-29 Corinna Vinschen <vinschen@redhat.com>
441 * MAINTAINERS: Revert h8300 state to un-deleted.
442 * Makefile.in: Re-add h8300-tdep.o dependencies.
443 * h8300-tdep.c: Slightly rearrange type definitions and functions.
444 (struct frame_extra_info): Remove.
445 (struct h8300_frame_cache): Replace locals with differently defined
447 (h8300_unwind_pc): Simplify.
448 (h8300_unwind_sp): New function.
449 (h8300_unwind_dummy_id): Simplify.
450 (h8300_init_frame_cache): New function.
451 (h8300_is_argument_spill): Use reworked defines for opcode scanning.
452 (h8300_skip_prologue): Rewrite.
453 (h8300_alloc_frame_cache): Remove.
454 (h8300_analyze_frame_setup): Remove.
455 (h8300_analyze_register_saves): Remove.
456 (h8300_analyze_prologue): Rewrite.
457 (h8300_frame_cache): Use h8300_init_frame_cache instead of
458 h8300_alloc_frame_cache. Use BINWORD instead of constant 4 to
459 accomodate 16 bit mode. Fix saved_sp and register offset evaluation.
460 (h8300_frame_this_id): Correctly calculate this_id using saved stack
461 pointer instead of base.
462 (h8300_frame_prev_register): Drop needless braces.
463 (h8300_frame_base_address): New function.
464 (h8300_frame_base): New frame_base.
465 (h8300_push_dummy_call): Return correct CFA value.
466 (h8300h_extract_return_value): Fix 8 byte value handling.
467 (h8300_use_struct_convention): New function.
468 (h8300h_use_struct_convention): New function.
469 (h8300h_store_return_value): Fix 8 byte value handling.
470 (h8300_return_value): New function.
471 (h8300h_return_value): New function.
472 (h8300_extract_struct_value_address): Remove deprecated functionality.
473 (h8300_push_dummy_code): Remove.
474 (h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
475 set_gdbarch_store_return_value calls by set_gdbarch_return_value.
476 Remove calls to set_gdbarch_deprecated_fp_regnum,
477 set_gdbarch_deprecated_extract_struct_value_address,
478 set_gdbarch_deprecated_use_struct_convention and
479 set_gdbarch_push_dummy_code.
480 Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
481 Slightly rearrange code.
483 2005-04-28 Jim Blandy <jimb@redhat.com>
485 * parse.c (namecopy): Change allocation conventions.
486 (namecopy_size): New variable.
487 (copy_name): Allocate namecopy using xrealloc, instead of assuming
488 it has adequate space allocated to it.
489 (parse_exp_1): Don't try to allocate space for namecopy here.
491 2005-04-28 Eli Zaretskii <eliz@gnu.org>
493 * cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
494 set, use symtab_to_fullname, instead of trying to do its job. Use
495 xstrprintf instead of malloc and sprintf.
497 2005-04-28 Kevin Buettner <kevinb@redhat.com>
499 * remote.c (init_remote_state): Eliminate use of
500 deprecated_register_bytes().
502 2005-04-28 Andrew Cagney <cagney@gnu.org>
504 * valops.c (check_field): Make buffer a bfd_byte.
505 * value.c (unpack_long, unpack_double, unpack_pointer)
506 (unpack_field_as_long, modify_field): Ditto.
507 * value.h: Update declarations.
509 2005-04-28 Paul Brook <paul@codesourcery.com>
511 * exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
513 2005-04-27 Mark Kettenis <kettenis@gnu.org>
515 * solib-svr4.c (_initialize_svr4_solib)
516 [SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
517 svr4_legacy_fetch_link_map_offsets.
519 * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
520 (sh_gdbarch_init): Remove redundant prototype.
521 * sh-linux-tdep.c: New file.
522 * config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
524 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
525 * config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
527 * Makefile.in (sh-linux-tdep.o): New.
529 * solib-svr4.c: Update copyright year. Include "gdb_assert.h".
530 (SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
532 (legacy_fetch_link_map_offsets): Remove prototype.
533 (fetch_link_map_offsets_gdbarch_data): Remove.
534 (LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
535 (first_link_map_member, open_symbol_file_object, svr4_current_sos)
536 (svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
537 instead of SVR4_FETCH_LINK_MAP_OFFSETS.
538 (solib_svr4_data): New variable.
539 (struct solib_svr4_ops): New.
540 (solib_svr4_init): New fynction.
541 (legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
543 (svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
544 using the new `struct solib_svr4_ops'.
545 (_initialize_svr4_solib): Replace registration of per-architecture
546 data. Add temporary hack to set
547 svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
549 * Makefile.in (solib-svr4.o): Update dependencies.
551 2005-04-26 Mark Kettenis <kettenis@gnu.org>
553 * configure.tgt (*-*-freebsd*): Set gdb_osabi to
554 GDB_OSABI_FREEBSD_ELF. Partial fix for PR gdb/1922.
556 2005-04-26 Andrew Cagney <cagney@gnu.org>
558 * remote.c (remote_open_1): Move "ex"'s declaration to where it is
560 (remote_get_thread_local_address): Use throw_error, include a
562 * linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
563 * dwarf2loc.c (dwarf_expr_tls_address): Ditto.
564 * cli/cli-script.c (script_from_file): Mark up throw_error message.
565 * linespec.c (symtab_from_filename, decode_variable): Ditto.
567 2005-04-26 Andrew Cagney <cagney@gnu.org>
569 Rename 'struct exception' to 'struct gdb_exception'.
572 * tui/tui-interp.c: Update.
574 * mi/mi-main.c: Update.
575 * mi/mi-interp.c: Update.
576 * linux-thread-db.c: Update.
579 * exceptions.h: Update.
580 * exceptions.c: Update.
581 * dwarf2loc.c: Update.
582 * cli/cli-interp.c: Update.
583 * cli/cli-script.c: Update.
584 * breakpoint.c: Update.
586 2005-04-25 Mark Mitchell <mark@codesourcery.com>
588 * event-loop.c (gdb_select): Program defensively.
590 * event-loop.c (gdb_assert.h): Include.
591 (<windows.h>): Include under Windows.
593 (gdb_select): New function.
594 (gdb_wait_for_event): Use it.
595 * Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
597 2005-04-23 Mark Kettenis <kettenis@gnu.org>
599 * sparc64-tdep.c: Include "dwarf2-frame.h".
600 (sparc64_dwarf2_frame_init_reg): New function.
601 * Makefile.in (sparc64-tdep.o): Update dependencies.
603 2005-04-22 David S. Miller <davem@davemloft.net>
605 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
608 2005-04-22 Mark Kettenis <kettenis@gnu.org>
610 * ser-base.c: Include "ser-base.h" instead of "ser-unix.h".
612 2005-04-22 Mark Mitchell <mark@codesourcery.com>
614 * ser-base.c (<sys/time.h>): Include.
616 2005-04-22 Mark Kettenis <kettenis@gnu.org>
618 * ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value.
620 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
621 (LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
622 (LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
624 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
626 * sparc64-linux-tdep.c: Reorder includes. Tweak a few comments.
627 (LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
629 (sparc64_linux_rt_sigframe): Hardcode instructions.
630 * Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
633 * sparc-linux-tdep.c: Update copyright year.
634 (sparc32_linux_init_abi): Set skip_trampoline_code and
635 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
636 Don't set software_single_step and don't call
637 sparc32_sol2_init_abi.
638 * sparc64-linux-tdep.c: Update copyright year.
639 (sparc64_linux_init_abi): Set skip_trampoline_code and
640 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
641 Don't set software_single_step and don't call
642 sparc64_sol2_init_abi.
644 2005-04-22 Eli Zaretskii <eliz@gnu.org>
646 * remote-st.c (_initialize_remote_st2000): Remove the extraneous
647 "<command>" string from the call to add_com.
649 * remote-sim.c (_initialize_remote_sim): Ditto.
651 * remote-utils.c (_initialize_sr_support): Ditto.
653 * remote-mips.c (_initialize_remote_mips): Ditto.
655 2005-04-21 David S. Miller <davem@davemloft.net>
657 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): New function.
658 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): New tramp_frames.
659 (sparc_linux_sigtramp_start, sparc32_linux_sigtramp_start,
660 sparc32_linux_rt_sigtramp_start, sparc32_linux_sigtramp_p,
661 sparc32_linux_sigtramp_frame_cache,
662 sparc32_linux_sigtramp_frame_this_id,
663 sparc32_linux_sigtramp_frame_prev_register,
664 sparc32_linux_sigtramp_frame_unwind,
665 sparc32_linux_sigtramp_frame_sniffer): Delete.
666 (sparc32_linux_init_abi): Register new tramp unwinders. Kill
667 register of old sigtramp sniffer.
668 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): New
670 (sparc64_linux_rt_sigframe): New tramp frame.
671 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
672 sparc64_linux_sigtramp_frame_cache,
673 sparc64_linux_sigtramp_frame_this_id,
674 sparc64_linux_sigtramp_frame_prev_register,
675 sparc64_linux_sigtramp_frame_unwind,
676 sparc64_linux_sigtramp_frame_sniffer): Delete.
677 (sparc64_linux_init_abi): Register new tramp unwinders. Kill
678 register of old sigtramp sniffer.
679 Makefile.in (sparc64-linux-tdep.o): Update dependencies.
680 (sparc-linux-tdep.o): Likewise.
682 2005-04-21 Mark Kettenis <kettenis@gnu.org>
684 * ser-base.c: Include "gdb_string.h".
685 * Makefile.in (ser-base.o): Update dependencies.
687 2005-04-20 David S. Miller <davem@davemloft.net>
689 * sparc-linux-tdep.c (sparc32_linux_sigtramp_p): Fix
690 signal return stub symbol names, __restore and __restore_rt are
691 the i386 symbol names not the sparc ones.
692 (sparc32_linux_sigtramp_frame_cache): Document bits/sigcontext.h
693 as where the offsets were obtained from.
694 * sparc64-linux-tdep.c (LINUX64_RT_SIGTRAMP_INSN0,
695 LINUX64_RT_SIGTRAMP_INSN1): New defines.
696 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
697 sparc64_linux_sigtramp_frame_cache,
698 sparc64_linux_sigtramp_frame_this_id,
699 sparc64_linux_sigtramp_frame_prev_register,
700 sparc64_linux_sigtramp_frame_sniffer): New functions.
701 (sparc64_linux_sigtramp_frame_unwind): New frame unwinder.
702 (sparc64_linux_init_abi): Register sigtramp frame sniffer.
703 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
705 2005-04-20 Mark Mitchell <mark@codesourcery.com>
707 * configure.ac: On MinGW, define USE_WIN32API and link with
709 * ser-tcp.c (<winsock2.h>): Include, for Windows.
710 (ETIMEDOUT): Define, for Windows.
712 (closesocket): Define, for POSIX.
713 (net_open): Adjust for differences in socket functions between
715 (net_close): Likweise.
716 (net_read_prim): New function.
717 (net_write_prim): Likewise.
718 (_initialize_ser_tcp): Initialize winsock. Fill in read_prim and
720 * ser-unix.h (ser_unix_readcchar): Remove.
721 (ser_unix_read_prim): Declare.
722 (ser_unix_write_prim): Likewise.
723 * ser-unix.c (generic_readchar): Move to ser-base.c.
724 (ser_unix_wait_for): Likewise.
725 (do_unix_readchar): Likewise.
726 (ser_unix_readchar): Likewise.
727 (_initialize_ser_hardwire): Initialize read_prim and write_prim.
728 (ser_unix_read_prim): New function.
729 (ser_unix_write_prim): Likewise.
730 * ser-base.h (generic_readchar): Declare.
731 (ser_base_readchar): Likewise.
732 * ser-base.c (<winsock2.h>): Include, for windows.
733 (fd_event): Use the read primitive specified by the serial
735 (ser_base_wait_for): Moved from ser-unix.c
736 (do_ser_base_read_char): Likewise.
737 (generic_readchar): Likewise.
738 (ser_base_readchar): Likewise.
739 (ser_base_write): Use the write primitive specified by the serial
741 * ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
742 ser_unix_readchar. Initialize read_prim and write_prim.
743 * serial.c (struct serial_ops): Add read_prim and write_prim.
744 * configure: Regenerate.
746 2005-04-19 Ben Elliston <bje@au.ibm.com>
748 * c-lang.c (c_create_fundamental_type): Comment fix.
750 2005-04-18 Michael Snyder <msnyder@redhat.com>
752 * mn10300-tdep.c: Assimilate code from mn10300-prologue.c.
753 * mn10300-prologue.c: Remove.
754 * mn10300-tdep.h: Add enums from mn10300-prologue.c.
756 * config/mn10300/mn10300.mt: Remove mn10300-prologue module.
758 2005-04-18 Michael Snyder <msnyder@redhat.com>
760 * config/mn10300/mn10300.mt: Add mn10300-prologue module.
761 * ia64-tdep.c (ia64_get_dyn_info_list): Fix indent.
763 2005-04-18 Mark Kettenis <kettenis@gnu.org>
765 * config/nm-bsd.h: Remove file.
767 * hppabsd-nat.c: Update copyright year. Include "target.h" and
769 (hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
771 (hppabsd_store_registers): Renamed from store_inferior_registers;
773 (_initialize_hppabsd_nat): New function and prototype.
774 * config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
775 inftarg.o. Add inf-ptrace.o.
777 * Makefile.in (hppabsd-nat.o): Update dependencies.
779 2005-04-17 Mark Kettenis <kettenis@gnu.org>
781 * pa64solib.c, pa64solib.h: Remove files.
782 * Makefile.in (pa64solib_h): Remove variable
783 (pa64solib.o): Remove dependency.
785 2005-04-16 Mark Kettenis <kettenis@gnu.org>
787 * ppcobsd-nat.c: Update copyright year. Include "inf-ptrace.h".
788 (ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
790 (ppcobsd_store_registers): Renamed from store_inferior_registers;
792 (_initialize_ppcobsd_nat): Construct and add target vector.
793 * config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
794 inftarg.o. Add inf-ptrace.o.
796 * Makefile.in (ppcobsd-nat.o): Update dependencies.
798 * ppcobsd-tdep.c: Include "floatformat.h".
799 (ppcobsd_init_abi): Set long_double_bit and long_double_format.
800 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
802 * ppcobsd-tdep.c: Fix typo in comment.
803 (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
806 2005-04-15 Kevin Buettner <kevinb@redhat.com>
808 * remote.c (remote_get_thread_local_address): Throw a more
809 meaningful exception when remote target doesn't have support
810 for the qGetTLSAddr packet.
812 2005-04-15 Kevin Buettner <kevinb@redhat.com>
814 * remote.c (remote_protocol_qGetTLSAddr): New static global variable.
815 (set_remote_protocol_qGetTLSAddr_packet_cmd)
816 (show_remote_protocol_qGetTLSAddr_packet_cmd)
817 (remote_get_thread_local_address): New functions.
818 (init_all_packet_configs): Initialize remote_protocol_qGetTLSAddr
820 (init_remote_ops): Initialize ``to_get_thread_local_address'' in
822 (show_remote_cmd): Call show_remote_protocol_qGetTLS_Addr_packet_cmd().
823 (_initialize_remote): Register the following commands:
824 "set remote get-thread-local-storage-address-packet" and
825 "show remote get-thread-local-address-packet".
827 2005-04-15 Kevin Buettner <kevinb@redhat.com>
829 * remote.c (add_packet_config_cmd): Delete unused variables.
831 2005-04-15 Kevin Buettner <kevinb@redhat.com>
833 * remote.c (show_remote_protocol_vcont_packet_cmd )
834 (show_remote_protocol_qSymbol_packet_cmd)
835 (show_remote_protocol_P_packet_cmd)
836 (show_remote_protocol_Z_software_bp_packet_cmd)
837 (show_remote_protocol_Z_hardware_bp_packet_cmd)
838 (show_remote_protocol_Z_write_wp_packet_cmd)
839 (show_remote_protocol_Z_read_wp_packet_cmd)
840 (show_remote_protocol_Z_access_wp_packet_cmd)
841 (show_remote_protocol_binary_download_cmd)
842 (show_remote_protocol_qPart_auxv_packet_cmd)
843 (show_remote_protocol_p_packet_cmd ): Delete calls to
844 deprecated_show_value_hack().
846 2005-04-15 Corinna VInschen <vinschen@redhat.com>
848 * MAINTAINERS: Change sh64-elf state to non-broken.
849 * Makefile.in: Fix dependencies for sh64-tdep.o.
850 * configure.tgt: Add sh64-*-elf case.
851 * sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
852 * sh64-tdep.c: Rework to replace all deprecated mechanisms with
854 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
855 * config/sh/sh64.mt: Resurrect.
857 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
859 * regformats/reg-m32r.dat: New file.
861 2005-04-14 Daniel Jacobowitz <dan@codesourcery.com>
863 * arm-tdep.c (fp_model_strings): Add terminating NULL.
864 (arm_abi_strings, arm_abi_global, arm_abi_string): New
866 (arm_extract_return_value, arm_store_return_value): Don't use
868 (arm_get_fp_model, arm_set_fp): Delete.
869 (arm_update_current_architecture): New function.
870 (set_fp_model_sfunc): Call arm_update_current_architecture.
871 (show_fp_model): Update output messages.
872 (arm_set_abi, arm_show_abi): New functions.
873 (arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
874 (arm_gdbarch_init): Infer the object's ABI separately from its
875 OSABI. Search for a matching architecture. Honor the global
876 ABI and FPU settings. Set floating point format based on the
878 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
880 (_initialize_arm_tdep): Don't call gdbarch_register_osabi.
881 Create "arm set abi" command.
882 * arm-tdep.h (arm_get_fp_model): Delete prototype.
883 (enum arm_abi_kind): New type.
884 (struct gdbarch_tdep): Add arm_abi field.
885 * arm-linux-tdep.c (arm_linux_init_abi): Only override
886 tdep->fp_model if it is ARM_FLOAT_AUTO.
887 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
888 (arm_netbsd_elf_init_abi): Likewise.
889 * defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
890 * osabi.c (gdb_osabi_name): Likewise.
892 2005-04-11 Daniel Jacobowitz <dan@codesourcery.com>
894 * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
896 2005-04-10 Mark Kettenis <kettenis@gnu.org>
898 * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
899 floating-point registers.
900 (ppc_collect_fpregset): Likewise. Fix collection of registers.
902 2005-04-09 Mark Kettenis <kettenis@gnu.org>
904 * ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
906 (ppcobsd_sigtramp_cache_init): New function.
907 (ppcobsd_sigtramp): New variable.
908 (ppcobsd_init_abi): Prepend signal trampoline unwinder.
909 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
911 2005-04-08 Andrew Cagney <cagney@gnu.org>
913 * MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
914 Nasser have decided to step back from GDB/MI.
916 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
918 * config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
920 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
922 * dwarf2-frame.c (struct dwarf2_frame_cache): New field
924 (dwarf2_frame_cache): Initialize undefined_retaddr.
925 (dwarf2_frame_this_id): Return an invalid frame ID if
928 2005-04-05 Jim Blandy <jimb@redhat.com>
930 Move construction of IA-32 vector types to i386-tdep.c.
931 * gdbtypes.c (build_builtin_type_vec64i,
932 build_builtin_type_vec128i): Delete functions.
933 (builtin_type_vec64i, builtin_type_vec128i): Delete variables.
934 (build_gdbtypes): Don't initialize them.
935 (_initialize_gdbtypes): Don't register GDBARCH swap entries for
937 * gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
939 (builtin_type_v2_float, builtin_type_v2_int32,
940 builtin_type_v4_int16, builtin_type_v8_int8,
941 builtin_type_v2_double, builtin_type_v4_float,
942 builtin_type_v2_int64, builtin_type_v4_int32,
943 builtin_type_v8_int16, builtin_type_v16_int8): Add extern
945 * i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
946 (i386_build_mmx_type, i386_build_sse_type): New functions.
947 (i386_register_type): Call them, rather than referring to
948 builtin_type_vec64i and builtin_type_vec128i.
950 2005-04-02 Daniel Jacobowitz <dan@codesourcery.com>
952 * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
953 big-endian correction code to not offset 32-bit registers.
954 Locate floating point registers correctly.
956 2005-04-02 Mark Kettenis <kettenis@gnu.org>
958 * main.c: Update copyright year.
959 (captured_main): Avoid using strcpy and strcat.
961 2005-04-01 Michael Snyder <msnyder@redhat.com>
963 * dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
964 computing this_id if there are no dummy frames on the stack.
966 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use
967 find_partial_func instead of unwind_pc to identify frame.
968 (mn10300_push_dummy_call): Handle struct args, struct_return.
970 * mn10300-prologue.c (set_movm_offsets): Don't test variable
972 * mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
973 instead of skip_prologue_using_sal.
975 2005-03-31 Kevin Buettner <kevinb@redhat.com>
977 * solib-frv.c (struct lm_info): Add new field ``lm_addr''.
978 (main_lm_addr): New static global.
979 (frv_current_sos): Retain the link map address for each entry.
980 (frv_clear_solib): Clear main_lm_addr.
981 (frv_fetch_objfile_link_map): New function.
982 * frv-tdep.c (frv_gdbarch_init): Register TLS load module fetcher.
983 * frv-tdep.h (frv_fetch_objfile_link_map): Declare.
985 2005-03-31 Kevin Buettner <kevinb@redhat.com>
987 * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
988 * gdbarch.c, gdbarch.h: Regenerate.
989 * dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
990 address and pass this address, instead of the objfile address, to
991 target_get_thread_local_address().
992 * linux-thread-db.c (thread_db_get_thread_local_address): Change
993 second parameter from type ``struct objfile *'' to CORE_ADDR. Do
994 not call svr4_fetch_objfile_link_map() to fetch the load module
996 * target.h (struct target_ops): Change second parameter of
997 ``to_get_thread_local_address'' from ``struct objfile *'' to
999 * alpha-linux-tdep.c (solib-svr4.h): Include.
1000 (alpha_linux_init_abi): Register TLS load module fetcher.
1001 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1002 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
1003 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1004 * ia64-linux-tdep.c (solib-svr4.h): Include.
1005 (ia64_linux_init_abi): Register TLS load module fetcher.
1006 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
1007 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
1008 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1009 * s390-tdep.c (s390_gdbarch_init): Likewise.
1010 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1011 * sparc64-linux-tdep.c (solib-svr4.h): Include.
1012 (sparc64_linux_init_abi): Register TLS load module fetcher.
1013 * Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
1014 (sparc-linux-tdep.o): Update dependencies.
1016 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1018 * c-valprint.c (c_value_print): Fix up some formatting. Use
1021 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1023 * arm-linux-nat.c (store_register, store_regs): Handle
1026 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1028 * arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
1029 (arm_linux_thumb_le_breakpoint): New. Update comments.
1030 (arm_linux_init_abi): Set Thumb breakpoints also.
1032 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1034 * Makefile.in (arm-tdep.o): Update dependencies.
1035 * arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
1036 (arm_gdbarch_init): Register dwarf2_frame_sniffer.
1038 2005-03-28 Joel Brobecker <brobecker@adacore.com>
1040 * irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
1041 register value to be incorrectly written in the regcache.
1042 (fill_fpregset): Fix bug that caused the FSR register value
1043 to be incorrectly read from the regcache.
1045 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1047 * remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
1048 arm_pc_is_thumb_dummy.
1050 2005-03-28 Mark Kettenis <kettenis@gnu.org>
1052 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
1055 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1056 Handle StackGhost in 64-bit code.
1057 * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
1059 2005-03-27 Christopher Faylor <cgf@timesys.com>
1061 * win32-nat.c (handle_exception): Treat win32 routines which check for
1062 valid addresses as "special" and don't stop when a SEGV is detected.
1063 (get_child_debug_event): Properly flag exception as unhandled.
1065 2005-03-26 Daniel Jacobowitz <dan@codesourcery.com>
1067 * cp-support.c (cp_class_name_from_physname): Rewrite.
1068 (unqualified_name_from_comp): New function, broken out from
1069 method_name_from_physname. Correct handling for typed names
1071 (method_name_from_physname): Use unqualified_name_from_comp.
1072 (cp_func_name, remove_params): Move earlier in the file. Add
1073 better comments. Use the component tree to parse the name.
1074 (_initialize_cp_support): Remove stray whitespace.
1076 2005-03-26 Mark Kettenis <kettenis@gnu.org>
1078 * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
1080 * inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code.
1081 Callapse HAVE_TERMIO and HAVE_SGTTY.
1083 * dwarf2-frame.c (execute_cfa_program): Implement
1084 DW_CFA_GNU_window_save.
1086 2005-03-25 Mark Kettenis <kettenis@gnu.org>
1088 * config/sparc/nbsd64.mh (NAT_FILE): Remove.
1090 * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
1092 2005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
1094 * arm-tdep.c (target_is_thumb, caller_is_thumb)
1095 (arm_pc_is_thumb_dummy): Remove.
1096 (arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
1098 2005-03-25 Anthony Green <green@redhat.com>
1100 * remote.c (remote_store_registers): Fix memset usage.
1101 * std-regs.c (value_of_builtin_frame_reg): Ditto.
1102 (value_of_builtin_frame_fp_reg): Ditto.
1103 (value_of_builtin_frame_reg): Ditto.
1105 2005-03-25 Mark Mitchell <mark@codesourcery.com>
1107 * ser-base.c (ser_unix_write): Rename to ...
1108 (ser_base_write): ... this.
1109 (ser_unix_nop_flush_output): Rename to ...
1110 (ser_base_flush_output): ... this.
1111 (ser_unix_flush_input): Rename to ...
1112 (ser_base_flush_input): ... this.
1113 (ser_unix_nop_send_break): Rename to ...
1114 (ser_base_send_break): ... this.
1115 (ser_unix_nop_drain_output): Rename to ...
1116 (ser_base_drain_output): ... this.
1117 (ser_unix_nop_raw): Rename to ...
1118 (ser_base_raw): ... this.
1119 (ser_unix_nop_get_tty_state): Rename to ...
1120 (ser_base_set_tty_state): ... this.
1121 (ser_unix_nop_noflush_set_tty_state): Rename to ...
1122 (ser_base_noflush_set_tty_state): ... this.
1123 (ser_unix_nop_print_tty_state): Rename to ...
1124 (ser_base_print_tty_state): ... this.
1125 (ser_unix_nop_setbaudrate): Rename to ...
1126 (ser_base_setbaudrate): ... this.
1127 (ser_unix_nop_setstopbits): Rename to ...
1128 (ser_base_setstopbits): ... this.
1129 (ser_unix_async): Rename to ...
1130 (ser_base_async): ... this.
1131 * ser-base.h (ser_unix_write): Rename to ...
1132 (ser_base_write): ... this.
1133 (ser_unix_nop_flush_output): Rename to ...
1134 (ser_base_flush_output): ... this.
1135 (ser_unix_flush_input): Rename to ...
1136 (ser_base_flush_input): ... this.
1137 (ser_unix_nop_send_break): Rename to ...
1138 (ser_base_send_break): ... this.
1139 (ser_unix_nop_drain_output): Rename to ...
1140 (ser_base_drain_output): ... this.
1141 (ser_unix_nop_raw): Rename to ...
1142 (ser_base_raw): ... this.
1143 (ser_unix_nop_get_tty_state): Rename to ...
1144 (ser_base_set_tty_state): ... this.
1145 (ser_unix_nop_noflush_set_tty_state): Rename to ...
1146 (ser_base_noflush_set_tty_state): ... this.
1147 (ser_unix_nop_print_tty_state): Rename to ...
1148 (ser_base_print_tty_state): ... this.
1149 (ser_unix_nop_setbaudrate): Rename to ...
1150 (ser_base_setbaudrate): ... this.
1151 (ser_unix_nop_setstopbits): Rename to ...
1152 (ser_base_setstopbits): ... this.
1153 (ser_unix_async): Rename to ...
1154 (ser_base_async): ... this.
1155 * ser-pipe.c (_initialize_ser_pipe): Update accordingly.
1156 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1157 * ser-unix.c (hardwire_flush_input): Likewise.
1158 (_initializer_ser_hardwire): Likewise.
1160 * Makefile.in (SFILES): Add ser-base.c.
1161 (ser_base_h): New variable.
1162 (ser-base.o): New target.
1163 (ser-pipe.o): Depend on $(ser_base_h).
1164 (ser-tcp.o): Likewise.
1165 (ser-unix.o): Likewise. Do not depend on $(event_loop_h).
1166 * configure.ac (SER_HARDWIRE): Include ser-base.o where
1168 * ser-base.c: New file.
1169 (push_event): Move from ser-unix.c.
1170 (fd_event): Likewise.
1171 (reschedule): Likewise.
1172 (ser_unix_write): Likewise.
1173 (ser_unix_nop_flush_output): Likewise.
1174 (ser_unix_flush_input): Likewise.
1175 (ser_unix_nop_send_break): Likewise.
1176 (ser_unix_nop_drain_output): Likewise.
1177 (ser_unix_nop_raw): Likewise.
1178 (ser_unix_nop_get_tty_state): Likewise.
1179 (ser_unix_nop_set_tty_state): Likewise.
1180 (ser_unix_nop_noflush_set_tty_state): Likewise.
1181 (ser_unix_nop_print_tty_state): Likewise.
1182 (ser_unix_nop_setbaudrate): Likewise.
1183 (ser_unix_nop_setstopbits): Likewise.
1184 (ser_unix_async): Likewise.
1185 * ser-base.h: New file.
1186 * ser-pipe.c (ser-base.h): Include it.
1187 * ser-tcp.c (ser-base.h): Likewise.
1188 * ser-unix.h (ser_unix_nop_flush_output): Remove.
1189 (ser_unix_flush_input): Likewise.
1190 (ser_unix_nop_send_break): Likewise.
1191 (ser_unix_nop_raw): Likewise.
1192 (ser_unix_nop_get_tty_state): Likewise.
1193 (ser_unix_nop_set_tty_state): Likewise.
1194 (ser_unix_nop_print_tty_state): Likewise.
1195 (ser_unix_nop_noflush_set_tty_state): Likewise.
1196 (ser_unix_nop_setbaudrate): Likewise.
1197 (ser_unix_nop_setstopbits): Likewise.
1198 (ser_unix_nop_drain_output): Likewise.
1199 (ser_unix_wait_for): Likewise.
1200 (ser_unix_write): Likewise.
1201 (ser_unix_async): Likewise.
1202 * ser-unix.c (event-loop.h): Do not include it.
1203 (push_event): Move to ser-base.c.
1204 (fd_event): Likewise.
1205 (reschedule): Likewise.
1206 (ser_unix_write): Likewise.
1207 (ser_unix_nop_flush_output): Likewise.
1208 (ser_unix_flush_input): Likewise.
1209 (ser_unix_nop_send_break): Likewise.
1210 (ser_unix_nop_drain_output): Likewise.
1211 (ser_unix_nop_raw): Likewise.
1212 (ser_unix_nop_get_tty_state): Likewise.
1213 (ser_unix_nop_set_tty_state): Likewise.
1214 (ser_unix_nop_noflush_set_tty_state): Likewise.
1215 (ser_unix_nop_print_tty_state): Likewise.
1216 (ser_unix_nop_setbaudrate): Likewise.
1217 (ser_unix_nop_setstopbits): Likewise.
1218 (ser_unix_async): Likewise.
1219 (ser_unix_wait_for): Make it static.
1220 * configure: Regenerated.
1222 2005-03-25 Mark Kettenis <kettenis@gnu.org>
1224 * dwarf2-frame.h: Update copyrigh year.
1225 (enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
1226 * dwarf2-frame.c: Update copyright year.
1227 (struct dwarf2_frame_cache): Add member `retaddr_reg'.
1228 (dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
1229 (dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
1231 2005-03-23 Martin Hunt <hunt@redhat.com>
1233 * configure.ac: Remove -fwritable-strings from CFLAGS.
1234 * configure: Regenerate.
1236 2005-03-21 Michael Snyder <msnyder@redhat.com>
1238 * mn10300-prologue.c (fix_frame_pointer): Delete.
1239 (set_movm_offsets) Don't return just because movm_args is
1240 zero -- still need to save pc and sp in saved_regs.
1241 (mn10300_analyze_prologue): Don't return prematurely without
1242 calling set_movm_offsets (for pc and sp at minimum).
1244 2005-03-21 Mark Mitchell <mark@codesourcery.com>
1246 * configure.ac (stat.st_blksize): Check for it.
1249 * configure: Regenerated.
1250 * config.in: Likewise.
1251 * remote-fileio.c (remote_fileio_to_fio_stat): Check
1252 HAVE_STRUCT_STAT_ST_BLKSIZE.
1254 2005-03-21 Christopher Faylor <cgf@timesys.com>
1256 * win32-nat.c (do_initial_child_stuff): Don't clear the thread list
1258 (do_initial_child_stuff): Move clearing of thread list to a place
1259 before a thread ould be created.
1260 (child_attach): Ditto.
1262 2005-03-21 Michael Snyder <msnyder@redhat.com>
1264 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
1265 instead of pc addr for frame_id. Otherwise "until" won't work.
1267 2005-03-21 Kevin Buettner <kevinb@redhat.com>
1269 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
1272 2005-03-20 Mark Kettenis <kettenis@gnu.org>
1274 * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
1275 * varobj.c (my_value_equal): Mark val2 as volatile.
1277 * cp-names.y: Add prototype for yyparse.
1279 2005-03-19 Daniel Jacobowitz <dan@codesourcery.com>
1281 * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
1282 * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
1285 2005-03-18 Kevin Buettner <kevinb@redhat.com>
1287 * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
1288 * exceptions.h (TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_GENERIC_ERROR)
1289 (TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR):
1290 New error/exception enums.
1291 * dwarf2loc.c (exceptions.h): Include.
1292 (dwarf_expr_tls_address): Invoke target_get_thread_local_address()
1293 via TRY_CATCH mechanism. Print error messages for TLS related
1295 * linux-thread-db.c (thread_db_get_thread_local_address): Throw
1296 exceptions instead of printing errors.
1298 2005-03-18 Mark Kettenis <kettenis@gnu.org>
1300 * utils.c (safe_strerror): Use xsnprintf instead of sprintf.
1301 (decimal2str, octal2str): Change to return a string allocated by
1302 get_cell. Use xsnprint instead of snprintf.
1303 (paddr_u, paddr_d): Adjust for changed calling convention of
1305 (phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
1306 (int_string): Likewise. Adjust for changed calling convention of
1307 decimal2str and octal2str.
1309 2005-03-18 Kevin Buettner <kevinb@redhat.com>
1311 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
1312 Adjust incorrectly computed constant for realtime signal frame.
1314 2005-03-18 Mark Kettenis <kettenis@gnu.org>
1316 From Ralf Corsepius <ralf.corsepius@rtems.org>
1317 * configure.tgt: Add m68*-*-rtems*.
1319 2005-03-17 Mark Kettenis <kettenis@gnu.org>
1321 * defs.h (xsnprintf): New prototype.
1322 * utils.c (xsnprintf): New function.
1324 * corelow.c (get_core_register_section): Replace usage of sprintf
1325 and strcpy with xstrprintf and xstrdup.
1327 * mips-tdep.c (mips_single_step_through_delay): Put back check for
1328 breakpoint lost with the introduction of this function.
1330 2005-03-17 Paul Brook <paul@codesourcery.com>
1332 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
1333 * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
1335 2005-03-16 Mark Mitchell <mark@codesourcery.com>
1337 * event-top.c (handle_sigquit): Do not define for systems without
1339 (sigquit_token): Likewise.
1340 (async_init_signals): Allow for systems that do not
1342 * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
1344 2005-03-15 Mark Mitchell <mark@codesourcery.com>
1346 * utils.c (internal_vproblem): Guard call to fork with
1348 * cli/cli-cmds.c (shell_escape): Guard call to vfork with
1349 HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
1351 * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
1352 S_IRGRP and related macros.
1353 (remote_fileio_mode_to_target): Likewise.
1355 2005-03-14 Ben Elliston <bje@au.ibm.com>
1357 * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
1358 more primitive library.
1360 2005-03-13 Mark Kettenis <kettenis@gnu.org>
1362 * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
1364 * target.c (normal_pid_to_str): Likewise.
1365 * remote.c (remote_pid_to_str): Use snprint instead of sprintf.
1366 Change capitalization of "thread". Use ptid_get_pid instead of
1369 * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
1370 a combination of xmalloc and sprintf.
1372 2005-03-13 Jim Blandy <jimb@redhat.com>
1374 * configure.ac: Use '=', not '=='; the latter is a GNU extension.
1375 * configure: Regenerated.
1377 2005-03-11 Michael Snyder <msnyder@redhat.com>
1379 * mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
1380 stub fn with real implementatin mn10300_unwind_dummy_id.
1381 (mn10300_push_dummy_call): Implement. Bare bones version,
1382 does not handle structs or floats.
1384 2005-03-11 Jim Blandy <jimb@redhat.com>
1386 Avoid warnings due to the use of -Wuninitialized without -O.
1387 * configure.ac (build_warnings): Include -Wuninitialized only if
1388 CFLAGS is unset at configure time, or CFLAGS is set and includes
1389 some -O option other than -O0.
1390 * configure: Regenerated.
1392 * mips-tdep.c (show_mips_abi): Change calling conventions to match
1393 those expected by add_setshow_enum_cmd. Use 'file' argument as
1396 2005-03-10 Daniel Jacobowitz <dan@codesourcery.com>
1398 * Makefile.in (SFILES): Add cp-names.y.
1399 (libiberty_h, safe_ctype_h): New.
1400 (YYFILES): Add cp-names.c.
1401 (YYOBJ): Add cp-names.o.
1402 (test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
1403 (clean): Remove test-cp-names$(EXEEXT).
1404 (local-maintainer-clean): Remove cp-names.c.
1405 * cp-names.y: New file.
1406 * cp-support.c (find_last_component): Delete.
1407 (d_left, d_right): Define.
1408 (cp_canonicalize_string, mangled_name_to_comp): New functions.
1409 (cp_class_name_from_physname, method_name_from_physname): Rewrite
1410 to use mangled_name_to_comp.
1411 * cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
1412 (cp_comp_to_string): New prototypes.
1413 * config/djgpp/fnchange.lst: Add cp-names.c.
1415 2005-03-10 Bob Rossi <bob@brasko.net>
1417 * main.c (print_gdb_help): Remove the --[no]async help message.
1419 2005-03-10 Mark Kettenis <kettenis@gnu.org>
1421 * proc-api.c: Update copyright year.
1422 (_initialize_proc_api): Revert previous patch, removing spurious
1425 2005-03-09 Joel Brobecker <brobecker@adacore.com>
1427 * regcache.c: Fix typo in comment.
1429 2005-03-09 David Lecomber <david@lecomber.net>
1431 * proc-api.c (_initialize_proc_api): Fix invalid multi-line
1434 2005-03-09 Mark Kettenis <kettenis@gnu.org>
1436 * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
1437 address for 64-bit code.
1438 (sparc_unwind_dummy_id): Likewise.
1439 * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
1440 frame base address convention.
1441 (sparc64_push_dummy_call): Likewise.
1442 * sparc64nbsd-tdep.c: Update copyright year.
1443 (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
1444 address for 64-bit code.
1445 (sparc64nbsd_init_abi): Tweak comment.
1446 * sparc64obsd-tdep.c: Update copyright year.
1447 (sparc64obsd_frame_cache): Adjust cached frame base address for
1449 (sparc64obsd_init_abi): Tweak comment.
1451 2005-03-09 Corinna Vinschen <vinschen@redhat.com>
1453 * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
1455 2005-03-09 Joel Brobecker <brobecker@adacore.com>
1457 * dwarf2read.c (dwarf_decode_lines): Use the complete filename
1458 when creating include psymtabs.
1460 2005-03-08 Mark Mitchell <mark@codesourcery.com>
1462 * environ.h (struct environ): Rename to ...
1463 (struct gdb_environ): ... this.
1464 (make_environ): Update prototype.
1465 (free_environ): Likewise.
1466 (init_environ): Likewise.
1467 (get_in_environ): Likewise.
1468 (set_in_environ): Likewise.
1469 (unset_in_environ): Likewise.
1470 (environ_vector): Likewise.
1471 * environ.c (make_environ): Replace "struct environ" with "struct
1473 (free_environ): Likewise.
1474 (init_environ): Likewise.
1475 (environ_vector): Likewise.
1476 (get_in_environ): Likewise.
1477 (set_in_environ): Likewise.
1478 (unset_in_environ): Likewise.
1479 * infcmd.c (inferior_environ): Likewise.
1480 * inferior.h (inferior_environ): Likewise.
1482 2005-03-08 Joel Brobecker <brobecker@adacore.com>
1484 * infcmd.c (run_command_1): New function, extracted from
1486 (run_command): Replace implementation by call to run_command_1.
1487 (start_command): Use run_command_1 to insert the temporary
1488 breakpoint and run the program. Remove code that's no longer
1489 needed, as already done at the proper time by run_command_1.
1491 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
1493 * symfile.c (clear_symtab_users): Call
1494 clear_current_source_symtab_and_line first.
1496 2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
1498 * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
1499 * c-exp.y (exp): Add unary plus.
1500 * eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
1501 * valarith.c (value_x_unop): Add UNOP_PLUS case.
1503 * value.h (value_pos): Declare.
1505 * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
1506 (remote_fetch_registers): Allow uppercase hex when resyncing.
1507 (remote_write_bytes): Only call get_memory_write_packet_size once.
1508 Robustify packet size calculation for very small packets. Check
1509 that at least one byte will be written.
1511 * tracepoint.c (target_is_remote): Allow extended-remote.
1512 (struct collection_list): Allow 256 registers, like the comment
1514 (add_memrange): Fix comment.
1515 (read_actions): Turn EOF into 'end'.
1517 2005-03-08 Corinna Vinschen <vinschen@redhat.com>
1519 * Makefile.in: Add dependencies for iq2000-tdep.o.
1520 * configure.tgt: Add iq2000-*-* target.
1521 * iq2000-tdep.c: New file.
1522 * config/iq2000/iq2000.mt: New file.
1524 2005-03-07 Joel Brobecker <brobecker@adacore.com>
1526 * doc/observer.texi (executable_changed): New observer.
1527 * symtab.c: Include "observer.h".
1528 (find_main_name): New function.
1529 (main_name): If name_of_main is unset, then compute it
1530 using find_main_name.
1531 (symtab_observer_executable_changed): New function.
1532 (_initialize_symtab): Attach executable_changed observer.
1533 * exec.c: Include "observer.h".
1534 (exec_file_attach): Emit executable_changed notification.
1535 * symfile.c: Include "observer.h".
1536 (reread_symbols): Send an executable_changed if appropriate.
1537 * Makefile.in (exec.o): Add dependency on observer.h.
1538 (symfile.o): Likewise.
1539 (symtab.o): Likewise.
1541 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
1543 * findvar.c (read_var_value): Don't allocate V when it will not
1544 be used. Add missing break for LOC_INDIRECT.
1546 2005-03-06 Mark Kettenis <kettenis@gnu.org>
1548 * sparc64fbsd-tdep.c: Include "solib-svr4.h".
1549 (sparc64fbsd_init_abi): Set skip_trampoline_code and
1550 solib_svr4_fetch_link_map_offsets.
1551 * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
1553 2005-03-06 Daniel Jacobowitz <dan@codesourcery.com>
1555 * linux-nat.c (child_follow_fork): Call target_terminal_ours before
1556 printing output. Use fprintf_unfiltered. Only print output when
1559 2005-03-05 Mark Kettenis <kettenis@gnu.org>
1561 * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
1563 (sparc64_store_arguments): Constify.
1565 2005-03-05 Mark Kettenis <kettenis@gnu.org>
1567 * alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
1568 (alphabsd_fetch_inferior_registers): Rename from
1569 fetch_inferior_registers. Make static.
1570 (alphabsd_store_inferior_registers): Rename from
1571 store_inferior_registers. Make static.
1572 (_initialize_alphabsd_nat): New function.
1573 * Makefile.in (alphabsd-nat.o): Update dependencies.
1574 * config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
1575 inftarg.o. Add inf-ptrace.o, fbsd-nat.o and gcore.o.
1576 * config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
1577 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1579 * config/alpha/nm-fbsd.h: Update copyright year. Don't include
1580 "config/nm-bsd.h" and "elf/common.h".
1581 * config/alpha/nm-nbsd.h: Update copyright year. Don't include
1584 * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
1585 software_single_step.
1587 2005-03-04 Michael Snyder <msnyder@redhat.com>
1589 * mn10300-prologue.c: New file. Prologue analysis.
1590 * mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
1591 (mn10300_frame_unwind_cache): Don't call trad_frame_set_id
1592 until after analyze_prologue, and don't call trad_frame_set_base
1593 at all (let analyze_prologue do it).
1595 2005-03-04 Michael Snyder <msnyder@redhat.com>
1597 * trad-frame.c (trad_frame_set_reg_value): New function.
1598 * trad-frame.h (trad_frame_set_reg_value): Export.
1600 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1602 * Makefile.in (remote.o): Update dependencies.
1603 * remote.c: Include "observer.h".
1605 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1607 * target.c (target_read_memory_partial): Always initialize
1609 (target_write_memory_partial): Likewise.
1611 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1613 * remote.c (remote_open_1): Call observer_notify_inferior_created.
1615 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1617 * arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
1618 (arm_stub_unwind, arm_stub_unwind_sniffer): New.
1619 (arm_gdbarch_init): Add arm_stub_unwind_sniffer.
1621 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
1623 * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
1626 2005-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1628 * dwarf2loc.c (loclist_read_variable): Set optimized_out
1629 instead of reporting an error.
1630 * valprint.c (value_check_printable): New function.
1631 (common_val_print): New function. Use value_check_printable.
1632 (value_print): Use value_check_printable.
1633 * value.h (common_val_print): Add prototype.
1635 * c-valprint.c (c_val_print): Use common_val_print.
1636 * cp-valprint.c (cp_print_value_fields): Likewise.
1637 (cp_print_hpacc_virtual_table_entries): Likewise.
1638 * f-valprint.c (f_val_print): Likewise.
1639 * jv-valprint.c (java_value_print, java_print_value_fields):
1641 * scm-valprint.c (scm_value_print): Likewise.
1642 * stack.c (print_frame_args): Likewise.
1643 * varobj.c (c_value_of_variable): Likewise.
1644 * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
1645 (pascal_object_print_value_fields): Likewise. Update call to
1646 pascal_object_print_static_field.
1647 (pascal_object_print_static_field): Remove TYPE argument. Use
1650 2005-02-25 Mark Kettenis <kettenis@gnu.org>
1652 Committed by Elena Zannoni <ezannoni@redhat.com>
1654 * dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
1655 info_ptr before building psymtabs for included files.
1656 (create_all_comp_units): Initailize initial length size of
1657 compilation header to zero.
1658 (read_initial_length): Complain if both 32-bit and 64-bit DWARF
1659 sections are encountered within the same compilation header.
1660 (dwarf_decode_line_header): Pass compilation header in call to
1661 read_initial_length.
1663 2005-02-24 Andrew Cagney <cagney@gnu.org>
1665 Add show_VARIABLE functions, update add_setshow call.
1666 * varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
1667 * valprint.c (_initialize_valprint, show_print_max)
1668 (show_stop_print_at_null, show_repeat_count_threshold)
1669 (show_prettyprint_structs, show_unionprint)
1670 (show_prettyprint_arrays, show_addressprint, show_input_radix)
1671 (show_output_radix): Ditto.
1672 * valops.c (_initialize_valops, show_overload_resolution): Ditto.
1673 * utils.c (initialize_utils, show_chars_per_line)
1674 (show_lines_per_page, show_demangle, show_pagination_enabled)
1675 (show_sevenbit_strings, show_asm_demangle): Ditto
1676 * tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
1677 (show_tui_border_mode, show_tui_active_border_mode): Ditto.
1678 * top.c (init_main, show_new_async_prompt)
1679 (show_async_command_editing_p, show_write_history_p)
1680 (show_history_size, show_history_filename, show_caution)
1681 (show_annotation_level, init_main): Ditto.
1682 * target.c (initialize_targets, show_targetdebug)
1683 (show_trust_readonly): Ditto.
1684 * symfile.c (_initialize_symfile, show_symbol_reloading)
1685 (show_ext_args, show_download_write_size)
1686 (show_debug_file_directory): Ditto.
1687 * source.c (_initialize_source, show_lines_to_list): Ditto.
1688 * solib.c (_initialize_solib, show_auto_solib_add)
1689 (show_solib_search_path): Ditto.
1690 * p-valprint.c (_initialize_pascal_valprint)
1691 (show_pascal_static_field_print): Ditto.
1692 * printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
1693 (show_print_symbol_filename): Add and update.
1694 * parse.c (_initialize_parse, show_expressiondebug): Dito.
1695 * observer.c (_initialize_observer, show_observer_debug): Dito.
1696 * maint.c (_initialize_maint_cmds, show_watchdog)
1697 (show_maintenance_profile_p): Dito.
1698 * linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
1699 * infrun.c (_initialize_infrun, show_debug_infrun)
1700 (show_stop_on_solib_events, show_follow_fork_mode_string)
1701 (show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
1702 * infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
1703 (show_unwind_on_signal_p): Ditto.
1704 * gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
1705 (_initialize_gdbtypes, show_overload_debug): Ditto.
1706 * gdb-events.c, gdb-events.sh (_initialize_gdb_events)
1707 (show_gdb_events_debug): Ditto.
1708 * gdbarch.c, gdbarch.sh (show_gdbarch_debug)
1709 (_initialize_gdbarch): Ditto.
1710 * frame.c (_initialize_frame, show_backtrace_past_main)
1711 (show_backtrace_past_entry, show_backtrace_limit)
1712 (show_frame_debug): Ditto.
1713 * exec.c (_initialize_exec, show_write_files): Ditto.
1714 * dwarf2read.c (_initialize_dwarf2_read)
1715 (show_dwarf2_max_cache_age): Ditto.
1716 * demangle.c (_initialize_demangler)
1717 (show_demangling_style_names): Ditto.
1718 * dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
1719 * cp-valprint.c (show_static_field_print)
1720 (_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
1721 * corefile.c (_initialize_core, show_gnutarget_string): Ditto.
1722 * cli/cli-logging.c (_initialize_cli_logging)
1723 (show_logging_overwrite, show_logging_redirect)
1724 (show_logging_filename): Ditto.
1725 * cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
1726 (init_cli_cmds, show_baud_rate, show_remote_debug)
1727 (show_remote_timeout, show_max_user_call_depth): Ditto.
1728 * charset.c (show_host_charset_name, show_target_charset_name)
1729 (initialize_charset): Ditto.
1730 * breakpoint.c (show_can_use_hw_watchpoints)
1731 (show_pending_break_support, _initialize_breakpoint): Ditto.
1733 2005-02-23 Jim Blandy <jimb@redhat.com>
1735 * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
1737 2005-02-23 Andrew Cagney <cagney@gnu.org>
1739 * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
1742 2005-02-22 Andrew Cagney <cagney@gnu.org>
1744 * configure.ac: Only enaable insight when itcl is present.
1745 * configure: Re-generate.
1747 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1749 Committed by Andrew Cagney.
1750 * infptrace.c (store_register): Fix typo.
1752 2005-02-21 Andrew Cagney <cagney@gnu.org>
1754 * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
1755 * cli/cli-decode.h (add_set_cmd): Delete declaration.
1756 * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
1757 * i386-nat.c (_initialize_i386_nat): Update call.
1758 * valprint.c (_initialize_valprint): Update comment.
1759 * gnu-nat.c (_initialize_gnu_nat): Update call.
1761 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1763 * elfread.c (elf_symtab_read): Discard section syms.
1765 2005-02-21 Andrew Cagney <cagney@gnu.org>
1767 * cli/cli-decode.c (add_set_enum_cmd): Delete function.
1768 (deprecated_add_show_from_set): Delete function.
1769 * command.h (add_set_enum_cmd): Delete declaration.
1770 (deprecated_add_show_from_set): Delete declaration.
1771 * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
1772 (deprecated_add_show_from_set): Delete declaration.
1773 * arm-tdep.c (_initialize_arm_tdep): Update comment.
1774 * kod.c (kod_set_os): Simplify.
1775 * infrun.c (set_schedlock_func): Simplify.
1776 * cli/cli-dump.c (add_dump_command): Update comment.
1778 Replace string variables with a filename completer with
1779 add_setshow_optional_filename_cmd.
1780 * solib.c, symfile.c: Update.
1781 * cli/cli-setshow.c: Do not tidle expand the file.
1783 Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
1784 and add_setshow_string_noescape_cmd.
1785 * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
1786 NULL command's value.
1787 * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
1788 * remote-sds.c, remote.c, symfile.c, top.c: Update.
1790 2005-02-20 Andrew Cagney <cagney@gnu.org>
1792 Use add_setshow_enum_cmd through out.
1793 * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
1794 * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
1796 * mi/mi-main.c (captured_mi_execute_command): Use
1797 mi_cmd_interpreter_exec.
1799 * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
1801 * cli/cli-setshow.c (deprecated_show_value_hack)
1802 (do_setshow_command): Handle var_optional_filename.
1803 * command.h (enum var_types): Add var_optional_filename.
1804 (add_setshow_optional_filename_cmd): Declare.
1805 * infcmd.c (notice_args_read): Use.
1807 * symfile-mem.c (symbol_file_add_from_memory): Pass
1808 target_read_memory to bfd_elf_bfd_from_remote_memory.
1809 (do_target_read_memory): Delete.
1811 2005-02-16 Mark Kettenis <kettenis@gnu.org>
1813 * value.h (value_contents_equal): New prototype.
1814 * value.c (value_contents_equal): New function.
1815 * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
1817 (varobj_set_value): Initialize error to zero.
1818 (varobj_update): Rename error2 to error and initialize it to zero.
1819 Slightly change the wording of some comments.
1820 (my_value_equal): Reimplement using TRY_CATCH and
1821 value_contents_equal.
1823 2005-02-18 Andrew Cagney <cagney@gnu.org>
1825 * cli/cli-decode.c (add_setshow_integer_cmd): New function.
1826 * command.h (add_setshow_integer_cmd): Declare.
1827 * cli/cli-cmds.c: Update.
1829 Use add_setshow_uinteger_cmd through out.
1830 * printcmd.c, source.c, utils.c, valprint.c: Update.
1832 Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
1834 * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
1835 * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
1836 * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
1837 * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
1838 * varobj.c, cli/cli-cmds.c: Update.
1839 * gdbarch.c, gdb-events.c: Regenerate.
1841 Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
1842 code adding set/show boolean commands.
1843 * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
1844 * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
1845 * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
1846 * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
1847 * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
1848 * cli/cli-cmds.c: Update.
1850 2005-02-17 Andrew Cagney <cagney@gnu.org>
1852 * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
1853 to filename_completer.
1854 * solib.c (_initialize_solib, reload_shared_libraries): Use
1855 add_setshow_filename_cmd.
1856 * serial.c (_initialize_serial): Ditto.
1857 * remote-utils.c (_initialize_sr_support): Ditto.
1859 * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
1860 * command.h (add_setshow_string_noescape_cmd): Declare.
1861 * wince.c (_initialize_wince): Use.
1862 * symfile.c (_initialize_symfile): Use.
1863 (set_ext_lang_command): Update declaration.
1864 * corefile.c (_initialize_core): Use.
1866 * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
1867 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1868 (add_setshow_filename_cmd, add_setshow_string_cmd)
1869 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
1870 fprint_setshow parameter.
1871 * command.h (fprint_setshow_ftype): Delete.
1872 (add_setshow_cmd_full, add_setshow_enum_cmd)
1873 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1874 (add_setshow_filename_cmd, add_setshow_string_cmd)
1875 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
1876 fprint_setshow parameter.
1877 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
1878 * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
1879 * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
1880 * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
1881 * remote.c, target.c, cli/cli-logging.c: Update.
1883 2005-02-16 Andrew Cagney <cagney@gnu.org>
1885 Merge setshow print and show parameters.
1886 * command.h (show_value_ftype): Define.
1887 (deprecated_show_value_hack): Declare.
1888 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1889 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1890 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
1891 (add_setshow_zinteger_cmd): Change type of show_func to
1893 * cli/cli-decode.h (struct cmd_list_element): Replace
1894 fprint_setshow with show_value_func.
1895 * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
1896 parameter. Set show_value_func. Do not set cmd_sfunc.
1897 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1898 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1899 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
1900 (add_setshow_zinteger_cmd): Update.
1901 * complaints.c (complaints_show_value): Replace
1902 fprint_setshow_complaints.
1903 (_initialize_complaints): Update.
1904 * mips-tdep.c (show_mask_address): Update.
1905 * arm-tdep.c (show_fp_model): Update.
1906 * cli/cli-setshow.c (do_setshow_command): Call show_value_func
1907 instead of fprint_setshow. Use deprecated_show_value_hack.
1908 (deprecated_show_value_hack): New function.
1909 * remote.c (add_packet_config_cmd, show_remote_cmd):
1910 (show_remote_protocol_P_packet_cmd)
1911 (show_remote_protocol_P_packet_cmd)
1912 (show_remote_protocol_Z_access_wp_packet_cmd)
1913 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1914 (show_remote_protocol_Z_packet_cmd)
1915 (show_remote_protocol_Z_read_wp_packet_cmd)
1916 (show_remote_protocol_Z_software_bp_packet_cmd)
1917 (show_remote_protocol_Z_write_wp_packet_cmd)
1918 (show_remote_protocol_binary_download_cmd)
1919 (show_remote_protocol_p_packet_cmd)
1920 (show_remote_protocol_qPart_auxv_packet_cmd)
1921 (show_remote_protocol_qSymbol_packet_cmd)
1922 (show_remote_protocol_vcont_packet_cmd): Update.
1924 2005-02-16 Mark Kettenis <kettenis@gnu.org>
1926 * wrapper.h: Update copyright year. Properly wrap a few
1928 (struct gdb_wrapper_arguments): Remove forward declaration.
1929 * wrapper.c: Update copyright year. Include "ui-out.h".
1930 (struct gdb_wrapper_arguments): Remove.
1931 (struct captured_value_struct_elt_args): Remove.
1932 (wrapper_parse_exp_1, wrap_evaluate_expression)
1933 (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
1934 (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
1935 (do_captured_value_struct_elf): Remove functions.
1936 (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
1937 (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
1938 (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
1939 Re-implement using TRY_CATCH.
1941 2005-02-16 Yoshinori Sato <ysato@users.sourceforge.jp>
1943 * remote-e7000.c: unuse TM_FILE defined macro.
1944 (e7000_fetch_registers)
1945 (e7000_store_registers)
1946 (e7000_wait): delete NUM_REALREGS.
1947 * remote-hms.c: move TM_FILE macro.
1948 (CCR_REGNO): move define from tm-h8300.h.
1950 2005-02-15 Mark Kettenis <kettenis@gnu.org>
1952 * amd64-linux-tdep.c: Update copyright year.
1953 (amd64_linux_sigtramp_start): Use sizeof operator instead of
1956 2004-02-15 Joel Brobecker <brobecker@gnat.com>
1958 From Paul Hilfinger <hilfinger@gnat.com>
1959 * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
1960 SYMBOL_NATURAL_NAME to set type names.
1962 2005-02-15 Andrew Cagney <cagney@gnu.org>
1964 Mark up add_com, add_info and add_prefix_cmd.
1965 * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
1966 * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
1967 * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
1968 * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
1969 * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
1970 * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
1971 * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
1972 * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
1973 * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
1974 * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
1975 * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
1976 * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
1977 * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
1978 * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
1979 * tui/tui-stack.c, tui/tui-win.c: Update.
1981 2005-02-14 Andrew Cagney <cagney@gnu.org>
1983 * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
1984 * config/h8300/tm-h8300.h: Delete file.
1987 * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
1988 * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
1989 * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
1990 * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
1991 * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
1992 * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
1993 * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
1994 * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
1995 * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
1996 * cli/cli-logging.c, tui/tui-regs.c: Update.
1998 Mark up add_setshow functions, replace "PRINT:" comment prefix
1999 with "FIXME: i18n:".
2000 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
2001 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
2002 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
2003 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
2004 * target.c, cli/cli-logging.c: Update.
2006 * utils.c (paddress): New function.
2007 * defs.h (paddress): Declare.
2008 * printcmd.c (deprecated_print_address_numeric): Rename
2009 print_address_numeric, call paddress.
2010 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
2011 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
2012 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
2013 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
2014 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
2015 * ada-valprint.c: Update.
2017 2005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2019 * MAINTAINERS: Add myself to "Write After Approval".
2021 2005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
2023 Restore h8300 support.
2024 * configure.tgt: Add h8300-*-*
2025 * h8300-tdep.c: New file. Rewrite new frame code.
2026 * config/h8300/h8300.mt: New file. Restored Rev 1.3
2027 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
2029 * MAINTAINERS: Add myself to "Write After Approval".
2031 2005-02-11 Andrew Cagney <cagney@gnu.org>
2033 Mark up some of printf_filtered and printf_unfiltered.
2034 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
2035 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
2036 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
2037 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
2038 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
2039 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
2040 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
2041 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
2042 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
2043 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
2044 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
2045 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
2046 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
2047 * tui/tui-regs.c, tui/tui-win.c: Update.
2049 Mark up error_no_arg, query, perror_with_name, complaint, and
2051 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
2052 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
2053 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
2054 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
2055 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
2056 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
2057 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
2058 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
2059 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
2060 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
2061 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
2062 * interps.c, language.c, linespec.c, linux-nat.c: Update.
2063 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
2064 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
2065 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
2066 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
2067 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
2068 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
2069 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
2070 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
2071 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
2072 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
2073 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
2074 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
2075 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
2076 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
2077 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
2078 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
2079 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
2080 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
2081 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
2082 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
2083 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
2084 * tui/tui-file.c, tui/tui-interp.c: Update.
2086 2005-02-10 Andrew Cagney <cagney@gnu.org>
2088 Mark up all error and warning messages.
2089 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
2090 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
2091 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
2092 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
2093 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
2094 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
2095 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
2096 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
2097 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
2098 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
2099 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
2100 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
2101 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
2102 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
2103 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
2104 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
2105 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
2106 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
2107 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
2108 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
2109 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
2110 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
2111 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
2112 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
2113 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
2114 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
2115 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
2116 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
2117 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
2118 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
2119 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
2120 * remote-utils.c, remote-utils.h, remote.c: Update.
2121 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
2122 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
2123 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
2124 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
2125 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
2126 * somread.c, somsolib.c, source.c, stabsread.c: Update.
2127 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
2128 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
2129 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
2130 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
2131 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
2132 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
2133 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
2134 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
2135 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
2136 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
2137 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
2138 * tui/tui-win.c: Update.
2140 2005-02-10 Ian Lance Taylor <ian@airs.com>
2142 * MAINTAINERS: Update my e-mail address.
2144 2005-02-10 Daniel Jacobowitz <dan@debian.org>
2146 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
2148 * cp-valprint.c: Include "language.h".
2149 (cp_print_value_fields): Pass the current language to
2150 fprintf_symbol_filtered.
2151 * Makefile.in (cp-valprint.o): Update dependencies.
2153 2005-02-10 Andrew Cagney <cagney@gnu.org>
2155 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
2156 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2157 (add_setshow_filename_cmd, add_setshow_string_cmd)
2158 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
2159 print string parameter with fprint_setshow function.
2160 * command.h (fprint_setshow_ftype): Define. Update declarations.
2161 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
2162 available, use that.
2163 * cli/cli-decode.h (struct cmd_list_element): Add field
2165 * complaints.c (fprint_setshow_complaints): New function.
2166 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
2167 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
2169 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2170 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2171 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2172 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2173 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2174 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2175 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
2176 * frame.c (_initialize_frame): Ditto.
2177 * target.c (initialize_targets): Ditto.
2178 * maint.c (_initialize_maint_cmds): Ditto.
2179 * observer.c (_initialize_observer): Ditto.
2180 * infcall.c (_initialize_infcall): Ditto.
2181 * breakpoint.c (_initialize_breakpoint): Ditto.
2182 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2183 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2185 * cli/cli-setshow.c (do_setshow_command): Move code printing the
2186 value to the end of the function. Handle MI and non-MI output
2189 2005-02-09 Andrew Cagney <cagney@gnu.org>
2191 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
2192 show_result parameters.
2193 * mips-tdep.c (_initialize_mips_tdep): Update calls.
2194 * command.h: Update declaration.
2195 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
2198 * NEWS: Mention removed commands.
2199 * m68hc11-tdep.c (show_regs): Delete, unused.
2200 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
2201 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
2202 eventdebug" commands.
2203 * gdb-events.c: Regenerate.
2204 * gdbarch.sh: Delete deprecated "set archdebug" and "show
2205 archdebug" commands.
2206 * gdbarch.c: Regenerate.
2207 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
2208 remotedebug" and "show remotedebug".
2209 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
2210 disassembly-flavor", "show arm disassembly-flavor", and
2211 "othernames" commands.
2212 (arm_othernames): Delete unused function.
2214 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
2215 (convert_code_addr_to_desc_addr): Convert any function code
2216 address to the corresponding function's descriptor.
2217 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
2218 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
2219 writing, convert any function code address to the corresponding
2222 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
2223 * config/powerpc/linux.mt (TDEPFILES): Ditto.
2224 * config/pa/linux.mt (TDEPFILES): Ditto.
2225 * config/mips/linux.mt (TDEPFILES): Ditto.
2226 * config/m68k/linux.mt (TDEPFILES): Ditto.
2227 * config/m32r/linux.mt (TDEPFILES): Ditto.
2228 * config/ia64/linux.mt (TDEPFILES): Ditto.
2229 * config/arm/linux.mt (TDEPFILES): Ditto.
2231 2005-02-09 Corinna Vinschen <vinschen@redhat.com>
2233 * symmisc.c: Include gdb_stat.h.
2234 (maintenance_print_msymbols): Use inode numbers to compare files.
2236 2005-02-08 Andrew Cagney <cagney@gnu.org>
2238 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2239 (METHOD_PTR_TO_VOFFSET): Move from here ...
2240 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2241 (METHOD_PTR_TO_VOFFSET): ... to here.
2242 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
2243 * Makefile.in: Update dependencies.
2245 * exceptions.c: Do not include <setjmp.h>.
2246 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
2247 (catch_exception, catch_exceptions_with_msg, catch_errors)
2248 (catch_command_errors): Use TRY_CATCH.
2249 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
2250 (exceptions_state_mc_init): Rename catcher_init.
2251 (exceptions_state_mc): Rename catcher_state_machine.
2252 (exceptions_state_mc_action_iter)
2253 (exceptions_state_mc_action_iter_1): New functions.
2254 * exceptions.h: Include <setjmp.h>.
2255 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
2256 (EXCEPTIONS_SIGLONGJMP): Define.
2257 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
2258 (exceptions_state_mc_action_iter_1): Declare.
2259 (TRY_CATCH): Define.
2261 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
2264 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
2267 * value.c (struct value): Move to here ...
2268 * value.h (struct value): ... from here. Copy comments to
2269 corresponding function declarations, re-order.
2271 2005-02-07 Andrew Cagney <cagney@gnu.org>
2273 * value.c (set_value_bitpos, set_value_bitsize): Define.
2274 * value.h (set_value_bitpos, set_value_bitsize): Declare.
2275 * ada-lang.c, valarith.c: Update.
2277 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
2278 value_contents_writeable, include note that there are problems.
2279 * breakpoint.c, infcall.c: Use VALUE_LVAL.
2281 * value.h (set_value_offset): Declare.
2282 * value.c (set_value_offset): Declare.
2283 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
2284 * findvar.c: Update.
2286 * value.h (value_next): Declare.
2287 * value.c (value_next): Define.
2288 * breakpoint.c: Update.
2290 * value.h (deprecated_set_value_modifiable)
2291 (deprecated_value_modifiable): Declare.
2292 * value.c (deprecated_set_value_modifiable): Define.
2293 (deprecated_value_modifiable): Define.
2294 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
2296 * value.h (deprecated_set_value_type): Declare.
2297 * value.c (deprecated_set_value_type): Define.
2298 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
2299 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
2300 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
2301 * ax-gdb.c, tracepoint.c: Update.
2303 * value.h (deprecated_value_lval_hack)
2304 (deprecated_value_address_hack)
2305 (deprecated_value_internalvar_hack)
2306 (deprecated_value_regnum_hack): Declare.
2307 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
2308 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
2309 * value.c (deprecated_value_lval_hack)
2310 (deprecated_value_address_hack)
2311 (deprecated_value_internalvar_hack)
2312 (deprecated_value_regnum_hack): Define.
2314 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
2315 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
2316 * value.c (set_value_pointed_to_offset): Define
2317 (value_pointed_to_offset): Define.
2320 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
2321 (value_embedded_offset, set_value_embedded_offset): Declare.
2322 * value.c (value_embedded_offset): Define.
2323 (set_value_embedded_offset): Define.
2324 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
2325 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
2328 * value.h (VALUE_LAZY): Delete
2329 (set_value_lazy): Declare.
2330 * value.c (set_value_lazy): Define.
2331 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
2332 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
2334 2005-02-06 Andrew Cagney <cagney@gnu.org>
2336 * value.h (VALUE_OPTIMIZED_OUT): Delete.
2337 (value_optimized_out, set_value_optimized_out): Declare.
2338 * value.c (set_value_optimized_out, value_optimized_out): Define.
2339 * valprint.c, findvar.c, dwarf2loc.c: Update.
2341 * value.c (value_contents, value_contents_writeable): New
2343 * value.h (VALUE_CONTENTS): Delete macro.
2344 (value_contents, value_contents_writeable): Declare.
2345 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
2346 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
2347 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
2348 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
2349 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
2350 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
2351 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
2352 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
2353 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
2354 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
2355 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
2356 * ada-valprint.c, ada-lang.c: Update.
2358 2005-02-03 Andrew Cagney <cagney@gnu.org>
2360 * utils.c (xzalloc): New function.
2361 * defs.h (XZALLOC): Use xzalloc.
2363 * value.c (allocate_value): Allocate a zeroed buffer.
2364 * mdebugread.c (xzalloc): Delete.
2366 2005-02-02 Andrew Cagney <cagney@gnu.org>
2368 * value.h (value_lazy): Declare.
2369 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
2370 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
2372 * value.h (VALUE_CONTENTS_ALL): Delete.
2373 (value_contents_all): Declare.
2374 * value.c (value_contents_all): New function.
2375 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
2376 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
2378 * value.c (value_enclosing_type): New function.
2379 * value.h (VALUE_ENCLOSING_TYPE): Delete.
2380 (value_enclosing_type): Declare.
2381 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
2382 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
2384 * value.c (value_contents_all_raw)
2385 (value_contents_raw): New functions.
2386 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
2387 (value_contents_raw, value_contents_all_raw): Declare functions.
2388 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
2389 * std-regs.c, valarith.c, valops.c, eval.c: Update.
2390 * tracepoint.c, findvar.c: Update.
2392 2005-02-01 Orjan Friberg <orjanf@axis.com>
2394 * regformats/reg-cris.dat: New file with register definitions for CRIS.
2395 * regformats/reg-crisv32.dat: Ditto for CRISv32.
2397 2005-01-31 Andrew Cagney <cagney@gnu.org>
2399 * configure: Regenerate to track ../gettext.m4.
2401 2005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
2403 * MAINTAINERS: Add myself to "Write After Approval".
2405 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
2406 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
2407 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
2409 2005-01-29 Mark Kettenis <kettenis@gnu.org>
2411 * configure.ac: Remove extra check for ranlib.
2412 * configure: Regenerated.
2414 2005-01-28 Andrew Cagney <cagney@gnu.org>
2416 * language.h (struct language_defn): Make la_val_print's buffer
2417 parameter a const bfd_byte.
2418 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
2419 * ada-lang.c (ada_aligned_value_addr)
2420 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
2421 * valprint.c (val_print_array_elements): Update.
2422 * valprint.h (val_print_array_elements): Update.
2423 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
2424 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
2425 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
2426 (ada_val_print_1, ada_print_floating, printable_val_type)
2427 (print_record, val_print_packed_array_elements)
2428 (print_field_values, print_variant_part): Update.
2429 * c-lang.h (c_val_print, cp_print_value_fields): Update.
2430 * c-valprint.c (c_val_print): Update.
2431 * f-lang.h (f_val_print): Update.
2432 * f-valprint.c (f_val_print, f77_print_array_1)
2433 (f77_print_array): Update.
2434 * jv-lang.h (java_val_print): Update.
2435 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
2436 * language.c (unk_lang_val_print): Update.
2437 * m2-lang.h (m2_val_print): Update.
2438 * m2-valprint.c (m2_val_print): Update.
2439 * p-lang.h (pascal_val_print): Update.
2440 (pascal_object_print_value_fields): Update.
2441 * p-valprint.c (pascal_val_print)
2442 (pascal_object_print_value_fields, pascal_object_print_value)
2443 (pascal_object_print_value): Update.
2444 * scm-lang.h (scm_val_print): Update.
2445 * scm-valprint.c (scm_val_print): Update.
2446 * value.h (val_print): Update.
2448 * p-lang.h (pascal_object_print_class_member)
2449 (pascal_object_print_class_method): Make buffer a const bfd_byte.
2450 * p-valprint.c (pascal_object_print_class_method)
2451 (pascal_object_print_class_method): Ditto.
2453 * language.h (struct language_defn): Make la_printstr's buffer
2454 parameter a const bfd_byte.
2455 * p-lang.h (pascal_printstr): Update function to match.
2456 * ada-valprint.c (ada_printstr): Update function to match.
2457 * scm-lang.c (scm_printstr): Update function to match.
2458 * p-lang.c (pascal_printstr): Update function to match.
2459 * ada-lang.h (ada_printstr): Update function to match.
2460 * m2-lang.c (m2_printstr): Update function to match.
2461 * objc-lang.c (objc_printstr): Update function to match.
2462 * c-lang.h (c_printstr): Update function to match.
2463 * f-lang.c (f_printstr): Update function to match.
2464 * c-lang.c (c_printstr): Update function to match.
2465 * language.c (unk_lang_printstr): Update function to match.
2467 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
2468 * valprint.h (val_print_type_code_int): Ditto.
2470 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
2472 * cp-valprint.c (cp_print_class_method)
2473 (cp_print_class_member): Make buffer a const bfd_byte.
2474 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
2476 * ada-lang.c (value_from_contents_and_address)
2477 (to_record_with_fixed_variant_part)
2478 (value_tag_from_contents_and_address, ada_to_fixed_type)
2479 (to_fixed_variant_branch_type, to_fixed_record_type)
2480 (ada_template_to_fixed_record_type, cond_offset_host)
2481 (ada_template_to_fixed_record_type_1): Make buffer a const
2483 * ada-lang.h (ada_template_to_fixed_record_type_1)
2484 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
2486 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
2488 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
2489 * printcmd.c (print_scalar_formatted): Update.
2491 * value.h (value_bit_index, print_floating)
2492 (find_rt_vbase_offset): Make buffer a const bfd_byte.
2493 * valprint.c (print_floating): Update.
2494 * valarith.c (value_bit_index): Update.
2495 * valops.c (find_rt_vbase_offset): Update.
2497 * valprint.h (print_octal_chars, print_char_chars)
2498 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
2499 buffer a const bfd_byte.
2500 * valprint.c (print_binary_chars, print_octal_chars)
2501 (print_decimal_chars, print_hex_chars, print_char_chars): Make
2502 "valaddr"buffer a const bfd_byte, ditto for local variables
2503 referencing that buffer.
2505 * m2-valprint.c: Include "c-lang.h".
2506 (c_val_print): Delete extern declaration.
2507 * scm-valprint.c: Include "c-lang.h".
2508 (c_val_print): Delete extern declaration.
2509 Makefile.in: Update dependencies.
2511 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
2513 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
2514 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
2516 * cp-abi.c (baseclass_offset): Update.
2517 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
2519 * gnu-v2-abi.h: New file.
2520 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
2521 (gnuv2_baseclass_offset): Delete declaration.
2522 * hpacc-abi.c: Include "gnu-v2-abi.h".
2523 (gnuv2_baseclass_offset): Delete extern declaration.
2524 * Makefile.in: Update dependencies.
2526 * doublest.c (floatformat_is_negative, floatformat_is_nan)
2527 (floatformat_mantissa, get_field): Make the buffer a const
2530 2005-01-27 Andrew Cagney <cagney@gnu.org>
2532 * value.h (struct value): Change type of contents to bfd_byte.
2533 (VALUE_CONTENTS_RAW): Simplify.
2535 * gdbarch.sh (integer_to_address): Change buf parameter to a const
2536 bfd_byte, make pure-multi-arch.
2537 * gdbarch.h, gdbarch.c: Regenerate.
2538 * mips-tdep.c (mips_integer_to_address): Update.
2539 * value.c (value_as_address): Update.
2541 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
2542 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
2543 parameters const, change buf to a const bfd_byte.
2544 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
2547 * corefile.c (write_memory): Update, make a copy of the read-only
2549 * target.c (target_read_memory): Update.
2550 (target_write_memory): Update, make a copy of the read-only
2552 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
2554 * target.h (target_read_memory, target_write_memory): Change
2555 buffer type to bfd_byte; for write_memory, make it const.
2556 * symfile-mem.c (do_target_read_memory): New function.
2557 (symbol_file_add_from_memory): Pass do_target_read_memory to
2558 bfd_elf_bfd_from_remote_memory.
2560 * value.h: Indent using gdb_indent.sh.
2562 * configure: Regenerate to track ../gettext.m4 change.
2564 2005-01-26 Andrew Cagney <cagney@gnu.org>
2566 * rs6000-tdep.c: Include "reggroups.h".
2567 (rs6000_gdbarch_init): Set register_reggroup_p.
2568 (rs6000_register_reggroup_p): New function.
2570 2005-01-26 Orjan Friberg <orjanf@axis.com>
2572 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
2573 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
2575 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
2576 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
2577 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
2578 (crisv32_register_type, cris_special_register_name)
2579 (crisv32_register_name): New functions.
2580 (cris_spec_reg_applicable): Recognize more versions.
2581 (cris_register_name): Update with call to cris_special_register_name.
2582 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
2583 warning when unable to find step target.
2584 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
2585 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
2587 (fetch_core_registers): Update for CRISv32.
2588 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
2589 register_name, cannot_store_register, cannot_fetch_register,
2590 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
2592 2005-01-26 Nick Roberts <nickrob@snap.net.nz>
2594 * interps.c (interpreter_exec_cmd): Use condition,
2595 e.reason < 0, to raise an error.
2597 2005-01-25 Andrew Cagney <cagney@gnu.org>
2599 * ppc-linux-tdep.c: Include "tramp-frame.h"
2600 (struct ppc_linux_sigtramp_cache)
2601 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
2602 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
2603 (ppc_linux_sigtramp_cache): Delete.
2604 (ppc32_linux_sigaction_cache_init)
2605 (ppc64_linux_sigaction_cache_init)
2606 (ppc32_linux_sighandler_cache_init)
2607 (ppc64_linux_sighandler_cache_init)
2608 (ppc32_linux_sigaction_tramp_frame)
2609 (ppc64_linux_sigaction_tramp_frame)
2610 (ppc32_linux_sighandler_tramp_frame)
2611 (ppc64_linux_sighandler_tramp_frame)
2612 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
2613 64-bit, sigaction and siginfo tramp-frame unwinders.
2615 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
2616 long_double_bit to 8.
2618 2005-01-24 Andrew Cagney <cagney@gnu.org>
2620 * infrun.c (handle_inferior_event): Handle back-to-back and nested
2621 signals where the step_resume_breakpoint may have already been
2624 2005-01-24 Andrew Cagney <cagney@gnu.org>
2626 * configure: Regenerate, ../gettext.m4 was updated.
2628 2005-01-23 Mark Kettenis <kettenis@gnu.org>
2630 * NEWS: Mention new BSD user-level threads support.
2632 * i386obsd-tdep.c: Update copyright year. Include
2634 (i386obsd_uthread_reg_offset): New variable.
2635 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
2636 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
2638 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
2639 * Makefile.in (i386obsd-tdep.o): Update dependencies.
2640 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
2642 2005-01-23 Christopher Faylor <cgf@timesys.com>
2644 * win32-nat.c: Update copyright year.
2645 (child_init_thread_list): Set thread linked list point to NULL so that
2646 it won't be reused after clearing.
2648 2005-01-21 Mark Kettenis <kettenis@gnu.org>
2650 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
2652 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
2653 thread' has a td_pcb member and whether `struct reg' has r_fs and
2655 * configure, config.in: Regenerate.
2657 2005-01-21 Mark Kettenis <kettenis@gnu.org>
2659 * configure.ac: Remove ia64-*-aix* junk.
2660 * configure: Regenerate.
2662 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
2663 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
2665 * configure, config.in: Regenerate.
2666 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
2667 BFD_NEED_DECLARATION. Never provide a prototype for
2668 caninicalize_file_name.
2669 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
2670 BFD_NEED_DECLARATION.
2672 * configure.ac (targ_archs): Use standard autoconf check for
2673 "struct stat.st_blocks" instead of rolling our own.
2674 * configure: Regenerated.
2675 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
2676 * config.in: Regenerated.
2678 2005-01-21 Mark Kettenis <kettenis@gnu.org>
2680 * configure.ac: Modernize checks for `long long' and `long double'
2682 * configure: Regenerated.
2683 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
2684 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
2685 * config.in: Regenerated.
2687 2005-01-20 Mark Kettenis <kettenis@gnu.org>
2689 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
2690 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
2691 * configure.ac: Remove checks for HP-UX save_state structure.
2692 * configure: Regenerated.
2694 2005-01-19 Andrew Cagney <cagney@gnu.org>
2696 * utils.c (quit): Simplify, call fatal.
2697 * exceptions.c: Include "serial.h"
2698 (print_flush): Mimic flush code found in utils.c:quit.
2699 * Makefile.in: Update dependencies.
2701 2005-01-19 Jim Blandy <jimb@redhat.com>
2703 * configure.tgt: Set build_rdi_share to "yes" on those targets
2704 that use that debugging protocol.
2705 Set build_nlm to yes to build NLM stub for Netware targets.
2706 * configure.ac: If build_rdi_share is "yes", then configure the
2707 rdi-share subdirectory.
2708 If build_nlm is "yes", the configure the "nlm" subdirectory.
2709 * configure: Regenerated.
2711 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
2712 autoconf 2.59 and automake 1.9.3.
2714 2005-01-19 Andrew Cagney <cagney@gnu.org>
2716 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
2717 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
2718 * utils.c (internal_verror, quit): Update.
2719 * remote-sds.c (interrupt_query): Update.
2720 * remote-mips.c (mips_error, mips_kill): Update.
2721 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
2722 * remote.c (interrupt_query): Update.
2723 * ocd.c (interrupt_query): Update.
2724 * nto-procfs.c (interrupt_query): Update.
2725 * monitor.c (monitor_interrupt_query): Update.
2726 * breakpoint.c (break_command_1): Update.
2728 * infrun.c: (resume, proceed, wait_for_inferior)
2729 (handle_inferior_event, stop_stepping)
2730 (prepare_to_wait): Write debug output to gdb_stdlog.
2732 2005-01-19 Mark Kettenis <kettenis@gnu.org>
2734 * inf-ptrace.c (inf_ptrace_prepare_to_store)
2735 (inf_ptrace_post_startup_inferior)
2736 (inf_ptrace_acknowledge_created_inferior)
2737 (inf_ptrace_insert_fork_catchpoint)
2738 (inf_ptrace_remove_fork_catchpoint)
2739 (inf_ptrace_insert_vfork_catchpoint):
2740 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
2741 (inf_ptrace_insert_exec_catchpoint)
2742 (inf_ptrace_remove_exec_catchpoint): Remove functions.
2743 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
2744 (inf_ptrace_target): Don't set to_prepare_to_store,
2745 to_post_startup_inferior, to_acknowledge_created_inferior,
2746 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
2747 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
2748 to_follow_fork, to_insert_exec_catchpoint,
2749 to_remove_exec_catchpoint.
2751 2005-01-18 Andrew Cagney <cagney@gnu.org>
2753 * target.h (struct target_ops): Change return type of
2754 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
2755 to_insert_exec_catchpoint to void.
2756 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
2757 (child_insert_exec_catchpoint): Change return type to void.
2758 * target.c (update_current_target): Update.
2759 (debug_to_insert_fork_catchpoint)
2760 (debug_to_insert_vfork_catchpoint)
2761 (debug_to_insert_exec_catchpoint): Update.
2762 * inf-child.c (inf_child_insert_fork_catchpoint)
2763 (inf_child_insert_vfork_catchpoint)
2764 (inf_child_insert_exec_catchpoint): Update.
2765 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
2766 * linux-nat.c (child_insert_fork_catchpoint)
2767 (child_insert_vfork_catchpoint)
2768 (child_insert_exec_catchpoint): Update.
2769 * inftarg.c (child_insert_fork_catchpoint)
2770 (child_insert_vfork_catchpoint,)
2771 (child_insert_exec_catchpoint): Update.
2773 * remote.c (remote_open_1): Use throw_exception.
2775 2005-01-17 Michael Snyder <msnyder@redhat.com>
2777 * mips-linux-tdep.c: Whitespace tweaks.
2779 2005-01-17 Corinna Vinschen <vinschen@redhat.com>
2781 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
2783 2005-01-17 Andrew Cagney <cagney@gnu.org>
2785 * top.h (source_error, source_pre_error): Delete declaration.
2786 * cli/cli-script.c (source_error_allocated, source_error): Delete.
2787 (script_from_file, source_cleanup_lines): Do not manipulate
2788 source_error_allocated, error_pre_print and source_error.
2789 (struct source_cleanup_lines_args): Delete fields old_pre_error,
2790 and old_error_pre_print.
2791 * top.c (source_error_allocated, source_error)
2792 (source_pre_error): Delete.
2793 (command_line_input): Do not set error_pre_print.
2794 * event-top.c (command_line_handler): Do not set error_pre_print.
2796 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
2798 * MAINTAINERS: Update my email address.
2800 2005-01-16 Mark Kettenis <kettenis@gnu.org>
2802 * configure.ac: Provide prerequisite headers when checking
2804 * configure: Regenerate.
2806 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
2807 and "bsd-uthread.h".
2808 (amd64fbsd_jmp_buf_reg_offset): New variable.
2809 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
2811 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
2812 * i386fbsd-tdep.c: Fix typo.
2813 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
2814 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
2816 2005-01-16 Andrew Cagney <cagney@gnu.org>
2818 * cli/cli-script.c: Include "exceptions.h".
2819 (struct wrapped_read_command_file_args): Define.
2820 (wrapped_read_command_file): New function.
2821 (script_from_file): Replace direct call to read_command_file by
2822 one wrapped by an exception handler.
2823 * exceptions.c (throw_it): Free the old message after creating the
2825 * Makefile.in: Update dependencies.
2827 2005-01-16 Mark Kettenis <kettenis@gnu.org>
2829 * sparc64fbsd-tdep.c: Update copyright year.
2830 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
2832 (sparc64fbsd_init_abi): Create register sets with collect
2835 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
2836 (_initialize_sparc64fbsd_nat): Add some extra features to the
2837 generic SPARC target.
2838 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
2839 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
2840 (NAT_FILE): Set to solib.h.
2841 * config/sparc/nm-fbsd.h: Remove file.
2843 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
2845 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
2847 2005-01-16 Andrew Cagney <cagney@gnu.org>
2849 * exceptions.c (struct catcher): Delete saved_error_pre_print and
2850 saved_quit_pre_print.
2851 (catcher_init): Delete parameter errstring, do not override the
2853 (catcher_pop): Do not restore the pre_print strings.
2854 (catch_exception, catch_exceptions_with_msg, catch_errors)
2855 (catch_command_errors): Update catch_init calls.
2857 2005-01-16 Mark Kettenis <kettenis@gnu.org>
2859 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
2860 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
2862 2005-01-15 Andrew Cagney <cagney@gnu.org>
2864 * acinclude.m4: Include ../bfd/bfd.m4 instead of
2865 ../bfd/acinclude.m4. Include ../gettext.m4.
2866 * aclocal.m4, configure: Re-generate.
2868 * exceptions.c (do_captured_command)
2869 (struct captured_command_args): Delete.
2870 (catch_command_errors): Simplify by inlining call to catch_errors.
2872 * exceptions.c (struct catcher): Delete field print_message.
2873 (catcher_init): Delete print_message parameter.
2874 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
2875 (throw_it): Delete prefix parameter.
2876 (throw_verror, throw_vfatal, throw_error): Update.
2878 2005-01-14 Andrew Cagney <cagney@gnu.org>
2880 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
2881 (throw_reason): Leave the exception's message field blank.
2882 (throw_it): New function, create the exception and throw it.
2883 (throw_verror, throw_vfatal, throw_error): Call throw_it.
2884 (print_any_exception): New function.
2885 (catch_errors, catch_exceptions_with_msg): Call
2886 print_any_exception.
2887 (throw_exception): Move code calling annotate_error and
2888 annotate_quit from here ...
2889 (print_exception): ... to here.
2891 * exceptions.c (exception_fprintf, exception_print): Move printing
2893 (print_exception): ... to here.
2894 (print_flush): New function.
2895 (exception_print, exception_fprintf): Replace duplicated flush and
2896 wrap code with call to print_flush.
2897 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
2898 and print_exception.
2901 * remote-sds.c (interrupt_query): Call throw_reason instead of
2903 * remote-mips.c (mips_error, mips_kill): Ditto
2904 * ocd.c (interrupt_query): Ditto.
2905 * nto-procfs.c (interrupt_query): Ditto.
2906 * monitor.c (monitor_interrupt_query): Ditto.
2908 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
2910 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
2912 2005-01-14 Andrew Cagney <cagney@gnu.org>
2914 * exceptions.h (catch_exceptions): Delete errstring parameter.
2915 (catch_exceptions_with_msg): Ditto.
2916 * exceptions.c (catch_exceptions_with_msg): Update.
2917 (catch_exceptions): Update.
2918 * symfile-mem.c (add_vsyscall_page): Update.
2919 * frame.c (get_current_frame): Update.
2920 * wrapper.c (gdb_value_struct_elt): Update.
2921 * exceptions.c (catch_exceptions): Update.
2922 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
2923 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
2924 * remote-fileio.c (remote_fileio_request): Update.
2926 * exceptions.h (exception_fprintf): Declare.
2927 (exception_print): Drop pre_print parameter.
2928 * mi/mi-main.c (mi_execute_command): Update exception_print call.
2929 * cli/cli-interp.c (safe_execute_command): Update exception_print
2931 * remote.c (remote_open_1): Instead of passing an error prefix to
2932 catch_exceptions, use catch_exceptions and exception_fprintf.
2933 (remote_start_remote): Change return type to void.
2934 * breakpoint.c (insert_bp_location): Instead of passing an error
2935 prefix to catch_exceptions, use catch_exceptions and
2937 (insert_catchpoint): Change return type to void.
2938 (break_command_1): Update exception_print call.
2939 * exceptions.c (exception_fprintf): New function.
2940 (print_exception): New function.
2941 (exception_print): Use print_exception.
2943 * utils.c (error_output_message): Delete function.
2944 * defs.h (error_output_message): Delete declaration.
2946 * linespec.c (symtab_from_filename, decode_variable): Use
2947 throw_error instead of error_silent.
2948 * breakpoint.c (do_captured_parse_breakpoint): Change return type
2950 (break_command_1): Use catch_exception and check the error return
2952 * exceptions.c (throw_error): New function.
2953 (throw_vsilent): Delete function.
2954 * exceptions.h (throw_error): Declare.
2955 (throw_vsilent): Delete declaration.
2956 * utils.c (error_silent): Delete function.
2957 * defs.h (error_silent): Delete declaration.
2959 * mi/mi-main.c (mi_execute_command): Print the exception.
2960 * cli/cli-interp.c (safe_execute_command): Print the exception.
2961 * exceptions.h (exception_print): Declare.
2962 * exceptions.c (struct catcher): Add field print_message.
2963 (catcher_init): Add parameter print_message, store in the catcher
2965 (print_and_throw): Only print the message when print_message.
2966 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
2968 (catch_exception): Pass print_message=0 to catcher_init.
2970 * varobj.c (varobj_create): Add missing \n.
2972 2005-01-13 Michael Snyder <msnyder@redhat.com>
2974 * cli/cli-decode.h: Whitespace tweaks.
2975 * wince.c: Whitespace tweaks.
2976 * uw-thread.c: Whitespace tweaks.
2977 * utils.c: Whitespace tweaks.
2978 * tracepoint.[ch]: Whitespace tweaks.
2979 * solist.h: Whitespace tweaks.
2981 2005-01-13 Andrew Cagney <cagney@gnu.org>
2983 * exceptions.h (struct exception): Make message const.
2984 * mi/mi-main.c (mi_execute_command): Pass result.message directly
2985 to fputstr_unfiltered.
2987 2005-01-13 Michael Snyder <msnyder@redhat.com>
2989 * stack.c: Whitespace tweaks.
2990 * somsolib.[ch]: Whitespace tweaks.
2991 * solib-aix.c: Whitespace tweaks.
2992 * solib.c: Whitespace tweaks.
2993 * solib-frv.c: Whitespace tweaks.
2994 * solib.h: Whitespace tweaks.
2995 * solib-irix.c: Whitespace tweaks.
2996 * solib-som.c: Whitespace tweaks.
2997 * solib-sunos.c: Whitespace tweaks.
2998 * solib-svr4.[ch]: Whitespace tweaks.
2999 * ser-tcp.c: Whitespace tweaks.
3000 * ser-unix.c: Whitespace tweaks.
3001 * serial.h: Whitespace tweaks.
3002 * scm-valprint.c: Whitespace tweaks.
3003 * rs6000-tdep.c: Whitespace tweaks.
3004 * rs6000-nat.c: Whitespace tweaks.
3005 * remote.c: Whitespace tweaks.
3007 2005-01-13 Andrew Cagney <cagney@gnu.org>
3009 * defs.h (error_last_message, error_init): Delete declaration.
3010 * utils.c (fatal, vfatal): Call throw_vfatal.
3011 (error, verror): Call throw_verror;
3012 (do_write, error_stream_1): Delete function.
3013 (error_stream): Simplify, call error.
3014 (error_last_message, error_init, gdb_lasterr): Delete.
3015 (error_silent): Simplify, call throw_vsilent.
3016 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
3017 * main.c (captured_main): Delete call to error_init.
3018 * exceptions.c (throw_verror, throw_verror)
3019 (throw_vsilent): New functions.
3020 (do_write, print_and_throw): New functions.
3021 (last_message): New global.
3022 (throw_reason): Replace error_last_message with last_message.
3023 (catch_exceptions_with_msg): Dup the message.
3024 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
3027 2005-01-13 Michael Snyder <msnyder@redhat.com>
3029 * remote-st.c: Whitespace tweaks.
3030 * remote-sim.c: Whitespace tweaks.
3031 * remote-mips.c: Whitespace tweaks.
3032 * pa64solib.[ch]: Whitespace tweaks.
3033 * mdebugread.c: Whitespace tweaks.
3034 * main.c: Whitespace tweaks.
3035 * interps.c: Whitespace tweaks.
3036 * infrun.c: Whitespace tweaks.
3037 * infcmd.c: Whitespace tweaks.
3038 * hpux-thread.c: Whitespace tweaks.
3039 * hppa-hpux-tdep.c: Whitespace tweaks.
3040 * gdbcore.h: Whitespace tweaks.
3041 * gdbcmd.h: Whitespace tweaks.
3042 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
3043 * corefile.c: Whitespace tweaks.
3044 * completer.c: Whitespace tweaks.
3045 * coff-solib.c: Whitespace tweaks.
3046 * coff-solib.h: Whitespace tweaks.
3047 * cli-out.c: Whitespace tweaks.
3048 * breakpoint.c: Whitespace tweaks.
3049 * cli/cli-interp.c: Tweak comments, per coding standard.
3051 2005-01-13 Andrew Cagney <cagney@gnu.org>
3053 * breakpoint.c (gdb_breakpoint_query): Update, use
3054 catch_exceptions_with_msg.
3055 (do_captured_breakpoint): Add uiout parameter.
3056 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
3057 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
3058 gdb_thread_select. Return MI_CMD_ERROR instead of
3059 MI_CMD_CAUGHT_ERROR.
3060 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
3061 (enum captured_mi_execute_command_actions): Delete
3062 EXECUTE_COMMAND_DISPLAY_ERROR.
3063 (captured_mi_execute_command): Delete code handling
3064 MI_CMD_CAUGHT_ERROR.
3065 (mi_execute_command): Don't check for
3066 EXECUTE_COMMAND_DISPLAY_ERROR.
3067 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
3068 gdb_breakpoint_query.
3069 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
3070 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
3071 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
3072 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
3074 * thread.c (thread_command): Update call.
3075 (gdb_thread_select, gdb_list_thread_ids): Update, call
3076 catch_exceptions_with_msg.
3078 * mi/mi-main.c (mi_execute_command): Use catch_exception,
3079 eliminate call to error_last_message.
3080 (captured_mi_execute_command): Change return type to void.
3082 2005-01-12 Andrew Cagney <cagney@gnu.org>
3084 * exceptions.c (exception_none): New variable.
3085 * Makefile.in: Update dependencies.
3086 * interps.c: Include "exceptions.h".
3087 (interpreter_exec_cmd, interp_exec): Update to return "struct
3089 * exceptions.h (no_exception): Declare.
3090 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
3091 * mi/mi-interp.c: Include "exceptions.h".
3092 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
3094 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
3095 (do_captured_execute_command): Update to use catch_exception.
3096 * interps.h: Include "exceptions.h".
3097 (interp_exec_ftype, interp_exec): Return "struct exception".
3099 * exceptions.h (throw_reason): Rename throw_exception.
3100 (enum errors, struct exception): Define.
3101 (catch_exception_ftype): Define.
3102 (catch_exception, throw_exception): Declare.
3103 * exceptions.c (throw_exception): Rewrite.
3104 (throw_reason): New function.
3105 (struct catcher, catcher_state_machine): Replace "reason" with
3106 "exception", delete "gdberrmsg".
3107 (catch_exception): New function.
3108 (catcher_init): Replace "gdberrmsg" parameter with "exception".
3109 (catch_errors, catch_exceptions_with_msg): Re-implement passing
3110 exception to catcher_init.
3111 * utils.c (error_silent, error_stream_1): Use throw_reason.
3112 (internal_verror, quit): Ditto.
3113 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
3114 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
3115 * remote.c (remote_open_1, interrupt_query): Ditto.
3117 2005-01-12 Mark Kettenis <kettenis@gnu.org>
3119 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
3120 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
3121 (i386fbsd_jmp_buf_reg_offset): New variable.
3122 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
3124 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
3125 * Makefile.in (i386fbsd-tdep.o): Update dependency.
3126 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
3128 * bsd-uthread.h: New file.
3129 * bsd-uthread.c: New file.
3130 * Makefile.in (bsd_uthread_h): New variable.
3131 (ALLDEPFILES): Add bsd-uthread.c.
3132 (bsd-uthread.o): New dependency.
3134 * solib.h Update copyright year.
3135 (struct so_list): Forward declaration.
3136 (solib_read_symbols): New prototype.
3137 * solib.c (solib_read_symbols): New function.
3138 (solib_add): Call solib_read_symbols to read in symbols.
3139 (update_solib_list): Call observer_notify_solib_loaded.
3141 * i386bsd-nat.c: Update copyright year. Don't include
3142 <sys/param.h> and <sys/user.h>.
3143 (register_u_addr, kernel_u_size): Remove functions.
3144 * config/i386/obsd.mh (NAT_FILE): Remove.
3145 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
3146 * config/i386/nm-obsd.h: Remove file.
3148 2005-01-12 Andrew Cagney <cagney@gnu.org>
3150 * exceptions.c: Include "gdb_string.h".
3151 (enum catcher_state, struct catcher): Define.
3152 (current_catcher): New global, replaces catch_return;
3153 (catch_return): Delete.
3154 (throw_exception): Use current_catcher->buf;
3155 (catcher_init, catcher_pop, catcher_state_machine): New functions.
3157 (struct catch_errors_args): Delete.
3158 (do_catch_errors): Delete.
3159 (catch_exceptions): Replace body with call to
3160 catch_exceptions_with_msg.
3162 (catch_exceptions_with_msg, catch_errors): Re-implement using
3163 catcher_state_machine.
3165 * exceptions.h (enum return_reason, RETURN_MASK)
3166 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
3167 (return_mask, throw_exception, catch_exceptions_ftype)
3168 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
3169 (catch_command_errors_ftype, catch_command_errors): Move to
3171 * exceptions.c, exceptions.h: New files.
3172 * top.c: Do not include <setjmp.h>.
3173 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
3174 (throw_exception, catcher, catch_exceptions)
3175 (catch_exceptions_with_msg, struct catch_errors_args)
3176 (do_catch_errors, catch_errors, struct captured_command_args)
3177 (do_captured_command, catch_command_errors): Move to exceptions.c.
3178 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
3179 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
3180 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
3181 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
3182 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
3183 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
3184 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
3185 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
3186 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
3187 * ada-valprint.c, ada-lang.c: Ditto.
3188 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
3189 exceptions.o. Update all dependencies.
3191 2005-01-11 Mark Kettenis <kettenis@gnu.org>
3193 * config/i386/nm-fbsd.h: Update copyright year.
3194 Don't include "config/nm-bsd.h".
3195 (KERNEL_U_SIZE): Remove macro.
3196 (kernel_u_size): Remove prototype.
3198 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
3199 * config/vax/nm-nbsdaout.h: Remove file.
3201 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
3203 * MAINTAINERS: Remove self from sh/sh64 maintainership.
3205 2005-01-10 Andrew Cagney <cagney@gnu.org>
3207 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
3208 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
3211 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
3214 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
3215 COMMIT means can approve).
3217 2005-01-10 Mark Kettenis <kettenis@gnu.org>
3219 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
3220 (vax_register_u_offset): Make statuc.
3221 (_initialize_vax_nat): Construct and add target vector.
3222 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
3223 inftarg.o. Add inf-ptrace.o.
3224 * Makefile.in (vax-nat.o): Update dependencies.
3226 * inf-ptrace.h: Update copyright year. Sync comment with
3228 (inf_ptrace_trad_target): New prototype.
3229 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
3231 (inf_ptrace_target): Add comment.
3232 (inf_ptrace+register_u_offset): New variable.
3233 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
3234 (inf_ptrace_store_register, inf_ptrace_store_registers)
3235 (inf_ptrace_trad_target): New functions.
3236 * Makefile.in (inf-ptrace.o): Update dependencies.
3238 2005-01-09 Mark Kettenis <kettenis@gnu.org>
3240 * configure.ac: Provide prerequisite headers when checking
3241 <link.h>, <sys/proc.h> and <sys/user.h>.
3242 * configure: Regenerate.
3244 2005-01-08 Mark Kettenis <kettenis@gnu.org>
3246 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
3247 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
3249 2005-01-07 Mark Kettenis <kettenis@gnu.org>
3251 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
3252 Don't include "tm-ia64.h".
3253 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
3254 * config/ia64/tm-ia64.h: Remove. Move contents ...
3255 * ia64-tdep.h: ... here. Update copyright year.
3257 2005-01-07 Andrew Cagney <cagney@gnu.org>
3259 * configure.ac: Rename configure.in, require autoconf 2.59.
3260 * configure: Re-generate.
3262 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
3263 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
3266 * configure.in: Replace configdirs with multiple references to
3268 * configure: Re-generate.
3270 2005-01-05 Andreas Schwab <schwab@suse.de>
3272 * ia64-tdep.c: Include "osabi.h".
3273 (native_find_global_pointer): Delete.
3274 (ia64_find_global_pointer): Renamed from
3275 generic_elf_find_global_pointer.
3276 (FIND_GLOBAL_POINTER): Delete. Change all users to call
3277 ia64_find_global_pointer instead.
3278 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
3279 to ia64_linux_sigcontext_register_address and
3280 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
3281 (_initialize_ia64_tdep): Call gdbarch_register instead of
3282 deprecated register_gdbarch_init.
3283 (struct gdbarch_tdep): Remove find_global_pointer field and move
3285 * ia64-tdep.h (struct gdbarch_tdep): ... here.
3286 (ia64_linux_sigcontext_register_address): Remove declaration.
3287 (ia64_linux_getunwind_table): Likewise.
3288 (ia64_linux_write_pc): Likewise.
3289 * ia64-linux-tdep.c: Include "osabi.h".
3290 (ia64_linux_sigcontext_register_address): Make static.
3291 (ia64_linux_write_pc): Likewise.
3292 (ia64_linux_init_abi): New.
3293 (_initialize_ia64_linux_tdep): New.
3294 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
3297 2005-01-05 Kevin Buettner <kevinb@redhat.com>
3299 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
3300 functions in ia64-aix-tdep.c.
3301 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
3302 function defined in ia64-aix-tdep.c.
3303 * ia64-aix-tdep.c: Remove file.
3304 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
3306 * Makefile.in (ia64-aix-tdep.o): Delete.
3308 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3310 Committed by Andrew Cagney.
3311 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
3312 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
3313 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
3314 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
3315 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
3316 * aix-thread.c (_initialize_aix_thread): Get rid of the
3317 deprecated_add_show_from_set call.
3318 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3319 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3320 * command.h (add_setshow_enum_cmd): Add arguments for returning
3322 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
3323 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
3324 add_setshow_enum_cmd.
3326 2005-01-04 Mark Kettenis <kettenis@gnu.org>
3328 * configure.host (ia64-*-aix*): Remove.
3329 * configure.tgt (ia64-*-aix*): Remove.
3330 * config/ia64/aix.mh: Remove file.
3331 * config/ia64/aix.mt: Remove file.
3332 * config/ia64/tm-aix.h: Remove file.
3333 * ia64-aix-nat.c: Remove file.
3334 * Makefile.in (ia64-aix-nat.o): Remove dependency.
3336 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
3337 Add back inf-ptrace.o.
3339 2005-01-04 Andrew Cagney <cagney@gnu.org>
3341 * version.in: Change format from 6.3.50_2005-01-04-cvs to
3342 6.3.50.20050104-cvs.
3344 2005-01-04 Andreas Schwab <schwab@suse.de>
3346 * breakpoint.c (break_command_1): Always free err_msg before
3347 returning when an exception was caught.
3349 2005-01-01 Joel Brobecker <brobecker@gnat.com>
3351 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
3352 in register number for addil instruction.
3354 For older changes see ChangeLog-2004.
3360 version-control: never