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