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