* MAINTAINERS (ms1): New target ISA entry. List myself as
[binutils-gdb.git] / gdb / ChangeLog
1 2005-08-15 Kevin Buettner <kevinb@redhat.com>
2
3 * MAINTAINERS (ms1): New target ISA entry. List myself as
4 maintainer.
5
6 2005-08-15 Michael Snyder <msnyder@redhat.com>
7 Kevin Buettner <kevinb@redhat.com>
8
9 * Makefile.in (ms1-tdep.o): Add dependencies.
10 * configure.tgt: Add ms1-*-* target.
11 * ms1-tdep.c: New file.
12 * config/ms1/ms1.mt: New file.
13
14 2005-08-15 Mark Kettenis <kettenis@gnu.org>
15
16 * Makefile.in (m68kbsd-tdep.o): Ad missing space.
17
18 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
19
20 * s390-tdep.c (op1_lgfi, op2_lgfi, op1_agfi, op2_agfi,
21 op1_afi, op2_afi, op1_algfi, op2_algfi, op1_alfi, op2_alfi,
22 op1_slgfi, op2_slgfi, op1_slfi, op2_slfi): New opcode enums.
23 (s390_analyze_prologue): Recognize new z9-109 instructions.
24
25 2005-08-14 Mark Kettenis <kettenis@gnu.org>
26
27 * solib-som.c (som_current_sos): Cast to 'gdb_byte *' where
28 appropriate.
29
30 * inf-ptrace.c (inf_ptrace_him) [PT_GET_PROCESS_STATE]: Move
31 code...
32 (inf_ptrace_post_startup_inferior): ...here. New function.
33 (inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Move code...
34 (inf_ptrace_post_attach): ...here.
35 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set
36 to_post_startup_inferior and to_post_attch.
37
38 * sparc-tdep.c (sparc_breakpoint_from_pc): Constify break_insn.
39
40 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Check for
41 "__sighndlr".
42
43 2005-08-13 Mark Kettenis <kettenis@gnu.org>
44
45 * i386-linux-nat.c (fetch_register, store_register)
46 (supply_gregset, fill_gregset): Remove redundant casts.
47
48 2005-08-12 Kris Warkentin <kewarken@qnx.com>
49
50 * i386-nto-tdep.c (i386nto_init_abi): Don't set gdbarch skip
51 trampoline code hook.
52 * nto-procfs.c (procfs_post_attach): Call solib_create_inferior_hook
53 instead of SOLIB_CREATE_INFERIOR_HOOK.
54 (procfs_create_inferior): Ditto.
55 * config/tm-nto.h: Don't define SKIP_TRAMPOLINE_CODE.
56
57 2005-08-11 Andreas Schwab <schwab@suse.de>
58
59 PR exp/1978
60 * valarith.c (value_binop): Fix result type for the shift
61 operators.
62
63 2005-08-09 Mark Kettenis <kettenis@gnu.org>
64
65 * sparc64obsd-tdep.c: Tweak comments.
66 (sparc64obsd_sigreturn_offset): Add offset for new OpenBSD 3.8
67 signal trampoline.
68
69 2005-08-09 Andrew Cagney <cagney@gnu.org>
70
71 * linux-nat.h (linux_proc_xfer_memory): Change type of "myaddr" a
72 "gdb_byte" pointer.
73 * linux-nat.c (linux_proc_xfer_memory): Update.
74 (get_signo): Cast signo to a "gdb_byte" pointer.
75 * i386-linux-nat.c (child_resume): Make "buf" a gdb_byte, delete
76 redundant casts.
77 (child_resume): Cast eflags to a "gdb_byte" pointer.
78
79 2005-08-08 Mark Kettenis <kettenis@gnu.org>
80
81 * tramp-frame.h (struct tramp_frame): Allow for 16 instructions
82 instead of 8.
83 * m68kbsd-tdep.c: Include "frame.h", "trad-frame.h" and
84 "tramp-frame.h".
85 (m68kobsd_sigtramp_cache_init): New function.
86 (m68kbsd_aout_init_abi): Prepend m68kobsd_sigtramp unwinder.
87
88 2005-08-02 Fred Fish <fnf@specifix.com>
89
90 * defs.h (parse_frame_specification): Remove prototype.
91 * stack.c (parse_frame_specification): Add prototype and
92 make function static.
93 (frame_info): Move common code outside if..then..else.
94
95 2005-08-01 Daniel Jacobowitz <dan@codesourcery.com>
96
97 * value.c (value_contents_writeable): Use value_contents_raw.
98
99 2005-08-01 Daniel Jacobowitz <dan@codesourcery.com>
100
101 Suggested by Shaun Jackman <sjackman@gmail.com>:
102 * defs.h (print_transfer_performance): Update prototype.
103 * m32r-rom.c (m32r_load, m32r_upload_command): Use gettimeofday
104 for print_transfer_performance.
105 * remote-m32r-sdi.c (m32r_load): Likewise.
106 * symfile.c (generic_load): Likewise.
107 (report_transfer_performance): Create a dummy struct timeval.
108 (print_transfer_performance): Use a more accurate measure
109 of performance.
110
111 2005-08-01 Fred Fish <fnf@specifix.com>
112
113 * stack.c (parse_frame_specification_1): Remove use of obsolete
114 SETUP_ARBITRARY_FRAME macro.
115
116 2005-08-01 Daniel Jacobowitz <dan@codesourcery.com>
117
118 * dwarf2-frame.c (read_signed_leb128): Handle values that do not
119 fit in 32 bits.
120 * dwarf2read.c (read_signed_leb128): Likewise.
121
122 2005-07-31 Daniel Jacobowitz <dan@codesourcery.com>
123
124 From Josef Ezra <jezra@emc.com>:
125 * tracepoint.c (stringify_collection_list): Correct pointer
126 arithmetic.
127
128 2005-07-31 Daniel Jacobowitz <dan@codesourcery.com>
129
130 Suggested by Vladimir Prus <ghost@cs.msu.su>:
131 * infrun.c (handle_inferior_event): Check for line information in
132 undebuggable functions.
133
134 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
135
136 * cli-out.c (cli_field_fmt, cli_message, out_field_fmt): Add
137 ATTR_FORMAT or ATTRIBUTE_FPTR_PRINTF.
138 * complaints.c (vcomplaint): Likewise.
139 * defs.h (xvasprintf, xstrvprintf, verror, vfatal)
140 (internal_verror, internal_vwarning, vwarning)
141 (deprecated_query_hook, deprecated_warning_hook)
142 (deprecated_readline_begin_hook): Likewise.
143 * disasm.c (fprintf_disasm): Likewise.
144 * exceptions.c (throw_it): Likewise.
145 * exceptions.h (throw_verror, throw_vfatal): Likewise.
146 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
147 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
148 * tui/tui-hooks.c (tui_query_hook): Likewise.
149 * tui/tui-out.c (tui_field_fmt, tui_message, out_field_fmt):
150 Likewise.
151 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
152 (uo_message): Likewise.
153 * ui-out.h (ui_out_field_fmt, ui_out_message, field_fmt_ftype)
154 (message_ftype): Likewise.
155 * utils.c (vfprintf_maybe_filtered, internal_vproblem)
156 (defaulted_query, printchar): Likewise.
157
158 2005-07-26 Mark Kettenis <kettenis@gnu.org>
159
160 * i386obsd-tdep.c (i386obsd_sigreturn_offset): New variable.
161 (i386obsd_sigtramp_p): Deal with an arbitrary number of possible
162 offsets.
163 (i386obsd_aout_supply_regset): Avoid bogus cast.
164
165 2005-07-25 Mark Kettenis <kettenis@gnu.org>
166
167 * inf-ptrace.c [PT_GET_PROCESS_STATE] (inf_ptrace_follow_fork):
168 New function.
169 (inf_ptrace_him, inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Set
170 PTRACE_FORK event flag.
171 (inf_ptrace_wait) [PT_GET_PROCESS_STATE]: Handle PTRACE_FORK
172 event.
173 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set to_follow_fork.
174
175 2005-07-25 Mark Kettenis <kettenis@gnu.org>
176
177 * gdb_ptrace.h (PT_TRACE_ME): Define to zero if not already
178 defined.
179 * inf-ptrace.c: Tweak comments.
180 (inf_ptrace_me): Use PT_TRACE_ME instead of hardcoded zero.
181 (inf_ptrace_mourn_inferior): Call waitpid.
182 (inf_ptrace_attach): Use pid_t, Remove unnecessary cast.
183 (inf_ptrace_detach): Use pid_t. Use ptid_get_pid instead of
184 PIDGET.
185 (inf_ptrace_kill): Rename from inf_ptrace_kill_inferior. Use
186 pid_t. Use ptid_get_pid instead of PIDGET.
187 (inf_ptrace_kill): Call waitpid instead of wait.
188 (inf_ptrace_resume): Use pid_t. Use ptid_get_pid instead of
189 PIDGET.
190 (inf_ptrace_wait): Use waitpid instead wait. Use pid_t. Don't
191 call target_has_exited or target_thread_alive. Properly ignore
192 terminated detached child processes.
193 (inf_ptrace_has_exited): Remove function.
194 (inf_ptrace_xfer_partial): Use pid_t. Use ptid_get_pid instead of
195 PIDGET. Use gdb_byte instead of `unsigned char'.
196 (inf_ptrace_thread_alive): Use ptid_get_pid instead of PIDGET.
197 (inf_ptrace_pid_to_str): Remove function.
198 (inf_ptrace_target): Use inf_ptrace_kill instead of
199 inf_ptrace_kill_inferior. Use normal_pid_to_str instead of
200 inf_ptrace_pid_to_str. Don't set to_has_exited.
201 (inf_ptrace_fetch_register, inf_ptrace_store_register): Reformat
202 long lines.
203
204 2005-07-25 Mark Kettenis <kettenis@gnu.org>
205
206 * inf-ptrace.c: Reorder functions.
207 (inf_ptrace_open, inf_ptrace_reported_exec_events_per_call)
208 (inf_ptrace_can_run, inf_ptrace_post_attach): Removed.
209 (inf_ptrace_target): Don't set to_open,
210 to_reported_exec_events_per_call, to_can_run, to_post_attach,
211 to_stratum, to_has_all_memory, to_has_memory, to_has_stack,
212 to_has_registers, to_has_execution, to_magic. Reorder remaining
213 initializations.
214
215 2005-07-25 Mark Mitchell <mark@codesourcery.com>
216
217 * configure.ac: On MinGW, do not require a termcap library, and
218 use win32-termcap.c.
219 * configure: Regenerated.
220 * win32-termcap.c: New file.
221
222 2005-07-24 Mark Mitchell <mark@codesourcery.com>
223
224 * ser-tcp.c (close): Define as a function-like macro on MinGW.
225
226 2005-07-21 Eric Christopher <echristo@apple.com>
227
228 * MAINTAINERS (Misc): Update affiliation.
229
230 2005-07-21 Mark Kettenis <kettenis@gnu.org>
231
232 * inf-ttrace.c (inf_ttrace_wait): Properly report TTEVT_EXEC
233 events as TARGET_WAITKIND_EXECD.
234 (inf_ttrace_detach): Reorder local variables.
235
236 2005-07-20 Mark Kettenis <kettenis@gnu.org>
237
238 * inf-ttrace.c (inf_ttrace_vfork_ppid): New variable.
239 (inf_ttrace_follow_fork): New function.
240 (inf_ttrace_him, inf_ttrace_attach): Ask for TTEVT_FORK and
241 TTEVT_VFORK events. Replace TTEO_NOSTRCHLD option with
242 TTEO_PROC_INHERIT.
243 (inf_ttrace_create_inferior, inf_ttrace_attach): Add checks for
244 inf_ttrace_vfork_ppid.
245 (inf_ttrace_kill_inferior, inf_ttrace_detach): Detach from waiting
246 parent if appropriate.
247 (inf_ttrace_wait): Handle TTEVT_FORK and TTEVT_VFORK.
248 (inf_ttrace_target): Set to_follow_fork.
249
250 2005-07-20 Wu Zhou <woodzltc@cn.ibm.com>
251
252 * remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf.
253
254 2005-07-18 Mark Kettenis <kettenis@gnu.org>
255
256 * target.c (normal_pid_to_str): Use xsnprintf instead of snprintf.
257 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
258 * inf-ttrace.c (inf_ttrace_pid_to_str): Likewise.
259
260 * hppa-tdep.h (hppa_frame_prev_register_helper): Change types of
261 last argument to `gdb_byte *'.
262 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr): Rewrite.
263 (hppa_frame_prev_register_helper): Change types of last argument
264 to `gdb_byte *'.
265 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_prev_register):
266 Change types of last argument to `gdb_byte *'.
267
268 2005-07-18 Mark Kettenis <kettenis@gnu.org>
269 Jason Molenda <jmolenda@apple.com>
270
271 * i386-tdep.c (i386_match_insn): Match complete instruction
272 pattern.
273
274 2005-07-18 Mark Kettenis <kettenis@gnu.org>
275
276 * i386-tdep.c (i386_reg_struct_return_p): Handle structures with a
277 single 'long double' member correctly.
278 (i386_return_value): Tweak comment.
279
280 2005-07-16 Nick Roberts <nickrob@snap.net.nz>
281
282 * mi/gdb-mi.el: Update for changes in Emacs 22.0.50. Bring more
283 features over from gdb-ui.el. Use "-var-update --all-values" for
284 faster re-display of watch expressions.
285
286 2005-07-15 Mark Kettenis <kettenis@gnu.org>
287 Marcel Moolenaar <marcel@xcllnt.net>
288
289 * sparc64fbsd-nat.c: Include "regcache.h", <sys/types.h>,
290 <machine/pcb.h> and "bsd-kvm.h".
291 (sparc64fbsd_kvm_supply_pcb): New function.
292 (_initialize_sparc64fbsd_nat): Enable libkvm interface.
293 * config/sparc/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
294 (LOADLIBES): New variable.
295 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
296
297 2005-07-15 Nick Roberts <nickrob@snap.net.nz>
298 Daniel Jacobowitz <dan@codesourcery.com>
299
300 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values): New
301 declarations.
302 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Use string
303 constants instead of literals for MI command options.
304 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values, mi_all_values):
305 New variables.
306 (mi_parse_values_option, mi_print_value_p): New functions.
307 (mi_cmd_var_list_children): Use mi_parse_values_option and
308 mi_print_value_p.
309 (mi_cmd_var_update): Support a PRINT_VALUES option. Update calls
310 to varobj_update_one.
311 (varobj_update_one): Take a print_values argument. Call
312 mi_print_value_p.
313 * varobj.c (varobj_get_gdb_type): New function.
314 * varobj.h (varobj_get_gdb_type): New prototype.
315
316 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
317
318 * ppc-linux-tdep.c (ppc_linux_init_abi): Set 64-bit link map offsets.
319
320 2005-07-12 Mark Kettenis <kettenis@gnu.org>
321
322 * dwarf2expr.h: Tweak comment.
323 (struct dwarf_expr_context): Use `gdb_byte *' in read_mem and
324 get_frame_base function pointers.
325 (read_uleb128, read_sleb128): Change return type and types of
326 first two arguments to `gdb_byte *'.
327 (dwarf2_read_address): Change types of first two arguments to
328 `gdb_byte *'.
329 * dwarf2expr.c: Tweak comment.
330 (dwarf_expr_eval): Change type of second argument to `gdb_byte *'.
331 (read_uleb128, read_sleb128): Change return type and types of
332 first two arguments to `gdb_byte *'.
333 (dwarf2_read_address): Change types of first two arguments to
334 `gdb_byte *'.
335 (execute_stack_op): Change types of last two arguments to
336 `gdb_byte *'. Use `gdb_byte *' for byte buffers.
337 * dwarf2loc.h: Tweak comment.
338 (struct dwarf2_locexpr_baton, struct dwarf2_loclist_baton): Use
339 `gdb_byte *' for byte buffers.
340 * dwarf2loc.c (find_location_expression): Change return type to
341 `gdb_byte *'. Use `gdb_byte *' for byte buffers. Change length
342 to `unsigned int'.
343 (dwarf_expr_read_reg): Use `gdb_byte *' for byte buffer. Remove
344 bogus cast.
345 (dwarf_expr_read_mem): Change type of second argument to
346 `gdb_byte *'.
347 (dwarf_expr_frame_base): Change type of second argument to
348 `gdb_byte **'.
349 (dwarf2_evaluate_loc_desc): Change type of third argument to
350 `gdb_byte *'.
351 (needs_frame_read_mem): Change type of second argument to
352 `gdb_byte *'.
353 (needs_frame_frame_base): Change type of second argument
354 `gdb_byte **'. Use gdb_byte for lit0.
355 (dwarf2_tracepoint_var_ref): Change type of fourth argument to
356 `gdb_byte *'. Use `gdb_byte *' for byte buffer.
357 (loclist_read_variable, loclist_tracepoint_var_ref): Use `gdb_byte
358 *' for byte buffer.
359 * dwarf2-frame.c (struct dwarf2_cie, struct dwarf2_fde)
360 (struct dwarf2_frame_state): Use gdb_byte instead of `unsigned
361 char'.
362 (read_reg): Use `gdb_byte *' for byte buffers. Remove redundant
363 cast.
364 (read_mem): Change second argument to `gdb_byte *'.
365 (no_get_frame_base): Change second argument to `gdb_byte **'.
366 (execute_stack_op): Change first argument to `gdb_byte *'.
367 (execute_cfa_program): Change first two arguments to `gdb_byte *'.
368 Use gdb_byte instead of `unsigned int'. Use temprorary variable
369 to store result of read_uleb128.
370 (struct comp_unit): Use `gdb_byte *' for byte buffers.
371 (read_1_byte, read_4_bytes, read_8_bytes): Change last argument to
372 `gdb_byte *'.
373 (read_unsigned_leb128, read_signed_leb128): Change second argument
374 to `gdb_byte *'. Use gdb_byte instead of `unsigned char'.
375 (read_initial_length): Change second argument to `gdb_byte *'.
376 Remove redundant casts.
377 (read_encoded_value): Use gdb_byte instead of `unsigned char'.
378 Remove bogus casts.
379 (decode_frame_entry_1): Change return type and second argument to
380 `gdb_byte *'. Use `gdb_byte *' for byte buffers. Use gdb_byte
381 instead of `unsigned char'.
382 (decode_frame_entry): Change return type and second argument to
383 `gdb_byte *'. Use `gdb_byte *' for byte buffers.
384 (dwarf2_build_frame_info): Use `gdb_byte *' for byte buffers.
385
386 2005-07-12 Mark Kettenis <kettenis@gnu.org>
387
388 * objc-lang.c (print_object_command): Use gdb_byte for c.
389 * arch-utils.c (legacy_extract_return_value): Use 'gdb_byte *' for
390 registers.
391
392 2005-07-11 Mark Kettenis <kettenis@gnu.org>
393
394 * bsd-kvm.c: Include <paths.h>.
395 (bsd_kvm_corefile): New variable.
396 (core_kd, bsd_kvm_paddr, bsd_kvm_supply_pcb, bsd_kvm_ops): Make
397 static.
398 (bsd_kvm_open): Set bsd_kvm_corefile.
399 (bsd_kvm_files_info): New function.
400 (bsd_kvm_add_target): Set to_files_info.
401
402 2005-07-07 Andreas Schwab <schwab@suse.de>
403
404 * observer.sh: Use different temporary file name depending on mode
405 of operation to avoid clash during parallel build.
406
407 2005-07-06 Bob Rossi <bob@brasko.net>
408
409 * fork-child.c (fork-inferior): Use accessor function for
410 inferior_io_terminal.
411 * infcmd.c (inferior_io_terminal): Make static.
412 (set_inferior_io_terminal): New function.
413 (get_inferior_io_terminal): Ditto.
414 (tty_command): Use accessor function.
415 (_initialize_infcmd): Add inferior_tty setshow variable.
416 (_initialize_infcmd): Remove tty command.
417 (_initialize_infcmd): Add a tty command that is an alias.
418 * inferior.h (set_inferior_io_terminal): New prototype.
419 (get_inferior_io_terminal): Ditto.
420 (new_tty_prefork): Add const qualifier to parameter.
421 * inflow.c (inferior_thisrun_terminal): Add const qualifier.
422 (new_tty_prefork): Add const qualifier to parameter.
423 * nto-procfs (procfs_create_inferior): Use accessor function.
424 (procfs_create_inferior): Add const qualifier to locals.
425 * win32-nat.c (child_create_inferior): Ditto.
426 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): New function.
427 (mi_cmd_inferior_tty_set): Ditto.
428 * mi/mi-cmds.c (mi_cmds): Add inferior-tty-set and inferior-tty-show
429 * mi/mi-cmds.h (mi_cmd_inferior_tty_set): Add prototype.
430 (mi_cmd_inferior_tty_show): Ditto.
431
432 2005-07-06 Wu Zhou <woodzltc@cn.ibm.com>
433
434 * tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid
435 scroll command.
436
437 2005-07-06 Wu Zhou <woodzltc@cn.ibm.com>
438
439 * f-exp.y (yyparse): Add code to support exponentiation expression.
440 (yylex): Add code to scan exponentiation operator.
441 * eval.c (evaluate_subexp_standard): Add support for BINOP_EXP.
442 * valarith.c (value_binop): Reset errno to 0 before calling pow
443 to do exponentiation operation.
444
445 2005-07-04 Mark Kettenis <kettenis@gnu.org>
446
447 * i386nbsd-nat.c (i386nbsd_supply_pcb): Cast to 'gdb_byte *' in
448 read_memory call.
449 * bsd-uthread.c (bsd_uthread_wait): Use gdb_byte for byte buffer.
450
451 * bsd-kvm.c (bsd_kvm_open): Properly cast sentinel in concat call.
452 * coffread.c (patch_type, process_coff_symbol): Likewise.
453 * corelow.c (core_open): Likewise.
454 * dwarf2read.c (dwarf_decode_lines, dwarf2_start_subfile):
455 * language.c (set_lang_str, set_type_str, set_range_str)
456 (set_case_str): Likewise.
457 * source.c (add_path, openp): Likewise.
458 * stabsread.c: Likewise.
459 * top.c (init_history): Likewise.
460 * utils.c (xfullpath): Likewise.
461 * value.c (lookup_internalvar): Likewise.
462 * cli/cli-cmds.c (cd_command): Likewise.
463 * cli/cli-dump.c (add_dump_command): Likewise.
464
465 * i387-tdep.c (print_i387_value, print_i387_ext, i387_tag): Change
466 type of first argument to `const gdb_byte *'.
467 (i387_print_float_info, i387_register_to_value)
468 (i387_value_to_register, i387_supply_fsave, i387_collect_fsave)
469 (i387_supply_fxsave, i387_collect_fxsave): Use gdb_byte for byte
470 buffers.
471
472 2005-07-04 Ben Elliston <bje@gnu.org>
473
474 * Makefile.in (RUNTEST): Set to runtest.
475
476 2005-07-03 Richard Henderson <rth@redhat.com>
477
478 * amd64-tdep.c (amd64_sse_type): New.
479 (amd64_register_info): Use it for xmm registers. Constify.
480 (amd64_register_type): Initialize amd64_sse_type as needed.
481
482 2005-07-03 Steve Ellcey <sje@cup.hp.com>
483
484 * configure.ac: Add arguments to AC_DEFINE calls.
485 * acconfig.h: Remove file.
486 * acinclude.m4 (AC_GNU_SOURCE): Remove definition.
487 * configure: Regenerate.
488 * config.in: Regenerate.
489
490 2005-07-01 Mark Kettenis <kettenis@gnu.org>
491
492 * mips-tdep.c (mips_insn16_frame_prev_register)
493 (mips_insn32_frame_prev_register, mips_stub_frame_prev_register):
494 Change type of last argument to `gdb_byte *'.
495
496 2005-07-01 Steve Ellcey <sje@cup.hp.com>
497
498 * MAINTAINERS (Write After Approval): Add myself.
499
500 2005-07-01 Mark Kettenis <kettenis@gnu.org>
501
502 * solib-svr4.c: Include "solib.h".
503 * Makefile.in (solib-svr4.o): Update dependencies.
504
505 2005-06-28 Mark Kettenis <kettenis@gnu.org>
506
507 * eval.c (evaluate_struct_tuple): Use strcmp instead of
508 DEPRECATED_STREQ.
509
510 2005-06-27 Michael Snyder <msnyder@redhat.com>
511
512 * config/mn10300/linux.mt: New file.
513 * configure.tgt: Add rule for am33 / mn10300-linux.
514 * mn10300-tdep.c, mn10300-tdep.h: Bump copyright year.
515
516 2005-06-27 Wu Zhou <woodzltc@cn.ibm.com>
517
518 * gdbtypes.c (get_discrete_bounds): Fix a comment typo.
519
520 2005-06-25 Mark Kettenis <kettenis@gnu.org>
521
522 * sol-thread.c (sol_thread_xfer_memory): Change type of second
523 argument to `gdb_byte *'.
524 (sol_thread_xfer_partial): Change type of readbuf and writebuf
525 arguments to `gdb_byte *'.
526
527 * mips-tdep.c (mips_xfer_register, mips_o32_return_value)
528 (mips_integer_to_address): Use gdb_byte instead of bfd_byte.
529
530 2005-06-24 Mark Kettenis <kettenis@gnu.org>
531
532 * ppcobsd-nat.c: Include "gdbcore.h", <sys/signal.h>,
533 <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
534 (ppcobsd_supply_pcb): New function.
535 (_initialize_ppcobsd_nat): Enable libkvm interface.
536 * Makefile.in (ppcobsd-nat.o): Update dependencies.
537 * config/powerpc/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
538 (LOADLIBES): New variable.
539
540 2005-06-24 Corinna Vinschen <vinschen@redhat.com>
541
542 * i386-tdep.c (struct i386_frame_cache): Define sp_offset as LONGEST.
543
544 2005-06-23 Andreas Schwab <schwab@suse.de>
545
546 * gdb_ptrace.h: Fix typos when checking for PT_ATTACH. Reported
547 by Chad Harrington <harrington.chad@gmail.com>.
548
549 2005-06-22 Mark Kettenis <kettenis@gnu.org>
550
551 * remote.c (extended_remote_restart): Pass buffer in call to
552 xsnprintf instead of a pointer to the buffer.
553
554 2005-06-21 Andrew Cagney <cagney@gnu.org>
555
556 * MAINTAINERS: List GDB's Steering Committee as responsible for
557 GDB's maintenance.
558
559 2005-06-21 Mark Kettenis <kettenis@gnu.org>
560
561 * inf-ttrace.c (inf_ttrace_xfer_partial): Change type of readbuf
562 and writebuf arguments to `gdb_byte *'.
563
564 2005-06-21 Wu Zhou <woodzltc@cn.ibm.com>
565
566 * MAINTAINERS (Write After Approval): Add myself.
567
568 2005-06-20 Mark Kettenis <kettenis@gnu.org>
569
570 * hppabsd-tdep.c: Include "symtab.h", "objfiles.h", "target.h",
571 "value.h" and "elf/common.h".
572 (hppabsd_supply_gregset): Use `gdb_byte *' for byte buffer.
573 (hppabsd_find_global_pointer): New function.
574 (hppabsd_init_abi): Set TDEP->find_global_pointer to
575 hppabsd_find_global_pointer.
576 * Makefile.in (hppabsd-tdep.o): Update dependencies.
577
578 2005-06-12 Mark Kettenis <kettenis@gnu.org>
579
580 * hppa-tdep.c (hppa_pointer_to_address_hack): Remove function.
581 (unwind_command): Use %lx to print pointer.
582
583 2005-06-19 Mark Kettenis <kettenis@gnu.org>
584
585 * remote-sim.c (gdbsim_xfer_inferior_memory): Remove prototype.
586 Change type of second argument to`gdb_byte *'.
587
588 2005-06-19 Nick Roberts <nickrob@snap.net.nz>
589
590 * mi/mi-cmd-stack.c (mi_cmd_stack_info_frame): New function.
591
592 * mi/mi-cmds.c (mi_cmds): Replace entry for -stack-info-frame.
593 Make it use mi_cmd_stack_info_frame
594
595 * mi/mi-cmds.h (mi_cmd_stack_info_frame): New declaration.
596
597 2005-06-18 Mark Kettenis <kettenis@gnu.org>
598
599 * hppa-tdep.c (hppa_fallback_frame_cache): Don't error out if we
600 can't find the bounds of the current function. Wrap some long
601 lines in the process.
602
603 * regcache.c (regcache_raw_supply, regcache_raw_collect): Change
604 type of last argument back to `void *'.
605 * regcache.h (regcache_raw_supply, regcache_raw_collect): Likewise.
606
607 2005-06-18 Nick Roberts <nickrob@snap.net.nz>
608
609 * mi/mi-cmds.c (mi_cmds): Remove entry for -stack-info-frame.
610
611 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
612 (mi_cmd_stack_info_depth): Don't test for stack.
613 (mi_cmd_stack_select_frame): Make the argument mandatory.
614 Don't test for stack.
615
616 2005-06-17 Wu Zhou <woodzltc@cn.ibm.com>
617
618 * remote.c (set_thread, remote_thread_alive): Replace sprintf
619 call with xsnprintf.
620 (remote_threads_extra_info, extended_remote_restart)
621 (remote_check_symbols, store_register_using_P)
622 (compare_sections_command): Ditto.
623
624 2005-06-16 David Ung <davidu@mips.com>
625
626 * MAINTAINERS (Write After Approval): Add self.
627
628 2005-06-15 Mark Kettenis <kettenis@gnu.org>
629
630 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
631 (hppa_hpux_store_register): Add casts in extract_unsigned_integer
632 and store_usigned_integer calls.
633
634 2005-06-14 Nick Roberts <nickrob@snap.net.nz>
635
636 * mi/mi-main.c (mi_cmd_data_list_register_values): Remove test for
637 registers now that mi_execute_command rewinds after an error.
638
639 2005-06-13 Mark Kettenis <kettenis@gnu.org>
640
641 * configure.ac: Use AC_CHECK_TYPES to check for uintptr_t.
642 * configure, config.in: Regenerate.
643
644 * ser-tcp.c: Tweak comment.
645 [!HAVE_SOCKLEN_T]: Typedef socklen_t.
646 * configure.ac: Add check for socklen_t.
647 * configure, config.in: Regenerate.
648
649 2005-06-13 H.J. Lu <hongjiu.lu@intel.com>
650
651 * config/i386/linux64.mt (TDEPFILES): Add symfile-mem.o.
652
653 2005-06-13 Richard Sandiford <richard@codesourcery.com>
654
655 * MAINTAINERS: Update my email address.
656
657 2005-06-13 Mark Mitchell <mark@codesourcery.com>
658
659 * corelow.c (core_open): Use bfd_fopen, not bfd_fdopenr.
660 * exec.c (exec_file_attach): Likewise.
661 * solib-frv.c (enable_break2): Likewise.
662 * solib-svr4.c (enable_break): Likewise.
663 * solib.c (solib_map_sections): Likewise.
664 * symfile.c (symfile_bfd_open): Likewise.
665
666 2005-06-13 Daniel Jacobowitz <dan@codesourcery.com>
667
668 * Makefile.in (symfile.o): Add $(exec_h).
669 * exec.h (exec_set_section_address): Add prototype.
670 * exec.c (exec_set_section_address): New function.
671 * symfile.c: Include "exec.h".
672 (struct place_section_arg, place_section): New.
673 (default_symfile_offsets): Call place_section for each
674 section of a relocatable file.
675
676 2005-06-13 Joel Brobecker <brobecker@adacore.com>
677
678 * hppa-tdep.c (hppa_pc_requires_run_before_use): Really test all
679 bits of top byte in address.
680
681 2005-06-13 Wu Zhou <woodzltc@cn.ibm.com>
682
683 * eval.c (evaluate_subexp_standard): Add code to check the target
684 type of a TYPE_CODE_PTR value when we encounter a f77 undetermined
685 arglist. If it is array, string or function, work on the target
686 value instead.
687
688 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
689 Nick Roberts <nickrob@snap.net.nz>
690
691 * mi/mi-main.c (register_changed_p, get_register): Use
692 get_selected_frame.
693 (mi_execute_command): Call mi_out_rewind after an error.
694
695 2005-06-12 Mark Kettenis <kettenis@gnu.org>
696
697 * hppa-tdep.c (hppa_frame_prev_register)
698 (hppa_fallback_frame_prev_register)
699 (hppa_stub_frame_prev_register): Change type of last argument to
700 `gdb_byte *'.
701 (hppa_fetch_pointer_argument): Tweak comment. Use
702 get_frame_register_unsigned instead of get_frame_register.
703 (hppa32_return_value, hppa64_return_value): Change type of readbuf
704 and writebuf arguments to `gdb_byte *'. Remove unecessary casts
705 and local variables.
706 (hppa_pseudo_register_read): Change type of last argument to
707 `gdb_byte *'.
708
709 * m68k-tdep.c (m68k_frame_prev_register): Change type of last
710 argument to `gdb_byte *'.
711
712 * arm-tdep.c (set_disassembly_style, _initialize_arm_tdep):
713 Consitify regnames.
714
715 * alpha-tdep.c (alpha_sigtramp_frame_prev_register)
716 (alpha_heuristic_frame_prev_register): Change type of last
717 argument to `gdb_byte *'.
718 (alpha_register_to_value, alpha_value_to_register)
719 (alpha_extract_return_value, alpha_store_return_value): Likewise.
720 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
721
722 * arm-tdep.c (arm_prologue_prev_register)
723 (arm_sigtramp_prev_register): Change type of last argument to
724 `gdb_byte *'.
725
726 * m88k-tdep.c (m88k_frame_prev_register): Change type of last
727 argument to `gdb_byte *'.
728
729 * vax-tdep.c (vax_frame_prev_register): Change type of last
730 argument to `gdb_byte *'.
731
732 * sparc-tdep.c (sparc32_frame_prev_register): Change type of last
733 argument to `gdb_byte *'.
734 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
735 Likewise.
736 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Likewise.
737 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
738 Likewise.
739 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
740 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
741 Likewise.
742 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
743 Likewise.
744 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Likewise.
745 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind):
746 Likewise.
747
748 * amd64-tdep.c (amd64_frame_prev_register)
749 (amd64_sigtramp_frame_prev_register): Change type of last argument
750 to `gdb_byte *'.
751
752 2005-06-11 Mark Kettenis <kettenis@gnu.org>
753
754 * i386-tdep.c (i386_register_type): Return
755 builtin_type_void_func_ptr for %eip and builtin_type_void_data_ptr
756 for %ebp and %esp.
757
758 2005-06-10 Ben Elliston <bje@au.ibm.com>
759
760 * valprint.c (print_floating): Fix comment typo.
761
762 2005-06-09 Jeff Johnston <jjohnstn@redhat.com>
763
764 * ia64-tdep.c (ia64_pseudo_register_read): Use gdb_byte and
765 protect libunwind references with HAVE_LIBUNWIND_IA64_H flag.
766 (ia64_pseudo_register_write): Use gdb_byte to remove warning.
767 (ia64_register_to_value, ia64_value_to_register): Ditto.
768 (ia64_frame_prev_register): Ditto.
769 (ia64_libunwind_frame_prev_register): Ditto.
770 (ia64_sigtramp_frame_prev_register): Ditto.
771 (ia64_libunwind_sigtramp_frame_prev_register): Ditto.
772 (ia64_store_return_value): Ditto.
773
774 2005-06-08 Jeff Johnston <jjohnstn@redhat.com>
775 David Mosberger <davidm@hpl.hp.com>
776
777 * ia64-tdep.c (KERNEL_START): New macro.
778 (ia64_pseudo_register_read): Fix code to use libunwind to properly
779 get the rse registers.
780 (ia64_frame_this_id): Mark outermost frame with null frame id.
781 (ia64_sigtramp_frame_prev_register): Fix up debug output.
782 (ia64_access_rse_reg): New accessor function.
783 (ia64_access_mem): Add special logic for accessing the
784 kernel's unwind table.
785 (getunwind_table): Fix for corefiles.
786 (get_kernel_table): Fix to handle vDSO.
787 (ia64_libunwind_frame_this_id): Check for null frame id and
788 don't unwind past pc value of 0. Fix debugging output.
789 (ia64_libunwind_sigtramp_frame_this_id): New function.
790 (ia64_libunwind_sigtramp_frame_prev_register): Ditto.
791 (ia64_libunwind_sigtramp_frame_sniffer): Ditto.
792 (ia64_libunwind_sigtramp_frame_unwind): New unwinder.
793 (ia64_unw_rse_accessors): New libunwind accessors.
794 (ia64_libunwind_descr): Add ia64_unw_rse_accessors.
795 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Use
796 ia64_libunwind_sigtramp_frame_sniffer instead of
797 ia64_sigtramp_frame_sniffer.
798 * libunwind-frame.c (libunwind_frame_set_descr): Add
799 special register accessors.
800 (libunwind_frame_cache): Add special logic to check for
801 0 pc value. Check for a signal trampoline frame.
802 (libunwind_frame_this_id): Check if libunwind_frame_cache
803 returns NULL.
804 (libunwind_frame_prev_register): Check for NULL cache.
805 (libunwind_frame_base_address): Ditto.
806 (libunwind_sigtramp_frame_sniffer): New function.
807 (libunwind_get_reg_special): Ditto.
808 (libunwind_load): Add unw_is_signal_frame support.
809 * libunwind-frame.h (struct libunwind_descr): Add special_accessors
810 field.
811 (libunwind_sigtramp_frame_sniffer): New prototype.
812 (libunwind_get_reg_special): Ditto.
813
814 2005-06-08 Wu Zhou <woodzltc@cn.ibm.com>
815
816 * expression.h (enum exp_opcode): Fix a comment typo.
817
818 2005-06-06 Manoj Iyer <manjo@austin.ibm.com>
819
820 * solib-svr4.c (struct lm_info): Change type of 'lm' to gdb_byte.
821 (elf_locate_base): Converted types of buf, bufend, pbuf, to gdb_byte.
822 (first_link_map_member): Converted type of r_map_buf to gdb_byte.
823 (open_symbol_file_object): Converted type of l_name_buf to gdb_byte.
824 (svr4_fetch_objfile_link_map): Converted type of l_name_buf to
825 gdb_byte.
826
827 2005-06-04 Richard Sandiford <rsandifo@nildram.co.uk>
828
829 * MAINTAINERS: Update my email address.
830
831 2005-06-03 Joel Brobecker <brobecker@adacore.com>
832
833 * symmisc.c (dump_symtab_1): Renamed from dump_symtab.
834 (dump_symtab): New function.
835
836 2005-04-02 Joel Brobecker <brobecker@adacore.com>
837
838 * exceptions.h: Include ui-out.h.
839 (ui_out): Remove declaration.
840 * Makefile.in (exceptions_h): Add dependency on ui-out.h.
841
842 2005-05-30 Andrew Cagney <cagney@gnu.org>
843
844 * MAINTAINERS (Can Commit Without Approval): New section,
845 previously burried under "Target Instruction Set Architectures".
846 Note that cagney "can commit" changes to powerpc-linux.
847
848 * MAINTAINERS: Drop architecture and target vectors.
849
850 2005-05-29 Eli Zaretskii <eliz@gnu.org>
851
852 * config/djgpp/fnchange.lst: Add mappings for linux-ppc-low.c and
853 linux-ppc64-low.c.
854
855 2005-05-28 Bob Rossi <bob@brasko.net>
856 * Makefile.in (SUBDIR_MI_OBS, SUBDIR_MI_SRCS): Add mi-common.
857 (gdb/mi/ headers): Add mi_common_h.
858 (breakpoint.o, infrun.o): Add dependencies mi_common_h.
859 * breakpoint.c (include): Add include 'mi/mi-common.h'.
860 (print_it_typical): Use async_reason_lookup.
861 (watchpoint_check): Ditto.
862 * infrun.c (include): Add include 'mi/mi-common.h'.
863 (print_stop_reason): Use async_reason_lookup.
864 * mi/mi-common.h: New file.
865 * mi/mi-common.c: Ditto.
866
867 2005-05-29 Joel Brobecker <brobecker@adacore.com>
868
869 * alpha-tdep.c (alpha_next_pc): Use correct register number
870 for floating-point branch instructions.
871
872 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
873 Jonathan Larmour <jifl@eCosCentric.com>
874
875 PR backtrace/1760
876 * frame.c (backtrace_limit): Change type to int.
877 (get_prev_frame): Update backtrace limit support.
878 (_initialize_frame): Use add_setshow_integer_cmd for backtrace_limit.
879
880 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
881
882 * configure.tgt (powerpc64-*-linux*): Enable gdbserver.
883 * regformats/reg-ppc64.dat: New file.
884
885 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
886
887 From Wu Zhou <woodzltc@cn.ibm.com>:
888 * remote.c (struct gdb_ext_thread_info): Fix a comment typo.
889 (remote_unpack_thread_info_response): Likewise.
890
891 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
892
893 * cli/cli-setshow.c (do_setshow_command): Partially revert previous
894 change. Cast to "char **" for var_string.
895
896 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
897
898 * cp-name-parser.y (parse_escape): Revert previous change. Return
899 the input character by default.
900
901 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
902
903 * dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte.
904 * i386-linux-nat.c (fetch_register, store_register, supply_gregset)
905 (fill_gregset): Likewise.
906 * i386-tdep.c (i386_frame_prev_register)
907 (i386_sigtramp_frame_prev_register): Likewise.
908 * linux-nat.c (linux_nat_xfer_memory, linux_nat_make_corefile_notes):
909 Likewise.
910 * linux-thread-db.c (thread_db_xfer_memory): Likewise.
911 * remote.c (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint):
912 Likewise.
913 * target.c (debug_to_insert_hw_breakpoint)
914 (debug_to_remove_hw_breakpoint, update_current_target): Likewise.
915
916 2005-05-28 Hans-Peter Nilsson <hp@axis.com>
917
918 * MAINTAINERS: Change cris-elf state to non-broken.
919 * cp-name-parser.y (parse_escape): Initialize target_char to zero.
920
921 2005-05-27 Orjan Friberg <orjanf@axis.com>
922
923 * cris-tdep.c (crisv32_scan_prologue): Add.
924 (cris_frame_unwind_cache, cris_skip_prologue): Call
925 crisv32_scan_prologue when debugging CRISv32.
926
927 2005-05-27 Orjan Friberg <orjanf@axis.com>
928
929 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
930 (cris_frame_prev_register, cris_sigtramp_frame_prev_register)
931 (cris_return_value): Use gdb_byte for byte buffers.
932 (struct cris_frame_unwind, struct cris_frame_base): Fix formatting.
933
934 2005-05-26 Chris Demetriou <cgd@netbsd.org>
935
936 * MAINTAINERS (Write After Approval): Remove myself.
937
938 2005-05-27 Andrew Cagney <cagney@gnu.org>
939
940 * jv-lang.c (get_java_utf8_name): Add cast.
941 (evaluate_subexp_java): Use gdb_byte for buffers.
942 * jv-valprint.c (java_value_print, java_value_print): Use gdb_byte
943 for buffers.
944 * scm-lang.c (scm_get_field, scm_unpack)
945 (scm_evaluate_string): Use gdb_byte for buffers.
946 (scm_lookup_name): Add cast.
947 * scm-valprint.c (scm_scmval_print, scm_scmval_print): Use
948 gdb_byte for buffers.
949 * tui/tui.h (tui_get_command_dimension): Make parameters unsigned.
950 * tui/tui.c (tui_get_command_dimension): Make parameters unsigned.
951 * value.h (check_field): Change "name" to a string.
952 * valops.c (check_field): Change "name" to a string.
953 * scm-lang.h (scm_parse): Use gdb_byte for buffers.
954 * source.c (get_current_source_symtab_and_line)
955 (set_current_source_symtab_and_line): Initialize all fields of sal
956 structures.
957 * cli/cli-cmds.c (list_command): Use gdb_byte for buffers.
958
959 2005-05-26 Andrew Cagney <cagney@gnu.org>
960
961 * command.h (add_setshow_integer_cmd): Make VAR an integer.
962 * cli/cli-decode.c (add_setshow_integer_cmd): Update to match.
963 * valops.c (value_string): Add a cast.
964 * eval.c (evaluate_subexp_standard): Use gdb_byte for byte buffers.
965 * breakpoint.c (re_enable_breakpoints_in_shlibs): Use gdb_byte for
966 byte buffers.
967 * target.h (struct target_ops): For to_insert_hw_breakpoint and
968 to_remove_hw_breakpoint use gdb_byte for byte buffer parameters.
969 * breakpoint.h (struct bp_location): Make shadow_contents a
970 gdb_byte buffer.
971 * cli/cli-setshow.c (do_setshow_command): Fix cast.
972 * cli/cli-dump.c (restore_section_callback)
973 (restore_binary_file): Use gdb_byte for byte buffers.
974 * proc-service.c (ps_ptwrite, ps_ptread, ps_pdwrite): Fix casts.
975 (ps_xfer_memory): Use gdb_byte for byte buffers.
976 * tracepoint.c (mem2hex): Use gdb_byte for byte buffers, and char
977 for string buffers.
978 * ser-tcp.c (net_open): Make len a socklen_t.
979
980 2005-05-24 Andrew Cagney <cagney@gnu.org>
981
982 * rs6000-tdep.c (ppc_supply_reg, ppc_collect_reg): Use gdb_byte
983 for byte buffers.
984 (rs6000_fetch_pointer_argument): Use get_frame_register_unsigned.
985 (rs6000_software_single_step, sstep_breaks, skip_prologue)
986 (rs6000_push_dummy_call, rs6000_push_dummy_call)
987 (rs6000_push_dummy_call, rs6000_push_dummy_call)
988 (rs6000_register_to_value, e500_pseudo_register_read)
989 (rs6000_store_return_value, e500_pseudo_register_write)
990 (rs6000_frame_prev_register, rs6000_extract_return_value): Ditto.
991 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
992 (ppc_sysv_abi_push_dummy_call, do_ppc_sysv_return_value)
993 (do_ppc_sysv_return_value, ppc_sysv_abi_return_value)
994 (ppc_sysv_abi_broken_return_value)
995 (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_push_dummy_call)
996 (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_return_value)
997 (ppc64_sysv_abi_return_value, ppc64_sysv_abi_return_value): Ditto.
998 * ppc-linux-tdep.c (ppc_linux_in_sigtramp)
999 (ppc_linux_at_sigtramp_return_path)
1000 (ppc_linux_skip_trampoline_code)
1001 (ppc_linux_memory_remove_breakpoint, ppc_linux_return_value):
1002 * rs6000-tdep.c (rs6000_value_to_register)
1003 (rs6000_register_to_value): Ditto.
1004 * ppc-tdep.h (ppc_sysv_abi_return_value)
1005 (ppc64_sysv_abi_return_value, ppc_sysv_abi_broken_return_value)
1006 (ppc_linux_memory_remove_breakpoint): Ditto.
1007
1008 2005-05-24 Ulrich Weigand <uweigand@de.ibm.com>
1009
1010 * s390-tdep.c (s390_frame_prev_register): Change type of last
1011 argument to 'gdb_byte *'.
1012 (s390_stub_frame_prev_register): Likewise.
1013 (s390_sigtramp_frame_prev_register): Likewise.
1014
1015 2005-05-24 Kris Warkentin <kewarken@qnx.com>
1016
1017 * config/i386/nto.mt: Remove remote-nto.o.
1018
1019 2005-05-24 Orjan Friberg <orjanf@axis.com>
1020
1021 * config/djgpp/fnchange.lst: Add mappings for
1022 gdbserver/linux-cris-low.c and gdbserver/linux-crisv32-low.c.
1023
1024 2005-05-23 Michael Snyder <msnyder@redhat.com>
1025 From Nora Pan <qpan@mvista.com>
1026 * linux-nat.c (read_mapping): Don't stumble over entries in
1027 mapping that have name but zero inode.
1028
1029 2005-05-23 Andrew Cagney <cagney@gnu.org>
1030
1031 * target.h (child_xfer_memory): Use gdb_byte for byte buffer
1032 parameters.
1033 * inftarg.c (child_xfer_partial): Update.
1034 * wince.c (child_xfer_memory): Update.
1035 * win32-nat.c (child_xfer_memory): Update.
1036 * rs6000-nat.c (child_xfer_memory): Update.
1037 * infptrace.c (child_xfer_memory): Update.
1038 * dcache.c (struct dcache_block): Use gdb_byte for the byte
1039 buffers.
1040 (dcache_read_line, dcache_xfer_memory, dcache_poke_byte)
1041 (dcache_peek_byte, dcache_write_line): Ditto.
1042
1043 * auxv.h (target_auxv_read, procfs_xfer_auxv)
1044 (target_auxv_parse): Use gdb_byte for byte buffer parameters.
1045 * auxv.c (target_auxv_read, procfs_xfer_auxv, target_auxv_parse)
1046 (target_auxv_search, fprint_target_auxv): Update.
1047
1048 2005-05-23 Orjan Friberg <orjanf@axis.com>
1049
1050 * cris-tdep.c: Tweak values for cris-mode.
1051
1052 2004-05-23 Joel Brobecker <brobecker@adacore.com>
1053
1054 * mdebugread.c (record_minimal_symbol): New procedure.
1055 (parse_partial_symbols): Use record_minimal_symbol to record
1056 the new minimal symbols instead of prim_record_minimal_symbol
1057 and prim_record_minimal_symbol_and_info.
1058
1059 2005-05-22 Mark Kettenis <kettenis@gnu.org>
1060
1061 * NEWS: Mention OpenBSD/arm as a new native configuration.
1062
1063 * armnbsd-nat.c: Include "gdb_string.h" and "inf_ptrace.h".
1064 Reorder includes. Don't require FETCH_INFERIOR_REGISTERS to be
1065 defined.
1066 (armnbsd_fetch_registers): Rename from armnbsd_fetch_registers.
1067 Make static.
1068 (armnbsd_store_registers): Rename from armnbsd_store_registers.
1069 Make static.
1070 (_initialize_arm_netbsd_nat): Construct and add target vector.
1071 * Makefile.in (armnbsd-nat.o): Update dependencies.
1072 * config/arm/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1073 intarg.o, add inf-ptrace.o.
1074 (NAT_FILE): Set to solib.h.
1075 * config/arm/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1076 inftarg.o, add inf-ptrace.o.
1077 (NAT_FILE): Remove.
1078
1079 * arm-tdep.c (arm_extract_return_value, arm_store_return_value):
1080 Change type of last argument to `gdb_byte *'.
1081
1082 * configure.host: Add arm*-*-openbsd*.
1083 * configure.tgt: Add arm*-*-openbsd*.
1084
1085 2005-05-22 Andrew Cagney <cagney@gnu.org>
1086
1087 * frame.h (frame_register_unwind, frame_unwind_register)
1088 (get_frame_register, frame_register, put_frame_register)
1089 (get_frame_memory, safe_frame_unwind_memory)
1090 (frame_register_read): Use gdb_byte for byte buffer parameters.
1091 * trad-frame.h (trad_frame_get_register)
1092 (frame_get_prev_register): Ditto.
1093 * frame-unwind.h (frame_prev_register_ftype): Ditto.
1094 * frame.c (frame_pop, frame_register, frame_unwind_register)
1095 (get_frame_register, frame_unwind_register_signed)
1096 (frame_unwind_register_unsigned, frame_unwind_unsigned_register)
1097 (frame_register_read, get_frame_memory): Update.
1098 * trad-frame.c (trad_frame_get_prev_register): Update.
1099 (trad_frame_get_register): Update.
1100 * gdbcore.h (deprecated_read_memory_nobpt, read_memory): Ditto.
1101 * breakpoint.c (deprecated_read_memory_nobpt): Update.
1102 * corefile.c (read_memory): Update.
1103 * tramp-frame.c (tramp_frame_prev_register): Update.
1104 * valops.c (value_assign): Update.
1105 * sentinel-frame.c (sentinel_frame_prev_register): Update.
1106 * std-regs.c (value_of_builtin_frame_fp_reg)
1107 (value_of_builtin_frame_pc_reg): Update.
1108 * infcmd.c (default_print_registers_info): Update
1109 * dummy-frame.c (dummy_frame_prev_register): Update.
1110 * findvar.c (value_of_register, value_from_register): Update.
1111 * tui/tui-regs.c (tui_register_format, tui_get_register): Update.
1112 * mi/mi-main.c (register_changed_p, get_register): Update.
1113
1114 2005-05-20 Eli Zaretskii <eliz@gnu.org>
1115
1116 * configure.ac: Add snprintf and vsnprintf to AC_CHECK_DECLS. Fix
1117 bad description of _MSE_INT_H that caused each word in config.in
1118 to be enclosed in [].
1119 * configure, config.in: Regenerate.
1120
1121 2005-05-20 Joel Brobecker <brobecker@adacore.com>
1122
1123 * alpha-tdep.c (fp_register_zero_p): New function.
1124 (fp_register_sign_bit): New function.
1125 (alpha_next_pc): Add support for floating-point control instructions.
1126
1127 2005-05-19 Andrew Cagney <cagney@gnu.org>
1128
1129 * defs.h (extract_signed_integer, extract_unsigned_integer)
1130 (extract_long_unsigned_integer, extract_typed_address)
1131 (store_signed_integer, store_unsigned_integer)
1132 (store_typed_address): Use gdb_byte for byte buffer parameters.
1133 (push_bytes, push_word): Delete declaration.
1134 * valops.c (push_bytes, push_word): Delete function.
1135 * findvar.c (extract_signed_integer, extract_unsigned_integer)
1136 (extract_typed_address, store_signed_integer)
1137 (store_unsigned_integer): Update.
1138
1139 * regcache.h (regcache_raw_read, regcache_raw_write)
1140 (regcache_raw_read_part, regcache_raw_write_part)
1141 (regcache_cooked_read_part, regcache_cooked_write_part)
1142 (regcache_cooked_read, regcache_cooked_write)
1143 (regcache_raw_supply, regcache_raw_collect)
1144 (regcache_cooked_read_ftype, regcache_save, regcache_restore)
1145 (deprecated_read_register_gen, deprecated_write_register_gen)
1146 (deprecated_read_register_bytes, deprecated_write_register_bytes)
1147 (deprecated_grub_regcache_for_registers): Use gdb_byte for byte
1148 buffer parameters.
1149 * ia64-tdep.c (ia64_extract_return_value): Update.
1150 * frame.c (do_frame_register_read): Update.
1151 * regcache.c (deprecated_grub_regcache_for_registers)
1152 (struct regcache, regcache_save, regcache_restore, regcache_cpy)
1153 (do_cooked_read, regcache_xmalloc, register_buffer)
1154 (deprecated_read_register_bytes, regcache_raw_read)
1155 (regcache_raw_read_signed, regcache_raw_read_unsigned)
1156 (deprecated_read_register_gen, regcache_cooked_read)
1157 (regcache_cooked_read_signed, regcache_cooked_read_unsigned)
1158 (deprecated_write_register_gen, regcache_cooked_write)
1159 (deprecated_write_register_bytes, regcache_raw_read_part)
1160 (regcache_raw_write_part, regcache_cooked_read_part)
1161 (regcache_cooked_write_part, read_register, regcache_raw_supply):
1162
1163 2005-05-17 Corinna Vinschen <vinschen@redhat.com>
1164
1165 * MAINTAINERS: Undelete v850.
1166 * Makefile.in: Re-add v850-tdep.o dependencies.
1167 * configure.tgt: Re-add v850.
1168 * v850-tdep.c: Reorder code slightly. Add register number enumerator.
1169 (struct v850_frame_cache): New structure.
1170 (v850_processor_type_table): Remove. Move functionality into
1171 v850_register_name, v850e_register_name and v850_gdbarch_init.
1172 (v850_register_name): New function.
1173 (v850e_register_name): New function.
1174 (struct prologue_info): Remove definition.
1175 (v850_register_type): New function.
1176 (v850_type_is_scalar): New function.
1177 (v850_use_struct_convention): Align to gcc behaviour.
1178 (v850_handle_prepare): Renamed from handle_prepare. Change third
1179 parameter to struct v850_frame_cache *.
1180 (v850_handle_pushm): Renamed from handle_pushm. Change third parameter
1181 to struct v850_frame_cache *.
1182 (v850_is_save_register): New function to evaluate if a register is
1183 caller-save.
1184 (v850_analyze_prologue): Replace v850_scan_prologue. Change to support
1185 new frame code.
1186 (v850_init_extra_frame_info): Remove.
1187 (v850_frame_chain): Remove.
1188 (v850_find_callers_reg): Remove.
1189 (v850_skip_prologue): Make static.
1190 (v850_pop_frame): Remove.
1191 (v850_frame_align): New function.
1192 (v850_push_dummy_call): Replace v850_push_arguments.
1193 (v850_push_return_address): Remove.
1194 (v850_extract_return_value): New function.
1195 (v850_store_return_value): New function.
1196 (v850_return_value): New function.
1197 (v850_frame_saved_pc): Remove.
1198 (v850_breakpoint_from_pc): New function.
1199 (v850_alloc_frame_cache): New function.
1200 (v850_fix_call_dummy): Remove.
1201 (v850_frame_cache): New function.
1202 (v850_target_architecture_hook): Remove.
1203 (v850_frame_prev_register): New function.
1204 (v850_frame_this_id): New function.
1205 (v850_frame_unwind): New structure.
1206 (v850_frame_sniffer): New function.
1207 (v850_unwind_sp): New function.
1208 (v850_unwind_pc): New function.
1209 (v850_unwind_dummy_id): New function.
1210 (v850_frame_base_address): New function.
1211 (v850_frame_base): New structure.
1212 (v850_gdbarch_init): New function.
1213 * config/v850/v850.mt: Undelete. Drop TM_FILE.
1214
1215 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1216 Dennis Brueni <dennis@slickedit.com>
1217
1218 * stack.c (print_frame): In MI mode, output a fullname attribute
1219 with the stack frame.
1220
1221 2005-05-16 Mark Kettenis <kettenis@gnu.org>
1222
1223 * corelow.c (core_xfer_partial): Change type of readbuf and
1224 writebuf to `gdb_byte *'.
1225 * sparc-nat.c (sparc_xfer_wcookie, sparc_xfer_partial): Change
1226 type of readbuf and writebuf to `gdb_byte *'.
1227 * bsd-uthread.c (bsd_uthread_xfer_partial): Change type of readbuf
1228 and writebuf to `gdb_byte *'.
1229 * inf-ptrace.c (inf_ptrace_xfer_partial): Change type of readbuf
1230 and writebuf to `gdb_byte *'.
1231 * bsd-kvm.c (bsd_kvm_xfer_memory): Replace.
1232 (bsd_kvm_xfer_partial): New function.
1233 (bsd_kvm_add_target): Set to_xfer_partial instead of
1234 to_xfer_memory.
1235 * bfd-target.c (target_bfd_xfer_partial): Change type of readbuf
1236 and writebuf to `gdb_byte *'.
1237 * target.c (deprecated_debug_xfer_memory): Remove prototype.
1238 (deprecated_debug_xfer_memory): Change type of second argument to
1239 `gdb_byte *'.
1240 * remote.c (remote_xfer_memory): Remove prototype.
1241 (remote_xfer_memory): Change type of second argument to `gdb_byte
1242 *'.
1243 (remote_xfer_partial): Change type of readbuf and writebuf to
1244 `gdb_byte *'.
1245
1246 * config/sparc/fbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1247 * config/sparc/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
1248 and solib-legacy.o.
1249 (NAT_FILE): Remove.
1250
1251 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1252
1253 * s390-tdep.c (s390_return_value): Remove unnecessary casts.
1254 (s390_breakpoint_from_pc): Change type of return value and
1255 'breakpoint' to const gdb_byte *.
1256
1257 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1258
1259 * s390-tdep.c (s390_pseudo_register_read, s390_pseudo_register_write):
1260 Change type of 'buf' argument to gdb_byte *.
1261 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
1262 (s390_register_to_value): Change type of 'out' to gdb_byte *, change
1263 type of 'in' to gdb_byte [].
1264 (s390_value_to_register): Change type of 'in' to gdb_byte *, change
1265 type of 'out' to gdb_byte [].
1266 (s390_return_value): Change type of 'out' and 'in' to gdb_byte *.
1267
1268 2005-05-16 Andrew Cagney <cagney@gnu.org>
1269
1270 * target.h (target_read_partial, target_write_partial)
1271 (do_xfer_memory, xfer_memory, target_read, target_write)
1272 (get_target_memory): For buffers, change "void*" to gdb_byte.
1273 (struct target_ops): Ditto for to_xfer_partial and
1274 deprecated_xfer_memory.
1275 * dcache.h (dcache_xfer_memory): Ditto.
1276 * target.c (default_xfer_partial, target_read_partial)
1277 (target_write_partial, target_read, target_write)
1278 (do_xfer_memory, update_current_target, get_target_memory): Update.
1279 (target_read_string): Change buf to a gdb_byte.
1280 * dcache.c (dcache_xfer_memory): Update.
1281 * exec.c (xfer_memory): Make buffer type to gdb_byte.
1282 * mem-break.c (default_memory_insert_breakpoint): Remove cast.
1283 * disasm.c (dis_asm_read_memory): Remove cast, use gdb_byte.
1284
1285 2005-05-16 Mark Kettenis <kettenis@gnu.org>
1286
1287 * sol-thread.c (ignore): Change last argument to `gdb_byte.'
1288
1289 * config/i386/fbsd.mt (DEPRECATED_TM_FILE): Remove.
1290 * config/i386/fbsd64.mt (DEPRECATED_TM_FILE): Remove.
1291 * config/i386/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1292 * config/i386/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
1293 * config/sparc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1294 * config/sparc/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
1295
1296 * observer.sh: Quote $DJGPP.
1297
1298 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1299
1300 * Makefile.in (.y.c): Update ylwrap invocation.
1301
1302 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1303
1304 * linux-nat.c (child_follow_fork, linux_handle_extended_wait)
1305 (lin_lwp_attach_lwp, linux_nat_attach, wait_lwp, child_wait)
1306 (linux_nat_wait, kill_wait_callback): Use my_waitpid.
1307 (_initialize_linux_nat, lin_thread_get_thread_signals): Use
1308 SA_RESTART.
1309
1310 2005-05-14 Mark Kettenis <kettenis@gnu.org>
1311
1312 * configure.tgt (vax-*-openbsd*): Set gdb_target to obsd.
1313 * config/vax/obsd.mt (TDEPFILES): New file.
1314
1315 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset): Use
1316 gdb_byte instead of bfd_byte.
1317
1318 * mips-tdep.c (mips_pseudo_register_read)
1319 (mips_pseudo_register_write): Change type of last argument to
1320 `gdb_byte *'.
1321 (mips_register_to_value, mips_value_to_register): Change type of
1322 last argument to `gdb_byte *'. Remove casts that are no longer
1323 needed.
1324 (mips_fetch_instruction, fetch_mips_16): Use gdb_byte for buf.
1325 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1326 (mips_o32_push_dummy_call, mips_o32_return_value): Use `const
1327 gdb_byte *' for val and gdb_byte for valbuf. Remove casts that
1328 are no longer needed.
1329 (mips_eabi_return_value, mips_n32n64_return_value)
1330 (mips_o32_return_value, mips_o64_return_value): Change type of
1331 readbuf and writebuf arguments to `gdb_byte *'.
1332 (mips_read_fp_register_single): Change type of last argument to
1333 `gdb_byte *'. Use `gdb_byte *' for raw_buffer.
1334 (mips_read_fp_register_double): Change type of last argument to
1335 `gdb_byte *'.
1336 (mips_print_fp_register): Use `gdb_byte *' for raw_buffer. Remove
1337 casts that are no longer needed.
1338 (mips_print_register, print_gp_register_row): Use gdb_byte for
1339 raw_buffer. Remove casts that are no longer needed.
1340 (mips_single_step_through_delay): Use gdb_byte for buf.
1341 (mips_breakpoint_from_pc): Change return type to `const gdb_byte
1342 *'. Use gdb_byte for mips16_big_breakpoint, big_breakpoint,
1343 pmon_big_breakpoint, idt_big_breakpoint, mips16_little_breakpoint,
1344 little_breakpoint, pmon_little_breakpoint and
1345 idt_little_breakpoint.
1346 (mips_integer_to_address): Use `gdb_byte *' for tmp.
1347
1348 * config/m68k/obsd.mt (DEPRECATED_TM_FILE): Remove.
1349 * config/i386/obsd.mt (DEPRECATED_TM_FILE): Remove.
1350 * config/i386/obsd64.mt (DEPRECATED_TM_FILE): Remove.
1351 * config/pa/obsd.mt (DEPRECATED_TM_FILE): Remove.
1352 * config/sparc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1353 * config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Remove.
1354
1355 * sparc-tdep.c (sparc_fetch_instruction, sparc_fetch_wcookie): Use
1356 gdb_byte for buf.
1357 (sparc32_pseudo_register_read, sparc32_pseudo_register_write):
1358 Change type of last argument to `gdb_byte *'. Remove casts that
1359 are no longer needed.
1360 (sparc32_push_dummy_code, sparc32_store_arguments): Use gdb_byte
1361 for buf.
1362 (sparc_breakpoint_from_pc): Change return type to `const gdb_byte
1363 *'. Use gdb_byte for break_insn.
1364 (sparc32_extract_return_value, sparc32_store_return_value): Change
1365 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
1366 (sparc32_return_value): Change type of readbuf and writebuf
1367 arguments to `gdb_byte *'.
1368 (sparc_software_single_step): Use gdb_byte for npc_save and
1369 nnpc_save.
1370 (sparc_supply_rwindow, sparc_collect_rwindow): Use gdb_byte for
1371 buf.
1372 (sparc32_supply_gregset, sparc32_collect_gregset)
1373 (sparc32_supply_fpregset, sparc32_collect_fpregset): Use `gdb_byte
1374 *' for regs.
1375 * sparc64-tdep.c (sparc64_pseudo_register_read)
1376 (sparc64_pseudo_register_write): Change type of last argument to
1377 `gdb_byte *'. Remove casts that are no longer needed.
1378 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
1379 Change type of valbuf argument to `gfd_byte *'.
1380 (sparc64_store_arguments): Use `gdb_byte *' for valbuf. use
1381 gdb_byte for buf.
1382 (sparc64_extract_return_value, sparc64_store_return_value): Change
1383 type of last argument to `gdb_byte *'. Use gdb_byte for buf.
1384 (sparc64_return_value): Change type of readbuf and writebuf
1385 arguments to `gdb_byte *'.
1386 (sparc64_supply_gregset, sparc64_collect_gregset)
1387 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use `gdb_byte
1388 *' for regs.
1389
1390 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Change return type
1391 to `const gdb_byte *'. Use gdb_byte for break_insn.
1392 (m68k_register_to_value): Change type of last argument to
1393 `gdb_byte *'. Use gdb_byte for from.
1394 (m68k_value_to_register): Change type of last argument to
1395 `gdb_byte *'. Use gdb_byte for to.
1396 (m68k_extract_return_value): Change type of last argument to
1397 `gdb_byte *'. Use gdb_byte for buf. Remove unnecessary cast.
1398 (m68k_svr4_extract_return_value): Change type of last argument to
1399 `gdb_byte *'. Use gdb_byte for buf.
1400 (m68k_store_return_value): Change type of last argument to
1401 `gdb_byte *'. Remove unnecessary cast.
1402 (m68k_svr4_store_return_value): Change type of last argument to
1403 `gdb_byte *'. Use gdb_byte for buf.
1404 (m68k_return_value, m68k_svr4_return_value): Change type of
1405 readbuf and writebuf arguments to `gdb_byte *'.
1406 (m68k_push_dummy_call, m68k_unwind_pc, m68k_frame_cache)
1407 (m68k_unwind_dummy_id): Use gdb_byte for buf.
1408 (m68k_get_longjmp_target): Use `gdb_byte *' for buf.
1409 * m68kbsd-tdep.c (m68kbsd_supply_fpregset)
1410 (m68kbsd_supply_gregset): Use `gdb_byte *' for regs.
1411
1412 * m88k-tdep.c (m88k_breakpoint_from_pc): Change return type to
1413 `const gdb_byte *'. Use gdb_byte for break_insn.
1414 (m88k_return_value): Change type of readbuf and
1415 writebuf arguments to `gdb_byte *'. Use gdb_byte for buf.
1416 (m88k_supply_gregset): Use `gdb_byte *' for regs.
1417
1418 * vax-tdep.c (vax_return_value): Change type of readbuf and
1419 writebuf arguments to `gdb_byte *'.
1420
1421 * amd64-tdep.c (amd64_return_value): Change type of readbuf and
1422 writebuf arguments to `gdb_byte *'. Remove now redundant casts.
1423 * i386-tdep.c (i386_return_value): Change type of readbuf and
1424 writebuf arguments to `gdb_byte *'.
1425 (i386_pseudo_register_read, i386_pseudo_register_write): Change
1426 type of last argument to `gdb_byte *'.
1427 (i386_register_to_value, i386_value_to_register): Change type of
1428 last argument to `gdb_byte *'. Simplify function a bit.
1429 * i387-tdep.h (i387_value_to_register, i387_register_to_value):
1430 Change type of last argument to `gdb_byte *'.
1431 * i387-tdep.c: Likewise.
1432
1433 2005-05-13 Andrew Cagney <cagney@gnu.org>
1434
1435 * gdbarch.sh (pseudo_register_read, pseudo_register_write)
1436 (value_to_register, register_to_value, pointer_to_address)
1437 (address_to_pointer, return_value, extract_return_value)
1438 (store_return_value): Instead of a void pointer, use gdb_byte.
1439 * gdbarch.h, gdbarch.c: Regenerate.
1440 * inferior.h (unsigned_address_to_pointer)
1441 (signed_pointer_to_address, address_to_signed_pointer)
1442 (unsigned_pointer_to_address): Update.
1443 * arch-utils.h (legacy_return_value):
1444 * arch-utils.c (legacy_extract_return_value)
1445 (legacy_return_value): Update.
1446 * findvar.c (unsigned_pointer_to_address)
1447 (signed_pointer_to_address, unsigned_address_to_pointer)
1448 (address_to_signed_pointer): Update.
1449
1450 2005-05-13 Orjan Friberg <orjanf@axis.com>
1451
1452 * cris-tdep.c (_initialize_cris_tdep): Improve help strings for
1453 cris-version, cris-mode, and cris-dwarf2-cfi settings.
1454
1455 2005-05-13 Orjan Friberg <orjanf@axis.com>
1456
1457 * cris-tdep.c (usr_cmd_cris_version): Change type to int.
1458 (cris_mode_normal, cris_mode_guru, cris_modes, usr_cmd_cris_mode): Add.
1459 (struct gdbarch_tdep): Change type of cris_version to int. Add
1460 cris_mode.
1461 (cris_mode, set_cris_mode): New functions.
1462 (crisv32_single_step_through_delay): Read from NRP register instead
1463 of ERP register in guru mode.
1464 (cris_breakpoint_from_pc): Rename break_insn to break8_insn.
1465 Add break15_insn, returned in guru mode.
1466 (_initialize_cris_tdep): Add call to add_setshow_enum_cmd for new
1467 cris-mode setting.
1468 (cris_dump_tdep): Add dump of cris_mode.
1469 (cris_gdbarch_init): Add cris_mode to search criteria for architecture.
1470 Register the sigtramp frame sniffer only if not in guru mode.
1471
1472 2005-05-13 Eli Zaretskii <eliz@gnu.org>
1473
1474 * Makefile.in (go32-nat.o): Add $(top_h) to prerequisites.
1475
1476 * go32-nat.c: Include top.h. Update copyright years.
1477 (init_go32_ops): Override the default value of gdbinit[] with
1478 "gdb.ini".
1479
1480 * cli/cli-cmds.c: Don't define GDBINIT_FILENAME.
1481 (init_cli_cmds): Use gdbinit[] instead of a compile-time literal
1482 string GDBINIT_FILENAME.
1483
1484 * top.c (PATH_MAX): Define if not defined.
1485 (gdbinit): Declare with a constant size PATH_MAX.
1486
1487 * config/i386/go32.mh (XM_FILE): Remove.
1488
1489 * config/i386/xm-go32.h: Remove file.
1490
1491 2005-05-12 Mark Kettenis <kettenis@gnu.org>
1492
1493 * sol-thread.c: Include "solib.h".
1494 (sol_thread_attach): Use solib_add instead of SOLIB_ADD.
1495 * Makefile.in (sol-thread.o): Update dependencies.
1496
1497 * NEWS: Mention OpenBSD/mips64 as a new native configuration.
1498
1499 2005-05-12 Eli Zaretskii <eliz@gnu.org>
1500
1501 * observer.sh (texi) [DJGPP]: If the file name includes a colon,
1502 convert it to the /dev/x/ form.
1503
1504 2005-05-12 Mark Kettenis <kettenis@gnu.org>
1505
1506 * solib.h (CLEAR_SOLIB, SOLIB_ADD)
1507 (SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
1508 (SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
1509 (DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
1510 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
1511 comments.
1512 * breakpoint.c: Include "solib.h".
1513 (insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
1514 solib_address.
1515 (remove_solib_event_breakpoints, create_solib_event_breakpoint)
1516 (disable_breakpoints_in_shlibs)
1517 (disable_breakpoints_in_unloaded_shlib)
1518 (re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
1519 defined. If PC_SOLIB isn't defined, call solib_address.
1520 (_initialize_breakpoint): Unconditionally install observer.
1521 * corelow.c: Include "solib.h".
1522 [SOLIB_ADD] (solib_add_stub): Remove prototype.
1523 (core_close) [!CLEAR_SOLIB]: Call clear_solib.
1524 (solib_add_stub) [!SOLIB_ADD] Call solib_add.
1525 (core_open): Unconditionally call solib_add_stub.
1526 * fork-child.c: Include "solib.h".
1527 (fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
1528 solib_create_inferior_hook.
1529 * infcmd.c: Include "solib.h".
1530 (attach_command) [!SOLIB_ADD]: Call shlib_rescan. Unconditionally
1531 call re_enable_breakpoints_in_shlibs.
1532 * infrun.c: Include "solib.h".
1533 (SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
1534 defined.
1535 (stop_on_solib_events, show_stop_on_solib_events): Include
1536 unconditionally.
1537 (follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
1538 solib_create_inferior_hook.
1539 (handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
1540 [!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
1541 (_initialize_infrun): Unconditionally add "stop_on_solib-events"
1542 command.
1543 * remote.c: Include "solib.h".
1544 (remote_open_1): Unconditionally call no_shared_libraries.
1545 [!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
1546 * stack.c: Include "solib.h".
1547 (print_frame) [!PC_SOLIB] Call shlib_for_pc.
1548 * xcoffsolib.c (no_shared_libraries): Remove function.
1549 * Makefile.in (SFILES): Add solib.c.
1550 (ALLDEPFILES): Remove solib.c.
1551 (COMMON_OBS): Add solib.o.
1552 (breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
1553 (remote.o, stack.o): Update dependencies.
1554
1555 2005-05-12 Daniel Jacobowitz <dan@codesourcery.com>
1556
1557 * cp-names.y: Renamed to ...
1558 * cp-name-parser.y: ... this.
1559 * Makefile.in (SFILES, YYFILES, YYOBJ): Rename cp-names.y to
1560 cp-name-parser.y.
1561 (test-cp-names.o): Renamed to test-cp-name-parser.o.
1562 (test-cp-names): Renamed to test-cp-name-parser.
1563 (clean, local-maintainer-clean): Update.
1564 (cp-names.o): Renamed to cp-name-parser.o.
1565
1566 2005-05-12 Eli Zaretskii <eliz@gnu.org>
1567
1568 * observer.sh: Use observer.tmp instead of observer.inc-tmp which
1569 on 8+3 filesystems overwrites observer.inc. Update copyright year
1570 of the resultant file.
1571
1572 * gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and
1573 is_gnu_v3_mangled_ctor to avoid compiler warnings.
1574
1575 * config/djgpp/config.sed: Adapt to latest Autoconf.
1576
1577 * config/djgpp/djconfig.sh: Add -Wpointer-arith and
1578 -Wuninitialized to the build warnings.
1579
1580 2005-05-11 Eli Zaretskii <eliz@gnu.org>
1581
1582 * config/djgpp/fnchange.lst: Add mappings for inttypes*.m4,
1583 ChangeLog-2004, reg-cris*.dat, dw2-intermix.*, semcris*-switch.c.
1584 Fix mappings for hilo-hazard-?.s.
1585
1586 * config/djgpp/README: Update GDB versions and my email address.
1587
1588 2005-05-09 Andrew Cagney <cagney@gnu.org>
1589
1590 Use gdb_byte in preference to bfd_byte.
1591 * gdbarch.sh: Update.
1592 * gdbarch.h, gdbarch.c: Re-generate.
1593 * ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update.
1594 * c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update.
1595 * f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update.
1596 * jv-valprint.c, language.c, language.h, m2-lang.c: Update.
1597 * m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update.
1598 * p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update.
1599 * scm-lang.h, scm-valprint.c, target.c, target.h: Update.
1600 * tramp-frame.c, valarith.c, valops.c, valprint.c: Update.
1601 * valprint.h, value.c, value.h: Update.
1602
1603 2005-05-09 Mark Kettenis <kettenis@gnu.org>
1604
1605 * vaxbsd-nat.c (vaxbsd_supply_gregset, vaxbsd_collect_gregset):
1606 Use `gdb_byte *' for regs.
1607 * vax-tdep.c (vax_supply_gregset): Use `gdb_byte *' for regs;
1608 (vax_store_arguments, vax_push_dummy_call, vax_return_value): Use
1609 gdb_byte for buf.
1610 (vax_breakpoint_from_pc): Change return type to `const gdb_byte
1611 *'. Use gdb_byte for break_insn.
1612 (vax_skip_prologue): Use gdb_byte for op.
1613
1614 * i387-tdep.c: Remove outdated comments.
1615
1616 * defs.h: Unconditionally include <sys/types.h>.
1617
1618 2005-05-08 Daniel Jacobowitz <dan@codesourcery.com>
1619
1620 * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs
1621 section like .plt.
1622
1623 2005-05-08 Mark Kettenis <kettenis@gnu.org>
1624
1625 * i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
1626 Change type to `static const gdb_byte'.
1627 (i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start)
1628 (i386_linux_sigcontext_addr): Use gdb_byte for buf.
1629 * amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static
1630 const gdb_byte'.
1631 (amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use
1632 gdb_byte for buf.
1633 * amd64fbsd-tdep.c (amd64fbsd_supply_uthread)
1634 (amd64fbsd_collect_uthread): Use gdb_byte for buf.
1635
1636 * config/ia64/nm-aix.h: Remove file.
1637
1638 * amd64-tdep.c (amd64_return_value): Use `gdb_byte *' in casts.
1639 (amd64_push_arguments): Use gdb_byte instead of bfd_byte. Use
1640 gdb_byte for buf.
1641 (amd64_push_dummy_call): Use gdb_byte for buf.
1642 (amd64_analyze_prologue): Use gdb_byte for proto, buf and op.
1643 (amd64_frame_cache, amd64_sigtramp_frame_cache)
1644 (amd64_unwind_dummy_id): Use gdb_byte for buf.
1645 (amd64_supply_fxsave, amd64_collect_fxsave): Use `gdb_byte *' for
1646 regs.
1647 * amd64obsd-tdep.c (amd64obsd_supply_regset): Use `gdb_byte *' in
1648 casts.
1649 (amd64obsd_sigtramp_p): Use gdb_byte for sigreturn and `gdb_byte
1650 *' for buf,
1651
1652 * i386-tdep.c (i386_breakpoint_from_pc): Change return type to
1653 `const gdb_byte *'. Use gdb_byte for break_insn.
1654 (i386_follow_jump): Use gdb_byte for op.
1655 (i386_analyze_struct_return): Use gdb_byte for proto1, proto2, buf
1656 and op.
1657 (i386_skip_probe): Use gdb_byte for buf and op.
1658 (struct i386_insn): Use gdb_byte for insn and mask.
1659 (i386_match_insn, i386_analyze_frame_setup)
1660 (i386_analyze_register_saves): Use gdb_byte for op.
1661 (i386_skip_prologue): Use gdb_byte for pic_pat and op;
1662 (i386_unwind_pc, i386_frame_cache, i386_sigtramp_frame_cache)
1663 (i386_unwind_dummy_id, i386_get_longjmp_target): Use gdb_byte for
1664 buf.
1665 (i386_extract_return_value, i386_store_return_value): Use
1666 `gdb_byte *' instead of `void *' for valbuf argument. Remove now
1667 redundant cast.
1668 (i386_pseudo_register_read, i386_pseudo_register_write): Use
1669 gdb_byte for mmx_buf.
1670 (i386_register_to_value, i386_value_to_register): Use `gdb_byte *'
1671 instead of `char *' for buf.
1672 (i386_supply_gregset, i386_collect_gregset): Use `gdb_byte *'
1673 instead of `char *' for regs.
1674 (i386_svr4_sigcontext_addr): Use gdb_byte for buf.
1675 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use gdb_byte for
1676 sigreturn and `gdb_byte *' for buf.
1677 (i386obsd_aout_supply_regset): Use `const gdb_byte *' in cast.
1678 (i386obsd_supply_uthread, i386obsd_collect_uthread): Use gdb_byte
1679 for buf.
1680 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use gdb_byte for buf.
1681
1682 * defs.h (gdb_byte): New typedef. Tweak comments.
1683
1684 * target.h (target_link): Remove prototype.
1685 * target.c (target_link): Remove function.
1686 * symfile.c: Remove comment about rombug.
1687
1688 2005-05-04 Mark Kettenis <kettenis@gnu.org>
1689
1690 * config/i386/cygwin.mh (XM_FILE): Remove variable.
1691 * config/i386/xm-cygwin.h: Remove file.
1692
1693 2005-05-03 Ben Elliston <bje@au.ibm.com>
1694
1695 * infrun.c (handle_inferior_event): Update the comment about users
1696 of stepped_after_stopped_by_watchpoint.
1697
1698 2005-05-02 Corinna Vinschen <vinschen@redhat.com>
1699
1700 * MAINTAINERS: Remove hint that sh64 doesn't build.
1701 * sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory.
1702 (sh64_do_fp_register): make raw_buffer unsigned.
1703 (sh64_do_register): Ditto.
1704
1705 2005-05-02 Mark Kettenis <kettenis@gnu.org>
1706
1707 * bsd-uthread.c: Include "solib.h".
1708 * Makefile.in (bsd-uthread.o): Update dependencies.
1709
1710 2005-05-01 Daniel Jacobowitz <dan@codesourcery.com>
1711
1712 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
1713 cached frames when changing gdbarch.
1714 * gdbarch.c: Regenerated.
1715
1716 2005-05-01 Andrew Cagney <cagney@gnu.org>
1717
1718 * MAINTAINERS: Note that cris, m68k, mn10300, sh64, sparc and vax
1719 do not build.
1720
1721 * gdbarch.sh (deprecated_extract_return_value)
1722 (breakpoint_from_pc, deprecated_store_return_value)
1723 (memory_insert_breakpoint, memory_remove_breakpoint): Change type
1724 of buffer to a bfd_byte pointer.
1725 * gdbarch.h, gdbarch.c: Re-generate.
1726 * mem-break.c (memory_insert_breakpoint)
1727 (memory_remove_breakpoint, default_memory_insert_breakpoint)
1728 (default_memory_remove_breakpoint): Update.
1729 * target.h (memory_insert_breakpoint)
1730 (memory_remove_breakpoint, default_memory_insert_breakpoint)
1731 (default_memory_remove_breakpoint): Update declarations.
1732 (struct target_ops): Update to_insert_breakpoint and
1733 to_remove_breakpoint.
1734 * target.c (debug_to_remove_breakpoint)
1735 (debug_to_insert_breakpoint): Update.
1736 * remote-m32r-sdi.c (m32r_remove_breakpoint)
1737 (m32r_insert_breakpoint): Update.
1738 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1739 (m32r_memory_remove_breakpoint): Update.
1740 * remote-e7000.c (e7000_insert_breakpoint)
1741 (e7000_remove_breakpoint): Update.
1742 * remote-rdi.c (arm_rdi_insert_breakpoint)
1743 (arm_rdi_remove_breakpoint): Update.
1744 * remote-sim.c (gdbsim_insert_breakpoint)
1745 (gdbsim_remove_breakpoint): Update.
1746 * exec.c (ignore): Update.
1747 * rs6000-tdep.c (rs6000_extract_return_value): Update.
1748 * ia64-tdep.c (ia64_memory_insert_breakpoint)
1749 (ia64_memory_remove_breakpoint): Update.
1750 * remote-rdp.c (remote_rdp_insert_breakpoint)
1751 (remote_rdp_remove_breakpoint): Update.
1752
1753 2005-05-01 Mark Kettenis <kettenis@gnu.org>
1754
1755 * somsolib.c, somsolib.h: Remove files.
1756 * Makefile.in (somsolib_h): Remove.
1757 (somsolib.o): Remove dependency.
1758
1759 * fbsd-nat.c: Include <sys/sysctl.h>.
1760 (fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
1761 available. Plug memory leak. Fixes PR gdb/1922.
1762
1763 2005-04-29 Mark Kettenis <kettenis@gnu.org>
1764
1765 * solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB)
1766 (TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK)
1767 (TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS)
1768 (TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
1769 * solib.c (solib_data): New variable.
1770 (solib_init, solib_ops): New functions.
1771 (solib_open, solib_map_sections, free_so, update_solib_list)
1772 (solib_add, clear_solib, solib_create_inferior_hook)
1773 (in_solib_dynsym_resolve_code): Call architecture-dependent code
1774 using solib_ops.
1775 (_initialize_solib): Register SOLIB_DATA.
1776
1777 2005-04-29 Kevin Buettner <kevinb@redhat.com>
1778
1779 * frv-tdep.c (find_func_descr): Verify that entry point can be
1780 found in symbol table prior to looking up its function descriptor.
1781 * solib-frv.c (find_canonical_descriptor_in_load_object): Add
1782 test for non-NULL link map.
1783
1784 2005-04-29 Corinna Vinschen <vinschen@redhat.com>
1785
1786 * MAINTAINERS: Revert h8300 state to un-deleted.
1787 * Makefile.in: Re-add h8300-tdep.o dependencies.
1788 * h8300-tdep.c: Slightly rearrange type definitions and functions.
1789 (struct frame_extra_info): Remove.
1790 (struct h8300_frame_cache): Replace locals with differently defined
1791 uses_fp member.
1792 (h8300_unwind_pc): Simplify.
1793 (h8300_unwind_sp): New function.
1794 (h8300_unwind_dummy_id): Simplify.
1795 (h8300_init_frame_cache): New function.
1796 (h8300_is_argument_spill): Use reworked defines for opcode scanning.
1797 (h8300_skip_prologue): Rewrite.
1798 (h8300_alloc_frame_cache): Remove.
1799 (h8300_analyze_frame_setup): Remove.
1800 (h8300_analyze_register_saves): Remove.
1801 (h8300_analyze_prologue): Rewrite.
1802 (h8300_frame_cache): Use h8300_init_frame_cache instead of
1803 h8300_alloc_frame_cache. Use BINWORD instead of constant 4 to
1804 accomodate 16 bit mode. Fix saved_sp and register offset evaluation.
1805 (h8300_frame_this_id): Correctly calculate this_id using saved stack
1806 pointer instead of base.
1807 (h8300_frame_prev_register): Drop needless braces.
1808 (h8300_frame_base_address): New function.
1809 (h8300_frame_base): New frame_base.
1810 (h8300_push_dummy_call): Return correct CFA value.
1811 (h8300h_extract_return_value): Fix 8 byte value handling.
1812 (h8300_use_struct_convention): New function.
1813 (h8300h_use_struct_convention): New function.
1814 (h8300h_store_return_value): Fix 8 byte value handling.
1815 (h8300_return_value): New function.
1816 (h8300h_return_value): New function.
1817 (h8300_extract_struct_value_address): Remove deprecated functionality.
1818 (h8300_push_dummy_code): Remove.
1819 (h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
1820 set_gdbarch_store_return_value calls by set_gdbarch_return_value.
1821 Remove calls to set_gdbarch_deprecated_fp_regnum,
1822 set_gdbarch_deprecated_extract_struct_value_address,
1823 set_gdbarch_deprecated_use_struct_convention and
1824 set_gdbarch_push_dummy_code.
1825 Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
1826 Slightly rearrange code.
1827
1828 2005-04-28 Jim Blandy <jimb@redhat.com>
1829
1830 * parse.c (namecopy): Change allocation conventions.
1831 (namecopy_size): New variable.
1832 (copy_name): Allocate namecopy using xrealloc, instead of assuming
1833 it has adequate space allocated to it.
1834 (parse_exp_1): Don't try to allocate space for namecopy here.
1835
1836 2005-04-28 Eli Zaretskii <eliz@gnu.org>
1837
1838 * cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
1839 set, use symtab_to_fullname, instead of trying to do its job. Use
1840 xstrprintf instead of malloc and sprintf.
1841
1842 2005-04-28 Kevin Buettner <kevinb@redhat.com>
1843
1844 * remote.c (init_remote_state): Eliminate use of
1845 deprecated_register_bytes().
1846
1847 2005-04-28 Andrew Cagney <cagney@gnu.org>
1848
1849 * valops.c (check_field): Make buffer a bfd_byte.
1850 * value.c (unpack_long, unpack_double, unpack_pointer)
1851 (unpack_field_as_long, modify_field): Ditto.
1852 * value.h: Update declarations.
1853
1854 2005-04-28 Paul Brook <paul@codesourcery.com>
1855
1856 * exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
1857
1858 2005-04-27 Mark Kettenis <kettenis@gnu.org>
1859
1860 * solib-svr4.c (_initialize_svr4_solib)
1861 [SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
1862 svr4_legacy_fetch_link_map_offsets.
1863
1864 * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
1865 (sh_gdbarch_init): Remove redundant prototype.
1866 * sh-linux-tdep.c: New file.
1867 * config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
1868 Remove prototype.
1869 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1870 * config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
1871 solib-legacy.o.
1872 * Makefile.in (sh-linux-tdep.o): New.
1873
1874 * solib-svr4.c: Update copyright year. Include "gdb_assert.h".
1875 (SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
1876 defined.
1877 (legacy_fetch_link_map_offsets): Remove prototype.
1878 (fetch_link_map_offsets_gdbarch_data): Remove.
1879 (LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
1880 (first_link_map_member, open_symbol_file_object, svr4_current_sos)
1881 (svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
1882 instead of SVR4_FETCH_LINK_MAP_OFFSETS.
1883 (solib_svr4_data): New variable.
1884 (struct solib_svr4_ops): New.
1885 (solib_svr4_init): New fynction.
1886 (legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
1887 Remove functions.
1888 (svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
1889 using the new `struct solib_svr4_ops'.
1890 (_initialize_svr4_solib): Replace registration of per-architecture
1891 data. Add temporary hack to set
1892 svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
1893 is set.
1894 * Makefile.in (solib-svr4.o): Update dependencies.
1895
1896 2005-04-26 Mark Kettenis <kettenis@gnu.org>
1897
1898 * configure.tgt (*-*-freebsd*): Set gdb_osabi to
1899 GDB_OSABI_FREEBSD_ELF. Partial fix for PR gdb/1922.
1900
1901 2005-04-26 Andrew Cagney <cagney@gnu.org>
1902
1903 * remote.c (remote_open_1): Move "ex"'s declaration to where it is
1904 used.
1905 (remote_get_thread_local_address): Use throw_error, include a
1906 printed string.
1907 * linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
1908 * dwarf2loc.c (dwarf_expr_tls_address): Ditto.
1909 * cli/cli-script.c (script_from_file): Mark up throw_error message.
1910 * linespec.c (symtab_from_filename, decode_variable): Ditto.
1911
1912 2005-04-26 Andrew Cagney <cagney@gnu.org>
1913
1914 Rename 'struct exception' to 'struct gdb_exception'.
1915 * wrapper.c: Update.
1916 * varobj.c: Update.
1917 * tui/tui-interp.c: Update.
1918 * remote.c: Update.
1919 * mi/mi-main.c: Update.
1920 * mi/mi-interp.c: Update.
1921 * linux-thread-db.c: Update.
1922 * interps.h: Update.
1923 * interps.c: Update.
1924 * exceptions.h: Update.
1925 * exceptions.c: Update.
1926 * dwarf2loc.c: Update.
1927 * cli/cli-interp.c: Update.
1928 * cli/cli-script.c: Update.
1929 * breakpoint.c: Update.
1930
1931 2005-04-25 Mark Mitchell <mark@codesourcery.com>
1932
1933 * event-loop.c (gdb_select): Program defensively.
1934
1935 * event-loop.c (gdb_assert.h): Include.
1936 (<windows.h>): Include under Windows.
1937 (<io.h>): Likeiwse.
1938 (gdb_select): New function.
1939 (gdb_wait_for_event): Use it.
1940 * Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
1941
1942 2005-04-23 Mark Kettenis <kettenis@gnu.org>
1943
1944 * sparc64-tdep.c: Include "dwarf2-frame.h".
1945 (sparc64_dwarf2_frame_init_reg): New function.
1946 * Makefile.in (sparc64-tdep.o): Update dependencies.
1947
1948 2005-04-22 David S. Miller <davem@davemloft.net>
1949
1950 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
1951 sparc64_init_abi().
1952
1953 2005-04-22 Mark Kettenis <kettenis@gnu.org>
1954
1955 * ser-base.c: Include "ser-base.h" instead of "ser-unix.h".
1956
1957 2005-04-22 Mark Mitchell <mark@codesourcery.com>
1958
1959 * ser-base.c (<sys/time.h>): Include.
1960
1961 2005-04-22 Mark Kettenis <kettenis@gnu.org>
1962
1963 * ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value.
1964
1965 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
1966 (LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
1967 (LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
1968 macros.
1969 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
1970 instructions.
1971 * sparc64-linux-tdep.c: Reorder includes. Tweak a few comments.
1972 (LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
1973 macros.
1974 (sparc64_linux_rt_sigframe): Hardcode instructions.
1975 * Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
1976 dependencies.
1977
1978 * sparc-linux-tdep.c: Update copyright year.
1979 (sparc32_linux_init_abi): Set skip_trampoline_code and
1980 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
1981 Don't set software_single_step and don't call
1982 sparc32_sol2_init_abi.
1983 * sparc64-linux-tdep.c: Update copyright year.
1984 (sparc64_linux_init_abi): Set skip_trampoline_code and
1985 solib_svr4_fetch_link_map_offsets. Set TDEP->plt_entry_size.
1986 Don't set software_single_step and don't call
1987 sparc64_sol2_init_abi.
1988
1989 2005-04-22 Eli Zaretskii <eliz@gnu.org>
1990
1991 * remote-st.c (_initialize_remote_st2000): Remove the extraneous
1992 "<command>" string from the call to add_com.
1993
1994 * remote-sim.c (_initialize_remote_sim): Ditto.
1995
1996 * remote-utils.c (_initialize_sr_support): Ditto.
1997
1998 * remote-mips.c (_initialize_remote_mips): Ditto.
1999
2000 2005-04-21 David S. Miller <davem@davemloft.net>
2001
2002 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): New function.
2003 (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): New tramp_frames.
2004 (sparc_linux_sigtramp_start, sparc32_linux_sigtramp_start,
2005 sparc32_linux_rt_sigtramp_start, sparc32_linux_sigtramp_p,
2006 sparc32_linux_sigtramp_frame_cache,
2007 sparc32_linux_sigtramp_frame_this_id,
2008 sparc32_linux_sigtramp_frame_prev_register,
2009 sparc32_linux_sigtramp_frame_unwind,
2010 sparc32_linux_sigtramp_frame_sniffer): Delete.
2011 (sparc32_linux_init_abi): Register new tramp unwinders. Kill
2012 register of old sigtramp sniffer.
2013 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): New
2014 function.
2015 (sparc64_linux_rt_sigframe): New tramp frame.
2016 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
2017 sparc64_linux_sigtramp_frame_cache,
2018 sparc64_linux_sigtramp_frame_this_id,
2019 sparc64_linux_sigtramp_frame_prev_register,
2020 sparc64_linux_sigtramp_frame_unwind,
2021 sparc64_linux_sigtramp_frame_sniffer): Delete.
2022 (sparc64_linux_init_abi): Register new tramp unwinders. Kill
2023 register of old sigtramp sniffer.
2024 Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2025 (sparc-linux-tdep.o): Likewise.
2026
2027 2005-04-21 Mark Kettenis <kettenis@gnu.org>
2028
2029 * ser-base.c: Include "gdb_string.h".
2030 * Makefile.in (ser-base.o): Update dependencies.
2031
2032 2005-04-20 David S. Miller <davem@davemloft.net>
2033
2034 * sparc-linux-tdep.c (sparc32_linux_sigtramp_p): Fix
2035 signal return stub symbol names, __restore and __restore_rt are
2036 the i386 symbol names not the sparc ones.
2037 (sparc32_linux_sigtramp_frame_cache): Document bits/sigcontext.h
2038 as where the offsets were obtained from.
2039 * sparc64-linux-tdep.c (LINUX64_RT_SIGTRAMP_INSN0,
2040 LINUX64_RT_SIGTRAMP_INSN1): New defines.
2041 (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
2042 sparc64_linux_sigtramp_frame_cache,
2043 sparc64_linux_sigtramp_frame_this_id,
2044 sparc64_linux_sigtramp_frame_prev_register,
2045 sparc64_linux_sigtramp_frame_sniffer): New functions.
2046 (sparc64_linux_sigtramp_frame_unwind): New frame unwinder.
2047 (sparc64_linux_init_abi): Register sigtramp frame sniffer.
2048 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2049
2050 2005-04-20 Mark Mitchell <mark@codesourcery.com>
2051
2052 * configure.ac: On MinGW, define USE_WIN32API and link with
2053 -lws2_32.
2054 * ser-tcp.c (<winsock2.h>): Include, for Windows.
2055 (ETIMEDOUT): Define, for Windows.
2056 (ioctl): Likewise.
2057 (closesocket): Define, for POSIX.
2058 (net_open): Adjust for differences in socket functions between
2059 Windows and UNIX.
2060 (net_close): Likweise.
2061 (net_read_prim): New function.
2062 (net_write_prim): Likewise.
2063 (_initialize_ser_tcp): Initialize winsock. Fill in read_prim and
2064 write_prim.
2065 * ser-unix.h (ser_unix_readcchar): Remove.
2066 (ser_unix_read_prim): Declare.
2067 (ser_unix_write_prim): Likewise.
2068 * ser-unix.c (generic_readchar): Move to ser-base.c.
2069 (ser_unix_wait_for): Likewise.
2070 (do_unix_readchar): Likewise.
2071 (ser_unix_readchar): Likewise.
2072 (_initialize_ser_hardwire): Initialize read_prim and write_prim.
2073 (ser_unix_read_prim): New function.
2074 (ser_unix_write_prim): Likewise.
2075 * ser-base.h (generic_readchar): Declare.
2076 (ser_base_readchar): Likewise.
2077 * ser-base.c (<winsock2.h>): Include, for windows.
2078 (fd_event): Use the read primitive specified by the serial
2079 interface.
2080 (ser_base_wait_for): Moved from ser-unix.c
2081 (do_ser_base_read_char): Likewise.
2082 (generic_readchar): Likewise.
2083 (ser_base_readchar): Likewise.
2084 (ser_base_write): Use the write primitive specified by the serial
2085 interface.
2086 * ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
2087 ser_unix_readchar. Initialize read_prim and write_prim.
2088 * serial.c (struct serial_ops): Add read_prim and write_prim.
2089 * configure: Regenerate.
2090
2091 2005-04-19 Ben Elliston <bje@au.ibm.com>
2092
2093 * c-lang.c (c_create_fundamental_type): Comment fix.
2094
2095 2005-04-18 Michael Snyder <msnyder@redhat.com>
2096
2097 * mn10300-tdep.c: Assimilate code from mn10300-prologue.c.
2098 * mn10300-prologue.c: Remove.
2099 * mn10300-tdep.h: Add enums from mn10300-prologue.c.
2100 Remove prototypes.
2101 * config/mn10300/mn10300.mt: Remove mn10300-prologue module.
2102
2103 2005-04-18 Michael Snyder <msnyder@redhat.com>
2104
2105 * config/mn10300/mn10300.mt: Add mn10300-prologue module.
2106 * ia64-tdep.c (ia64_get_dyn_info_list): Fix indent.
2107
2108 2005-04-18 Mark Kettenis <kettenis@gnu.org>
2109
2110 * config/nm-bsd.h: Remove file.
2111
2112 * hppabsd-nat.c: Update copyright year. Include "target.h" and
2113 "inf-ptrace.h".
2114 (hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
2115 made static.
2116 (hppabsd_store_registers): Renamed from store_inferior_registers;
2117 made static.
2118 (_initialize_hppabsd_nat): New function and prototype.
2119 * config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
2120 inftarg.o. Add inf-ptrace.o.
2121 (NAT_FILE): Remove.
2122 * Makefile.in (hppabsd-nat.o): Update dependencies.
2123
2124 2005-04-17 Mark Kettenis <kettenis@gnu.org>
2125
2126 * pa64solib.c, pa64solib.h: Remove files.
2127 * Makefile.in (pa64solib_h): Remove variable
2128 (pa64solib.o): Remove dependency.
2129
2130 2005-04-16 Mark Kettenis <kettenis@gnu.org>
2131
2132 * ppcobsd-nat.c: Update copyright year. Include "inf-ptrace.h".
2133 (ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
2134 made static.
2135 (ppcobsd_store_registers): Renamed from store_inferior_registers;
2136 made static.
2137 (_initialize_ppcobsd_nat): Construct and add target vector.
2138 * config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
2139 inftarg.o. Add inf-ptrace.o.
2140 (NAT_FILE): Remove.
2141 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2142
2143 * ppcobsd-tdep.c: Include "floatformat.h".
2144 (ppcobsd_init_abi): Set long_double_bit and long_double_format.
2145 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
2146
2147 * ppcobsd-tdep.c: Fix typo in comment.
2148 (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
2149 bfd_arch_rs6000 too.
2150
2151 2005-04-15 Kevin Buettner <kevinb@redhat.com>
2152
2153 * remote.c (remote_get_thread_local_address): Throw a more
2154 meaningful exception when remote target doesn't have support
2155 for the qGetTLSAddr packet.
2156
2157 2005-04-15 Kevin Buettner <kevinb@redhat.com>
2158
2159 * remote.c (remote_protocol_qGetTLSAddr): New static global variable.
2160 (set_remote_protocol_qGetTLSAddr_packet_cmd)
2161 (show_remote_protocol_qGetTLSAddr_packet_cmd)
2162 (remote_get_thread_local_address): New functions.
2163 (init_all_packet_configs): Initialize remote_protocol_qGetTLSAddr
2164 variable.
2165 (init_remote_ops): Initialize ``to_get_thread_local_address'' in
2166 target vector.
2167 (show_remote_cmd): Call show_remote_protocol_qGetTLS_Addr_packet_cmd().
2168 (_initialize_remote): Register the following commands:
2169 "set remote get-thread-local-storage-address-packet" and
2170 "show remote get-thread-local-address-packet".
2171
2172 2005-04-15 Kevin Buettner <kevinb@redhat.com>
2173
2174 * remote.c (add_packet_config_cmd): Delete unused variables.
2175
2176 2005-04-15 Kevin Buettner <kevinb@redhat.com>
2177
2178 * remote.c (show_remote_protocol_vcont_packet_cmd )
2179 (show_remote_protocol_qSymbol_packet_cmd)
2180 (show_remote_protocol_P_packet_cmd)
2181 (show_remote_protocol_Z_software_bp_packet_cmd)
2182 (show_remote_protocol_Z_hardware_bp_packet_cmd)
2183 (show_remote_protocol_Z_write_wp_packet_cmd)
2184 (show_remote_protocol_Z_read_wp_packet_cmd)
2185 (show_remote_protocol_Z_access_wp_packet_cmd)
2186 (show_remote_protocol_binary_download_cmd)
2187 (show_remote_protocol_qPart_auxv_packet_cmd)
2188 (show_remote_protocol_p_packet_cmd ): Delete calls to
2189 deprecated_show_value_hack().
2190
2191 2005-04-15 Corinna VInschen <vinschen@redhat.com>
2192
2193 * MAINTAINERS: Change sh64-elf state to non-broken.
2194 * Makefile.in: Fix dependencies for sh64-tdep.o.
2195 * configure.tgt: Add sh64-*-elf case.
2196 * sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
2197 * sh64-tdep.c: Rework to replace all deprecated mechanisms with
2198 modern methods.
2199 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2200 * config/sh/sh64.mt: Resurrect.
2201
2202 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
2203
2204 * regformats/reg-m32r.dat: New file.
2205
2206 2005-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2207
2208 * arm-tdep.c (fp_model_strings): Add terminating NULL.
2209 (arm_abi_strings, arm_abi_global, arm_abi_string): New
2210 variables.
2211 (arm_extract_return_value, arm_store_return_value): Don't use
2212 arm_get_fp_model.
2213 (arm_get_fp_model, arm_set_fp): Delete.
2214 (arm_update_current_architecture): New function.
2215 (set_fp_model_sfunc): Call arm_update_current_architecture.
2216 (show_fp_model): Update output messages.
2217 (arm_set_abi, arm_show_abi): New functions.
2218 (arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
2219 (arm_gdbarch_init): Infer the object's ABI separately from its
2220 OSABI. Search for a matching architecture. Honor the global
2221 ABI and FPU settings. Set floating point format based on the
2222 architecture.
2223 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
2224 Delete.
2225 (_initialize_arm_tdep): Don't call gdbarch_register_osabi.
2226 Create "arm set abi" command.
2227 * arm-tdep.h (arm_get_fp_model): Delete prototype.
2228 (enum arm_abi_kind): New type.
2229 (struct gdbarch_tdep): Add arm_abi field.
2230 * arm-linux-tdep.c (arm_linux_init_abi): Only override
2231 tdep->fp_model if it is ARM_FLOAT_AUTO.
2232 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
2233 (arm_netbsd_elf_init_abi): Likewise.
2234 * defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
2235 * osabi.c (gdb_osabi_name): Likewise.
2236
2237 2005-04-11 Daniel Jacobowitz <dan@codesourcery.com>
2238
2239 * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
2240
2241 2005-04-10 Mark Kettenis <kettenis@gnu.org>
2242
2243 * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
2244 floating-point registers.
2245 (ppc_collect_fpregset): Likewise. Fix collection of registers.
2246
2247 2005-04-09 Mark Kettenis <kettenis@gnu.org>
2248
2249 * ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
2250 and "tramp-frame.h".
2251 (ppcobsd_sigtramp_cache_init): New function.
2252 (ppcobsd_sigtramp): New variable.
2253 (ppcobsd_init_abi): Prepend signal trampoline unwinder.
2254 * Makefile.in (ppcobsd-tdep.o): Update dependencies.
2255
2256 2005-04-08 Andrew Cagney <cagney@gnu.org>
2257
2258 * MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
2259 Nasser have decided to step back from GDB/MI.
2260
2261 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
2262
2263 * config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
2264
2265 2005-04-08 Daniel Jacobowitz <dan@codesourcery.com>
2266
2267 * dwarf2-frame.c (struct dwarf2_frame_cache): New field
2268 undefined_retaddr.
2269 (dwarf2_frame_cache): Initialize undefined_retaddr.
2270 (dwarf2_frame_this_id): Return an invalid frame ID if
2271 undefined_retaddr.
2272
2273 2005-04-05 Jim Blandy <jimb@redhat.com>
2274
2275 Move construction of IA-32 vector types to i386-tdep.c.
2276 * gdbtypes.c (build_builtin_type_vec64i,
2277 build_builtin_type_vec128i): Delete functions.
2278 (builtin_type_vec64i, builtin_type_vec128i): Delete variables.
2279 (build_gdbtypes): Don't initialize them.
2280 (_initialize_gdbtypes): Don't register GDBARCH swap entries for
2281 them.
2282 * gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
2283 declarations.
2284 (builtin_type_v2_float, builtin_type_v2_int32,
2285 builtin_type_v4_int16, builtin_type_v8_int8,
2286 builtin_type_v2_double, builtin_type_v4_float,
2287 builtin_type_v2_int64, builtin_type_v4_int32,
2288 builtin_type_v8_int16, builtin_type_v16_int8): Add extern
2289 declarations.
2290 * i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
2291 (i386_build_mmx_type, i386_build_sse_type): New functions.
2292 (i386_register_type): Call them, rather than referring to
2293 builtin_type_vec64i and builtin_type_vec128i.
2294
2295 2005-04-02 Daniel Jacobowitz <dan@codesourcery.com>
2296
2297 * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
2298 big-endian correction code to not offset 32-bit registers.
2299 Locate floating point registers correctly.
2300
2301 2005-04-02 Mark Kettenis <kettenis@gnu.org>
2302
2303 * main.c: Update copyright year.
2304 (captured_main): Avoid using strcpy and strcat.
2305
2306 2005-04-01 Michael Snyder <msnyder@redhat.com>
2307
2308 * dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
2309 computing this_id if there are no dummy frames on the stack.
2310
2311 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use
2312 find_partial_func instead of unwind_pc to identify frame.
2313 (mn10300_push_dummy_call): Handle struct args, struct_return.
2314
2315 * mn10300-prologue.c (set_movm_offsets): Don't test variable
2316 before setting it.
2317 * mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
2318 instead of skip_prologue_using_sal.
2319
2320 2005-03-31 Kevin Buettner <kevinb@redhat.com>
2321
2322 * solib-frv.c (struct lm_info): Add new field ``lm_addr''.
2323 (main_lm_addr): New static global.
2324 (frv_current_sos): Retain the link map address for each entry.
2325 (frv_clear_solib): Clear main_lm_addr.
2326 (frv_fetch_objfile_link_map): New function.
2327 * frv-tdep.c (frv_gdbarch_init): Register TLS load module fetcher.
2328 * frv-tdep.h (frv_fetch_objfile_link_map): Declare.
2329
2330 2005-03-31 Kevin Buettner <kevinb@redhat.com>
2331
2332 * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
2333 * gdbarch.c, gdbarch.h: Regenerate.
2334 * dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
2335 address and pass this address, instead of the objfile address, to
2336 target_get_thread_local_address().
2337 * linux-thread-db.c (thread_db_get_thread_local_address): Change
2338 second parameter from type ``struct objfile *'' to CORE_ADDR. Do
2339 not call svr4_fetch_objfile_link_map() to fetch the load module
2340 address.
2341 * target.h (struct target_ops): Change second parameter of
2342 ``to_get_thread_local_address'' from ``struct objfile *'' to
2343 ``CORE_ADDR''.
2344 * alpha-linux-tdep.c (solib-svr4.h): Include.
2345 (alpha_linux_init_abi): Register TLS load module fetcher.
2346 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2347 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
2348 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2349 * ia64-linux-tdep.c (solib-svr4.h): Include.
2350 (ia64_linux_init_abi): Register TLS load module fetcher.
2351 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
2352 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
2353 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2354 * s390-tdep.c (s390_gdbarch_init): Likewise.
2355 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
2356 * sparc64-linux-tdep.c (solib-svr4.h): Include.
2357 (sparc64_linux_init_abi): Register TLS load module fetcher.
2358 * Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
2359 (sparc-linux-tdep.o): Update dependencies.
2360
2361 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2362
2363 * c-valprint.c (c_value_print): Fix up some formatting. Use
2364 check_typedef.
2365
2366 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2367
2368 * arm-linux-nat.c (store_register, store_regs): Handle
2369 ARM_PS_REGNUM.
2370
2371 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2372
2373 * arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
2374 (arm_linux_thumb_le_breakpoint): New. Update comments.
2375 (arm_linux_init_abi): Set Thumb breakpoints also.
2376
2377 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2378
2379 * Makefile.in (arm-tdep.o): Update dependencies.
2380 * arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
2381 (arm_gdbarch_init): Register dwarf2_frame_sniffer.
2382
2383 2005-03-28 Joel Brobecker <brobecker@adacore.com>
2384
2385 * irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
2386 register value to be incorrectly written in the regcache.
2387 (fill_fpregset): Fix bug that caused the FSR register value
2388 to be incorrectly read from the regcache.
2389
2390 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
2391
2392 * remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
2393 arm_pc_is_thumb_dummy.
2394
2395 2005-03-28 Mark Kettenis <kettenis@gnu.org>
2396
2397 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
2398 StackGhost.
2399
2400 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2401 Handle StackGhost in 64-bit code.
2402 * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
2403
2404 2005-03-27 Christopher Faylor <cgf@timesys.com>
2405
2406 * win32-nat.c (handle_exception): Treat win32 routines which check for
2407 valid addresses as "special" and don't stop when a SEGV is detected.
2408 (get_child_debug_event): Properly flag exception as unhandled.
2409
2410 2005-03-26 Daniel Jacobowitz <dan@codesourcery.com>
2411
2412 * cp-support.c (cp_class_name_from_physname): Rewrite.
2413 (unqualified_name_from_comp): New function, broken out from
2414 method_name_from_physname. Correct handling for typed names
2415 and templates.
2416 (method_name_from_physname): Use unqualified_name_from_comp.
2417 (cp_func_name, remove_params): Move earlier in the file. Add
2418 better comments. Use the component tree to parse the name.
2419 (_initialize_cp_support): Remove stray whitespace.
2420
2421 2005-03-26 Mark Kettenis <kettenis@gnu.org>
2422
2423 * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
2424
2425 * inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code.
2426 Callapse HAVE_TERMIO and HAVE_SGTTY.
2427
2428 * dwarf2-frame.c (execute_cfa_program): Implement
2429 DW_CFA_GNU_window_save.
2430
2431 2005-03-25 Mark Kettenis <kettenis@gnu.org>
2432
2433 * config/sparc/nbsd64.mh (NAT_FILE): Remove.
2434
2435 * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
2436
2437 2005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
2438
2439 * arm-tdep.c (target_is_thumb, caller_is_thumb)
2440 (arm_pc_is_thumb_dummy): Remove.
2441 (arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
2442
2443 2005-03-25 Anthony Green <green@redhat.com>
2444
2445 * remote.c (remote_store_registers): Fix memset usage.
2446 * std-regs.c (value_of_builtin_frame_reg): Ditto.
2447 (value_of_builtin_frame_fp_reg): Ditto.
2448 (value_of_builtin_frame_reg): Ditto.
2449
2450 2005-03-25 Mark Mitchell <mark@codesourcery.com>
2451
2452 * ser-base.c (ser_unix_write): Rename to ...
2453 (ser_base_write): ... this.
2454 (ser_unix_nop_flush_output): Rename to ...
2455 (ser_base_flush_output): ... this.
2456 (ser_unix_flush_input): Rename to ...
2457 (ser_base_flush_input): ... this.
2458 (ser_unix_nop_send_break): Rename to ...
2459 (ser_base_send_break): ... this.
2460 (ser_unix_nop_drain_output): Rename to ...
2461 (ser_base_drain_output): ... this.
2462 (ser_unix_nop_raw): Rename to ...
2463 (ser_base_raw): ... this.
2464 (ser_unix_nop_get_tty_state): Rename to ...
2465 (ser_base_set_tty_state): ... this.
2466 (ser_unix_nop_noflush_set_tty_state): Rename to ...
2467 (ser_base_noflush_set_tty_state): ... this.
2468 (ser_unix_nop_print_tty_state): Rename to ...
2469 (ser_base_print_tty_state): ... this.
2470 (ser_unix_nop_setbaudrate): Rename to ...
2471 (ser_base_setbaudrate): ... this.
2472 (ser_unix_nop_setstopbits): Rename to ...
2473 (ser_base_setstopbits): ... this.
2474 (ser_unix_async): Rename to ...
2475 (ser_base_async): ... this.
2476 * ser-base.h (ser_unix_write): Rename to ...
2477 (ser_base_write): ... this.
2478 (ser_unix_nop_flush_output): Rename to ...
2479 (ser_base_flush_output): ... this.
2480 (ser_unix_flush_input): Rename to ...
2481 (ser_base_flush_input): ... this.
2482 (ser_unix_nop_send_break): Rename to ...
2483 (ser_base_send_break): ... this.
2484 (ser_unix_nop_drain_output): Rename to ...
2485 (ser_base_drain_output): ... this.
2486 (ser_unix_nop_raw): Rename to ...
2487 (ser_base_raw): ... this.
2488 (ser_unix_nop_get_tty_state): Rename to ...
2489 (ser_base_set_tty_state): ... this.
2490 (ser_unix_nop_noflush_set_tty_state): Rename to ...
2491 (ser_base_noflush_set_tty_state): ... this.
2492 (ser_unix_nop_print_tty_state): Rename to ...
2493 (ser_base_print_tty_state): ... this.
2494 (ser_unix_nop_setbaudrate): Rename to ...
2495 (ser_base_setbaudrate): ... this.
2496 (ser_unix_nop_setstopbits): Rename to ...
2497 (ser_base_setstopbits): ... this.
2498 (ser_unix_async): Rename to ...
2499 (ser_base_async): ... this.
2500 * ser-pipe.c (_initialize_ser_pipe): Update accordingly.
2501 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2502 * ser-unix.c (hardwire_flush_input): Likewise.
2503 (_initializer_ser_hardwire): Likewise.
2504
2505 * Makefile.in (SFILES): Add ser-base.c.
2506 (ser_base_h): New variable.
2507 (ser-base.o): New target.
2508 (ser-pipe.o): Depend on $(ser_base_h).
2509 (ser-tcp.o): Likewise.
2510 (ser-unix.o): Likewise. Do not depend on $(event_loop_h).
2511 * configure.ac (SER_HARDWIRE): Include ser-base.o where
2512 appropriate.
2513 * ser-base.c: New file.
2514 (push_event): Move from ser-unix.c.
2515 (fd_event): Likewise.
2516 (reschedule): Likewise.
2517 (ser_unix_write): Likewise.
2518 (ser_unix_nop_flush_output): Likewise.
2519 (ser_unix_flush_input): Likewise.
2520 (ser_unix_nop_send_break): Likewise.
2521 (ser_unix_nop_drain_output): Likewise.
2522 (ser_unix_nop_raw): Likewise.
2523 (ser_unix_nop_get_tty_state): Likewise.
2524 (ser_unix_nop_set_tty_state): Likewise.
2525 (ser_unix_nop_noflush_set_tty_state): Likewise.
2526 (ser_unix_nop_print_tty_state): Likewise.
2527 (ser_unix_nop_setbaudrate): Likewise.
2528 (ser_unix_nop_setstopbits): Likewise.
2529 (ser_unix_async): Likewise.
2530 * ser-base.h: New file.
2531 * ser-pipe.c (ser-base.h): Include it.
2532 * ser-tcp.c (ser-base.h): Likewise.
2533 * ser-unix.h (ser_unix_nop_flush_output): Remove.
2534 (ser_unix_flush_input): Likewise.
2535 (ser_unix_nop_send_break): Likewise.
2536 (ser_unix_nop_raw): Likewise.
2537 (ser_unix_nop_get_tty_state): Likewise.
2538 (ser_unix_nop_set_tty_state): Likewise.
2539 (ser_unix_nop_print_tty_state): Likewise.
2540 (ser_unix_nop_noflush_set_tty_state): Likewise.
2541 (ser_unix_nop_setbaudrate): Likewise.
2542 (ser_unix_nop_setstopbits): Likewise.
2543 (ser_unix_nop_drain_output): Likewise.
2544 (ser_unix_wait_for): Likewise.
2545 (ser_unix_write): Likewise.
2546 (ser_unix_async): Likewise.
2547 * ser-unix.c (event-loop.h): Do not include it.
2548 (push_event): Move to ser-base.c.
2549 (fd_event): Likewise.
2550 (reschedule): Likewise.
2551 (ser_unix_write): Likewise.
2552 (ser_unix_nop_flush_output): Likewise.
2553 (ser_unix_flush_input): Likewise.
2554 (ser_unix_nop_send_break): Likewise.
2555 (ser_unix_nop_drain_output): Likewise.
2556 (ser_unix_nop_raw): Likewise.
2557 (ser_unix_nop_get_tty_state): Likewise.
2558 (ser_unix_nop_set_tty_state): Likewise.
2559 (ser_unix_nop_noflush_set_tty_state): Likewise.
2560 (ser_unix_nop_print_tty_state): Likewise.
2561 (ser_unix_nop_setbaudrate): Likewise.
2562 (ser_unix_nop_setstopbits): Likewise.
2563 (ser_unix_async): Likewise.
2564 (ser_unix_wait_for): Make it static.
2565 * configure: Regenerated.
2566
2567 2005-03-25 Mark Kettenis <kettenis@gnu.org>
2568
2569 * dwarf2-frame.h: Update copyrigh year.
2570 (enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
2571 * dwarf2-frame.c: Update copyright year.
2572 (struct dwarf2_frame_cache): Add member `retaddr_reg'.
2573 (dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
2574 (dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
2575
2576 2005-03-23 Martin Hunt <hunt@redhat.com>
2577
2578 * configure.ac: Remove -fwritable-strings from CFLAGS.
2579 * configure: Regenerate.
2580
2581 2005-03-21 Michael Snyder <msnyder@redhat.com>
2582
2583 * mn10300-prologue.c (fix_frame_pointer): Delete.
2584 (set_movm_offsets) Don't return just because movm_args is
2585 zero -- still need to save pc and sp in saved_regs.
2586 (mn10300_analyze_prologue): Don't return prematurely without
2587 calling set_movm_offsets (for pc and sp at minimum).
2588
2589 2005-03-21 Mark Mitchell <mark@codesourcery.com>
2590
2591 * configure.ac (stat.st_blksize): Check for it.
2592 (getuid): Likewise.
2593 (getgid): Likewise.
2594 * configure: Regenerated.
2595 * config.in: Likewise.
2596 * remote-fileio.c (remote_fileio_to_fio_stat): Check
2597 HAVE_STRUCT_STAT_ST_BLKSIZE.
2598
2599 2005-03-21 Christopher Faylor <cgf@timesys.com>
2600
2601 * win32-nat.c (do_initial_child_stuff): Don't clear the thread list
2602 here.
2603 (do_initial_child_stuff): Move clearing of thread list to a place
2604 before a thread ould be created.
2605 (child_attach): Ditto.
2606
2607 2005-03-21 Michael Snyder <msnyder@redhat.com>
2608
2609 * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
2610 instead of pc addr for frame_id. Otherwise "until" won't work.
2611
2612 2005-03-21 Kevin Buettner <kevinb@redhat.com>
2613
2614 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
2615 comment.
2616
2617 2005-03-20 Mark Kettenis <kettenis@gnu.org>
2618
2619 * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
2620 * varobj.c (my_value_equal): Mark val2 as volatile.
2621
2622 * cp-names.y: Add prototype for yyparse.
2623
2624 2005-03-19 Daniel Jacobowitz <dan@codesourcery.com>
2625
2626 * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
2627 * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
2628 VALADDR.
2629
2630 2005-03-18 Kevin Buettner <kevinb@redhat.com>
2631
2632 * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
2633 * exceptions.h (TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_GENERIC_ERROR)
2634 (TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR):
2635 New error/exception enums.
2636 * dwarf2loc.c (exceptions.h): Include.
2637 (dwarf_expr_tls_address): Invoke target_get_thread_local_address()
2638 via TRY_CATCH mechanism. Print error messages for TLS related
2639 exceptions.
2640 * linux-thread-db.c (thread_db_get_thread_local_address): Throw
2641 exceptions instead of printing errors.
2642
2643 2005-03-18 Mark Kettenis <kettenis@gnu.org>
2644
2645 * utils.c (safe_strerror): Use xsnprintf instead of sprintf.
2646 (decimal2str, octal2str): Change to return a string allocated by
2647 get_cell. Use xsnprint instead of snprintf.
2648 (paddr_u, paddr_d): Adjust for changed calling convention of
2649 decimal2str.
2650 (phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
2651 (int_string): Likewise. Adjust for changed calling convention of
2652 decimal2str and octal2str.
2653
2654 2005-03-18 Kevin Buettner <kevinb@redhat.com>
2655
2656 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
2657 Adjust incorrectly computed constant for realtime signal frame.
2658
2659 2005-03-18 Mark Kettenis <kettenis@gnu.org>
2660
2661 From Ralf Corsepius <ralf.corsepius@rtems.org>
2662 * configure.tgt: Add m68*-*-rtems*.
2663
2664 2005-03-17 Mark Kettenis <kettenis@gnu.org>
2665
2666 * defs.h (xsnprintf): New prototype.
2667 * utils.c (xsnprintf): New function.
2668
2669 * corelow.c (get_core_register_section): Replace usage of sprintf
2670 and strcpy with xstrprintf and xstrdup.
2671
2672 * mips-tdep.c (mips_single_step_through_delay): Put back check for
2673 breakpoint lost with the introduction of this function.
2674
2675 2005-03-17 Paul Brook <paul@codesourcery.com>
2676
2677 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
2678 * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
2679
2680 2005-03-16 Mark Mitchell <mark@codesourcery.com>
2681
2682 * event-top.c (handle_sigquit): Do not define for systems without
2683 SIGQUIT.
2684 (sigquit_token): Likewise.
2685 (async_init_signals): Allow for systems that do not
2686 define SIGQUIT.
2687 * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
2688
2689 2005-03-15 Mark Mitchell <mark@codesourcery.com>
2690
2691 * utils.c (internal_vproblem): Guard call to fork with
2692 HAVE_WORKING_FORK.
2693 * cli/cli-cmds.c (shell_escape): Guard call to vfork with
2694 HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
2695
2696 * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
2697 S_IRGRP and related macros.
2698 (remote_fileio_mode_to_target): Likewise.
2699
2700 2005-03-14 Ben Elliston <bje@au.ibm.com>
2701
2702 * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
2703 more primitive library.
2704
2705 2005-03-13 Mark Kettenis <kettenis@gnu.org>
2706
2707 * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
2708 sprintf.
2709 * target.c (normal_pid_to_str): Likewise.
2710 * remote.c (remote_pid_to_str): Use snprint instead of sprintf.
2711 Change capitalization of "thread". Use ptid_get_pid instead of
2712 GETPID.
2713
2714 * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
2715 a combination of xmalloc and sprintf.
2716
2717 2005-03-13 Jim Blandy <jimb@redhat.com>
2718
2719 * configure.ac: Use '=', not '=='; the latter is a GNU extension.
2720 * configure: Regenerated.
2721
2722 2005-03-11 Michael Snyder <msnyder@redhat.com>
2723
2724 * mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
2725 stub fn with real implementatin mn10300_unwind_dummy_id.
2726 (mn10300_push_dummy_call): Implement. Bare bones version,
2727 does not handle structs or floats.
2728
2729 2005-03-11 Jim Blandy <jimb@redhat.com>
2730
2731 Avoid warnings due to the use of -Wuninitialized without -O.
2732 * configure.ac (build_warnings): Include -Wuninitialized only if
2733 CFLAGS is unset at configure time, or CFLAGS is set and includes
2734 some -O option other than -O0.
2735 * configure: Regenerated.
2736
2737 * mips-tdep.c (show_mips_abi): Change calling conventions to match
2738 those expected by add_setshow_enum_cmd. Use 'file' argument as
2739 appropriate.
2740
2741 2005-03-10 Daniel Jacobowitz <dan@codesourcery.com>
2742
2743 * Makefile.in (SFILES): Add cp-names.y.
2744 (libiberty_h, safe_ctype_h): New.
2745 (YYFILES): Add cp-names.c.
2746 (YYOBJ): Add cp-names.o.
2747 (test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
2748 (clean): Remove test-cp-names$(EXEEXT).
2749 (local-maintainer-clean): Remove cp-names.c.
2750 * cp-names.y: New file.
2751 * cp-support.c (find_last_component): Delete.
2752 (d_left, d_right): Define.
2753 (cp_canonicalize_string, mangled_name_to_comp): New functions.
2754 (cp_class_name_from_physname, method_name_from_physname): Rewrite
2755 to use mangled_name_to_comp.
2756 * cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
2757 (cp_comp_to_string): New prototypes.
2758 * config/djgpp/fnchange.lst: Add cp-names.c.
2759
2760 2005-03-10 Bob Rossi <bob@brasko.net>
2761
2762 * main.c (print_gdb_help): Remove the --[no]async help message.
2763
2764 2005-03-10 Mark Kettenis <kettenis@gnu.org>
2765
2766 * proc-api.c: Update copyright year.
2767 (_initialize_proc_api): Revert previous patch, removing spurious
2768 space instead.
2769
2770 2005-03-09 Joel Brobecker <brobecker@adacore.com>
2771
2772 * regcache.c: Fix typo in comment.
2773
2774 2005-03-09 David Lecomber <david@lecomber.net>
2775
2776 * proc-api.c (_initialize_proc_api): Fix invalid multi-line
2777 i18n text.
2778
2779 2005-03-09 Mark Kettenis <kettenis@gnu.org>
2780
2781 * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
2782 address for 64-bit code.
2783 (sparc_unwind_dummy_id): Likewise.
2784 * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
2785 frame base address convention.
2786 (sparc64_push_dummy_call): Likewise.
2787 * sparc64nbsd-tdep.c: Update copyright year.
2788 (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
2789 address for 64-bit code.
2790 (sparc64nbsd_init_abi): Tweak comment.
2791 * sparc64obsd-tdep.c: Update copyright year.
2792 (sparc64obsd_frame_cache): Adjust cached frame base address for
2793 64-bit code.
2794 (sparc64obsd_init_abi): Tweak comment.
2795
2796 2005-03-09 Corinna Vinschen <vinschen@redhat.com>
2797
2798 * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
2799
2800 2005-03-09 Joel Brobecker <brobecker@adacore.com>
2801
2802 * dwarf2read.c (dwarf_decode_lines): Use the complete filename
2803 when creating include psymtabs.
2804
2805 2005-03-08 Mark Mitchell <mark@codesourcery.com>
2806
2807 * environ.h (struct environ): Rename to ...
2808 (struct gdb_environ): ... this.
2809 (make_environ): Update prototype.
2810 (free_environ): Likewise.
2811 (init_environ): Likewise.
2812 (get_in_environ): Likewise.
2813 (set_in_environ): Likewise.
2814 (unset_in_environ): Likewise.
2815 (environ_vector): Likewise.
2816 * environ.c (make_environ): Replace "struct environ" with "struct
2817 gdb_environ".
2818 (free_environ): Likewise.
2819 (init_environ): Likewise.
2820 (environ_vector): Likewise.
2821 (get_in_environ): Likewise.
2822 (set_in_environ): Likewise.
2823 (unset_in_environ): Likewise.
2824 * infcmd.c (inferior_environ): Likewise.
2825 * inferior.h (inferior_environ): Likewise.
2826
2827 2005-03-08 Joel Brobecker <brobecker@adacore.com>
2828
2829 * infcmd.c (run_command_1): New function, extracted from
2830 run_command.
2831 (run_command): Replace implementation by call to run_command_1.
2832 (start_command): Use run_command_1 to insert the temporary
2833 breakpoint and run the program. Remove code that's no longer
2834 needed, as already done at the proper time by run_command_1.
2835
2836 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2837
2838 * symfile.c (clear_symtab_users): Call
2839 clear_current_source_symtab_and_line first.
2840
2841 2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
2842
2843 * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
2844 * c-exp.y (exp): Add unary plus.
2845 * eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
2846 * valarith.c (value_x_unop): Add UNOP_PLUS case.
2847 (value_pos): New.
2848 * value.h (value_pos): Declare.
2849
2850 * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
2851 (remote_fetch_registers): Allow uppercase hex when resyncing.
2852 (remote_write_bytes): Only call get_memory_write_packet_size once.
2853 Robustify packet size calculation for very small packets. Check
2854 that at least one byte will be written.
2855
2856 * tracepoint.c (target_is_remote): Allow extended-remote.
2857 (struct collection_list): Allow 256 registers, like the comment
2858 said.
2859 (add_memrange): Fix comment.
2860 (read_actions): Turn EOF into 'end'.
2861
2862 2005-03-08 Corinna Vinschen <vinschen@redhat.com>
2863
2864 * Makefile.in: Add dependencies for iq2000-tdep.o.
2865 * configure.tgt: Add iq2000-*-* target.
2866 * iq2000-tdep.c: New file.
2867 * config/iq2000/iq2000.mt: New file.
2868
2869 2005-03-07 Joel Brobecker <brobecker@adacore.com>
2870
2871 * doc/observer.texi (executable_changed): New observer.
2872 * symtab.c: Include "observer.h".
2873 (find_main_name): New function.
2874 (main_name): If name_of_main is unset, then compute it
2875 using find_main_name.
2876 (symtab_observer_executable_changed): New function.
2877 (_initialize_symtab): Attach executable_changed observer.
2878 * exec.c: Include "observer.h".
2879 (exec_file_attach): Emit executable_changed notification.
2880 * symfile.c: Include "observer.h".
2881 (reread_symbols): Send an executable_changed if appropriate.
2882 * Makefile.in (exec.o): Add dependency on observer.h.
2883 (symfile.o): Likewise.
2884 (symtab.o): Likewise.
2885
2886 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
2887
2888 * findvar.c (read_var_value): Don't allocate V when it will not
2889 be used. Add missing break for LOC_INDIRECT.
2890
2891 2005-03-06 Mark Kettenis <kettenis@gnu.org>
2892
2893 * sparc64fbsd-tdep.c: Include "solib-svr4.h".
2894 (sparc64fbsd_init_abi): Set skip_trampoline_code and
2895 solib_svr4_fetch_link_map_offsets.
2896 * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
2897
2898 2005-03-06 Daniel Jacobowitz <dan@codesourcery.com>
2899
2900 * linux-nat.c (child_follow_fork): Call target_terminal_ours before
2901 printing output. Use fprintf_unfiltered. Only print output when
2902 debugging.
2903
2904 2005-03-05 Mark Kettenis <kettenis@gnu.org>
2905
2906 * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
2907 argument.
2908 (sparc64_store_arguments): Constify.
2909
2910 2005-03-05 Mark Kettenis <kettenis@gnu.org>
2911
2912 * alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
2913 (alphabsd_fetch_inferior_registers): Rename from
2914 fetch_inferior_registers. Make static.
2915 (alphabsd_store_inferior_registers): Rename from
2916 store_inferior_registers. Make static.
2917 (_initialize_alphabsd_nat): New function.
2918 * Makefile.in (alphabsd-nat.o): Update dependencies.
2919 * config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
2920 inftarg.o. Add inf-ptrace.o, fbsd-nat.o and gcore.o.
2921 * config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
2922 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
2923 alphabsd-nat.o.
2924 * config/alpha/nm-fbsd.h: Update copyright year. Don't include
2925 "config/nm-bsd.h" and "elf/common.h".
2926 * config/alpha/nm-nbsd.h: Update copyright year. Don't include
2927 "config/nm-nbsd.h".
2928
2929 * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
2930 software_single_step.
2931
2932 2005-03-04 Michael Snyder <msnyder@redhat.com>
2933
2934 * mn10300-prologue.c: New file. Prologue analysis.
2935 * mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
2936 (mn10300_frame_unwind_cache): Don't call trad_frame_set_id
2937 until after analyze_prologue, and don't call trad_frame_set_base
2938 at all (let analyze_prologue do it).
2939
2940 2005-03-04 Michael Snyder <msnyder@redhat.com>
2941
2942 * trad-frame.c (trad_frame_set_reg_value): New function.
2943 * trad-frame.h (trad_frame_set_reg_value): Export.
2944
2945 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
2946
2947 * Makefile.in (remote.o): Update dependencies.
2948 * remote.c: Include "observer.h".
2949
2950 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
2951
2952 * target.c (target_read_memory_partial): Always initialize
2953 ERR.
2954 (target_write_memory_partial): Likewise.
2955
2956 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2957
2958 * remote.c (remote_open_1): Call observer_notify_inferior_created.
2959
2960 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2961
2962 * arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
2963 (arm_stub_unwind, arm_stub_unwind_sniffer): New.
2964 (arm_gdbarch_init): Add arm_stub_unwind_sniffer.
2965
2966 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2967
2968 * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
2969 Use LWP IDs.
2970
2971 2005-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2972
2973 * dwarf2loc.c (loclist_read_variable): Set optimized_out
2974 instead of reporting an error.
2975 * valprint.c (value_check_printable): New function.
2976 (common_val_print): New function. Use value_check_printable.
2977 (value_print): Use value_check_printable.
2978 * value.h (common_val_print): Add prototype.
2979
2980 * c-valprint.c (c_val_print): Use common_val_print.
2981 * cp-valprint.c (cp_print_value_fields): Likewise.
2982 (cp_print_hpacc_virtual_table_entries): Likewise.
2983 * f-valprint.c (f_val_print): Likewise.
2984 * jv-valprint.c (java_value_print, java_print_value_fields):
2985 Likewise.
2986 * scm-valprint.c (scm_value_print): Likewise.
2987 * stack.c (print_frame_args): Likewise.
2988 * varobj.c (c_value_of_variable): Likewise.
2989 * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
2990 (pascal_object_print_value_fields): Likewise. Update call to
2991 pascal_object_print_static_field.
2992 (pascal_object_print_static_field): Remove TYPE argument. Use
2993 common_val_print.
2994
2995 2005-02-25 Mark Kettenis <kettenis@gnu.org>
2996
2997 Committed by Elena Zannoni <ezannoni@redhat.com>
2998
2999 * dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
3000 info_ptr before building psymtabs for included files.
3001 (create_all_comp_units): Initailize initial length size of
3002 compilation header to zero.
3003 (read_initial_length): Complain if both 32-bit and 64-bit DWARF
3004 sections are encountered within the same compilation header.
3005 (dwarf_decode_line_header): Pass compilation header in call to
3006 read_initial_length.
3007
3008 2005-02-24 Andrew Cagney <cagney@gnu.org>
3009
3010 Add show_VARIABLE functions, update add_setshow call.
3011 * varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
3012 * valprint.c (_initialize_valprint, show_print_max)
3013 (show_stop_print_at_null, show_repeat_count_threshold)
3014 (show_prettyprint_structs, show_unionprint)
3015 (show_prettyprint_arrays, show_addressprint, show_input_radix)
3016 (show_output_radix): Ditto.
3017 * valops.c (_initialize_valops, show_overload_resolution): Ditto.
3018 * utils.c (initialize_utils, show_chars_per_line)
3019 (show_lines_per_page, show_demangle, show_pagination_enabled)
3020 (show_sevenbit_strings, show_asm_demangle): Ditto
3021 * tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
3022 (show_tui_border_mode, show_tui_active_border_mode): Ditto.
3023 * top.c (init_main, show_new_async_prompt)
3024 (show_async_command_editing_p, show_write_history_p)
3025 (show_history_size, show_history_filename, show_caution)
3026 (show_annotation_level, init_main): Ditto.
3027 * target.c (initialize_targets, show_targetdebug)
3028 (show_trust_readonly): Ditto.
3029 * symfile.c (_initialize_symfile, show_symbol_reloading)
3030 (show_ext_args, show_download_write_size)
3031 (show_debug_file_directory): Ditto.
3032 * source.c (_initialize_source, show_lines_to_list): Ditto.
3033 * solib.c (_initialize_solib, show_auto_solib_add)
3034 (show_solib_search_path): Ditto.
3035 * p-valprint.c (_initialize_pascal_valprint)
3036 (show_pascal_static_field_print): Ditto.
3037 * printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
3038 (show_print_symbol_filename): Add and update.
3039 * parse.c (_initialize_parse, show_expressiondebug): Dito.
3040 * observer.c (_initialize_observer, show_observer_debug): Dito.
3041 * maint.c (_initialize_maint_cmds, show_watchdog)
3042 (show_maintenance_profile_p): Dito.
3043 * linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
3044 * infrun.c (_initialize_infrun, show_debug_infrun)
3045 (show_stop_on_solib_events, show_follow_fork_mode_string)
3046 (show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
3047 * infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
3048 (show_unwind_on_signal_p): Ditto.
3049 * gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
3050 (_initialize_gdbtypes, show_overload_debug): Ditto.
3051 * gdb-events.c, gdb-events.sh (_initialize_gdb_events)
3052 (show_gdb_events_debug): Ditto.
3053 * gdbarch.c, gdbarch.sh (show_gdbarch_debug)
3054 (_initialize_gdbarch): Ditto.
3055 * frame.c (_initialize_frame, show_backtrace_past_main)
3056 (show_backtrace_past_entry, show_backtrace_limit)
3057 (show_frame_debug): Ditto.
3058 * exec.c (_initialize_exec, show_write_files): Ditto.
3059 * dwarf2read.c (_initialize_dwarf2_read)
3060 (show_dwarf2_max_cache_age): Ditto.
3061 * demangle.c (_initialize_demangler)
3062 (show_demangling_style_names): Ditto.
3063 * dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
3064 * cp-valprint.c (show_static_field_print)
3065 (_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
3066 * corefile.c (_initialize_core, show_gnutarget_string): Ditto.
3067 * cli/cli-logging.c (_initialize_cli_logging)
3068 (show_logging_overwrite, show_logging_redirect)
3069 (show_logging_filename): Ditto.
3070 * cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
3071 (init_cli_cmds, show_baud_rate, show_remote_debug)
3072 (show_remote_timeout, show_max_user_call_depth): Ditto.
3073 * charset.c (show_host_charset_name, show_target_charset_name)
3074 (initialize_charset): Ditto.
3075 * breakpoint.c (show_can_use_hw_watchpoints)
3076 (show_pending_break_support, _initialize_breakpoint): Ditto.
3077
3078 2005-02-23 Jim Blandy <jimb@redhat.com>
3079
3080 * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
3081
3082 2005-02-23 Andrew Cagney <cagney@gnu.org>
3083
3084 * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
3085 SEC_XXX flags.
3086
3087 2005-02-22 Andrew Cagney <cagney@gnu.org>
3088
3089 * configure.ac: Only enaable insight when itcl is present.
3090 * configure: Re-generate.
3091
3092 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3093
3094 Committed by Andrew Cagney.
3095 * infptrace.c (store_register): Fix typo.
3096
3097 2005-02-21 Andrew Cagney <cagney@gnu.org>
3098
3099 * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
3100 * cli/cli-decode.h (add_set_cmd): Delete declaration.
3101 * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
3102 * i386-nat.c (_initialize_i386_nat): Update call.
3103 * valprint.c (_initialize_valprint): Update comment.
3104 * gnu-nat.c (_initialize_gnu_nat): Update call.
3105
3106 2005-02-21 Alan Modra <amodra@bigpond.net.au>
3107
3108 * elfread.c (elf_symtab_read): Discard section syms.
3109
3110 2005-02-21 Andrew Cagney <cagney@gnu.org>
3111
3112 * cli/cli-decode.c (add_set_enum_cmd): Delete function.
3113 (deprecated_add_show_from_set): Delete function.
3114 * command.h (add_set_enum_cmd): Delete declaration.
3115 (deprecated_add_show_from_set): Delete declaration.
3116 * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
3117 (deprecated_add_show_from_set): Delete declaration.
3118 * arm-tdep.c (_initialize_arm_tdep): Update comment.
3119 * kod.c (kod_set_os): Simplify.
3120 * infrun.c (set_schedlock_func): Simplify.
3121 * cli/cli-dump.c (add_dump_command): Update comment.
3122
3123 Replace string variables with a filename completer with
3124 add_setshow_optional_filename_cmd.
3125 * solib.c, symfile.c: Update.
3126 * cli/cli-setshow.c: Do not tidle expand the file.
3127
3128 Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
3129 and add_setshow_string_noescape_cmd.
3130 * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
3131 NULL command's value.
3132 * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
3133 * remote-sds.c, remote.c, symfile.c, top.c: Update.
3134
3135 2005-02-20 Andrew Cagney <cagney@gnu.org>
3136
3137 Use add_setshow_enum_cmd through out.
3138 * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
3139 * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
3140
3141 * mi/mi-main.c (captured_mi_execute_command): Use
3142 mi_cmd_interpreter_exec.
3143
3144 * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
3145 function.
3146 * cli/cli-setshow.c (deprecated_show_value_hack)
3147 (do_setshow_command): Handle var_optional_filename.
3148 * command.h (enum var_types): Add var_optional_filename.
3149 (add_setshow_optional_filename_cmd): Declare.
3150 * infcmd.c (notice_args_read): Use.
3151
3152 * symfile-mem.c (symbol_file_add_from_memory): Pass
3153 target_read_memory to bfd_elf_bfd_from_remote_memory.
3154 (do_target_read_memory): Delete.
3155
3156 2005-02-16 Mark Kettenis <kettenis@gnu.org>
3157
3158 * value.h (value_contents_equal): New prototype.
3159 * value.c (value_contents_equal): New function.
3160 * varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
3161 include <math.h>.
3162 (varobj_set_value): Initialize error to zero.
3163 (varobj_update): Rename error2 to error and initialize it to zero.
3164 Slightly change the wording of some comments.
3165 (my_value_equal): Reimplement using TRY_CATCH and
3166 value_contents_equal.
3167
3168 2005-02-18 Andrew Cagney <cagney@gnu.org>
3169
3170 * cli/cli-decode.c (add_setshow_integer_cmd): New function.
3171 * command.h (add_setshow_integer_cmd): Declare.
3172 * cli/cli-cmds.c: Update.
3173
3174 Use add_setshow_uinteger_cmd through out.
3175 * printcmd.c, source.c, utils.c, valprint.c: Update.
3176
3177 Use add_setshow_zinteger_cmd through out. Re-sync gdbarch.sh
3178 and gdbarch.c.
3179 * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
3180 * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
3181 * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
3182 * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
3183 * varobj.c, cli/cli-cmds.c: Update.
3184 * gdbarch.c, gdb-events.c: Regenerate.
3185
3186 Use add_setshow_boolean_command through out. Delete #ifdef 0'ed
3187 code adding set/show boolean commands.
3188 * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
3189 * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
3190 * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
3191 * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
3192 * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
3193 * cli/cli-cmds.c: Update.
3194
3195 2005-02-17 Andrew Cagney <cagney@gnu.org>
3196
3197 * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
3198 to filename_completer.
3199 * solib.c (_initialize_solib, reload_shared_libraries): Use
3200 add_setshow_filename_cmd.
3201 * serial.c (_initialize_serial): Ditto.
3202 * remote-utils.c (_initialize_sr_support): Ditto.
3203
3204 * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
3205 * command.h (add_setshow_string_noescape_cmd): Declare.
3206 * wince.c (_initialize_wince): Use.
3207 * symfile.c (_initialize_symfile): Use.
3208 (set_ext_lang_command): Update declaration.
3209 * corefile.c (_initialize_core): Use.
3210
3211 * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
3212 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3213 (add_setshow_filename_cmd, add_setshow_string_cmd)
3214 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
3215 fprint_setshow parameter.
3216 * command.h (fprint_setshow_ftype): Delete.
3217 (add_setshow_cmd_full, add_setshow_enum_cmd)
3218 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3219 (add_setshow_filename_cmd, add_setshow_string_cmd)
3220 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
3221 fprint_setshow parameter.
3222 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
3223 * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
3224 * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
3225 * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
3226 * remote.c, target.c, cli/cli-logging.c: Update.
3227
3228 2005-02-16 Andrew Cagney <cagney@gnu.org>
3229
3230 Merge setshow print and show parameters.
3231 * command.h (show_value_ftype): Define.
3232 (deprecated_show_value_hack): Declare.
3233 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3234 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3235 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
3236 (add_setshow_zinteger_cmd): Change type of show_func to
3237 show_value_ftype.
3238 * cli/cli-decode.h (struct cmd_list_element): Replace
3239 fprint_setshow with show_value_func.
3240 * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
3241 parameter. Set show_value_func. Do not set cmd_sfunc.
3242 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
3243 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
3244 (add_setshow_string_cmd, add_setshow_uinteger_cmd)
3245 (add_setshow_zinteger_cmd): Update.
3246 * complaints.c (complaints_show_value): Replace
3247 fprint_setshow_complaints.
3248 (_initialize_complaints): Update.
3249 * mips-tdep.c (show_mask_address): Update.
3250 * arm-tdep.c (show_fp_model): Update.
3251 * cli/cli-setshow.c (do_setshow_command): Call show_value_func
3252 instead of fprint_setshow. Use deprecated_show_value_hack.
3253 (deprecated_show_value_hack): New function.
3254 * remote.c (add_packet_config_cmd, show_remote_cmd):
3255 (show_remote_protocol_P_packet_cmd)
3256 (show_remote_protocol_P_packet_cmd)
3257 (show_remote_protocol_Z_access_wp_packet_cmd)
3258 (show_remote_protocol_Z_hardware_bp_packet_cmd)
3259 (show_remote_protocol_Z_packet_cmd)
3260 (show_remote_protocol_Z_read_wp_packet_cmd)
3261 (show_remote_protocol_Z_software_bp_packet_cmd)
3262 (show_remote_protocol_Z_write_wp_packet_cmd)
3263 (show_remote_protocol_binary_download_cmd)
3264 (show_remote_protocol_p_packet_cmd)
3265 (show_remote_protocol_qPart_auxv_packet_cmd)
3266 (show_remote_protocol_qSymbol_packet_cmd)
3267 (show_remote_protocol_vcont_packet_cmd): Update.
3268
3269 2005-02-16 Mark Kettenis <kettenis@gnu.org>
3270
3271 * wrapper.h: Update copyright year. Properly wrap a few
3272 prototypes.
3273 (struct gdb_wrapper_arguments): Remove forward declaration.
3274 * wrapper.c: Update copyright year. Include "ui-out.h".
3275 (struct gdb_wrapper_arguments): Remove.
3276 (struct captured_value_struct_elt_args): Remove.
3277 (wrapper_parse_exp_1, wrap_evaluate_expression)
3278 (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
3279 (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
3280 (do_captured_value_struct_elf): Remove functions.
3281 (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
3282 (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
3283 (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
3284 Re-implement using TRY_CATCH.
3285
3286 2005-02-16 Yoshinori Sato <ysato@users.sourceforge.jp>
3287
3288 * remote-e7000.c: unuse TM_FILE defined macro.
3289 (e7000_fetch_registers)
3290 (e7000_store_registers)
3291 (e7000_wait): delete NUM_REALREGS.
3292 * remote-hms.c: move TM_FILE macro.
3293 (CCR_REGNO): move define from tm-h8300.h.
3294
3295 2005-02-15 Mark Kettenis <kettenis@gnu.org>
3296
3297 * amd64-linux-tdep.c: Update copyright year.
3298 (amd64_linux_sigtramp_start): Use sizeof operator instead of
3299 LINUX_SIGTRAMP_LEN.
3300
3301 2004-02-15 Joel Brobecker <brobecker@gnat.com>
3302
3303 From Paul Hilfinger <hilfinger@gnat.com>
3304 * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
3305 SYMBOL_NATURAL_NAME to set type names.
3306
3307 2005-02-15 Andrew Cagney <cagney@gnu.org>
3308
3309 Mark up add_com, add_info and add_prefix_cmd.
3310 * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
3311 * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
3312 * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
3313 * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
3314 * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
3315 * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
3316 * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
3317 * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
3318 * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
3319 * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
3320 * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
3321 * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
3322 * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
3323 * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
3324 * tui/tui-stack.c, tui/tui-win.c: Update.
3325
3326 2005-02-14 Andrew Cagney <cagney@gnu.org>
3327
3328 * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
3329 * config/h8300/tm-h8300.h: Delete file.
3330
3331 Mark up add_cmd.
3332 * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
3333 * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
3334 * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
3335 * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
3336 * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
3337 * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
3338 * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
3339 * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
3340 * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
3341 * cli/cli-logging.c, tui/tui-regs.c: Update.
3342
3343 Mark up add_setshow functions, replace "PRINT:" comment prefix
3344 with "FIXME: i18n:".
3345 * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
3346 * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
3347 * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
3348 * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
3349 * target.c, cli/cli-logging.c: Update.
3350
3351 * utils.c (paddress): New function.
3352 * defs.h (paddress): Declare.
3353 * printcmd.c (deprecated_print_address_numeric): Rename
3354 print_address_numeric, call paddress.
3355 * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
3356 * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
3357 * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
3358 * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
3359 * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
3360 * ada-valprint.c: Update.
3361
3362 2005-02-13 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3363
3364 * MAINTAINERS: Add myself to "Write After Approval".
3365
3366 2005-02-12 Yoshinori Sato <ysato@users.sourceforge.jp>
3367
3368 Restore h8300 support.
3369 * configure.tgt: Add h8300-*-*
3370 * h8300-tdep.c: New file. Rewrite new frame code.
3371 * config/h8300/h8300.mt: New file. Restored Rev 1.3
3372 * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
3373
3374 * MAINTAINERS: Add myself to "Write After Approval".
3375
3376 2005-02-11 Andrew Cagney <cagney@gnu.org>
3377
3378 Mark up some of printf_filtered and printf_unfiltered.
3379 * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
3380 * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
3381 * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
3382 * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
3383 * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
3384 * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
3385 * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
3386 * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
3387 * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
3388 * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
3389 * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
3390 * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
3391 * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
3392 * tui/tui-regs.c, tui/tui-win.c: Update.
3393
3394 Mark up error_no_arg, query, perror_with_name, complaint, and
3395 internal_error.
3396 * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
3397 * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
3398 * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
3399 * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
3400 * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
3401 * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
3402 * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
3403 * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
3404 * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
3405 * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
3406 * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
3407 * interps.c, language.c, linespec.c, linux-nat.c: Update.
3408 * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
3409 * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
3410 * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
3411 * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
3412 * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
3413 * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
3414 * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
3415 * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
3416 * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
3417 * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
3418 * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
3419 * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
3420 * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
3421 * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
3422 * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
3423 * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
3424 * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
3425 * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
3426 * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
3427 * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
3428 * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
3429 * tui/tui-file.c, tui/tui-interp.c: Update.
3430
3431 2005-02-10 Andrew Cagney <cagney@gnu.org>
3432
3433 Mark up all error and warning messages.
3434 * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
3435 * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
3436 * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
3437 * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
3438 * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
3439 * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
3440 * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
3441 * event-top.c, exec.c, expprint.c, f-lang.c: Update.
3442 * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
3443 * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
3444 * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
3445 * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
3446 * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
3447 * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
3448 * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
3449 * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
3450 * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
3451 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
3452 * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
3453 * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
3454 * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
3455 * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
3456 * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
3457 * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
3458 * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
3459 * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
3460 * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
3461 * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
3462 * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
3463 * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
3464 * remote-rdp.c, remote-sim.c, remote-st.c: Update.
3465 * remote-utils.c, remote-utils.h, remote.c: Update.
3466 * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
3467 * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
3468 * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
3469 * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
3470 * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
3471 * somread.c, somsolib.c, source.c, stabsread.c: Update.
3472 * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
3473 * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
3474 * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
3475 * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
3476 * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
3477 * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
3478 * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
3479 * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
3480 * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
3481 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
3482 * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
3483 * tui/tui-win.c: Update.
3484
3485 2005-02-10 Ian Lance Taylor <ian@airs.com>
3486
3487 * MAINTAINERS: Update my e-mail address.
3488
3489 2005-02-10 Daniel Jacobowitz <dan@debian.org>
3490
3491 From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
3492 PR exp/1821
3493 * cp-valprint.c: Include "language.h".
3494 (cp_print_value_fields): Pass the current language to
3495 fprintf_symbol_filtered.
3496 * Makefile.in (cp-valprint.o): Update dependencies.
3497
3498 2005-02-10 Andrew Cagney <cagney@gnu.org>
3499
3500 * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
3501 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3502 (add_setshow_filename_cmd, add_setshow_string_cmd)
3503 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
3504 print string parameter with fprint_setshow function.
3505 * command.h (fprint_setshow_ftype): Define. Update declarations.
3506 * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
3507 available, use that.
3508 * cli/cli-decode.h (struct cmd_list_element): Add field
3509 fprint_setshow.
3510 * complaints.c (fprint_setshow_complaints): New function.
3511 (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
3512 * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
3513 with NULL.
3514 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3515 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3516 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3517 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3518 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3519 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3520 * dwarf2read.c (_initialize_dwarf2_read): Ditto.
3521 * frame.c (_initialize_frame): Ditto.
3522 * target.c (initialize_targets): Ditto.
3523 * maint.c (_initialize_maint_cmds): Ditto.
3524 * observer.c (_initialize_observer): Ditto.
3525 * infcall.c (_initialize_infcall): Ditto.
3526 * breakpoint.c (_initialize_breakpoint): Ditto.
3527 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3528 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3529
3530 * cli/cli-setshow.c (do_setshow_command): Move code printing the
3531 value to the end of the function. Handle MI and non-MI output
3532 differently.
3533
3534 2005-02-09 Andrew Cagney <cagney@gnu.org>
3535
3536 * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
3537 show_result parameters.
3538 * mips-tdep.c (_initialize_mips_tdep): Update calls.
3539 * command.h: Update declaration.
3540 * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
3541 calls.
3542
3543 * NEWS: Mention removed commands.
3544 * m68hc11-tdep.c (show_regs): Delete, unused.
3545 (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
3546 * gdb-events.sh: Delete deprecated "set eventdebug" and "show
3547 eventdebug" commands.
3548 * gdb-events.c: Regenerate.
3549 * gdbarch.sh: Delete deprecated "set archdebug" and "show
3550 archdebug" commands.
3551 * gdbarch.c: Regenerate.
3552 * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
3553 remotedebug" and "show remotedebug".
3554 * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
3555 disassembly-flavor", "show arm disassembly-flavor", and
3556 "othernames" commands.
3557 (arm_othernames): Delete unused function.
3558
3559 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
3560 (convert_code_addr_to_desc_addr): Convert any function code
3561 address to the corresponding function's descriptor.
3562 (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
3563 TYPE_CODE_INT use the same code paths as TYPE_CODE_INT. When
3564 writing, convert any function code address to the corresponding
3565 descriptor.
3566
3567 * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
3568 * config/powerpc/linux.mt (TDEPFILES): Ditto.
3569 * config/pa/linux.mt (TDEPFILES): Ditto.
3570 * config/mips/linux.mt (TDEPFILES): Ditto.
3571 * config/m68k/linux.mt (TDEPFILES): Ditto.
3572 * config/m32r/linux.mt (TDEPFILES): Ditto.
3573 * config/ia64/linux.mt (TDEPFILES): Ditto.
3574 * config/arm/linux.mt (TDEPFILES): Ditto.
3575
3576 2005-02-09 Corinna Vinschen <vinschen@redhat.com>
3577
3578 * symmisc.c: Include gdb_stat.h.
3579 (maintenance_print_msymbols): Use inode numbers to compare files.
3580
3581 2005-02-08 Andrew Cagney <cagney@gnu.org>
3582
3583 * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
3584 (METHOD_PTR_TO_VOFFSET): Move from here ...
3585 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
3586 (METHOD_PTR_TO_VOFFSET): ... to here.
3587 * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
3588 * Makefile.in: Update dependencies.
3589
3590 * exceptions.c: Do not include <setjmp.h>.
3591 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
3592 (catch_exception, catch_exceptions_with_msg, catch_errors)
3593 (catch_command_errors): Use TRY_CATCH.
3594 (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
3595 (exceptions_state_mc_init): Rename catcher_init.
3596 (exceptions_state_mc): Rename catcher_state_machine.
3597 (exceptions_state_mc_action_iter)
3598 (exceptions_state_mc_action_iter_1): New functions.
3599 * exceptions.h: Include <setjmp.h>.
3600 (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
3601 (EXCEPTIONS_SIGLONGJMP): Define.
3602 (exceptions_state_mc_init, exceptions_state_mc_action_iter)
3603 (exceptions_state_mc_action_iter_1): Declare.
3604 (TRY_CATCH): Define.
3605
3606 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
3607 no longer needed.
3608
3609 * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
3610 PT_FPSCR breakage.
3611
3612 * value.c (struct value): Move to here ...
3613 * value.h (struct value): ... from here. Copy comments to
3614 corresponding function declarations, re-order.
3615
3616 2005-02-07 Andrew Cagney <cagney@gnu.org>
3617
3618 * value.c (set_value_bitpos, set_value_bitsize): Define.
3619 * value.h (set_value_bitpos, set_value_bitsize): Declare.
3620 * ada-lang.c, valarith.c: Update.
3621
3622 * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
3623 value_contents_writeable, include note that there are problems.
3624 * breakpoint.c, infcall.c: Use VALUE_LVAL.
3625
3626 * value.h (set_value_offset): Declare.
3627 * value.c (set_value_offset): Declare.
3628 * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
3629 * findvar.c: Update.
3630
3631 * value.h (value_next): Declare.
3632 * value.c (value_next): Define.
3633 * breakpoint.c: Update.
3634
3635 * value.h (deprecated_set_value_modifiable)
3636 (deprecated_value_modifiable): Declare.
3637 * value.c (deprecated_set_value_modifiable): Define.
3638 (deprecated_value_modifiable): Define.
3639 * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
3640
3641 * value.h (deprecated_set_value_type): Declare.
3642 * value.c (deprecated_set_value_type): Define.
3643 * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
3644 * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
3645 * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
3646 * ax-gdb.c, tracepoint.c: Update.
3647
3648 * value.h (deprecated_value_lval_hack)
3649 (deprecated_value_address_hack)
3650 (deprecated_value_internalvar_hack)
3651 (deprecated_value_regnum_hack): Declare.
3652 (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
3653 (VALUE_FRAME_ID, VALUE_REGNUM): Use.
3654 * value.c (deprecated_value_lval_hack)
3655 (deprecated_value_address_hack)
3656 (deprecated_value_internalvar_hack)
3657 (deprecated_value_regnum_hack): Define.
3658
3659 * value.h (VALUE_POINTED_TO_OFFSET): Delete.
3660 (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
3661 * value.c (set_value_pointed_to_offset): Define
3662 (value_pointed_to_offset): Define.
3663 * valops.c: Update.
3664
3665 * value.h (VALUE_EMBEDDED_OFFSET): Delete.
3666 (value_embedded_offset, set_value_embedded_offset): Declare.
3667 * value.c (value_embedded_offset): Define.
3668 (set_value_embedded_offset): Define.
3669 * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
3670 * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
3671 * cp-abi.h: Update.
3672
3673 * value.h (VALUE_LAZY): Delete
3674 (set_value_lazy): Declare.
3675 * value.c (set_value_lazy): Define.
3676 * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
3677 * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
3678
3679 2005-02-06 Andrew Cagney <cagney@gnu.org>
3680
3681 * value.h (VALUE_OPTIMIZED_OUT): Delete.
3682 (value_optimized_out, set_value_optimized_out): Declare.
3683 * value.c (set_value_optimized_out, value_optimized_out): Define.
3684 * valprint.c, findvar.c, dwarf2loc.c: Update.
3685
3686 * value.c (value_contents, value_contents_writeable): New
3687 functions.
3688 * value.h (VALUE_CONTENTS): Delete macro.
3689 (value_contents, value_contents_writeable): Declare.
3690 * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
3691 * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
3692 * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
3693 * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
3694 * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
3695 * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
3696 * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
3697 * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
3698 * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
3699 * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
3700 * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
3701 * ada-valprint.c, ada-lang.c: Update.
3702
3703 2005-02-03 Andrew Cagney <cagney@gnu.org>
3704
3705 * utils.c (xzalloc): New function.
3706 * defs.h (XZALLOC): Use xzalloc.
3707 (xzalloc): Declare.
3708 * value.c (allocate_value): Allocate a zeroed buffer.
3709 * mdebugread.c (xzalloc): Delete.
3710
3711 2005-02-02 Andrew Cagney <cagney@gnu.org>
3712
3713 * value.h (value_lazy): Declare.
3714 * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
3715 * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
3716
3717 * value.h (VALUE_CONTENTS_ALL): Delete.
3718 (value_contents_all): Declare.
3719 * value.c (value_contents_all): New function.
3720 * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
3721 * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
3722
3723 * value.c (value_enclosing_type): New function.
3724 * value.h (VALUE_ENCLOSING_TYPE): Delete.
3725 (value_enclosing_type): Declare.
3726 * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
3727 * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
3728
3729 * value.c (value_contents_all_raw)
3730 (value_contents_raw): New functions.
3731 * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
3732 (value_contents_raw, value_contents_all_raw): Declare functions.
3733 (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
3734 * std-regs.c, valarith.c, valops.c, eval.c: Update.
3735 * tracepoint.c, findvar.c: Update.
3736
3737 2005-02-01 Orjan Friberg <orjanf@axis.com>
3738
3739 * regformats/reg-cris.dat: New file with register definitions for CRIS.
3740 * regformats/reg-crisv32.dat: Ditto for CRISv32.
3741
3742 2005-01-31 Andrew Cagney <cagney@gnu.org>
3743
3744 * configure: Regenerate to track ../gettext.m4.
3745
3746 2005-01-29 Baurzhan Ismagulov <ibr@radix50.net>
3747
3748 * MAINTAINERS: Add myself to "Write After Approval".
3749
3750 * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
3751 * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
3752 * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
3753
3754 2005-01-29 Mark Kettenis <kettenis@gnu.org>
3755
3756 * configure.ac: Remove extra check for ranlib.
3757 * configure: Regenerated.
3758
3759 2005-01-28 Andrew Cagney <cagney@gnu.org>
3760
3761 * language.h (struct language_defn): Make la_val_print's buffer
3762 parameter a const bfd_byte.
3763 * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
3764 * ada-lang.c (ada_aligned_value_addr)
3765 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
3766 * valprint.c (val_print_array_elements): Update.
3767 * valprint.h (val_print_array_elements): Update.
3768 * ada-lang.h (ada_val_print, ada_aligned_value_addr)
3769 (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
3770 * ada-valprint.c (ada_val_print, struct ada_val_print_args)
3771 (ada_val_print_1, ada_print_floating, printable_val_type)
3772 (print_record, val_print_packed_array_elements)
3773 (print_field_values, print_variant_part): Update.
3774 * c-lang.h (c_val_print, cp_print_value_fields): Update.
3775 * c-valprint.c (c_val_print): Update.
3776 * f-lang.h (f_val_print): Update.
3777 * f-valprint.c (f_val_print, f77_print_array_1)
3778 (f77_print_array): Update.
3779 * jv-lang.h (java_val_print): Update.
3780 * jv-valprint.c (java_print_value_fields, java_val_print): Update.
3781 * language.c (unk_lang_val_print): Update.
3782 * m2-lang.h (m2_val_print): Update.
3783 * m2-valprint.c (m2_val_print): Update.
3784 * p-lang.h (pascal_val_print): Update.
3785 (pascal_object_print_value_fields): Update.
3786 * p-valprint.c (pascal_val_print)
3787 (pascal_object_print_value_fields, pascal_object_print_value)
3788 (pascal_object_print_value): Update.
3789 * scm-lang.h (scm_val_print): Update.
3790 * scm-valprint.c (scm_val_print): Update.
3791 * value.h (val_print): Update.
3792
3793 * p-lang.h (pascal_object_print_class_member)
3794 (pascal_object_print_class_method): Make buffer a const bfd_byte.
3795 * p-valprint.c (pascal_object_print_class_method)
3796 (pascal_object_print_class_method): Ditto.
3797
3798 * language.h (struct language_defn): Make la_printstr's buffer
3799 parameter a const bfd_byte.
3800 * p-lang.h (pascal_printstr): Update function to match.
3801 * ada-valprint.c (ada_printstr): Update function to match.
3802 * scm-lang.c (scm_printstr): Update function to match.
3803 * p-lang.c (pascal_printstr): Update function to match.
3804 * ada-lang.h (ada_printstr): Update function to match.
3805 * m2-lang.c (m2_printstr): Update function to match.
3806 * objc-lang.c (objc_printstr): Update function to match.
3807 * c-lang.h (c_printstr): Update function to match.
3808 * f-lang.c (f_printstr): Update function to match.
3809 * c-lang.c (c_printstr): Update function to match.
3810 * language.c (unk_lang_printstr): Update function to match.
3811
3812 * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
3813 * valprint.h (val_print_type_code_int): Ditto.
3814
3815 * objc-lang.h (c_val_print, c_value_print): Delete declarations.
3816
3817 * cp-valprint.c (cp_print_class_method)
3818 (cp_print_class_member): Make buffer a const bfd_byte.
3819 * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
3820
3821 * ada-lang.c (value_from_contents_and_address)
3822 (to_record_with_fixed_variant_part)
3823 (value_tag_from_contents_and_address, ada_to_fixed_type)
3824 (to_fixed_variant_branch_type, to_fixed_record_type)
3825 (ada_template_to_fixed_record_type, cond_offset_host)
3826 (ada_template_to_fixed_record_type_1): Make buffer a const
3827 bfd_byte.
3828 * ada-lang.h (ada_template_to_fixed_record_type_1)
3829 (value_from_contents_and_address, ada_to_fixed_type): Ditto.
3830
3831 * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
3832
3833 * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
3834 * printcmd.c (print_scalar_formatted): Update.
3835
3836 * value.h (value_bit_index, print_floating)
3837 (find_rt_vbase_offset): Make buffer a const bfd_byte.
3838 * valprint.c (print_floating): Update.
3839 * valarith.c (value_bit_index): Update.
3840 * valops.c (find_rt_vbase_offset): Update.
3841
3842 * valprint.h (print_octal_chars, print_char_chars)
3843 (print_hex_chars, print_decimal_chars, print_binary_chars): Make
3844 buffer a const bfd_byte.
3845 * valprint.c (print_binary_chars, print_octal_chars)
3846 (print_decimal_chars, print_hex_chars, print_char_chars): Make
3847 "valaddr"buffer a const bfd_byte, ditto for local variables
3848 referencing that buffer.
3849
3850 * m2-valprint.c: Include "c-lang.h".
3851 (c_val_print): Delete extern declaration.
3852 * scm-valprint.c: Include "c-lang.h".
3853 (c_val_print): Delete extern declaration.
3854 Makefile.in: Update dependencies.
3855
3856 * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
3857 bfd_byte.
3858 * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
3859 (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
3860 bfd_byte.
3861 * cp-abi.c (baseclass_offset): Update.
3862 * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
3863
3864 * gnu-v2-abi.h: New file.
3865 * gnu-v2-abi.c: Include "gnu-v2-abi.h".
3866 (gnuv2_baseclass_offset): Delete declaration.
3867 * hpacc-abi.c: Include "gnu-v2-abi.h".
3868 (gnuv2_baseclass_offset): Delete extern declaration.
3869 * Makefile.in: Update dependencies.
3870
3871 * doublest.c (floatformat_is_negative, floatformat_is_nan)
3872 (floatformat_mantissa, get_field): Make the buffer a const
3873 bfd_byte, simplify.
3874
3875 2005-01-27 Andrew Cagney <cagney@gnu.org>
3876
3877 * value.h (struct value): Change type of contents to bfd_byte.
3878 (VALUE_CONTENTS_RAW): Simplify.
3879
3880 * gdbarch.sh (integer_to_address): Change buf parameter to a const
3881 bfd_byte, make pure-multi-arch.
3882 * gdbarch.h, gdbarch.c: Regenerate.
3883 * mips-tdep.c (mips_integer_to_address): Update.
3884 * value.c (value_as_address): Update.
3885
3886 * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
3887 * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
3888 parameters const, change buf to a const bfd_byte.
3889 (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
3890 parameters const.
3891
3892 * corefile.c (write_memory): Update, make a copy of the read-only
3893 buffer.
3894 * target.c (target_read_memory): Update.
3895 (target_write_memory): Update, make a copy of the read-only
3896 buffer.
3897 * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
3898 const.
3899 * target.h (target_read_memory, target_write_memory): Change
3900 buffer type to bfd_byte; for write_memory, make it const.
3901 * symfile-mem.c (do_target_read_memory): New function.
3902 (symbol_file_add_from_memory): Pass do_target_read_memory to
3903 bfd_elf_bfd_from_remote_memory.
3904
3905 * value.h: Indent using gdb_indent.sh.
3906
3907 * configure: Regenerate to track ../gettext.m4 change.
3908
3909 2005-01-26 Andrew Cagney <cagney@gnu.org>
3910
3911 * rs6000-tdep.c: Include "reggroups.h".
3912 (rs6000_gdbarch_init): Set register_reggroup_p.
3913 (rs6000_register_reggroup_p): New function.
3914
3915 2005-01-26 Orjan Friberg <orjanf@axis.com>
3916
3917 * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
3918 (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
3919 CRISv32.
3920 (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
3921 (cris_region_ok_for_watchpoint, cris_stopped_data_address)
3922 (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
3923 (crisv32_register_type, cris_special_register_name)
3924 (crisv32_register_name): New functions.
3925 (cris_spec_reg_applicable): Recognize more versions.
3926 (cris_register_name): Update with call to cris_special_register_name.
3927 (find_cris_op): Filter out CRISv32 instructions. Tweaked comment and
3928 warning when unable to find step target.
3929 (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
3930 (supply_gregset): Add struct gdbarch_tdep. Set pseudo-PC register for
3931 CRISv32.
3932 (fetch_core_registers): Update for CRISv32.
3933 (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
3934 register_name, cannot_store_register, cannot_fetch_register,
3935 have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
3936
3937 2005-01-26 Nick Roberts <nickrob@snap.net.nz>
3938
3939 * interps.c (interpreter_exec_cmd): Use condition,
3940 e.reason < 0, to raise an error.
3941
3942 2005-01-25 Andrew Cagney <cagney@gnu.org>
3943
3944 * ppc-linux-tdep.c: Include "tramp-frame.h"
3945 (struct ppc_linux_sigtramp_cache)
3946 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
3947 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
3948 (ppc_linux_sigtramp_cache): Delete.
3949 (ppc32_linux_sigaction_cache_init)
3950 (ppc64_linux_sigaction_cache_init)
3951 (ppc32_linux_sighandler_cache_init)
3952 (ppc64_linux_sighandler_cache_init)
3953 (ppc32_linux_sigaction_tramp_frame)
3954 (ppc64_linux_sigaction_tramp_frame)
3955 (ppc32_linux_sighandler_tramp_frame)
3956 (ppc64_linux_sighandler_tramp_frame)
3957 (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
3958 64-bit, sigaction and siginfo tramp-frame unwinders.
3959
3960 * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
3961 long_double_bit to 8.
3962
3963 2005-01-24 Andrew Cagney <cagney@gnu.org>
3964
3965 * infrun.c (handle_inferior_event): Handle back-to-back and nested
3966 signals where the step_resume_breakpoint may have already been
3967 inserted.
3968
3969 2005-01-24 Andrew Cagney <cagney@gnu.org>
3970
3971 * configure: Regenerate, ../gettext.m4 was updated.
3972
3973 2005-01-23 Mark Kettenis <kettenis@gnu.org>
3974
3975 * NEWS: Mention new BSD user-level threads support.
3976
3977 * i386obsd-tdep.c: Update copyright year. Include
3978 "bsd-uthread.h".
3979 (i386obsd_uthread_reg_offset): New variable.
3980 (I386OBSD_UTHREAD_ESP_OFFSET): New define.
3981 (i386obsd_supply_uthread, i386obsd_collect_uthread): New
3982 functions.
3983 (i386obsd_init_abi): Set supply_uthread and collect_uthread.
3984 * Makefile.in (i386obsd-tdep.o): Update dependencies.
3985 * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
3986
3987 2005-01-23 Christopher Faylor <cgf@timesys.com>
3988
3989 * win32-nat.c: Update copyright year.
3990 (child_init_thread_list): Set thread linked list point to NULL so that
3991 it won't be reused after clearing.
3992
3993 2005-01-21 Mark Kettenis <kettenis@gnu.org>
3994
3995 * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
3996 undefs.
3997 * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
3998 thread' has a td_pcb member and whether `struct reg' has r_fs and
3999 r_gs members.
4000 * configure, config.in: Regenerate.
4001
4002 2005-01-21 Mark Kettenis <kettenis@gnu.org>
4003
4004 * configure.ac: Remove ia64-*-aix* junk.
4005 * configure: Regenerate.
4006
4007 * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
4008 and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
4009 is necessary.
4010 * configure, config.in: Regenerate.
4011 * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
4012 BFD_NEED_DECLARATION. Never provide a prototype for
4013 caninicalize_file_name.
4014 * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
4015 BFD_NEED_DECLARATION.
4016
4017 * configure.ac (targ_archs): Use standard autoconf check for
4018 "struct stat.st_blocks" instead of rolling our own.
4019 * configure: Regenerated.
4020 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
4021 * config.in: Regenerated.
4022
4023 2005-01-21 Mark Kettenis <kettenis@gnu.org>
4024
4025 * configure.ac: Modernize checks for `long long' and `long double'
4026 support.
4027 * configure: Regenerated.
4028 * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
4029 (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
4030 * config.in: Regenerated.
4031
4032 2005-01-20 Mark Kettenis <kettenis@gnu.org>
4033
4034 * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
4035 (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
4036 * configure.ac: Remove checks for HP-UX save_state structure.
4037 * configure: Regenerated.
4038
4039 2005-01-19 Andrew Cagney <cagney@gnu.org>
4040
4041 * utils.c (quit): Simplify, call fatal.
4042 * exceptions.c: Include "serial.h"
4043 (print_flush): Mimic flush code found in utils.c:quit.
4044 * Makefile.in: Update dependencies.
4045
4046 2005-01-19 Jim Blandy <jimb@redhat.com>
4047
4048 * configure.tgt: Set build_rdi_share to "yes" on those targets
4049 that use that debugging protocol.
4050 Set build_nlm to yes to build NLM stub for Netware targets.
4051 * configure.ac: If build_rdi_share is "yes", then configure the
4052 rdi-share subdirectory.
4053 If build_nlm is "yes", the configure the "nlm" subdirectory.
4054 * configure: Regenerated.
4055
4056 * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
4057 autoconf 2.59 and automake 1.9.3.
4058
4059 2005-01-19 Andrew Cagney <cagney@gnu.org>
4060
4061 * exceptions.h (deprecated_throw_reason): Rename throw_reason.
4062 * exceptions.c (deprecated_throw_reason): Rename throw_reason.
4063 * utils.c (internal_verror, quit): Update.
4064 * remote-sds.c (interrupt_query): Update.
4065 * remote-mips.c (mips_error, mips_kill): Update.
4066 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
4067 * remote.c (interrupt_query): Update.
4068 * ocd.c (interrupt_query): Update.
4069 * nto-procfs.c (interrupt_query): Update.
4070 * monitor.c (monitor_interrupt_query): Update.
4071 * breakpoint.c (break_command_1): Update.
4072
4073 * infrun.c: (resume, proceed, wait_for_inferior)
4074 (handle_inferior_event, stop_stepping)
4075 (prepare_to_wait): Write debug output to gdb_stdlog.
4076
4077 2005-01-19 Mark Kettenis <kettenis@gnu.org>
4078
4079 * inf-ptrace.c (inf_ptrace_prepare_to_store)
4080 (inf_ptrace_post_startup_inferior)
4081 (inf_ptrace_acknowledge_created_inferior)
4082 (inf_ptrace_insert_fork_catchpoint)
4083 (inf_ptrace_remove_fork_catchpoint)
4084 (inf_ptrace_insert_vfork_catchpoint):
4085 (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
4086 (inf_ptrace_insert_exec_catchpoint)
4087 (inf_ptrace_remove_exec_catchpoint): Remove functions.
4088 (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
4089 (inf_ptrace_target): Don't set to_prepare_to_store,
4090 to_post_startup_inferior, to_acknowledge_created_inferior,
4091 to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
4092 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4093 to_follow_fork, to_insert_exec_catchpoint,
4094 to_remove_exec_catchpoint.
4095
4096 2005-01-18 Andrew Cagney <cagney@gnu.org>
4097
4098 * target.h (struct target_ops): Change return type of
4099 to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
4100 to_insert_exec_catchpoint to void.
4101 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
4102 (child_insert_exec_catchpoint): Change return type to void.
4103 * target.c (update_current_target): Update.
4104 (debug_to_insert_fork_catchpoint)
4105 (debug_to_insert_vfork_catchpoint)
4106 (debug_to_insert_exec_catchpoint): Update.
4107 * inf-child.c (inf_child_insert_fork_catchpoint)
4108 (inf_child_insert_vfork_catchpoint)
4109 (inf_child_insert_exec_catchpoint): Update.
4110 * breakpoint.c (insert_catchpoint): Update, do not throw an error.
4111 * linux-nat.c (child_insert_fork_catchpoint)
4112 (child_insert_vfork_catchpoint)
4113 (child_insert_exec_catchpoint): Update.
4114 * inftarg.c (child_insert_fork_catchpoint)
4115 (child_insert_vfork_catchpoint,)
4116 (child_insert_exec_catchpoint): Update.
4117
4118 * remote.c (remote_open_1): Use throw_exception.
4119
4120 2005-01-17 Michael Snyder <msnyder@redhat.com>
4121
4122 * mips-linux-tdep.c: Whitespace tweaks.
4123
4124 2005-01-17 Corinna Vinschen <vinschen@redhat.com>
4125
4126 * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
4127
4128 2005-01-17 Andrew Cagney <cagney@gnu.org>
4129
4130 * top.h (source_error, source_pre_error): Delete declaration.
4131 * cli/cli-script.c (source_error_allocated, source_error): Delete.
4132 (script_from_file, source_cleanup_lines): Do not manipulate
4133 source_error_allocated, error_pre_print and source_error.
4134 (struct source_cleanup_lines_args): Delete fields old_pre_error,
4135 and old_error_pre_print.
4136 * top.c (source_error_allocated, source_error)
4137 (source_pre_error): Delete.
4138 (command_line_input): Do not set error_pre_print.
4139 * event-top.c (command_line_handler): Do not set error_pre_print.
4140
4141 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
4142
4143 * MAINTAINERS: Update my email address.
4144
4145 2005-01-16 Mark Kettenis <kettenis@gnu.org>
4146
4147 * configure.ac: Provide prerequisite headers when checking
4148 <term.h>.
4149 * configure: Regenerate.
4150
4151 * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
4152 and "bsd-uthread.h".
4153 (amd64fbsd_jmp_buf_reg_offset): New variable.
4154 (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
4155 functions.
4156 (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
4157 * i386fbsd-tdep.c: Fix typo.
4158 * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
4159 * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
4160
4161 2005-01-16 Andrew Cagney <cagney@gnu.org>
4162
4163 * cli/cli-script.c: Include "exceptions.h".
4164 (struct wrapped_read_command_file_args): Define.
4165 (wrapped_read_command_file): New function.
4166 (script_from_file): Replace direct call to read_command_file by
4167 one wrapped by an exception handler.
4168 * exceptions.c (throw_it): Free the old message after creating the
4169 new.
4170 * Makefile.in: Update dependencies.
4171
4172 2005-01-16 Mark Kettenis <kettenis@gnu.org>
4173
4174 * sparc64fbsd-tdep.c: Update copyright year.
4175 (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
4176 functions.
4177 (sparc64fbsd_init_abi): Create register sets with collect
4178 functions.
4179
4180 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
4181 (_initialize_sparc64fbsd_nat): Add some extra features to the
4182 generic SPARC target.
4183 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
4184 * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
4185 (NAT_FILE): Set to solib.h.
4186 * config/sparc/nm-fbsd.h: Remove file.
4187
4188 * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
4189
4190 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
4191
4192 2005-01-16 Andrew Cagney <cagney@gnu.org>
4193
4194 * exceptions.c (struct catcher): Delete saved_error_pre_print and
4195 saved_quit_pre_print.
4196 (catcher_init): Delete parameter errstring, do not override the
4197 pre_print strings.
4198 (catcher_pop): Do not restore the pre_print strings.
4199 (catch_exception, catch_exceptions_with_msg, catch_errors)
4200 (catch_command_errors): Update catch_init calls.
4201
4202 2005-01-16 Mark Kettenis <kettenis@gnu.org>
4203
4204 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
4205 * sparc64fbsd-nat.c: Update copyright year. Include "target.h".
4206
4207 2005-01-15 Andrew Cagney <cagney@gnu.org>
4208
4209 * acinclude.m4: Include ../bfd/bfd.m4 instead of
4210 ../bfd/acinclude.m4. Include ../gettext.m4.
4211 * aclocal.m4, configure: Re-generate.
4212
4213 * exceptions.c (do_captured_command)
4214 (struct captured_command_args): Delete.
4215 (catch_command_errors): Simplify by inlining call to catch_errors.
4216
4217 * exceptions.c (struct catcher): Delete field print_message.
4218 (catcher_init): Delete print_message parameter.
4219 (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
4220 (throw_it): Delete prefix parameter.
4221 (throw_verror, throw_vfatal, throw_error): Update.
4222
4223 2005-01-14 Andrew Cagney <cagney@gnu.org>
4224
4225 * exceptions.c (print_and_throw): Delete, replaced by throw_it.
4226 (throw_reason): Leave the exception's message field blank.
4227 (throw_it): New function, create the exception and throw it.
4228 (throw_verror, throw_vfatal, throw_error): Call throw_it.
4229 (print_any_exception): New function.
4230 (catch_errors, catch_exceptions_with_msg): Call
4231 print_any_exception.
4232 (throw_exception): Move code calling annotate_error and
4233 annotate_quit from here ...
4234 (print_exception): ... to here.
4235
4236 * exceptions.c (exception_fprintf, exception_print): Move printing
4237 of \n from here ...
4238 (print_exception): ... to here.
4239 (print_flush): New function.
4240 (exception_print, exception_fprintf): Replace duplicated flush and
4241 wrap code with call to print_flush.
4242 (print_and_throw): Simplify, by using xstrvprintf, print_flush,
4243 and print_exception.
4244 (do_write): Delete.
4245
4246 * remote-sds.c (interrupt_query): Call throw_reason instead of
4247 throw_exception.
4248 * remote-mips.c (mips_error, mips_kill): Ditto
4249 * ocd.c (interrupt_query): Ditto.
4250 * nto-procfs.c (interrupt_query): Ditto.
4251 * monitor.c (monitor_interrupt_query): Ditto.
4252
4253 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
4254
4255 * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
4256
4257 2005-01-14 Andrew Cagney <cagney@gnu.org>
4258
4259 * exceptions.h (catch_exceptions): Delete errstring parameter.
4260 (catch_exceptions_with_msg): Ditto.
4261 * exceptions.c (catch_exceptions_with_msg): Update.
4262 (catch_exceptions): Update.
4263 * symfile-mem.c (add_vsyscall_page): Update.
4264 * frame.c (get_current_frame): Update.
4265 * wrapper.c (gdb_value_struct_elt): Update.
4266 * exceptions.c (catch_exceptions): Update.
4267 * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
4268 * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
4269 * remote-fileio.c (remote_fileio_request): Update.
4270
4271 * exceptions.h (exception_fprintf): Declare.
4272 (exception_print): Drop pre_print parameter.
4273 * mi/mi-main.c (mi_execute_command): Update exception_print call.
4274 * cli/cli-interp.c (safe_execute_command): Update exception_print
4275 call.
4276 * remote.c (remote_open_1): Instead of passing an error prefix to
4277 catch_exceptions, use catch_exceptions and exception_fprintf.
4278 (remote_start_remote): Change return type to void.
4279 * breakpoint.c (insert_bp_location): Instead of passing an error
4280 prefix to catch_exceptions, use catch_exceptions and
4281 exception_fprintf.
4282 (insert_catchpoint): Change return type to void.
4283 (break_command_1): Update exception_print call.
4284 * exceptions.c (exception_fprintf): New function.
4285 (print_exception): New function.
4286 (exception_print): Use print_exception.
4287
4288 * utils.c (error_output_message): Delete function.
4289 * defs.h (error_output_message): Delete declaration.
4290
4291 * linespec.c (symtab_from_filename, decode_variable): Use
4292 throw_error instead of error_silent.
4293 * breakpoint.c (do_captured_parse_breakpoint): Change return type
4294 to void.
4295 (break_command_1): Use catch_exception and check the error return
4296 status.
4297 * exceptions.c (throw_error): New function.
4298 (throw_vsilent): Delete function.
4299 * exceptions.h (throw_error): Declare.
4300 (throw_vsilent): Delete declaration.
4301 * utils.c (error_silent): Delete function.
4302 * defs.h (error_silent): Delete declaration.
4303
4304 * mi/mi-main.c (mi_execute_command): Print the exception.
4305 * cli/cli-interp.c (safe_execute_command): Print the exception.
4306 * exceptions.h (exception_print): Declare.
4307 * exceptions.c (struct catcher): Add field print_message.
4308 (catcher_init): Add parameter print_message, store in the catcher
4309 struct.
4310 (print_and_throw): Only print the message when print_message.
4311 (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
4312 catcher_init.
4313 (catch_exception): Pass print_message=0 to catcher_init.
4314
4315 * varobj.c (varobj_create): Add missing \n.
4316
4317 2005-01-13 Michael Snyder <msnyder@redhat.com>
4318
4319 * cli/cli-decode.h: Whitespace tweaks.
4320 * wince.c: Whitespace tweaks.
4321 * uw-thread.c: Whitespace tweaks.
4322 * utils.c: Whitespace tweaks.
4323 * tracepoint.[ch]: Whitespace tweaks.
4324 * solist.h: Whitespace tweaks.
4325
4326 2005-01-13 Andrew Cagney <cagney@gnu.org>
4327
4328 * exceptions.h (struct exception): Make message const.
4329 * mi/mi-main.c (mi_execute_command): Pass result.message directly
4330 to fputstr_unfiltered.
4331
4332 2005-01-13 Michael Snyder <msnyder@redhat.com>
4333
4334 * stack.c: Whitespace tweaks.
4335 * somsolib.[ch]: Whitespace tweaks.
4336 * solib-aix.c: Whitespace tweaks.
4337 * solib.c: Whitespace tweaks.
4338 * solib-frv.c: Whitespace tweaks.
4339 * solib.h: Whitespace tweaks.
4340 * solib-irix.c: Whitespace tweaks.
4341 * solib-som.c: Whitespace tweaks.
4342 * solib-sunos.c: Whitespace tweaks.
4343 * solib-svr4.[ch]: Whitespace tweaks.
4344 * ser-tcp.c: Whitespace tweaks.
4345 * ser-unix.c: Whitespace tweaks.
4346 * serial.h: Whitespace tweaks.
4347 * scm-valprint.c: Whitespace tweaks.
4348 * rs6000-tdep.c: Whitespace tweaks.
4349 * rs6000-nat.c: Whitespace tweaks.
4350 * remote.c: Whitespace tweaks.
4351
4352 2005-01-13 Andrew Cagney <cagney@gnu.org>
4353
4354 * defs.h (error_last_message, error_init): Delete declaration.
4355 * utils.c (fatal, vfatal): Call throw_vfatal.
4356 (error, verror): Call throw_verror;
4357 (do_write, error_stream_1): Delete function.
4358 (error_stream): Simplify, call error.
4359 (error_last_message, error_init, gdb_lasterr): Delete.
4360 (error_silent): Simplify, call throw_vsilent.
4361 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
4362 * main.c (captured_main): Delete call to error_init.
4363 * exceptions.c (throw_verror, throw_verror)
4364 (throw_vsilent): New functions.
4365 (do_write, print_and_throw): New functions.
4366 (last_message): New global.
4367 (throw_reason): Replace error_last_message with last_message.
4368 (catch_exceptions_with_msg): Dup the message.
4369 * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
4370 Declare.
4371
4372 2005-01-13 Michael Snyder <msnyder@redhat.com>
4373
4374 * remote-st.c: Whitespace tweaks.
4375 * remote-sim.c: Whitespace tweaks.
4376 * remote-mips.c: Whitespace tweaks.
4377 * pa64solib.[ch]: Whitespace tweaks.
4378 * mdebugread.c: Whitespace tweaks.
4379 * main.c: Whitespace tweaks.
4380 * interps.c: Whitespace tweaks.
4381 * infrun.c: Whitespace tweaks.
4382 * infcmd.c: Whitespace tweaks.
4383 * hpux-thread.c: Whitespace tweaks.
4384 * hppa-hpux-tdep.c: Whitespace tweaks.
4385 * gdbcore.h: Whitespace tweaks.
4386 * gdbcmd.h: Whitespace tweaks.
4387 * gdb-events[.c, .h, .sh]: Whitespace tweaks.
4388 * corefile.c: Whitespace tweaks.
4389 * completer.c: Whitespace tweaks.
4390 * coff-solib.c: Whitespace tweaks.
4391 * coff-solib.h: Whitespace tweaks.
4392 * cli-out.c: Whitespace tweaks.
4393 * breakpoint.c: Whitespace tweaks.
4394 * cli/cli-interp.c: Tweak comments, per coding standard.
4395
4396 2005-01-13 Andrew Cagney <cagney@gnu.org>
4397
4398 * breakpoint.c (gdb_breakpoint_query): Update, use
4399 catch_exceptions_with_msg.
4400 (do_captured_breakpoint): Add uiout parameter.
4401 (gdb_breakpoint): Update, use catch_exceptions_with_msg.
4402 * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
4403 gdb_thread_select. Return MI_CMD_ERROR instead of
4404 MI_CMD_CAUGHT_ERROR.
4405 (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
4406 (enum captured_mi_execute_command_actions): Delete
4407 EXECUTE_COMMAND_DISPLAY_ERROR.
4408 (captured_mi_execute_command): Delete code handling
4409 MI_CMD_CAUGHT_ERROR.
4410 (mi_execute_command): Don't check for
4411 EXECUTE_COMMAND_DISPLAY_ERROR.
4412 * mi/mi-cmd-break.c (breakpoint_notify): Update call to
4413 gdb_breakpoint_query.
4414 (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
4415 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
4416 * gdb.h (gdb_thread_select, gdb_list_thread_ids)
4417 (gdb_breakpoint, gdb_breakpoint_query): Add error_message
4418 parameter.
4419 * thread.c (thread_command): Update call.
4420 (gdb_thread_select, gdb_list_thread_ids): Update, call
4421 catch_exceptions_with_msg.
4422
4423 * mi/mi-main.c (mi_execute_command): Use catch_exception,
4424 eliminate call to error_last_message.
4425 (captured_mi_execute_command): Change return type to void.
4426
4427 2005-01-12 Andrew Cagney <cagney@gnu.org>
4428
4429 * exceptions.c (exception_none): New variable.
4430 * Makefile.in: Update dependencies.
4431 * interps.c: Include "exceptions.h".
4432 (interpreter_exec_cmd, interp_exec): Update to return "struct
4433 exception"
4434 * exceptions.h (no_exception): Declare.
4435 * tui/tui-interp.c (tui_exec): Update to return "struct exception"
4436 * mi/mi-interp.c: Include "exceptions.h".
4437 (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
4438 'struct exception".
4439 * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
4440 (do_captured_execute_command): Update to use catch_exception.
4441 * interps.h: Include "exceptions.h".
4442 (interp_exec_ftype, interp_exec): Return "struct exception".
4443
4444 * exceptions.h (throw_reason): Rename throw_exception.
4445 (enum errors, struct exception): Define.
4446 (catch_exception_ftype): Define.
4447 (catch_exception, throw_exception): Declare.
4448 * exceptions.c (throw_exception): Rewrite.
4449 (throw_reason): New function.
4450 (struct catcher, catcher_state_machine): Replace "reason" with
4451 "exception", delete "gdberrmsg".
4452 (catch_exception): New function.
4453 (catcher_init): Replace "gdberrmsg" parameter with "exception".
4454 (catch_errors, catch_exceptions_with_msg): Re-implement passing
4455 exception to catcher_init.
4456 * utils.c (error_silent, error_stream_1): Use throw_reason.
4457 (internal_verror, quit): Ditto.
4458 * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
4459 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
4460 * remote.c (remote_open_1, interrupt_query): Ditto.
4461
4462 2005-01-12 Mark Kettenis <kettenis@gnu.org>
4463
4464 * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
4465 "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
4466 (i386fbsd_jmp_buf_reg_offset): New variable.
4467 (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
4468 functions.
4469 (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
4470 * Makefile.in (i386fbsd-tdep.o): Update dependency.
4471 * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
4472
4473 * bsd-uthread.h: New file.
4474 * bsd-uthread.c: New file.
4475 * Makefile.in (bsd_uthread_h): New variable.
4476 (ALLDEPFILES): Add bsd-uthread.c.
4477 (bsd-uthread.o): New dependency.
4478
4479 * solib.h Update copyright year.
4480 (struct so_list): Forward declaration.
4481 (solib_read_symbols): New prototype.
4482 * solib.c (solib_read_symbols): New function.
4483 (solib_add): Call solib_read_symbols to read in symbols.
4484 (update_solib_list): Call observer_notify_solib_loaded.
4485
4486 * i386bsd-nat.c: Update copyright year. Don't include
4487 <sys/param.h> and <sys/user.h>.
4488 (register_u_addr, kernel_u_size): Remove functions.
4489 * config/i386/obsd.mh (NAT_FILE): Remove.
4490 * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
4491 * config/i386/nm-obsd.h: Remove file.
4492
4493 2005-01-12 Andrew Cagney <cagney@gnu.org>
4494
4495 * exceptions.c: Include "gdb_string.h".
4496 (enum catcher_state, struct catcher): Define.
4497 (current_catcher): New global, replaces catch_return;
4498 (catch_return): Delete.
4499 (throw_exception): Use current_catcher->buf;
4500 (catcher_init, catcher_pop, catcher_state_machine): New functions.
4501 (catcher): Delete.
4502 (struct catch_errors_args): Delete.
4503 (do_catch_errors): Delete.
4504 (catch_exceptions): Replace body with call to
4505 catch_exceptions_with_msg.
4506 (catcher): Delete.
4507 (catch_exceptions_with_msg, catch_errors): Re-implement using
4508 catcher_state_machine.
4509
4510 * exceptions.h (enum return_reason, RETURN_MASK)
4511 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
4512 (return_mask, throw_exception, catch_exceptions_ftype)
4513 (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
4514 (catch_command_errors_ftype, catch_command_errors): Move to
4515 exceptions.h.
4516 * exceptions.c, exceptions.h: New files.
4517 * top.c: Do not include <setjmp.h>.
4518 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
4519 (throw_exception, catcher, catch_exceptions)
4520 (catch_exceptions_with_msg, struct catch_errors_args)
4521 (do_catch_errors, catch_errors, struct captured_command_args)
4522 (do_captured_command, catch_command_errors): Move to exceptions.c.
4523 * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
4524 * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
4525 * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
4526 * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
4527 * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
4528 * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
4529 * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
4530 * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
4531 * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
4532 * ada-valprint.c, ada-lang.c: Ditto.
4533 * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
4534 exceptions.o. Update all dependencies.
4535
4536 2005-01-11 Mark Kettenis <kettenis@gnu.org>
4537
4538 * config/i386/nm-fbsd.h: Update copyright year.
4539 Don't include "config/nm-bsd.h".
4540 (KERNEL_U_SIZE): Remove macro.
4541 (kernel_u_size): Remove prototype.
4542
4543 * config/vax/nbsdaout.mh (NAT_FILE): Remove.
4544 * config/vax/nm-nbsdaout.h: Remove file.
4545
4546 2005-01-10 Elena Zannoni <ezannoni@redhat.com>
4547
4548 * MAINTAINERS: Remove self from sh/sh64 maintainership.
4549
4550 2005-01-10 Andrew Cagney <cagney@gnu.org>
4551
4552 * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
4553 changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
4554 maintainer.
4555
4556 * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
4557 changes to CRIS.
4558
4559 * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN
4560 COMMIT means can approve).
4561
4562 2005-01-10 Mark Kettenis <kettenis@gnu.org>
4563
4564 * vax-nat.c: Update copyright year. Include "inf-ptrace.h".
4565 (vax_register_u_offset): Make statuc.
4566 (_initialize_vax_nat): Construct and add target vector.
4567 * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
4568 inftarg.o. Add inf-ptrace.o.
4569 * Makefile.in (vax-nat.o): Update dependencies.
4570
4571 * inf-ptrace.h: Update copyright year. Sync comment with
4572 inf-ptrace.c.
4573 (inf_ptrace_trad_target): New prototype.
4574 * inf-ptrace.c: Update copyright year. Include "regcache.h" and
4575 "gdb_assert.h"
4576 (inf_ptrace_target): Add comment.
4577 (inf_ptrace+register_u_offset): New variable.
4578 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
4579 (inf_ptrace_store_register, inf_ptrace_store_registers)
4580 (inf_ptrace_trad_target): New functions.
4581 * Makefile.in (inf-ptrace.o): Update dependencies.
4582
4583 2005-01-09 Mark Kettenis <kettenis@gnu.org>
4584
4585 * configure.ac: Provide prerequisite headers when checking
4586 <link.h>, <sys/proc.h> and <sys/user.h>.
4587 * configure: Regenerate.
4588
4589 2005-01-08 Mark Kettenis <kettenis@gnu.org>
4590
4591 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
4592 tm-ppc-eabi.h instead of the removed tm-nbsd.h.
4593
4594 2005-01-07 Mark Kettenis <kettenis@gnu.org>
4595
4596 * config/ia64/tm-linux.h: Tweak comment. Update copyright year.
4597 Don't include "tm-ia64.h".
4598 * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
4599 * config/ia64/tm-ia64.h: Remove. Move contents ...
4600 * ia64-tdep.h: ... here. Update copyright year.
4601
4602 2005-01-07 Andrew Cagney <cagney@gnu.org>
4603
4604 * configure.ac: Rename configure.in, require autoconf 2.59.
4605 * configure: Re-generate.
4606
4607 * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
4608 xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
4609 to configdirs.
4610
4611 * configure.in: Replace configdirs with multiple references to
4612 AC_CONFIG_SUBDIRS.
4613 * configure: Re-generate.
4614
4615 2005-01-05 Andreas Schwab <schwab@suse.de>
4616
4617 * ia64-tdep.c: Include "osabi.h".
4618 (native_find_global_pointer): Delete.
4619 (ia64_find_global_pointer): Renamed from
4620 generic_elf_find_global_pointer.
4621 (FIND_GLOBAL_POINTER): Delete. Change all users to call
4622 ia64_find_global_pointer instead.
4623 (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references
4624 to ia64_linux_sigcontext_register_address and
4625 ia64_linux_write_pc. Don't set tdep->find_global_pointer.
4626 (_initialize_ia64_tdep): Call gdbarch_register instead of
4627 deprecated register_gdbarch_init.
4628 (struct gdbarch_tdep): Remove find_global_pointer field and move
4629 to ...
4630 * ia64-tdep.h (struct gdbarch_tdep): ... here.
4631 (ia64_linux_sigcontext_register_address): Remove declaration.
4632 (ia64_linux_getunwind_table): Likewise.
4633 (ia64_linux_write_pc): Likewise.
4634 * ia64-linux-tdep.c: Include "osabi.h".
4635 (ia64_linux_sigcontext_register_address): Make static.
4636 (ia64_linux_write_pc): Likewise.
4637 (ia64_linux_init_abi): New.
4638 (_initialize_ia64_linux_tdep): New.
4639 * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
4640 $(osabi_h).
4641
4642 2005-01-05 Kevin Buettner <kevinb@redhat.com>
4643
4644 * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
4645 functions in ia64-aix-tdep.c.
4646 * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
4647 function defined in ia64-aix-tdep.c.
4648 * ia64-aix-tdep.c: Remove file.
4649 * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
4650 this list.
4651 * Makefile.in (ia64-aix-tdep.o): Delete.
4652
4653 2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4654
4655 Committed by Andrew Cagney.
4656 * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
4657 * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
4658 * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
4659 * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
4660 * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
4661 * aix-thread.c (_initialize_aix_thread): Get rid of the
4662 deprecated_add_show_from_set call.
4663 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
4664 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4665 * command.h (add_setshow_enum_cmd): Add arguments for returning
4666 new list elements.
4667 * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
4668 * mips-tdep.c (_initialize_mips_tdep): Modify calls to
4669 add_setshow_enum_cmd.
4670
4671 2005-01-04 Mark Kettenis <kettenis@gnu.org>
4672
4673 * configure.host (ia64-*-aix*): Remove.
4674 * configure.tgt (ia64-*-aix*): Remove.
4675 * config/ia64/aix.mh: Remove file.
4676 * config/ia64/aix.mt: Remove file.
4677 * config/ia64/tm-aix.h: Remove file.
4678 * ia64-aix-nat.c: Remove file.
4679 * Makefile.in (ia64-aix-nat.o): Remove dependency.
4680
4681 * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
4682 Add back inf-ptrace.o.
4683
4684 2005-01-04 Andrew Cagney <cagney@gnu.org>
4685
4686 * version.in: Change format from 6.3.50_2005-01-04-cvs to
4687 6.3.50.20050104-cvs.
4688
4689 2005-01-04 Andreas Schwab <schwab@suse.de>
4690
4691 * breakpoint.c (break_command_1): Always free err_msg before
4692 returning when an exception was caught.
4693
4694 2005-01-01 Joel Brobecker <brobecker@gnat.com>
4695
4696 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
4697 in register number for addil instruction.
4698
4699 For older changes see ChangeLog-2004.
4700 \f
4701 Local Variables:
4702 mode: change-log
4703 left-margin: 8
4704 fill-column: 74
4705 version-control: never
4706 End: