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