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