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