2004-12-10 Michael Snyder <msnyder@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2004-12-10 Michael Snyder <msnyder@redhat.com>
2
3 * mn10300-tdep.c: New file. This is a re-implementation of
4 the mn10300 target back-end using the new frame api etc.
5 * mn10300-tdep.h: New file.
6 * config/mn10300/mn10300.mt: New file (or replace old file).
7 * configure.tgt: Add mn10300 target.
8
9 2004-12-10 Mark Kettenis <kettenis@gnu.org>
10
11 * configure.host (hppa*-*-hpux11*): Remove.
12 * config/pa/hpux11.mh: Remove file.
13
14 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
15 typo.
16
17 2004-12-10 Kris Warkentin <kewarken@qnx.com>
18
19 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
20 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
21 function and nto_set_target function.
22 (struct nto_target_ops): Put comments inline with struct. Add osabi
23 sniffer hook. Redefine macros to permit testing/assignment. Remove
24 nto_ prefix from members.
25 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
26 dynamically to support arbitrary root paths. Check for basename of
27 lib in search path and then check for absolute.
28 (nto_in_dynsym_resolve_code): New function.
29 (nto_core_sniffer): New function.
30 (regset_core_fns): Register core sniffer.
31 (nto_initialize_signals): New function.
32 (_initialize_nto_tdep): Move signal initialization code to above to
33 avoid initialization race conditions.
34 (nto_set_target): New function.
35 * nto-procfs.c: Minor formatting/indenting changes.
36 (procfs_is_nto_target): New function.
37 (procfs_open): Set nto_is_nto_target.
38 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
39 initialization race conditions.
40 (procfs_create_inferior): Resume inferior after creation.
41 * i386-nto-tdep.c: Declare i386_nto_target.
42 (init_i386nto_ops): Initialize i386_nto_target instead of
43 current_nto_target.
44 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
45 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
46 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi sniffer.
47
48 2004-12-10 Mark Kettenis <kettenis@gnu.org>
49
50 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
51 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
52 (hppa_hpux_init_abi): Reformat long line.
53
54 2004-12-09 Mark Kettenis <kettenis@gnu.org>
55
56 * hppa-hpux-tdep.c: Include "regset.h".
57 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
58 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
59 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
60 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
61 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
62 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
63 functions.
64 (hppa_hpux_regset): New variable.
65 (hppa_hpux_regset_from_core_section): New function.
66 (hppa_hpux_init_abi): Set regset_from_core_section.
67 (hppa_hpux_core_osabi_sniffer): New function.
68 (_initialize_hppa_hpux_tdep): Register
69 hppa_hpux_core_osabi_sniffer.
70 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
71 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
72
73 2004-12-09 Randolph Chung <tausq@debian.org>
74
75 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
76 text and data sections.
77 (pa64_current_sos): Also include the dld in the list of current shared
78 objects.
79 (pa64_solib_get_solib_by_pc): Update comments.
80 (pa64_solib_get_text_base): New function.
81 (pa64_solib_select): Set solib_get_text_base method.
82
83 2004-12-08 Daniel Jacobowitz <dan@debian.org>
84
85 * linux-thread-db.c (BUILD_THREAD): Delete.
86 (thread_get_info_callback): Include LWP ID in thread ID.
87 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
88 (lwp_from_thread): Use the LWP ID from the thread ID.
89
90 2004-12-07 Randolph Chung <tausq@debian.org>
91
92 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
93 register for both 32- and 64-bit targets.
94
95 2004-12-07 Randolph Chung <tausq@debian.org>
96
97 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
98 are unwinding through a dummy frame.
99
100 2004-12-07 Randolph Chung <tausq@debian.org>
101
102 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
103 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
104 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
105 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
106 if defined.
107
108 2004-12-07 Randolph Chung <tausq@debian.org>
109
110 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
111 unwinding from a frame with pc == 0.
112 (hppa_stub_frame_this_id): Likewise.
113 (hppa_stub_frame_prev_register): Only provide real values if the frame
114 cache is not NULL.
115
116 2004-12-07 Randolph Chung <tausq@debian.org>
117
118 * solib-som.c: New file.
119 * solib-som.h: New file.
120 * solib-pa64.c: New file.
121 * solib-pa64.h: New file.
122
123 2004-12-07 Mark Kettenis <kettenis@gnu.org>
124
125 * Makefile.in (inf-ttrace.o): Fix typo.
126
127 2004-12-07 Jim Blandy <jimb@redhat.com>
128
129 * remote.c (remote_threads_info, remote_current_thread): Use
130 strtoul to parse thread ID numbers.
131
132 2004-12-07 Mark Kettenis <kettenis@gnu.org>
133
134 * inf-ttrace.c: Include "gdbthread.h".
135 (inf_ttrace_num_lwps): New variable.
136 (inf_ttrace_num_lwps_in_syscall): Renamed from
137 inf_ttrace_num_threads_in_syscall.
138 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
139 TTEVT_LWP_TERMINATE events.
140 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
141 zero.
142 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
143 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
144 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
145 events.
146 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
147 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
148 TTEVT_LWP_TERMINATE events.
149 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
150 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
151 * Makefile.in (inf-ttrace.o): Update dependencies.
152
153 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
154 prototypes.
155 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
156 Make global. Remove HP-UX specific code. Use
157 frame_unwind_register_unsigned instead of
158 frame_unwind_register_signed.
159 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
160 Remove HP-UX specific code.
161 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
162 (hppa_frame_prev_register_helper): Set "flags" register to zero
163 for all unwound frames.
164 (hppa_gdbarch_init): Adjust.
165 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
166 (hppa_hpux_read_pc, hppa_hpux_write_pc)
167 (hppa_hpux_unwind_pc): New functions.
168 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
169
170 2004-12-07 Andreas Schwab <schwab@suse.de>
171
172 * main.c (long_options): Add entry for "-l".
173 (print_gdb_help): Add line for -l option.
174 * NEWS: Mention it.
175
176 2004-12-05 Randolph Chung <tausq@debian.org>
177
178 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
179 DEPRECATED_REGISTER_BYTE.
180
181 2004-12-05 Randolph Chung <tausq@debian.org>
182
183 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
184 records.
185
186 2004-12-05 Mark Kettenis <kettenis@gnu.org>
187
188 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
189 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
190
191 * hppa-hpux-tdep.c: Update copyright notice and year.
192
193 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
194
195 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
196 (get_field, put_field): Assert that the format is one we can handle.
197 Simplify logic accordingly.
198 (floatformat_normalize_byteorder): New function.
199 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
200 to normalize and select modified byte order. Pass modified byte order
201 to get_field.
202 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
203 Likewise.
204 (convert_doublest_to_floatformat): Select an appropriate intermediate
205 byte order if necessary. Always convert to the final format before
206 returning.
207
208 2004-12-04 Daniel Jacobowitz <dan@debian.org>
209
210 PR tui/1703
211 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
212 Suggested by Joshua Neuheisel.
213
214 2004-12-03 Randolph Chung <tausq@debian.org>
215
216 * gdbarch.sh (instruction_nullified): Delete.
217 * gdbarch.c: Regenerate.
218 * gdbarch.h: Regenerate.
219 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
220 nullified.
221 (hppa_unwind_pc): Likewise.
222 (hppa_instruction_nullified): Delete.
223 (hppa_gdbarch_init): Don't set instruction_nullified method.
224 * infrun.c (infwait_states): Remove infwait_nullified_state.
225 (handle_inferior_event): Remove handling of infwait_nullified_state.
226 Remove handling of nullified instructions.
227
228 2004-12-03 Mark Kettenis <kettenis@gnu.org>
229
230 * inf-ttrace.c: Include <sys/mman.h>.
231 (struct inf_ttrace_page): New.
232 (struct inf_ttrace_page_dict): New.
233 (inf_ttrace_num_threads_in_syscall)
234 (inf_ttrace_reenable_page_protections): New variables.
235 (inf_ttrace_enable_syscall_events)
236 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
237 (inf_ttrace_add_page, inf_ttrace_insert_page)
238 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
239 (inf_ttrace_enable_page_protections)
240 (inf_ttrace_disable_page_protections)
241 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
242 (inf_ttrace_can_use_hw_breakpoint)
243 (inf_ttrace_region_size_ok_for_hw_watchpoint)
244 (inf_ttrace_stopped_by_watchpoint): New functions.
245 (inf_ttrace_him): Remove unsused varaible `tts'.
246 (inf_ttrace_create_inferior): Add assertionts.
247 (inf_ttrace_mourn_inferior): Clear page dictionary.
248 (inf_ttrace_attach): Set initial event mask.
249 (inf_ttrace_detach): Reset number of threads in system call.
250 (inf_ttrace_wait): Deal with system call events.
251 (inf_ttrace_target): Initialize "hardware" watchpoint-related
252 parts of the target vector.
253 (_initialize_inf_ttrace): New prototype and function.
254
255 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
256 type of `gp' variable.
257
258 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
259
260 * README: Remove config.if from directory listing.
261
262 2004-12-01 Joel Brobecker <brobecker@gnat.com>
263
264 * alpha-tdep.c (alpha_register_name): Add comment.
265 (alpha_cannot_fetch_register): Exclude registers numbers which
266 are no longer used from the list of registers that can be fetched.
267 (alpha_cannot_store_register): Exclude registers numbers which
268 are no longer used from the list of registers that can be stored.
269 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
270 core_reg_mapping array.
271
272 2004-12-01 Joel Brobecker <brobecker@gnat.com>
273
274 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
275 the register value from the correct frame.
276
277 2004-11-30 Randolph Chung <tausq@debian.org>
278
279 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
280 (hppa_linux_in_dyncall): Check that we are inside the range of
281 $$dyncall, not necessarily at the first insn.
282 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
283 even if the pc does not point to the first insn of the trampoline.
284
285 2004-11-30 Randolph Chung <tausq@debian.org>
286
287 * breakpoint.c (break_at_finish_command): Delete.
288 (break_at_finish_command_1): Delete.
289 (break_at_finish_at_depth_command): Delete.
290 (break_at_finish_at_depth_command_1): Delete.
291 (tbreak_at_finish_command): Delete.
292 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
293 and bx commands.
294
295 2004-11-30 Andrew Cagney <cagney@gnu.org>
296
297 * config/nm-gnu.h: Delete file.
298 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
299
300 * config/nm-sysv4.h: Delete file.
301 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
302 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
303 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
304 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
305 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
306
307 2004-11-29 Andrew Cagney <cagney@gnu.org>
308
309 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
310 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
311 as can-commit architecture developers.
312
313 2004-11-29 Mark Kettenis <kettenis@gnu.org>
314
315 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
316 (sparc32_skip_prologue): Skip instructions that store arguments in
317 registers into their corresponding stack slots.
318
319 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
320 tm-solib.h.
321 * config/m68k/obsd.mh (NAT_FILE): Likewise.
322
323 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
324 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
325 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
326 sparc32nbsd_elf_init_abi. Remove duplicate code.
327
328 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
329 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
330 * config/sparc/nm-nbsd.h: Remove file.
331 * config/sparc/nm-nbsdaout.h: Remove file.
332
333 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
334 (sparc_xfer_partial): New function.
335 (sparc_target): Save value of to_xfer_partial from ptrace vector.
336 Set to_xfer_partial.
337
338 * fork-child.c (fork_inferior): Fork instead of vfork if
339 PRE_TRACE_FUN is non-null.
340
341 2004-11-24 Fred Fish <fnf@specifixinc.com>
342
343 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
344 compiler generated function calls made as part of a prologue.
345
346 2004-11-23 Mark Kettenis <kettenis@gnu.org>
347
348 * inf-ttrace.c: New file.
349 * inf-ttrace.h: New file.
350 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
351 Include "inf-ttrace.h".
352 (ss_mpsfu_high): Define to ss_tlsp if necessary.
353 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
354 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
355 ptrace systems.
356 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
357 instead of inf_ptrace_target.
358 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
359 * Makefile.in (inf_ttrace_h): New variable.
360 (hppa-hpux-nat.o): Update dependency.
361 (inf-ttrace.o): New dependency.
362 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
363
364 2004-11-23 Randolph Chung <tausq@debian.org>
365
366 * arch-utils.c (generic_instruction_nullified): New.
367 * arch-utils.h (generic_instruction_nullified): New.
368 * gdbarch.sh (instruction_nullified): New method.
369 * gdbarch.c: Regenerate.
370 * gdbarch.h: Regenerate.
371 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
372 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
373 new gdbarch method.
374 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
375 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
376 static. Rewrite to work directly off the passed regcache.
377 (hppa_gdbarch_init): Set instruction_nullified method.
378
379 2004-11-23 Joel Brobecker <brobecker@gnat.com>
380
381 * sparc-tdep.c (sparc_is_unimp_insn): New function.
382 (sparc32_frame_cache): For functions where there is no debugging
383 information to help us determine whether it's a struct-return
384 function or not, fallback on checking whether the instruction
385 at the return address is an "unimp" instruction or not.
386
387 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
388
389 * MAINTAINERS: Add myself to write after approval section.
390
391 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
392 hpux-thread.c to suppress children from running.
393 (hppa_hpux_child_can_run): New function.
394 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
395 * hpux-thread.c: Include string.h and hppa-tdep.h.
396 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
397 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
398 (hpux_thread_store_registers): Replace deprecated_registers with
399 calls to regcache_raw_read.
400 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
401
402 2004-11-21 Mark Kettenis <kettenis@gnu.org>
403
404 * sparc64fbsd-nat.c: Update copyright year.
405 (_initialize_sparc64fbsd_nat): Construct and add target vector.
406 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
407 inftarg.o.
408
409 2004-11-21 Daniel Jacobowitz <dan@debian.org>
410
411 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
412
413 2004-11-21 Daniel Jacobowitz <dan@debian.org>
414
415 * linux-nat.c (my_waitpid): New function.
416 (linux_test_for_tracefork): Make more robust and verbose. Take
417 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
418 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
419 argument. Update calls to linux_test_for_tracefork.
420 (linux_enable_event_reporting, child_follow_fork)
421 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
422 (child_insert_exec_catchpoint): Update calls to
423 linux_supports_tracefork and linux_supports_tracevforkdone.
424
425 2004-11-21 Daniel Jacobowitz <dan@debian.org>
426
427 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
428 (value_subscripted_rvalue): Likewise.
429 * valops.c (search_struct_field, value_slice): Likewise.
430
431 2004-11-21 Mark Kettenis <kettenis@gnu.org>
432
433 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
434 Reorder includes a bit. Fix comment.
435 * Makefile.in (inf-ptrace.o): Update dependencies.
436
437 2004-11-21 Andreas Schwab <schwab@suse.de>
438
439 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
440 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
441 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
442 to glibc_skip_solib_resolver.
443 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
444 solib-legacy.o.
445 * Makefile.in (m68klinux-tdep.o): Update dependencies.
446
447 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
448
449 * infttrace.h (ttrace_write_reg_64): Add prototype.
450 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
451 expression.
452 (store_inferior_registers): Correct formatting. Replace uses of
453 deprecated_registers with calls to regcache_raw_read,
454 regcache_raw_write_part and regcache_raw_read_part.
455
456 2004-11-21 Mark Kettenis <kettenis@gnu.org>
457
458 * config/pa/hppahpux.mh: Remove file.
459 * config/pa/hpux1020.mh: Remove file.
460
461 2004-11-20 Andreas Schwab <schwab@suse.de>
462
463 * configure.host: Set host floatformat for m68k.
464
465 2004-11-20 Eli Zaretskii <eliz@gnu.org>
466
467 * config/djgpp/fnchange.lst: Resolve file-name clash between
468 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
469
470 2004-11-20 Mark Kettenis <kettenis@gnu.org>
471
472 * hppa-hpux-nat.c: New file.
473 * config/pa/hpux.mh (NATDEPFILES): New file.
474 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
475 (hppa-hpux-nat.o): New dependency.
476 * configure.host: Remove hppa*-*-hpux10.20.
477 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
478
479 * inf-ptrace.c: Fix coding style.
480
481 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
482 * infptrace.c (call_ptrace): Simply call ptrace with four
483 arguments.
484
485 * dbxread.c (process_one_symbol): Fix a few coding standard
486 issues. Improve code formatting.
487
488 * dbxread.c: Include "gdb_string.h".
489 (record_minimal_symbol, read_ofile_symtab): Replace
490 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
491 * Makefile.in (dbxread.o): Update dependencies.
492
493 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
494 of bytes read for aligned LEB128 encodings.
495
496 2004-11-19 Mark Kettenis <kettenis@gnu.org>
497
498 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
499 parse_and_eval_address to u_long before converting it to a pointer
500 type.
501 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
502 ps_strings from int to u_long.
503 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
504 u_long instead of CORE_ADDR.
505
506 2004-11-18 Mark Kettenis <kettenis@gnu.org>
507
508 * dbxread.c (process_one_symbol): Do not adjust address of first
509 N_SLINE stab for a function for code generated by non-GCC
510 compilers.
511
512 2004-11-18 Kevin Buettner <kevinb@redhat.com>
513
514 * solib-null.c: New file.
515
516 2004-11-17 Andrew Cagney <cagney@gnu.org>
517
518 * MAINTAINERS: Drop MIPS and remote.
519
520 2004-11-15 Andrew Cagney <cagney@gnu.org>
521
522 * findvar.c (value_of_register): Set the frame ID.
523 * value.c (value_primitive_field): Copy the frame ID.
524 * valops.c (value_assign): Simplify lval_register case, there's
525 always a frame.
526
527 2004-11-14 Daniel Jacobowitz <dan@debian.org>
528
529 * Makefile.in (mips-linux-tdep.o): Update dependencies.
530 * mips-linux-tdep.c: Include "regcache.h".
531 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
532
533 2004-11-14 Daniel Jacobowitz <dan@debian.org>
534
535 * Makefile.in (linux-thread-db.o): Fix typo in last change.
536
537 2004-11-14 Daniel Jacobowitz <dan@debian.org>
538
539 * linux-thread-db.c: New file, renamed from thread-db.c.
540 * thread-db.c: Remove.
541 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
542 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
543 to linux-thread-db.o.
544 * config/arm/linux.mh (NATDEPFILES): Likewise.
545 * config/i386/linux.mh (NATDEPFILES): Likewise.
546 * config/i386/linux64.mh (NATDEPFILES): Likewise.
547 * config/ia64/linux.mh (NATDEPFILES): Likewise.
548 * config/m32r/linux.mh (NATDEPFILES): Likewise.
549 * config/m68k/linux.mh (NATDEPFILES): Likewise.
550 * config/mips/linux.mh (NATDEPFILES): Likewise.
551 * config/pa/linux.mh (NATDEPFILES): Likewise.
552 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
553 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
554 * config/s390/s390.mh (NATDEPFILES): Likewise.
555 * config/sparc/linux.mh (NATDEPFILES): Likewise.
556 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
557
558 2004-11-13 Andrew Cagney <cagney@gnu.org>
559
560 * config/i386/i386lynx.mh: Delete file.
561 * config/i386/i386lynx.mt: Delete file.
562 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
563 * i386ly-tdep.c: Delete.
564
565 * config/tm-lynx.h: Delete, inline contents ...
566 * config/rs6000/tm-rs6000ly.h: ... here.
567
568 * config/tm-sysv4.h: Delete file, inlining contents.
569 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
570 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
571 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
572
573 * regcache.h (deprecated_register_valid): Delete.
574 (deprecated_registers): Delete.
575 * regcache.c (deprecated_register_valid): Delete.
576 (deprecated_registers): Delete.
577 (deprecated_read_register_byte, _initialize_regcache)
578 (deprecated_write_register_bytes, build_regcache): Update.
579 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
580 remote-sds.o.
581 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
582 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
583
584 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
585 v850-*-* under removed.
586 * configure.host: Delete ns32k-*-netbsd*.
587 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
588 ns32k-*-netbsd*, and v850*-*-*.
589 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
590 "Deleted"
591 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
592 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
593 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
594 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
595 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
596 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
597 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
598 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
599 * v850-tdep.c: Delete.
600
601 2004-11-13 Joel Brobecker <brobecker@gnat.com>
602
603 * irix5-nat.c (fetch_core_registers): Replace use of
604 deprecated_registers by equivalent code.
605
606 2004-11-13 Joel Brobecker <brobecker@gnat.com>
607
608 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
609 with equivalent code.
610 (fill_fpregset): Likewise.
611
612 2004-11-13 Andrew Cagney <cagney@gnu.org>
613
614 * MAINTAINERS: Do not list "Deleted" architectures.
615
616 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
617 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
618 sparc-*-vxworks*.
619 * NEWS: Mention that vxworks was deleted.
620 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
621 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
622 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
623 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
624 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
625 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
626 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
627 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
628 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
629 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
630 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
631 * remote-vxmips.c, remote-vx.c: Delete.
632 * remote-vx68.c: Delete.
633 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
634 * config/m68k/os68k.mt, ada-lang.h: Ditto.
635 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
636 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
637
638 2004-11-13 Eli Zaretskii <eliz@gnu.org>
639
640 * config/i386/xm-go32.h: Don't include fopen-bin.h.
641 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
642
643 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
644 branch that doesn't define CRLF_SOURCE_FILES; always use
645 binary-mode open.
646 (print_source_lines_base, forward_search_command)
647 (reverse_search_command): Enable the code that accepts DOS-style
648 CRLF line endings on all platforms (this removes the need for
649 CRLF_SOURCE_FILES).
650
651 * defs.h: Fix wording of the comment before FOPEN_RB.
652 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
653
654 * config/djgpp/fnchange.lst: Group renames for opcode directory
655 together.
656
657 * config/djgpp/djconfig.sh: Replace file names that don't exist
658 anymore with existing files, for checking the unpacked
659 distribution.
660
661 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
662 Export pre-cooked values in configure-* targets that begin with
663 "@test -f stage_last".
664
665 2004-11-12 Andrew Cagney <cagney@gnu.org>
666
667 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
668 * value.h (struct value): Update comment.
669 * valops.c (value_assign): Fold lval_reg_fame_relative into
670 lval_register.
671 * findvar.c (value_from_register, locate_var_value): Ditto.
672
673 2004-11-12 Randolph Chung <tausq@debian.org>
674
675 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
676 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
677 (write_exp_msymbol): Remove conditional check for symbols starting
678 with $. Update comments.
679
680 2004-11-12 Randolph Chung <tausq@debian.org>
681
682 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
683 so_lib_thread_start_addr.
684 * pa64solib.h (so_list): Forward declare.
685 (pa64_solib_thread_start_addr): Prototype.
686 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
687 (no_shared_libraries): Remove.
688 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
689 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
690 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
691 the elf solib handler to find the start address.
692
693 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
694 files to the target makefile.
695 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
696 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
697 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
698
699 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
700 files for symbol reading and shared library handling here.
701 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
702 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
703 without bringing in 64-bit support.
704
705 2004-11-12 Andrew Cagney <cagney@gnu.org>
706
707 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
708 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
709 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
710 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
711 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
712 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
713 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
714
715 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
716 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
717 (VALUE_REGNUM): Define.
718 (struct value): Delete location.regnum, rename "regno" to
719 "regnum".
720 * value.c, valops.c, valarith.c, findvar.c: Update.
721
722 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
723 (VALUE_BITPOS): Delete.
724 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
725 * value.c (value_type, value_offset, value_bitpos)
726 (value_bitsize): New functions. Update references.
727 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
728 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
729 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
730 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
731 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
732 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
733 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
734 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
735 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
736
737 2004-11-12 Andrew Cagney <cagney@gnu.org>
738
739 * cris-tdep.c (cris_register_offset): Delete, never called.
740 (cris_spec_reg_applicable): Delete cris_ver_sim.
741 * MAINTAINERS: List d10v as OBSOLETE.
742 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
743 FOPEN_WB et.al., defined by "fopen-bin.h".
744
745 2004-11-12 Randolph Chung <tausq@debian.org>
746
747 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
748 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
749 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
750 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
751
752 2004-11-12 Mark Kettenis <kettenis@jive.nl>
753
754 * tui/tui-io.c: Don't include "terminal.h".
755 * Makefile.in (tui-io.o): Update dependencies.
756
757 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
758
759 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
760 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
761 set_gdbarch_regset_from_core_section for core file support.
762 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
763 New functions.
764
765 2004-11-11 Randolph Chung <tausq@debian.org>
766
767 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
768 stop_after_branch parameter and use it to determine if we should look
769 at the delay slot of the first branch insn to find prologue insns.
770 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
771 (hppa_frame_cache): Likewise.
772
773 2004-11-11 Randolph Chung <tausq@debian.org>
774
775 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
776 register so that it can be unwound from anywhere in the prologue.
777
778 2004-11-10 msnyder <msnyder@redhat.com>
779
780 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
781 must invalidate lr_reg (so we don't try to save it again).
782 Ditto for cr_offset and cr_reg.
783
784 2004-11-05 Jon Beniston <jon@beniston.com>
785
786 Committed by Andrew Cagney.
787 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
788 when an unexpected packet is received, as the target stubs
789 continually retransmit the same packet until ACKed.
790
791 2004-11-10 Randolph Chung <tausq@debian.org>
792
793 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
794 frame's type.
795
796 2004-11-10 Randolph Chung <tausq@debian.org>
797
798 * blockframe.c (inside_entry_func): Move to .....
799 * frame.c (inside_entry_func): ... here, and make static.
800 (backtrace_past_entry): New flag.
801 (get_prev_frame): Stop backtrace at the entry function if enabled
802 by flag. Update comments.
803 (_initialize_frame): Add command to set backtrace_past_entry flag.
804 * defs.h (inside_entry_func): Remove prototype.
805
806 2004-11-10 Mark Kettenis <kettenis@gnu.org>
807
808 * dwarf2read.c: Fix formatting.
809
810 2004-11-10 Andrew Cagney <cagney@gnu.org>
811
812 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
813 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
814 macros with function declarations.
815 * value.c (coerce_ref, coerce_array, coerce_number)
816 (coerce_enum): New functions.
817 (value_as_long, value_as_address): Update.
818 * ada-lang.c (ada_coerce_ref, ada_value_binop)
819 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
820 * jv-lang.c (evaluate_subexp_java): Update.
821 * valarith.c (value_less, value_neg, value_complement)
822 (value_binop, value_add, value_subscript, value_x_binop)
823 (value_logical_not, value_sub): Update.
824 * valops.c (check_field, value_struct_elt, value_ind)
825 (value_find_oload_method_list, value_cast, value_assign): Update.
826 * eval.c (evaluate_subexp_standard): Update.
827
828 2004-11-10 Mark Kettenis <kettenis@gnu.org>
829
830 * mips-tdep.c (mips32_relative_offset): Change return type to
831 LONGEST, change argument type to ULONGEST. Fix sign-extension.
832
833 2004-11-10 Randolph Chung <tausq@debian.org>
834
835 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
836 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
837 (hppa_fetch_pointer_argument): Likewise.
838 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
839 deprecated_read_memory_nobpt.
840 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
841 add_set_cmd sequence with add_setshow_boolean_cmd.
842
843 2004-11-09 Andrew Cagney <cagney@gnu.org>
844
845 GDB 6.3 released from GDB 6.3 branch.
846
847 2004-11-09 Andrew Cagney <cagney@gnu.org>
848
849 * values.c: Rename to ...
850 * value.c: ..., new file.
851 * Makefile.in: Update.
852
853 2004-11-09 Daniel Jacobowitz <dan@debian.org>
854
855 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
856 size.
857
858 2004-11-09 Andrew Cagney <cagney@gnu.org>
859
860 * TODO: Delete.
861
862 * value.h (struct value): Delete field bfd_section.
863 (VALUE_BFD_SECTION): Delete macro.
864 (COERCE_REF): Update.
865 (value_at, value_at_lazy): Delete asection parameter.
866 * printcmd.c (print_formatted, x_command): Update.
867 (do_examine): Delete asection parameter.
868 (next_section): Delete variable.
869 * valops.c (value_cast, value_at, value_at_lazy)
870 (value_coerce_function, value_addr, value_ind, value_string)
871 (find_rt_vbase_offset, value_full_object): Update.
872 * hpacc-abi.c (hpacc_virtual_fn_field)
873 (hpacc_value_rtti_type): Update.
874 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
875 (gnuv3_baseclass_offset): Update.
876 * f-valprint.c (f_val_print): Update.
877 * c-valprint.c (c_val_print): Update.
878 * p-valprint.c (pascal_val_print): Update.
879 * jv-valprint.c (java_value_print): Update.
880 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
881 * ada-lang.c (ada_value_primitive_packed_val)
882 (ada_evaluate_subexp): Update.
883 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
884 * expprint.c (print_subexp_standard): Update.
885 * infcall.c (call_function_by_hand): Update.
886 * valarith.c (value_add): Update.
887 * eval.c (evaluate_subexp_standard): Update.
888 * values.c (allocate_value, value_copy, value_static_field): Update.
889 * findvar.c (read_var_value, locate_var_value): Update.
890
891 2004-11-09 Andrew Cagney <cagney@gnu.org>
892
893 * i386-linux-tdep.c: Include "dwarf2-frame.h".
894 * Makefile.in: Update all dependencies.
895
896 2004-11-08 Andrew Cagney <cagney@gnu.org>
897
898 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
899 (sentinel_frame_unwinder): Add the prev_pc method.
900 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
901 available. Do not handle the sentinel-frame case.
902 * frame-unwind.h (frame_prev_register_ftype): Define.
903 (struct frame_unwind): Add prev_pc;
904
905 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
906
907 * configure.in: Check for ncurses/term.h.
908 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
909 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
910 * tui/tui.c: Don't include term.h.
911 * configure, config.in: Rebuilt.
912
913 2004-11-08 Mark Kettenis <kettenis@gnu.org>
914
915 * m68kbsd-nat.c: Include "inf-ptrace.h".
916 (_initialize_m68kbsd_nat): Fix pasto.
917 * Makefile.in (m68kbsd-nat.o): Update dependencies.
918
919 2004-11-08 Randolph Chung <tausq@debian.org>
920
921 * infrun.c (debug_infrun): New variable.
922 (resume, proceed, wait_for_inferior): Annotate with debug messages.
923 (handle_inferior_event, keep_going): Likewise.
924 (_initialize_infrun): Register "set debug infrun" command.
925
926 2004-11-08 Andreas Schwab <schwab@suse.de>
927
928 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
929 PTRACE_EVENT_VFORKDONE.
930 (child_follow_fork): Adjust.
931
932 2004-11-08 Andrew Cagney <cagney@gnu.org>
933
934 * README: Refer to 6.3, not 6.2, update directory listing droppng
935 references to intl/ and mmalloc/.
936 * PROBLEMS: Refer to 6.3 not 6.2.
937
938 * PROBLEMS: Delete no-longer applicable problems.
939
940 2004-11-07 Andrew Cagney <cagney@redhat.com>
941 Daniel Jacobowitz <dan@debian.org>
942 Roland McGrath <roland@redhat.com>
943
944 * Makefile.in (symfile-mem.o): Update dependencies.
945 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
946 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
947 * inf-ptrace.c (inf_ptrace_attach): Call
948 observer_notify_inferior_created.
949 * inftarg.c (child_attach): Likewise.
950 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
951 (symbol_file_add_from_memory): Take NAME argument. Use it for
952 the new BFD's filename.
953 (add_symbol_file_from_memory_command): Update call to
954 symbol_file_add_from_memory.
955 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
956 (symbol_file_add_from_memory_wrapper): New.
957 (_initialize_symfile_mem): Register add_vsyscall_page as an
958 inferior_created observer.
959
960 2004-11-07 Mark Kettenis <kettenis@gnu.org>
961
962 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
963 fetch_inferior_registers. Make static.
964 (m68kbsd_store_inferior_registers): Rename from
965 store_inferior_registers. Make static.
966 (_initialize_m68kbsd_nat): Construct and add target vector.
967 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
968 inftarg.o. Add inf-ptrace.o.
969 (NAT_FILE): Set to tm-solib.h.
970 (LOADLIBES): New variable.
971 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
972 inftarg.o. Add inf-ptrace.o.
973 (NAT_FILE): Delete variable.
974 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
975 inftarg.o. Add inf-ptrace.o.
976 (NAT_FILE): Set to tm-solib.h.
977 * config/m68k/nm-nbsdaout.h: Remove file.
978
979 2004-11-07 Daniel Jacobowitz <dan@debian.org>
980
981 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
982 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
983 (dwarf2_signal_frame_unwind): New.
984 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
985 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
986
987 2004-11-07 Mark Kettenis <kettenis@gnu.org>
988
989 * Makefile.in (mips64obsd-tdep.o): Fix typo.
990
991 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
992 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
993 to only include the structure members we actually need.
994 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
995 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
996 only include the structure members we actually need.
997 (mipsnbsd_init_abi): Update.
998
999 * mips64obsd-nat.c: Include "mips-tdep.h".
1000 (MIPS64OBSD_NUM_REGS): Remove define.
1001 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1002 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1003 floating-point registers correctly.
1004 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1005
1006 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1007 "gdb_assert.h".
1008 (mips64obsd_sigframe_init): New function.
1009 (mips64obsd_sigframe): New variable.
1010 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1011 unwinder.
1012 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1013
1014 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1015
1016 * alpha-mdebug-tdep.c: #include mdebugread.h.
1017 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1018 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1019
1020 2004-11-05 Andrew Cagney <cagney@gnu.org>
1021
1022 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1023 CFI and the init_reg method leave the register unspecified.
1024 Include the register name in the "Incomplete CFI data" complaint.
1025 Supress leading zeros in the address.
1026
1027 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1028
1029 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1030 skipping a personality routine in a CIE augmentation.
1031
1032 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1033
1034 * defs.h (fatal, vfatal): New function prototypes.
1035 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1036 via catch_errors.
1037 (backtrace_command): Change to call backtrace_command_stub via
1038 catch_errors instead of calling backtrace_command_1 directly.
1039 (backtrace_full_command): Ditto.
1040 * utils.c (error_stream_1): New static function.
1041 (verror): Change to call error_stream_1 instead of error_stream.
1042 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1043 (vfatal, fatal): New functions.
1044
1045 2004-11-05 Andrew Cagney <cagney@gnu.org>
1046
1047 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1048 when not using selected frame.
1049
1050 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1051
1052 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1053 personality routine in a CIE augmentation.
1054
1055 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1056
1057 * stack.c (set_current_sal_from_frame): New function.
1058 (print_args_stub): Use it.
1059 (print_frame_info): Don't set sal here.
1060
1061 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1062
1063 * dwarf2-frame.c (read_encoded_value): Change type of third
1064 argument to `unsigned char *'. Add support for LEB128 encodings.
1065
1066 2004-11-04 Jim Blandy <jimb@redhat.com>
1067
1068 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1069 prevent cross-objfile references.
1070 (make_cv_type): Doc fix. Don't create cross-objfile references,
1071 even for stub types.
1072 (replace_type): Add assertion to prevent cross-objfile references.
1073 (check_typedef): Never resolve a stub type by copying over a type
1074 from another file.
1075
1076 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1077
1078 * Makefile.in (m32r-tdep.o): Update dependencies.
1079 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1080 ABI-specific overrides.
1081
1082 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1083
1084 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1085 unnecessary parallel execution bit.
1086 (m32r_memory_remove_breakpoint): Ditto.
1087 (m32r_breakpoint_from_pc): Update.
1088
1089 2004-11-03 Randolph Chung <tausq@debian.org>
1090
1091 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1092 frame_func_unwind to locate the unwind entry.
1093 (hppa_frame_this_id): Likewise.
1094
1095 2004-11-03 Andrew Cagney <cagney@gnu.org>
1096
1097 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1098 packet, obsolete configurations, end-of-life deprecated_registers.
1099
1100 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1101
1102 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1103 encodings as well as unsigned encodings.
1104
1105 2004-11-02 Andrew Cagney <cagney@gnu.org>
1106
1107 * value.h (COERCE_VARYING_ARRAY): Delete.
1108 * valops.c (value_cast, value_slice): Delete use.
1109 * valarith.c (value_subscript, value_concat): Delete use.
1110
1111 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1112
1113 * NEWS: GDB understands GNAT Ada.
1114
1115 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1116
1117 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1118 (amd64-sol2-tdep.o): Add dependencies.
1119 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1120 config/i386/sol2-64.mt: New files.
1121 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1122 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1123 (supply_gregset): Correct order of arguments to
1124 amd64_supply_native_gregset.
1125 (fill_gregset): Correct order of arguments to
1126 amd64_collect_native_gregset.
1127 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1128 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1129 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1130 for definition of NEW_PROC_API.
1131 * configure: Regenerate.
1132
1133 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1134
1135 * MAINTAINERS (Write After Approval): Add myself.
1136
1137 2004-11-01 Andrew Cagney <cagney@gnu.org>
1138
1139 * configure.tgt: Mark d10v-*-* as obsolete.
1140 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1141
1142 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1143
1144 * values.c (modify_field): Correct handling of bit-fields that
1145 don't fit in 32 bits. Use unsigned operations throughout and
1146 simplify the code a bit. Document preconditions.
1147
1148 2004-10-31 Andrew Cagney <cagney@gnu.org>
1149
1150 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1151 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1152 (in_plt_section): Delete.
1153
1154 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1155 (mips_gdbarch_init): Do not set same.
1156
1157 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1158 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1159
1160 * gdbarch.sh (in_solib_call_trampoline): Delete.
1161 * gdbarch.h, gdbarch.c: Re-generate.
1162
1163 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1164 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1165 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1166 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1167 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1168
1169 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1170
1171 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1172 (mipsnbsd_fetch_inferior_registers): Rename from
1173 fetch_inferior_registers. Make static.
1174 (mipsnbsd_store_inferior_registers): Rename from
1175 store_inferior_registers. Make static.
1176 (_initialize_mipsnbsd_nat): New function and prototype.
1177 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1178 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1179 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1180 inf-ptrace.o.
1181
1182 2004-10-31 Andrew Cagney <cagney@gnu.org>
1183
1184 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1185 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1186 delete corresponding unused function.
1187 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1188 in_solib_call_trampoline.
1189 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1190 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1191 * config/mips/tm-nbsd.h: Ditto.
1192 * config/arm/tm-linux.h: Ditto.
1193 * config/mips/tm-linux.h: Ditto.
1194
1195 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1196 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1197 in_solib_call_trampoline, delete corresponding unused function.
1198 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1199 (vaxnbsd_aout_init_abi): Ditto.
1200 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1201 (sparc32nbsd_aout_init_abi): Ditto.
1202 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1203 (ppc_linux_init_abi): Ditto.
1204 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1205 (ns32knbsd_init_abi_aout): Ditto.
1206 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1207 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1208 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1209 (m68kbsd_aout_init_abi): Ditto.
1210 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1211 (i386_cygwin_init_abi): Ditto.
1212 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1213 (i386bsd_init_abi): Ditto.
1214
1215 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1216 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1217 isn't used by this architecture.
1218 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1219 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1220 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1221 * s390-tdep.c (s390_gdbarch_init): Ditto.
1222 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1223 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1224 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1225 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1226 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1227 * amd64-tdep.c (amd64_init_abi): Ditto.
1228
1229 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1230 in_solib_call_trampoline to its default value of
1231 generic_in_solib_call_trampoline.
1232 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1233 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1234 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1235 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1236 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1237 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1238
1239 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1240
1241 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1242
1243 * config/mips/tm-mips.h: Delete file.
1244 * remote-mips.c: Delete tm-mips.h from comment.
1245 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1246 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1247 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1248 * config/mips/tm-linux.h: Don't include tm-mips.h.
1249 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1250 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1251 * config/mips/tm-wince.h: Don't include.
1252
1253 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1254 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1255 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1256 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1257
1258 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1259 * mdebugread.c (ecoff_relocate_efi): Delete function.
1260 * objfiles.c (objfile_relocate): Delete #ifdef
1261 MDEBUG_EFI_SYMBOL_NAME code.
1262
1263 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1264 Andrew Cagney <cagney@gnu.org>
1265
1266 * gdbarch.sh (single_step_through_delay): Add.
1267 * gdbarch.h, gdbarch.c: Re-generate.
1268 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1269 (mips_step_skips_delay): Delete.
1270 * mips-tdep.c (mips_single_step_through_delay): Replace
1271 mips_step_skips_delay.
1272 (mips_gdbarch_init): Set single_step_through_delay.
1273 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1274
1275 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1276
1277 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1278 from TRAMP_FRAME frame type.
1279
1280 2004-10-31 Andrew Cagney <cagney@gnu.org>
1281
1282 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1283
1284 * mips-tdep.c (mips_ignore_helper): Delete.
1285 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1286 * infrun.c (handle_inferior_event): Delete #ifdef
1287 DEPRECATED_IGNORE_HELPER_CALL code.
1288
1289 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1290
1291 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1292
1293 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1294 (fill_fpregset): Do not compile for 64-bit systems.
1295 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1296 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1297 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1298
1299 2004-10-30 Andrew Cagney <cagney@gnu.org>
1300
1301 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1302 (struct mdebug_extra_func_info): Define.
1303 * config/alpha/tm-alpha.h: Delete same.
1304 * config/mips/tm-mips.h: Delete same.
1305 * mdebugread.c: Delete same.
1306 * Makefile.in: Update dependencies.
1307 * mips-mdebug-tdep.c: Include "mdebugread.h".
1308
1309 * objfiles.c: Include "mdebugread.h".
1310 * mdebugread.c: Include "mdebugread.h".
1311 (ecoff_relocate_cfi): Delete.
1312 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1313 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1314 * mdebugread.h (ecoff_relocate_efi): New file.
1315 * Makefile.in: Update dependencies.
1316
1317 * mips-tdep.c (struct frame_extra_info): Delete.
1318 (temp_proc_desc): Delete.
1319
1320 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1321 MIPS_EFI_SYMBOL_NAME.
1322 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1323 (struct mdebug_extra_func_info): Replace struct
1324 alpha_extra_func_info and alpha_extra_func_info_t.
1325 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1326 MIPS_EFI_SYMBOL_NAME.
1327 (struct mdebug_extra_func_info): Replace struct
1328 alpha_extra_func_info and alpha_extra_func_info_t.
1329 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1330 * mdebugread.c, alpha-mdebug-tdep.c:
1331
1332 Suggested by Mark Kettenis.
1333 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1334 fields frame_adjust and high_addr.
1335 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1336 (non_heuristic_proc_desc): Delete references.
1337
1338 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1339 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1340 * mips-tdep.c: Update.
1341
1342 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1343 (MIPS_LAST_EMBED_REGNUM): Add.
1344 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1345 (LAST_EMBED_REGNUM): Delete.
1346 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1347
1348 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1349 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1350 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1351 * mips-linux-nat.c: Update.
1352
1353 * mips-tdep.h: Add comments on registers.
1354 (MIPS_UNUSED_REGNUM): Define.
1355 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1356 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1357 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1358 * mips-linux-nat.c, remote-mips.c: Update.
1359
1360 * config/mips/tm-mips.h (t_insn): Delete.
1361 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1362 Replace t_insn with ULONGEST.
1363
1364 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1365
1366 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1367 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1368 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1369 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1370 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1371 (mipsnbsd_core_osabi_sniffer): New function.
1372 (mipsnbsd_init_abi): Set regset_from_core_section.
1373 (_initialize_mipsnbsd_tdep): Remove calls to
1374 deprecated_add_core_fns.
1375 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1376 (mipsnbsd_regset_from_core_section): New functions.
1377 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1378 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1379
1380 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1381 Remove optimization for DEPRECATED_FP_REGNUM.
1382
1383 2004-10-30 Andrew Cagney <cagney@gnu.org>
1384
1385 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1386 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1387 (alpha_setup_arbitrary_frame): Delete.
1388 * mips-tdep.c (setup_arbitrary_frame): Delete.
1389 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1390 (setup_arbitrary_frame): Delete.
1391 * stack.c (parse_frame_specification_1): When specified, call
1392 create_new_frame with two parameters. Delete #ifdef
1393 SETUP_ARBITRARY_FRAME.
1394
1395 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1396 (MIPS_INSTLEN): Delete.
1397 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1398 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1399 * remote-mips.c, mips-tdep.c: Update.
1400
1401 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1402 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1403 * mips-tdep.c (mips_mdebug_frame_cache)
1404 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1405 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1406 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1407 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1408 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1409 (mips_gdbarch_init): Do not append mdebug sniffers.
1410 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1411 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1412 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1413 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1414 * Makefile.in: Update dependencies.
1415
1416 * mips-tdep.h (mips_abi_regsize): Declare.
1417 * mips-tdep.c (mips_abi_regsize): Make non-static.
1418
1419 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1420 (make_mips16_addr): Delete.
1421
1422 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1423
1424 * i386-sol2-nat.c: New file.
1425 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1426 i386-sol2-tdep.c.
1427 (i386-sol2-nat.o): Update dependencies.
1428 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1429 i386-sol2-nat.o.
1430
1431 2004-10-30 Andrew Cagney <cagney@gnu.org>
1432
1433 Total breakage identified by Joel Brobecker.
1434 * mips-tdep.c (after_prologue): Delete.
1435 (mips_skip_prologue): Use skip_prologue_using_sal.
1436 (heuristic_proc_desc): Delete, unused.
1437
1438 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1439
1440 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1441 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1442 Cleanup coding style.
1443
1444 2004-10-30 Andrew Cagney <cagney@gnu.org>
1445
1446 * mips-tdep.h (mips_pc_is_mips16): Declare.
1447 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1448 non-static. Update calls.
1449
1450 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1451 * command.h (add_setshow_enum_cmd): Declare.
1452 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1453
1454 * mips-tdep.c (_initialize_mips_tdep): Use
1455 add_setshow_zinteger_cmd.
1456
1457 * mips-tdep.c (mips_eabi_extract_return_value)
1458 (mips_o64_extract_return_value, mips_o64_store_return_value)
1459 (return_value_location, mips_eabi_reg_struct_has_addr)
1460 (mips_eabi_use_struct_convention)
1461 (mips_eabi_store_return_value): Delete.
1462 (mips_eabi_store_return_value): New function.
1463 (mips_eabi_return_value): New function.
1464 (mips_gdbarch_init): For O64 and EABI, delete
1465 extract_return_value, store_return_value, use_struct_convention
1466 and reg_struct_has_addr, add return_value.
1467
1468 * mips-tdep.c (read_signed_register): Use
1469 regcache_cooked_read_signed.
1470
1471 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1472
1473 * mipsread.c: Cleanup coding style.
1474 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1475 (mipscoff_symfile_finish): Remove prototypes.
1476
1477 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1478
1479 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1480 (mips_mdebug_frame_cache, mips16_scan_prologue)
1481 (mips32_scan_prologue, mips_stub_frame_cache)
1482 (heuristic_proc_start, heuristic_proc_desc)
1483 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1484 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1485 (mips_o32_return_value, mips_o64_push_dummy_call)
1486 (mips_step_skips_delay, mips_skip_trampoline_code)
1487 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1488 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1489 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1490 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1491 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1492 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1493 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1494 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1495 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1496 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1497 ZERO_REGNUM.
1498 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1499 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1500 ZERO_REGNUM.
1501 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1502 A0_REGNUM.
1503 * mipsnbsd-nat.c: Include "mips-tdep.h".
1504 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1505 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1506
1507 2004-10-29 Andrew Cagney <cagney@gnu.org>
1508
1509 * stack.c (parse_frame_specification_1): New function based on
1510 parse_frame_specification. Add message and selected_frame_p
1511 paramters. Truely always return non-NULL.
1512 (parse_frame_specification): Call parse_frame_specification_1.
1513 (frame_info): Update. Eliminate target_has_stack check.
1514 (select_frame_command): Update.
1515
1516 2004-10-29 Andrew Cagney <cagney@gnu.org>
1517
1518 * frame.h (get_selected_frame): Add message parameter.
1519 * frame.c (get_selected_frame): Add and use message parameter.
1520 * stack.c (current_frame_command, return_command, locals_info)
1521 (catch_info, args_info, up_silently_base, down_silently_base): Use
1522 get_selected_frame with an explicit message.
1523 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1524 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1525 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1526 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1527 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1528 * breakpoint.c: Update.
1529
1530 2004-10-29 Andrew Cagney <cagney@gnu.org>
1531
1532 * trad-frame.c (trad_frame_get_prev_register): Use
1533 frame_unwind_register instead of frame_register_unwind, do not
1534 recurse the register's location.
1535 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1536 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1537 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1538 * sh-tdep.c (sh_frame_prev_register): Ditto.
1539 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1540 * i386-tdep.c (i386_frame_prev_register): Ditto.
1541 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1542 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1543
1544 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1545
1546 * proc-events.c: Fix several coding-style issues. Consistently
1547 use #ifdef instead of #if defined().
1548 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1549 ARRAY_SIZE.
1550 (_initialize_proc_events): New prototype.
1551
1552 * proc-why.c: Fix several coding-style issues.
1553 (proc_prettyfprint_why): Use ARRAY_SIZE.
1554
1555 2004-10-27 Jim Blandy <jimb@redhat.com>
1556
1557 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1558 manner independent of the host byte order.
1559
1560 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1561
1562 * mips-tdep.c (id_delayed): Remove prototype.
1563
1564 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1565
1566 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1567 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1568 to enum with register numbers.
1569 (enum mips_insn_size): New enum.
1570
1571 2004-10-26 Andrew Cagney <cagney@gnu.org>
1572
1573 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1574 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1575 (mips_gdbarch_init): Update.
1576 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1577
1578 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1579 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1580 IN_SOLIB_RETURN_TRAMPOLINE.
1581 * mips-tdep.c (mips_dump_tdep): Do not print
1582 IN_SOLIB_RETURN_TRAMPOLINE.
1583 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1584 (mips_gdbarch_init): Update.
1585
1586 * mips-tdep.h (mips_software_single_step): Move to here ...
1587 * config/mips/tm-mips.h: ... from here.
1588 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1589 (SOFTWARE_SINGLE_STEP): Delete.
1590 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1591
1592 2004-10-25 Andrew Cagney <cagney@gnu.org>
1593
1594 * NEWS: Add Changes since GDB 6.3 section.
1595
1596 2004-10-23 Andreas Schwab <schwab@suse.de>
1597
1598 * ada-lang.c (grow_vect): Return the new array instead of
1599 expecting pointer to pointer to avoid violation of aliasing rules.
1600 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1601
1602 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1603
1604 * s390-tdep.c (enum pv_boolean): Remove.
1605 (pv_is_array_ref): Remove.
1606 (s390_on_stack): Remove.
1607 (S390_NUM_SPILL_SLOTS): Remove.
1608 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1609 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1610 (s390_store): Track all stores of orginal incoming registers to the
1611 stack constant offsets relative to the CFA, instead of only tracking
1612 stores into specific spill slots.
1613 (s390_load): Likewise.
1614 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1615 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1616 defined as call-saved by the ABI.
1617 (s390_push_dummy_call): Use bottom of dummy call argument save area
1618 as return value, not the top. Do not store to the called function's
1619 register save area.
1620 (s390_unwind_dummy_id): Adapt accordingly.
1621
1622 2004-10-23 Andrew Cagney <cagney@gnu.org>
1623
1624 * objfiles.h (struct objfile): Rename obj_private to
1625 deprecated_obj_private, sym_private to deprecated_sym_private, and
1626 sym_stab_info to deprecated_sym_stab_info.
1627 * gdb-stabs.h: Update.
1628 * elfread.c: Update.
1629 * dbxread.c: Update.
1630 * coffread.c: Update.
1631 * xcoffread.c: Update.
1632 * symfile.c: Update.
1633 * somread.c: Update.
1634 * nlmread.c: Update.
1635 * mdebugread.c: Update.
1636 * hpread.c: Update.
1637 * coffread.c: Update.
1638
1639 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1640
1641 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1642 * configure.host: Add mips64*-*-openbsd*.
1643 * configure.tgt: Add mips64*-*-openbsd*.
1644 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1645 mips64obsd-tdep.c.
1646 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1647 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1648
1649 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1650
1651 * symtab.c (symbol_search_name): Minor reformatting.
1652
1653 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1654
1655 * symtab.h: Fix typo in comment.
1656
1657 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1658
1659 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1660 (dwarf_decode_line_header): Likewise.
1661
1662 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1663
1664 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1665
1666 2004-10-19 Andrew Cagney <cagney@gnu.org>
1667
1668 GDB 6.3 branch created.
1669 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1670
1671 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1672
1673 * dwarf2read.c (set_cu_language): Set language to Ada for
1674 DW_LANG_Ada83 and DW_LANG_Ada95.
1675
1676 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1677
1678 From Andreas Schwab <schwab@suse.de>:
1679 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1680 for xmalloc and xrealloc.
1681
1682 2004-10-15 Andrew Cagney <cagney@gnu.org>
1683
1684 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1685 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1686 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1687 Update dependencies.
1688
1689 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1690
1691 * ada-lang.c (ada_lookup_symbol): Correct comment.
1692 (ada_evaluate_subexp): Change error message for
1693 OP_FUNCALL case so as not to indicate an internal error.
1694
1695 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1696
1697 Committed by Paul Hilfinger.
1698 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1699 type sizes in XVE/XVU types, and emit a warning when that happens,
1700 instead of rounding up the size of the resulting type.
1701 Some minor reformatting.
1702 (ada_is_aligner_type): Do not consider a type as an aligner type
1703 if there is a corresponding XVS type as well.
1704 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1705 have several levels of pointer indirection to the array.
1706
1707 2004-10-15 Jerome Guitton <guitton@gnat.com>
1708
1709 Committed by Paul Hilfinger.
1710 * ada-lang.c (check_size): New function.
1711 (coerce_unspec_val_to_type): call check_size to make sure
1712 that the object size is reasonable.
1713 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1714 Implements the case when we get a reference when we evaluate
1715 the expression of one of the bounds of the slice.
1716 (ada_value_struct_elt): when a packed array field is
1717 a reference, use ada_coerce_ref to dereference it; use
1718 ada_value_ind only if it is a pointer.
1719
1720 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1721
1722 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1723 a bit to avoid the necessity of an advance declaration. Remove
1724 declaration.
1725 (set_reg_offset): Move implemenation up.
1726 (mips16_get_imm): Likewise.
1727 (mips16_scan_prologue): Likewise.
1728 (reset_saved_regs): Likewise.
1729 (mips32_scan_prologue): Likewise.
1730
1731 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1732
1733 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1734 Remove sp as a parameter, compute it internally instead. Move
1735 prologue scanning limit from heuristic_proc_desc to here.
1736 (mips16_scan_prologue): Likewise.
1737 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1738 by call to mips16_scan_prologue.
1739 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1740 by call to mips32_scan_prologue.
1741 (heuristic_proc_desc): Remove code that's no longer necessary.
1742 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1743 (mips_skip_prologue): Update calls to mips16_scan_prologue
1744 and mips32_scan_prologue.
1745
1746 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1747
1748 * mips-tdep.c (mips16_scan_prologue): Merge code from
1749 mips16_skip_prologue. Now return the address of the first
1750 instruction past the function prologue.
1751 (mips16_skip_prologue): Remove, no longer necessary.
1752 (mips_skip_prologue): Replace call to mips16_skip_prologue
1753 by call to mips16_scan_prologue.
1754
1755 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1756
1757 * mips-tdep.c (mips32_scan_prologue): Merge code from
1758 mips32_skip_prologue. Now return the address of the first
1759 instruction past the function prologue.
1760 (mips32_skip_prologue): Remove. No longer necessary.
1761 (mips16_skip_prologue): Add parameter end_pc instead of
1762 computing it.
1763 (mips_skip_prologue): Compute the upper limit for the
1764 prologue scanning. Update call to mips16_skip_prologue.
1765 Replace call to mips32_skip_prologue by call to
1766 mips32_scan_prologue.
1767
1768 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1769
1770 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1771 NetBSD system call stubs that store %rp in the ERP slot of the
1772 stack frame.
1773
1774 * source.c: Always define O_BINARY to 0 if not defined already.
1775 (openp): Unconditionally use O_BINARY.
1776
1777 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1778 * event-top.c (gdb_readline2): Likewise.
1779
1780 2004-10-14 Orjan Friberg <orjanf@axis.com>
1781
1782 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1783 deprecated_add_core_fns which was removed by mistake.
1784
1785 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1786
1787 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1788 references to deprecated_registers[] with equivalent code.
1789
1790 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1791
1792 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1793 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1794 instead of explicit test and print statement.
1795
1796 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1797
1798 * sparc-nat.c: Include "inf-ptrace.h".
1799 (sparc_target): New function.
1800 * sparc-nat.h: Update copyright year.
1801 (sparc_target): New prototype.
1802 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1803 (_initialize_sparcnbsd_nat): Construct and add target vector.
1804 * sparc64nbsd-nat.c: Include "target.h".
1805 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1806 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1807 Update dependencies.
1808 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1809 inftarg.o, add inf-ptrace.o.
1810 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1811 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1812 (NAT_FILE): Set to nm-bsd.h.
1813 (LOADLIBES): New variable.
1814 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1815 infarg.o, add inf-ptrace.o.
1816 * config/sparc/nm-nbsdaout.h: Remove file.
1817 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1818 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1819 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1820
1821 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1822 "fopen-same.h". Update comment.
1823
1824 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1825
1826 * i386gnu-nat.c: Include "gdb_string.h".
1827 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1828 registers when the floating-point state isn't initialized.
1829 * Makefile.in (i386gnu-nat.o): Update dependencies.
1830
1831 2004-10-11 David Anderson <davea@sgi.com>
1832
1833 * regcache.c (regcache_raw_read): Comment was missing "to".
1834 Extraneous ' removed.
1835 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1836 comment now describes use.
1837
1838 2004-10-11 Orjan Friberg <orjanf@axis.com>
1839
1840 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1841 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1842 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1843 (cris_sigtramp_frame_sniffer): New functions.
1844 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1845 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1846 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1847 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1848 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1849 command.
1850 (cris_version_update): Remove, replace with ...
1851 (set_cris_version): New function.
1852 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1853 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1854 (_initialize_cris_tdep): Remove CRIS mode command.
1855 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1856 cris-fpless-backtrace command.
1857 (cris_scan_prologue): Fix prologue scanning limit.
1858 (cris_register_type): Update to reflect actual registers.
1859 (cris_register_bytes_ok) Remove.
1860 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1861 Remove set_gdbarch_deprecated_register_size,
1862 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1863
1864 2004-10-10 Andrew Cagney <cagney@gnu.org>
1865
1866 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1867 comment.
1868
1869 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1870
1871 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1872
1873 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1874
1875 * mips-tdep.c (mips16_scan_prologue): Renames
1876 mips16_heuristic_proc_desc. Update comment.
1877 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1878 (heuristic_proc_desc): Update calls to the 2 functions above.
1879
1880 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1881
1882 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1883 Update comments. Also immediately return empty cache when the start
1884 address of our function could not be found.
1885 (mips_insn32_frame_cache): Likewise.
1886
1887 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1888
1889 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1890 (mips_insn16_frame_cache): Pass frame cache in call to
1891 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1892 Remove code that became redundant as a consequence.
1893 (mips32_heuristic_proc_desc): No longer compute a fake
1894 procedure descriptor. Compute the full frame cache instead.
1895 Some minor comment reformatting.
1896
1897 2004-10-10 Jim Blandy <jimb@redhat.com>
1898
1899 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1900 reader, tracing bytecode stuff): Remove self.
1901
1902 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1903
1904 * sparc64-linux-tdep.c: Update copyright year. Don't include
1905 "solib-svr4.h".
1906 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1907 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1908 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1909
1910 * sparc-linux-tdep.c: Update copyright year.
1911 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1912 to struct frame_info *. Use safe_frame_unwind_memory instead of
1913 deprecated_read_memory_nobpt.
1914 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1915 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1916 changed signature of sparc_linux_sigtramp_start.
1917 (sparc32_linux_pc_in_sigtramp): Remove function.
1918 (sparc32_linux_sigtramp_p): New function.
1919 (sparc32_linux_sigtramp_frame_sniffer): Use
1920 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1921
1922 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1923 Remove function.
1924 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1925
1926 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1927 (decode_packed_array_type, value_subscript_packed)
1928 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1929 argument in call to lim_warning.
1930
1931 * configure.in: Really disable the TUI if an enhanced curses
1932 library isn't found.
1933 * configure: Regenerate.
1934
1935 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1936
1937 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1938 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1939 * config/i386/nm-nbsdaout.h: Remove file.
1940 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1941 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1942 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1943 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1944 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1945 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1946 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1947 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1948 (ldd, ld_un, ld_2): Remove defines.
1949 * config/i386/nm-obsd.h: Likewise.
1950
1951 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1952
1953 * ada-lex.l: Remove useless rule whose right-context clause
1954 causes unreferenced static function warning for yyrealloc.
1955 (ada_flex_use): Remove the artificial reference to yyrealloc.
1956
1957 2004-10-08 Andrew Cagney <cagney@gnu.org>
1958
1959 * target.h (struct target_ops): Rename to_xfer_memory to
1960 deprecated_xfer_memory.
1961 * target.c: Update.
1962 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1963 * wince.c: Update.
1964 * win32-nat.c: Update.
1965 * v850ice.c: Update.
1966 * uw-thread.c: Update.
1967 * thread-db.c: Update.
1968 * sol-thread.c: Update.
1969 * remote.c: Update.
1970 * remote-vx.c: Update.
1971 * remote-st.c: Update.
1972 * remote-sim.c: Update.
1973 * remote-sds.c: Update.
1974 * remote-rdp.c: Update.
1975 * remote-rdi.c: Update.
1976 * remote-mips.c: Update.
1977 * remote-m32r-sdi.c: Update.
1978 * remote-e7000.c: Update.
1979 * procfs.c: Update.
1980 * ppc-bdm.c: Update.
1981 * nto-procfs.c: Update.
1982 * monitor.c: Update.
1983 * linux-nat.c: Update.
1984 * inftarg.c: Update.
1985 * hpux-thread.c: Update.
1986 * go32-nat.c: Update.
1987 * gnu-nat.c: Update.
1988 * exec.c: Update.
1989 * corelow.c: Update.
1990 * bsd-kvm.c: Update.
1991 * aix-thread.c: Update.
1992
1993 2004-10-08 Andrew Cagney <cagney@gnu.org>
1994
1995 * target.c (debug_target): Move to near start of file.
1996 (target_stopped_data_address_p): Re-org logic, add casts.
1997
1998 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1999
2000 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2001 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2002 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2003 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2004 New defines.
2005
2006 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2007
2008 * target.h (to_stopped_data_address): Change prototype to
2009 take a CORE_ADDR pointer and return an int.
2010 * target.c (update_current_target): Change to_stopped_data_address
2011 to match new prototype.
2012 (debug_to_stopped_data_address): Change appropriately.
2013 * breakpoint.c (bpstat_stop_status): Change call to
2014 target_stopped_data_address to use new prototype.
2015 * frv-tdep.c (frv_have_stopped_data_address): New function.
2016 (frv_stopped_data_address): Change to new prototype and
2017 functionality.
2018 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2019 prototype and functionality.
2020 (ia64_stopped_by_watchpoint): New function.
2021 * i386-nat.c (i386_stopped_data_address): Change to new
2022 prototype and functionality.
2023 (i386_stopped_by_watchpoint): New function.
2024 * remote.c (remote_stopped_data_address): Change to new prototype
2025 and functionality.
2026 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2027 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2028 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2029 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2030 new i386_stopped_by_watchpoint function.
2031 (i386_stopped_by_watchpoint): New prototype.
2032 (i386_stoppped_data_address): Change to new prototype.
2033 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2034 new ia64_stopped_by_watchpoint function.
2035 (ia64_stopped_by_watchpoint): New prototype.
2036 (ia64_stopped_data_address): Ditto.
2037
2038 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2039
2040 * ada-typeprint.c (ada_print_type): Use int_string for printing
2041 modulus of modular type.
2042 * ada-lang.h (ada_modulus): Change return type to unsigned.
2043 * ada-lang.c (ada_language_arch_info): Correct type of
2044 string_char_type.
2045 (ada_modulus): Return unsigned result.
2046 (ada_lookup_symbol): Remove user disambiguation and modify comment
2047 accordingly.
2048
2049 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2050
2051 Committed by Paul Hilfinger.
2052 * ada-lang.c (decode_packed_array): On big-endian targets,
2053 left-justify the value if it comes with a modular type.
2054
2055 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2056
2057 Committed by Paul Hilfinger.
2058 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2059 (is_name_suffix): Add support for "___JM" suffixes.
2060 (ada_check_typedef): Renames ada_completed_type.
2061 Update all users of CHECK_TYPEDEF, check_typedef, and
2062 ada_complete_type to call ada_check_typedef.
2063 * ada-typeprint.c: Likewise.
2064 * ada-valprint.c: Likewise.
2065
2066 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2067
2068 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2069
2070 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2071
2072 * MAINTAINERS: Update e-mail address.
2073
2074 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2075
2076 From Maciej W. Rozycki <macro@mips.com>:
2077 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2078 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2079
2080 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2081
2082 * m32r-tdep.c (decode_prologue): Support functions written
2083 in assembler language. Recognize trap instructions as the
2084 end of prologue.
2085 (m32r_frame_unwind_cache): Ditto.
2086 (m32r_skip_prologue): Extend search limit. Quit analyzing
2087 prologue if pc's location is not readable.
2088
2089 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2090
2091 * Makefile.in (.l.c): Do conversions of names of alloc and free
2092 functions that are done for .y.c files, plus special one
2093 for yy_flex_realloc. Also, correct missing-file tests here.
2094 * ada-lex.l (malloc, free): Remove macros.
2095 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2096 xrealloc.
2097 (ada_flex_use): Dummy definition to remove warnings about unused
2098 functions.
2099 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2100 to suppress warning.
2101
2102 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2103
2104 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2105 RETURN_VALUE.
2106 (sh_return_value_fpu): Ditto for CPUs with FPU.
2107 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2108 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2109 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2110 RETURN_VALUE functions.
2111
2112 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2113
2114 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2115 (sh_pseudo_register_write): Ditto.
2116
2117 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2118
2119 * sh-tdep.c (IS_MACL_STS): New define.
2120 (IS_MOVI20): Ditto.
2121 (IS_MACL_LDS): Ditto.
2122 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2123 instructions in prologue.
2124 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2125 instructions in epilogue.
2126
2127 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2128
2129 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2130 (sh_sh_register_name): Add eight empty register names.
2131 (sh_sh3_register_name): Ditto.
2132 (sh_sh3e_register_name): Ditto.
2133 (sh_sh2e_register_name): Ditto.
2134 (sh_sh2a_register_name): New function, defining SH2A register set.
2135 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2136 in nofpu case.
2137 (sh_sh_dsp_register_name): Add eight empty register names.
2138 (sh_sh3_dsp_register_name): Ditto.
2139 (sh_sh4_register_name): Ditto.
2140 (sh_sh4_nofpu_register_name): Ditto.
2141 (sh_sh4al_dsp_register_name): Ditto.
2142 (sh2a_show_regs): New function.
2143 (sh2a_nofpu_show_regs): New function.
2144 (sh_sh2a_register_type): New function.
2145 (do_bank_register_info): New function.
2146 (sh_print_pseudo_register): Call do_bank_register_info.
2147 Call sh_print_pseudo_register for valid "bank" register.
2148 (sh_sh2a_register_sim_regno): New function.
2149 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2150 Increment pseudo register count by one for all sh variants with
2151 pseudo registers to accomodate pseudo bank register.
2152 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2153 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2154 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2155 Increment pseudo register numbers.
2156
2157 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2158
2159 * dwarf2read.c (read_subroutine_type): Call make_function_type
2160 instead of lookup_function_type.
2161
2162 2004-10-05 Jim Blandy <jimb@redhat.com>
2163
2164 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2165 (Previous change missed some uses.)
2166
2167 2004-10-05 Andrew Cagney <cagney@gnu.org>
2168
2169 * target.h (deprecated_child_ops): Rename child_ops.
2170 * wince.c: Update copyright. Rename child_ops.
2171 * win32-nat.c: Rename child_ops.
2172 * target.c: Rename child_ops.
2173 * rs6000-nat.c: Rename child_ops.
2174 * linux-nat.c: Rename child_ops.
2175 * infttrace.c: Rename child_ops.
2176 * inftarg.c: Rename child_ops.
2177 * infptrace.c: Rename child_ops.
2178 * hppah-nat.c: Update copyright. Rename child_ops.
2179 * hpux-thread.c: Update copyright. Rename child_ops.
2180
2181 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2182
2183 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2184
2185 2004-10-05 Andrew Cagney <cagney@gnu.org>
2186
2187 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2188
2189 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2190
2191 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2192 (die_ref_table): Remove.
2193 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2194 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2195 the usage of this type.
2196 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2197 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2198 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2199 (dwarf2_create_include_psymtab): Update comment.
2200 (find_partial_die): Remove third argument. Remove unreachable call
2201 to error ().
2202 (dwarf2_find_containing_comp_unit): Update comments. Change one
2203 assertion to an error. Remove an unreachable error.
2204 (dwarf2_find_comp_unit): Update comments.
2205 (type_at_offset): Remove dead code.
2206 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2207 (store_in_ref_table): Add CU argument.
2208 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2209 inter-compilation-unit references.
2210 (load_full_comp_unit, process_full_comp_unit): New functions, based
2211 on psymtab_to_symtab_1.
2212 (psymtab_to_symtab_1): Use them.
2213 (dwarf2_add_dependence): New function.
2214 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2215 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2216 (partial_die_parent_scope, guess_structure_name): Update for changes
2217 to find_partial_die.
2218 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2219 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2220 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2221 (read_die_and_children): Update call to store_in_ref_table.
2222 (do_free_die_list_cleanup): Remove.
2223 (fixup_partial_die): Update for changes to find_partial_die.
2224 (read_full_die): Handle queueing absolute references.
2225 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2226 (dwarf2_attr, die_specification, die_type)
2227 (die_containing_type, dwarf2_extension): Update calls to
2228 follow_die_ref.
2229 (dump_die): Update DW_FORM_ref* handling.
2230 (dwarf2_get_ref_die_offset): Likewise.
2231 (free_one_comp_unit): Release the dies list.
2232 (dwarf2_mark_helper): New function.
2233 (dwarf2_mark): Use it.
2234
2235 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2236
2237 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2238 when writing to memory.
2239
2240 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2241
2242 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2243 (m32r_extract_struct_value_address): Delete function.
2244 (m32r_return_value): New function.
2245 (m32r_gdbarch_init): Instead of store_return_value,
2246 extract_return_value, deprecated_extract_struct_value_address
2247 and deprecated_use_struct_convention, set return_value.
2248
2249 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2250
2251 * dwarf2read.c (read_subrange_type): Add comment for variable
2252 sized arrays.
2253
2254 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2255
2256 * Makefile.in (.l.c): Modify rule for compatibility with recent
2257 versions of flex, and remove most command-line options.
2258 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2259 options.
2260
2261 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2262
2263 Turn on initial Ada support (mainly expression evaluation).
2264
2265 * Makefile.in (SFILES): Remove ada-tasks.c.
2266 (HFILES_NO_SRCDIR): Add ada-lang.h.
2267 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2268 (YYOBJ): Add ada-exp.o.
2269 (rule .l.c): Generalize to not mention ada.
2270 * symtab.c: Include ada-lang.h.
2271 (symbol_natural_name, symbol_demangled_name)
2272 (symbol_search_name): Add Ada case.
2273
2274 2004-10-01 Andrew Cagney <cagney@gnu.org>
2275
2276 * Makefile.in (COMMON_OBS): Add inf-child.o.
2277 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2278 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2279 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2280 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2281 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2282 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2283 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2284 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2285 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2286 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2287 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2288 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2289 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2290
2291 * target.c (xfer_using_stratum): Change return type to LONGEST.
2292 On each iteration offset, readbuf and writebuf.
2293 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2294 partial_length, and read/modify/write predicate, update comments.
2295 Pass buffer.word to ptrace write.
2296
2297 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2298
2299 * symfile.c (init_filename_language_table): Add extensions for
2300 Ada.
2301 * defs.h (enum language): Add language_ada.
2302 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2303 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2304 (add_symbols_from_enclosing_procs): Make a no-op for now.
2305 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2306 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2307 (find_line_in_linetable, find_next_line_in_linetable)
2308 (read_all_symtabs, is_plausible_func_for_line)
2309 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2310 (is_runtime_sym_defined, check_size): Remove declaration.
2311 (function_name_from_pc, ada_translate_error_message)
2312 (ada_lookup_minimal_symbol): Remove definition.
2313 (ada_add_block_symbols): Remove useless label.
2314 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2315 useless declaration.
2316 (ada_is_exception_sym): Likewise.
2317
2318 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2319
2320 Add m32r-linux support.
2321 * configure.tgt: Add m32r*-*-linux*.
2322 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2323 and m32r-linux-tdep.c.
2324 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2325 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2326 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2327 m32r-linux-tdep.c.
2328 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2329 config/m32r/linux.mh, config/m32r/linux.mt,
2330 config/m32r/nm-linux.h: New files.
2331
2332 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2333
2334 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2335 (mips32_fetch_instruction): Remove, unused.
2336
2337 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2338
2339 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2340 conditions that will always be true.
2341
2342 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2343
2344 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2345 (vaxbsd_fetch_inferior_registers): Rename from
2346 fetch_inferior_registers. Make static.
2347 (vaxbsd_store_inferior_registers): Rename from
2348 store_inferior_registers. Make static.
2349 (_initialize_vaxbsd_nat): Construct and add target vector.
2350 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2351 inftarg.o. Add inf-child.o and inf-ptrace.o.
2352 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2353 inftarg.o. Add inf-child.o and inf-ptrace.o.
2354 (NAT_FILE): Remove.
2355 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2356 inftarg.o. Add inf-child.o and inf-ptrace.o.
2357 (NAT_FILE): Remove.
2358 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2359
2360 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2361 (m88kbsd_fetch_inferior_registers): Rename from
2362 fetch_inferior_registers. Make static.
2363 (m88kbsd_store_inferior_registers): Rename from
2364 store_inferior_registers. Make static.
2365 (_initialize_m88kbsd_nat): New prototype and function.
2366 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2367 inftarg.o. Add inf-child.o and inf-ptrace.o.
2368 (NAT_FILE): Remove.
2369 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2370
2371 2004-09-30 Andrew Cagney <cagney@gnu.org>
2372
2373 * target.c (target_xfer_partial): New function.
2374 (target_read_memory_partial, target_write_memory_partial)
2375 (default_xfer_partial, target_read_partial, target_write_partial)
2376 (xfer_using_stratum): Use.
2377 (debug_to_xfer_partial): Delete function.
2378 (setup_target_debug): Do not override to_xfer_partial.
2379
2380 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2381
2382 * fork-child.c: Update copyright year. Fix coding style.
2383
2384 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2385
2386 * defs.h (msavestring, mstrsave): Remove prototypes.
2387 * utils.c (msavestring, mstrsave): Remove functions.
2388 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2389 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2390 of mstrsave.
2391 * source.c (find_and_open_source): Use xstrdup instead of
2392 mstrsave.
2393
2394 2004-09-30 Andrew Cagney <cagney@gnu.org>
2395
2396 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2397 (inf_ptrace_xfer_memory): Delete.
2398 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2399 (target_read_memory, target_write_memory): Use xfer_using_stratum
2400 when target_xfer_partial_p.
2401 (debug_target): Move to start of file.
2402 (target_read_memory_partial, target_write_memory_partial): Use
2403 to_xfer_partial when target_xfer_partial_p.
2404
2405 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2406 inf_ptrace_xfer_memory with equivalent code.
2407 * inftarg.c (child_xfer_partial): When performing a write, pass
2408 writebuf to child_xfer_memory.
2409
2410 * target.c (target_read_string): Use target_read_memory instead of
2411 target_xfer_memory.
2412
2413 2004-09-29 Andrew Cagney <cagney@gnu.org>
2414
2415 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2416 the address of status.
2417
2418 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2419 (kill_inferior): Inline ptrace_wait call.
2420 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2421 * inftarg.c (child_wait): Inline ptrace_wait call.
2422
2423 * target.h (struct target_ops): Delete field to_post_wait.
2424 (target_post_wait): Delete macro.
2425 (child_post_wait): Delete declaration.
2426 * target.c (update_current_target, update_current_target)
2427 (debug_to_post_wait, setup_target_debug): Delete functions and
2428 references.
2429 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2430 * inftarg.c (child_post_wait): Delete.
2431 (init_child_ops): Do not set to_post_wait.
2432 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2433 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2434 * inf-child.c (inf_child_post_wait): Delete.
2435 (inf_child_target): Do not set to_post_wait.
2436 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2437 (inf_ptrace_target): Do not set to_post_wait.
2438
2439 * wince.c (child_ops): Delete.
2440 * win32-nat.c (child_ops): Delete.
2441
2442 * inftarg.c (inftarg_set_find_memory_regions)
2443 (inftarg_set_make_corefile_notes): Delete functions.
2444 (_initialize_linux_nat): Inline calls.
2445
2446 * target.h (child_ops): Declare.
2447 * inftarg.c (child_ops): Move from here ...
2448 * target.c (child_ops): ... to here.
2449 * wince.c (child_ops): Delete extern declaration.
2450 * win32-nat.c (child_ops): Delete extern declaration.
2451 * linux-nat.c (child_ops): Delete extern declaration.
2452 * hpux-thread.c (child_ops): Delete extern declaration.
2453
2454 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2455
2456 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2457
2458 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2459
2460 * configure.in: Only set host_makefile_frag when building a native
2461 debugger.
2462 * configure: Regenerate.
2463
2464 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2465 for OpenBSD ELF.
2466
2467 2004-09-28 Andrew Cagney <cagney@gnu.org>
2468
2469 Problem identified by Paul Hilfinger.
2470 * Makefile.in (ada_lex_c): Define.
2471 (ada-lex.o): Delete rule.
2472
2473 * linux-proc.c: Delete file.
2474 * Makefile.in: Update.
2475 * config/sparc/linux64.mh (NATDEPFILES):
2476 * config/sparc/linux.mh (NATDEPFILES): Update.
2477 * config/s390/s390.mh (NATDEPFILES): Update.
2478 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2479 * config/powerpc/linux.mh (NATDEPFILES): Update.
2480 * config/pa/linux.mh (NATDEPFILES): Update.
2481 * config/mips/linux.mh (NATDEPFILES): Update.
2482 * config/m68k/linux.mh (NATDEPFILES): Update.
2483 * config/ia64/linux.mh (NATDEPFILES): Update.
2484 * config/i386/linux64.mh (NATDEPFILES): Update.
2485 * config/i386/linux.mh (NATDEPFILES): Update.
2486 * config/arm/linux.mh (NATDEPFILES): Update.
2487 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2488 * linux-nat.c: Update copyright. Include <sys/param.h>,
2489 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2490 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2491 (O_LARGEFILE): Possibly define.
2492 (_initialize_linux_nat, linux_proc_pending_signals)
2493 (add_line_to_sigset, linux_proc_xfer_memory)
2494 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2495 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2496 (struct linux_corefile_thread_data)
2497 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2498 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2499
2500 2004-09-16 Andrew Cagney <cagney@gnu.org>
2501
2502 * lin-lwp.c: Delete file.
2503 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2504 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2505 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2506 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2507 (linux_nat_attach, detach_callback, linux_nat_detach)
2508 (resume_callback, resume_clear_callback, linux_nat_resume)
2509 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2510 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2511 (status_callback, running_callback, count_events_callback)
2512 (select_singlestep_lwp_callback, select_event_lwp_callback)
2513 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2514 (child_wait, stop_and_resume_callback, linux_nat_wait)
2515 (kill_callback, kill_wait_callback, linux_nat_kill)
2516 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2517 (linux_nat_xfer_memory, linux_nat_thread_alive)
2518 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2519 (_initialize_linux_nat): New functions.
2520 * Makefile.in: Update all dependencies.
2521 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2522 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2523 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2524 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2525 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2526 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2527 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2528 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2529 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2530 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2531 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2532 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2533 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2534
2535 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2536
2537 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2538 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2539
2540 * configure.in: Don't comment out NATDEPFILES in the generated
2541 Makefile if NAT_FILE is unset.
2542 * configure: Regenerate.
2543
2544 2004-09-27 Andrew Cagney <cagney@gnu.org>
2545
2546 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2547 (insert_step_resume_breakpoint): Delete.
2548 (insert_step_resume_breakpoint_at_frame): New function.
2549 (insert_step_resume_breakpoint_at_sal): New function.
2550 (handle_inferior_event, step_into_function)
2551 (insert_step_resume_breakpoint): Simplify by using same.
2552
2553 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2554
2555 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2556
2557 * fbsd-proc.c: Remove file.
2558 * Makefile.in (fbsd-proc.o): Remove dependency.
2559
2560 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2561 code together.
2562
2563 * config/i386/nm-fbsd64.h: Remove file.
2564 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2565
2566 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2567
2568 * amd64-nat.h: Update copyright year.
2569 (amd64bsd_target): New prototype.
2570 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2571 (amd64bsd_target): New function.
2572 (amd64bsd_fetch_inferior_registers): Rename from
2573 fetch_inferior_registers. Make static.
2574 (amd64bsd_store_inferior_registers): Rename from
2575 store_inferior_registers. Make static.
2576 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2577 (_initialize_amd64fbsd_nat): Construct and add target vector.
2578 * amd64nbsd-nat.o: Include "target.h".
2579 (_initialize_amd64nbsd_nat): Construct and add target vector.
2580 * amd64obsd-nat.c: Include "target.h".
2581 (_initialize_amd64obsd_nat): Construct and add target vector.
2582 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2583 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2584 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2585 fbsd-nat.o.
2586 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2587 Remove infptrace.o and inftarg.o. Add inf-child.o and
2588 inf-ptrace.o.
2589 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2590 (amd64obsd-nat.o): Update dependencies.
2591
2592 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2593
2594 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2595 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2596 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2597 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2598 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2599
2600 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2601 Inline attach call.
2602 (inf_ptrace_detach): Inline detach call.
2603
2604 * configure.in: Check for waddstr instead of mvwaddstr when
2605 searching for curses library. Check for wborder.
2606 * configure, config.in: Regenerate.
2607 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2608 available.
2609
2610 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2611
2612 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2613
2614 Committed by Andrew Cagney.
2615 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2616 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2617 configuration.
2618 (fetch_register_using_p): Implement 'p' packet. Based on code by
2619 Fernando Nasser.
2620 (remote_fetch_registers): Call fetch_register_using_p.
2621 (init_all_packet_configs, show_remote_cmd)
2622 (_initialize_remote): Add p-packet.
2623
2624 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2625
2626 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2627 instead of call_ptrace. Call wait directly instead of
2628 ptrace_wait.
2629 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2630 (inf_ptrace_wait): Inline ptrace_wait call.
2631
2632 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2633
2634 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2635 rolled back instead.
2636
2637 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2638
2639 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2640 the new argument order.
2641
2642 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2643
2644 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2645 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2646 (struct gdbarch_tdep): Remove.
2647 (struct xstormy16_frame_cache): New frame cache structure.
2648 (xstormy16_register_byte, xstormy16_register_raw_size)
2649 (xstormy16_reg_virtual_type, xstormy16_register_type)
2650 (xstormy16_push_arguments, xstormy16_push_return_address)
2651 (xstormy16_pop_frame, xstormy16_store_struct_return)
2652 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2653 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2654 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2655 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2656 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2657 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2658 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2659 (xstormy16_extract_return_value, xstormy16_store_return_value):
2660 Regcachify. Drop useless struct convention handling.
2661 (xstormy16_register_type, xstormy16_return_value)
2662 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2663 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2664 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2665 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2666 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2667 (xstormy16_unwind_dummy_id) : New functions.
2668 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2669 of xstormy16_scan_prologue.
2670 (xstormy16_frame_unwind): New frame_unwind structure.
2671 (xstormy16_frame_base): New frame_base structure.
2672 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2673 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2674
2675 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2676
2677 * language.c (language_gdbarch_post_init): Fix off-by one error.
2678
2679 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2680
2681 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2682 (struct dwarf2_offset_and_type): New.
2683 (set_die_type, reset_die_and_siblings_types, get_die_type)
2684 (offset_and_type_hash, offset_and_type_eq): New functions.
2685 (read_structure_type, read_enumeration_type, read_array_type)
2686 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2687 (read_tag_reference_type, read_tag_const_type)
2688 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2689 (read_typedef, read_base_type, read_subrange_type): Use
2690 set_die_type.
2691
2692 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2693
2694 * Makefile.in (dwarf2read.o): Update dependencies.
2695 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2696 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2697 and read_in_chain.
2698 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2699 mark, and has_form_ref_addr.
2700 (struct dwarf2_per_cu_data): New.
2701 (dwarf2_max_cache_age): New.
2702 (dwarf2_build_psymtabs_hard): Free cached compilation units
2703 after loading. Create and manage the list of compilation units.
2704 Remove unnecessary NULL initialization. Fix indentation.
2705 (psymtab_to_symtab_1): Initialize all of CU.
2706 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2707 (find_partial_die): Use dwarf2_find_containing_comp_unit
2708 and load_comp_unit.
2709 (free_stack_comp_unit): Update comments. Clear the per-cu
2710 pointer. Handle aging.
2711 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2712 (age_cached_comp_units, free_one_cached_comp_unit)
2713 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2714 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2715 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2716 (show_dwarf2_cmd): New.
2717 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2718 and "maint show dwarf2 max-cache-age".
2719 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2720 externs.
2721 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2722 global.
2723
2724 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2725
2726 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2727 and dwarf2_cu struct pointer as arguments. Change function to use
2728 obstack if provided and use dwarf2_cu to determine language-specific
2729 separator.
2730 (partial_die_parent_scope): Change comment to include java. Use
2731 new version of typename_concat instead of obconcat.
2732 (partial_die_full_name): Use typename_concat.
2733 (read_namespace): Ditto.
2734 (read_enumeration_type): Use typename_concat instead of obconcat.
2735 (new_symbol): Ditto.
2736 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2737 (guess_structure_name): Ditto.
2738 (read_subroutine_type): Ditto.
2739 (read_structure_type): Ditto.
2740 (is_vtable_name): Add Java support.
2741 (determine_class_name): Switch to new typename_concat call.
2742 (determine_prefix): Switch to new typename_concat call.
2743 * jv-exp.y (FuncStart): New pattern.
2744 (MethodInvocation): Add support for simple function calls. Change
2745 warning message for other forms of inferior call currently not
2746 supported.
2747 * valarith.c (value_subscript): Treat an array with upper-bound
2748 of -1 as unknown size.
2749
2750 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2751
2752 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2753 (lookup_partial_symtab): Use symtab_to_fullname.
2754
2755 2004-09-19 Jim Blandy <jimb@redhat.com>
2756
2757 * minsyms.c (lookup_minimal_symbol): Doc fix.
2758
2759 2004-09-20 Andrew Cagney <cagney@gnu.org>
2760
2761 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2762 CHILD_RESUME.
2763 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2764 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2765 KILL_INFERIOR.
2766 * infptrace.c: Update.
2767
2768 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2769
2770 * symtab.c (output_source_filename): Mark first argument as const.
2771 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2772 for "info sources" output.
2773
2774 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2775
2776 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2777 <machine/vmparam.h>.
2778 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2779 (register_u_addr): Remove prototype.
2780
2781 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2782
2783 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2784 (i386bsd_fetch_inferior_registers): Rename from
2785 fetch_inferior_registers. Make static.
2786 (i386bsd_store_inferior_registers): Rename from
2787 store_inferior_registers. Make static.
2788 (i386bsd_target): New function.
2789 * i386bsd-nat.h: New file.
2790 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2791 "i386bsd-nat.h".
2792 (i386fbsd_resume): Rename from child_resume. Make static.
2793 (_initialize_i386fbsd_nat): Construct and add target vector.
2794 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2795 (_initialize_i386nbsd_nat): Construct and add target vector.
2796 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2797 Remove defines.
2798 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2799 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2800 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2801 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2802 (LOADLIBES): New variable.
2803 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2804 inf-ptrace.o. Remove inftarg.o.
2805 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2806 inf-ptrace.o. Remove inftarg.o.
2807 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2808 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2809 (LOADLIBES): New variable.
2810 * Makefile.in (i386bsd_nat_h): New variable.
2811 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2812 dependencies.
2813
2814 * sparc64nbsd-tdep.c: Include "objfiles.h".
2815 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2816 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2817 svr4_lp64_fetch_link_map_offsets.
2818 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2819 "nbsd-tdep.h".
2820 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2821 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2822 svr4_lp64_fetch_link_map_offsets.
2823 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2824 dependencies.
2825
2826 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2827 * fbsd-nat.h: New file.
2828 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2829 (fbsd_nat_h): New variable.
2830 (fbsd-nat.o): New dependency.
2831
2832 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2833 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2834
2835 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2836 comment.
2837
2838 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2839
2840 * ada-exp.y (type_int): New function to add layer of abstraction
2841 around references to expression types.
2842 (type_long): Ditto.
2843 (type_long_long): Ditto.
2844 (type_float): Ditto.
2845 (type_double): Ditto.
2846 (type_long_double): Ditto.
2847 (type_char): Ditto.
2848 (type_system_address): Ditto.
2849 (simple_exp): Use type_* functions in place of builtin_*
2850 variables.
2851 (exp): Ditto.
2852 (write_var_from_name): Ditto.
2853 (write_object_renaming): Ditto.
2854 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2855 declaration.
2856 (build_ada_types): Remove, replacing with...
2857 (ada_language_arch_info): New function to initialize primitive
2858 type vector in language_arch_info.
2859 (ada_array_length): Remove use of builtin_type_ada_int.
2860 (value_pos_atr): Ditto.
2861 (ada_evaluate_subexp): Ditto.
2862 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2863 builtin_type_ada_long_long, builtin_type_ada_char,
2864 builtin_type_ada_float, builtin_type_ada_double,
2865 builtin_type_ada_long_double, builtin_type_ada_natural,
2866 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2867 (ada_builtin_types): Remove.
2868 (ada_language_defn): Remove entries for la_builtin_type_vector and
2869 string_char_type and use ada_language_arch_info.
2870 (_initialize_ada_language): Do type-vector initialization along
2871 the lines of c-lang.c.
2872 (ada_create_fundamental_type): Break up line.
2873 (ada_dump_symtab): Remove unused function.
2874 (enum ada_primitive_types): Define.
2875 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2876 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2877 builtin_type_ada_float, builtin_type_ada_double,
2878 builtin_type_ada_long_double, builtin_type_ada_natural,
2879 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2880 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2881 (processInt): Ditto.
2882 (processReal): Ditto.
2883 (name_lookup): Ditto.
2884 * ada-typeprint.c (print_range): Use builtin_type_int, not
2885 builtin_type_ada_int.
2886
2887 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2888
2889 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2890
2891 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2892 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2893 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2894 * configure.in: Improve checks for curses library by checking for
2895 mvwaddstr instead of initscr. Drop HP curses in favour of
2896 standard curses on HP-UX.
2897 * configure: Regenerated.
2898
2899 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2900
2901 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2902 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2903 Minor formatting changes.
2904 (empty_array): Slight rewrite for formatting.
2905 (emit_char,parse,ada_language_defn,build_ada_types,
2906 ada_is_exception_sym, _initialize_ada_language): Move
2907 definitions around.
2908 (ada_dump_symtab): Remove unused definition.
2909 (ada_maybe_exception_partial_symbol): Remove unused definition.
2910
2911 2004-09-16 Andrew Cagney <cagney@gnu.org>
2912
2913 * inf-child.c: Include "gdb_string.h".
2914 (inf_child_core_file_to_sym_file): Delete.
2915 (inf_child_target): Set to_fetch_registers and to_store_registers.
2916 * inf-ptrace.c: Include "gdb_string.h".
2917 * Makefile.in: Update all dependencies.
2918
2919 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2920 problem.
2921
2922 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2923
2924 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2925 call to heuristic_proc_desc. Remove code that became redundant
2926 as a consequence.
2927 (read_next_frame_reg): Remove special case for SP_REGNUM.
2928 (set_reg_offset): Fix small typo.
2929 (reset_saved_regs): New procedure.
2930 (mips32_heuristic_proc_desc): No longer compute a fake
2931 procedure descriptor. Compute the full frame cache instead.
2932 Some minor comment reformatting.
2933
2934 2004-09-14 Andrew Cagney <cagney@gnu.org>
2935
2936 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2937 maintainer.
2938
2939 * thread-db.c (thread_db_new_objfile): Assume that there is a
2940 child process.
2941
2942 2004-09-13 Jim Blandy <jimb@redhat.com>
2943
2944 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2945 so that its storage isn't referenced after its lifetime ends.
2946
2947 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2948 and never assigned to. Delete it, and the 'if (use_buffer)'
2949 clauses. Delete 'raw_buffer', since it is now unused.
2950
2951 2004-09-13 Andrew Cagney <cagney@gnu.org>
2952
2953 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2954 * configure: Re-generate.
2955 * nlm/Makefile.in (TAGS): Update.
2956 * Makefile.in (TAGS): Update.
2957 * config/vax/nbsd.mt (TM_FILE): Update.
2958 * config/sparc/vxworks.mt (TM_FILE): Update.
2959 * config/sparc/sol2.mt (TM_FILE): Update.
2960 * config/sparc/sol2-64.mt (TM_FILE): Update.
2961 * config/sparc/obsd64.mt (TM_FILE): Update.
2962 * config/sparc/obsd.mt (TM_FILE): Update.
2963 * config/sparc/nbsd64.mt (TM_FILE): Update.
2964 * config/sparc/nbsd.mt (TM_FILE): Update.
2965 * config/sparc/linux64.mt (TM_FILE): Update.
2966 * config/sparc/linux.mt (TM_FILE): Update.
2967 * config/sparc/fbsd.mt (TM_FILE): Update.
2968 * config/sh/wince.mt (TM_FILE): Update.
2969 * config/sh/nbsd.mt (TM_FILE): Update.
2970 * config/sh/linux.mt (TM_FILE): Update.
2971 * config/sh/embed.mt (TM_FILE): Update.
2972 * config/s390/s390.mt (TM_FILE): Update.
2973 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2974 * config/rs6000/rs6000.mt (TM_FILE): Update.
2975 * config/rs6000/aix4.mt (TM_FILE): Update.
2976 * config/powerpc/vxworks.mt (TM_FILE): Update.
2977 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2978 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2979 * config/powerpc/obsd.mt (TM_FILE): Update.
2980 * config/powerpc/nbsd.mt (TM_FILE): Update.
2981 * config/powerpc/linux.mt (TM_FILE): Update.
2982 * config/powerpc/aix.mt (TM_FILE): Update.
2983 * config/pa/obsd.mt (TM_FILE): Update.
2984 * config/pa/linux.mt (TM_FILE): Update.
2985 * config/pa/hppahpux.mt (TM_FILE): Update.
2986 * config/pa/hppa64.mt (TM_FILE): Update.
2987 * config/pa/hppa.mt (TM_FILE): Update.
2988 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2989 * config/mips/wince.mt (TM_FILE): Update.
2990 * config/mips/vxmips.mt (TM_FILE): Update.
2991 * config/mips/nbsd.mt (TM_FILE): Update.
2992 * config/mips/linux.mt (TM_FILE): Update.
2993 * config/mips/irix6.mt (TM_FILE): Update.
2994 * config/mips/irix5.mt (TM_FILE): Update.
2995 * config/mips/embed.mt (TM_FILE): Update.
2996 * config/m68k/vxworks68.mt (TM_FILE): Update.
2997 * config/m68k/st2000.mt (TM_FILE): Update.
2998 * config/m68k/os68k.mt (TM_FILE): Update.
2999 * config/m68k/obsd.mt (TM_FILE): Update.
3000 * config/m68k/nbsd.mt (TM_FILE): Update.
3001 * config/m68k/monitor.mt (TM_FILE): Update.
3002 * config/m68k/linux.mt (TM_FILE): Update.
3003 * config/m68k/cisco.mt (TM_FILE): Update.
3004 * config/ia64/linux.mt (TM_FILE): Update.
3005 * config/ia64/aix.mt (TM_FILE): Update.
3006 * config/ia64/ia64.mt (TM_FILE): Update.
3007 * config/i386/vxworks.mt (TM_FILE): Update.
3008 * config/i386/obsd64.mt (TM_FILE): Update.
3009 * config/i386/obsd.mt (TM_FILE): Update.
3010 * config/i386/nto.mt (TM_FILE): Update.
3011 * config/i386/nbsd64.mt (TM_FILE): Update.
3012 * config/i386/nbsd.mt (TM_FILE): Update.
3013 * config/i386/linux64.mt (TM_FILE): Update.
3014 * config/i386/linux.mt (TM_FILE): Update.
3015 * config/i386/i386sol2.mt (TM_FILE): Update.
3016 * config/i386/i386lynx.mt (TM_FILE): Update.
3017 * config/i386/fbsd64.mt (TM_FILE): Update.
3018 * config/i386/fbsd.mt (TM_FILE): Update.
3019 * config/i386/cygwin.mt (TM_FILE): Update.
3020 * config/h8300/h8300.mt (TM_FILE): Update.
3021 * config/frv/frv.mt (TM_FILE): Update.
3022 * config/cris/cris.mt (TM_FILE): Update.
3023 * config/arm/wince.mt (TM_FILE): Update.
3024 * config/arm/nbsd.mt (TM_FILE): Update.
3025 * config/arm/linux.mt (TM_FILE): Update.
3026 * config/arm/embed.mt (TM_FILE): Update.
3027 * config/alpha/nbsd.mt (TM_FILE): Update.
3028 * config/alpha/fbsd.mt (TM_FILE): Update.
3029 * config/alpha/alpha.mt (TM_FILE): Update.
3030 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3031 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3032
3033 Eliminate event_loop_p, always has the value 1.
3034 * defs.h (event_loop_p): Delete macro.
3035 * breakpoint.c (until_break_command): Simplify.
3036 * utils.c (prompt_for_continue): Simplify.
3037 * tracepoint.c (read_actions): Simplify.
3038 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3039 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3040 (set_prompt, init_main): Simplify.
3041 (init_signals, disconnect): Delete, unused.
3042 * remote.c (remote_async_resume)
3043 (extended_remote_async_create_inferior): Simplify.
3044 * mi/mi-interp.c (mi_input): Delete, unused.
3045 (mi_interpreter_resume, mi_command_loop): Simplify.
3046 * interps.c (current_interp_command_loop): Simplify.
3047 * infrun.c (proceed): Simplify.
3048 * infcmd.c (run_command, continue_command, step_1, jump_command)
3049 (until_command, advance_command, finish_command)
3050 (interrupt_target_command): Simplify.
3051 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3052
3053 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3054 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3055 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3056 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3057 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3058 * mips-tdep.c (mips_dump_tdep): Do not print same.
3059
3060 2004-09-12 Andrew Cagney <cagney@gnu.org>
3061
3062 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3063 const.
3064 * Makefile.in (valprint.o): Delete explict rule.
3065
3066 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3067 reported by Dave Anderson.
3068
3069 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3070
3071 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3072
3073 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3074 Andrew Cagney <cagney@gnu.org>
3075
3076 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3077 (mi_cmd_data_list_register_values)
3078 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3079 the register number computation.
3080
3081 2004-09-12 Andrew Cagney <cagney@gnu.org>
3082
3083 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3084 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3085 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3086 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3087 target.
3088 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3089 inf-ptrace.o and inf-child.o.
3090 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3091 * Makefile.in: Update dependencies.
3092
3093 2004-09-11 Andrew Cagney <cagney@gnu.org>
3094
3095 * language.c (hex_string, hex_string_custom): Move from here ...
3096 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3097 (CELLSIZE): Increase to 50.
3098 * language.h (hex_string, hex_string_custom): Move from here ...
3099 * defs.h: ... to here.
3100 * Makefile.in: Update all dependencies.
3101
3102 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3103
3104 * language.c (local_hex_format_custom): Remove.
3105 (local_hex_string): Rename to hex_string, use C format, and move to
3106 utils.c
3107 (local_hex_string_custom): Rename to hex_string_custom and change
3108 interface. Now uses C format. Move to utils.c
3109 (local_octal_format_custom): Remove.
3110 (local_decimal_format_custom): Remove.
3111 (unknown_language_defn): Remove language-specific number
3112 formatting entries.
3113 (auto_language_defn): Ditto.
3114 (local_language_defn): Ditto.
3115 * language.h (struct language_format_info): Delete declaration.
3116 (struct language_defn): Remove language_format_info fields
3117 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3118 (local_binary_format): Remove macro.
3119 (local_binary_format_prefix): Remove macro.
3120 (local_binary_format_specifier): Remove macro.
3121 (local_binary_format_suffix): Remove macro.
3122 (local_octal_format): Remove macro.
3123 (local_octal_format_prefix): Remove macro.
3124 (local_octal_format_specifier): Remove macro.
3125 (local_octal_format_suffix): Remove macro.
3126 (local_decimal_format): Remove macro.
3127 (local_decimal_format_prefix): Remove macro.
3128 (local_decimal_format_specifier): Remove macro.
3129 (local_decimal_format_suffix): Remove macro.
3130 (local_hex_format): Remove macro.
3131 (local_hex_format_prefix): Remove macro.
3132 (local_hex_format_specifier): Remove macro.
3133 (local_hex_format_suffix): Remove macro.
3134 (local_decimal_format_custom): Remove.
3135 (local_octal_format_custom): Remove.
3136 (local_hex_format_custom): Remove.
3137 (local_hex_string): Rename to hex_string and move to defs.h.
3138 (local_hex_string_custom): Rename to hex_string_custom, change
3139 interface, and move to defs.h.
3140 * utils.c: (int_string): New function.
3141 (hex_string): New function (from language.c).
3142 (hex_string_custom): New function (from language.c).
3143 (octal2str): New function.
3144 (decimal2str): Add width parameter.
3145 (paddr_u): Use new decimal2str interface.
3146 (paddr_d): Ditto.
3147 * defs.h (hex_string): Declare.
3148 (hex_string_custom): Declare.
3149 (int_string): Declare.
3150 * printcmd.c (print_scalar_formatted): Remove localized binary
3151 formatting.
3152 * valprint.c (print_longest): Use int_string.
3153 (print_floating): Use C hex format.
3154 (print_hex_chars): Ditto.
3155 (print_binary_chars): Remove language-specific formatting.
3156 (print_octal_chars): Use C octal format.
3157 (print_decimal_chars): Delocalize format.
3158 (print_decimal): Remove.
3159 * ada-lang.c (ada_language_defn): Remove language-specific number
3160 formatting entries.
3161 * p-lang.c (pascal_language_defn): Ditto.
3162 * c-lang.c (c_language_defn): Ditto.
3163 (cplus_language_defn): Ditto.
3164 (asm_language_defn): Ditto.
3165 (minimal_language_defn): Ditto.
3166 * f-lang.c (f_language_defn): Ditto.
3167 * jv-lang.c (java_language_defn): Ditto.
3168 * m2-lang.c (m2_language_defn): Ditto.
3169 * scm-lang.c (scm_language_defn): Ditto.
3170 * objc-lang.c (objc_language_defn): Ditto.
3171 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3172 new interface.
3173 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3174 * ui-out.c (ui_out_field_core_addr): Ditto.
3175 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3176 * exec.c (print_section_info): Ditto.
3177 * i387-tdep.c (print_i387_status_word): Ditto.
3178 (print_i387_control_word): Ditto.
3179 (i387_print_float_info): Ditto.
3180 * maint.c (maint_print_section_info): Ditto.
3181 * solib.c (info_sharedlibrary_command): Ditto.
3182 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3183 * symtab.c (print_msymbol_info): Ditto.
3184 * tracepoint.c (tracepoints_info): Ditto.
3185 * solib-frv.c (lm_base): Ditto.
3186 (frv_current_sos): Ditto.
3187 (enable_break2): Ditto.
3188 (enable_break): Ditto.
3189 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3190 (process_one_symbol): Ditto.
3191 * infcmd.c (program_info): Ditto.
3192 * mdebugread.c (parse_partial_symbols): Ditto.
3193 * symfile.c (add_symbol_file_command): Ditto.
3194 * cli/cli-cmds.c (edit_command): Ditto.
3195 (list_command): Ditto.
3196 * infcall.c (call_function_by_hand): Ditto.
3197 * remote-vx.c (vx_run_files_info): Ditto.
3198 (vx_wait): Ditto.
3199 (vx_attach): Ditto.
3200 (vx_detach): Ditto.
3201 (vx_kill): Ditto.
3202 * aix-thread.c (pdc_symbol_addrs): Ditto.
3203 (pdc_read_regs): Ditto.
3204 (pdc_write_regs): Ditto.
3205 (pdc_read_data): Ditto.
3206 (pdc_write_data): Ditto.
3207 * d10v-tdep.c (display_trace): Ditto.
3208 * rs6000-nat.c (find_toc_address): Ditto.
3209 * aix-thread.c: Don't include language.h.
3210 * buildsym.c: Ditto.
3211 * dbxread.c: Ditto.
3212 * mdebugread.c: Ditto.
3213 * rs6000-nat.c: Ditto.
3214 * buildsym.c (make_blockvector): Use renamed hex_string.
3215
3216 2004-09-10 Jason Molenda (jmolenda@apple.com)
3217
3218 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3219 chars after 'if' or 'while' commands in user-defined commands.
3220
3221 2004-09-08 Jim Blandy <jimb@redhat.com>
3222
3223 Fix bug reported and analyzed by Olivier Crete:
3224 * symfile.c (copy_section_addr_info): New function.
3225 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3226 original set of address arguments, instead of handwritten code
3227 that uses one length to allocate and a different length to
3228 initialize. Use make_cleanup_free_section_addr_info.
3229 * symfile.h (copy_section_addr_info): New declaration.
3230 * utils.c: #include "symfile.h".
3231 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3232 New functions.
3233 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3234 * Makefile.in (utils.o): Update dependencies.
3235
3236 2004-09-08 Andrew Cagney <cagney@gnu.org>
3237
3238 * thread-db.c (keep_thread_db): Delete.
3239 (thread_db_new_objfile, thread_db_create_inferior)
3240 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3241
3242 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3243
3244 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3245 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3246 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3247 (i386_frameless_signal_p): Remove prototype.
3248 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3249 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3250 I386_SSE_NUM_REGS.
3251 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3252 instead of FP0_REGNUM.
3253 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3254 of FP0_REGNUM and FPC_REGNUM.
3255
3256 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3257 (sunos_solib_create_inferior_hook): Don't call
3258 sunos_relocate_main_executable.
3259
3260 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3261 solib_svr4_fetch_link_map_offsets to
3262 svr4_ilp32_fetch_link_map_offsets.
3263 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3264 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3265 svr4_ilp32_fetch_link_map_offsets.
3266 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3267
3268 2004-09-07 Jim Blandy <jimb@redhat.com>
3269
3270 * frame.h (frame_register): Doc fix.
3271
3272 2004-09-07 Andrew Cagney <cagney@gnu.org>
3273
3274 * vx-share/wait.h: Delete #ifdef USG.
3275 * utils.c (request_quit): Ditto.
3276 * tui/tui.c (tui_reset): Ditto.
3277 * remote.c: Ditto.
3278 * remote-sds.c: Ditto.
3279 * remote-rdi.c: Ditto.
3280 * mdebugread.c: Ditto.
3281 * m68klinux-nat.c: Ditto.
3282 * infttrace.c: Ditto.
3283 * infptrace.c: Ditto.
3284 * i386v-nat.c: Ditto.
3285 * exec.c: Ditto.
3286 * dbxread.c: Ditto.
3287 * core-aout.c: Ditto.
3288
3289 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3290
3291 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3292 heuristic_proc_desc.
3293 (mips_insn32_frame_cache): Likewise.
3294
3295 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3296
3297 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3298 left behind by error.
3299
3300 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3301
3302 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3303 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3304
3305 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3306
3307 * config/rs6000/xm-aix4.h: Remove this file.
3308 * config/rs6000/aix4.mh (XM_FILE): Delete.
3309
3310 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3311
3312 * config/rs6000/xm-rs6000.h: Remove this file.
3313 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3314
3315 2004-09-03 Andrew Cagney <cagney@gnu.org>
3316
3317 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3318 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3319 only use.
3320
3321 * mips-tdep.c (temp_saved_regs): Delete.
3322 (set_reg_offset): Replace saved_regs parameter with this_cache.
3323 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3324 (mips32_heuristic_proc_desc): Add this_cache parameter.
3325 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3326 (after_prologue): Pass a NULL this_cache.
3327
3328 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3329 non-kernel trap prologues.
3330
3331 * mips-tdep.c (find_proc_desc): Delete function.
3332 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3333 simplify.
3334 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3335 mips_insn32_frame_cache.
3336
3337 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3338 Simplify as NEXT_FRAME is NULL.
3339 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3340
3341 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3342 local variable.
3343 (mips_skip_prologue): Update.
3344
3345 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3346 "cur_frame" parameter.
3347 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3348 (mips_insn32_frame_cache, find_proc_desc): Update
3349
3350 * config/vax/nm-obsd.h: Delete file.
3351 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3352 * config/vax/nm-nbsd.h: Delete file.
3353 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3354 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3355 * config/sh/nm-nbsd.h: Delete file.
3356 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3357 * config/rs6000/nm-rs6000ly.h: Delete file.
3358 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3359 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3360 * config/powerpc/nm-obsd.h: Delete file.
3361 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3362 * config/powerpc/nm-nbsd.h: Delete file.
3363 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3364 * config/pa/nm-obsd.h: Delete file.
3365 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3366 * config/mips/nm-nbsd.h: Delete file.
3367 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3368 * config/m88k/nm-obsd.h: Delete file.
3369 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3370 * config/m68k/nm-nbsd.h: Delete file.
3371 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3372 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3373 * config/i386/nm-nbsd.h: Delete file.
3374 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3375 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3376 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3377 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3378 * config/i386/nm-i386lynx.h: Delete file.
3379 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3380 * config/arm/nm-nbsd.h: Delete file.
3381 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3382 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3383
3384 * config/i386/tm-fbsd.h: Delete file.
3385 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3386 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3387
3388 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3389 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3390 * config/rs6000/aix4.mt (TM_FILE): Set to
3391 config/rs6000/tm-rs6000.h.
3392 * config/powerpc/tm-ppc-aix.h: Delete file.
3393 * config/powerpc/aix.mt (TM_FILE): Set to
3394 config/rs6000/tm-rs6000.h.
3395 * config/m68k/tm-linux.h: Delete file.
3396 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3397 * config/i386/tm-linux64.h: Delete file.
3398 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3399 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3400
3401 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3402 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3403 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3404 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3405 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3406 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3407 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3408 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3409 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3410
3411 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3412 gdb_host_cpu.
3413
3414 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3415
3416 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3417 Minor reformatting. Some code factoring.
3418
3419 2004-09-02 Andrew Cagney <cagney@gnu.org>
3420
3421 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3422 * config/vax/tm-nbsd.h: Delete file.
3423 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3424 * config/sparc/tm-vxworks.h: Delete file.
3425 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3426 * config/sparc/tm-nbsd.h: Delete file.
3427 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3428 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3429 * config/sparc/tm-linux.h: Delete file.
3430 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3431 * config/s390/tm-linux.h: Delete file.
3432 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3433 * config/pa/tm-bsd.h: Delete file.
3434 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3435 * config/m68k/tm-obsd.h: Delete file.
3436 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3437 * config/m68k/tm-nbsd.h: Delete file.
3438 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3439 * config/i386/tm-vxworks.h: Delete file.
3440 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3441 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3442 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3443 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3444 * config/i386/tm-nbsd.h: Delete file.
3445 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3446 * config/i386/tm-i386lynx.h: Delete file.
3447 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3448 * config/cris/tm-cris.h: Delete file.
3449
3450 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3451 * configure: Re-generate.
3452 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3453 * config/arm/tm-nbsd.h: Delete file.
3454
3455 * config/powerpc/tm-ppcle-sim.h: Delete.
3456 * config/powerpc/tm-ppcle-eabi.h: Delete.
3457 * config/powerpc/tm-nbsd.h: Delete.
3458 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3459 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3460 tm-ppcle-eabi.h.
3461
3462 * config/i386/nto.mh (NAT_FILE): Delete.
3463 * config/i386/nm-nto.h: Delete.
3464
3465 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3466 * config/m68k/tm-os68k.h: Ditto.
3467 * config/m68k/tm-monitor.h: Ditto.
3468 * config/m68k/tm-cisco.h: Ditto.
3469 * config/m68k/st2000.mt (TM_FILE): Delete.
3470 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3471 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3472 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3473 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3474
3475 * config/m68k/tm-st2000.h: Delete.
3476 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3477 * config/sparc/fbsd.mt (TM_FILE): Delete.
3478 * config/sparc/tm-fbsd.h: Delete.
3479
3480 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3481 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3482 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3483
3484 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3485 GDB_TM_FILE and GDB_XM_FILE.
3486 * gdbarch.c: Re-generate.
3487 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3488 quotes in macro definition.
3489 * configure.in: Re-generate.
3490
3491 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3492 validating architecture methods.
3493 * gdbarch.c: Re-generate.
3494
3495 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3496 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3497 GDB_MULTI_ARCH_PARTIAL.
3498 * gdbarch.h: Re-generate.
3499
3500 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3501 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3502 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3503 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3504 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3505 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3506 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3507 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3508 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3509 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3510 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3511 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3512
3513 2004-09-01 Andrew Cagney <cagney@gnu.org>
3514
3515 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3516 and main_func_highpc.
3517 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3518 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3519 * nlmread.c (nlm_symfile_read): Update.
3520
3521 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3522
3523 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3524 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3525 (find_proc_desc): Remove dead code.
3526
3527 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3528
3529 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3530
3531 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3532
3533 * observer.sh: Add struct so_list declaration.
3534 * Makefile.in: Add dependencies on observer.h for solib.c and
3535 breakpoint.c.
3536 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3537 function.
3538 (_initialize_breakpoint): Register
3539 disable_breakpoints_in_unloaded_shlib as an observer of the
3540 "solib unloaded" observation event.
3541 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3542 call decode_line_1 so unfound breakpoint errors are silent.
3543 * solib.c (update_solib_list): When a solib is discovered to have
3544 been unloaded by the program, notify all observers of the
3545 "solib unloaded" observation event.
3546
3547 2004-09-01 Andrew Cagney <cagney@gnu.org>
3548
3549 * frame.c: Include "objfiles.h".
3550 (inside_main_func): New function.
3551 (get_prev_frame): Use new inside_main_func.
3552 * Makefile.in (frame.o): Update dependencies.
3553 * defs.h (inside_main_func): Delete declaration.
3554 * blockframe.c (inside_main_func): Delete function.
3555
3556 2004-08-31 Jim Blandy <jimb@redhat.com>
3557
3558 * dwarf2read.c (is_vtable_name): New function, based on logic from
3559 read_structure_type, but passing the correct length to strncmp,
3560 and using 'sizeof' instead of 'strlen'.
3561 (read_structure_type): Call it.
3562
3563 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3564
3565 * config/powerpc/aix.mh: Add comment.
3566
3567 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3568
3569 * MAINTAINERS: Add self to Write-After-Approval.
3570
3571 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3572
3573 * MAINTAINERS: Add self to Write-After-Approval.
3574
3575 2004-08-30 Andrew Cagney <cagney@gnu.org>
3576
3577 Fix PR breakpoints/1757.
3578 * infrun.c (struct execution_control_state): Replace
3579 remove_breakpoints_on_following_step with
3580 step_after_step_resume_breakpoint.
3581 (init_execution_control_state): Update.
3582 (handle_inferior_event): For signals, when stepping off a
3583 breakpoint, set step_after_step_resume_breakpoint. When
3584 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3585 (keep_going): Delete code handling
3586 remove_breakpoints_on_following_step.
3587
3588 2004-08-29 David Lecomber <david@streamline-computing.com>
3589
3590 Fix PR gdb/648
3591 * language.h (enum array_ordering): New enum.
3592 * language.h (struct language_defn): New la_array_ordering
3593 attribute.
3594 * language.c (unknown_language_defn, auto_language_defn)
3595 (local_language_defn): Ditto.
3596 * ada-lang.c (ada_language_defn): Ditto.
3597 * c-lang.c (c_language_defn, cplus_language_defn)
3598 (asm_language_defn, minimal_language_defn): Ditto.
3599 * f-lang.c (f_language_defn): Ditto.
3600 * jv-lang.c (java_language_defn): Ditto.
3601 * m2-lang.c (f_language_defn): Ditto.
3602 * objc-lang.c (objc_language_defn): Ditto.
3603 * p-lang.c (pascal_language_defn): Ditto.
3604 * scm-lang.c (scm_language_defn): Ditto.
3605 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3606 oriented large to small in type structure.
3607 * dwarf2read.c (read_array_order): New function.
3608 (read_array_type): Use read_array_order to check row/column
3609 major ordering.
3610
3611 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3612
3613 * target.c (target_resize_to_sections): Check
3614 current_target.to_sections for an old value when updating.
3615
3616 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3617
3618 * procfs.c (dbx_link_bpt_addr): New static global variable.
3619 (dbx_link_shadow_contents): New static global variable.
3620 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3621 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3622 if we just hit it.
3623 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3624 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3625 from run to run.
3626 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3627 after the inferior has been forked.
3628 (remove_dbx_link_breakpoint): New function.
3629 (dbx_link_addr): New function.
3630 (insert_dbx_link_bpt_in_file): New function.
3631 (insert_dbx_link_bpt_in_region): New function.
3632 (insert_dbx_link_breakpoint): New function.
3633 (proc_trace_syscalls_1): New function, extracted from
3634 proc_trace_syscalls.
3635 (proc_trace_syscalls): Replace extract code by call to
3636 proc_trace_syscalls_1.
3637 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3638 is no longer valid.
3639
3640 2004-08-25 Jim Blandy <jimb@redhat.com>
3641
3642 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3643
3644 2004-08-25 Andrew Cagney <cagney@gnu.org>
3645
3646 * infrun.c (struct execution_control_state): Delete field
3647 "stepping_through_sigtramp".
3648 (init_execution_control_state): Do not set same.
3649 (context_switch): Do not pass same to save_infrun_state and
3650 load_infrun_state.
3651 * gdbthread.h (struct thread_info): Delete field
3652 stepping_through_sigtramp.
3653 (save_infrun_state, load_infrun_state): Delete parameter
3654 stepping_through_sigtramp.
3655 * thread.c (load_infrun_state, save_infrun_state): Update.
3656
3657 * infrun.c: Re-indent. Move expression operators to the beginning
3658 of the line. Remove long disabled #if 0 code.
3659
3660 2004-08-24 Andrew Cagney <cagney@gnu.org>
3661
3662 * doublest.h (floatformat_ieee_quad): Rename
3663 floatformat_ia64_quad.
3664 * doublest.c (floatformat_ieee_quad): Rename
3665 floatformat_ia64_quad.
3666 (_initialize_doublest): Update.
3667
3668 2004-08-24 Jim Blandy <jimb@redhat.com>
3669
3670 * dwarf2expr.h (struct dwarf_expr_context): New members
3671 'num_pieces' and 'pieces', for returning the result of an
3672 expression that uses DW_OP_piece.
3673 (struct dwarf_expr_piece): New struct type.
3674 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3675 pieces.
3676 (free_dwarf_expr_context): Free pieces, if any.
3677 (add_piece): New function.
3678 (execute_stack_op): Implement DW_OP_piece.
3679 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3680 expression is a list of pieces, print an error message.
3681 (dwarf2_loc_desc_needs_frame): If the expression yields
3682 pieces, and any piece is in a register, then we need a frame.
3683
3684 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3685 the stack until we've decided what sort of result the evaluation
3686 has produced. Use separate variables, with more specific names.
3687
3688 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3689
3690 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3691 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3692 (arm_netbsd_init_abi_common): Register them.
3693
3694 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3695
3696 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3697
3698 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3699 safe_frame_unwind_memory instead of target_read_memory.
3700
3701 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3702 Reorder includes.
3703 (fetch_register, store_register): Remove prototypes.
3704 (child_resume): Reorganize code and comments such that it is
3705 grouped a bit more logically.
3706 (attach): Explicitly compare errno against 0.
3707 (detach): Likewise. Use perror_with_name instead of
3708 print_sys_errmsg.
3709 * Makefile.in (infptrace.o): Update dependencies.
3710
3711 * ia64-linux-nat.c: Update copyright year.
3712 (fetch_debug_register, store_debug_register)
3713 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3714 PTRACE_TYPE_ARG3.
3715 * config/ia64/nm-linux.h: Update copyright year.
3716 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3717
3718 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3719 from CORE_ADDR to struct frame_info *. Use
3720 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3721 (amd64_linux_sigtramp_p): Adjust for changed signature of
3722 and64_linux_sigtramp_start
3723
3724 * gdb_ptrace.h: GNU/Linux.
3725
3726 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3727 Remove defines.
3728
3729 * infptrace.c: Include "gdb_assert.h".
3730 (PTRACE_XFER_TYPE): Remove define.
3731 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3732 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3733 Tweak comment.
3734 (fetch_inferior_registers, store_inferior_registers): Remove
3735 redundant culry braces. Tweak comment. s/regno/regnum.
3736 * Makefile.in (infptrace.o): Update dependencies.
3737
3738 * configure.in: Change test for return type of ptrace to default
3739 to `long' instead of `int'.
3740 * configure: Regenerate.
3741
3742 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3743
3744 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3745
3746 * configure.in: Check for ttrace function.
3747 * configure, config.in: Regenerate.
3748
3749 * gdb_ptrace.h: New file.
3750 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3751 <sys/ptrace.h>.
3752 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3753 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3754 (attach): Don't define PT_ATTACH.
3755 (detach): Don't define PT_DETACH.
3756 * Makefile.in (gdb_ptrace_h): New variable.
3757 (infptrace.o): Update dependencies.
3758
3759 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3760
3761 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3762 instead of `int' if not already defined.
3763 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3764 PTRACE_TYPE_ARG3.
3765 * infptrace.c (call_ptrace): Revert change that replaced
3766 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3767
3768 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3769
3770 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3771 Remove defines.
3772
3773 * linux-nat.c (kill_inferior): Add missing third and fourth
3774 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3775
3776 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3777 PTRACE_TYPE_RET.
3778
3779 * proc-why.c (proc_prettyfprint_why): Fix format string.
3780
3781 * solib-osf.c (osf_current_sos): Remove unsused label.
3782
3783 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3784 curses headers.
3785 * configure, config.in: Regenerate.
3786 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3787 <ncurses/ncurses.h>.
3788
3789 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3790 * config/nm-nbsd.h: Update copyright year.
3791 (PTRACE_ARG3_TYPE): Remove define.
3792
3793 * sparc-nat.c (fetch_inferior_registers)
3794 (store_inferior_registers, sparc_xfer_wcookie):
3795 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3796
3797 * alphabsd-nat.c (fetch_inferior_registers):
3798 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3799 PTRACE_TYPE_ARG3.
3800 * amd64bsd-nat.c (fetch_inferior_registers)
3801 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3802 PTRACE_TYPE_ARG3.
3803 * armnbsd-nat.c: Update copyright year.
3804 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3805 (store_register, store_regs, store_fp_register, store_fp_regs):
3806 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3807 * hppabsd-nat.c (fetch_inferior_registers)
3808 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3809 PTRACE_TYPE_ARG3.
3810 * i386bsd-nat.c (fetch_inferior_registers)
3811 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3812 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3813 * m68kbsd-nat.c (fetch_inferior_registers)
3814 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3815 PTRACE_TYPE_ARG3.
3816 * m88kbsd-nat.c (fetch_inferior_registers)
3817 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3818 PTRACE_TYPE_ARG3.
3819 * mipsnbsd-nat.c: Update copyright year.
3820 (fetch_inferior_registers, store_inferior_registers):
3821 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3822 * ns32knbsd-nat.c: Update copyright year.
3823 (fetch_inferior_registers, store_inferior_registers):
3824 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3825 * ppcnbsd-nat.c (fetch_inferior_registers):
3826 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3827 PTRACE_TYPE_ARG3.
3828 * ppcobsd-nat.c (fetch_inferior_registers):
3829 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3830 PTRACE_TYPE_ARG3.
3831 * shnbsd-nat.c: Update copyright year.
3832 (fetch_inferior_registers, store_inferior_registers):
3833 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3834 * vaxbsd-nat.c (fetch_inferior_registers)
3835 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3836 PTRACE_TYPE_ARG3.
3837
3838 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3839 PTRACE_TYPE_ARG3.
3840 * infptrace.c (call_ptrace, child_resume, attach, detach)
3841 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3842 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3843 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3844 PTRACE_TYPE_ARG3.
3845
3846 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3847
3848 * defs.h: Remove out-of-date comment.
3849 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3850 [!GETENV_PROVIDED] (getenv): Remove prototype.
3851
3852 * standalone.c: Remove file.
3853 * Makefile.in (standalone.o): Remove dependency.
3854
3855 * i386-linux-nat.c (dummy_sse_values): Remove function and
3856 prototype.
3857 (i386_linux_dr_get): Fix typo in comment.
3858 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3859
3860 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3861
3862 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3863 from declaration.
3864 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3865 from definition.
3866
3867 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3868
3869 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3870 parenthesis in definition.
3871 * configure: Regenerated.
3872
3873 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3874
3875 * PROBLEMS: Mention build/1411.
3876
3877 2004-08-09 Robert Millan <robertmh@gnu.org>
3878
3879 Committed by Nathanael Nerode.
3880 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3881 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3882
3883 2004-08-12 Andrew Cagney <cagney@gnu.org>
3884
3885 * NEWS: Mention fixes in GDB 6.2.1.
3886 * PROBLEMS: Remove mention of mips-irix.
3887
3888 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3889
3890 * config/powerpc/xm-aix.h: Delete.
3891 * config/powerpc/aix.mh (MH_FILE): Remove.
3892 * config/powerpc/aix432.mh (MH_FILE): Remove.
3893
3894 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3895
3896 * config/powerpc/aix.mh: Remove obsolete comment.
3897 * config/powerpc/aix432.mh: Likewise.
3898
3899 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3900
3901 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3902
3903 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3904
3905 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3906 this file is now empty.
3907 * config/xm-aix4.h: Remove, this file is no longer included
3908 anywhere.
3909
3910 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3911
3912 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3913 that file is now empty.
3914 (termdef): Remove prototype, function no longer used.
3915
3916 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3917
3918 * doc/gdbint.texinfo (Host Definition): Remove documentation
3919 for USE_O_NOCTTY, no longer used.
3920 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3921 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3922
3923 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3924
3925 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3926 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3927 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3928
3929 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3930
3931 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3932 instead of FIVE_ARG_PTRACE.
3933
3934 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3935 (new_tty): Use O_NOCTTY unconditionally.
3936
3937 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3938
3939 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3940 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3941 fflush on stdout.
3942
3943 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3944
3945 * xcoff_symfile_finish: Replace last call to xmfree by call
3946 to xfree.
3947
3948 2004-08-10 Andrew Cagney <cagney@gnu.org>
3949
3950 * main.c (captured_main): Delete call to init_malloc.
3951 * defs.h (init_malloc): Delete declaration.
3952 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3953 (init_malloc): Delete functions.
3954
3955 * defs.h (xmfree): Delete.
3956 * utils.c (xmfree): Delete function.
3957 (xfree): Inline calls to xmfree and mfree.
3958 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3959 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3960 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3961 * somread.c (som_symfile_finish): Ditto.
3962 * objfiles.c (allocate_objfile, free_objfile):
3963 * nlmread.c (nlm_symfile_finish): Ditto.
3964 * hpread.c (hpread_symfile_finish): Ditto.
3965 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3966 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3967 * coffread.c (coff_symfile_finish): Ditto.
3968
3969 * defs.h (xmcalloc): Delete declaration.
3970 * utils.c (xmcalloc): Delete.
3971 (xcalloc): Inline calls to xmcalloc and mcalloc.
3972 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3973 xcalloc and xfree.
3974 * symtab.c (create_demangled_names_hash): Ditto.
3975
3976 * defs.h (xmrealloc): Delete.
3977 * utils.c (xmrealloc): Delete.
3978 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3979 * symmisc.c (extend_psymbol_list): Use xrealloc.
3980 * source.c (find_source_lines): Ditto.
3981 * hpread.c (hpread_lookup_type): Ditto.
3982 * dbxread.c (add_bincl_to_list): Ditto.
3983
3984 * utils.c (xmmalloc): Delete.
3985 (xmalloc): Inline xmmalloc and mmalloc calls.
3986 (msavestring): Use xmalloc.
3987 * defs.h (xmmalloc): Delete declaration.
3988 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3989 xmmalloc.
3990 * symmisc.c (extend_psymbol_list): Ditto.
3991 * symfile.c (init_psymbol_list): Ditto.
3992 * source.c (find_source_lines): Ditto.
3993 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3994 * elfread.c (elf_symtab_read): Ditto.
3995 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3996 * coffread.c (coff_symfile_init): Ditto.
3997
3998 2004-08-10 David Carlton <carlton@bactrian.org>
3999
4000 * MAINTAINERS: Remove David Carlton from c++ testsuite
4001 maintainers.
4002
4003 2004-08-10 Jerome Guitton <guitton@gnat.com>
4004
4005 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4006 print a line feed before the prompt.
4007
4008 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4009
4010 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4011
4012 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4013
4014 General cleanup of the AIX xm include file:
4015 * config/xm-aix4.h (fd_set): Remove undefine.
4016 Remove include of <sys/select.h>.
4017 (HAVE_TERMIO): Remove define.
4018 (USG): Likewise.
4019 (NULL): Remove redefine.
4020 (alloca): Remove #pragma.
4021 (vfork): Remove define.
4022 (termdef): Remove.
4023 (SIGWINCH_HANDLER): Remove.
4024 (SIGWINCH_HANDLER_BODY): Remove.
4025
4026 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4027
4028 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4029 GDB_OSABI_OPENBSD_ELF.
4030
4031 2004-08-07 Robert Millan <robertmh@gnu.org>
4032
4033 * bsd-kvm.c: Check for nlist.h before including it.
4034
4035 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4036
4037 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4038 sigcontext' offset consistency checks for ancient BSD.
4039
4040 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4041
4042 * configure.in: Check for <sys/types.h>. Check return and
4043 argument types of ptrace.
4044 * configure, config.in: Regenerate.
4045
4046 2004-08-09 Jim Blandy <jimb@redhat.com>
4047
4048 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4049 rs6000_register_sim_regno): Doc fixes.
4050
4051 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4052
4053 * mips-tdep.c: Include "floatformat.h".
4054 (n32n64_floatformat_always_valid): New function.
4055 (floatformat_n32n64_long_double_big): New constant.
4056 (mips_gdbarch_init): Set size and format of long double
4057 for N32 and N64 ABIs.
4058 * Makefile.in (mips-tdep.o): Update dependencies.
4059
4060 2004-08-08 Andrew Cagney <cagney@gnu.org>
4061
4062 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4063 print. Improve script's error messages.
4064 * gdbarch.h: Re-generate.
4065
4066 * gdbarch.sh (pformat): New function.
4067 (float_format, double_format, long_double_format): List with bit
4068 members. Use pformat when printing.
4069 * gdbarch.c, gdbarch.h: Re-generate.
4070
4071 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4072
4073 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4074 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4075 (ppcnbsd_supply_pcb): New function.
4076 (_initialize_ppcnbsd_nat): New prototype and function.
4077 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4078 (LOADLIBES): New variable.
4079 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4080
4081 2004-08-08 Andrew Cagney <cagney@gnu.org>
4082
4083 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4084 (builtin_type_ieee_double, builtin_type_ia64_quad)
4085 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4086 BE/LE floating-point types.
4087 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4088 (builtin_type_ieee_double, builtin_type_ia64_quad)
4089 (builtin_type_ia64_spill): Declare.
4090 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4091 (floatformat_ieee_double, floatformat_arm_ext)
4092 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4093 of LE/BE floatformats.
4094 * doublest.h: (struct floatformat, floatformat_ieee_single)
4095 (floatformat_ieee_double, floatformat_arm_ext)
4096 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4097
4098 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4099
4100 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4101
4102 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4103 instead of regcache_raw_supply when storing the registers.
4104
4105 * i386gnu-nat.c: Update copyright year.
4106 (gnu_store_registers): Don't use deprecated_registers and
4107 deprecated_registers_valid. Use regcache_valid_p and
4108 regcache_raw_supply instead.
4109
4110 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4111 frame_pc_unwind.
4112
4113 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4114 variables. Incapitalized "process".
4115
4116 * configure.in: Add cursesX to the list of possible curses libs.
4117 Add cursesX.h to the list of possible curses headers.
4118 * configure, config.in: Regenerate.
4119
4120 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4121
4122 * configure.in: Test for struct lwp in <sys/lwp.h>.
4123 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4124 the offset of l_addr in struct lwp.
4125
4126 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4127
4128 * bsd-kvm.c: Include "gdbcore.h"
4129 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4130
4131 2004-08-07 Andrew Cagney <cagney@gnu.org>
4132
4133 * gdbtypes.c (build_flt, build_complex): New functions.
4134 (gdbtypes_post_init): Use.
4135
4136 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4137
4138 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4139 through to builtin_type_uint128.
4140
4141 * c-exp.y: Use builtin_type function to obtain builtin types.
4142
4143 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4144 builtin_uint128.
4145 * gdbtypes.c (gdbtypes_post_init): Update.
4146 (build_gdbtypes): Move initialization of builtin_type_int0
4147 through to builtin_type_uint128 from here ...
4148 (_initialize_gdbtypes): ... to here.
4149 * d10v-tdep.c (d10v_register_type): Update.
4150
4151 * doublest.c: Update copyright.
4152 (floatformat_from_length): Call error when floatformat is NULL.
4153 (extract_floating_by_length): Remove NULL fmt check.
4154 (store_floating_by_length): Ditto.
4155
4156 2004-08-07 Andrew Cagney <cagney@gnu.org>
4157
4158 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4159 that the register is valid.
4160
4161 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4162
4163 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4164 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4165 struct frame_info *. Use safe_frame_unwind_memory instead of
4166 deprecated_read_memory_nobpt.
4167 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4168 changed signature of i386_linux_sigtramp_start and
4169 i386_linux_rt_sigtramp_start.
4170
4171 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4172 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4173 instead of deprecated_read_memory_nobpt.
4174 (i386nbsd_sigtramp_p): Adjust for changed signature of
4175 i386nbsd_sigtramp_offset.
4176
4177 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4178 safe_frame_unwind_memory instead of target_read_memory.
4179
4180 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4181 !NO_SYS_FILE.
4182 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4183 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4184 (_initialize_kernel_u_addr): Remove prototype and function.
4185 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4186 !NO_SYS_FILE.
4187 * xcoffread.c: Likewise.
4188
4189 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4190
4191 * vax-nat.c: New file.
4192 * vaxbsd-nat.c: Tweak comment.
4193 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4194 vaxnbsd-tdep.c.
4195 (vax-nat.o): New dependency.
4196 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4197 (vax-*-ultrix2*): Remove.
4198 * config/vax/vax.mh: New file.
4199 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4200 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4201 (vax_register_u_addr): New prototype.
4202 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4203 * config/vax/vaxult2.mh: Remove file.
4204 * config/vax/vaxult.mh: Remove file.
4205 * config/vax/vaxbsd.mh: Remove file.
4206 * config/vax/vax.mt (TM_FILE): Remove.
4207 * config/vax/tm-vaxbsd.h: Remove file.
4208
4209 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4210
4211 * aix-thread.c (get_signaled_thread): New function.
4212 (iter_trap): Delete, no longer used.
4213 (iter_tid): New function.
4214 (pd_update): Find the thread that received the SIGTRAP signal
4215 by first locating the kernel thread, and then finding its
4216 associated thread.
4217
4218 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4219
4220 * lin-lwp.c (child_wait): Continue inferior after processing
4221 PTRACE_EVENT_CLONE event.
4222
4223 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4224
4225 * MAINTAINERS: Add self to Write-After-Approval.
4226
4227 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4228
4229 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4230 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4231
4232 2004-08-05 Andrew Cagney <cagney@gnu.org>
4233
4234 * config/xm-sysv4.h: Delete file.
4235 * config/mips/xm-irix5.h: Delete file.
4236 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4237 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4238 * config/ia64/xm-aix.h: Delete file.
4239 * config/ia64/aix.mh (XM_FILE): Delete.
4240 * config/pa/xm-hppah.h: Delete file.
4241 * config/pa/hpux11w.mh (XM_FILE): Delete.
4242 * config/pa/hpux11.mh (XM_FILE): Delete.
4243 * config/pa/hpux1020.mh (XM_FILE): Delete.
4244 * config/pa/hppahpux.mh (XM_FILE): Delete.
4245
4246 * config/alpha/xm-alphalinux.h: Delete file.
4247 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4248 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4249 * config/alpha/xm-alphaosf.h: Delete file.
4250 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4251 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4252 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4253 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4254
4255 * config/i386/xm-i386v.h: Delete file.
4256 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4257 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4258 * config/i386/xm-i386sco.h: Delete file.
4259 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4260 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4261 * config/i386/xm-i386v4.h: Delete file.
4262 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4263 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4264 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4265 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4266
4267 * config/vax/xm-vax.h: Delete file.
4268 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4269 * config/vax/xm-vaxult2.h: Delete file.
4270 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4271 * config/vax/vaxult2.mh (XM_FILE): Delete.
4272 * config/vax/xm-vaxult.h: Delete file.
4273 * config/vax/vaxult.mh (XM_FILE): Delete.
4274 * config/vax/xm-vaxbsd.h: Delete file.
4275 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4276
4277 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4278 * gdbarch.h, gdbarch.c: Re-generate.
4279 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4280 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4281 * frame.h: Delete deprecated_read_fp from comments.
4282 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4283 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4284
4285 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4286
4287 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4288 trampoline in OpenBSD 3.5-current.
4289
4290 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4291 SSE registers.
4292
4293 * Makefile.in: Remove embedded page breaks.
4294
4295 2004-08-04 Jim Blandy <jimb@redhat.com>
4296
4297 * regcache.c (regcache_raw_read): Assert that, after calling
4298 target_fetch_registers, the register we're reading is cached.
4299
4300 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4301 a call to 'internal_error', with a more helpful error message.
4302 * rs6000-tdep.c (e500_pseudo_register_read,
4303 e500_pseudo_register_write, rs6000_store_return_value): Same.
4304
4305 2004-08-04 Andrew Cagney <cagney@gnu.org>
4306
4307 * Makefile.in: Update dependencies.
4308
4309 2004-08-04 Jim Blandy <jimb@redhat.com>
4310
4311 Change the layout of the PowerPC E500 raw register cache to allow
4312 the lower 32-bit halves of the GPRS to be their own raw registers,
4313 not pseudoregisters.
4314 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4315 add ppc_ev0_upper_regnum flag.
4316 * rs6000-tdep.c: #include "reggroups.h".
4317 (spe_register_p): Recognize the ev upper half registers as SPE
4318 registers.
4319 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4320 registers.
4321 (e500_move_ev_register): New function.
4322 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4323 vector registers are the pseudo-registers now, formed by splicing
4324 together the gprs and the upper-half registers.
4325 (e500_register_reggroup_p): New function.
4326 (P): Macro deleted.
4327 (P8, A4): New macro.
4328 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4329 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4330 macros.
4331 (registers_e500): Rearrange register set so that the raw register
4332 set contains 32-bit GPRs and upper-half registers, and the SPE
4333 vector registers become pseudo-registers.
4334 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4335 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4336 register numbers are now the same for the E500 as they are for
4337 other PowerPC variants. Register e500_register_reggroup_p as the
4338 register group function for the E500.
4339 * Makefile.in (rs6000-tdep.o): Update dependencies.
4340
4341 Adapt PPC E500 native support to the new raw regcache layout.
4342 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4343 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4344 (fetch_spe_register, store_spe_register): Handle fetching/storing
4345 all the SPE registers at once, if regno == -1. These now take
4346 over the job of fetch_spe_registers and store_spe_registers.
4347 (fetch_spe_registers, store_spe_registers): Deleted.
4348 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4349 unconditionally; they're always raw. Fetch/store SPE upper half
4350 registers, if present, instead of ev registers.
4351 (fetch_register, store_register): Remove sanity checks: gprs are
4352 never pseudo-registers now, so we never need to even mention any
4353 registers that are ever pseudoregisters.
4354
4355 Use a fixed register numbering when communicating with the PowerPC
4356 simulator.
4357 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4358 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4359 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4360 New functions.
4361 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4362 init_sim_regno_table.
4363 * Makefile.in (gdb_sim_ppc_h): New variable.
4364 (rs6000-tdep.o): Update dependencies.
4365
4366 2004-08-02 Andrew Cagney <cagney@gnu.org>
4367
4368 * cris-tdep.c (cris_register_size): Restore function, still used
4369 locally.
4370
4371 * gdbarch.sh (deprecated_target_read_fp)
4372 (deprecated_frame_locals_address, deprecated_frame_args_address)
4373 (deprecated_frame_chain_valid, deprecated_frame_chain)
4374 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4375 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4376 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4377 * gdbarch.h, gdbarch.c: Re-generate.
4378 * regcache.c (deprecated_read_fp): Do not call
4379 DEPRECATED_TARGET_READ_FP_P.
4380 * infcmd.c (default_print_registers_info): Do not call
4381 DEPRECATED_DO_REGISTERS_INFO.
4382 * frame-base.c (default_frame_locals_address): Do not call
4383 DEPRECATED_FRAME_LOCALS_ADDRESS.
4384 (default_frame_args_address): Do not call
4385 DEPRECATED_FRAME_ARGS_ADDRESS.
4386
4387 * gdbarch.sh (deprecated_register_raw_size)
4388 (deprecated_register_virtual_size:int): Delete.
4389 * gdbarch.h, gdbarch.c: Re-generate.
4390 * cris-tdep.c (cris_register_size): Delete.
4391 (cris_gdbarch_init): Update.
4392 * alpha-tdep.c (alpha_register_raw_size)
4393 (alpha_register_virtual_size): Delete.
4394 (alpha_gdbarch_init): Update.
4395
4396 * gdbarch.sh (deprecated_register_virtual_type)
4397 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4398 (deprecated_dummy_write_sp): Delete.
4399 * gdbarch.h, gdbarch.c: Re-generate.
4400
4401 * gdbarch.sh (deprecated_register_bytes): Delete.
4402 * gdbarch.h, gdbarch.c: Re-generate.
4403 * regcache.c (deprecated_register_bytes): New function.
4404 * regcache.h (deprecated_register_bytes): Declare.
4405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4406 * v850-tdep.c (v850_gdbarch_init): Update.
4407 * sh64-tdep.c (sh64_gdbarch_init): Update.
4408 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4409 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4410 * mcore-tdep.c (mcore_gdbarch_init): Update.
4411 * cris-tdep.c (cris_gdbarch_init): Update.
4412 * arm-tdep.c (arm_gdbarch_init): Update.
4413 * remote.c (init_remote_state): Update.
4414 * remote-vx.c (vx_prepare_to_store): Update.
4415 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4416 * irix5-nat.c (fetch_core_registers): Update.
4417 * cris-tdep.c (cris_register_bytes_ok): Update.
4418 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4419
4420 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4421 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4422 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4423 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4424 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4425 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4426 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4427 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4428 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4429 with mips_insn16 and mips_insn32.
4430
4431 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4432 * rs6000-tdep.c (rs6000_push_dummy_call)
4433 (rs6000_extract_return_value): Use register_size.
4434 * xstormy16-tdep.c (xstormy16_get_saved_register)
4435 (xstormy16_extract_return_value): Ditto.
4436 * valops.c (value_assign): Ditto.
4437 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4438 * v850-tdep.c (v850_extract_return_value): Ditto.
4439 * tracepoint.c (collect_symbol): Ditto.
4440 * target.c (debug_print_register): Ditto.
4441 * stack.c (frame_info): Ditto.
4442 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4443 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4444 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4445 (store_register_using_P): Ditto.
4446 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4447 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4448 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4449 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4450 * regcache.c (deprecated_read_register_bytes)
4451 (deprecated_write_register_bytes, read_register)
4452 (write_register): Ditto.
4453 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4454 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4455 * monitor.c (monitor_supply_register, monitor_fetch_register)
4456 (monitor_store_register): Ditto.
4457 * mn10300-tdep.c (mn10300_pop_frame_regular)
4458 (mn10300_print_register): Ditto.
4459 * mipsv4-nat.c (fill_fpregset): Ditto.
4460 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4461 (mips64_fill_fpregset): Ditto.
4462 * mi/mi-main.c (register_changed_p, get_register)
4463 (mi_cmd_data_write_register_values): Ditto.
4464 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4465 * irix5-nat.c (fill_gregset, fetch_core_registers):
4466 * infrun.c (write_inferior_status_register): Ditto.
4467 * infptrace.c (fetch_register, store_register): Ditto.
4468 * infcmd.c (default_print_registers_info): Ditto.
4469 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4470 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4471 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4472 * hpux-thread.c (hpux_thread_fetch_registers)
4473 (hpux_thread_store_registers): Ditto.
4474 * hppah-nat.c (store_inferior_registers, fetch_register):
4475 * findvar.c (value_from_register): Ditto.
4476 * dve3900-rom.c (fetch_bitmapped_register):
4477 * cris-tdep.c (cris_gdbarch_init): Ditto.
4478 * alpha-tdep.h: Ditto.
4479 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4480
4481 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4482 DEPRECATED_REGISTER_RAW_SIZE from comments.
4483 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4484 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4485 DEPRECATED_REGISTER_RAW_SIZE.
4486 * findvar.c (value_of_register): Simplify by assuming that the
4487 registers raw and virtual sizes are identical.
4488 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4489 comment.
4490 * arch-utils.c (generic_register_size): Simplify by assuming
4491 register_type.
4492
4493 * regcache.c (legacy_read_register_gen, real_register)
4494 (legacy_write_register_gen): Delete, not used.
4495
4496 * regcache.c (struct regcache_descr): Delete legacy_p.
4497 (init_legacy_regcache_descr): Delete function.
4498 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4499 Do not use deprecated register functions.
4500 (regcache_raw_read, deprecated_write_register_gen):
4501 (deprecated_read_register_gen, regcache_raw_write): Delete code
4502 predicated on legacy_p.
4503 (register_size): Delete check against register raw size.
4504
4505 * cris-tdep.c (cris_register_type): Replace
4506 cris_register_virtual_type.
4507 (cris_gdbarch_init): Update, set register_type.
4508
4509 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4510 * gdbarch.h, gdbarch.c: Re-generate.
4511 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4512 (arm_gdbarch_init) Do not set frameless function invocation.
4513 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4514 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4515 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4516 (frv_gdbarch_init): Do not set frameless function invocation.
4517 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4518 * sh-tdep.c (sh_gdbarch_init): Ditto.
4519 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4520 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4521 * avr-tdep.c (avr_gdbarch_init): Ditto.
4522
4523 * blockframe.c (legacy_frame_chain_valid): Delete function.
4524
4525 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4526 and pc. Update comments.
4527 (pc_in_dummy_frame): Delete function.
4528 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4529 use the "id".
4530 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4531 call_hi, top and pc, use the id.
4532 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4533
4534 * dummy-frame.c: Include "gdb_string.h".
4535 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4536 (generic_save_dummy_frame_tos): Delete.
4537 (dummy_frame_push): New function, replaces above.
4538 * dummy-frame.h: Update copyright.
4539 (dummy_frame_push): Declare.
4540 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4541 (generic_save_call_dummy_addr): Delete declarations.
4542 * infcall.c: Include "dummy-frame.h".
4543 (call_function_by_hand): Add locals caller_regcache,
4544 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4545 with call to frame_save_as_regcache plus cleanup. Delete calls to
4546 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4547 Move clear_proceed_status to just before the resume, add call to
4548 dummy_frame_push (discard cleanup).
4549 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4550 (dummy-frame.o): Add $(gdb_string_h).
4551
4552 2004-08-01 Andrew Cagney <cagney@gnu.org>
4553
4554 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4555 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4556 * dummy-frame.c (find_dummy_frame): Delete.
4557 (struct dummy_frame_cache, dummy_frame_sniffer)
4558 (dummy_frame_prev_register, dummy_frame_this_id)
4559 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4560 frame unwinder using a dummy_frame_cache.
4561
4562 2004-08-01 Andrew Cagney <cagney@gnu.org>
4563
4564 * frame.h (frame_save_as_regcache): Declare.
4565 * frame.c (frame_save_as_regcache): New function.
4566 (do_frame_read_register): Replace do_frame_unwind_register.
4567 (frame_pop): Use frame_save_as_regcache.
4568 * dummy-frame.c (generic_push_dummy_frame): Use
4569 frame_save_as_regcache.
4570
4571 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4572
4573 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4574 file as included until we record the first line in the linetable.
4575
4576 2004-08-01 Andrew Cagney <cagney@gnu.org>
4577
4578 * frame.h (deprecated_pop_dummy_frame)
4579 (deprecated_read_register_dummy)
4580 (deprecated_generic_find_dummy_frame): Delete.
4581 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4582 (deprecated_read_register_dummy)
4583 (deprecated_find_dummy_frame_regcache)
4584 (discard_innermost_dummy)
4585 (deprecated_pop_dummy_frame): Delete.
4586 (dummy_frame_this_id): Simplify.
4587 (struct dummy_frame): Delete "fp" and "sp".
4588 (find_dummy_frame): Simplify.
4589 (generic_push_dummy_frame): Do not set "fp" or "sp".
4590 (fprint_dummy_frames): Do not print "fp" and "sp"
4591
4592 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4593
4594 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4595 (struct i386_insn): New structure.
4596 (i386_match_insn): New function.
4597 (i386_frame_setup_skip_insns): New variable.
4598 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4599 array i386_frame_setup_insns of instructions that should be
4600 skipped inside the frame setup sequence.
4601
4602 2004-08-01 Andrew Cagney <cagney@gnu.org>
4603
4604 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4605 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4606 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4607 * stack.c (frame_info): Delete references to
4608 DEPRECATED_FRAME_INIT_SAVED_REGS and
4609 deprecated_get_frame_saved_regs.
4610 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4611 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4612 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4613 (frame_unwind_register_signed)
4614 (frame_unwind_register_unsigned)
4615 (frame_unwind_unsigned_register): Use register_size.
4616 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4617 (deprecated_frame_xmalloc_with_cleanup)
4618 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4619 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4620
4621 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4622 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4623 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4624 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4625
4626 * infcall.c (call_function_by_hand): Do not use
4627 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4628 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4629 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4630 DEPRECATED_STACK_ALIGN.
4631
4632 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4633
4634 Committed by Andrew Cagney.
4635 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4636
4637 2004-08-01 Andrew Cagney <cagney@gnu.org>
4638
4639 * mips-tdep.c (mips16_frame_cache)
4640 (mips16_frame_this_id, mips16_frame_prev_register)
4641 (mips16_frame_unwind, mips16_frame_sniffer)
4642 (mips16_frame_base_address, mips16_frame_base)
4643 (mips16_frame_base_sniffer, mips32_frame_cache)
4644 (mips32_frame_this_id, mips32_frame_prev_register)
4645 (mips32_frame_unwind, mips32_frame_sniffer)
4646 (mips32_frame_base_address, mips32_frame_base)
4647 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4648 separate heuristic mips16 and mips32 unwinders.
4649 (mips_stub_frame_cache, mips_stub_frame_this_id)
4650 (mips_stub_frame_prev_register)
4651 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4652 (mips_stub_frame_base_address, mips_stub_frame_base)
4653 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4654 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4655 match true mdebug frames.
4656 (non_heuristic_proc_desc): Add forward declaration.
4657
4658 2004-08-01 Andrew Cagney <cagney@gnu.org>
4659
4660 * config/mips/tm-irix6.h: Delete file.
4661 * config/mips/tm-irix5.h: Delete file.
4662 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4663 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4664
4665 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4666 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4667 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4668 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4669 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4670 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4671 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4672 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4673 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4674 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4675 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4676 (TARGET_SIGNAL_RAW_VALUES): Delete.
4677 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4678 Delete.
4679 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4680 (TARGET_HW_WATCH_LIMIT): Delete.
4681 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4682 * minimon.h: Delete file.
4683
4684 * trad-frame.c (trad_frame_get_this_base)
4685 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4686 functions.
4687 * trad-frame.h (trad_frame_set_this_base)
4688 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4689
4690 2004-07-31 Andrew Cagney <cagney@gnu.org>
4691
4692 * trad-frame.c (trad_frame_get_prev_register): Rename
4693 trad_frame_get_prev_register.
4694 * vax-tdep.c (vax_frame_prev_register): Update.
4695 * trad-frame.h: Update.
4696 * trad-frame.c (trad_frame_get_register): Update.
4697 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4698 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4699 Update.
4700 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4701 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4702 Update.
4703 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4704 Update.
4705 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4706 Update.
4707 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4708 Update.
4709 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4710 Update.
4711 * s390-tdep.c (s390_frame_prev_register)
4712 (s390_stub_frame_prev_register)
4713 (s390_sigtramp_frame_prev_register): Update.
4714 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4715 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4716 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4717 * m88k-tdep.c (m88k_frame_prev_register)
4718 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4719 * m32r-tdep.c (m32r_frame_prev_register): Update.
4720 * hppa-tdep.c (hppa_frame_prev_register_helper)
4721 * frv-tdep.c (frv_frame_prev_register): Update.
4722 * d10v-tdep.c (d10v_frame_prev_register): Update.
4723 * cris-tdep.c (cris_frame_prev_register): Update.
4724 * avr-tdep.c (avr_frame_prev_register): Update.
4725 * arm-tdep.c (arm_prologue_prev_register)
4726 (arm_sigtramp_prev_register): Update.
4727
4728 2004-07-31 Andrew Cagney <cagney@gnu.org>
4729
4730 * frame.h (legacy_saved_regs_unwind)
4731 (legacy_frame_chain_valid, legacy_frame_p)
4732 (enum frame_type): Delete UNKNOWN_FRAME.
4733 * dummy-frame.c (dummy_frame_this_id): Simplify.
4734 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4735 * frame.c (struct frame_info): Delete the field "type".
4736 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4737 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4738 (legacy_saved_regs_unwind, legacy_frame_p)
4739 (frame_type_from_pc): Delete.
4740 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4741 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4742
4743 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4744
4745 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4746 indentation.
4747
4748 * mips-nat.c: Remove file.
4749 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4750 (mips-nat.o): Remove dependency.
4751
4752 * infptrace.c: Update copyright year.
4753 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4754 explicitly setting the buffer to all zeroes.
4755
4756 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4757 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4758
4759 2004-07-30 Andrew Cagney <cagney@gnu.org>
4760
4761 * GDB 6.2 released from gdb_6_2-branch.
4762
4763 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4764
4765 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4766
4767 * exec.c (exec_file_attach):
4768 * nto-tdep.c (nto_find_and_open_solib):
4769 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4770 * solib.c (solib_open):
4771 * somsolib.c (som_solib_sizeof_symbol_table):
4772 * source.c (is_regular_file, openp, open_source_file):
4773 * symfile.c (symfile_bfd_open):
4774 * wince.c (upload_to_device): Differentiate between the search for
4775 binary and source files.
4776
4777 2004-07-30 Andrew Cagney <cagney@gnu.org>
4778
4779 * complaints.c (_initialize_complaints): Pass NULL to
4780 add_setshow_zinteger_cmd for help_doc.
4781 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4782
4783 2004-07-30 Andrew Cagney <cagney@gnu.org>
4784
4785 Fix PR i18n/761.
4786 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4787 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4788 $(PACKAGE).pot and update-po.
4789 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4790 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4791 (update-po): New rules.
4792 (localedir): Define using autoconf.
4793 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4794 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4795 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4796 * configure.in: Generate CATALOGS and LINGUAS from contents of
4797 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4798 * configure: Re-generate.
4799 * po/gdbtext: New file
4800
4801 2004-07-30 Jerome Guitton <guitton@gnat.com>
4802
4803 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4804 order.
4805
4806 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4807
4808 * dwarf2read.c (read_file_scope): Set producer if attribute
4809 present.
4810 (struct dwarf2_cu): Added new member producer.
4811
4812 2004-07-30 Jerome Guitton <guitton@gnat.com>
4813
4814 * inflow.c (kill_command): release file handles in BFD.
4815 * exec.c (exec_file_attach): Ditto.
4816 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4817
4818 2004-07-29 Andrew Cagney <cagney@gnu.org>
4819
4820 * PROBLEMS (mips-irix): Note that it is broken.
4821
4822 2004-07-29 Andrew Cagney <cagney@gnu.org>
4823
4824 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4825 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4826
4827 * config/xm-nbsd.h: Delete file.
4828 * config/arm/xm-nbsd.h: Delete file.
4829 * config/i386/xm-nbsd.h: Delete file.
4830 * config/ns32k/xm-nbsd.h: Delete file.
4831 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4832 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4833 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4834 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4835 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4836
4837 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4838 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4839 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4840 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4841 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4842 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4843
4844 * config/powerpc/xm-linux.h: Delete empty file.
4845 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4846 * config/powerpc/linux.mh (XM_FILE): Delete.
4847 * config/m68k/xm-linux.h: Delete empty file.
4848 * config/m68k/linux.mh (XM_FILE): Delete.
4849 * config/ia64/xm-linux.h: Delete empty file.
4850 * config/ia64/linux.mh (XM_FILE): Delete.
4851 * config/arm/xm-linux.h: Delete empty file.
4852 * config/arm/linux.mh (XM_FILE): Delete.
4853
4854 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4855 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4856 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4857 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4858 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4859 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4860 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4861 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4862
4863 * config/m68k/xm-m68k.h: Delete file.
4864 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4865 copyright.
4866 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4867 * config/pa/xm-linux.h: Delete empty file.
4868 * config/pa/linux.mh (XM_FILE): Delete.
4869 * config/i386/xm-i386.h: Delete empty file.
4870 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4871 "i386/xm-i386.h".
4872 * config/i386/obsdaout.mh (XM_FILE): Delete.
4873 * config/i386/obsd64.mh (XM_FILE): Delete.
4874 * config/i386/fbsd64.mh (XM_FILE): Delete.
4875 * config/i386/nto.mh (XM_FILE): Delete.
4876 * config/i386/obsd.mh (XM_FILE): Delete.
4877 * config/i386/linux64.mh (XM_FILE): Delete.
4878 * config/i386/linux.mh (XM_FILE): Delete.
4879 * config/i386/i386sol2.mh (XM_FILE): Delete.
4880 * config/i386/i386gnu.mh (XM_FILE): Delete.
4881 * config/i386/fbsd.mh (XM_FILE): Delete.
4882 * config/i386/nbsd64.mh (XM_FILE): Delete.
4883
4884 2004-07-29 Andrew Cagney <cagney@gnu.org>
4885
4886 * config/pa/xm-linux.h: Do not include "floatformat.h".
4887 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4888 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4889 * config/i386/xm-i386.h: Do not include "floatformat.h".
4890 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4891 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4892 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4893 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4894 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4895 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4896 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4897 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4898 * configure, config.in: Regenerate.
4899 * configure.host (gdb_host_float_format, gdb_host_double_format)
4900 (gdb_host_long_double_format): Set according to the host.
4901
4902 2004-07-29 Andrew Cagney <cagney@gnu.org>
4903
4904 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4905
4906 2004-07-28 Andrew Cagney <cagney@gnu.org>
4907
4908 * PROBLEMS: Mention threads/1650.
4909 * NEWS: Mention the NPTL fix.
4910
4911 2004-07-28 Andrew Cagney <cagney@gnu.org>
4912
4913 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4914 (add_setshow_cmd_full): Make static.
4915 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4916 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4917 * cli/cli-decode.c (add_setshow_filename_cmd)
4918 (add_setshow_string_cmd): New functions.
4919 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4920 * mips-tdep.c (_initialize_mips_tdep): Update.
4921 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4922 * cli/cli-logging.c (_initialize_cli_logging): Update.
4923 * complaints.c (_initialize_complaints): Update.
4924 * remote.c (_initialize_remote): Update.
4925
4926 2004-07-28 Andrew Cagney <cagney@gnu.org>
4927
4928 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4929 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4930 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4931 print parameters. Make string parameters constant.
4932 * command.h: Update. Update copyright.
4933 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4934 * observer.c (_initialize_observer): Ditto.
4935 * frame.c (_initialize_frame): Ditto.
4936 * complaints.c (_initialize_complaints): Ditto.
4937 * maint.c (_initialize_maint_cmds): Ditto.
4938 * target.c (initialize_targets): Ditto.
4939 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4940 * infcall.c (_initialize_infcall): Ditto.
4941 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4942 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4943 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4944 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4945 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4946
4947 2004-07-28 Andrew Cagney <cagney@gnu.org>
4948
4949 * gdbtypes.c (lookup_primitive_typename): Delete function.
4950 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4951 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4952 * gdbtypes.c (lookup_typename): Ditto.
4953 * f-exp.y (yylex): Ditto.
4954 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4955
4956 * scm-lang.c (c_builtin_types): Delete extern declaration.
4957 (scm_language_defn): Replace
4958 string_char_type and primitive_type_vector with
4959 la_language_arch_info.
4960 * jv-lang.c (java_language_defn): Replace
4961 string_char_type and primitive_type_vector with
4962 la_language_arch_info.
4963 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4964 c_builtin_types in comment.
4965 * c-lang.h (struct language_arch_info): Declare opaque.
4966 (c_language_arch_info): Declare.
4967 (c_builtin_types): Delete declaration.
4968 * c-lang.c (c_language_arch_info): Set string_char_type to
4969 builtin_char, not builtin_true_char. Make global.
4970 (c_builtin_types): Delete array.
4971 (asm_language_defn, minimal_language_defn): Replace
4972 string_char_type and primitive_type_vector with
4973 la_language_arch_info.
4974
4975 2004-07-28 Andrew Cagney <cagney@gnu.org>
4976
4977 * gdbtypes.h (struct builtin_type): Rename true_char to
4978 builtin_true_char.
4979 * gdbtypes.c (gdbtypes_post_init): Update.
4980 * c-lang.c (arch_info): New function.
4981 (enum c_primitive_types): New enum.
4982 (c_language_defn): Instead of string_char_type and
4983 primitive_type_vector set la_language_arch_info.
4984
4985 2004-07-28 Andrew Cagney <cagney@gnu.org>
4986
4987 * language.h (struct language_arch_info): Fix typo
4988 s/primative/primitive/.
4989 * gdbtypes.c (lookup_primitive_typename): Ditto.
4990 * language.c (language_lookup_primitive_type_by_name)
4991 (unknown_language_arch_info): Ditto.
4992
4993 2004-07-27 Andrew Cagney <cagney@gnu.org>
4994
4995 * defs.h (enum language): Add nr_languages.
4996 * language.h (struct language_arch_info): Define.
4997 (struct language_defn): Add la_language_arch_info.
4998 (language_lookup_primative_type_by_name): Declare.
4999 (language_string_char_type): Declare.
5000 * language.c (_initialize_language, language_gdbarch_post_init)
5001 (struct language_gdbarch, language_gdbarch_data): Implement
5002 per-architecture language information.
5003 (unknown_language_arch_info, language_string_char_type)
5004 (language_lookup_primative_type_by_name): New functions.
5005 (unknown_language_defn, auto_language_defn)
5006 (local_language_defn): Set la_language_arch_info to
5007 unknown_language_arch_info.
5008 (unknown_builtin_types): Delete.
5009 * gdbtypes.c (lookup_primitive_typename): Use
5010 language_lookup_primative_type_by_name.
5011 (create_string_type): Use language_string_char_type.
5012 * values.c (value_from_string): Use language_string_char_type.
5013 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5014 * p-lang.c (pascal_language_defn): Ditto.
5015 * m2-lang.c (m2_language_defn): Ditto.
5016 * jv-lang.c (java_language_defn): Ditto.
5017 * objc-lang.c (objc_language_defn): Ditto.
5018 * f-lang.c (f_language_defn): Ditto.
5019 * c-lang.c (c_language_defn, cplus_language_defn)
5020 (asm_language_defn, minimal_language_defn): Ditto.
5021
5022 2004-07-27 Andrew Cagney <cagney@gnu.org>
5023
5024 * gdbtypes.h (struct builtin_type): Declare.
5025 (builtin_type): Declare.
5026 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5027 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5028 (gdbtypes_post_init): New function.
5029 (builtin_type): New function.
5030
5031 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5032
5033 * remote-m32r-sdi.c: Fix breakpoint bug.
5034 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5035 recv_char_data, recv_long_data): New functions to replace communication
5036 sequences.
5037
5038 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5039
5040 Document PR threads/1650.
5041 * PROBLEMS (Threads): Document problem with many threads
5042
5043 2004-07-26 Andrew Cagney <cagney@gnu.org>
5044
5045 * gdb-mi.el: Move from here ...
5046 * mi/gdb-mi.el: ... to here.
5047
5048 2004-07-26 Andrew Cagney <cagney@gnu.org>
5049
5050 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5051 * main.c (captured_main): When in batch mode always detach.
5052
5053 2004-07-26 Andrew Cagney <cagney@gnu.org>
5054
5055 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5056 and h8300 as broken.
5057 * NEWS: END-OF-LIFE frame compatibility module.
5058 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5059 specific comments.
5060
5061 2004-07-26 Andrew Cagney <cagney@gnu.org>
5062
5063 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5064 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5065 * wince.c (_initialize_wince): Update.
5066 * win32-nat.c (_initialize_win32_nat): Update.
5067 * varobj.c (_initialize_varobj): Update.
5068 * valops.c (_initialize_valops): Update.
5069 * utils.c (initialize_utils, initialize_utils): Update.
5070 * tui/tui-win.c (_initialize_tui_win): Update.
5071 * top.c (init_main): Update.
5072 * symfile.c (_initialize_symfile): Update.
5073 * source.c (_initialize_source): Update.
5074 * somsolib.c (_initialize_som_solib): Update.
5075 * solib.c (_initialize_solib): Update.
5076 * solib-frv.c (_initialize_frv_solib): Update.
5077 * serial.c (_initialize_serial): Update.
5078 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5079 * remote.c (_initialize_remote, _initialize_remote): Update.
5080 * remote-vx.c (_initialize_vx): Update.
5081 * remote-utils.c (_initialize_sr_support): Update.
5082 * remote-sds.c (_initialize_remote_sds): Update.
5083 * remote-mips.c (_initialize_remote_mips): Update.
5084 * remote-e7000.c (_initialize_remote_e7000): Update.
5085 * proc-api.c (_initialize_proc_api): Update.
5086 * printcmd.c: Update.
5087 * parse.c (_initialize_parse): Update.
5088 * pa64solib.c (_initialize_pa64_solib): Update.
5089 * p-valprint.c (_initialize_pascal_valprint): Update.
5090 * monitor.c (_initialize_remote_monitors): Update.
5091 * mips-tdep.c (_initialize_mips_tdep): Update.
5092 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5093 * maint.c (_initialize_maint_cmds): Update.
5094 * lin-lwp.c (_initialize_lin_lwp): Update.
5095 * language.c (_initialize_language): Update.
5096 * kod.c (_initialize_kod): Update.
5097 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5098 * i386-tdep.c (_initialize_i386_tdep): Update.
5099 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5100 * gdbarch.sh: Update.
5101 * gdbarch.c: Re-generate.
5102 * gdb-events.sh: Update.
5103 * gdb-events.c: Re-generate.
5104 * frame.c (_initialize_frame): Update.
5105 * exec.c: Update.
5106 * demangle.c (_initialize_demangler): Update.
5107 * dcache.c (_initialize_dcache): Update.
5108 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5109 * cp-valprint.c (_initialize_cp_valprint): Update.
5110 * corefile.c (_initialize_core): Update.
5111 * command.h: Update.
5112 * cli/cli-decode.h: Update.
5113 * cli/cli-cmds.c (init_cli_cmds): Update.
5114 * charset.c (_initialize_charset): Update.
5115 * breakpoint.c (_initialize_breakpoint): Update.
5116 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5117 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5118 * aix-thread.c (_initialize_aix_thread): Update.
5119
5120 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5121
5122 Partial fix for PR backtrace/1718.
5123 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5124 that GCC migrates into the prolugue. Don't handle any
5125 instructions that clobber %ebx.
5126
5127 2004-07-23 Andrew Cagney <cagney@gnu.org>
5128
5129 Use regcache_raw_collect instead of regcache_collect.
5130 * regcache.h (regcache_collect): Delete declaration.
5131 * regcache.c (regcache_colect): Delete function.
5132 * win32-nat.c (do_child_store_inferior_registers): Update.
5133 * sol-thread.c (sol_thread_store_registers): Update.
5134 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5135 * rs6000-nat.c (store_register): Update.
5136 * remote.c (store_register_using_P, remote_store_registers): Update.
5137 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5138 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5139 (fill_vrregset, store_spe_registers, fill_gregset)
5140 (fill_gregset): Update.
5141 * nto-procfs.c (procfs_store_registers): Update.
5142 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5143 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5144 * m68klinux-nat.c (store_register, fill_gregset): Update.
5145 * m68k-tdep.c (fill_gregset): Update.
5146 * infptrace.c (store_register): Update.
5147 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5148 * i386-linux-nat.c (store_register, fill_gregset): Update.
5149 * hppa-linux-nat.c (fill_gregset): Update.
5150 * go32-nat.c (store_register): Update.
5151 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5152 (store_fp_regs): Update.
5153 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5154 (store_nwfpe_extended, store_fpregister, store_fpregs)
5155 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5156 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5157 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5158 (store_regs_user_thread, store_regs_kernel_thread): Update.
5159
5160 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5161
5162 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5163 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5164 encoding.
5165 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5166 member of `struct comp_unit'.
5167
5168 2004-07-23 Andrew Cagney <cagney@gnu.org>
5169
5170 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5171 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5172
5173 2004-07-23 Martin Hunt <hunt@redhat.com>
5174 Kevin Buettner <kevinb@redhat.com>
5175
5176 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5177 alignment was being added to the offset instead of multiplied.
5178
5179 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5180
5181 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5182 changed signal trampoline in OpenBSD 3.5-current.
5183
5184 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5185 <machine/pcb.h> and "bsd-kvm.h".
5186 (sparc64nbsd_supply_pcb): New function.
5187 (_initialize_sparc64nbsd_nat): Renamed from
5188 _initialize_sparcnbsd_nat. Enable libkvm interface.
5189 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5190 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5191 (LOADLIBES): New variable.
5192
5193 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5194
5195 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5196
5197 2004-07-21 Andrew Cagney <cagney@gnu.org>
5198
5199 Use regcache_raw_supply instead of supply_register.
5200 * regcache.h (supply_register): Delete declaration.
5201 * regcache.c (supply_register): Delete function.
5202 * wince.c (do_child_fetch_inferior_registers): Update.
5203 * win32-nat.c (do_child_fetch_inferior_registers)
5204 (fetch_elf_core_registers): Update.
5205 * v850ice.c (v850ice_fetch_registers): Update.
5206 * thread-db.c (thread_db_store_registers): Update.
5207 * sol-thread.c (sol_thread_store_registers): Update.
5208 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5209 * rs6000-nat.c (fetch_register): Update.
5210 * rom68k-rom.c (rom68k_supply_one_register): Update.
5211 * remote.c (remote_wait, remote_async_wait): Update.
5212 * remote-st.c (get_hex_regs): Update.
5213 * remote-sim.c (gdbsim_fetch_register): Update.
5214 * remote-sds.c (sds_fetch_registers): Update.
5215 * remote-rdp.c (remote_rdp_fetch_register): Update.
5216 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5217 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5218 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5219 * remote-hms.c (init_hms_cmds): Update.
5220 * remote-est.c (init_est_cmds): Update.
5221 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5222 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5223 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5224 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5225 (fetch_register, supply_vrregset, supply_vrregset)
5226 (fetch_spe_registers): Update.
5227 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5228 * monitor.c (monitor_supply_register): Update.
5229 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5230 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5231 (mipsnbsd_supply_fpreg): Update.
5232 * mips-nat.c (fetch_inferior_registers)
5233 (fetch_core_registers): Update.
5234 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5235 (supply_fpregset, mips64_supply_gregset)
5236 (mips64_supply_fpregset): Update.
5237 * m68klinux-nat.c (fetch_register, supply_gregset)
5238 (supply_fpregset): Update.
5239 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5240 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5241 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5242 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5243 * infptrace.c (fetch_register): Update.
5244 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5245 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5246 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5247 (gnu_fetch_registers, gnu_store_registers): Update.
5248 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5249 * i386-linux-nat.c (fetch_register, supply_gregset)
5250 (dummy_sse_values): Update.
5251 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5252 * hppah-nat.c (fetch_register): Update.
5253 * hppa-linux-nat.c (fetch_register, supply_gregset)
5254 (supply_fpregset): Update.
5255 * go32-nat.c (fetch_register): Update.
5256 * dve3900-rom.c (fetch_bitmapped_register)
5257 (_initialize_r3900_rom): Update.
5258 * cris-tdep.c (supply_gregset): Update.
5259 * abug-rom.c (init_abug_cmds): Update.
5260 * core-aout.c (fetch_core_registers): Update.
5261 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5262 (fetch_register, fetch_fp_register): Update.
5263 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5264 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5265 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5266 * alphanbsd-tdep.c (fetch_core_registers): Update.
5267 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5268 * alpha-nat.c (fetch_osf_core_registers)
5269 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5270 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5271 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5272
5273 2004-07-21 Andrew Cagney <cagney@gnu.org>
5274
5275 * PROBLEMS: Mention breakpoints/1702.
5276 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5277 that is known to work.
5278
5279 2004-07-21 Andrew Cagney <cagney@gnu.org>
5280
5281 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5282 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5283 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5284 (handle_inferior_event): Wrap call to deprecated
5285 IGNORE_HELPER_CALL in #ifdef.
5286 * config/mips/tm-nbsd.h: Update.
5287
5288 2004-07-20 Jim Blandy <jimb@redhat.com>
5289
5290 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5291 bfd_mach_ppc has no segment registers.
5292
5293 Include PowerPC SPR numbers for special-purpose registers.
5294 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5295 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5296 new member in initializer.
5297 (S, S4, SN4, S64): New macros for defining special-purpose
5298 registers.
5299 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5300 registers_403, registers_403GC, registers_505, registers_860,
5301 registers_601, registers_602, registers_603, registers_604,
5302 registers_750, registers_e500): Use them.
5303
5304 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5305 replace references with expression used to initialize variable.
5306
5307 2004-07-20 Andrew Cagney <cagney@gnu.org>
5308
5309 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5310 read_memory_nobpt.
5311 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5312 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5313 (s390_sigtramp_frame_sniffer): Update.
5314 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5315 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5316 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5317 (mips32_fetch_instruction): Update.
5318 * mcore-tdep.c (get_insn): Update.
5319 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5320 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5321 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5322 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5323 (i386_linux_rt_sigtramp_start): Update.
5324 * i386-linux-nat.c (child_resume): Update.
5325 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5326 * hppa-linux-tdep.c (insns_match_pattern): Update.
5327 * gdbcore.h: Update.
5328 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5329 * frame.c (safe_frame_unwind_memory): Update.
5330 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5331 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5332 * alpha-tdep.c (alpha_read_insn): Update.
5333
5334 2004-07-20 Andrew Cagney <cagney@gnu.org>
5335
5336 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5337 containing both bytes and mask. Add "frame_type".
5338 * tramp-frame.c (tramp_frame_start): Update.
5339 (tramp_frame_prepend_unwinder): Update.
5340 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5341 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5342 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5343 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5344
5345 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5346
5347 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5348 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5349 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5350 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5351
5352 2004-07-17 Andrew Cagney <cagney@gnu.org>
5353
5354 * NEWS, PROBLEMS: Update for 6.2.
5355
5356 * README: Update to 6.2.
5357
5358 * utils.c (xvasprintf): Call xstrvprintf.
5359
5360 * parse.c: Update copyright.
5361 (null_post_parser): Eliminate ARGSUSED.
5362
5363 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5364 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5365 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5366
5367 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5368 * ppc-linux-nat.c: Use "Linux kernel".
5369 * hppa-linux-tdep.c: Use GNU/Linux.
5370 * hppa-linux-nat.c: Use GNU/Linux.
5371 * dwarfread.c: Add [sic] to use of Linux.
5372
5373 * hppa-linux-nat.c: Do not include <string.h>.
5374 (supply_fpregset): Remove "register" attribute.
5375
5376 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5377
5378 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5379
5380 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5381 * configure, config.in: Regenerated.
5382
5383 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5384 "bsd-kvm.h".
5385 (vaxbsd_supply_pcb): New function.
5386 (_initialize_vaxbsd_nat): New prototype and function.
5387 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5388 solib-sunos.o.
5389 (LOADLIBES): New variable.
5390 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5391 (LOADLIBES): New variable.
5392 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5393 (LOADLIBES): New variable.
5394 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5395
5396 2004-07-16 Andrew Cagney <cagney@gnu.org>
5397
5398 * defs.h (event_loop_p): Replace variable declaration with macro,
5399 always 1.
5400 * main.c (captured_main): Delete options "-async" and "-noasync".
5401 (event_loop_p): Delete variable.
5402 * NEWS: Mention that "-async" and "-noasync" were removed.
5403
5404 2004-07-16 Andrew Cagney <cagney@gnu.org>
5405
5406 * remote-m32r-sdi.c: Re-indent.
5407
5408 2004-07-16 Jim Blandy <jimb@redhat.com>
5409
5410 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5411 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5412 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5413 missing MPC823 SPRs.
5414 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5415 incorrect. (This was corrected in GDB's register name tables on
5416 2004-07-14.)
5417
5418 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5419 should be "esasrr" ("ESA Save and Restore Register").
5420
5421 2004-07-16 Andrew Cagney <cagney@gnu.org>
5422
5423 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5424 calls, no longer applicable. Update comments and rename parameter
5425 "step_frame" to "return_frame".
5426
5427 2004-07-16 Andrew Cagney <cagney@gnu.org>
5428
5429 * frame.c (fprint_field): New function.
5430 (fprint_frame_id): Use fprint_field.
5431
5432 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5433
5434 * ada-lang.c (ada_language_defn): Remove commented out code.
5435
5436 2004-07-15 Jim Blandy <jimb@redhat.com>
5437
5438 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5439 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5440
5441 2004-07-14 Jim Blandy <jimb@redhat.com>
5442
5443 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5444
5445 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5446
5447 * ppc-tdep.h (ppc_num_srs): New enum constant.
5448
5449 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5450 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5451 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5452 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5453 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5454 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5455 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5456 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5457 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5458 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5459 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5460 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5461 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5462 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5463 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5464 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5465 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5466 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5467 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5468 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5469 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5470 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5471 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5472 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5473 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5474 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5475 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5476 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5477 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5478 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5479 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5480 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5481 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5482 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5483 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5484 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5485 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5486 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5487 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5488 special-purpose register numbers.
5489
5490 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5491 manual mentions 'md_twb', but many mention 'm_twb', and at that
5492 point in the register list.)
5493
5494 2004-07-14 Andrew Cagney <cagney@gnu.org>
5495
5496 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5497 instead of "internal-error".
5498
5499 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5500
5501 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5502 that was inserted inside a comment.
5503
5504 2004-07-10 Randolph Chung <tausq@debian.org>
5505
5506 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5507 function.
5508 (hppa_hpux_push_dummy_code): New function.
5509 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5510 Set find_global_pointer method.
5511
5512 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5513
5514 * NEWS: Mention BSD libkvm interface.
5515
5516 2004-07-10 Michael Snyder <msnyder@redhat.com>
5517
5518 * symfile.c (generic_load): Comment typo.
5519 * stack.c (get_selected_block): Ditto.
5520 * regcache.c (regcache_cooked_read): Ditto.
5521 * monitor.c (monitor_debug): Ditto.
5522 * mips-tdep.c (mips_read_pc): Ditto.
5523 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5524 * gdb_mbuild.sh: Ditto.
5525 * gdbarch.sh: Ditto.
5526 * gdbarch.h: Ditto.
5527
5528 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5529
5530 * ada-tasks.c: Remove file.
5531
5532 Remove ARI problems:
5533
5534 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5535 beginning of line.
5536
5537 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5538 Add comment.
5539 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5540 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5541 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5542 (UMIN_OF_SIZE): Remove.
5543 (max_of_type): New function to replace orphan macro in gdbtypes.h
5544 (min_of_type): Ditto.
5545 (discrete_type_high_bound): Use max_of_type.
5546 (discrete_type_low_bound): Use min_of_type.
5547 (possible_user_operator_p): Move operator to beginning of line.
5548 (ada_is_variant_part): Ditto.
5549 (ensure_lval): Rewrite to avoid deprecated operations.
5550 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5551 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5552 (ada_enum_name): Remove assignments in 'if' statements.
5553 (build_ada_types): Add gdbarch parameter.
5554 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5555 with gdbarch_data_register_post_init.
5556 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5557 add_show_from_set.
5558
5559 * ada-valprint.c (inspect_it): Remove declaration.
5560 (repeat_count_threshold): Remove declaration.
5561 (ada_print_floating): Remove assignments in 'if' statements.
5562 (print_str): Move operator to beginning of line.
5563
5564 2004-07-08 Jim Blandy <jimb@redhat.com>
5565
5566 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5567
5568 2004-07-08 Bob Rossi <bob@brasko.net>
5569
5570 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5571
5572 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5573
5574 * language.h (struct_language_defn): Add new function pointer:
5575 la_class_name_from_physname. Also add new prototype for
5576 language_class_name_from_physname.
5577 * language.c (language_class_name_from_physname): New function.
5578 (unk_lang_class_name): Ditto.
5579 (unknown_language_defn, auto_language_defn): Change
5580 to add unk_lang_class_name function pointer for
5581 la_class_name_from_physname.
5582 (local_language_defn): Ditto.
5583 * dwarf2read.c (guess_structure_name): Change to call
5584 language_class_name_from_physname.
5585 (determine_class_name): Ditto.
5586 * cp-support.c (class_name_from_physname): Renamed.
5587 (cp_class_name_from_physname): New name of function.
5588 * cp-support.h: Ditto.
5589 * c-lang.c (c_language_defn): Change to add NULL
5590 for class_name_from_physname function pointer.
5591 (cplus_language_defn): Change to add cp_class_name_from_physname.
5592 * jv-lang.c (java_class_name_physname): New function.
5593 (java_find_last_component): New static routine.
5594 (java_language_defn): Add java_class_name_from_physname pointer.
5595 * ada-lang.c (ada_language_defn): Change to add NULL
5596 for class_name_from_physname function pointer.
5597 * f-lang.c (f_language_defn): Ditto.
5598 * m2-lang.c (m2_language_defn): Ditto.
5599 * objc-lang.c (objc_language_defn): Ditto.
5600 * p-lang.c (pascal_language_defn): Ditto.
5601 * scm-lang.c (scm_language_defn): Ditto.
5602
5603 2004-07-06 Andrew Cagney <cagney@gnu.org>
5604
5605 Patch from Bart Robinson.
5606 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5607 (O_LARGEFILE): Define to 0, if not defined.
5608
5609 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5610
5611 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5612 <machine/pcb.h> and "bsd-kvm.h".
5613 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5614 (m68kbsd_supply_pcb): New function.
5615 (_initialize_m68kbsd_nat): New prototype and function.
5616 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5617 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5618 (LOADLIBES): New variable.
5619 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5620 (LOADLIBES): New variable.
5621
5622 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5623
5624 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5625
5626 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5627 <sys/proc.h>.
5628 (bsd_kvm_cmdlist): New variable.
5629 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5630 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5631 command and "kvm proc" command.
5632 * Makefile.in (bsd-kvm.o): Update dependencies.
5633
5634 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5635
5636 * osabi.c: Update copyright year.
5637 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5638 notes if EI_OSABI is set to ELFOSABI_HPUX.
5639
5640 2004-07-01 Michael Snyder <msnyder@redhat.com>
5641
5642 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5643 that seems to have gotten whacked out of line.
5644
5645 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5646
5647 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5648 code.
5649
5650 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5651
5652 * ada-lang.c (decode_packed_array): Minor change to comment.
5653 (ada_value_slice_ptr): New function.
5654 (ada_value_slice): New function.
5655 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5656 test. Don't know why it is there.
5657 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5658 to avoid dereferencing huge arrays from which one is slicing.
5659 (empty_array): Correct to return an array rather than
5660 a subrange value.
5661 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5662 on empty arrays (let'em use 'FIRST instead).
5663
5664 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5665
5666 Address complaints from gdb_ari.sh:
5667
5668 * ada-exp.y: Include gdb_string.h rather than string.h.
5669 (convert_char_literal): Reformat declaration.
5670 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5671 * ada-lex.l: Change use of free to xfree (the macro would do so
5672 anyway, but this is harmless).
5673 Include gdb_string.h rather than string.h.
5674 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5675
5676 * ada-lang.c (parse): Remove K&Rism in parameter list.
5677 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5678
5679 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5680
5681 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5682 dead code.
5683
5684 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5685
5686 * alphabsd-nat.c: Update copyright year.
5687 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5688
5689 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5690
5691 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5692 (i386_cygwin_in_solib_call_trampoline): New function.
5693 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5694 and skip_trampoline_code gdbarch methods.
5695
5696 2004-06-29 Jim Blandy <jimb@redhat.com>
5697
5698 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5699 name actually used in the dependency lists.
5700
5701 2004-06-29 Randolph Chung <tausq@debian.org>
5702
5703 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5704
5705 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5706
5707 * win32-nat.c (child_pid_to_exec_file): New function.
5708 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5709 functionality.
5710
5711 2004-06-28 Andrew Cagney <cagney@gnu.org>
5712
5713 * defs.h (xstrvprintf): Declare.
5714 * utils.c (xstrvprintf): New function.
5715 (internal_vproblem, xstrprintf, xasprintf)
5716 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5717 * serial.c (serial_printf): Ditto.
5718 * complaints.c (vcomplaint): Ditto.
5719
5720 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5721
5722 * infcmd.c (attach_command): Move call to target_terminal_inferior
5723 behind loading symbol table.
5724
5725 2004-06-28 Andrew Cagney <cagney@gnu.org>
5726
5727 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5728 change - add back extern deprecated_ui_loop_hook declaration.
5729
5730 2004-06-28 Andrew Cagney <cagney@gnu.org>
5731
5732 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5733 xstrprintf.
5734 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5735 (c_value_of_variable): Ditto.
5736 * utils.c (internal_vproblem): Ditto.
5737 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5738 * remote.c (add_packet_config_cmd): Ditto.
5739 * remote-rdp.c (rdp_set_command_line): Ditto.
5740 * regcache.c (regcache_dump): Ditto.
5741 * frv-tdep.c (new_variant, new_variant): Ditto.
5742 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5743 (fbsd_find_memory_regions): Ditto.
5744 * breakpoint.c (create_thread_event_breakpoint)
5745 (create_breakpoints): Ditto.
5746 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5747 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5748
5749 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5750
5751 * ada-lang.c: Re-indent file, with some massaging to help indent
5752 a bit when the result is otherwise really too ugly.
5753
5754 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5755
5756 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5757 code_addr_p and special_addr_p to 'unsigned int'.
5758
5759 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5760
5761 * i386v4-nat.c: Update copyright year and tweak comment.
5762 (regmap): Remove trailing comma.
5763 (supply_gregset): Rename local variable i to regnum. Call
5764 regcache_raw_supply instead of supply_register.
5765 (fill_gregset): Rename argument regno to regnum. Call
5766 regcache_raw_collect instead of regcache_collect.
5767
5768 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5769
5770 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5771 and special_addr_p.
5772 (frame_id_build, frame_id_build_special): Update comments.
5773 (frame_id_build_wild): New prototype.
5774 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5775 struct frame_id fields.
5776 (frame_id_build_wild): New function.
5777 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5778
5779 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5780
5781 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5782 hppabsd-tdep.c.
5783
5784 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5785
5786 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5787
5788 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5789
5790 * ada-lang.c: Re-indent file.
5791
5792 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5793
5794 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5795 (no_symtab_msg): Likewise.
5796
5797 2004-06-27 Andreas Schwab <schwab@suse.de>
5798
5799 * source.c: Fix whitespace.
5800
5801 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5802
5803 * configure.in: Include <sys/param.h> for td_pcb test.
5804 * configure: Regenerated.
5805
5806 * i386nbsd-nat.c: New file.
5807 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5808 i386obsd-nat.c and i386obsd-tdep.c.
5809 (i386nbsd-nat.o): New dependency.
5810 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5811 bsd-kvm.o.
5812 (LOADLIBES): New variable.
5813 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5814 bsd-kvm.o.
5815 (LOADLIBES): New variable.
5816
5817 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5818 (LOADLIBES): New variable.
5819
5820 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5821 fetching from BSD_KVM_PADDR. Correctly lookup address for
5822 "_thread0".
5823
5824 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5825 "bsd-kvm.h".
5826 (amd64fbsd_supply_pcb): New funcion.
5827 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5828
5829 2004-06-27 <david@streamline-computing.com>
5830
5831 Partial fix for PR cli/1056.
5832 * valarith.c: Check for zero in division and remainder
5833 evaluation.
5834
5835 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5836
5837 * i387-tdep.c: Remove excessive whitespace.
5838
5839 2004-06-26 Andrew Cagney <cagney@gnu.org>
5840
5841 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5842 * gdb-events.h, gdb-events.c: Re-generate.
5843 * tui/tui-hooks.c (tui_install_hooks): Update.
5844 (tui_remove_hooks): Update.
5845 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5846
5847 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5848
5849 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5850 (gregset_t, fpregset_t): Remove typedefs.
5851 (REG_OFFSET): Rename argument.
5852 (amd64bsd_r_reg_offset): Rename from reg_offset.
5853 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5854 Remove functions.
5855 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5856 of reg_offset.
5857 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5858
5859 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5860
5861 * vax-tdep.c: Tweak comment.
5862
5863 Add OpenBSD/hppa support.
5864 * NEWS (New native configurations): Mention OpenBSD/hppa.
5865 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5866 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5867 files.
5868 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5869 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5870 * configure.host: Add hppa*-*-openbsd*.
5871 * configure.tgt: Add hppa*-*-openbsd*.
5872
5873 2004-06-25 Andrew Cagney <cagney@gnu.org>
5874
5875 * defs.h (deprecated_ui_loop_hook): Deprecated.
5876 * wince.c (child_wait): Update.
5877 * win32-nat.c (child_wait): Update.
5878 * v850ice.c (v850ice_wait): Update.
5879 * top.c (deprecated_ui_loop_hook): Update.
5880 * serial.h: Update.
5881 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5882 (do_unix_readchar): Update.
5883 * ser-tcp.c (net_open): Update.
5884 * remote-sim.c (gdb_os_poll_quit): Update.
5885 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5886
5887 2004-06-24 Andrew Cagney <cagney@gnu.org>
5888
5889 * defs.h (deprecated_pre_add_symbol_hook)
5890 (deprecated_post_add_symbol_hook): Deprecated.
5891 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5892 (symbol_file_add_with_addrs_or_offsets): Update references.
5893
5894 2004-06-24 Andrew Cagney <cagney@gnu.org>
5895
5896 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5897 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5898 * wince.c (ui_loop_hook): Delete extern declaration.
5899 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5900 * v850ice.c (ui_loop_hook): Delete extern declaration..
5901 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5902 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5903 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5904 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5905 ui_loop_hook declaration.
5906
5907 2004-06-24 Andrew Cagney <cagney@gnu.org>
5908
5909 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5910 entry_func_highpc fields.
5911 * objfiles.c (init_entry_point_info): Do not clear
5912 entry_func_lowpc and entry_func_highpc.
5913 (objfile_relocate): Do not relocate entry_func_lowpc and
5914 entry_func_highpc.
5915 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5916 entry_func_highpc.
5917 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5918 entry_func_highpc.
5919 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5920 entry_func_lowpc and entry_func_highpc with call to
5921 inside_entry_func.
5922
5923 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5924
5925 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5926 quad-precision floating point arguments in registers.
5927
5928 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5929
5930 From Michael Mueller <m.mueller99@kay-mueller.de>:
5931 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5932 account.
5933
5934 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5935
5936 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5937 to -1.
5938 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5939 untriggered watchpoints to a separate if clause. Update function
5940 comment regarding STOPPED_BY_WATCHPOINT argument.
5941
5942 2004-06-22 Jim Blandy <jimb@redhat.com>
5943
5944 * gdbarch.sh: Doc fix.
5945
5946 2004-06-21 Martin Hunt <hunt@redhat.com>
5947 Kevin Buettner <kevinb@redhat.com>
5948
5949 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5950 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5951 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5952 to set_gdbarch_sp_regnum(). Use cooked register number.
5953 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5954
5955 2004-06-21 Andrew Cagney <cagney@gnu.org>
5956
5957 * gdbarch.sh: When the macro field is empty, do not generate a
5958 macro definition. When the macro field is "=", generate the macro
5959 name from the upper-case function name.
5960 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5961 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5962 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5963 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5964 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5965 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5966 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5967 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5968 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5969 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5970 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5971 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5972 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5973 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5974 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5975 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5976 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5977 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5978 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5979 (DEPRECATED_USE_STRUCT_CONVENTION)
5980 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5981 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5982 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5983 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5984 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5985 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5986 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5987 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5988 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5989 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5990 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5991 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5992 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5993 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5994 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5995 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5996 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5997 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5998
5999 2004-06-21 Andrew Cagney <cagney@gnu.org>
6000
6001 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6002 macro name, and the function rather than macro value. Only wrap
6003 macro print statements in #ifdef. Move format logic to where it
6004 is needed.
6005 * gdbarch.c: Re-generate.
6006
6007 * gdbarch.sh (read): Delete "print_p" and "description", add
6008 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6009 Delete references to print_p.
6010 (TARGET_ARCHITECTURE): Delete print predicate.
6011 * gdbarch.c: Re-generate.
6012
6013 * gdbarch.sh: Check that multi-arch methods do not provide a
6014 macro.
6015 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6016 (print_registers_info, print_float_info, print_vector_info)
6017 (adjust_breakpoint_address, remote_translate_xfer_address)
6018 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6019 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6020 name from the multi-arch definition.
6021
6022 2004-06-20 Andrew Cagney <cagney@gnu.org>
6023
6024 * gdbarch.sh: Sort by the function, instead of macro name.
6025 * gdbarch.c: Re-generate.
6026
6027 2004-06-20 Andrew Cagney <cagney@gnu.org>
6028
6029 * gdbarch.sh: Use the function, instead of macro name in
6030 errors and the log file.
6031 (return_value): Remove stray ":" in spec.
6032
6033 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6034 * gdbarch.h, gdbarch.c: Re-generate.
6035 * Makefile.in (arch-utils.o): Update dependencies.
6036 * values.c (using_struct_return): Move code calling
6037 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6038 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6039 to legacy_return_value, simplify.
6040 * infcmd.c (print_return_value): Move code calling
6041 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6042 to legacy_return_value, simplify.
6043 * infcall.c (call_function_by_hand): Move code calling
6044 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6045 * arch-utils.c: Update copyright. Include "gdbcore.h".
6046 (legacy_return_value): New function.
6047 * arch-utils.h: Update copyright.
6048 (legacy_return_value): Declare.
6049
6050 2004-06-20 Andrew Cagney <cagney@gnu.org>
6051
6052 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6053 * gdbarch.h, gdbarch.c: Re-generate.
6054 * values.c (using_struct_return): Update call.
6055 * mcore-tdep.c: Update comment.
6056 * infcall.c (call_function_by_hand): Update comment.
6057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6058 * arch-utils.h (always_use_struct_convention): Update.
6059 * v850-tdep.c (v850_gdbarch_init): Update.
6060 * sh64-tdep.c (sh64_gdbarch_init): Update.
6061 * sh-tdep.c (sh_gdbarch_init): Update.
6062 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6063 * mips-tdep.c (mips_gdbarch_init): Update.
6064 * mcore-tdep.c (mcore_gdbarch_init): Update.
6065 * m32r-tdep.c (m32r_gdbarch_init): Update.
6066 * ia64-tdep.c (ia64_gdbarch_init): Update.
6067 * h8300-tdep.c (h8300_gdbarch_init): Update.
6068 * frv-tdep.c (frv_gdbarch_init): Update.
6069 * cris-tdep.c (cris_gdbarch_init): Update.
6070 * arm-tdep.c (arm_gdbarch_init): Update.
6071 * alpha-tdep.c (alpha_gdbarch_init): Update.
6072
6073 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6074
6075 * PROBLEMS: Add more specific information, and a work-around,
6076 for PR gdb/1458.
6077
6078 2004-06-18 Andrew Cagney <cagney@gnu.org>
6079
6080 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6081 * gdbarch.h, gdbarch.c: Re-generate.
6082 * ada-lang.c (ada_finish_decode_line_1): Update.
6083 * infrun.c (handle_inferior_event): Update.
6084 * infcall.c (find_function_addr): Update.
6085 * linespec.c (minsym_found): Update.
6086 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6087 Update.
6088 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6089 * cli/cli-cmds.c (disassemble_command): Update.
6090 * vax-tdep.c (vax_gdbarch_init): Update.
6091
6092 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6093
6094 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6095
6096 2004-06-17 Andrew Cagney <cagney@gnu.org>
6097
6098 GDB 6.1.1 released from the GDB 6.1 branch.
6099 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6100 * PROBLEMS: Ditto.
6101
6102 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6103
6104 PR gdb/1658
6105 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6106 operation as a uleb128. Found by Michael Coulter.
6107
6108 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6109
6110 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6111 make it non-static.
6112 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6113 to ada-lang.h; this is needed to be able to implement the kill command
6114 in multi-task mode.
6115 (task_ptid): Ditto.
6116 (task_entry): Ditto.
6117 (task_list): Ditto.
6118 (ada_build_task_list): Ditto.
6119
6120 * ada-lang.c: Conditionalize routines and data structures related
6121 to breakpoints, exceptions, completion, and symbol caching on
6122 GNAT_GDB, since these are not yet used in the submitted public sources.
6123 (ada_main_name): Editorial: Move definition out of exception-related
6124 code.
6125
6126 2004-06-15 Andrew Cagney <cagney@gnu.org>
6127
6128 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6129 deprecated_pc_in_call_dummy.
6130
6131 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6132
6133 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6134 bfd_get_section_size_before_reloc or _raw_size.
6135 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6136 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6137 (dwarf2_read_section): Likewise.
6138 * elfread.c (elf_locate_sections): Likewise.
6139 * gcore.c (derive_heap_segment): Likewise.
6140 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6141 * remote-e7000.c (e7000_load): Likewise.
6142 * remote-m32r-sdi.c (m32r_load): Likewise.
6143 * remote-mips.c (mips_load_srec): Likewise.
6144 (pmon_load_fast): Likewise.
6145 * remote.c (compare_sections_command): Likewise.
6146 * symfile.c (add_section_size_callback): Likewise.
6147 (load_section_callback): Likewise.
6148 (pc_in_unmapped_range): Likewise.
6149 (pc_in_mapped_range): Likewise.
6150 (sections_overlap): Likewise.
6151 (list_overlays_command): Likewise.
6152 (simple_overlay_update_1): Likewise.
6153 (simple_overlay_update): Likewise.
6154 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6155 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6156
6157 2004-06-14 Randolph Chung <tausq@debian.org>
6158
6159 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6160 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6161 static.
6162 (hppa_hpux_inferior_created): New function.
6163 (hppa_hpux_init_abi): Register observer.
6164 * symfile.c (hp_cxx_exception_support_initialized)
6165 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6166 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6167
6168 2004-06-14 Randolph Chung <tausq@debian.org>
6169
6170 * MAINTAINERS (Write After Approval): Alphabetize my entry
6171 correctly.
6172
6173 2004-06-14 Andrew Cagney <cagney@gnu.org>
6174
6175 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6176 testsuite maintainer.
6177
6178 2004-06-13 Andrew Cagney <cagney@gnu.org>
6179
6180 * infcmd.c (print_return_value): Fix logic, allow
6181 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6182
6183 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6184 defining any macros.
6185 * gdbarch.h: Re-generate.
6186
6187 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6188 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6189 * gdbarch.h: Re-generate.
6190
6191 * values.c (generic_use_struct_convention): Don't check gcc_p.
6192
6193 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6194 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6195 * gdbarch.h, gdbarch.c: Regenerate.
6196 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6197 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6199 deprecated_max_register_raw_size and
6200 deprecated_max_register_virtual_size.
6201 * v850-tdep.c (v850_gdbarch_init): Ditto.
6202 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6203 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6204 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6205 * cris-tdep.c (cris_gdbarch_init): Ditto.
6206
6207 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6208 * gdbarch.h, gdbarch.c: Re-generate.
6209 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6210 (m68hc11_use_struct_convention): Delete function.
6211 (m68hc11_extract_struct_value_address): Delete function.
6212 (m68hc11_return_value): New function.
6213 (m68hc11_gdbarch_init): Instead of store_return_value,
6214 extract_return_value, return_value_on_stack,
6215 deprecated_extract_struct_value_address and use_struct_convention,
6216 set return_value.
6217 * values.c (using_struct_return): Do not call
6218 RETURN_VALUE_ON_STACK.
6219 * arch-utils.h (generic_return_value_on_stack_not): Delete
6220 declaration.
6221 * arch-utils.c (generic_return_value_on_stack_not): Delete
6222 function.
6223
6224 2004-06-12 Andrew Cagney <cagney@gnu.org>
6225
6226 * values.c (register_value_being_returned): Delete function.
6227 * infcmd.c (legacy_return_value): Delete function.
6228 * infcall.c (call_function_by_hand): Inline
6229 "register_value_being_returned", simplify.
6230 * values.c (using_struct_return): Update comment, refer to
6231 print_return_value instead of register_value_being_returned.
6232 * infcmd.c (print_return_value): Inline calls to
6233 register_value_being_returned and legacy_return_value. Simplify.
6234
6235 2004-06-11 Randolph Chung <tausq@debian.org>
6236
6237 * somread.c (som_symtab_read): Exclude gcc local symbols.
6238
6239 2004-06-11 Randolph Chung <tausq@debian.org>
6240
6241 * infrun.c (handle_inferior_event): Handle the case when a
6242 trampoline ends up in the runtime resolver, and if the trampoline
6243 has no name. Rearrange the code so that all the trampoline
6244 processing happens before other step-out-of-range handling.
6245
6246 2004-06-11 Martin Hunt <hunt@redhat.com>
6247
6248 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6249 has no fpu.
6250
6251 2004-06-10 Andrew Cagney <cagney@gnu.org>
6252
6253 * blockframe.c (legacy_inside_entry_func): Delete.
6254 (legacy_frame_chain_valid): Inline call to
6255 legacy_inside_entry_func, simplify.
6256
6257 2004-06-10 Bob Rossi <bob@brasko.net>
6258
6259 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6260 * dwarf2read.c (partial_die_info): Add dirname field.
6261 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6262 (read_partial_die): Save away DW_AT_comp_dir.
6263 * defs.h (symtab_to_filename): Removed.
6264 * source.c (find_and_open_source): Added.
6265 (open_source_file): Just calls find_and_open_source.
6266 (symtab_to_filename): Removed.
6267 (symtab_to_fullname, psymtab_to_fullname): Added.
6268 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6269 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6270 symtab_to_filename.
6271 * symtab.h (partial_symtab): Add dirname field.
6272 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6273 (mi_cmd_file_list_exec_source_file): Call new function
6274 symtab_to_fullname to find fullname.
6275 (mi_cmd_file_list_exec_source_files): Added.
6276 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6277 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6278
6279 2004-06-10 Andrew Cagney <cagney@gnu.org>
6280
6281 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6282 to generic_use_struct_convention, the default value.
6283
6284 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6285 of abort.
6286
6287 * ns32k-tdep.c (ns32k_push_arguments): New function.
6288 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6289 * infcall.c (call_function_by_hand): Call error instead of
6290 legacy_push_arguments.
6291 * value.h (legacy_push_arguments): Delete declaration.
6292 * valops.c (legacy_push_arguments): Delete function.
6293 (value_push): Delete function.
6294
6295 2004-06-10 Brian Ford <ford@vss.fsi.com>
6296
6297 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6298 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6299 info.
6300 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6301
6302 2004-06-10 Andrew Cagney <cagney@gnu.org>
6303
6304 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6305 * gdbarch.h, gdbarch.c: Re-generate.
6306 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6307 parameters.
6308 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6309 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6310 deprecated_pc_in_call_dummy instead of
6311 DEPRECATED_PC_IN_CALL_DUMMY.
6312 (arm_skip_prologue): Ditto.
6313 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6314 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6315 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6316 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6317 Ditto.
6318 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6319 (sh64_init_extra_frame_info, sh64_get_saved_register)
6320 (sh64_pop_frame): Ditto.
6321 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6322 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6323 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6324 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6325 (h8300_pop_frame): Ditto.
6326 * blockframe.c (legacy_inside_entry_func)
6327 (legacy_frame_chain_valid): Ditto.
6328 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6329 to deprecated_pc_in_call_dummy.
6330
6331 2004-06-09 Andrew Cagney <cagney@gnu.org>
6332
6333 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6334 provide a default value.
6335 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6336 * gdbarch.h, gdbarch.c: Re-generate.
6337 * arch-utils.c (generic_convert_register_p): Rename
6338 legacy_convert_register_p
6339 (legacy_register_to_value, legacy_value_to_register): Delete
6340 functions.
6341 * arch-utils.h (generic_convert_register_p): Rename
6342 legacy_convert_register_p.
6343 (legacy_register_to_value, legacy_value_to_register): Delete
6344 declarations.
6345
6346 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6347 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6348 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6349 * gdbarch.h, gdbarch.c: Re-generate.
6350 * infcmd.c (default_print_registers_info): Simplify.
6351 * findvar.c (value_of_register): Simplify.
6352 * mi/mi-main.c (get_register): Simplify.
6353 * arch-utils.c (legacy_convert_register_p): Always return 0.
6354 (legacy_register_to_value, legacy_value_to_register): Always call
6355 internal_error.
6356
6357 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6358 #ifdef CLEAR_INSN_CACHE code.
6359 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6360 Delete #ifdef CLEAR_DEFERRED_STORES code.
6361
6362 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6363
6364 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6365 copyright.
6366 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6367
6368 * config/mips/mipsv4.mh: Delete file.
6369
6370 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6371 unreferenced macro.
6372 (hpread_adjust_stack_address): Delete declaration.
6373
6374 2004-06-08 Andrew Cagney <cagney@gnu.org>
6375
6376 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6377 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6378 PTRACE_ATTACH / PTRACE_DETACH available call error.
6379 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6380 * infttrace.c (update_thread_state_after_attach, attach, detach):
6381 Remove #ifdef wrappers.
6382 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6383 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6384 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6385 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6386 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6387 * config/nm-linux.h (ATTACH_DETACH): Delete.
6388 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6389 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6390 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6391 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6392 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6393
6394 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6395
6396 * configure.in: Set $configdir to the right OS specific value.
6397 Use value when setting $tcldir and $tkdir.
6398 * configure: Regenerate.
6399
6400 2004-06-06 Paul Brook <paul@codesourcery.com>
6401
6402 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6403 records.
6404
6405 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6406
6407 * ada-lang.c (lookup_symbol_in_language): New function to allow
6408 re-use of another language's symbol lookup code. (Placed here
6409 temporarily while Ada support is being integrated into the public
6410 tree).
6411 (restore_language): New auxiliary function for
6412 lookup_symbol_in_language.
6413 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6414 temporarily while Ada support is being integrated into the public
6415 tree).
6416
6417 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6418
6419 * Makefile.in (check//%): New.
6420
6421 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6422 (mn10300_store_return_value): Rewrite.
6423 (mn10300_type_align): New.
6424 (mn10300_use_struct_convention): Rewrite.
6425 (mn10300_return_value): New, using all of the above.
6426 (mn10300_pop_frame_regular): Add saved_regs_size.
6427 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6428
6429 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6430 regs if PC is on movm.
6431
6432 2004-06-07 Jim Blandy <jimb@redhat.com>
6433
6434 Add native Linux support for the PowerPC E500.
6435 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6436 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6437 all architectures except the E500.
6438 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6439 #definitions.
6440 (struct gdb_evrregset_t): New type.
6441 (have_ptrace_getsetevrregs): New variable.
6442 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6443 fetch_spe_registers): New functions.
6444 (fetch_register): Call fetch_spe_register as appropriate.
6445 Assert that we're only passed raw register numbers.
6446 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6447 Don't fetch gprs if they're pseudoregisters.
6448 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6449 store_spe_registers): New functions.
6450 (store_register): Call store_spe_register as appropriate.
6451 Assert that we're only passed raw register numbers.
6452 (store_ppc_registers): Call store_spe_registers as appropriate.
6453 Don't store gprs if they're pseudoregisters.
6454
6455 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6456
6457 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6458 struct if one exists, even if we are dealing with a zombie thread.
6459
6460 2004-06-07 Andrew Cagney <cagney@gnu.org>
6461
6462 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6463 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6464 Rename PC_REQUIRES_RUN_BEFORE_USE.
6465 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6466 #ifdef.
6467
6468 2004-06-07 Randolph Chung <tausq@debian.org>
6469
6470 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6471 unwinding after sp has been saved to the stack but before the end
6472 of the prologue, and after the fp has been modified but before it has
6473 been saved to the stack.
6474 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6475 Remove superfluous definitions.
6476 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6477
6478 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6479
6480 Committed by Randolph Chung.
6481 * hppa-linux-nat.c: Include the correct version of the header file
6482 depending on the kernel version.
6483
6484 2004-06-06 Randolph Chung <tausq@debian.org>
6485
6486 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6487 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6488
6489 2004-06-06 Randolph Chung <tausq@debian.org>
6490
6491 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6492 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6493 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6494 * hppa-tdep.c (hppa_symbol_address): New function definition.
6495 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6496
6497 2004-06-06 Randolph Chung <tausq@debian.org>
6498
6499 * hppa-tdep.h (struct value): Forward declaration.
6500 (gdbarch_tdep): Define tdep find_global_pointer method.
6501 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6502 associated with the function we are trying to call, and write it
6503 to the gp register.
6504 (hppa32_convert_from_funct_ptr_addr): New function.
6505 (hppa_find_global_pointer): New function.
6506 (hppa_gdbarch_init): Set default find_global_pointer method; set
6507 convert_from_func_ptr_addr method.
6508 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6509 (hppa_linux_init_abi): Set find_global_pointer method.
6510 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6511
6512 2004-06-06 Randolph Chung <tausq@debian.org>
6513
6514 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6515 to struct value *function.
6516 * gdbarch.c: Regenerate.
6517 * gdbarch.h: Likewise.
6518 * infcall.c (call_function_by_hand): Pass entire function value
6519 to push_dummy_call.
6520
6521 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6522 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6523 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6524 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6525 * arm-tdep.c (arm_push_dummy_call): Likewise.
6526 * avr-tdep.c (avr_push_dummy_call): Likewise.
6527 * cris-tdep.c (cris_push_dummy_call): Likewise.
6528 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6529 * frv-tdep.c (frv_push_dummy_call): Likewise.
6530 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6531 * hppa-tdep.c (hppa32_push_dummy_call)
6532 (hppa64_push_dummy_call): Likewise.
6533 * i386-tdep.c (i386_push_dummy_call): Likewise.
6534 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6535 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6536 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6537 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6538 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6539 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6540 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6541 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6542 (ppc64_sysv_abi_push_dummy_call): Likewise.
6543 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6544 (ppc64_sysv_abi_push_dummy_call): Likewise.
6545 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6546 * s390-tdep.c (s390_push_dummy_call): Likewise.
6547 * sh-tdep.c (sh_push_dummy_call_fpu)
6548 (sh_push_dummy_call_nofpu): Likewise.
6549 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6550 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6551 * vax-tdep.c (vax_push_dummy_call): Likewise.
6552
6553 2004-06-04 Jim Blandy <jimb@redhat.com>
6554
6555 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6556 gdbarch argument to register_size.
6557
6558 * rs6000-tdep.c (rs6000_store_return_value): Use
6559 regcache_cooked_write_part instead of
6560 deprecated_write_register_bytes.
6561 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6562 not gdbarch_deprecated_store_return_value.
6563
6564 * ppc-linux-nat.c (store_register, fetch_register): Remove
6565 incorrect assertions. Simplify and generalize handling of
6566 transfers whose sizes are not multiples of, or less than, sizeof
6567 (PTRACE_XFER_TYPE).
6568
6569 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6570
6571 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6572 as a new thread event.
6573 * thread-db.c (thread_get_info_callback): If the thread is a
6574 zombie, return TD_THR_ZOMBIE.
6575 (thread_from_lwp): If thread_get_info_callback returns
6576 TD_THR_ZOMBIE, check if the thread is still on the thread list
6577 and return a -1 ptid if not found.
6578 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6579 change the status to TARGET_WAITKIND_SPURIOUS.
6580
6581 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6582
6583 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6584 double values in little endian mode.
6585
6586 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6587
6588 Committed by Andrew Cagney.
6589 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6590 after last enum constant to avoid error from IBM C
6591 compiler.
6592
6593 2004-06-02 Jim Blandy <jimb@redhat.com>
6594
6595 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6596 to 'message', and make it local to the lone block that uses it.
6597
6598 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6599
6600 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6601
6602 * ada-exp.y: Update copyright notice.
6603 Include block.h.
6604
6605 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6606 SPECIAL_VARIABLE and unify the treatment of these cases.
6607
6608 (write_attribute_call0): Remove.
6609 (write_attribute_call1): Remove.
6610 (write_attribute_calln): Remove.
6611 (save_qualifier): Add missing semicolon.
6612
6613 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6614 temporarily disabled to allow compilation with FSF head version.
6615
6616 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6617 use individual operators (OP_*) for all attributes.
6618 (exp syntax): Use write_int.
6619 Handle STRING literals with OP_STRING.
6620 (variable syntax): Add limit parameter to calls to
6621 write_object_renaming.
6622
6623 (temp_parse_space): New definition to hold entities that need
6624 only live until the next call to ada_parse.
6625 (string_to_operator): Rename fields of ada_opname_table entries.
6626
6627 (write_var_from_sym): Record block.
6628 (write_var_from_name): Minor reformatting.
6629 Make sure saved name is properly encoded in the case of multiple
6630 matches, and set its language to Ada.
6631 Update comment.
6632 Modify to indicate unresolved name as symbol in the UNRESOLVED
6633 namespace, allocated in temp_parse_space.
6634 (write_int): New function.
6635
6636 (write_object_renaming): Add max_depth parameter to limit
6637 chains of object renamings.
6638 Handle case where root of renaming expression is itself a renaming.
6639 Use temp_parse_space for temporary name buffer.
6640 Handle renamings to dereferenced pointers (___XEXA suffices).
6641
6642 (ada_parse, yyerror, string_to_operator,
6643 write_var_from_sym, write_var_from_name, write_attribute_call0,
6644 write_attribute_call1, write_attribute_calln,
6645 write_object_renaming): Protoize.
6646
6647 (_initialize_ada_exp): New function.
6648
6649 * ada-lang.c: Update copyright notice.
6650 General terminology change to conform to GNAT compiler usage:
6651 mangle => encode, demangle => decode
6652 Include gdb_obstack.h.
6653 Include gdb_regex.h
6654 Include frame.h
6655 Include hashtab.h
6656 Include completer.h
6657 Include gdb_stat.h
6658 Include block.h
6659 Include infcall.h
6660
6661 (ADA_RETAIN_DOTS): Make sure this is defined.
6662 (TRUNCATION_TOWARDS_ZERO): Define.
6663 (struct string_vector): Define.
6664 (unresolved_names): Remove definition.
6665 (xnew_string_vector): New function.
6666 (string_vector_append): New function.
6667 (extract_string): Make static.
6668 (ada_unqualified_name): New function.
6669 (add_angle_brackets): New function.
6670 (function_name_from_pc): New function.
6671 (place_on_stack): Rename to ensure_lval.
6672
6673 (ensure_lval): Renamed from place_on_stack.
6674 Make identity on lvals.
6675 Update comment.
6676 (is_nonfunction): New interface.
6677 Only symbols in LOC_CONST class can be enumerals.
6678 (fill_in_ada_prototype): Remove; now independent of language.
6679 (add_defn_to_vec): Add obstack and symtab arguments.
6680 Use obstack to hold collected definitions.
6681 (num_defns_collected): New function.
6682 (defns_collected): New function.
6683 (ada_resolve_subexp): Rename to resolve_subexp.
6684 (resolve_subexp): Renamed from ada_resolve_subexp.
6685 (ada_op_name): Return non-const result.
6686 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6687 other purposes.
6688
6689 (to_fixed_array_type): Add declaration.
6690 (coerce_unspec_val_to_type): Remove offset parameter.
6691 (find_sal_from_funcs_and_line): New interface.
6692 (find_line_in_linetable): Ditto.
6693
6694 (all_sals_for_line): Rename to ada_sals_for_line and make
6695 global.
6696 Add new parameter. When set, do not ask the user to choose the
6697 instance, but use the first one found instead.
6698 Use given line number in returned sals.
6699 Fix comment.
6700 Skip the prologue if funfirstline is set.
6701 Correct for memory leak when 0 lines found.
6702
6703 (value_pos_atr): Use pos_atr.
6704 (pos_atr): New function.
6705 (standard_lookup): Add block parameter.
6706
6707 (makeTimeStart): Remove declaration and uses.
6708 (makeTimeStop): Remove declaration and uses.
6709
6710 (ada_completer_word_break_characters): Allow for VMS.
6711 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6712 (raise_sym_name): New constant.
6713 (raise_unhandled_sym_name): New constant.
6714 (raise_assert_sym_name): New constant.
6715 (process_raise_exception_name): New constant.
6716 (longest_exception_template): New constant.
6717 (warning_limit): New variable to limit warnings during expression
6718 evaluation.
6719 (warnings_issued): New variable to keep track of warnings issued.
6720 (known_runtime_file_name_patterns): New constant.
6721 (known_auxiliary_function_name_patterns): New constant.
6722 (symbol_list_obstack): New variable.
6723
6724 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6725 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6726 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6727 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6728 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6729 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6730 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6731 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6732 and strcmp.
6733
6734 (ada_get_field_index): New function.
6735 (lim_warning): New function.
6736 (ada_translate_error_message): New function.
6737 (MAX_OF_SIZE): New function.
6738 (MIN_OF_SIZE): New function.
6739 (UMAX_OF_SIZE): New function.
6740 (UMIN_OF_SIZE): New function.
6741 (discrete_type_high_bound): New function.
6742 (discrete_type_low_bound): New function.
6743 (base_type): New function.
6744 (do_command): Remove.
6745
6746 (ada_update_initial_language): Use language_ada, not language_unknown.
6747 (ada_encode): Renamed from ada_mangle.
6748 Obey ADA_RETAIN_DOTS.
6749 (ada_decode): Renamed from ada_demangle.
6750 Update coding conventions.
6751 (decoded_names_store): New hash table.
6752 (ada_decode_symbol): New function.
6753 (ada_la_decode): New function.
6754
6755 (modify_general_field): Correct computations of offset and bit
6756 position.
6757 (desc_base_type): Handle ref types, too.
6758 (ada_is_direct_array_type): New function.
6759
6760 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6761 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6762 (ada_is_bogus_array_descriptor,ada_type_of_array,
6763 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6764 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6765 ada_is_array_descriptor_type.
6766
6767 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6768 (ada_is_packed_array_type): Handle pointers or
6769 references to packed arrays as well.
6770 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6771 (decode_packed_array_type): Search for the packed array type
6772 symbol in the currently selected block and associated
6773 superblocks too.
6774 Use lookup_symbol again.
6775
6776 (decode_packed_array): Handle pointers and references.
6777 Update call to coerce_unspec_val_to_type.
6778 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6779 (ada_value_primitive_packed_val): Improve comment.
6780
6781 (ada_index_type): Substitute int type for "undefined".
6782 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6783 ada_array_langth, ada_is_string_type): Use renamed
6784 ada_is_simple_array_type.
6785 (empty_array): New function.
6786
6787 (ada_resolve): Rename to resolve.
6788 (resolve): Make static.
6789 Call renamed resolve_subexp.
6790 Update comment.
6791 (ada_resolve_subexp): Rename to resolve_subexp.
6792 (resolve_subexp): Update comment.
6793 Decomment disabled code.
6794 Add LOC_COMPUTED* cases.
6795 Modify to use temporary struct symbols (marked as being in
6796 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6797 OP_UNRESOLVED_VALUE.
6798 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6799 Add OP_STRING case.
6800 Remove OP_ARRAY.
6801 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6802 Use new ada_lookup_symbol_list interface.
6803 Use new ada_resolve_function interface.
6804 Remove OP_TYPE case.
6805
6806 (ada_args_match): Idiot proof against null actuals.
6807 Use intermediate variables to clarify.
6808 (ada_resolve_function): Update comment and interface.
6809 (mangled_ordered_before): Rename to encoded_ordered_before and
6810 update comment.
6811 (sort_choices): Update comment and interface.
6812 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6813 (user_select_syms): New interface.
6814 Use new sort_choices interface.
6815 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6816 (possible_user_operator_p): Idiot-proof against null values.
6817 (ada_simple_renamed_entity): Don't make cleanup; rely on
6818 caller to free result string.
6819 Remove const from return type.
6820 (make_array_descriptor): Rename uses of place_on_stack to
6821 ensure_lval.
6822 Make sure that arrays are on stack.
6823
6824 (HASH_SIZE): Define.
6825 (struct cache_entry): Define.
6826 (cache_space): Define.
6827 (cache): Define.
6828 (clear_ada_sym_cache): New function.
6829 (find_entry): New function.
6830 (lookup_cached_symbol): New function.
6831 (defn_vector_size): Define.
6832 (cache_symbol): New function.
6833 (defn_symbols): Remove.
6834
6835 (standard_lookup): Use lookup_symbol_in_language to get effect of
6836 C lookup.
6837 Cache results.
6838
6839 (symbol_completion_match): New function.
6840 (symbol_completion_add): New function.
6841 (ada_make_symbol_completion_list): New function.
6842
6843 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6844 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6845 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6846 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6847
6848 (ada_lookup_simple_minsym): New function.
6849 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6850
6851 (add_symbols_from_enclosing_procs): New interface.
6852 Conditionalize more helpfully.
6853 Don't bother if program isn't running.
6854 Use new interface to get_frame_block.
6855 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6856
6857 (remove_extra_symbols): New interface.
6858 (xget_renaming_scope): New function.
6859 (is_package_name): New function.
6860 (renaming_is_visible): New function.
6861 (remove_out_of_scope_renamings): New function.
6862
6863 (ada_lookup_symbol_list): New interface.
6864 Properly reinitialize the symbol list obstack.
6865 Don't call add_symbols_from_enclosing_procs if we start from a
6866 static or global block.
6867 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6868 add_symbols_from_enclosing_procs.
6869 Add symtab data to cached entries.
6870 Handle symbols prefixed with
6871 "standard__" specially; strip prefix and don't look in local symbols.
6872 Do not include out of scope renaming symbols in list of
6873 symbols returned.
6874 Add const to block parameter.
6875 Move check for non-local, non-global symbols earlier.
6876 Remove timing stuff.
6877 (ada_lookup_symbol): New interface.
6878 Find symtab as well.
6879 (ada_lookup_symbol_nonlocal): New function.
6880
6881 (is_name_suffix): Enhance suffix detection to recognize
6882 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6883 (is_dot_digits_suffix): New function.
6884 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6885
6886 (ada_add_block_symbols): New interface. Use obstack to return results
6887 in a vector of struct ada_symbol_infos. Add symtab argument.
6888 Use new interface to add_defn_to_vec.
6889 Remove calls to fill_in_ada_prototype.
6890 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6891
6892 (ada_finish_decode_line_1): Add const qualification to local to fix
6893 warning.
6894 Start looking in static block for functions to avoid attempts
6895 to search frame chain for up-level variables.
6896 Adapt to new ada_sals_for_line interface.
6897 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6898 Handle quoting of the function name inside the spec string.
6899 Skip prologue when funfirstline is set and update the
6900 function documentation to that effect.
6901
6902 (debug_print_lines, debug_print_block, debug_print_blocks,
6903 debug_print_symtab): Remove.
6904
6905 (ada_main_name): New function.
6906 (ada_exception_breakpoint_type): New function.
6907 (is_known_support_routine): New function.
6908 (ada_find_printable_frame): Renamed from find_printable_frame and made
6909 global.
6910 Remove level parameter.
6911 Use new interface to select_frame.
6912
6913 (begin_command): Remove.
6914 (ada_adjust_exception_stop): New function.
6915 (ada_print_exception_stop): New function.
6916 (exception_name_from_cond): New function.
6917 (ada_report_exception_break): Replace disabled code with
6918 conditionalization on GNAT_GDB.
6919 Get the exception name from the condition string.
6920 Remove and move functionality into new functions
6921 ada_print_exception_breakpoint_task and
6922 ada_print_exception_breakpoint_nontask.
6923 (error_breakpoint_runtime_sym_not_found): New function.
6924 (is_runtime_sym_defined): New function.
6925 (ada_breakpoint_rewrite): Uncomment suppressed code.
6926 Use symbolic error-message and runtime-symbol names.
6927 Surround runtime symbol names in quotes.
6928 Allow non-specific breakpoints on exceptions and assertions before
6929 program starts.
6930
6931 (ada_is_tagged_type): Add parameter.
6932 (ada_is_tag_type): New function.
6933 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6934 (ada_variant_discrim_type): Ditto.
6935 (value_tag_from_contents_and_address): New function.
6936 (type_from_tag): New function.
6937 (struct tag_args): New structure used to communicate with
6938 ada_tag_name_1.
6939 (ada_tag_name_1): New function.
6940 (ada_tag_name): New function.
6941
6942 (ada_scan_number): Update comment.
6943 (find_struct_field): New function.
6944 (ada_search_struct_field): Make static.
6945 (ada_value_struct_elt): New version that returns references when
6946 given pointers or references to structs.
6947 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6948 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6949 interface.
6950 (ada_value_ind): Use new ada_to_fixed_value interface.
6951 (ada_coerce_ref): Ditto.
6952 (field_offset): Remove.
6953
6954 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6955 (ada_find_renaming_symbol): New function.
6956 (ada_prefer_type): Prefer named types over unnamed ones.
6957 (variant_field_index): New function.
6958 (contains_variant_part): Removed: subsumed by variant_field_index.
6959 (ada_template_to_fixed_record_type): New function, mostly from
6960 template_to_fixed_record_type.
6961 (template_to_fixed_record_type):
6962 Do not scan the type fields beyond the last one; prevents a
6963 potential SEGV.
6964 Handle case where variant field is listed BEFORE discriminant it
6965 depends on.
6966 Fix calculation of record length when bit length is
6967 not evenly divisible by char length.
6968 Move code to ada_template_to_fixed_record_type and call it.
6969
6970 (template_to_static_fixed_type): Revise comment.
6971 Modify to work on ordinary record types as well as templates,
6972 so as to handle fields that use ___XVE or ___XVU encodings.
6973 (to_record_with_fixed_variant_part): Fill out comment.
6974 Initialize C++ stuff in right type.
6975 Allow case where DVAL is null.
6976 Handle case where variant field is not last.
6977 Fix typo concerning record length.
6978 (to_fixed_record_type): Decomment disabled code.
6979 (to_fixed_record_type): Use variant_field_index instead of
6980 contains_variant_part.
6981 (to_fixed_variant_branch_type): Ditto.
6982 (to_fixed_array_type): Decomment disabled code.
6983 (ada_to_fixed_type): Convert tagged types to the specific type.
6984 Deactivate the size-check for array types in order to avoid
6985 some false size alarms.
6986 (to_static_fixed_type): Decomment disabled code.
6987 Modify to call template_to_static_fixed_type
6988 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6989 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6990 Remove valaddr argument, as it is never really used.
6991 (ada_to_fixed_value): Change interface to act on single struct value*
6992 operand.
6993 (adjust_pc_past_prologue): New function.
6994 (ada_attribute_name): Modify to take enum exp_opcode argument.
6995
6996 (ada_enum_name): Recognize new homonym-distinguishing convention.
6997 Adjust local variable's type to remove compiler warning.
6998 Fix a small problem in the part that unqualifies the enumeration name.
6999 (ada_value_binop): New function.
7000 (ada_value_equal): New function.
7001
7002 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7003 Don't give error message when not doing normal evaluation
7004 and a tagged type doesn't seem to contain a structure member.
7005 Give error message for packed arrays.
7006 For indexing arrays, handle pointers to packed arrays correctly.
7007 Handle case of 'first and 'last attributes of bare integral type
7008 without encoded subtype info.
7009 Remove some unnecessary casts.
7010 Fix uninitialized value of type in computing 'first, 'last, or 'length
7011 of array object.
7012 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7013 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7014 calls.
7015 Attributes are now exp_opcode values.
7016 Correct treatment of 'modulus.
7017 Better error message for taking 'length of wrong kind of type;
7018 improve comment.
7019 Change EVAL_NORMAL to noside for consistency.
7020 Use ada_value_binop for DIV, MOD, REM.
7021 Make special case out of array of length 0, since an argument
7022 of 0 upsets some platforms' malloc.
7023 Use OP_STRING instead of OP_ARRAY.
7024 For slice, add check that we have an array type before extracting
7025 a slice out of it. Avoids a SEGV.
7026 When evaluating an array slice, if the array type is a reference to
7027 an aligner type, then replace the aligner type by the actual type.
7028 Decomment disabled code.
7029 Remove some dead code.
7030 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7031 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7032 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7033 and UNOP_MBR to UNOP_IN_RANGE.
7034 If an array type has a parallel ___XVE type, then use it.
7035 Turn arrays into pointers for lvalue arrays.
7036 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7037 bounds error and handle 0-length slices.
7038 Use lim_warning.
7039 When selecting fields, apply ada_to_fixed_value (because the fields
7040 might have ___XVU or ___XVE encodings even if not dynamic.)
7041 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7042 (ada_is_system_address_type): New function.
7043
7044 (get_var_value): Use new interface to ada_lookup_symbol_list.
7045 (get_int_var_value): New interface.
7046 (to_fixed_range_type): Allow unknown bound, with warning.
7047 (ada_is_modular_type): Decomment disabled code.
7048 (ADA_OPERATORS): New definition.
7049 (ada_operator_length): New function.
7050 (ada_expr_op_name): New function.
7051 (ada_forward_operator_length): New function.
7052 (ada_dump_subexp_body): New function.
7053 (ada_print_subexp): New function.
7054 (ada_exp_descriptor): New constant.
7055 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7056 (ada_language_defn): Add ada_exp_descriptor entry.
7057 Change ada_parse => parse.
7058 Add post-parser entry.
7059 Use ada-specific non-local symbol lookup.
7060 Don't use C-style arrays.
7061 String lower-bound is 1.
7062 Decomment disabled code.
7063 (parse): New function.
7064 New fields ada_translate_error_message, ada_lookup_symbol,
7065 ada_lookup_minimal_symbol.
7066
7067 * ada-lang.h: Update copyright dates.
7068 Replace the mangle/demangle terminology throughout by the
7069 more appropriate encode/decode one.
7070 Include breakpoint.h.
7071 Forward declare struct partial_symbol, struct block.
7072 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7073 (EXTRACT_ADDRESS): Remove.
7074 (EXTRACT_INT): Remove.
7075 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7076 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7077 (MAX_RENAMING_CHAIN_LENGTH): Define.
7078 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7079
7080 (enum task_states): Remove.
7081 ada_task_states: Remove.
7082 (fat_string): Remove.
7083 (struct entry_call): Remove.
7084 (struct task_fields): Remove.
7085 (struct task_entry): Remove.
7086
7087 (struct ada_symbol_info): Define.
7088 (enum ada_attribute): Remove.
7089 (enum ada_operator): Define.
7090
7091 (ada_get_field_index): Declare.
7092 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7093 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7094 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7095 (ada_lookup_symbol_list): New interface.
7096 (ada_decode_symbol): Declare.
7097 (ada_decode): Declare.
7098 (ada_lookup_symbol): New interface.
7099 (ada_update_initial_language): Declare.
7100 (ada_lookup_simple_minsym): Declare.
7101 (user_select_syms): New interface.
7102 (ada_sals_for_line): Declare.
7103 (ada_is_tagged_type): New interface.
7104 (ada_tag_name): Declare.
7105 (ada_lookup_struct_elt_type): Remove declaration.
7106 (ada_search_struct_field): Remove declaration.
7107 (ada_attribute_name): New interface.
7108 (ada_is_system_address_type): Declare.
7109 (ada_to_fixed_value): Remove declaration.
7110 (ada_template_to_fixed_record_type_1): Declare.
7111 (get_int_var_value): New interface.
7112 (ada_find_any_symbol): Declare.
7113 (ada_find_renaming_symbol): Declare.
7114 (ada_mangle): Rename to ada_encode.
7115 (ada_simple_renamed_entity): Remove const.
7116 (ada_main_name): Declare.
7117 (get_current_task): Rename to ada_get_current_task.
7118 (get_entry_number): Remove declaration.
7119 (ada_report_exception_break): Remove declaration.
7120 (ada_print_exception_breakpoint_nontask): Declare.
7121 (ada_print_exception_breakpoint_task): Declare.
7122 (ada_find_printable_frame): Declare.
7123
7124 * ada-lex.l: Update copyright notices.
7125 Use xmalloc and xfree instead of malloc and free.
7126 Use new interface to name_lookup.
7127 Use new interface to
7128 ada_mangle=>ada_encode.
7129 Redo handling of '$...' variable to parallel current treatment
7130 in c-exp.y.
7131 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7132 digit_to_int, strtoulst, processInt, processReal, processId,
7133 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7134 yywrap): Protoize.
7135
7136 (processInt): Use cast to remove harmless warning.
7137 (processReal): Modify to get rid of compiler warning on scan formats.
7138
7139 (processId): Replace xmalloc with obstack_alloc for name and remove
7140 call to ada_name_string_cleanup.
7141 Remove obsolete disabled code.
7142 (name_lookup): Ditto.
7143 New interface.
7144 Use obsavestring on temp_parse_space instead of savestring
7145 on name, and remove call to ada_name_string_cleanup.
7146 Free string returned from ada_simple_renamed_entity.
7147 Use new interface to ada_lookup_symbol_list.
7148 Decomment disabled code.
7149 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7150 not types.
7151 When a type name lookup succeeds as a result of
7152 lookup_primitive_typename, check for regular type entry that has not
7153 yet been read in.
7154 Limit length of chain of renamed symbols we are willing to follow.
7155 Do not break names beginning with "standard__" into segments.
7156 (block_lookup): Use new interface to ada_lookup_symbol_list.
7157
7158 * ada-typeprint.c: Update copyright notice.
7159 (demangled_type_name): Rename to decoded_type_name.
7160 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7161 (print_range_bound): Correct handling of negative
7162 bounds that make the index type looked unsigned under STABS.
7163 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7164 (print_range_type_named): Use the builtin int type if no type
7165 corresponding to the given type name could be found.
7166 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7167 Add some bullet-proofing.
7168 (print_variant_clauses): Allow for variant branches with ___XVU
7169 encodings that are not dynamic fields.
7170 Use new interface to ada_is_tagged_type.
7171 (print_record_type): Allow for fields with ___XVE encodings that
7172 are not dynamic fields.
7173 Use new interface to ada_is_tagged_type.
7174 (ada_print_type): ada_is_array_descriptor =>
7175 ada_is_array_descriptor_type.
7176
7177 * ada-valprint.c: Update copyright notice.
7178 Include gdb_string.h
7179 Include infcall.h
7180 (ui_memcpy): New function.
7181 (ada_print_floating): New function.
7182 (ada_print_str): Order arguments correctly.
7183 Correct handling of empty arrays and arrays of 0-length items.
7184 ada_is_array_descriptor => ada_is_array_descriptor_type
7185 Print values of type System.Address in hexadecimal format.
7186 Use ada_print_floating to print floating-point numbers in Ada format.
7187 Print class tag values with type names.
7188 No longer print the address of reference values. Avoids
7189 a potential confusion.
7190 (ada_value_print): Stop printing the object type for reference
7191 values, but preserve that behavior for access types. Avoids
7192 a potential confusion.
7193 Simplify one conditional expression, as the first part is now
7194 necessarily true.
7195 ada_is_array_descriptor => ada_is_array_descriptor_type
7196 Add check for arrays for null records, and print them by hand.
7197
7198 2004-06-01 Jim Blandy <jimb@redhat.com>
7199
7200 * ppc-tdep.h: Delete unused 'regoff' member.
7201 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7202
7203 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7204
7205 Fix PR symtab/1661.
7206 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7207 (hpread_read_struct_type): Likewise.
7208
7209 2004-06-01 Andrew Cagney <cagney@gnu.org>
7210
7211 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7212 instead of xasprintf.
7213 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7214 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7215 (mi_cmd_data_list_register_names)
7216 (mi_cmd_data_list_changed_registers)
7217 (mi_cmd_data_list_register_values)
7218 (get_register, mi_cmd_data_write_register_values)
7219 (mi_cmd_data_write_register_values)
7220 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7221 (mi_cmd_target_download, mi_cmd_target_select)
7222 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7223 (mi_execute_cli_command, mi_execute_async_cli_command)
7224 (mi_execute_async_cli_command): Ditto.
7225 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7226 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7227
7228 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7229 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7230 error_last_message instead of mi_error_last_message.
7231 * mi/mi-main.c (mi_error_last_message): Delete function.
7232
7233 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7234 "invalid number of columns" error. Delete redundant "out of
7235 memory" check.
7236
7237 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7238
7239 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7240 (gregset_t, fpregset_t): Remove typedefs.
7241 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7242 (REG_OFFSET): Rename argument.
7243 (i386bsd_r_reg_offset): Rename from reg_offset.
7244 (REG_ADDR): Remove macro.
7245 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7246 functions.
7247 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7248 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7249 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7250 instead of supply_gregset.
7251 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7252 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7253 instead of fill_gregset.
7254 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7255
7256 * i386bsd-nat.c: Don't include "gregset.h".
7257 (supply_gregset, fill_gregset): Make static.
7258 (supply_fpregset, fill_fpregset): Remove.
7259 * Makefile.in (i386bsd-nat.o): Update dependencies.
7260
7261 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7262
7263 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7264 "gdb_assert.h". Con't include "gregset.h".
7265 (fbsd_make_corefile_notes): Use regset-based core file support
7266 instead off fill_gregset and fill_fpregset.
7267 * Makefile.in (fbsd-proc.o): Update dependencies.
7268
7269 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7270 instructions.
7271 (m88k_frame_prev_register): Simplify code a bit.
7272
7273 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7274 (amd64_collect_fpregset): New function.
7275 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7276
7277 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7278
7279 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7280 (i386_collect_gregset): New function.
7281 (i386_supply_fpregset): Adjust comment.
7282 (i386_collect_fpregset): New function.
7283 (i386_regset_from_core_section): Use i386_collect_gregset and
7284 i386_collect_fpregset.
7285
7286 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7287 handle VALUEP being null.
7288
7289 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7290
7291 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7292
7293 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7294
7295 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7296 assembler in OpenBSD 3.5-current.
7297 (amd64obsd_sigcontext_addr): Likewise.
7298
7299 2004-05-28 Jim Blandy <jimb@redhat.com>
7300
7301 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7302 register set, so our regcache isn't declared "legacy" and our E500
7303 pseudoregister read and write functions aren't ignored.
7304 (rs6000_register_byte, rs6000_register_raw_size,
7305 rs6000_register_virtual_type, rs6000_register_convertible,
7306 rs6000_register_convert_to_virtual,
7307 rs6000_register_convert_to_raw): Deleted.
7308 (rs6000_register_type, rs6000_convert_register_p,
7309 rs6000_register_to_value, rs6000_value_to_register): New
7310 functions.
7311 (rs6000_gdbarch_init): Don't register
7312 gdbarch_deprecated_register_size,
7313 gdbarch_deprecated_register_bytes,
7314 gdbarch_deprecated_register_byte,
7315 gdbarch_deprecated_register_raw_size,
7316 gdbarch_deprecated_register_virtual_type,
7317 gdbarch_deprecated_register_convertible,
7318 gdbarch_deprecated_register_convert_to_virtual, or
7319 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7320 register gdbarch_register_type, gdbarch_convert_register_p,
7321 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7322
7323 2004-05-26 Jim Blandy <jimb@redhat.com>
7324
7325 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7326 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7327 functions, updated to match the register numberings used in GCC.
7328 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7329 rs6000_dwarf2_reg_to_regnum as register number conversions
7330 functions for STABS and Dwarf2.
7331
7332 2004-05-26 Randolph Chung <tausq@debian.org>
7333
7334 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7335 in header file.
7336
7337 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7338
7339 * NEWS: Document new "start" command.
7340
7341 2004-05-25 Randolph Chung <tausq@debian.org>
7342
7343 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7344 hppa-linux.
7345
7346 2004-05-25 Randolph Chung <tausq@debian.org>
7347
7348 * hppa-hpux-tdep.c (offsetof): Define.
7349 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7350 (hppa32_hpux_frame_base_before_sigtramp)
7351 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7352 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7353 (hppa64_hpux_frame_base_before_sigtramp)
7354 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7355 functions.
7356 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7357 (hppa_hpux_sigtramp_frame_unwind_cache)
7358 (hppa_hpux_sigtramp_frame_this_id)
7359 (hppa_hpux_sigtramp_frame_prev_register)
7360 (hppa_hpux_sigtramp_frame_unwind)
7361 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7362 (hppa_hpux_init_abi): Register sigtramp unwinder.
7363 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7364
7365 2004-05-25 Randolph Chung <tausq@debian.org>
7366
7367 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7368 and multiple stack unwinds.
7369 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7370
7371 2004-05-25 Andrew Cagney <cagney@gnu.org>
7372
7373 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7374 * symfile-mem.h: Delete file.
7375 * symfile-mem.c: Do not include "symfile-mem.h".
7376 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7377 "struct bfd_section". When an error do not bother returning NULL.
7378 (add_symbol_file_from_memory_command): Use "struct bfd" and
7379 "struct bfd_section".
7380 * Makefile.in (symfile_mem_h): Delete.
7381 (symfile-mem.o): Update dependencies.
7382
7383 2004-05-25 Nick Roberts <nickrob@gnu.org>
7384
7385 * gdb-mi.el: New file.
7386
7387 2004-05-25 Andrew Cagney <cagney@gnu.org>
7388
7389 * inftarg.c: Include "observer.h".
7390 (child_attach, child_create_inferior): Notify inferior_created.
7391 * corelow.c: Include "observer.h".
7392 (core_open): Notify inferior_created.
7393 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7394
7395 2004-05-25 Andrew Cagney <cagney@gnu.org>
7396
7397 * target.h (struct target_ops): Add from_tty to
7398 to_create_inferior.
7399 (target_create_inferior, find_default_create_inferior): Update.
7400 * infcmd.c (run_command): Update.
7401 * wince.c (child_create_inferior): Update.
7402 * win32-nat.c (child_create_inferior): Update.
7403 * uw-thread.c (uw_thread_create_inferior): Update.
7404 * thread-db.c (thread_db_create_inferior): Update.
7405 * target.c (debug_to_create_inferior)
7406 (find_default_create_inferior): Update.
7407 (maybe_kill_then_create_inferior): Update.
7408 * sol-thread.c (sol_thread_create_inferior): Update.
7409 * remote.c (extended_remote_async_create_inferior)
7410 (extended_remote_create_inferior): Update.
7411 * remote-vx.c (vx_create_inferior): Update.
7412 * remote-st.c (st2000_create_inferior): Update.
7413 * remote-sim.c (gdbsim_create_inferior): Update.
7414 * remote-sds.c (sds_create_inferior): Update.
7415 * remote-rdp.c (remote_rdp_create_inferior): Update.
7416 * remote-rdi.c (arm_rdi_create_inferior): Update.
7417 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7418 * remote-e7000.c (e7000_create_inferior): Update.
7419 * procfs.c (procfs_create_inferior): Update.
7420 * ocd.c (ocd_create_inferior): Update.
7421 * ocd.h (ocd_create_inferior): Update.
7422 * nto-procfs.c (procfs_create_inferior): Update.
7423 * monitor.c (monitor_create_inferior): Update.
7424 * lin-lwp.c (lin_lwp_create_inferior): Update.
7425 * inftarg.c (child_create_inferior): Update.
7426 * hpux-thread.c (hpux_thread_create_inferior): Update.
7427 * gnu-nat.c (gnu_create_inferior): Update.
7428
7429 2004-05-25 Andrew Cagney <cagney@gnu.com>
7430
7431 * MAINTAINERS: Update e-mail address.
7432
7433 2004-05-24 Randolph Chung <tausq@debian.org>
7434
7435 * thread.c (info_threads_command, thread_apply_all_command)
7436 (thread_apply_command, thread_command, do_captured_thread_select):
7437 Remove HPUXHPPA-specific code.
7438
7439 2004-05-24 Randolph Chung <tausq@debian.org>
7440
7441 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7442 unused symbols.
7443 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7444 references.
7445
7446 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7447
7448 * infcmd.c (kill_if_already_running): New function, extracted
7449 from run_command().
7450 (run_command): Replace extracted code by call to
7451 kill_if_already_running().
7452 (start_command): New function.
7453 (_initialize_infcmd): Add "start" command.
7454
7455 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7456
7457 Add OpenBSD/m88k support.
7458 * NEWS (New native configurations): Mention OpenBSD/m88k.
7459 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7460 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7461 * Makefile.in (m88k_tdep_h): New variable.
7462 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7463 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7464 * configure.host: Add m88*-*-openbsd*.
7465 * configure.tgt: Add m88*-*-openbsd*.
7466
7467 2004-05-24 Jim Blandy <jimb@redhat.com>
7468
7469 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7470 to approve changes.
7471
7472 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7473
7474 * symtab.c (fixup_section): Search section table when lookup by
7475 name fails.
7476
7477 2004-05-24 Randolph Chung <tausq@debian.org>
7478
7479 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7480 be "small_struct".
7481
7482 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7483
7484 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7485 register number in regcache_raw_collect call.
7486 (m68kbsd_collect_fpregset): Likewise.
7487 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7488
7489 * regset.h (struct regset): Add back `regset' member.
7490
7491 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7492
7493 * configure.in: Check for td_pcb in `struct thread'.
7494 * configure, config.in: Regenerated.
7495
7496 * dpx2-nat.c: Remove file.
7497 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7498 (dpx2-nat.o): Remove dependencies.
7499
7500 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7501 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7502 (amd64obsd_supply_pcb): New function.
7503 (_initialize_amd64obsd_nat): Enable libkvm interface.
7504 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7505 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7506 (LOADLIBES): New variable.
7507
7508 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7509 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7510 (sparc32nbsd_supply_pcb): New function.
7511 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7512 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7513 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7514 (LOADLIBES): New variable.
7515
7516 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7517
7518 * bsd-kvm.c, bsd-kvm.h: New files.
7519 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7520 "bsd-kvm.h".
7521 (i386fbsd_supply_pcb): New function.
7522 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7523 (i386fbsd-nat.o): Update dependencies.
7524 (bsd_kvm_h): New variable.
7525 (bsd-kvm.o): New dependency.
7526 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7527 (LOADLIBES): New variable.
7528
7529 * regset.c: Tweak comment.
7530 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7531 macro.
7532 * regset.h: Update copyright year.
7533 (struct regset): Remove `descr' member, add `gdbarch' member.
7534 (regset_alloc): Adjust prototype and comment.
7535 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7536 (i386_supply_fpregset): Likewise.
7537 (i386_regset_from_core_section): Update call to regset_alloc.
7538 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7539 REGSET->arch.
7540 (i386obsd_aout_regset_from_core_section): Update call to
7541 regset_alloc.
7542 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7543 REGSET->arch.
7544 (i386nbsd_aout_regset_from_core_section): Update call to
7545 regset_alloc.
7546 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7547 REGSET->arch.
7548 (amd64_regset_from_core_section): Update call to regset_alloc.
7549 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7550 REGSET->arch.
7551 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7552 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7553 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7554 (sparc32nbsd_init_abi): Update call to regset_alloc.
7555 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7556 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7557 (sparc64obsd_init_abi): Update call to regset_alloc.
7558 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7559 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7560 (sparc64nbsd_init_abi): Update call to regset_alloc.
7561 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7562 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7563 (sparc64fbsd_init_abi): Update call to regset_alloc.
7564
7565 2004-05-22 Jim Blandy <jimb@redhat.com>
7566
7567 * ppc-tdep.h (spe_register_p): New declaration.
7568 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7569 ppc_spefscr_regnum.
7570 * rs6000-tdep.c (spe_register_p): New function.
7571 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7572 spefscr.
7573 (rs6000_gdbarch_init): Initialize the new members of the tdep
7574 structure.
7575
7576 2004-05-21 Jim Blandy <jimb@redhat.com>
7577
7578 * ppc-linux-nat.c (fetch_register): Move code back to be next
7579 to the comment that describes it. (Moved code, instead of
7580 comment, for symmetry with store_register.)
7581
7582 Allocate regset structures in the gdbarch's obstack, not using
7583 xmalloc.
7584 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7585 Add 'arch' argument. Allocate the regset on arch's obstack, not
7586 using xmalloc.
7587 * regset.h (regset_alloc): Update declaration.
7588 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7589 gdbarch argument.
7590 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7591 * i386-tdep.c (i386_regset_from_core_section): Same.
7592 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7593 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7594 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7595 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7596 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7597 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7598
7599 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7600
7601 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7602
7603 2004-05-21 Jim Blandy <jimb@redhat.com>
7604
7605 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7606 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7607
7608 2004-05-20 Jim Blandy <jimb@redhat.com>
7609
7610 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7611
7612 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7613
7614 * regset.h: Make prototype const-correct.
7615 * regset.c (regset_xmalloc): Make const-correct.
7616
7617 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7618
7619 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7620 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7621 (symbol_search_name): Declare.
7622
7623 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7624 (iter_name_next_hashed): Ditto.
7625 (iter_name_next_linear): Ditto.
7626 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7627
7628 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7629 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7630 (symbol_search_name): New function.
7631
7632 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7633
7634 * minsyms.c (build_minimal_symbol_hash_tables): Change
7635 test for adding to demangled hash table to check for difference
7636 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7637
7638 2004-05-19 Jim Blandy <jimb@redhat.com>
7639
7640 Use a constructor function to create regset structures.
7641 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7642 (struct regset): Use supply_regset_ftype. Add new
7643 'collect_regset' member.
7644 (regset_xmalloc): New declaration.
7645 * regset.c: New file.
7646 * am64-tdep.c (amd64_regset_from_core_section): Use
7647 regset_xmalloc to construct regset structures.
7648 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7649 * i386-tdep.c (i386_regset_from_core_section): Same.
7650 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7651 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7652 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7653 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7654 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7655 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7656 * Makefile.in (COMMON_OBS): Add regset.o.
7657 (regset.o): New rule.
7658
7659 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7660
7661 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7662 and pthread_cond_wait.c.
7663
7664 2004-05-18 Jim Blandy <jimb@redhat.com>
7665
7666 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7667 before the mach-specific switch, and then let the individual cases
7668 override the defaults, rather than leaving them uninitialized
7669 until the switch and then setting them in each case.
7670
7671 2004-05-18 Randolph Chung <tausq@debian.org>
7672
7673 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7674 millicode functions.
7675
7676 2004-05-18 Randolph Chung <tausq@debian.org>
7677
7678 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7679 references to dld_flags_buffer consistent.
7680
7681 2004-05-18 Randolph Chung <tausq@debian.org>
7682
7683 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7684 it for unwinding the stack.
7685
7686 2004-05-18 Randolph Chung <tausq@debian.org>
7687
7688 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7689 Undefine these so we can overide them using gdbarch.
7690
7691 2004-05-18 Randolph Chung <tausq@debian.org>
7692
7693 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7694 handling for 64-bit HPUX (elf).
7695
7696 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7697
7698 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7699 constants.
7700 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7701 * ia64-tdep.c (examine_prologue): Likewise.
7702 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7703 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7704
7705 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7706
7707 * vax-tdep.c (vax_return_value): Implement
7708 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7709
7710 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7711
7712 * vax-tdep.c (vax_return_value): Fix typo.
7713
7714 2004-05-17 Andrew Cagney <cagney@redhat.com>
7715
7716 * MAINTAINERS: Mark Salter was also responsible for
7717 testsuite/config/
7718
7719 * NEWS: Mention signal fixes.
7720
7721 2004-05-17 Randolph Chung <tausq@debian.org>
7722
7723 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7724 check to see if we are unwinding an export stub. Export stubs clobber
7725 the %rp in the call path and stores the original rp in a stack slot.
7726
7727 2004-05-17 Jim Blandy <jimb@redhat.com>
7728
7729 * MAINTAINERS: Update address for J.T. Conklin.
7730
7731 2004-05-17 Randolph Chung <tausq@debian.org>
7732
7733 * hppa-tdep.c: Remove superfluous #include's.
7734 * Makefile.in (hppa-tdep.o): Update dependencies.
7735
7736 2004-05-17 Randolph Chung <tausq@debian.org>
7737
7738 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7739 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7740 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7741 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7742 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7743 Remove static function declarations.
7744
7745 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7746
7747 * alphabsd-nat.c: Update copyright year.
7748 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7749
7750 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7751 and M68K_A2_REGNUM.
7752
7753 * m68k-tdep.c (m68k_svr4_return_value): Implement
7754 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7755
7756 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7757
7758 * sol-thread.c Update copyright year. Fix various coding
7759 standards violations. Tweak a few comments.
7760 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7761 Delete prototypes.
7762
7763 2004-05-15 Randolph Chung <tausq@debian.org>
7764
7765 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7766 as pointer instead of array reference since HPUX compiler does
7767 not accept unsized array arguments.
7768 * somsolib.c (dld_flags_buffer): Use constant array size.
7769
7770 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7771
7772 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7773 offset with decimal offset.
7774 (amd64obsd_sigcontext_addr): Return correct address for entire
7775 signal trampoline.
7776
7777 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7778 instead of get_frame_base.
7779
7780 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7781 (fill_gregset): Use regcache_raw_collect.
7782
7783 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7784 ppcobsd-tdep.c.
7785
7786 * config/sparc/tm-nbsd64.h: Remove file.
7787 * config/tm-sunos.h: Remove file.
7788
7789 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7790
7791 * rs6000-tdep.c (store_param_on_stack_p): New function,
7792 an improved version of some code extracted from skip_prologue().
7793 (skip_prologue): Use store_param_on_stack_p() to detect
7794 instructions saving a parameter on the stack. Detect when r0
7795 is used to save a parameter.
7796 Do not mark "li rx, SIMM" instructions as part of the prologue,
7797 unless the following instruction is also part of the prologue.
7798
7799 2004-05-14 Andrew Cagney <cagney@redhat.com>
7800
7801 * infrun.c (handle_inferior_event): Simplify
7802 STEP_OVER_UNDEBUGGABLE.
7803
7804 * infrun.c (handle_step_into_function): Delete function.
7805 (handle_inferior_event): Inline calls to
7806 handle_step_into_function.
7807
7808 2004-05-14 Jerome Guitton <guitton@gnat.com>
7809
7810 * rs6000-nat.c: Fix a comment.
7811
7812 2004-05-12 David Anderson <davea@sgi.com>
7813
7814 Committed by Jim Blandy <jimb@redhat.com>:
7815 * regcache.c (struct regcache_descr): fix comment spelling.
7816
7817 2004-05-13 J. Brobecker <brobecker@gnat.com>
7818
7819 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7820 Fixes a link link failure.
7821
7822 2004-05-13 J. Brobecker <brobecker@gnat.com>
7823
7824 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7825 error that was causing the build to fail.
7826
7827 2004-05-13 J. Brobecker <brobecker@gnat.com>
7828
7829 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7830 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7831
7832 2004-05-13 Andrew Cagney <cagney@redhat.com>
7833
7834 * infrun.c (handle_inferior_event): Check for
7835 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7836 calls. Update comments.
7837
7838 2004-05-13 Jim Blandy <jimb@redhat.com>
7839
7840 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7841 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7842 (store_regs_user_thread, store_regs_kernel_thread): Use
7843 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7844 * ppc-linux-nat.c (fill_gregset): Same.
7845 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7846 (ppc_linux_sigtramp_cache): Same.
7847 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7848 (ppcnbsd_sigtramp_cache_init): Same.
7849 * rs6000-nat.c (fetch_core_registers): Same.
7850 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7851 (rs6000_frame_cache): Same.
7852
7853 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7854 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7855 of assuming that the gprs are numbered starting with zero.
7856 * ppc-linux-nat.c (fill_gregset): Same.
7857 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7858 * ppcnbsd-nat.c (getregs_supplies): Same.
7859 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7860 * rs6000-nat.c (fetch_core_registers): Same.
7861 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7862
7863 2004-05-07 Michael Snyder <msnyder@redhat.com>
7864
7865 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7866 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7867
7868 2004-05-13 Andrew Cagney <cagney@redhat.com>
7869
7870 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7871
7872 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7873
7874 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7875 base_address for shared libraries.
7876
7877 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7878
7879 * MAINTAINERS (write after approval): Add myself.
7880
7881 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7882
7883 * breakpoint.c (bpstat_stop_status): Add new argument
7884 STOPPED_BY_WATCHPOINT. Use it instead of testing
7885 target_stopped_data_address agaist 0 to check whether
7886 or not we stopped due to a hardware watchpoint.
7887 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7888 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7889 with new argument.
7890
7891 2004-05-12 Jim Blandy <jimb@redhat.com>
7892
7893 * configure.in: When checking whether we should use the -bbigtoc
7894 option, don't forget to restore the original value of LDFLAGS.
7895 * configure: Regenerated.
7896
7897 2004-05-12 Andrew Cagney <cagney@redhat.com>
7898
7899 * thread.c (load_infrun_state): Delete step_sp.
7900 * infrun.c (context_switch): Ditto.
7901 * inferior.h (step_sp): Ditto.
7902 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7903 * gdbthread.h (struct thread_info, save_infrun_state)
7904 (restore_infrun_state): Ditto.
7905
7906 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7907
7908 * MAINTAINERS (write after approval): Add myself.
7909
7910 2004-05-12 Andrew Cagney <cagney@redhat.com>
7911
7912 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7913 eliminate reference to step_sp.
7914 (struct execution_control_state, init_execution_control_state)
7915 (handle_inferior_event, keep_going): Delete update_step_sp and
7916 step_sp.
7917 * infcmd.c (step_sp): Note that variable is unused.
7918
7919 2004-05-11 Andrew Cagney <cagney@redhat.com>
7920
7921 * infrun.c (step_over_function): Delete function.
7922 (handle_step_into_function): Use insert_step_resume_breakpoint.
7923 (insert_step_resume_breakpoint): Fix assertion.
7924
7925 2004-05-11 Nick Roberts <nickrob@gnu.org>
7926
7927 * utils.c (defaulted_query): Just use the normal query input type
7928 when printing the annotations.
7929
7930 2004-05-11 Andrew Cagney <cagney@redhat.com>
7931
7932 * infrun.c (handle_inferior_event): Simplify code handling
7933 step-into or return-from a signal trampoline.
7934
7935 2004-05-11 Andrew Cagney <cagney@redhat.com>
7936
7937 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7938 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7939
7940 2004-05-10 Jim Blandy <jimb@redhat.com>
7941
7942 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7943 with a call to internal_error.
7944
7945 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7946 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7947 processor variant lacks those registers.
7948 (ppc_floating_point_unit_p): Change description to make it clear
7949 that this returns info about the ISA, not the ABI.
7950 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7951 return true or false by checking tdep->ppc_fp0_regnum and
7952 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7953 arch/mach switching done in rs6000_gdbarch_init; it's better to
7954 keep that logic there, and just check the results here.
7955 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7956 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7957 floating-point registers.
7958 (ppc_supply_fpregset, ppc_collect_fpregset)
7959 (rs6000_push_dummy_call, rs6000_extract_return_value)
7960 (rs6000_store_return_value): Assert that we have floating-point
7961 registers.
7962 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7963 (rs6000_frame_cache): Don't note the locations at which
7964 floating-point registers were saved if we have no fprs.
7965 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7966 registers.
7967 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7968 (store_regs_user_thread, store_regs_kernel_thread): Only call
7969 supply_fprs / fill_fprs if we actually have floating-point
7970 registers.
7971 (special_register_p): Check ppc_fpscr_regnum before matching
7972 against it.
7973 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7974 supply / collect fpscr if we don't have it.
7975 * ppc-bdm.c: #include "gdb_assert.h".
7976 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7977 have floating-point registers, since I can't test this code on
7978 FP-free systems to adapt it.
7979 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7980 fpscr and floating point register numbers if they don't exist.
7981 (fetch_register): Assert that we have floating-point registers
7982 before we reach the code that handles them.
7983 (store_register): Same. And use tdep instead of calling
7984 gdbarch_tdep again.
7985 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7986 don't have them.
7987 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7988 fprs and fpscr if we don't have them.
7989 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7990 don't have them.
7991 * ppcnbsd-nat.c: #include "gdb_assert.h".
7992 (getfpregs_supplies): Assert that we have floating-point registers.
7993 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7994 * ppcobsd-tdep.c: #include "gdb_assert.h".
7995 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7996 have floating-point registers.
7997 * rs6000-nat.c (regmap): Don't match against the fpscr and
7998 floating point register numbers if they don't exist.
7999 (fetch_inferior_registers, store_inferior_registers,
8000 fetch_core_registers): Only fetch / store / supply the
8001 floating-point registers and the fpscr if we have them.
8002 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8003 (ppcobsd-tdep.o): Update dependencies.
8004
8005 2004-05-10 Andrew Cagney <cagney@redhat.com>
8006
8007 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8008 (context_switch): Do not switch through_sigtramp_breakpoint.
8009 * gdbthread.h (save_infrun_state, load_infrun_state)
8010 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8011 and structure member.
8012 * thread.c (load_infrun_state, save_infrun_state): Update.
8013
8014 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8015
8016 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8017
8018 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8019
8020 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8021 throughout.
8022 * aclocal.m4: Regenerate.
8023
8024 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8025
8026 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8027
8028 2004-05-10 Andrew Cagney <cagney@redhat.com>
8029
8030 * infrun.c (check_sigtramp2): Delete function.
8031 (handle_inferior_event): When single stepping, and taking a
8032 signal, set a breakpoint at the signal return address. Delete
8033 redundant calls to check_sigtramp2.
8034 (insert_step_resume_breakpoint): New function.
8035 (through_sigtramp_breakpoint, handle_inferior_event)
8036 (follow_exec, wait_for_inferior, fetch_inferior_event)
8037 (currently_stepping, keep_going): Delete most uses of
8038 through_sigtramp_breakpoint, not that it should be deleted.
8039 (delete_breakpoint_current_contents): Delete function.
8040
8041 2004-05-10 Randolph Chung <tausq@debian.org>
8042
8043 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8044 target.
8045 * config/pa/tm-linux.h: New file.
8046
8047 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8048
8049 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8050 of prefixes. Don't print the prefix twice in the CLI.
8051
8052 2004-05-10 Jim Blandy <jimb@redhat.com>
8053
8054 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8055 collect all the gprs.
8056
8057 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8058 loop collecting gprs.
8059
8060 2004-05-09 Andrew Cagney <cagney@redhat.com>
8061
8062 * remote-vx.c (net_step): Delete step-range code.
8063 * remote.c (remote_resume, init_all_packet_configs)
8064 (set_remote_protocol_E_packet_cmd)
8065 (show_remote_protocol_E_packet_cmd)
8066 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8067 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8068 (show_remote_protocol_e_packet_cmd): Ditto.
8069
8070 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8071
8072 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8073
8074 * hppa-tdep.h: Update copyright year.
8075 (struct trad_frame_saved_reg): Add opaque declaration.
8076
8077 * amd64-tdep.c (amd64_return_value): Implement
8078 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8079
8080 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8081 (m68k_value_to_register): New functions.
8082 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8083 value_to_register.
8084
8085 * defs.h (enum return_value_convention): Add
8086 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8087 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8088 * infcmd.c (legacy_return_value): New function.
8089 (print_return_value): Rwerite to implement
8090 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8091 * values.c (using_struct_return): Check for inequality to
8092 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8093 RETURN_VALUE_STRUCT_CONVENTION.
8094 * i386-tdep.c (i386_return_value): Implement
8095 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8096
8097 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8098 include "symtab.h", "opcode/vax.h" and "inferior.h".
8099 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8100 to read_memory_unsigned_integer.
8101 (vax_gdbarch_init): Reorder.
8102 (_initialize_vax_tdep): Spell out prototype.
8103 * Makefile.in (vax-tdep.o): Update dependencies.
8104
8105 2004-05-08 Andrew Cagney <cagney@redhat.com>
8106
8107 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8108 * target.c (target_detach, target_disconnect): Ditto.
8109
8110 * infcall.c (call_function_by_hand): When no
8111 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8112 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8113 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8114 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8115 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8116
8117 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8118 * gdbarch.h, gdbarch.c: Re-generate.
8119 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8120 deprecated_fix_call_dummy.
8121 * v850-tdep.c (v850_gdbarch_init): Ditto.
8122 * infcall.c (call_function_by_hand): Do not call
8123 DEPRECATED_FIX_CALL_DUMMY.
8124
8125 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8126 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8127 * gdbarch.h, gdbarch.c: Re-generate.
8128 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8129 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8130 deprecated_sizeof_call_dummy_words.
8131 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8133 * v850-tdep.c (v850_gdbarch_init): Ditto.
8134 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8135 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8136 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8137 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8138 * arch-utils.h (legacy_call_dummy_words)
8139 (legacy_sizeof_call_dummy_words): Delete declarations.
8140 * arch-utils.c (legacy_call_dummy_words)
8141 (legacy_sizeof_call_dummy_words): Delete variables.
8142
8143 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8144 * gdbarch.h, gdbarch.c: Re-generate.
8145 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8146 * infcall.c (call_function_by_hand): Eliminate call to
8147 DEPRECATED_PUSH_DUMMY_FRAME.
8148 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8149 push_dummy_frame.
8150 (ns32k_push_dummy_frame): Delete function.
8151
8152 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8153 deprecated_call_dummy_breakpoint_offset or
8154 deprecated_call_dummy_start_offset.
8155 * dummy-frame.c, arm-tdep.c: Update comments.
8156 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8157 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8158 * gdbarch.h, gdbarch.c: Re-generate.
8159
8160 * infcall.c (legacy_push_dummy_code): Delete function.
8161 (push_dummy_code): Delete call.
8162
8163 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8164 * gdbarch.h, gdbarch.c: Re-generate.
8165 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8166 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8167 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8168 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8169
8170 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8171 (struct frame_info): Delete opaque declaration.
8172 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8173 * frame.c (get_frame_type): Delete call.
8174
8175 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8176 pc_in_call_dummy.
8177 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8178 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8179
8180 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8181
8182 * alphanbsd-tdep.c: Include "gdb_string.h".
8183 * armnbsd-tdep.c: Update copyright year.
8184 Include "gdb_string.h".
8185 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8186 dependencies.
8187
8188 * delta68-nat.c: Remove file.
8189 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8190 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8191 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8192 (delta68-nat.o): Remove dependency.
8193
8194 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8195 function.
8196 (m68k_gdbarch_init): Don't set
8197 deprecated_frameless_function_invocation.
8198
8199 2004-05-07 Randolph Chung <tausq@debian.org>
8200
8201 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8202 read_memory_nobpt for code reading when doing frame unwinding.
8203 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8204
8205 2004-05-07 Randolph Chung <tausq@debian.org>
8206
8207 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8208 instead of sp, handle sigaltstack case.
8209 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8210 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8211 signal handler and not that of the caller.
8212 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8213 hppa_linux_sigtramp_find_sigcontext.
8214
8215 2004-05-07 Randolph Chung <tausq@debian.org>
8216
8217 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8218 hppa-linux-nat.c.
8219 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8220 * hppa-linux-nat.c (fetch_register, store_register): Define.
8221 (fetch_inferior_registers, store_inferior_registers): Define.
8222 (supply_gregset): Add comment and clean up some unneeded code.
8223 (fill_gregset): Add comment and fix so that it saves registers in
8224 the right place in the gregset.
8225 (fill_fpregset): Fix buffer overrun problem.
8226 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8227
8228 2004-05-07 Randolph Chung <tausq@debian.org>
8229
8230 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8231 do common handling of the pcoqt register.
8232 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8233 to use helper function.
8234 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8235 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8236 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8237 generic fallback unwinder when all else fails.
8238 (hppa_gdbarch_init): Add fallback sniffer.
8239 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8240 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8241 to use helper function.
8242
8243 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8244
8245 * config/djgpp/fnchange.lst: Add translation rules for
8246 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8247
8248 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8249
8250 * frame.c (get_prev_frame_1): Work around GCC bug.
8251 * frame.h: Add comment about GCC bug.
8252
8253 2004-05-07 Andrew Cagney <cagney@redhat.com>
8254
8255 * observer.c: Include "commands.h" and "gdbcmd.h".
8256 (observer_debug, _initialize_observer): Add the
8257 command "set/show debug observer".
8258 * observer.sh: When observer debugging, log notify calls.
8259 * Makefile.in (observer.o): Update dependencies.
8260
8261 2004-05-07 Jason Molenda (jmolenda@apple.com)
8262
8263 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8264
8265 2004-05-07 Jim Blandy <jimb@redhat.com>
8266
8267 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8268 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8269 to recognize gpr regnums, instead of assuming that
8270 tdep->ppc_fp0_regnum marks the end of the general-purpose
8271 registers.
8272
8273 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8274 the given architecture has floating-point registers.
8275
8276 2004-05-07 Andrew Cagney <cagney@redhat.com>
8277
8278 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8279 macro defined to 1.
8280 * gdbarch.h, gdbarch.c: Re-generate.
8281 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8282 deprecated_use_generic_dummy_frames.
8283
8284 2004-05-07 Brian Ford <ford@vss.fsi.com>
8285
8286 * NEWS: Mention Cygwin DWARF 2 support.
8287
8288 2004-05-07 Andrew Cagney <cagney@redhat.com>
8289
8290 * objfiles.h (struct entry_info): Delete unused fields
8291 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8292 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8293 * mipsread.c (mipscoff_symfile_read): Update.
8294 * mdebugread.c (parse_partial_symbols): Update.
8295 * dwarfread.c (read_file_scope): Update.
8296 * dwarf2read.c (read_file_scope): Update.
8297 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8298 * coffread.c (complete_symtab): Update.
8299
8300 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8301
8302 * infcall.c (_initialize_infcall): Fix typo.
8303
8304 2004-05-07 Andrew Cagney <cagney@redhat.com>
8305
8306 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8307 * command.h (add_setshow_zinteger_cmd): Declare.
8308
8309 2004-05-06 Randolph Chung <tausq@debian.org>
8310
8311 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8312 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8313 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8314 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8315 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8316 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8317 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8318 definitions ...
8319 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8320 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8321 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8322 (hppa64_hpux_frame_find_saved_regs_in_sig)
8323 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8324 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8325 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8326 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8327 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8328 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8329 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8330 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8331 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8332 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8333 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8334 (hppa32_register_type, hppa_cannot_store_register)
8335 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8336 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8337 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8338 * pa64solib.c (pa64_solib_have_load_event)
8339 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8340 (pa64_solib_unloaded_library_pathname): Likewise.
8341 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8342 (som_solib_library_pathname): Likewise.
8343
8344 2004-05-05 Jim Ingham <jingham@apple.com>
8345
8346 * breakpoint.c (create_breakpoints): Copy the ignore count and
8347 thread id over from the pended breakpoint to the actual
8348 breakpoint.
8349
8350 2004-05-05 Andrew Cagney <cagney@redhat.com>
8351
8352 * gdbarch.sh (PARM_BOUNDARY): Delete.
8353 gdbarch.h, gdbarch.c: Re-generate.
8354 * valops.c (PARM_BOUNDARY): Delete macro.
8355 (value_push): Delete PARM_BOUNDARY code.
8356 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8357
8358 2004-05-04 Jim Blandy <jimb@redhat.com>
8359
8360 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8361 Don't assume that the gprs, fprs, and UISA sprs are
8362 contiguous, start at register number zero, and end with fpscr.
8363 Instead, use the numbers from the tdep structure.
8364
8365 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8366 should no longer be used in code specific to the RS6000 and its
8367 derivatives.
8368 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8369 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8370 tdep->ppc_fp0_regnum.
8371 (ppc_supply_fpregset, ppc_collect_fpregset)
8372 (rs6000_push_dummy_call, rs6000_extract_return_value)
8373 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8374 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8375 FP0_REGNUM.
8376 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8377 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8378 Same.
8379 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8380 bdm_ppc_store_registers): Same.
8381 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8382 (store_register, fill_fpregset): Same.
8383 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8384 (ppc_linux_supply_fpregset): Same.
8385 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8386 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8387 Same.
8388 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8389 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8390 ppc64_sysv_abi_return_value): Same.
8391 * rs6000-nat.c (regmap, fetch_inferior_registers)
8392 (store_inferior_registers, fetch_core_registers): Same.
8393
8394 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8395
8396 * m68knbsd-nat.c: Remove file.
8397 * m68knbsd-tdep.c: Remove file.
8398 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8399 dependencies.
8400 * configure.host: Add m68k-*-netbsdelf*.
8401 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8402 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8403 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8404 (XM_FILE): Remove.
8405 * config/m68k/nbsdelf.mh: New file.
8406 * config/m68k/nbsd.mt: New file.
8407 * config/m68k/nbsdaout.mt: Remove file.
8408 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8409 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8410 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8411 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8412 (use_struct_convention): Remove prototype.
8413 (USE_STRUCT_CONVENTION): Remove define.
8414 * config/m68k/xm-nbsd.h: Remove file.
8415
8416 2004-05-04 Michael Snyder <msnyder@redhat.com>
8417
8418 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8419 reg_struct_return method (as gcc usually does for cross targets).
8420
8421 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8422
8423 Committed by Andrew Cagney.
8424 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8425 alignment padding when accessing ucontext struct members.
8426
8427 2004-05-04 Jim Blandy <jimb@redhat.com>
8428
8429 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8430 'ppc_gplast_regnum' member.
8431 (ppc_num_gprs): New enum constant.
8432 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8433 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8434 * rs6000-nat.c (regmap, fetch_inferior_registers,
8435 store_inferior_registers): Same.
8436 * rs6000-tdep.c (e500_pseudo_register_read)
8437 (e500_pseudo_register_write): Same.
8438 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8439
8440 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8441 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8442 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8443 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8444 FPLAST_REGNUM.
8445 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8446 Same.
8447 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8448 * rs6000-nat.c (regmap, fetch_inferior_registers)
8449 (store_inferior_registers): Same.
8450
8451 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8452 with FPLAST_REGNUM.
8453
8454 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8455
8456 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8457 failure detected by recent versions of GCC.
8458 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8459 to be consistent with the usage in dwarf2_create_include_psymtab.
8460
8461 2004-05-03 Michael Snyder <msnyder@redhat.com>
8462
8463 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8464 (heuristic_proc_start): Whitespace cleanup.
8465
8466 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8467
8468 * sun3-nat.c: Remove file.
8469 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8470 dependencies.
8471 (ALLDEPFILES): Remove sun3-nat.c.
8472 (sun3-nat.o): Remove dependencies.
8473
8474 * i386-interix-nat.c, i386-interix-tdep.c,
8475 config/i386/nm-interix.h, config/i386/interix.mh,
8476 config/i386/interix.mt: Remove files.
8477 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8478 dependencies.
8479
8480 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8481
8482 * m68k-tdep.h (struct gdbarch_tdep): Add member
8483 struct_value_regnum.
8484 (m68k_svr4_init_abi): New prototype.
8485 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8486 different calling conventions.
8487 (m68k_extract_return_value): Remove code dealing with single-field
8488 structs.
8489 (m68k_store_return_value): Remove code dealing with single-field
8490 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8491 (m68k_extract_struct_value_address): Remove function.
8492 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8493 (m68k_reg_struct_return_p, m68k_return_value)
8494 (m68k_svr4_return_value): New functions.
8495 (m68k_use_struct_convention): Remove function.
8496 (m68k_push_dummy_call): Use new struct_value_regnum member of
8497 `struct gdbarch_tdep' instead of hardcoded register number to
8498 store STRUCT_ADDR.
8499 (m68k_svr4_init_abi): New function.
8500 (m68k_gdbarch_init): Don't set extract_return_value,
8501 store_return_values, deprecated_extract_struct_value_address and
8502 use_struct_convention. Set return_value instead. Initialize new
8503 struct_value_regnum member of `struct gdbarch_tdep'.
8504 * m68klinux-tdep.c: Update copyright year.
8505 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8506 (m68k_linux_extract_struct_value_address): Remove function.
8507 (m68k_linux_init_abi): Don't set extract_return_value,
8508 store_return_values, deprecated_extract_struct_value_address and
8509 use_struct_convention. Call m68k_svr4_init_abi but override the
8510 new struct_value_regnum member of `struct gdbarch_tdep'.
8511 * Makefile.in (m68k-tdep.o): Update dependencies.
8512
8513 2004-05-03 J. Brobecker <brobecker@gnat.com>
8514
8515 * dwarf2read.c (line_header): Add new included_p field in
8516 field file_names.
8517 (partial_die_info): New field has_stmt_list. New field line_offset.
8518 (dwarf2_create_include_psymtab): New function.
8519 (dwarf2_build_include_psymtabs): New function.
8520 (add_file_name): Add forward declaration. Initialize new field.
8521 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8522 to be able to determine the list of files included by the
8523 given unit, and build their associated psymtabs.
8524 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8525 files as well.
8526 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8527 (read_file_scope): Update call to dwarf_decode_lines.
8528 (read_partial_die): Handle DW_AT_stmt_list attributes.
8529
8530 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8531
8532 Unfix PR gdb/1626.
8533 * configure.in: Revert special case for osf5.*.
8534 * configure: Regenerate.
8535
8536 2004-05-02 Jim Blandy <jimb@redhat.com>
8537
8538 Move the symbol-file-from-memory functions into their own file.
8539 * symfile-mem.c, symfile-mem.h: New files.
8540 * symfile.c (symbol_file_add_from_bfd): New function.
8541 (symbol_file_add): Call symbol_file_add_from_bfd.
8542 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8543 Moved to symfile-mem.c.
8544 (_initialize_symfile): Move definition of
8545 add-symbol-file-from-memory command to symfile-mem.c.
8546 * symfile.h (symbol_file_add_from_bfd): New declaration.
8547 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8548 * config/powerpc/linux.mt (TDEPFILES): Same.
8549 * Makefile.in (SFILES): Add symfile-mem.c.
8550 (symfile_mem_h): New variable.
8551 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8552 (symfile-mem.o): New rule.
8553
8554 2004-05-01 Andrew Cagney <cagney@redhat.com>
8555
8556 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8557 frame_find_by_id instead of frame_relative_level.
8558 (do_enable_breakpoint): Ditto.
8559 * thread.c: Update copyright.
8560 (info_threads_command): Ditto, simplify.
8561
8562 * frame.c (deprecated_generic_get_saved_register): Delete
8563 function, moved to "xstormy16-tdep.c".
8564 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8565 deprecated_generic_get_saved_register from "frame.c".
8566 (xstormy16_frame_saved_register): Call
8567 xstormy16_get_saved_register.
8568 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8569 static.
8570 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8571 * frame.h (deprecated_generic_get_saved_register): Delete.
8572
8573 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8574
8575 * dwarfread.c: Update documentation on the state of dwarf-1.
8576
8577 2004-05-01 Andrew Cagney <cagney@redhat.com>
8578
8579 * stack.c (select_frame_command): Delete call to
8580 frame_relative_level.
8581 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8582 Delete #if0 code.
8583 (frame_info): Do not print FRAMELESS.
8584 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8585 (catch_info): Delete #if0 code.
8586
8587 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8588 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8589 of frame_relative_level.
8590 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8591 to SENTINEL_FRAME.
8592 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8593 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8594 frame_relative_level.
8595
8596 * frame.h (deprecated_set_frame_type): Delete declaration.
8597 * frame.c (deprecated_set_frame_type): Delete function, update
8598 comments.
8599
8600 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8601 * gdbarch.h, gdbarch.c: Re-generate.
8602 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8603 (shnbsd_pc_in_sigtramp): Delete.
8604 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8605 pc_in_sigtramp.
8606 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8607 pc_in_sigtramp.
8608 * frame.h: Update comments.
8609 * ppc-linux-tdep.c: Update comments.
8610 * breakpoint.c (bpstat_what): Update comments.
8611
8612 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8613 m68klinux-tdep.o's dependencies, were previously added to
8614 m68klinux-nat.o.
8615
8616 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8617 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8618 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8619 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8620 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8621
8622 * Makefile.in (m68klinux-nat.o): Update dependencies.
8623 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8624 (m68k_linux_sigtramp_frame_cache)
8625 (m68k_linux_sigtramp_frame_this_id)
8626 (m68k_linux_sigtramp_frame_prev_register)
8627 (m68k_linux_sigtramp_frame_unwind)
8628 (m68k_linux_sigtramp_frame_sniffer)
8629 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8630 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8631 names, use trad-frame.h.
8632 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8633 (struct m68k_sigtramp_info): Delete.
8634 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8635 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8636 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8637 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8638 "m68klinux-tdep.c".
8639
8640 * infrun.c (check_sigtramp2): Delete check for
8641 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8642
8643 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8644
8645 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8646
8647 2004-05-01 Andrew Cagney <cagney@redhat.com>
8648
8649 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8650 (frv_linux_sigtramp_frame_cache)
8651 (frv_linux_sigtramp_frame_this_id)
8652 (frv_linux_sigtramp_frame_prev_register)
8653 (frv_linux_sigtramp_frame_unwind)
8654 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8655 include "linux" in function and variable names, directly call
8656 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8657 the latest trad-frame code.
8658 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8659 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8660 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8661 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8662 * frv-tdep.c (frv_sigtramp_frame_cache)
8663 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8664 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8665 frv-linux-tdep.c.
8666 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8667 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8668 (frv_set_sigcontext_reg_addr): Delete function.
8669
8670 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8671 (DEPRECATED_SIGTRAMP_END): Delete.
8672 * gdbarch.h, gdbarch.c: Re-generate.
8673 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8674 * config/vax/tm-vaxbsd.h: Update copyright.
8675 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8676 (DEPRECATED_IN_SIGTRAMP): Define.
8677 * config/m68k/tm-nbsd.h: Update copyright.
8678 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8679 (DEPRECATED_IN_SIGTRAMP): Define.
8680
8681 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8682
8683 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8684 encondings. Fixes PR gdb/1628.
8685
8686 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8687 DW_CFA_restore state without a matching DW_CFA_remember_state
8688 instead of aborting. Fixes PR backtrace/1589.
8689
8690 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8691
8692 * MAINTAINERS: Add self as AIX maintainer.
8693 Update my e-mail address in write-after-approval section.
8694
8695 2004-04-30 Andrew Cagney <cagney@redhat.com>
8696
8697 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8698 (legacy_get_prev_frame): Ditto.
8699
8700 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8701 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8702 * mipsread.c (sigtramp_address): Delete extern variable.
8703 (mipscoff_new_init): Delete reference.
8704 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8705 (fixup_sigtramp): Delete function.
8706 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8707 (fixup_sigtramp): Delete declarations.
8708
8709 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8710 deprecated_pc_in_sigtramp.
8711 (ppcnbsd_pc_in_sigtramp): Delete function.
8712
8713 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8714
8715 * config/m68k/nm-nbsd.h: Tweak comments.
8716 * config/m68k/nm-nbsdaout.h: Likewise.
8717
8718 2004-04-30 Andrew Cagney <cagney@redhat.com>
8719
8720 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8721 legacy_pc_in_sigtramp.
8722 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8723
8724 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8725
8726 Add OpenBSD/m68k support.
8727 * NEWS (New native configurations): Mention OpenBSD/m68k.
8728 * m68kbsd-tdep.c: New file.
8729 * m68kbsd-nat.c: New file.
8730 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8731 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8732 * configure.host: Add m68k-*-openbsd.
8733 * configure.tgt: Add m68k-*-openbsd.
8734 * config/m68k/tm-obsd.h: New file.
8735 * config/m68k/obsd.mt: New file.
8736 * config/m68k/obsd.mh: New file.
8737 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8738 m68kbsd-tdep.c.
8739
8740 2004-04-30 Andrew Cagney <cagney@redhat.com>
8741
8742 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8743 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8744
8745 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8746
8747 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8748 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8749
8750 2004-04-30 Brian Ford <ford@vss.fsi.com>
8751
8752 Revert 2004-04-16 change.
8753 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8754 (i386_coff_init_abi): Remove.
8755 * i386-tdep.h (i386_coff_init_abi): Remove.
8756 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8757
8758 2004-04-30 Andrew Cagney <cagney@redhat.com>
8759
8760 * blockframe.c (find_pc_partial_function): Delete use of
8761 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8762 DEPRECATED_SIGTRAMP_END.
8763
8764 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8765 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8766 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8767 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8768 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8769
8770 * defs.h (deprecated_inside_entry_file): Delete declaration.
8771 * blockframe.c (deprecated_inside_entry_file): Delete function.
8772 (legacy_frame_chain_valid): Delete call.
8773 * sh64-tdep.c (sh64_frame_chain): Delete call.
8774 * objfiles.h: Update comments.
8775 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8776 call.
8777 * frame.c (get_prev_frame): Delete call, update comments.
8778
8779 2004-04-30 Brian Ford <ford@vss.fsi.com>
8780
8781 * MAINTAINERS (Write After Approval): Add myself.
8782
8783 2004-04-30 Andrew Cagney <cagney@redhat.com>
8784
8785 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8786 * gdbarch.h, gdbarch.c: Re-generate.
8787 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8788 code.
8789
8790 2004-04-30 Andrew Cagney <cagney@redhat.com>
8791
8792 * gdb-events.sh (selected_thread_changed)
8793 (selected_frame_level_changed, target_changed): Delete.
8794 * gdb-events.h, gdb-events.c: Re-generate.
8795 * valops.c (value_assign): Update.
8796 * stack.c (select_frame_command, up_silently_base)
8797 (down_silently_base): Update.
8798
8799 2004-04-29 Andrew Cagney <cagney@redhat.com>
8800
8801 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8802 registers correctly.
8803 (print_gp_register_row, mips32_heuristic_proc_desc)
8804 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8805 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8806 references to mips_isa_regsize.
8807
8808 2004-04-29 Andrew Cagney <cagney@redhat.com>
8809
8810 * mips-tdep.c (struct gdbarch_tdep): Delete
8811 mips_fp_register_double.
8812 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8813 mips_abi_regsize.
8814 (mips_gdbarch_init): Do not set mips_fp_register_double.
8815 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8816
8817 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8818
8819 Committed by Andrew Cagney.
8820 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8821 function calls.
8822
8823 2004-04-29 Andrew Cagney <cagney@redhat.com>
8824
8825 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8826 gdbarch, use mips_abi, update callers.
8827 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8828 mips_abi_regsize, update callers.
8829 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8830 mips_default_abi_regsize.
8831 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8832 mips_default_abi_regsize.
8833
8834 2004-04-29 Andrew Cagney <cagney@redhat.com>
8835
8836 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8837 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8838 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8839 mips_default_abi_regsize.
8840 (mips_isa_regsize): Rename mips_regisze.
8841 * mipsnbsd-tdep.c: Update.
8842 * mips-linux-tdep.c: Update.
8843 * irix5-nat.c: Update.
8844 * mips-tdep.h (mips_isa_regsize): Update.
8845
8846 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8847 Delete all disabled code.
8848 * gdb-events.h, gdb-events.c: Re-generate.
8849
8850 2004-04-19 Jerome Guitton <guitton@gnat.com>
8851 Mark Kettenis <kettenis@gnu.org>
8852
8853 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8854 the function begins with a branch instruction.
8855
8856 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8857
8858 * i386-tdep.c: Fix spelling mistakes.
8859
8860 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8861 Andrew Cagney <cagney@redhat.com>
8862
8863 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8864 <sys/proc.h>.
8865 * acconfig.h: Provide default _KMEMUSER value.
8866 * config.in, configure: Re-generate.
8867 * NEWS: Mention fix.
8868
8869 2004-04-24 Randolph Chung <tausq@debian.org>
8870
8871 * configure.host (hppa*-*-linux*): New target.
8872 * configure.tgt (hppa*-*-linux*): Likewise.
8873 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8874 gdbarch_init_osabi() call earlier so that osabi-specific frame
8875 unwinders can be registered first.
8876 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8877 hppa-linux-nat.c.
8878 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8879 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8880 * config/pa/linux.mh: New file.
8881 * config/pa/linux.mt: New file.
8882 * config/pa/nm-linux.h: New file.
8883 * config/pa/xm-linux.h: New file.
8884 * hppa-linux-nat.c: New file.
8885 * hppa-linux-tdep.c: New file.
8886
8887 2004-04-28 Randolph Chung <tausq@debian.org>
8888
8889 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8890 return values.
8891 (hppa32_push_dummy_call): Fix small struct and floating point argument
8892 passing, and make sure the stack frame is properly aligned.
8893
8894 2004-04-28 Andrew Cagney <cagney@redhat.com>
8895
8896 * stack.c (print_stack_frame): Fix description.
8897
8898 * NEWS: Mention gdb/gdbserver/configure execute permission
8899 changed. PR server/519.
8900
8901 2004-04-28 Andrew Cagney <cagney@redhat.com>
8902
8903 * stack.c (print_stack_frame_stub): Delete declaration.
8904 (struct print_stack_frame_args, print_stack_frame)
8905 (print_frame_info, print_frame): Replace "source" with print what.
8906 Replace "print" with "print_level". Replace "args" with
8907 "print_args".
8908 * frame.h (show_and_print_stack_frame, print_stack_frame)
8909 (print_frame_info): Update declarations.
8910 * stack.c (select_and_print_frame, frame_command)
8911 (current_frame_command, up_command, down_command): Update calls -
8912 use get_selected_frame, pass "enum print_what" for source, do not
8913 call frame_relative_level.
8914 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8915 * remote-rdp.c (remote_rdp_open): Ditto.
8916 * remote-mips.c (common_open): Ditto.
8917 * remote-e7000.c (e7000_start_remote): Ditto.
8918 * ocd.c (ocd_start_remote): Ditto.
8919 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8920 * infrun.c (normal_stop): Ditto.
8921 * inflow.c (kill_command): Ditto.
8922 * infcmd.c (finish_command): Ditto.
8923 * corelow.c (core_open): Ditto.
8924 * tracepoint.c (finish_tfind_command): Ditto.
8925 * thread.c (info_threads_command, info_threads_command)
8926 (restore_current_thread, do_captured_thread_select): Ditto.
8927 * ada-tasks.c (task_command): Ditto.
8928
8929 2004-04-26 Orjan Friberg <orjanf@axis.com>
8930
8931 * frame.c: Include "observer.h".
8932 (frame_observer_target_changed): New function.
8933 (_initialize_frame): Attach target_changed observer.
8934 * regcache.c: Include "observer.h".
8935 (regcache_observer_target_changed): New function.
8936 (_initialize_regcache): Attach target_changed observer.
8937 * valops.c: Include "observer.h".
8938 (value_assign): Notify target_changed event when modifying register.
8939 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8940
8941 2004-04-26 Orjan Friberg <orjanf@axis.com>
8942
8943 From Paul Koning <pkoning@equallogic.com>:
8944 * breakpoint.c (free_valchain): New function.
8945 (insert_bp_location, delete_breakpoint): Use free_valchain.
8946 (remove_breakpoint): Do not remove the valchain.
8947 (bpstat_stop_status): If not stopped by watchpoint, skip
8948 watchpoints when generating stop status list.
8949 * infrun.c (handle_inferior_event): Make
8950 stepped_after_stopped_by_watchpoint a global variable.
8951 * remote.c (remote_stopped_data_address): Return watch data
8952 address rather than zero if stepped_after_stopped_by_watchpoint is
8953 set.
8954
8955 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8956
8957 Fix PR gdb/1626.
8958 * configure.in: Check for curses after termcap.
8959 On osf5.*, do not check for ncurses.
8960 * configure: Regenerate.
8961
8962 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8963
8964 * ppcobsd-nat.c: Include "ppc-tdep.h".
8965 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8966
8967 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8968 Fixes PR tdep/1623 and PR tdep/1624.
8969
8970 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8971
8972 * xmodem.h, xmodem.c: Remove files.
8973 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8974
8975 2004-04-23 Randolph Chung <tausq@debian.org>
8976
8977 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8978 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8979 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8980 for handling stackless frames.
8981 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8982
8983 2004-04-23 Randolph Chung <tausq@debian.org>
8984
8985 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8986 starts at a pc before the frame is created.
8987
8988 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8989
8990 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8991
8992 2004-04-23 Jerome Guitton <guitton@gnat.com>
8993
8994 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8995 use convert_typed_floating to get the appropriate format.
8996
8997 2004-04-22 Randolph Chung <tausq@debian.org>
8998
8999 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9000 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9001 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9002 (hppa_sign_extend): Add prototype.
9003 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9004 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9005 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9006 hppa targets will also use these functions.
9007 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9008 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9009 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9010 (hppa_gdbarch_init): Remove gdbarch setting of
9011 skip_trampoline_code, in_solib_call_trampoline and
9012 in_solib_return_trampoline.
9013 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9014 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9015 hppa_in_solib_call_trampoline.
9016 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9017 Moved from hppa-tdep.c.
9018 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9019 in_solib_call_trampoline and in_solib_return_trampoline.
9020
9021 2004-04-22 Randolph Chung <tausq@debian.org>
9022
9023 * hppa-tdep.c (hppa_debug): New variable.
9024 (find_unwind_entry, hppa_frame_cache): Add debug output.
9025 (_initialize_hppa_tdep): Add command to set debug flag.
9026
9027 2004-04-22 Andrew Cagney <cagney@redhat.com>
9028
9029 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9030 "trad-frame.h".
9031 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9032 signal trampoline unwinder.
9033 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9034
9035 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9036
9037 Add OpenBSD/powerpc support.
9038 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9039 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9040 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9041 (ppc_collect_fpregset): New prototypes.
9042 * ppcobsd-nat.c: New file.
9043 * ppcobsd-tdep.c: New file.
9044 * ppcobsd-tdep.h: New file.
9045 * rs6000-tdep.c: Include "regset.h".
9046 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9047 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9048 New functions.
9049 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9050 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9051 (rs6000-tdep.o): Update dependencies.
9052 * configure.host: Add powerpc-*-openbsd.
9053 * configure.tgt: Add powerpc-*-openbsd.
9054 * config/powerpc/obsd.mh: New file.
9055 * config/powerpc/nm-obsd.h: New file.
9056 * config/powerpc/obsd.mt: New file.
9057
9058 2004-04-22 Andrew Cagney <cagney@redhat.com>
9059
9060 * frame.h (show_frame_info): Delete declaration.
9061
9062 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9063 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9064 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9065 * frv-tdep.c (frv_frame_this_id): Ditto.
9066 * avr-tdep.c (avr_frame_this_id): Ditto.
9067
9068 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9069
9070 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9071
9072 2004-04-22 Jim Blandy <jimb@redhat.com>
9073
9074 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9075 register number zero.
9076
9077 2004-04-21 Michael Snyder <msnyder@redhat.com>
9078
9079 * mips-tdep.c (heuristic_proc_start):
9080 Warning() already prefixes "Warning: ".
9081
9082 2004-04-21 Andrew Cagney <cagney@redhat.com>
9083
9084 * annotate.h (deprecated_annotate_starting_hook)
9085 (deprecated_annotate_stopped_hook)
9086 (deprecated_annotate_exited_hook)
9087 (deprecated_annotate_signal_hook)
9088 (deprecated_annotate_signalled_hook): Deprecate.
9089 * tracepoint.h (deprecated_create_tracepoint_hook)
9090 (deprecated_delete_tracepoint_hook)
9091 (deprecated_modify_tracepoint_hook)
9092 (deprecated_trace_find_hook)
9093 (deprecated_trace_start_stop_hook): Deprecate.
9094 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9095 * remote.h (deprecated_target_resume_hook)
9096 (deprecated_target_wait_loop_hook): Deprecate.
9097 * gdbcore.h (deprecated_exec_file_display_hook)
9098 (deprecated_file_changed_hook): Deprecate.
9099 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9100 * defs.h (deprecated_modify_breakpoint_hook)
9101 (deprecated_command_loop_hook, deprecated_show_load_progress)
9102 (deprecated_print_frame_info_listing_hook)
9103 (deprecated_query_hook, deprecated_warning_hook)
9104 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9105 (deprecated_delete_breakpoint_hook)
9106 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9107 (deprecated_readline_begin_hook, deprecated_readline_hook)
9108 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9109 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9110 (deprecated_context_hook, deprecated_target_wait_hook)
9111 (deprecated_attach_hook, deprecated_detach_hook)
9112 (deprecated_call_command_hook, deprecated_set_hook)
9113 (deprecated_error_hook, deprecated_error_begin_hook)
9114 (deprecated_ui_load_progress_hook): Deprecate.
9115 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9116 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9117 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9118 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9119 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9120 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9121 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9122 * annotate.c, aix-thread.c: Update.
9123
9124 2004-04-21 Andrew Cagney <cagney@redhat.com>
9125
9126 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9127 * vaxnbsd-tdep.c: Include "gdb_string.h".
9128
9129 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9130 (add_symbol_file_from_memory_command): #if 0 function body, call
9131 error instead.
9132
9133 2004-04-21 Andrew Cagney <cagney@redhat.com>
9134
9135 * gdbcore.h: Update copyright.
9136 (deprecated_add_core_fns): Rename add_core_fns.
9137 * win32-nat.c (_initialize_core_win32): Update.
9138 * sun3-nat.c (_initialize_core_sun3): Update.
9139 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9140 * rs6000-nat.c (_initialize_core_rs6000): Update.
9141 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9142 * nto-tdep.c (_initialize_nto_tdep): Update.
9143 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9144 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9145 * mips-nat.c (_initialize_core_mips): Update.
9146 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9147 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9148 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9149 * lynx-nat.c (_initialize_core_lynx): Update.
9150 * irix5-nat.c (_initialize_core_irix5): Update.
9151 * i386-interix-nat.c (_initialize_core_interix): Update.
9152 * cris-tdep.c (_initialize_cris_tdep): Update.
9153 * corelow.c (deprecated_add_core_fns): Update.
9154 * core-regset.c (_initialize_core_regset): Update.
9155 * core-aout.c (_initialize_core_aout): Update.
9156 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9157 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9158 * alpha-nat.c (_initialize_core_alpha): Update.
9159
9160 2004-04-21 Jim Blandy <jimb@redhat.com>
9161
9162 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9163
9164 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9165
9166 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9167 Delete.
9168 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9169 (read_attribute_value): Update calls to dwarf_alloc_block.
9170 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9171 dwarf2_tmp_obstack.
9172 (psymtab_to_symtab_1): Likewise. Clean up using
9173 free_stack_comp_unit.
9174 (add_to_cu_func_list): Use the comp_unit_obstack.
9175
9176 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9177
9178 * dwarf2read.c (dwarf2_flag_true_p): New function.
9179 (die_is_declaration): Use the function above. Add some comments.
9180
9181 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9182
9183 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9184 architecture when registering sparcnbsd_core_osabi_sniffer.
9185 Adjust comment.
9186
9187 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9188
9189 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9190 return value.
9191
9192 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9193 * i386-tdep.c: Correct register numbering scheme comments
9194 throughout.
9195 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9196 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9197 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9198 (i386_gdb_arch_init): Likewise.
9199
9200 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9201 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9202 ppcnbsd-tdep.o.
9203
9204 * m68k-tdep.h: Tweak comments.
9205 * m68k-tdep.c: Tweak comment.
9206
9207 2004-04-17 Randolph Chung <tausq@debian.org>
9208
9209 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9210 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9211 (hppa_hpux_som_init_abi): Set is_elf to 0.
9212 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9213 * hppa-tdep.c (low_text_segment_address): Remove global.
9214 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9215 section offset to calculate segment address.
9216 (internalize_unwinds): Define low_text_segment_address as local and
9217 pass to record_text_segment_lowaddr for ELF targets.
9218 (hppa_gdbarch_init): Zero fill tdep structure.
9219 (hppa_dump_tdep): Print tdep structure.
9220 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9221
9222 2004-04-17 Randolph Chung <tausq@debian.org>
9223
9224 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9225 (hppa_gdbarch_init): Set pseudo_register_read.
9226 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9227 * regcache.c (supply_register): Remove check for
9228 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9229
9230 2004-04-17 Randolph Chung <tausq@debian.org>
9231
9232 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9233 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9234 (hpread_adjust_stack_address): Move to hpread.c.
9235 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9236 obj_private_struct): Move from tm-hppa.h.
9237 * hpread.c (hppa-tdep.h): Include.
9238 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9239 (hpread_read_function_type, hpread_read_doc_function_type)
9240 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9241 directly.
9242 * pa64solib.c (hppa-tdep.h): Include.
9243 * somsolib.c (hppa-tdep.h): Include.
9244 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9245 inferior_status): Remove unused forward declarations.
9246 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9247 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9248 obj_private_struct): Move to hppa-tdep.h.
9249 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9250
9251 2004-04-17 Randolph Chung <tausq@debian.org>
9252
9253 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9254 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9255 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9256 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9257 Remove forward declaration and make static.
9258 (hppa_reg_struct_has_addr): Remove.
9259
9260 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9261
9262 * observer.sh: Move comments in sed command to first column.
9263
9264 2004-04-16 Jason Molenda (jmolenda@apple.com)
9265
9266 * frame.c: Minor typeo corrections in comments.
9267
9268 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9269
9270 * observer.c (observer_test_first_notification_function): Update
9271 function profile.
9272 (observer_test_second_notification_function): Likewise.
9273 (observer_test_third_notification_function): Likewise.
9274
9275 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9276
9277 From Brian Ford <ford@vss.fsi.com>:
9278 * i386-tdep.c (i386_coff_init_abi): New function.
9279 * i386-tdep.h (i386_coff_init_abi): New prototype.
9280 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9281 register number translation functions for DWARF and DWARF 2.
9282
9283 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9284
9285 * dwarf2read.c: Back out my previous change, it was incorrect.
9286
9287 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9288
9289 * dwarf2read.c: Include "hashtab.h".
9290 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9291 has_namespace_info.
9292 (struct partial_die_info): Add comments. Use bitfields to reduce
9293 memory footprint. Add scope, scope_set, has_specification,
9294 spec_offset, die_parent, die_child, and die_sibling.
9295 (peek_die_abbrev): Add prototype.
9296 (partial_read_comp_unit_head): New function, broken out from
9297 dwarf2_build_psymtabs_hard.
9298 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9299 Use partial_read_comp_unit_head. Initialize the CU and
9300 comp_unit_obstack. Update calls to read_partial_die and
9301 scan_partial_symbols. Use free_stack_comp_unit and
9302 load_partial_dies.
9303 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9304 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9305 Update calls to helper functions. Remove NAMESPACE argument.
9306 Update comments.
9307 (partial_die_parent_scope, partial_die_full_name): New functions.
9308 (add_partial_symbol): Remove namespace argument. Update call to
9309 pdi_needs_namespace. Use partial_die_full_name. Handle
9310 DW_TAG_namespace. Check has_namespace_info flag.
9311 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9312 tag. Handle namespaces.
9313 (add_partial_namespace, add_partial_enumeration): Simplify.
9314 (guess_structure_name): New function, derived from
9315 add_partial_structure.
9316 (add_partial_structure): Remove.
9317 (determine_class_name): Update comment.
9318 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9319 (is_type_tag_for_partial, load_partial_dies): New functions.
9320 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9321 Record specifications instead of following them immediately.
9322 (find_partial_die_in_comp_unit, find_partial_die)
9323 (fixup_partial_die, free_stack_comp_unit)
9324 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9325 (partial_die_hash, partial_die_eq): New functions.
9326 * Makefile.in (hashtab_h): Define.
9327 (dwarf2read.o): Update dependencies.
9328 (observer_inc, observer_h): Move to the correct section.
9329
9330 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9331
9332 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9333 (die_is_declaration): Use the function above. Add comment.
9334
9335 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9336
9337 * dwarf2read.c (read_structure_scope): Identify stub types
9338 using die_is_declaration() only.
9339
9340 2004-04-15 Roland McGrath <roland@redhat.com>
9341
9342 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9343 argument instead of NAME.
9344 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9345 in call to symbol_file_add_with_addrs_or_offsets.
9346 (build_addr_info): New function, helper for ...
9347 (symbol_file_add_from_memory): New function.
9348 (add_symbol_file_from_memory_command): New function using that.
9349 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9350 (pre_add_symbol_hook): Add const to argument type.
9351 * symfile.h (symbol_file_add_from_memory): Declare it.
9352
9353 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9354
9355 * NEWS (New native configurations): Mention OpenBSD/vax.
9356 * configure.host: Add vax-*-openbsd*.
9357 * config/vax/obsd.mh: New file.
9358 * config/vax/nm-obsd.h: New file.
9359
9360 * vax-tdep.c: Include "regset.h".
9361 (vax_supply_gregset): New function.
9362 (vax_gregset): New variable.
9363 (vax_regset_from_core_section): New function.
9364 (vax_gdbarch_init): Set regset_from_core_section.
9365 * Makefile.in (vax-tdep.o): Update dependencies.
9366
9367 2004-04-15 Andrew Cagney <cagney@redhat.com>
9368
9369 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9370 (observer_normal_stop_notification_stub)
9371 (observer_attach_normal_stop, observer_detach_normal_stop):
9372 Delete, replaced by #include "observer.inc".
9373 * infrun.c (normal_stop): Pass "stop_bpstat" to
9374 observer_notify_normal_stop.
9375 * Makefile.in (observer_inc): Define.
9376 (observer.o): Update dependencies.
9377 (observer.h, observer.inc): New rules.
9378 * observer.h: Delete file.
9379 * observer.sh: New file.
9380
9381 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9382
9383 * vax-tdep.c (vax_frame_cache): Fix typo.
9384
9385 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9386
9387 * NEWS (New native configurations): Mention NetBSD/vax.
9388 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9389 * config/vax/nbsdelf.mh: New file.
9390 * config/vax/nbsdaout.mh: New file.
9391 * config/vax/nm-nbsd.h: New file.
9392 * config/vax/nm-nbsdaout.h: New file.
9393
9394 * vaxnbsd-tdep.c: New file.
9395 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9396 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9397 * config/vax/nbsd.mt: New file.
9398 * config/vax/tm-nbsd.h: New file.
9399
9400 * Makefile.in (vaxbsd-nat.o): New dependency.
9401
9402 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9403 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9404 struct_addr arguments. Don't push return value address.
9405 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9406 arguments to vax_store_arguments. Store return value address in
9407 R1.
9408 (vax_store_struct_return, vax_extract_return_value)
9409 (vax_store_return_value): Remove functions.
9410 (vax_return_value): New function.
9411 (vax_gdbarch_init): Set return value. Don't set
9412 deprecated_store_struct_return, deprecated_extract_struct_return
9413 and deprecated_store_return_value.
9414
9415 2004-04-14 Andreas Schwab <schwab@suse.de>
9416
9417 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9418 value buffer.
9419 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9420
9421 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9422
9423 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9424 (vax_unwind_dummy_id): New functions.
9425 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9426 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9427 variables.
9428 (vax_fix_call_dummy): Remove function.
9429 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9430 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9431 call_dummy_location, deprecated_call_dummy_words,
9432 deprecated_sizeof_call_dummy_words,
9433 deprecated_call_dummy_breakpoint_offset,
9434 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9435 and deprecated_dummy_write_sp.
9436
9437 2004-04-13 David Carlton <carlton@kealia.com>
9438
9439 * MAINTAINERS: Move myself to "paper trail" section.
9440
9441 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9442
9443 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9444 "trad-frame.h".
9445 (vax_frame_init_saved_regs): Remove function.
9446 (vax_sigtramp_saved_pc): Remove function.
9447 (vax_frame_saved_pc): Remove function.
9448 (vax_frame_args_address): Remove function.
9449 (vax_frame_num_args): Rewrite.
9450 (vax_frame_chain): Remove function.
9451 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9452 VAX_FP_REGNUM.
9453 (vax_pop_frame): Likewise.
9454 (vax_saved_pc_after_call): Remove function.
9455 (struct vax_frame_cache): New structure.
9456 (vax_frame_cache): New function.
9457 (vax_frame_this_id): New function.
9458 (vax_frame_prev_register): New function.
9459 (vax_frame_unwind): New variable.
9460 (vax_frame_sniffer): New function.
9461 (vax_frame_base_address): New function.
9462 (vax_frame_args_address): New function.
9463 (vax_frame_base): New variable.
9464 (vax_unwind_pc): New function.
9465 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9466 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9467 deprecated_frame_chain, deprecated_frame_saved_pc,
9468 deprecated_frame_args_address and
9469 deprecated_frame_init_saved_regs.
9470 * Makefile.in (vax-tdep.o): Update dependencies.
9471
9472 * vaxbsd-nat.c: New file.
9473
9474 * vax-tdep.h: Update copyright year. Adjust comments.
9475 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9476 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9477 (vax_regnum): New enum. Replacing...
9478 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9479 (VAX_PS_REGNUM): ... these removed macros.
9480 * vax-tdep.c (vax_register_name): Remove prototype.
9481 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9482 (vax_register_byte, vax_register_raw_size,
9483 vax_register_virtual_size, vax_register_virtual_type): Remove
9484 functions.
9485 (vax_register_type): New function.
9486 (vax_breakpoint_from_pc): Reorganize.
9487 (vax_gdbarch_init): Set register_type. Don't set
9488 deprecated_register_size, deprecated_register_bytes,
9489 deprecated_register_byte, deprecated_register_raw_size,
9490 deprecated_max_register_raw_size,
9491 deprecated_register_virtual_size,
9492 deprecated_max_register_virtual_size and
9493 deprecated_register_virtual_type. Add comment on stack direction.
9494
9495 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9496
9497 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9498 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9499 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9500
9501 2004-04-10 Randolph Chung <tausq@debian.org>
9502
9503 * MAINTAINERS (write after approval): Add myself.
9504
9505 2004-04-07 Randolph Chung <tausq@debian.org>
9506
9507 * hppa-tdep.c (hppa_inner_than): Remove.
9508 (is_pa_2): Remove unused static variable.
9509 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9510
9511 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9512
9513 * language.h (language_defn): Add new la_post_parser field.
9514 * parser-defs.h (null_post_parser): New declaration (default for
9515 la_post_parser).
9516
9517 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9518 insert call to that function.
9519 (parse_exp_in_context): New function, including code formerly in
9520 parse_exp_1. Calls language-dependent post-parser after
9521 prefixification.
9522 (parse_expression_in_context): New exported function.
9523 (null_post_parser): New definition.
9524 * expression.h (parse_expression_in_context): Add declaration.
9525
9526 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9527 * c-lang.c (c_language_defn): Ditto.
9528 (cplus_language_defn): Ditto.
9529 (asm_language_defn): Ditto.
9530 (minimal_language_defn): Ditto.
9531 * f-lang.c (f_language_defn): Ditto.
9532 * jv-lang.c (java_language_defn): Ditto.
9533 * language.c (unknown_language_defn): Ditto.
9534 (auto_language_defn): Ditto.
9535 (local_language_defn): Ditto.
9536 * m2-lang.c (m2_language_defn): Ditto.
9537 * scm-lang.c (scm_language_defn): Ditto.
9538 * obj-lang.c (objc_language_defn): Ditto.
9539
9540 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9541
9542 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9543 (amd64nbsd_mcontext_addr): New function.
9544 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9545 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9546 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9547
9548 * corelow.c (core_xfer_partial): Fix coding standards violation.
9549 Add support for TARGET_OBJECT_WCOOKIE.
9550
9551 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9552 deprecated_pc_in_sigtramp.
9553 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9554 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9555 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9556 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9557 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9558 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9559 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9560
9561 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9562 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9563 Fix typo.
9564
9565 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9566 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9567 (amd64_collect_fxsave): Likewise.
9568
9569 * i386-sol2-tdep.c: Include "gdb_string.h".
9570 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9571 name.
9572 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9573
9574 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9575
9576 * i386-sol2-tdep.c: Include "solib-svr4.h".
9577 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9578 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9579 * config/i386/tm-i386sol2.h: Include :solib.h".
9580 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9581 solib-svr4.o and solib-legacy.o.
9582 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9583 solib-svr4.o.
9584
9585 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9586
9587 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9588 whether a register is supplied by PTRACE_GETFPREGS.
9589 (store_inferior_registers): Likewise.
9590 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9591 whether a register is supplied by PT_GETFPREGS.
9592 (store_inferior_registers): Likewise.
9593
9594 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9595 * config/i386/linux64.mt (TDEPFILES): Likewise.
9596
9597 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9598
9599 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9600 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9601 the program counter is in the range specified by `struct
9602 gdbarch_tdep'.
9603 * amd64-linux-tdep.c: Include "symtab.h".
9604 (amd64_linux_pc_in_sigtramp): Remove function.
9605 (amd64_linux_sigtramp_p): New function.
9606 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9607 deprecated_pc_in_sigtramp.
9608 * amd64nbsd-tdep.c: Include "symtab.h".
9609 (amd64nbsd_sigtramp_p): New function.
9610 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9611 deprecated_pc_in_sigtramp.
9612 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9613 few comments.
9614 (amd64obsd_pc_in_sigtramp): Remove function.
9615 (amd64obsd_sigtramp_p): New function.
9616 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9617 deprecated_pc_in_sigtramp.
9618 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9619 (i386bsd_pc_ins_sigtramp): Remove prototype.
9620 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9621 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9622 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9623 the program counter is in the range specified by `struct
9624 gdbarch_tdep'.
9625 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9626 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9627 (i386_go32_pc_in_sigtramp): Remove function.
9628 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9629 Initialize TDEP->sigtramp_p.
9630 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9631 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9632 deprecated_pc_in_sigtramp.
9633 * i386-linux-tdep.c: Adjust comments.
9634 (i386_linux_pc_in_sigtramp): Remove function.
9635 (i386_linux_sigtramp_p): New function.
9636 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9637 deprecated_pc_in_sigtramp.
9638 * i386-nto-tdep.c: Update copyright year.
9639 (i386nto_pc_in_sigtramp): Remove function.
9640 (i386nto_sigtramp_p): New function.
9641 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9642 SP_REGNUM.
9643 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9644 deprecated_pc_in_sigtramp.
9645 * i386-sol2-tdep.c: Update copyright year.
9646 (i386_sol2_pc_in_sigtramp): Remove function.
9647 (i386_sol2_sigtramp_p): New function.
9648 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9649 deprecated_pc_in_sigtramp.
9650 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9651 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9652 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9653 deprecated_sigtramp_start and deprecated_sigtramp_end.
9654 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9655 (i386nbsd_pc_in_sigtramp): Remove function.
9656 (i386nbsd_sigtramp_p): New function.
9657 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9658 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9659 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9660 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9661 (i386obsd_pc_in_sigtramp): Remove function.
9662 (i386obsd_sigtramp_p): New function.
9663 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9664 functions.
9665 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9666 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9667 TDEP->sigtramp_p.
9668 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9669 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9670 dependencies.
9671
9672 * config/i386/i386aout.mt: Remove file.
9673
9674 * configure.tgt: Remove i[34567]86-*-go32*,
9675 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9676 and i[34567]86-*-isc*. Set gdb_target to i386 for
9677 i[34567]86-*-netware* and i[34567]86-*-*.
9678 * config/i386/i386.mt: New file.
9679 * config/i386/embed.mt: Remove file.
9680 * config/i386/go32.mt: Remove file.
9681 * config/i386/i386nw.mt: Remove file.
9682 * config/i386/i386v.mt: Remove file.
9683 * config/i386/tm-go32.h: Remove file.
9684
9685 * tui/tui-hooks.c: Include "readline/readline.h" after
9686 "gdb_curses.h" instead of before.
9687 * tui/tui-io.c: Likewise.
9688
9689 * tui/tui.c: Fix typo in comment.
9690
9691 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9692
9693 2004-04-08 Andrew Cagney <cagney@redhat.com>
9694
9695 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9696 (deprecated_exception_support_initialized): Declare.
9697 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9698 (initialize_hp_cxx_exception_support)
9699 (child_enable_exception_callback): Update.
9700 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9701 (deprecated_exception_support_initialized): Rename
9702 deprecated_exception_catchpoints_are_fragile and
9703 deprecated_exception_support_initialized.
9704 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9705
9706 * symtab.c (deprecated_hp_som_som_object_present): Rename
9707 hp_som_som_object_present.
9708 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9709 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9710 Update. Delete extern declaration.
9711 * valops.c (hp_som_som_object_present): Ditto.
9712 * parse.c (deprecated_hp_som_som_object_present)
9713 (parse_nested_classes_for_hpacc): Ditto.
9714 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9715 * hppa-hpux-tdep.c (hp_som_som_object_present)
9716 (initialize_hp_cxx_exception_support): Ditto.
9717 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9718 * cp-valprint.c (hp_som_som_object_present)
9719 (cp_print_class_method): Ditto.
9720 * c-typeprint.c (hp_som_som_object_present):
9721 (c_type_print_base): Ditto.
9722 * c-exp.y (hp_som_som_object_present): Ditto.
9723
9724 2004-04-08 Andrew Cagney <cagney@redhat.com>
9725
9726 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9727 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9728 (frame_unwind_find_by_frame): Re-implement the unwind code so
9729 that it can both prepend and append sniffers. Replace
9730 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9731 * tramp-frame.c (tramp_frame_append): Use
9732 frame_unwind_prepend_unwinder.
9733 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9734 frame_unwind_register_unwinder.
9735 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9736 tramp_frame_append.
9737 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9738 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9739 (mips_linux_init_abi): Update.
9740
9741 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9742
9743 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9744 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9745 file support.
9746
9747 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9748
9749 * ia64-tdep.c (elf.h): Don't include.
9750 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9751
9752 2004-04-07 Jason Molenda (jmolenda@apple.com)
9753
9754 * frame.h: Typeo corrections in comments.
9755
9756 2004-04-07 Jim Blandy <jimb@redhat.com>
9757
9758 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9759 %esp and %ebp
9760
9761 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9762
9763 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9764 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9765 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9766 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9767 and solib-legacy.o.
9768 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9769 solib-svr4.o.
9770 * config/sparc/tm-sol2.h: Update copyright year. Include
9771 "solib.h".
9772
9773 * sparc-sol2-tdep.c: Update copyright year. Include
9774 "solib-svr4.h".
9775 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9776 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9777 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9778 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9779 dependencies.
9780
9781 2004-04-06 Andrew Cagney <cagney@redhat.com>
9782
9783 * infttrace.c: Include "infttrace.h".
9784 * infttrace.h: Include "target.h".
9785 * Makefile.in (infttrace_h): Update.
9786 (infttrace.o): Update.
9787
9788 2004-04-06 Andrew Cagney <cagney@redhat.com>
9789
9790 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9791 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9792 move extern declarations from here ...
9793 * infttrace.h: ... to here.
9794 * Makefile.in (hppah-nat.o): Update dependencies.
9795
9796 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9797 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9798 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9799 (hppa_breakpoint_from_pc): Delete.
9800
9801 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9802
9803 2004-04-05 Andrew Cagney <cagney@redhat.com>
9804
9805 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9806 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9807 <sys/file.h>.
9808
9809 2004-04-06 Randolph Chung <tausq@debian.org>
9810
9811 Committed by Andrew Cagney (mechanical change).
9812 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9813 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9814 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9815 child_enable_exception_callback, current_ex_event,
9816 null_symtab_and_line, child_get_current_exception_event,
9817 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9818 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9819 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9820 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9821 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9822 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9823 Move hpux-specific definitions ...
9824 * hppa-hpux-tdep.c: ... to here.
9825
9826 2004-04-05 Andrew Cagney <cagney@redhat.com>
9827
9828 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9829 skip_prologue_using_sal.
9830
9831 2004-04-05 Andrew Cagney <cagney@redhat.com>
9832
9833 * config/i386/tm-i386.h: Delete file.
9834 * config/i386/tm-vxworks.h: Update copyright, do not include
9835 "tm-i386.h".
9836 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9837 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9838 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9839 * config/i386/ncr3000.mt (TM_FILE): Delete.
9840 * config/i386/interix.mt (TM_FILE): Delete.
9841 * config/i386/i386v.mt (TM_FILE): Delete.
9842 * config/i386/i386nw.mt (TM_FILE): Delete.
9843 * config/i386/i386gnu.mt (TM_FILE): Delete.
9844 * config/i386/i386aout.mt (TM_FILE): Delete.
9845 * config/i386/embed.mt (TM_FILE): Delete.
9846
9847 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9848
9849 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9850 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9851 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9852 (accg7_regnum): New constants.
9853 (last_spr_regnum, last_pseudo_regnum): Update.
9854 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9855 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9856 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9857 for accg registers.
9858 (frv_register_sim_regno): Update spr_map[].
9859
9860 2004-04-04 Andrew Cagney <cagney@redhat.com>
9861
9862 * config/mips/xm-riscos.h: Delete.
9863 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9864 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9865 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9866 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9867 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9868 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9869 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9870 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9871 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9872 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9873 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9874 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9875 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9876 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9877 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9878 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9879 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9880 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9881 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9882 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9883 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9884 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9885 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9886 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9887 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9888 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9889
9890 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9891 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9892 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9893 * configure.host: Remove m680[01]0-sun-sunos3*,
9894 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9895 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9896 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9897 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9898 mips-*-riscos*.
9899 * NEWS: Mention removed systems.
9900
9901 2004-04-04 Andrew Cagney <cagney@redhat.com>
9902
9903 GDB 6.1 release created from 6.1 branch.
9904
9905 2004-04-04 Andrew Cagney <cagney@redhat.com>
9906
9907 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9908 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9909 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9910
9911 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9912 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9913 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9914
9915 2004-04-03 Jim Blandy <jimb@redhat.com>
9916
9917 * MAINTAINERS: Chris Faylor has changed employers; add him to
9918 "paper trail" section, and update his E-mail address.
9919
9920 2004-04-03 Andrew Cagney <cagney@redhat.com>
9921
9922 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9923 generic dummy frames.
9924 * dummy-frame.c: Update copyright.
9925 (dummy_frame_sniffer): Delete check for generic dummy frames.
9926
9927 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9928 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9929 (REG_PARM_STACK_SPACE): Delete.
9930 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9931 Inline reference to REG_PARM_STACK_SPACE.
9932
9933 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9934 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9935 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9936 (FRAME_BASE_BEFORE_SIGTRAMP)
9937 (hppa32_hpux_frame_base_before_sigtramp)
9938 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9939 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9940 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9941 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9942 (FRAME_BASE_BEFORE_SIGTRAMP)
9943 (hppa64_hpux_frame_base_before_sigtramp)
9944 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9945
9946 2004-04-03 Andrew Cagney <cagney@redhat.com>
9947
9948 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9949
9950 2004-04-02 Andrew Cagney <cagney@redhat.com>
9951
9952 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9953 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9954 * dummy-frame.h: Delete out-of-date comments.
9955 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9956 * gdbarch.h, gdbarch.c: Re-generate.
9957
9958 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9959
9960 Committed by Andrew Cagney <cagney@redhat.com>.
9961 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9962 into account an instruction saving a register if we have already
9963 seen an earlier instruction saving that same register.
9964
9965 2004-04-02 Andrew Cagney <cagney@redhat.com>
9966
9967 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9968 * gdbarch.h, gdbarch.c: Re-generate.
9969 * frame.c (legacy_get_prev_frame): Delete references to
9970 DEPRECATED_INIT_FRAME_PC_FIRST.
9971
9972 * infrun.c (pc_in_sigtramp): Delete function.
9973 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9974 get_frame_type.
9975
9976 2004-04-02 Andrew Cagney <cagney@redhat.com>
9977
9978 * infrun.c (handle_step_into_function): Delete code conditional on
9979 legacy_frame_p.
9980 (handle_inferior_event, step_over_function): Ditto.
9981
9982 2004-04-02 Andrew Cagney <cagney@redhat.com>
9983
9984 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9985 "previous frame inner to this frame" test.
9986
9987 2004-04-02 Andrew Cagney <cagney@redhat.com>
9988
9989 * frame.c (safe_frame_unwind_memory): New function.
9990 * frame.h (safe_frame_unwind_memory): Declare. Update description
9991 of /safe_/ methods.
9992 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9993 "next_frame". Use safe_frame_unwind_memory.
9994 (tramp_frame_sniffer): Update call to tramp_frame_start.
9995
9996 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9997
9998 * dwarf2read.c (dwarf2_objfile_data_key): New.
9999 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10000 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10001 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10002 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10003 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10004 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10005 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10006 Remove variables.
10007 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10008 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10009 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10010 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10011 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10012 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10013 Remove macros.
10014 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10015 data.
10016 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10017 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10018 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10019 (read_partial_die, read_full_die, read_indirect_string)
10020 (dwarf_decode_line_header, dwarf_decode_macros)
10021 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10022 Update uses of removed variables.
10023 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10024 of removed macros.
10025 (_initialize_dwarf2_read): New function.
10026 * symfile.h (dwarf2_has_info): Update prototype.
10027 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10028 * elfread.c (elf_symfile_read): Likewise.
10029
10030 2004-04-01 Jim Blandy <jimb@redhat.com>
10031
10032 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10033 function for register numbers on all the rs6000-derived targets.
10034 (rs6000_gdbarch_init): Don't register a separate
10035 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10036 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10037 variants.
10038
10039 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10040 numbering.
10041
10042 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10043
10044 * valarith.c: Update copyright notice.
10045 (value_add): Handle range types.
10046 (value_sub): Ditto.
10047 (value_equal): Ditto.
10048 (value_less): Ditto.
10049 (value_neg): Ditto.
10050 (value_complement): Ditto.
10051 (value_binop): Simplify slightly by using is_integral_type and
10052 eliminiating unnecessary COERCE_ENUMs.
10053
10054 2004-03-31 Andrew Cagney <cagney@redhat.com>
10055
10056 * frame.h (frame_unwind_id): Declare.
10057 * frame.c (frame_unwind_id): New function.
10058 (get_prev_frame_1): New function.
10059 (frame_debug_got_null_frame): New function.
10060 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10061 code proper to prev_frame, update description.
10062 * infrun.c (step_over_function): Use frame_unwind_id.
10063
10064 2004-04-31 J. Brobecker <brobecker@gnat.com>
10065
10066 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10067 (hppa64_push_dummy_call): Likewise.
10068
10069 2004-03-30 Jim Blandy <jimb@redhat.com>
10070
10071 From Ulrich Weigand:
10072 * utils.c (query): Do not use a va_list variable multiple times.
10073
10074 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10075
10076 * Makefile.in (linux_nat_h): Update dependencies.
10077 * configure.in: Check for <gnu/libc-version.h>.
10078 * configure: Regenerate.
10079 * config.in: Regenerate.
10080 * linux-nat.h: Include "target.h". Add waitstatus field to
10081 struct lwp_info.
10082 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10083 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10084 to.
10085 (lin_lwp_handle_extended): New function. Handle clone events.
10086 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10087 thread exit events.
10088 (child_wait): Handle clone events.
10089 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10090 * linux-nat.c (linux_enable_event_reporting): Turn on
10091 PTRACE_O_TRACECLONE.
10092 (linux_handle_extended_wait): Handle clone events.
10093 * thread-db.c: Include <gnu/libc-version.h>.
10094 (struct private_thread_info): Add dying flag.
10095 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10096 higher.
10097 (attach_thread): Update comments. Handle dying threads.
10098 (detach_thread): Set the dying flag.
10099 (check_event): Always call attach_thread.
10100
10101 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * mips-tdep.c (mips_pdr_data): New.
10104 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10105 (_initialize_mips_tdep): Initialize mips_pdr_data.
10106
10107 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10108
10109 * minsyms.c (install_minimal_symbols): Move dropping leading
10110 char from linkage name from here...
10111 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10112 test for "__gnu_compiled*" symbols.
10113
10114 2004-03-28 Jim Blandy <jimb@redhat.com>
10115
10116 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10117 registers to temp register r0 and byte stores as prologue
10118 instructions.
10119
10120 2004-03-28 Andrew Cagney <cagney@redhat.com>
10121
10122 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10123 arm*-*-*.
10124
10125 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10126
10127 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10128 and switch the layout to force a display of register window.
10129
10130 2004-02-26 J. Brobecker <brobecker@gnat.com>
10131
10132 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10133 of the INTEGER class.
10134
10135 2004-03-26 Jim Blandy <jimb@redhat.com>
10136
10137 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10138 bytes long on PPC GNU/Linux.
10139
10140 2004-03-26 David Carlton <carlton@kealia.com>
10141
10142 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10143
10144 2004-03-25 Andrew Cagney <cagney@redhat.com>
10145
10146 * PROBLEMS: Add general section titles, remove references to
10147 specific releases.
10148
10149 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10150
10151 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10152 INT_REGISTER_SIZE.
10153 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10154 FP_REGISTER_VIRTUAL_SIZE.
10155 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10156 of DEPRECATED_REGISTER_RAW_SIZE.
10157 (arm_register_type): Add gdbarch argument.
10158 (arm_register_raw_size, arm_register_virtual_size): Delete.
10159 (arm_register_byte, arm_extract_return_value)
10160 (arm_store_return_value, arm_get_longjmp_target): Update references
10161 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10162 (arm_gdbarch_init): Likewise. Don't set
10163 deprecated_register_raw_size, deprecated_register_virtual_size,
10164 deprecated_max_register_raw_size,
10165 deprecated_max_register_virtual_size, or
10166 deprecated_max_register_virtual_type. Do set register_type.
10167 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10168 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10169 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10170 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10171 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10172 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10173 INT_REGISTER_SIZE.
10174 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10175 (remote_rdp_store_register): Likewise.
10176
10177 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10178
10179 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10180 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10181 to after osabi initialization.
10182 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10183 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10184 functions.
10185 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10186 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10187 variables.
10188 (mips_linux_init_abi): Append signal trampoline unwinders.
10189
10190 2004-03-24 Andrew Cagney <cagney@redhat.com>
10191
10192 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10193 * tramp-frame.c: Include "gdb_assert.h".
10194 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10195 correct sizeof.
10196 (tramp_frame_append): Validate the tramp frame's instructions.
10197 * Makefile.in (tramp-frame.o): Update dependencies.
10198
10199 2004-03-23 Andrew Cagney <cagney@redhat.com>
10200
10201 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10202
10203 2004-03-23 Andrew Cagney <cagney@redhat.com>
10204
10205 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10206 Nasser as past testsuite/lib/ (and other) maintainers.
10207
10208 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10209
10210 * infcmd.c (attach_command): Reread symbols if we already have
10211 an exec file.
10212
10213 2004-03-23 Andrew Cagney <cagney@redhat.com>
10214
10215 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10216
10217 2004-03-23 Andrew Cagney <cagney@redhat.com>
10218
10219 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10220 * gdbarch.h, gdbarch.c: Re-generate.
10221 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10222 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10223 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10224 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10225 (DEPRECATED_SIGTRAMP_START): Update.
10226 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10227 (DEPRECATED_SIGTRAMP_START): Update.
10228 * blockframe.c (find_pc_sect_partial_function): Update.
10229 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10230
10231 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10232
10233 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10234 if necessary.
10235
10236 2004-03-23 Andrew Cagney <cagney@redhat.com>
10237
10238 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10239 predicate, deprecate.
10240 * gdbarch.h, gdbarch.c: Re-generate.
10241 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10242 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10243 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10244 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10245 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10246 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10247 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10248 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10249 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10250 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10251 * blockframe.c (find_pc_partial_function): Update.
10252 * breakpoint.c (bpstat_what): Update.
10253 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10254 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10255 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10256 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10257 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10258 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10259 * i386-nto-tdep.c (i386nto_init_abi): Update.
10260 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10261 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10262 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10263 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10264 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10265 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10266 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10267 * infrun.c (pc_in_sigtramp): Update.
10268 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10269 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10270 * mips-tdep.c (mips_gdbarch_init): Update.
10271 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10272 * ppc-linux-tdep.c: Update comment.
10273 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10274 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10275 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10276 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10277 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10278 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10279 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10280 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10281 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10282 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10283
10284 2004-03-23 Andrew Cagney <cagney@redhat.com>
10285
10286 * tramp-frame.h, tramp-frame.h: New files.
10287 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10288 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10289
10290 * Makefile.in: Update all dependencies.
10291
10292 2004-03-23 Andrew Cagney <cagney@redhat.com>
10293
10294 * Makefile.in (trad_frame_h): Add $(frame_h).
10295 * trad-frame.h: Update copyright. Include "frame.h".
10296 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10297 (trad_frame_set_id, trad_frame_get_id): Declare.
10298 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10299 * trad-frame.c: Update copyright.
10300 (struct trad_frame_cache): Define.
10301 (trad_frame_cache_zalloc): New function.
10302 (trad_frame_set_id, trad_frame_get_id): New functions.
10303 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10304
10305 2004-03-22 Andrew Cagney <cagney@redhat.com>
10306
10307 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10308 s390_pltstub_unwind_cache.
10309 (s390_stub_frame_unwind_cache): Rename
10310 s390_pltstub_frame_unwind_cache.
10311 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10312 (s390_stub_frame_prev_register): Rename
10313 s390_pltstub_frame_prev_register.
10314 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10315 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10316
10317 From Ulrich Weigand:
10318 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10319 pointer calls like PLT calls.
10320
10321 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10322
10323 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10324 PC rather than the partial function start address. Use the start
10325 address to sanity check the found PDR.
10326
10327 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10328
10329 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10330 linux_handle_extended_wait.
10331
10332 2004-03-22 Andrew Cagney <cagney@redhat.com>
10333
10334 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10335 function.
10336
10337 * frame.h (generic_pop_current_frame): Delete declaration.
10338 (deprecate_pop_dummy_frame): Deprecate
10339 generic_pop_dummy_frame.
10340 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10341 (generic_pop_current_frame): Delete function.
10342 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10343 generic_pop_current_frame.
10344 * v850-tdep.c (v850_pop_frame): Update.
10345 * mcore-tdep.c (mcore_pop_frame): Update.
10346 * sh64-tdep.c (sh64_pop_frame): Update.
10347 * h8300-tdep.c (h8300_pop_frame): Update.
10348
10349 2004-03-22 Andrew Cagney <cagney@redhat.com>
10350
10351 * frame.h (deprecated_pc_in_call_dummy): Rename
10352 generic_pc_in_call_dummy.
10353 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10354 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10355 generic_pc_in_call_dummy.
10356 (pc_in_dummy_frame): Make static.
10357 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10358 * gdbarch.h, gdbarch.c: Re-generate.
10359 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10360 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10361 (legacy_get_prev_frame): Ditto.
10362 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10363 comment.
10364
10365 2004-03-21 Andrew Cagney <cagney@redhat.com>
10366
10367 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10368 declaration and out-of-date comment.
10369 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10370 Delete function.
10371 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10372 deprecated_pc_in_call_dummy.
10373
10374 * infrun.c (handle_inferior_event): For non legacy frames, use the
10375 frame ID and frame type to identify a signal trampoline. Update
10376 comments.
10377
10378 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10379
10380 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10381 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10382
10383 2004-03-21 Andrew Cagney <cagney@redhat.com>
10384
10385 * frame-unwind.h: Update copyright.
10386 (struct frame_data): Add opaque declaration.
10387 (frame_sniffer_ftype): Declare.
10388 (struct frame_unwind): Add "unwind_data" and "sniffer".
10389 (frame_unwind_register_unwinder): Declare.
10390 (frame_unwind_find_by_frame): Add parameter "this_cache".
10391 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10392 (legacy_get_prev_frame, legacy_get_prev_frame)
10393 (get_frame_type): Pass the prologue_cache to
10394 frame_unwind_find_by_frame.
10395 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10396 "unwinder".
10397 (frame_unwind_register_unwinder): New function.
10398 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10399
10400 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10401
10402 * bcache.c (print_percentage): Use floating point to avoid
10403 incorrect results when portion*100 overflows.
10404
10405 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10406
10407 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10408 (ppc_linux_init_extra_frame_info)
10409 (ppc_linux_frameless_function_invocation)
10410 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10411 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10412 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10413 (rs6000_frame_chain): Delete declarations.
10414 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10415 (ppc_linux_init_extra_frame_info)
10416 (ppc_linux_frameless_function_invocation)
10417 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10418 (ppc_linux_init_abi): Remove registration of above deleted functions.
10419 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10420 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10421 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10422 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10423 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10424 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10425 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10426 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10427 frame management for all OSABIs.
10428
10429 2004-03-19 Andrew Cagney <cagney@redhat.com>
10430
10431 Committed by Kevin Buettner <kevinb@redhat.com>.
10432
10433 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10434 Update copyright.
10435 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10436 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10437 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10438 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10439 unwinders. #ifdef legacy frame code.
10440 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10441 "frame-base.h".
10442 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10443 (struct rs6000_frame_cache, rs6000_frame_cache)
10444 (rs6000_frame_this_id, rs6000_frame_prev_register)
10445 (rs6000_frame_sniffer, rs6000_frame_unwind)
10446 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10447 (rs6000_frame_base): Implement a traditional frame unwinder.
10448 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10449 frame unwinder.
10450
10451 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10452
10453 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10454 breakpoint address for watchpoints or the catch eventpoints.
10455 Add new paramter ``bptype''. Adjust all callers.
10456
10457 2004-03-19 Andrew Cagney <cagney@redhat.com>
10458
10459 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10460
10461 * PROBLEMS: Delete note that ARM does not use frame code, problem
10462 fixed.
10463
10464 2004-03-18 Andrew Cagney <cagney@redhat.com>
10465
10466 * stack.c (return_command): Delete code wrapped in #ifdef
10467 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10468
10469 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10470
10471 2004-03-18 Andrew Cagney <cagney@redhat.com>
10472
10473 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10474 DEPRECATED_IN_SIGTRAMP.
10475 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10476 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10477 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10478 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10479 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10480 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10481 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10482 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10483 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10484 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10485
10486 2004-03-18 Andrew Cagney <cagney@redhat.com>
10487
10488 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10489 (struct frame_base_table_entry): Define.
10490 (struct frame_base_table): Re-implement as a linked list.
10491 (frame_base_init): Re-implement.
10492 (frame_base_table): Delete function.
10493 (append_predicate): Delete function.
10494 (frame_base_append_sniffer): Update.
10495 (frame_base_set_default): Update.
10496 (frame_base_find_by_frame): Update.
10497 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10498 * Makefile.in (frame-base.o): Update dependencies.
10499
10500 2004-03-17 Andrew Cagney <cagney@redhat.com>
10501
10502 * frame.c (legacy_get_prev_frame): Pass correct frame to
10503 frame_unwind_find_by_frame.
10504
10505 2004-03-17 David Carlton <carlton@kealia.com>
10506
10507 * NEWS: Mention C++ nested types and namespaces
10508
10509 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10510
10511 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10512 and "Regressions since gdb 5.3.". Add known regressions since
10513 gdb 6.0.
10514
10515 2004-03-16 David Carlton <carlton@kealia.com>
10516
10517 * dwarf2read.c (process_structure_scope): Process children even
10518 when we're a declaration.
10519
10520 2004-03-16 Andrew Cagney <cagney@redhat.com>
10521
10522 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10523 * blockframe.c (find_pc_partial_function)
10524 (find_pc_sect_partial_function): Merge into a single
10525 find_pc_partial_function.
10526
10527 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10528
10529 * i386bsd-nat.c: s/regno/regnum/g.
10530 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10531 FP0_REGNUM.
10532 (store_inferior_registers): Likewise.
10533
10534 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10535
10536 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10537 of i387_fill_fsave.
10538 (store_inferior_registers): Call i387_collect_fsave and
10539 i387_collect_fxsave instead of i387_fill_fsave and
10540 i387_fill_fxsave.
10541
10542 2004-03-15 Andrew Cagney <cagney@redhat.com>
10543
10544 * Makefile.in (frame-unwind.o): Update dependencies.
10545 * frame-unwind.c: Include "gdb_obstack.h".
10546 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10547 parameter.
10548 (append_predicate): Delete function.
10549 (struct frame_unwind_table_entry): New structure.
10550 (struct frame_unwind_table): Replace "sniffer" with "head" and
10551 "tail".
10552 (frame_unwind_append_sniffer): Update.
10553 (frame_unwind_find_by_frame): Update.
10554 (_initialize_frame_unwind): Registe frame_unwind_init using
10555 gdbarch_data_register_pre_init.
10556
10557 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10558
10559 * i386bsd-nat.c: Update copyright year.
10560 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10561 define unconditionally.
10562
10563 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10564
10565 * i387-tdep.h (i387_collect_fsave): New prototype.
10566 * i387-tdep.c (i387_collect_fsave): New function containing most
10567 of the code from i387_fill_fsave.
10568 (i387_fill_fsave): Call i387_collect_fsave.
10569
10570 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10571
10572 * i386-linux-tdep.c: Update copyright year.
10573 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10574 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10575 svr4_ilp32_link_map_offsets instead of
10576 i386_linux_svr4_fetch_link_map_offsets.
10577
10578 2004-03-15 David Carlton <carlton@kealia.com>
10579
10580 Fix for PR c++/1553:
10581 * dwarf2read.c (read_structure_type): Determine type name by
10582 calling determine_class_name.
10583 (determine_class_name): New.
10584 (determine_prefix): Look at TYPE_TAG_NAME and call
10585 determine_class_name when appropriate.
10586 (determine_prefix_aux, class_name): Delete.
10587 (read_namespace): Set die->type.
10588
10589 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10590
10591 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10592 unused macro definition. The definition in target.h (or perhaps
10593 elsewhere) takes precedence.
10594
10595 2004-03-15 Andrew Cagney <cagney@redhat.com>
10596
10597 * ppc-tdep.h: Update copyright.
10598 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10599 function signatures to match "regsets.h".
10600 * ppc-linux-tdep.c: Include "regset.h".
10601 (ELF_GREGSET_SIZE): Delete.
10602 (right_supply_register): New function.
10603 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10604 using right_supply_register.
10605 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10606 functions.
10607 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10608 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10609 (_initialize_ppc_linux_tdep): Do not register
10610 ppc_linux_regset_core_fns.
10611 (ppc_linux_regset_from_core_section): Replace
10612 fetch_core_registers.
10613 (ppc_linux_regset_core_fns): Delete.
10614 * ppc-linux-nat.c: (right_fill_reg): New function.
10615 (supply_gregset): Update call to ppc_linux_supply_gregset.
10616 (fill_gregset): Clear the register set, use right_fill_reg.
10617 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10618 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10619
10620 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10621 unsigned.
10622
10623 2004-03-15 Andrew Cagney <cagney@redhat.com>
10624
10625 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10626 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10627 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10628 and register_gdbarch_data.
10629 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10630 (struct gdbarch_data): Replace "init" by "pre_init" and
10631 "post_init".
10632 * gdbarch.h, gdbarch.c: Re-generate.
10633 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10634 with"obstack", use OBSTACK_ZALLOC.
10635 (dwarf2_frame_ops): Delete.
10636 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10637 (dwarf2_frame_init_reg): Use gdbarch_data.
10638 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10639 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10640 (_initialize_svr4_solib): Update.
10641 * user-regs.c (_initialize_user_regs): Update.
10642 * reggroups.c (_initialize_reggroup): Update.
10643 * regcache.c (_initialize_regcache): Update.
10644 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10645 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10646 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10647 * frame-unwind.c (_initialize_frame_unwind): Update.
10648 * frame-base.c (_initialize_frame_base): Update.
10649 * user-regs.c (user_reg_add): Update.
10650 * reggroups.c (reggroup_add): Update.
10651 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10652 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10653 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10654 * frame-base.c (frame_base_table): Update.
10655 * remote.c (_initialize_remote): Update.
10656 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10657
10658 2004-03-15 Andrew Cagney <cagney@redhat.com>
10659
10660 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10661
10662 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10663
10664 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10665 * frv-linux-tdep.c: New file.
10666 * frv-tdep.c (struct gdbarch_tdep): Add new field
10667 ``sigcontext_reg_addr''.
10668 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10669 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10670 (frv_sigramp_frame_sniffer): New functions.
10671 (frv_sigtramp_frame_unwind): New static global.
10672 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10673 sniffers.
10674 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10675 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10676
10677 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10678
10679 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10680 but not via a call to error(), when unable to read memory.
10681
10682 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10683
10684 * frv-tdep.c (frv_call_dummy_words): Delete.
10685 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10686
10687 2004-03-15 Andrew Cagney <cagney@redhat.com>
10688
10689 * infrun.c (handle_step_into_function, step_over_function): Only
10690 update and use STEP_FRAME_ID when the system is using legacy
10691 frames. Update comments.
10692
10693 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10694
10695 * amd64-linux-tdep.h: Remove file.
10696 * amd64-linux-tdep.c: Don't include "inferior.h" and
10697 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10698 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10699 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10700 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10701 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10702 macros.
10703 (user_to_gdb_regmap): Remove variable.
10704 (amd64_linux_gregset_reg_offset): New variable.
10705 (amd64_core_fns): Remove variable.
10706 (fetch_core_registers): Remove function.
10707 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10708 functions.
10709 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10710 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10711 * Makefile.in (amd64_linux_tdep_h): Remove.
10712 (amd64-linux-nat.o): Update dependencies.
10713 (amd64-linux-tdep.o): Update dependencies.
10714
10715 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10716 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10717 functions.
10718 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10719
10720 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10721 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10722
10723 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * dwarf2read.c (read_structure_type): Rename from
10726 read_structure_scope. Don't create a symbol or call process_die.
10727 Return immediately if die->type is set. Call read_type_die before
10728 dwarf2_add_member_fn.
10729 (process_structure_scope): New function.
10730 (read_enumeration_type, process_enumeration_scope): New functions,
10731 broken out from read_enumeration. Don't create the enumeration
10732 type if it has already been created.
10733 (read_enumeration): Removed.
10734 (process_die): Call read_structure_type, process_structure_scope,
10735 read_enumeration_type, and process_enumeration_scope. Just call
10736 new_symbol for base and subrange types. Add a comment about other
10737 type dies.
10738 (read_type_die): Call read_enumeration_type.
10739 (add_partial_structure, new_symbol): Update comments.
10740
10741 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10742
10743 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10744
10745 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10746
10747 * tui/tui-win.h (tui_get_cmd_list): Declare.
10748 * tui/tui-win.c (tui_command): New function.
10749 (tui_get_cmd_list): New function.
10750 (_initialize_tui_win): Moved initialization of tui command in
10751 tui_get_cmd_list.
10752
10753 * tui/tui-data.c (init_content_element): Setup new data members.
10754 (init_win_info): Likewise.
10755 (free_content_elements): Free it.
10756 * tui/tui-data.h (struct tui_data_element): Store the register
10757 content to print.
10758 (struct tui_data_info): Keep the current register group.
10759
10760 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10761
10762 * tui/tui-regs.h (tui_show_registers): Update prototype.
10763 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10764 (tui_resize_all): No need to calculate anything for register window.
10765 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10766 (tui_set_register_element, tui_set_general_regs_content): Remove.
10767 (tui_set_special_regs_content): Remove.
10768 (tui_set_general_and_special_regs_content): Remove.
10769 (tui_set_float_regs_content): Remove.
10770 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10771 (tui_set_regs_content): Remove.
10772 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10773 (tui_v_show_registers_command_support): Remove.
10774 (tui_show_registers): Use a reggroup to specify the registers to show.
10775 (tui_show_register_group): New function.
10776 (tui_display_registers_from): Compute the layout of register window
10777 and refresh with new API; be sure to delete old register windows.
10778 (tui_check_register_values): Update to use tui_get_register and
10779 tui_display_data.
10780 (tui_display_register): Just refresh the register window part.
10781 (tui_register_format): Format registers and save in tui_data_element.
10782 (tui_get_register): New to combine tui_reg_value_has_changed and
10783 tui_get_register_raw_value; fix to use the new gdb API.
10784 (tui_show_float_command): Renamed tui_reg_float_command.
10785 (tui_show_general_command): Renamed tui_reg_general_command.
10786 (tui_show_special_command): Renamed tui_reg_system_command.
10787 (_initialize_tui_regs): Remove unused commands.
10788
10789 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10790
10791 * NEWS (New native configurations): Mention OpenBSD/amd64.
10792
10793 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10794 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10795 Remove defines.
10796 * config/i386/nm-fbsd64.h: Likewise.
10797 * config/i386/nm-obsd.h: Likewise.
10798 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10799 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10800
10801 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10802
10803 * frv-tdep.c (set_variant_scratch_registers): New function.
10804 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10805 New constants.
10806
10807 From Richard Sandiford <rsandifo@redhat.com>:
10808 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10809
10810 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10811
10812 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10813 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10814 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10815 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10816 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10817 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10818 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10819 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10820 definitions from frv-tdep.c to frv-tdep.h.
10821
10822 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10823
10824 Add shared library support for FR-V FDPIC ABI:
10825 * Makefile.in (solib-frv.o): Add dependencies.
10826 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10827 New functions.
10828 (frv_push_dummy_call): Add support for FDPIC ABI.
10829 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10830 for FDPIC ABI.
10831 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10832 (frv_fdpic_find_canonical_descriptor): Declare.
10833 * solib-frv.c: New file.
10834 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10835 * config/frv/tm-frv.h (solib.h): Include.
10836
10837 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10838
10839 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10840 (frv-tdep.o): Update dependencies.
10841 * frv-tdep.h: New file.
10842 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10843 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10844 constants.
10845 (struct gdbarch_tdep): Add new member ``frv_abi''.
10846 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10847 functions.
10848 (new_variant): Set ``frv_abi'' field.
10849 (gdb_arch_init): Detect FDPIC executables.
10850
10851 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10852
10853 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10854 wrapper.
10855
10856 2004-03-11 Andrew Cagney <cagney@redhat.com>
10857
10858 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10859
10860 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10861
10862 * solist.h (master_so_list): New function.
10863 * solib.c (master_so_list): Likewise.
10864 * solib-svr4.c (enable_break): Iterate over so_list entries
10865 obtained from master list instead of entries obtained directly
10866 via svr4_current_sos().
10867
10868 2004-03-10 Ben Elliston <bje@gnu.org>
10869
10870 * MAINTAINERS: Update my mail address.
10871
10872 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10873
10874 * remote-m32r-sdi.c: Support hardware watchpoint.
10875
10876 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10877
10878 * user-regs.c: Update copyright years.
10879 (struct user_regs): Rename to gdb_user_regs.
10880 (append_user_reg, builtin_user_regs, user_regs_init)
10881 (user_reg_add, user_reg_map_name_to_regnum)
10882 (usernum_to_user_reg): Update.
10883
10884 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10885
10886 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10887 (skip_children): New functions.
10888 (locate_pdi_sibling): Call skip_children.
10889
10890 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10891
10892 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10893 * gdbtypes.c (check_typedef): Update comments.
10894
10895 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10896
10897 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10898 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10899 pointer. Update comment about comp_unit_head.
10900 (struct abbrev_info): Shorten two int flags.
10901 (dwarf_alloc_abbrev): Take a CU argument.
10902 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10903 each time through the loop. Update cleanup argument.
10904 (psymtab_to_symtab_1): Update cleanup call.
10905 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10906 abbrev_obstack.
10907 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10908 Just call obstack_free and clear the pointer.
10909
10910 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10911
10912 * infrun.c (handle_inferior_event): Remove short-circuit code for
10913 events in a different thread.
10914
10915 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10916
10917 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10918 print the whole transfer.
10919 (initialize_targets): Update description of "set debug target".
10920
10921 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10922
10923 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10924
10925 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10926
10927 * MAINTAINERS (write after approval): Add myself.
10928
10929 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10930
10931 * sh-tdep.c (sh_print_registers_info): Use for loop.
10932 Don't skip multiple registers when a float register is encountered.
10933
10934 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10935
10936 Fix PR tdep/1291.
10937 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10938 to official SH documentation.
10939
10940 2004-03-07 Andrew Cagney <cagney@redhat.com>
10941
10942 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10943 unused function.
10944
10945 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10948 (arm_get_next_pc): Handle BX and BLX.
10949
10950 2004-03-07 Andrew Cagney <cagney@redhat.com>
10951
10952 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10953 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10954 HPPA_SP_REGNUM.
10955 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10956 (hppa_target_read_fp): Delete.
10957 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10958 register_virtual_size, max_register_raw_size,
10959 max_register_virtual_size, register_byte, register_size,
10960 target_read_fp, fp_regnum, and register_bytes. Set register_type
10961 instead of register_virtual_type.
10962 (hppa32_register_type, hppa64_register_type): Replace
10963 hppa32_register_virtual_type and hppa64_register_virtual_type.
10964 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10965 (HPPA_FP_REGNUM): Define.
10966
10967 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10968
10969 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10970 (pa_do_registers_info): Delete.
10971 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10972 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10973 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10974
10975 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10976 GDB_TARGET_IS_HPPA code.
10977 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10978 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10979 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10980 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10981 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10982 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10983 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10984 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10985 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10986 (hppa_frameless_function_invocation, hppa64_store_return_value)
10987 (hppa_store_struct_return, hppa64_extract_return_value)
10988 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10989 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10990 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10991 (find_proc_framesize, deposit_21, restore_pc_queue)
10992 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10993 (rp_saved, pc_in_linker_stub): Delete.
10994
10995 Unconditionally enable 64-bit frame and ABI code.
10996 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10997 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10998 push_dummy_frame, fix_call_dummy, push_arguments,
10999 call_dummy_location, extract_return_value, use_struct_convention,
11000 store_return_value, store_struct_return, saved_pc_after_call,
11001 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11002 frame_chain, frame_chain_valid, frameless_function_invocation,
11003 frame_saved_pc, and pop_frame.
11004
11005 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11006 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11007 (hppa_gdbarch_init): Do not set PC_REGNUM.
11008
11009 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11010
11011 * config/alpha/tm-fbsd.h: Remove file.
11012 * config/alpha/fbsd.mt: Tweak comment.
11013 (TM_FILE): Set to tm-alpha.h.
11014
11015 2004-03-05 Andrew Cagney <cagney@redhat.com>
11016
11017 * infrun.c (step_over_function): When non-legacy code, and no
11018 step_frame_id, use the unwinder to get the caller's frame ID.
11019
11020 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11021
11022 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11023 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11024 bfd_arch_unknown. Adjust comment.
11025
11026 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11027 * i386obsd-tdep.c: Correct spelling in comment.
11028 * i386nbsd-tdep.c: Correct spelling in comment.
11029 * sparc-tdep.c: Correct spelling in comments.
11030
11031 2004-03-05 David Carlton <carlton@kealia.com>
11032
11033 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11034 bug.
11035
11036 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11037
11038 * sparc-tdep.c: Fix typo in comment.
11039
11040 2004-03-04 J. Brobecker <brobecker@gnat.com>
11041
11042 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11043
11044 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11045
11046 * dwarf2read.c: Add comment describing memory lifetimes.
11047 (struct dwarf2_pinfo): Update comment.
11048 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11049 (read_enumeration, new_symbol): Don't use obsavestring.
11050
11051 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11052
11053 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11054 instead of amd64_fill_fxsave.
11055 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11056 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11057
11058 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11059 Reorganize code a bit.
11060
11061 2004-03-04 Orjan Friberg <orjanf@axis.com>
11062
11063 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11064 when the frame pointer is pushed. Don't set the frame pointer's
11065 address on the stack unless it's actually located there.
11066 Set the SRP's address on the stack correctly when the PC is still in
11067 the prologue.
11068 (cris_return_value): New function.
11069 (cris_gdbarch_init): Clear deprecated store_return_value,
11070 extract_return_value.
11071
11072 2004-03-02 Jim Blandy <jimb@redhat.com>
11073
11074 * stabsread.c (reg_value_complaint): The maximum register number
11075 is one less than the number of registers.
11076
11077 2004-03-02 Andrew Cagney <cagney@redhat.com>
11078
11079 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11080 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11081 trailing comma and redundant assignment of I386_ST0_REGNUM.
11082 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11083 32-bit segment registers.
11084
11085 2004-03-01 Andrew Cagney <cagney@redhat.com>
11086
11087 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11088 use frame_relative_level and get_next_frame.
11089
11090 2004-02-29 Andrew Cagney <cagney@redhat.com>
11091
11092 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11093 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11094 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11095 Delete macro.
11096
11097 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11098
11099 * inflow.c (terminal_inferior): Don't give up the terminal if we
11100 previously couldn't get the inferior's terminal state.
11101
11102 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11103
11104 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11105 PC_REGNUM.
11106
11107 2004-02-28 Andrew Cagney <cagney@redhat.com>
11108
11109 * NEWS: Refer to GDB 6.1.
11110 * README: Refer to GDB 6.1.
11111 * PROBLEMS: Refer to GDB 6.1.
11112
11113 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11114
11115 * thread-db.c (disable_thread_signals): Remove unused function.
11116
11117 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11118
11119 * amd64-nat.c: Include "gdb_string.h".
11120 (amd64_collect_native_gregset): Zero-extend the 32-bit
11121 general-purpose registers and %eip.
11122
11123 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11124 * amd64-tdep.c (amd64_collect_fxsave): New function.
11125 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11126
11127 * i387-tdep.h: Update copyright year.
11128 (i387_collect_fxsave): New prototype.
11129 * i387-tdep.c: Update copyright year.
11130 (i387_collect_fxsave): New function containing most of the code
11131 from i387_fill_fxsave.
11132 (i387_fill_fxsave): Call i387_collect_fxsave.
11133
11134 2004-02-28 Andrew Cagney <cagney@redhat.com>
11135
11136 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11137 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11138
11139 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11140
11141 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11142
11143 2004-02-28 Andrew Cagney <cagney@redhat.com>
11144
11145 * utils.c: Use "", instead of <>, to include readline.
11146 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11147 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11148 * source.c, solib.c, exec.c, event-top.c: Ditto.
11149 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11150 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11151 * Makefile.in: Update all dependencies.
11152 (readline_tilde_h, readline_history_h): Define.
11153 (readline_headers): Delete.
11154
11155 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11156
11157 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11158 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11159 "config/i386/tm-lx64.h".
11160
11161 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11162 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11163 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11164
11165 2004-02-28 Andrew Cagney <cagney@redhat.com>
11166
11167 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11168
11169 * breakpoint.c (_initialize_breakpoint): Use
11170 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11171 Add help to show command.
11172
11173 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11174
11175 * i386-nat.c: Reformat to be closer to coding standards.
11176 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11177 `retval'. Make variables `align' and `size' local to while-loop.
11178 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11179 (_initialize_i386_nat): New prototype.
11180
11181 * tui/tui.c: Include <readline/readline.h> instead of
11182 "readline/readline.h". Include it after <term.h> and
11183 "gdb_curses.h".
11184
11185 2004-02-27 Andrew Cagney <cagney@redhat.com>
11186
11187 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11188 the new frame unwind code.
11189 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11190 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11191 PCOQ_HEAD_REGNUM.
11192
11193 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11194 "return_value" and "push_dummy_call".
11195 (hppa32_use_struct_convention): Delete unused function.
11196 (hppa32_store_return_value): Delete unused function.
11197 (hppa32_extract_return_value): Delete unused function.
11198 (hppa32_stack_align): Delete function.
11199
11200 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11201
11202 * coffread.c (enter_linenos): Don't let rawptr reference memory
11203 outside linetab[]'s limits.
11204
11205 2004-02-27 Andrew Cagney <cagney@redhat.com>
11206
11207 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11208 inferior stack space - the stack needs to grow upwards.
11209 (hppa32_frame_align): New function.
11210 (hppa64_frame_align): Replace hppa_frame_align.
11211 (hppa_gdbarch_init): Update.
11212
11213 2004-02-26 Orjan Friberg <orjanf@axis.com>
11214
11215 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11216 (dwarf2-frame.h): Include.
11217 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11218 Remove static variables related to ABI setting.
11219 (struct gdbarch_tdep): Remove cris_abi member.
11220 (struct frame_extra_info): Remove.
11221 (cris_unwind_cache, stack_item): New structs.
11222 (cris_frame_unwind, cris_frame_base): New variables.
11223 (push_stack_item, pop_stack_item)
11224 (cris_frame_unwind_cache, cris_frame_this_id)
11225 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11226 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11227 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11228 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11229 (cris_reg_struct_has_addr): New functions.
11230 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11231 (cris_frame_saved_pc, cris_saved_pc_after_call,
11232 (cris_store_struct_return, cris_frameless_function_invocation)
11233 (cris_pop_frame, cris_skip_prologue_main)
11234 (cris_abi_original_store_return_value)
11235 (cris_abi_v2_store_return_value)
11236 (cris_abi_original_extract_return_value)
11237 (cris_abi_v2_extract_return_value)
11238 (cris_abi_original_reg_struct_has_addr)
11239 (cris_abi_v2_reg_struct_has_addr)
11240 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11241 (cris_push_return_address, cris_abi_update): Remove.
11242 (_initialize_cris_tdep): Remove ABI command.
11243 (cris_dump_tdep): Ditto.
11244 (cris_gdbarch_init): Remove ABI command.
11245 Set store_return_value, extract_return_value, push_dummy_code,
11246 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11247 frame_unwind_append_sniffer, frame_base_set_default.
11248 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11249 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11250 sizeof_call_dummy_words, get_saved_register, push_return_address,
11251 pop_frame, store_struct_return, frame_init_saved_regs,
11252 init_extra_frame_info, frameless_function_invocation, frame_chain,
11253 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11254 dummy_write_sp.
11255
11256 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11257
11258 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11259 * valprint.c (print_hex_chars): Change from static to external.
11260 (print_char_chars): New function.
11261 * printcmd.c (print_scalar_formatted): For integer and enum types
11262 that are longer than LONGEST, perform processing via appropriate
11263 print_*_chars routines.
11264
11265 2004-02-26 Andrew Cagney <cagney@redhat.com>
11266
11267 * Makefile.in: Update dependencies.
11268 Changes from Ulrich Weigand,
11269 * s390-tdep.c: Include "dwarf2-frame.h".
11270 (s390_dwarf2_frame_init_reg): New function.
11271 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11272 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11273
11274 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11275
11276 * breakpoint.c (pending_break_support): New setting variable.
11277 (break_command_1): Account for pending_break_support setting
11278 when creating pending breakpoints.
11279 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11280 (_initialize_breakpoint): Add "set breakpoint pending" and
11281 "show breakpoint pending" commands.
11282
11283 2004-02-26 Andrew Cagney <cagney@redhat.com>
11284
11285 Fix PR i18n/1570.
11286 * charset.c (backslashable, backslashed, represented): Remove 'e'
11287 from list of escaped characters, not part of ISO-C.
11288
11289 2004-02-25 J. Brobecker <brobecker@gnat.com>
11290
11291 From Peter Schauer <schauer@pdf.de>:
11292 * tui/tui.c: Move system header includes after local includes.
11293 Fixes a build failure on solaris systems.
11294
11295 2004-02-25 J. Brobecker <brobecker@gnat.com>
11296
11297 * configure.in: Refine the previous change.
11298 * configure: Regenerate.
11299
11300 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11301
11302 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11303 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11304 "amd64-tdep.h" instead of "x86-64-tdep.h".
11305 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11306 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11307 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11308 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11309 and "x86-64-tdep.c".
11310 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11311 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11312 and "x86-64-tdep.c".
11313 * amd64bsd-nat.c: Update copyright year.
11314 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11315 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11316 "x86-64-tdep.h".
11317 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11318 "x86-64-tdep.h".
11319 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11320 "x86-64-tdep.h".
11321 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11322 "x86-64-tdep.h".
11323 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11324 "x86-64-tdep.h".
11325 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11326 "x86-64-tdep.h".
11327 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11328 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11329 * Makefile.in (amd64_linux_tdep_h): Renamed from
11330 x86_64_linux_tdep_h.
11331 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11332 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11333 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11334 (amd64obsd-tdep.o): Update dependencies.
11335 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11336 dependencies.
11337 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11338 dependencies.
11339 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11340 amd64-linux-nat.c amd64-linux-tdep.c.
11341 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11342 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11343 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11344 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11345 amd64-tdep.o and amd64-linux-tdep.o.
11346 (TM_FILE): Set to tm-linux64.h.
11347 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11348 (NAT_FILE): Set to nm-linux64.h.
11349 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11350 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11351 amd64-tdep.o.
11352 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11353 amd64-tdep.o.
11354 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11355 amd64-tdep.o.
11356
11357 2004-02-25 Roland McGrath <roland@redhat.com>
11358
11359 * remote.c (remote_protocol_qPart_auxv): New variable.
11360 (init_all_packet_configs): Initialize it.
11361 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11362 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11363 (show_remote_cmd): Call it.
11364 (_initialize_remote): Initialize commands.
11365 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11366 service TARGET_OBJECT_AUXV requests.
11367
11368 2004-02-25 J. Brobecker <brobecker@gnat.com>
11369
11370 * configure.in: Make sure that the wborder function is available.
11371 Otherwise, search for it in the cur_colr library.
11372 * configure: Regenerate.
11373
11374 2004-02-25 Andrew Cagney <cagney@redhat.com>
11375
11376 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11377
11378 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11379
11380 * config/i386/tm-x86-64linux.h: Tweak comments.
11381
11382 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11383
11384 * MAINTAINERS: Add self to write-after-approval list.
11385
11386 2004-02-25 Andrew Cagney <cagney@redhat.com>
11387
11388 PR cli/1566. Problem found, and fix suggested by David Allan.
11389 * cli/cli-script.c (execute_control_command): Unconditionally
11390 install a cleanup. Default "ret" to "invalid_control". Use
11391 "break" instead of "return" to escape from the switch.
11392
11393 2004-02-24 J. Brobecker <brobecker@gnat.com>
11394
11395 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11396 with the lines macro defined in term.h on AiX.
11397 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11398 a collision with the label_width macro defined in term.h on AiX.
11399
11400 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11401
11402 Committed by Kevin Buettner <kevinb@redhat.com>.
11403
11404 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11405 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11406 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11407 instead of ia64_write_pc().
11408 * ia64-linux-tdep.c (regcache.h): Include.
11409 (ia64_linux_write_pc): New function.
11410
11411 2004-02-23 Roland McGrath <roland@redhat.com>
11412
11413 * auxv.c (info_auxv_command): Fix typos in error messages.
11414
11415 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11416
11417 * x86-64-tdep.h: Tweak comment.
11418 (enum amd64_regnum): New.
11419 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11420 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11421 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11422 (X86_64_XMM1_REGNUM): Removed.
11423 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11424 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11425 prototypes for renamed functions.
11426 * x86-64-tdep.c: Fix typo.
11427 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11428 register numbers.
11429 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11430 Use constants from `enum amd64_regnum' for register numbers.
11431 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11432 (amd64_analyze_prologue, amd64_frame_cache,
11433 amd64_sigtramp_frame_cache): Use constants from `enum
11434 amd64_regnum' for register numbers.
11435 (amd64_supply_fpregset): Adjust for renamed functions.
11436 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11437 `enum amd64_regnum' for register numbers.
11438 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11439 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11440 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11441 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11442 (amd64_linux_fill_gregset): Adjust for renamed macros.
11443 (fetch_core_registers): Adjust for renamed functions.
11444 (amd64_linux_init_abi): Adjust for renamed functions.
11445 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11446 renamed functions.
11447 * amd64-nat.c: Adjust for renamed macros.
11448 * amd64bsd-nat.c (fetch_inferior_registers)
11449 (store_inferior_registers): Use constants from `enum amd64_regnum'
11450 for register numbers. Adjust for renamed variables.
11451 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11452 renamed variables.
11453 (_initialize_amd64fbsd_nat): Use constants from `enum
11454 amd64_regnum' for register numbers.
11455 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11456 `enum amd64_regnum' for register numbers.
11457 (amd64fbsd_init_abi): Adjust for renamed functions.
11458 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11459 `enum amd64_regnum' for register numbers.
11460 (amd64nbsd_init_abi): Adjust for renamed functions.
11461 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11462 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11463 `enum amd64_regnum' for register numbers.
11464 (amd64obsd_init_abi): Adjust for renamed functions.
11465 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11466
11467 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11468
11469 * breakpoint.c (print_one_breakpoint): Do not output spaces
11470 after printing <PENDING> for a pending breakpoint.
11471
11472 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11473
11474 * printcmd.c (print_scalar_formatted): Initialize val_long
11475 to remove compiler warning message.
11476
11477 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11478
11479 * defs.h (nquery, yquery): New prototypes.
11480 * breakpoint.c (break_command_1): Use new nquery interface.
11481 * utils.c (defaulted_query, nquery, yquery): New functions.
11482
11483 2004-02-23 Andrew Cagney <cagney@redhat.com>
11484
11485 * hppa-tdep.c (hppa_frame_align): New function.
11486 (hppa32_push_dummy_call): New function.
11487 (hppa64_push_dummy_call): New function.
11488 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11489 disabled.
11490
11491 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11492 FIX_CALL_DUMMY when push_dummy_call is available.
11493 (call_function_by_hand, push_dummy_code): Ditto.
11494
11495 2004-02-22 Andrew Cagney <cagney@redhat.com>
11496
11497 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11498 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11499 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11500 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11501 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11502 call_dummy_location to ON_STACK.
11503
11504 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11505
11506 * x86-64-linux-tdep.c: Tweak comment.
11507 (amd64_linux_supply_gregset): Renamed from
11508 x86_64_linux_supply_gresget.
11509 (amd64_linux_fill_gregset): Renamed from
11510 x86_64_linux_fill_gregset.
11511 (fetch_core_registers): Adjust for renamed functions.
11512 (amd64_core_fns): Renamed from x86_64_core_fns.
11513 (amd64_linux_sigtramp_start): Renamed from
11514 x86_64_linux_sigtramp_start.
11515 (amd64_linux_pc_in_sigtramp): Renamed from
11516 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11517 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11518 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11519 (amd64_linux_sigcontext_addr): Renamed from
11520 x86_64_linux_sigcontext_addr.
11521 (amd64_linux_sc_reg_offset): Renamed from
11522 x86_64_linux_sc_reg_offset.
11523 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11524 Adjust for renamed functions and variables.
11525 (_initialize_amd64_linux_tdep): Renamed from
11526 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11527 variables.
11528 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11529 Adjust for renamed functions.
11530
11531 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11532 from x86_64_linux_gregset64_reg_offset.
11533 (amd64_linux_gregset32_reg_offset): Rename from
11534 x86_64_linux_gregset64_reg_offset.
11535 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11536 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11537 (amd64_linux_dr_set_control): Renamed from
11538 x86_64_linux_dr_set_control. Adjust for renamed functions.
11539 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11540 Adjust for renamed functions.
11541 (amd64_linux_dr_reset_addr): Renamed from
11542 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11543 (amd64_linux_dr_get_status): Renamed from
11544 x86_64_linux_dr_get_status. Adjust for renamed functions.
11545 (_initialize_amd64_linux_nat): Renamed from
11546 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11547 functions.
11548 * config/i386/nm-x86-64linux.h: Update copyright year.
11549 Adjust for renamed functions.
11550
11551 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11552 amd64fbsd_sigtramp_start.
11553 (amd64fbsd_sigtramp_end_addr): Renamed from
11554 amd64fbsd_sigtramp_end.
11555 (amd64fbsd_init_abi): Adjust for renamed variables.
11556 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11557 variables.
11558 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11559 amd64fbsd_sigtramp_start.
11560 (amd64fbsd_sigtramp_end_addr): Renamed from
11561 amd64fbsd_sigtramp_end.
11562
11563 2004-02-22 Andrew Cagney <cagney@redhat.com>
11564
11565 * hppa-tdep.c (hppa32_return_value): New function.
11566 (hppa64_return_value): New function.
11567 (hppa_gdbarch_init): Set return_value; keep disabled.
11568
11569 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11570 struct-return and inferior function call methods.
11571
11572 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11573 "frame-base.h".
11574 (struct hppa_frame_cache): Define.
11575 (hppa_frame_cache, hppa_frame_this_id): New functions.
11576 (hppa_frame_prev_register): New function.
11577 (hppa_frame_unwind, hppa_frame_base): New variables.
11578 (hppa_frame_unwind_sniffer): New function.
11579 (hppa_frame_base_address, hppa_unwind_pc): New function.
11580 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11581 sniffer, and frame base sniffer; keep disabled.
11582 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11583 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11584
11585 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11586 to predicates for "seriously old code".
11587
11588 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11589 runtime if(0).
11590
11591 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11592 unsigned.
11593 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11594
11595 * config/pa/tm-hppa.h: Update copyright.
11596 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11597 (deprecated_init_frame_pc_default): Delete declaration.
11598 (hppa_frame_init_saved_regs): Delete declaration.
11599 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11600 * hppa-tdep.c: Include "arch-utils.h".
11601 (hppa_gdbarch_init): Set deprecated init_frame_pc
11602 and deprecated frame_init_saved_regs.
11603 (hppa_frame_init_saved_regs): Make static.
11604
11605 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11606
11607 Remove old 386BSD support.
11608 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11609 * configure.host: Remove i[34567]86-*-bsd*.
11610 * configure.tgt: Remove i[34567]86-*-bsd*.
11611 * i386b-nat.c: Removed.
11612 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11613 (i386b-nat.o): Remove dependencies.
11614
11615 * config/i386/i386bsd.mh: Removed.
11616 * config/i386/i386bsd.mt: Removed.
11617 * config/i386/nm-i386bsd.h: Removed.
11618 * config/i386/tm-i386bsd.h: Removed.
11619 * config/i386/xm-i386bsd.h: Removed.
11620
11621 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11622
11623 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11624 (amd64fbsd_init_abi): Set link map offsets.
11625 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11626 (amd64nbsd_init_abi): Set link map offsets.
11627 * amd64obsd-tdep.c: Include "solib-svr4.h".
11628 (amd64obsd_init_abi): Set link map offsets.
11629 * i386fbsd-tdep.c: Include "solib-svr4.h".
11630 (i386fbsd_init_abi): Set link map offsets.
11631 * i386nbsd-tdep.c: Include "solib-svr4.h".
11632 (i386nbsdelf_init_abi): Set link map offsets.
11633 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11634 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11635 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11636 solib-legacy.o and core-aout.o. Reformat.
11637 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11638 solib-svr4.o, solib-legacy.o. Reformat.
11639 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11640 * config/i386/nbsdelf.mh: Reformat.
11641 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11642 solib-svr4.o, solib-legacy.o and corelow.o.
11643 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11644 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11645 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11646 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11647 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11648 (TM_FILE): Set to tm-fbsd.h.
11649 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11650 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11651 solib-svr4.o.
11652 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11653 solib-svr4.o.
11654 (TM_FILE): Set to nm-nbsd.h.
11655 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11656 Simplify shared library support. Don't include "elf/common.h".
11657 (SVR4_SHARED_LIBS): Don't define.
11658 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11659 "solib.h".
11660 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11661 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11662 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11663 Don't include "i386/tm-i386.h". Include "solib.h".
11664 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11665 Don't include "i386/tm-i386.h".
11666 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11667 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11668 Include "i386/xm-i386.h".
11669 (HOST_LONG_DOUBLE_FORMAT): Remove.
11670
11671 Fix OpenBSD/i386 sigtramp recognition.
11672 * i386-tdep.h: Update copyright year.
11673 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11674 (i386bsd_sigtramp_end): New prototypes.
11675 (i386fbsd_sigtramp_start_addr): Renamed from
11676 i386fbsd_sigtramp_start.
11677 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11678 (i386obsd_sigtramp_start_addr): Renamed from
11679 i386obsd_sigtramp_start.
11680 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11681 * i386bsd-tdep.c: Update copyright year.
11682 (i386bsd_pc_in_sigtramp): Make public.
11683 * i386fbsd-nat.c: Update copyright year.
11684 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11685 * i386fbsd-tdep.c: Update copyright year.
11686 (i386fbsd_sigtramp_start_addr): Renamed from
11687 i386fbsd_sigtramp_start.
11688 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11689 (i386fbsdaout_init_abi): Adjust for renamed variables.
11690 * i386obsd-nat.c: Update copyright year.
11691 (_initialize_i386obsd_nat): Adjust for renamed variables.
11692 * i386obsd-tdep.c: Include "target.h".
11693 (i386obsd_page_size): New variable.
11694 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11695 (i386obsd_sigtramp_end): New functions.
11696 (i386obsd_sigtramp_start_addr): Renamed from
11697 i386obsd_sigtramp_start.
11698 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11699 (i386obsd_init_abi): Adjust for renamed variables. Set
11700 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11701 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11702
11703 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11704 trampoline change in OpenBSD kernel.
11705
11706 * amd64-nat.c: Update copyright year.
11707 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11708 architecture from REGCACHE.
11709
11710 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11711 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11712
11713 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11714
11715 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11716 i[34567]86-*-openbsd3.[0-3].
11717 * config/i386/obsdaout.mh: New file.
11718
11719 * config/i386/obsd.mh (MH_FLAGS): Remove.
11720
11721 Fix PR build/1549.
11722 * i386obsd-tdep.c: Update copyright years. Include
11723 "solib-svr4.h".
11724 (i386obsd_init_abi): Don't set regset_from_core_section here.
11725 (i386obsd_aout_init_abi): New function. Set
11726 regset_from_core_section here.
11727 (i386obsd_elf_init_abi): New function.
11728 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11729 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11730 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11731 (TM_FILE): Set to tm-nbsd.h.
11732
11733 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11734 solib-sunos.o.
11735
11736 * solib-svr4.h: Update copyright year.
11737 (svr4_ilp32_fetch_link_map_offsets)
11738 (svr4_lp64_fetch_link_map_offsets): New prototype.
11739 * solib-svr4.c: Update copyright year.
11740 (svr4_ilp32_fetch_link_map_offsets)
11741 (svr4_lp64_fetch_link_map_offsets): New function.
11742
11743 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11744
11745 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11746 to the partial symbol table.
11747
11748 2004-02-20 J. brobecker <brobecker@gnat.com>
11749
11750 * PROBLEMS: Add description of problem documented under gdb/1560.
11751
11752 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11753
11754 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11755 comments.
11756 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11757 functions.
11758 (amd64obsd_init_abi): Reorder initializations. Use
11759 amd64obsd_r_reg_offset to initialize the general-purpose register
11760 set details. Set regset_from_core_section.
11761 (_initialize_amd64obsd_tdep): Rename from
11762 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11763 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11764 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11765
11766 * NEWS (New native configurations): Mention OpenBSD/alpha.
11767 * configure.tgt: Add alpha*-*-openbsd*.
11768 * configure.host: Add alpha*-*-openbsd*.
11769 * alphanbsd-tdep.c: Update copyright year.
11770 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11771
11772 2004-02-20 Andrew Cagney <cagney@redhat.com>
11773
11774 Fix PR tdep/1372.
11775 * configure.tgt: Delete target "none-*-*".
11776 * configure.host: Delete host "none-*-*".
11777 * config/none/none.mh: Delete file.
11778 * config/none/none.mt: Delete file.
11779 * config/none/xm-none.h: Delete file.
11780 * config/none/tm-none.h: Delete file.
11781 * config/none/nm-none.h: Delete file.
11782
11783 2004-02-19 Fred Fish <fnf@redhat.com>
11784
11785 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11786 cache->uses_fp prior to setting it.
11787
11788 2004-02-19 Fred Fish <fnf@redhat.com>
11789
11790 Fix for PR breakpoint/1558.
11791 * sh-tdep.c (IS_JSR): New macro.
11792 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11793
11794 2004-02-19 Jim Blandy <jimb@redhat.com>
11795
11796 * findvar.c (value_from_register): Doc fix.
11797
11798 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11799
11800 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11801 type being greater than sizeof of host's LONGEST. Always use
11802 unpack_long() unless format 'f' chosen.
11803
11804 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11805
11806 Committed by Elena Zannoni <ezannoni@redhat.com>
11807
11808 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11809 contains a symbol wich is the best, non-exact match for the given
11810 pc. Update comments.
11811
11812 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11813
11814 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11815 macro, which was part of the now removed Mach 3 port.
11816 * utils.c (request_quit): Ditto.
11817
11818 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11819
11820 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11821 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11822
11823 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11824
11825 Committed by Mark Kettenis <kettenis@gnu.org>.
11826
11827 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11828 Define.
11829
11830 2004-02-18 Andrew Cagney <cagney@redhat.com>
11831
11832 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11833 CONFIG_INSTALL and CONFIG_UNINSTALL.
11834 * configure: Re-generate.
11835 * interps.h (INTERP_TUI): Define.
11836 * Makefile.in: Update dependencies.
11837 (TUI): New macro.
11838 (tui-main.o): Specify dependencies.
11839 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11840 * tui/tui-main.c: New file.
11841
11842 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11843
11844 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11845 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11846 dependencies.
11847 * configure.host: Add x86_64-*-openbsd*.
11848 * configure.tgt: Add x86_64-*-openbsd*.
11849 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11850
11851 * tui/tui.c: Don't include <malloc.h>.
11852
11853 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11854 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11855 amd64nbsd-tdep.c.
11856
11857 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11858 static. Remove extraneous whitespace.
11859 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11860 static.
11861
11862 2004-02-17 Jim Blandy <jimb@redhat.com>
11863
11864 * findvar.c (value_from_register): Doc fix.
11865
11866 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11867
11868 Committed by Jim Blandy <jimb@redhat.com>.
11869
11870 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11871 CORE_ADDR as type for selectors. Correct types for GNU run time
11872 message lookup function to use double indirection.
11873 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11874 * objc-lang.h (lookup_child_selector): Adapt prototype.
11875
11876 * s390-nat.c (SUBOFF): New macro.
11877 (supply_gregset, fill_gregset): Use it to handle debugging
11878 of 32-bit exectuables running under a 64-bit kernel.
11879 * s390-tdep.c: Include "solib-svr4.h".
11880 (s390_svr4_fetch_link_map_offset): New function.
11881 (s390x_svr_fetch_link_map_offset): Likewise.
11882 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11883 * Makefile.in (s390-tdep.o): Update dependencies.
11884
11885 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11886 "frame-unwind.h".
11887 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11888 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11889 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11890 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11891 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11892 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11893 S390_SIGNAL_FRAMESIZE,
11894 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11895 (struct frame_extra_info): Remove.
11896 (s390_memset_extra_info): Remove.
11897 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11898 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11899 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11900 (is_rse): Renamed to ...
11901 (is_rsy): ... this. Support long displacements.
11902 (is_rxe): Renamed to ...
11903 (is_rxy): ... this. Support long displacements.
11904 (compute_x_addr): Support long displacements.
11905 (struct s390_prologue_data): New data type.
11906 (s390_on_stack): Change API to use struct s390_prologue_data.
11907 (s390_store): Reimplement.
11908 (s390_load): New function.
11909 (s390_get_signal_frame_info): Remove.
11910 (s390_get_frame_info): Remove, replace by ...
11911 (s390_analyze_prolog): ... this new function.
11912 (s390_check_function_end): Remove.
11913 (s390_function_start): Remove.
11914 (s390_frameless_function_invokation): Remove.
11915 (s390_is_sigreturn): Remove.
11916 (s390_init_frame_pc_first): Remove.
11917 (s390_init_frame_extra_info): Remove.
11918 (s390_frame_init_saved_regs): Remove.
11919 (s390_frame_saved_pc_nofix): Remove.
11920 (s390_frame_saved_pc): Remove.
11921 (s390_frame_chain): Remove.
11922 (s390_fp_regnum, s390_read_fp): Remove.
11923 (s390_pop_frame_regular, s390_pop_frame): Remove.
11924 (s390_saved_pc_after_call): Remove.
11925 (s390_skip_prologue): Reimplement.
11926 (s390_in_function_epilogue_p): Support long displacements.
11927 (struct s390_unwind_cache): New data structure.
11928 (s390_frame_unwind_cache): New function.
11929 (s390_prologue_frame_unwind_cache): Likewise.
11930 (s390_backchain_frame_unwind_cache): Likewise.
11931 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11932 (s390_frame_unwind): Define.
11933 (s390_frame_sniffer): New function.
11934 (struct s390_pltstub_unwind_cache): New data structure.
11935 (s390_pltstub_frame_unwind_cache): New function.
11936 (s390_pltstub_frame_this_id): Likewise.
11937 (s390_pltstub_frame_prev_register): Likewise.
11938 (s390_pltstub_frame_unwind): Define.
11939 (s390_pltstub_frame_sniffer): New function.
11940 (struct s390_sigtramp_unwind_cache): New data structure.
11941 (s390_sigtramp_frame_unwind_cache): New function.
11942 (s390_sigtramp_frame_this_id): Likewise.
11943 (s390_sigtramp_frame_prev_register): Likewise.
11944 (s390_sigtramp_frame_unwind): Define.
11945 (s390_sigtramp_frame_sniffer): New function.
11946 (s390_frame_base_address, s390_local_base_address): New functions.
11947 (s390_frame_base): Define.
11948 (s390_unwind_pc, s390_unwind_sp): New function.
11949 (s390_push_dummy_call): Use new frame base location.
11950 (s390_unwind_dummy_id): Likewise.
11951 (s390_gdbarch_init): Remove calls to:
11952 set_gdbarch_frameless_function_invocation,
11953 set_gdbarch_deprecated_init_frame_pc,
11954 set_gdbarch_deprecated_frame_chain,
11955 set_gdbarch_deprecated_frame_init_saved_regs,
11956 set_gdbarch_deprecated_pop_frame,
11957 set_gdbarch_deprecated_init_extra_frame_info,
11958 set_gdbarch_deprecated_init_frame_pc_first,
11959 set_gdbarch_deprecated_target_read_fp,
11960 set_gdbarch_deprecated_frame_saved_pc,
11961 set_gdbarch_deprecated_saved_pc_after_call,
11962 set_gdbarch_deprecated_fp_regnum.
11963 Add calls to:
11964 set_gdbarch_in_solib_call_trampoline,
11965 frame_unwind_append_sniffer,
11966 frame_base_set_default,
11967 set_gdbarch_unwind_pc,
11968 set_gdbarch_unwind_sp.
11969 * Makefile.in (s390-tdep.o): Update dependencies.
11970
11971 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11972 (S390_STACK_FRAME_OVERHEAD): Remove.
11973 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11974 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11975 (s390_promote_integer_argument): Remove.
11976 (s390_cannot_extract_struct_value_address): Remove.
11977 (s390_use_struct_convention, s390_store_struct_return): Remove.
11978 (s390_extract_return_value, s390_store_return_value): Remove.
11979 (s390_return_value_convention, s390_return_value): New functions.
11980 (is_float_singleton): Handle typedefs.
11981 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11982 Remove, replace by ...
11983 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11984 s390_function_arg_integer): ... these new functions.
11985 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11986 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11987 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11988 Fill in tdep->abi.
11989 Remove calls to:
11990 set_gdbarch_deprecated_store_struct_return,
11991 set_gdbarch_deprecated_extract_return_value,
11992 set_gdbarch_deprecated_store_return_value,
11993 set_gdbarch_use_struct_convention,
11994 set_gdbarch_extract_struct_value_address,
11995 set_gdbarch_deprecated_pc_in_call_dummy,
11996 set_gdbarch_deprecated_push_arguments,
11997 set_gdbarch_deprecated_save_dummy_frame_tos,
11998 set_gdbarch_deprecated_push_return_address,
11999 set_gdbarch_deprecated_sizeof_call_dummy_words,
12000 set_gdbarch_deprecated_call_dummy_words,
12001 set_gdbarch_deprecated_dummy_write_sp.
12002 Add calls to:
12003 set_gdbarch_push_dummy_call,
12004 set_gdbarch_unwind_dummy_id,
12005 set_gdbarch_return_value.
12006
12007 * config/s390/nm-linux.h: Update comments.
12008 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12009 (STOPPED_BY_WATCHPOINT): Redefine.
12010 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12011 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12012 (s390_stopped_by_watchpoint): Likewise.
12013 (watch_area_cnt): Remove.
12014 * s390-nat.c: Update comments.
12015 (watch_area): Remove typedef.
12016 Global replace watch_area by struct watch_area.
12017 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12018 (s390_stopped_by_watchpoint): Remove pid argument,
12019 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12020 (s390_fix_watch_points): Remove pid argument,
12021 use s390_inferior_tid. Recompute area spanned by watchpoints.
12022 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12023 argument. Reimplement.
12024
12025 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12026 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12027 (FETCH_INFERIOR_REGISTERS): Define.
12028 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12029 core-regset.o.
12030 * config/s390/s390x.mt: Remove.
12031 * config/s390/tm-s390.h: Remove.
12032 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12033 (TARGET_ELF64): Remove.
12034 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12035 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12036 s390*-*-* case; always set gdb_target to s390.
12037 * regformats/reg-s390.dat: Remove control registers.
12038 * regformats/reg-s390x.dat: Likewise.
12039 * s390-tdep.h: New file.
12040 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12041 Include "inferior.h" and "s390-tdep.h".
12042 Remove private definition of offsetof.
12043 (s390_register_u_addr): Remove.
12044 (regmap_gregset, regmap_fpregset): Define.
12045 (supply_gregset, fill_gregset): Reimplement.
12046 (supply_fpregset, fill_fpregset): Likewise.
12047 (s390_inferior_tid): New function.
12048 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12049 (fetch_inferior_registers, store_inferior_registers): Likewise.
12050 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12051 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12052 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12053 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12054 (struct gdbarch_tdep): Define.
12055 (struct s390_register_info): Define.
12056 (s390_register_info): New variable.
12057 (s390_register_name): Reimplement.
12058 (s390_register_type): New function.
12059 (s390_register_raw_size, s390x_register_raw_size): Remove.
12060 (s390_cannot_fetch_register): Remove.
12061 (s390_register_byte): Remove.
12062 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12063 (s390_dwarf_regmap): New variable.
12064 (s390_dwarf_reg_to_regnum): New function.
12065 (s390_stab_reg_to_regnum): Remove.
12066 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12067 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12068 (s390_convert_register_p): Likewise.
12069 (s390_register_to_value, s390_value_to_register): Likewise.
12070 (s390_register_reggroup_p): Likewise.
12071 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12072 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12073 (s390_supply_regset, s390_regset_from_core_section): New functions.
12074 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12075 (S390_FPR_SIZE): Likewise.
12076 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12077 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12078 (S390_NUM_GPRS): Move here from tm-s390.h.
12079 (S390_NUM_FPRS): Likewise.
12080 (s390_in_function_epilogue_p): New function.
12081 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12082 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12083 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12084 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12085 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12086 Remove calls to:
12087 set_gdbarch_deprecated_max_register_raw_size,
12088 set_gdbarch_deprecated_max_register_virtual_size,
12089 set_gdbarch_deprecated_register_byte,
12090 set_gdbarch_cannot_fetch_register,
12091 set_gdbarch_cannot_store_register,
12092 set_gdbarch_deprecated_register_size,
12093 set_gdbarch_deprecated_register_raw_size,
12094 set_gdbarch_deprecated_register_virtual_size,
12095 set_gdbarch_deprecated_register_virtual_type,
12096 set_gdbarch_deprecated_register_bytes.
12097 Add calls to:
12098 set_gdbarch_num_pseudo_regs,
12099 set_gdbarch_register_type,
12100 set_gdbarch_convert_register_p,
12101 set_gdbarch_register_to_value,
12102 set_gdbarch_value_to_register,
12103 set_gdbarch_register_reggroup_p,
12104 set_gdbarch_regset_from_core_section,
12105 set_gdbarch_pseudo_register_read,
12106 set_gdbarch_pseudo_register_write,
12107 set_gdbarch_in_function_epilogue_p.
12108 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12109 (s390_tdep_h): New variable.
12110
12111 2004-02-17 Jim Blandy <jimb@redhat.com>
12112
12113 * findvar.c (value_from_register): If the type has no length, just
12114 return an acceptable value --- don't report an internal error.
12115
12116 * stabsread.c (read_type): If we find any type numbers that are
12117 forward references, complain if the references aren't resolved by
12118 the time we're finished reading.
12119 (cleanup_undefined_types): Make error message more appropriate for
12120 a complaint.
12121
12122 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12123
12124 * Makefile.in (defs_h): Remove dependency on progress_h.
12125 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12126 progress.h.
12127 * main.c (captured_main): Delete use of START_PROGRESS and
12128 END_PROGRESS.
12129
12130 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12131
12132 * objfiles.c (terminate_minimal_symbol_table): Add back
12133 initialization of MSYMBOL_TYPE.
12134
12135 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12136
12137 Committed by Andrew Cagney.
12138 * Makefile.in (ia64_tdep_h): New macro.
12139 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12140 (ia64-tdep.o): Likewise.
12141 * ia64-tdep.h: New file.
12142 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12143 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12144 (ia64_aix_sigcontext_register_address): Likewise.
12145 (ia64_linux_getunwind_table): Delete declaration.
12146 * ia64-linux-tdep.c: Likewise.
12147
12148 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12149
12150 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12151 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12152 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12153
12154 2004-02-17 Andrew Cagney <cagney@redhat.com>
12155
12156 * symtab.c (skip_prologue_using_sal): New function.
12157 * symtab.h (skip_prologue_using_sal): Declare.
12158 * frv-tdep.c: Include "symtab.h".
12159 (skip_prologue_using_sal): Delete function.
12160 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12161 * rs6000-tdep.c (refine_prologue_limit): Mention
12162 skip_prologue_using_sal.
12163 * ia64-tdep.c (refine_prologue_limit): Ditto.
12164 * Makefile.in: Update dependencies.
12165
12166 2004-02-16 Andrew Cagney <cagney@redhat.com>
12167
12168 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12169 START_INFERIOR_TRAPS_EXPECTED.
12170 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12171 START_INFERIOR_TRAPS_EXPECTED.
12172 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12173 Delete macro.
12174 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12175 macro, moved to "nm-osf.h". Update copyright.
12176 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12177 update copyright.
12178
12179 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12180 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12181 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12182 frameless_look_for_prologue.
12183 * frame.h (legacy_frameless_look_for_prologue): Rename
12184 frameless_look_for_prologue.
12185 * gdbarch.h, gdbarch.c: Re-generate.
12186 * sh64-tdep.c (sh64_gdbarch_init): Update.
12187 * sh-tdep.c (sh_gdbarch_init): Update.
12188 * s390-tdep.c (s390_gdbarch_init): Update.
12189 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12190 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12191 * m68k-tdep.c (m68k_gdbarch_init): Update.
12192 (delta68_frame_args_address): Update.
12193 * m32r-tdep.c (m32r_gdbarch_init): Update.
12194 * hppa-tdep.c (hppa_gdbarch_init): Update.
12195 * h8300-tdep.c (h8300_gdbarch_init): Update.
12196 * frv-tdep.c (frv_gdbarch_init): Update.
12197 (frv_frameless_function_invocation): Update.
12198 * cris-tdep.c (cris_gdbarch_init): Update.
12199 (cris_frameless_function_invocation): Update.
12200 * avr-tdep.c (avr_gdbarch_init): Update.
12201 * arm-tdep.c (arm_gdbarch_init): Update.
12202 * stack.c (frame_info): Update, call predicate.
12203 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12204 * frame.c (legacy_get_prev_frame): Update, call predicate..
12205 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12206 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12207 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12208 invocation.
12209 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12210 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12211 * vax-tdep.c (vax_gdbarch_init): Ditto.
12212
12213 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12214 function.
12215
12216 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12217
12218 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12219 initializations.
12220
12221 2004-02-16 Andrew Cagney <cagney@redhat.com>
12222
12223 * tui/tui-windata.c: Include "gdb_string.h".
12224 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12225 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12226 * Makefile.in: Update dependencies.
12227
12228 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12229
12230 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12231 * infrun.c: Include "gdb_assert.h".
12232 (singlestep_ptid, saved_singlestep_ptid)
12233 (stepping_past_singlestep_breakpoint): New variables.
12234 (resume): Set singlestep_ptid. Check for singlestep thread
12235 hop.
12236 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12237 (handle_inferior_event): Handle singlestep thread hop.
12238
12239 2004-02-16 Andrew Cagney <cagney@redhat.com>
12240
12241 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12242 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12243 (dwarf2_frame_init_reg): Ditto.
12244
12245 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12246 suggested by Joshua Neuheisel
12247
12248 * configure.in: Always check for curses, including pdcurses.
12249 Warn, instead of error, when no curses are found. Enable TUI when
12250 curses is available.
12251 * configure: Re-generate.
12252
12253 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12254
12255 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12256 sh_sh4_register_convert_to_virtual.
12257 (sh_register_convert_to_raw): Rename from
12258 sh_sh4_register_convert_to_raw.
12259 (sh_pseudo_register_read): Accomodate above name change.
12260 (sh_pseudo_register_write): Ditto.
12261
12262 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12263
12264 * sh-tdep.c (sh_generic_register_name): Remove.
12265 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12266
12267 2004-02-15 Andrew Cagney <cagney@redhat.com>
12268
12269 * configure.in (build_warnings): Add -Wunused-function.
12270 * configure: Re-generate.
12271
12272 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12273 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12274
12275 * procfs.c (procfs_init_inferior): Assume that
12276 START_INFERIOR_TRAPS_EXPECTED is defined.
12277 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12278 * config/ns32k/tm-nbsd.h: Delete file,
12279 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12280
12281 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12282 * config/vax/tm-vax.h: Delete file.
12283
12284 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12285 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12286 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12287 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12288 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12289 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12290 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12291
12292 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12293
12294 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12295 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12296 (struct dwarf2_frame_ops): New.
12297 (dwarf2_frame_default_init_reg): New function, based on
12298 dwarf2_frame_init_reg.
12299 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12300 (dwarf2_frame_init_reg): Call architecture-specific function.
12301 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12302 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12303 instead of dwarf2_frame_data.
12304 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12305 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12306
12307 2004-02-15 Andrew Cagney <cagney@redhat.com>
12308
12309 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12310 register_gdbarch_swap.
12311 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12312 * f-lang.c (_initialize_f_language): Update, use
12313 DEPRECATED_REGISTER_GDBARCH_SWAP.
12314 * remote.c (_initialize_remote): Ditto.
12315 * regcache.c (_initialize_regcache): Ditto.
12316 * parse.c (_initialize_parse): Ditto.
12317 * infrun.c (_initialize_infrun): Ditto.
12318 * mi/mi-main.c (_initialize_mi_main): Ditto.
12319 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12320
12321 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12322 poking .cacheable directly.
12323 * symfile.c (symfile_bfd_open): Ditto.
12324
12325 * Makefile.in: Update all dependencies.
12326
12327 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12328 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12329 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12330 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12331 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12332
12333 2004-02-14 Andrew Cagney <cagney@redhat.com>
12334
12335 * arch-utils.c (legacy_convert_register_p): Check
12336 DEPRECATED_REGISTER_CONVERTIBLE_P.
12337 * findvar.c (value_of_register): Ditto.
12338
12339 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12340 * gdbarch.h, gdbarch.c: Re-generate.
12341 * arch-utils.c (deprecated_register_convertible_not): Delete.
12342 * arch-utils.h (deprecated_register_convertible_not): Delete.
12343 * mi/mi-main.c (get_register): Update. Update copyright.
12344 * infcmd.c (default_print_registers_info): Update.
12345
12346 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12347 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12348 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12349 * gdbarch.h, gdbarch.c: Re-generate.
12350 * frame.c (deprecated_get_next_frame_hack): Delete function.
12351 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12352 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12353 Update.
12354 * infcall.c (call_function_by_hand): Update.
12355
12356 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12357
12358 * symfile.c (init_entry_point_info, entry_point_address): Move
12359 from here...
12360 * objfiles.c (init_entry_point_info, entry_point_address):..to
12361 here.
12362 * symfile.h (init_entry_point_info, entry_point_address): Remove
12363 prototypes.
12364 * objfiles.h (init_entry_point_info, entry_point_address):Add
12365 prototypes.
12366 * cris-tdep.c: Remove include of symfile.h. Add include of
12367 objfiles.h.
12368 * infcall.c: Ditto.
12369 * mcore-tdep.c: Ditto.
12370 * mn10300-tdep.c: Ditto.
12371 * sh64-tdep.c: Ditto.
12372 * v850-tdep.c: Ditto.
12373 * arm-tdep.c: Remove include of symfile.h.
12374 * blockframe.c: Ditto.
12375 * coffread.c: Ditto.
12376 * dbxread.c: Ditto.
12377 * dwarf2read.c: Ditto.
12378 * dwarfread.c: Ditto.
12379 * frv-tdep.c: Ditto.
12380 * ia64-tdep.c: Ditto.
12381 * mdebugread.c: Ditto.
12382 * mipsread.c: Ditto.
12383 * rs6000-tdep.c: Ditto.
12384 * s390-tdep.c: Ditto.
12385 * sh-tdep.c: Ditto.
12386 * xstormy16-tdep.c: Ditto.
12387 * gdbarch.sh: Remove include of symfile.h.
12388 * gdbarch.c: Regenerate.
12389 * solib-irix.c (enable_break): Use entry_point_address().
12390 Add comment about include file.
12391 * xcoffread.c: Add comment about include file.
12392 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12393 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12394 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12395 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12396 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12397
12398 2004-02-13 Andrew Cagney <cagney@redhat.com>
12399
12400 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12401 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12402 copyright.
12403 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12404
12405 2004-02-12 Fred Fish <fnf@redhat.com>
12406
12407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12408 set_gdbarch_store_return_value.
12409
12410 2004-02-12 Andrew Cagney <cagney@redhat.com>
12411
12412 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12413 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12414 (interrupt_query): Ditto.
12415 (ofunc): Delete unused variable.
12416 * cris-tdep.c (cris_abi): Delete unused function.
12417 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12418 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12419 (cris_get_asr_quick_shift_steps): Ditto.
12420 (cris_skip_prologue_frameless_p): Ditto.
12421 * arm-tdep.c (arm_push_return_address): Delete unused function.
12422 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12423 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12424 * s390-tdep.c (s390_function_start): Delete unused function.
12425
12426 2004-02-12 Andrew Cagney <cagney@redhat.com>
12427
12428 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12429 gdbarch.h, gdbarch.c: Re-generate.
12430 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12431 to generic_prologue_frameless_p.
12432 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12433 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12434
12435 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12436
12437 * mips-linux-tdep.c: Include "frame.h".
12438 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12439 (mips_linux_skip_resolver): New functions.
12440 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12441 and set_gdbarch_in_solib_call_trampoline.
12442 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12443 to after set_gdbarch_in_solib_return_trampoline. Only set the
12444 solib hooks to mips16 functions if the OS ABI is unknown.
12445 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12446 including "config/tm-linux.h".
12447 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12448 * Makefile.in (mips-linux-tdep.o): Update.
12449
12450 2004-02-11 David Carlton <carlton@kealia.com>
12451
12452 * linespec.c (decode_compound): Only look for a class symbol when
12453 considering all but the rightmost component.
12454
12455 2004-02-11 Andrew Cagney <cagney@redhat.com>
12456
12457 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12458 abi code are are separatly grouped.
12459
12460 2004-02-11 Andrew Cagney <cagney@redhat.com>
12461
12462 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12463 * gdbarch.h, gdbarch.c: Re-generate.
12464 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12465 * v850-tdep.c (v850_gdbarch_init): Update.
12466 * sh64-tdep.c (sh64_gdbarch_init): Update.
12467 * sh-tdep.c (sh_gdbarch_init): Update.
12468 * s390-tdep.c (s390_gdbarch_init): Update.
12469 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12470 * mips-tdep.c (mips_gdbarch_init): Update.
12471 * mcore-tdep.c (mcore_gdbarch_init): Update.
12472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12473 * m32r-tdep.c (m32r_gdbarch_init): Update.
12474 * ia64-tdep.c (ia64_gdbarch_init): Update.
12475 * hppa-tdep.c (hppa_gdbarch_init): Update.
12476 * h8300-tdep.c (h8300_gdbarch_init): Update.
12477 * frv-tdep.c (frv_gdbarch_init): Update.
12478 * d10v-tdep.c (d10v_gdbarch_init): Update.
12479 * cris-tdep.c (cris_gdbarch_init): Update.
12480 * avr-tdep.c (avr_gdbarch_init): Update.
12481 * arm-tdep.c (arm_gdbarch_init): Update.
12482 * alpha-tdep.c (alpha_gdbarch_init): Update.
12483
12484 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12485
12486 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12487 comma.
12488 (sh_sh4al_dsp_register_name): Ditto.
12489
12490 2004-02-10 Andrew Cagney <cagney@redhat.com>
12491
12492 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12493 (mips_init_frame_pc_first): Delete function.
12494 (mips_frame_saved_pc): Delete function.
12495 (mips_frame_chain): Delete function.
12496 (mips_init_extra_frame_info): Delete function.
12497 (mips_xfer_register): Delete unused variable "reg".
12498 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12499 (mips_n32n64_return_value): Delete unused variable "reg".
12500 (mips_n32n64_return_value): Delete unused variable "pos".
12501 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12502 (mips_o32_return_value): Delete unused variable "pos".
12503 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12504 (mips_print_fp_register): Delete unused variable "namelen"
12505 (mips_print_fp_register): Delete unused variable "flt2"
12506 (get_frame_pointer): Delete function.
12507 (cached_proc_desc): Delete static variable.
12508 (mips_pop_frame): Delete function.
12509 (mips_find_saved_regs): Delete function.
12510 (mips_get_saved_register): Delete function.
12511 (mips_saved_pc_after_call): Delete function.
12512 (SIGFRAME_BASE): Delete macro.
12513 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12514 (SIGFRAME_PC_OFF): Delete macro.
12515 (SIGFRAME_REGSAVE_OFF): Delete macro.
12516 (mips_dump_tdep): Do not print deleted macro definitions.
12517
12518 2004-02-10 Andrew Cagney <cagney@redhat.com>
12519
12520 * Makefile.in (SFILES): Remove explictly listed tui files.
12521 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12522
12523 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12524
12525 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12526 to use paddr functions to format ia64 addresses and long values.
12527 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12528 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12529 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12530 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12531 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12532
12533 2004-02-10 Andrew Cagney <cagney@redhat.com>
12534
12535 * defs.h: Do not include "tui.h".
12536 * gdb_curses.h: New file.
12537 * tui/tui-hooks.h: New file.
12538 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12539 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12540 (tui_initialize_io): Delete declaration.
12541 (tui_initialize_readline: Delete redundant declaration.
12542 (struct tui_point): Delete definition.
12543 * tui/tui-data.h (struct tui_point): Define.
12544 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12545 * utils.c: Include "tui/tui.h".
12546 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12547 * printcmd.c [TUI]: Include "tui/tui.h".
12548 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12549 * tui/tui-command.c: Include "gdb_curses.h".
12550 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12551 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12552 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12553 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12554 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12555 * Makefile.in: Update all dependencies.
12556 (tui_hooks_h, gdb_curses_h): Define.
12557 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12558
12559 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12560
12561 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12562 auxf2. Add comments about some other rarely used fields.
12563
12564 2004-02-10 Andrew Cagney <cagney@redhat.com>
12565
12566 * Makefile.in (init.c): Fix script removing duplicates. Problem
12567 reported by Peter Schauer.
12568
12569 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12570
12571 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12572 obstack_specify_allocation.
12573 * objfiles.c (allocate_objfile): Ditto.
12574 * solib-sunos.c (solib_add_common_symbols)
12575 (allocate_rt_common_objfile): Ditto.
12576 * symfile.c (reread_symbols): Ditto.
12577 * gdb_obstack.h: Add comment.
12578
12579 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12580
12581 * linespec.c (decode_line_1, locate_first_half)
12582 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12583 commented out code.
12584
12585 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12586
12587 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12588 obstack_free.
12589
12590 2004-02-09 Andrew Cagney <cagney@redhat.com>
12591
12592 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12593 fails, try find_pc_section. Fix PR c++/1267.
12594 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12595 instead of find_pc_mapped_section.
12596 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12597 not default to the section containing PC. Fix PR symtab/1519.
12598
12599 2004-02-09 Andrew Cagney <cagney@redhat.com>
12600
12601 * Makefile.in (mips-tdep.o): Update dependencies.
12602 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12603 "trad-frame.h".
12604 (mips_unwind_pc): Return the pseudo PC register.
12605 (mips_unwind_dummy_id): New function.
12606 (mips16_fetch_instruction): New function.
12607 (mips32_fetch_instruction): New function.
12608 (struct mips_frame_cache): Define.
12609 (mips_mdebug_frame_cache): New function.
12610 (mips_mdebug_frame_this_id): New function.
12611 (mips_mdebug_frame_prev_register): New function.
12612 (mips_mdebug_frame_unwind): Define.
12613 (mips_mdebug_frame_sniffer): New function.
12614 (mips_mdebug_frame_base_address): New function.
12615 (mips_mdebug_frame_base): Define.
12616 (mips_mdebug_frame_base_sniffer): New function.
12617 (mips_gdbarch_init): Append unwind and base sniffers. Set
12618 unwind_dummy_id.
12619
12620 2004-02-08 Andrew Cagney <cagney@redhat.com>
12621
12622 * frame.c: Print both the register number and name.
12623
12624 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12625 and a sed into a single sed. Make .c and .o patterns more robust.
12626 (OBS): Delete.
12627 (INIT_FILES): Replace OBS with COMMON_OBS.
12628 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12629
12630 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12631
12632 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12633 the PT_WCOOKIE request.
12634
12635 2004-02-08 Andrew Cagney <cagney@redhat.com>
12636
12637 * mips-tdep.c (mips_unwind_pc): New function.
12638 (mips_gdbarch_init): Set mips_unwind_pc.
12639
12640 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12641 (get_frame_id): Allow the UNKNOWN_FRAME.
12642 (frame_register_unwind, get_frame_type): Ditto.
12643
12644 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12645 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12646 unwind_dummy_id indicates a legacy frame.
12647
12648 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12649 * configure: Re-generate.
12650
12651 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12652 methods.
12653
12654 2004-02-08 Andrew Cagney <cagney@redhat.com>
12655
12656 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12657 makefile macro.
12658 * configure: Re-generate.
12659 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12660 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12661 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12662 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12663 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12664 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12665 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12666 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12667 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12668 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12669
12670 2004-02-07 Andrew Cagney <cagney@redhat.com>
12671
12672 * Makefile.in: Update all dependencies.
12673
12674 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12675 * configure: Re-generate.
12676 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12677 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12678 (COMMON_OBS): Add "main.o" and "annotate.o".
12679 (ANNOTATE_OBS): Delete.
12680 (OBS): Remove ANNOTATE_OBS.
12681 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12682 CONFIG_INITS.
12683 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12684 against CONFIG_OBS and "main.o".
12685 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12686 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12687
12688 * tui/tui-command.c: Include "gdb_string.h", delete register
12689 attribute, use ISO-C function signatures.
12690 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12691 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12692 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12693 * tui/tui.c: Ditto.
12694
12695 * tui/tui-command.c: Change variable and function names to lower
12696 case.
12697 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12698 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12699 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12700 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12701 * tui/tui-winsource.c, tui/tui.c: Ditto.
12702
12703 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12704
12705 * buildsym.c (free_pending_blocks, finish_block)
12706 (record_pending_block, make_blockvector, end_symtab): Replace
12707 symbol_obstack with objfile_obstack.
12708 * coffread.c (process_coff_symbol, coff_read_struct_type)
12709 (coff_read_enum_type): Ditto.
12710 * cp-namespace.c (initialize_namespace_symtab)
12711 (check_one_possible_namespace_symbol): Ditto.
12712 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12713 (dwarf2_symbol_mark_computed): Ditto.
12714 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12715 * elfread.c (elf_symtab_read): Ditto.
12716 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12717 (hpread_read_enum_type, hpread_read_function_type)
12718 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12719 Ditto.
12720 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12721 (java_link_class_type): Ditto.
12722 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12723 (new_symbol): Ditto.
12724 * minsyms.c (install_minimal_symbols): Ditto.
12725 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12726 (terminate_minimal_symbol_table): Replace symbol_obstack with
12727 objfile_obstack.
12728 (free_objfile): Remove freeing of symbol_obstack.
12729 * objfiles.h: Remove symbol_obstack field.
12730 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12731 objfile_obstack.
12732 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12733 symbol_obstack.
12734 (solib_add_common_symbols): Replace symbol_obstack with
12735 objfile_obstack.
12736 * somsolib.c (som_solib_add): Ditto.
12737 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12738 (common_block_start, common_block_end): Ditto.
12739 * symfile.c (reread_symbols): Remove freeing and init of
12740 symbol_obstack.
12741 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12742 * symfile.h: Update comment.
12743 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12744 stats printing.
12745 * symtab.c (symbol_set_names): Replace symbol_obstack with
12746 objfile_obstack.
12747 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12748 Update comments.
12749 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12750 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12751 objfile_obstack.
12752
12753 2004-02-07 Andrew Cagney <cagney@redhat.com>
12754
12755 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12756 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12757 fields and variables.
12758 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12759 (m_beInvisible): Delete macro.
12760 * tui/tui-data.h: Fix case case fields and variables.
12761 (m_genWinPtrIsNull): Delete macro.
12762 (tui_win_list): Rename winList.
12763 (TUI_SRC_WIN): Rename srcWin.
12764 (TUI_DISASM_WIN): Rename disassemWin.
12765 (TUI_DATA_WIN): Rename dataWin.
12766 (TUI_CMD_WIN): Rename cmdWin.
12767 (m_genWinPtrNotNull): Delete macro.
12768 (m_winPtrIsNull): Delete macro.
12769 (m_winPtrNotNull): Delete macro.
12770 (tui_win_is_source_type): Replace m_winIsSourceType
12771 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12772 (tui_win_has_locator): Replace m_hasLocator.
12773 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12774 m_setWinHighlightOff.
12775 * tui/tui-data.c: Update references.
12776 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12777 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12778 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12779 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12780 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12781 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12782 * tui/tui-winsource.c, tui/tui.c: Ditto.
12783
12784 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12785
12786 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12787 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12788 StackGhost.
12789
12790 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12791 variable `i6' to `i7'.
12792 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12793
12794 2004-02-07 Andrew Cagney <cagney@redhat.com>
12795
12796 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12797 (TuiPoint, TuiPointPtr): Ditto.
12798 (TuiStatus, TuiStatusPtr): Ditto.
12799 (TuiWinType, TuiWinTypePtr): Ditto.
12800 (struct tui_point): Rename _TuiPoint.
12801 (tui_get_low_disassembly_address): Rename
12802 tuiGetLowDisassemblyAddress.
12803 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12804 (tuiFree): Delete declaration.
12805 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12806 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12807 * tui/tui.c (tuiFree): Delete function.
12808 * cli/cli-cmds.c (disassemble_command): Update references.
12809 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12810 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12811 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12812 * tui/tui-winsource.c: Ditto.
12813
12814 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12815
12816 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12817 coffstab_build_psymtabs, elfstab_build_psymtabs)
12818 (stabsect_build_psymtabs): Replace psymbol_obstack with
12819 objfile_obstack.
12820 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12821 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12822 Ditto.
12823 * dwarfread.c (scan_compilation_units): Ditto.
12824 * elfread.c (elfstab_offset_sections): Ditto.
12825 * hppa-tdep.c (read_unwind_info): Ditto.
12826 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12827 (hpread_end_psymtab): Ditto.
12828 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12829 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12830 Ditto.
12831 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12832 * objfiles.c (add_to_objfile_sections)
12833 (build_objfile_section_table): Ditto.
12834 (allocate_objfile): Remove init of psymbol_obstack.
12835 (free_objfile): Remove freeing of psymbol_obstack.
12836 * objfiles.h (struct objfile): Remove field
12837 psymbol_obstack. Update comments.
12838 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12839 psymbol_obstack with objfile_obstack.
12840 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12841 psymbol_obstack.
12842 * somread.c (som_symfile_offsets, init_import_symbols)
12843 (init_export_symbols): Replace psymbol_obstack with
12844 objfile_obstack.
12845 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12846 * symfile.c (default_symfile_offsets, syms_from_objfile)
12847 (reread_symbols): Remove freeing and init of psymbol_obstack.
12848 (cashier_psymtab): Update comment.
12849 * symmisc.c (print_objfile_statistics): Don't report stats for
12850 psymbol obstack.
12851 * symtab.h (struct general_symbol_info, struct partial_symtab):
12852 Update comments.
12853 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12854 (xcoff_symfile_offsets): Replace psymbol_obstack with
12855 objfile_obstack.
12856
12857 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12858
12859 * objfiles.h (struct objfile): Add objfile_obstack field.
12860 Remove type_obstack field.
12861
12862 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12863 read_structure_scope read_enumeration, new_symbol): Replace
12864 type_obstack with objfile_obstack.
12865 * dwarfread.c (struct_type, enum_type): Ditto.
12866 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12867 (lookup_fundamental_type): Ditto.
12868 * gdbtypes.h (TYPE_ALLOC): Ditto.
12869 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12870 (hpread_read_doc_function_type, hpread_read_struct_type)
12871 (fix_static_member_physnames, hpread_read_array_type)
12872 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12873 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12874 (java_link_class_type): Ditto.
12875 * mdebugread.c (parse_type): Ditto.
12876 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12877 * solib-sunos.c (solib_add_common_symbols): Ditto.
12878 * stabsread.c (define_symbol, read_type, read_member_functions,
12879 read_cpp_abbrev, read_one_struct_field): Ditto.
12880 * symfile.c (reread_symbols): Ditto.
12881 * symmisc.c (print_objfile_statistics): Ditto.
12882
12883 2004-02-07 Andrew Cagney <cagney@redhat.com>
12884
12885 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12886 (tui_exec_info_content): Rename TuiExecInfoContent.
12887 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12888 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12889 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12890 (TuiList, TuiListPtr): Ditto.
12891 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12892 (TuiDataType, TuiDataTypePtr): Ditto.
12893 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12894 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12895 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12896 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12897 (TuiDataElement, TuiDataElementPtr): Ditto.
12898 (TuiWinElement, TuiWinElementPtr): Ditto.
12899 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12900 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12901 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12902 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12903 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12904 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12905 * tui/tui-command.c, tui/tui-data.c: Update references.
12906 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12907 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12908 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12909 * tui/tui-winsource.c, tui/tui.c: Ditto.
12910
12911 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12912
12913 * dwarf2-frame.h: Update copyright.
12914 (enum dwarf2_frame_reg_rule): New.
12915 (struct dwarf2_frame_state_reg): New.
12916 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12917 * dwarf2-frame.c: Update copyright.
12918 (enum dwarf2_reg_rule): Remove.
12919 (struct dwarf2_frame_state): Remove defenition of `struct
12920 dwarf2_frame_state_reg'.
12921 (read_reg): Call get_frame_arch to get the architecture instead of
12922 using CURRENT_GDBARCH.
12923 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12924 DWARF2_FRAME_.
12925 (dwarf2_frame_init_reg): New function.
12926 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12927 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12928 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12929 tags with DWARF2_FRAME_.
12930 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12931 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12932 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12933
12934 2004-02-06 Andrew Cagney <cagney@redhat.com>
12935
12936 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12937 (enum tui_data_type): Rename _TuiDataType.
12938 (struct tui_layout_def): Rename _TuiLayoutDef.
12939 (struct tui_source_element): Rename _TuiSourceElement.
12940 (struct tui_data_element): Rename _TuiDataElement.
12941 (struct tui_command_element): Rename _TuiCommandElement.
12942 (struct tui_locator_element): Rename _TuiLocatorElement.
12943 (union tui_which_element): Define.
12944 (struct tui_win_element): Rename _TuiWinElement.
12945 (struct tui_data_info): Rename _TuiDataInfo.
12946 (struct tui_source_info): Rename _TuiSourceInfo.
12947 (struct tui_command_info): Rename _TuiCommandInfo.
12948 (tui_initialize_static_data): Rename initializeStaticData.
12949 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12950 (tui_alloc_win_info): Rename allocWinInfo.
12951 (tui_init_generic_part): Rename initGenericPart.
12952 (tui_init_win_info): Rename initWinInfo.
12953 (tui_alloc_content): Rename allocContent.
12954 (tui_add_content_elements): Rename addContentElements.
12955 (tui_init_content_element): Rename initContentElement.
12956 (tui_free_window): Rename freeWindow.
12957 (tui_free_win_content): Rename freeWinContent.
12958 (tui_free_data_content): Rename freeDataContent.
12959 (tui_free_all_source_wins_content): Rename
12960 freeAllSourceWinsContent.
12961 (tui_del_window): Rename tuiDelWindow.
12962 (tui_del_data_windows): Rename tuiDelDataWindows.
12963 (tui_partial_win_by_name): Rename partialWinByName.
12964 (tui_win_name): Rename winName.
12965 (tui_current_layout): Rename currentLayout.
12966 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12967 (tui_term_height): Rename termHeight.
12968 (tui_set_term_height_to): Rename setTermHeightTo.
12969 (tui_term_width): Rename termWidth.
12970 (tui_set_term_width_to): Rename setTermWidthTo.
12971 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12972 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12973 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12974 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12975 (tui_source_windows): Rename sourceWindows.
12976 (tui_clear_source_windows): Rename clearSourceWindows.
12977 (tui_clear_source_windows_detail): Rename
12978 clearSourceWindowsDetail.
12979 (tui_clear_win_detail): Rename clearWinDetail.
12980 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12981 (tui_default_tab_len): Rename tuiDefaultTabLen.
12982 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12983 (tui_win_with_focus): Rename tuiWinWithFocus.
12984 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12985 (tui_layout_def): Rename tuiLayoutDef.
12986 (tui_win_resized): Rename tuiWinResized.
12987 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12988 (tui_next_win): Rename tuiNextWin.
12989 (tui_prev_win): Rename tuiPrevWin.
12990 (tui_add_to_source_windows): Rename addToSourceWindows.
12991 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12992 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12993 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12994 * tui/tui.c, tui/tui-data.c: Ditto.
12995 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12996 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12997
12998 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12999 (struct symtab): Declare.
13000 (tui_set_source_content): Rename tuiSetSourceContent.
13001 (tui_show_symtab_source): Rename tuiShowSource.
13002 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13003 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13004 * tui/tui-source.c: Update copyright. Update references.
13005 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13006 * tui/tui-stack.c: Update references.
13007
13008 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13009 (struct tui_win_info): Declare.
13010 (tui_scroll_forward): Rename tuiScrollForward.
13011 (tui_scroll_backward): Rename tuiScrollBackward.
13012 (tui_scroll_left): Rename tuiScrollLeft.
13013 (tui_scroll_right): Rename tuiScrollRight.
13014 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13015 (tui_resize_all): Rename tuiResizeAll.
13016 (tui_refresh_all_win): Rename tuiRefreshAll.
13017 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13018 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13019 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13020 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13021
13022 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13023 (tui_erase_data_content): Rename tuiEraseDataContent.
13024 (tui_display_all_data): Rename tuiDisplayAllData.
13025 (tui_check_data_values): Rename tuiCheckDataValues.
13026 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13027 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13028 (tui_first_data_element_no_in_line): Rename
13029 tuiFirstDataElementNoInLine.
13030 (tui_delete_data_content_windows): Rename
13031 tuiDeleteDataContentWindows.
13032 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13033 (tui_display_data_from): Rename tuiDisplayDataFrom.
13034 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13035 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13036 * tui/tui-win.c, tui/tui-regs.c: Update references.
13037 * tui/tui-layout.c, tui/tui.c: Update references.
13038
13039 * tui/tui-wingeneral.h: Update copyright.
13040 (m_allBeVisible): Delete macro.
13041 (m_allBeInvisible): Delete macro.
13042 (struct tui_gen_win_info): Declare.
13043 (struct tui_win_info): Declare.
13044 (tui_unhighlight_win): Rename unhighlightWin.
13045 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13046 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13047 (tui_make_window): Rename makeWindow.
13048 (tui_copy_win): Rename copyWin.
13049 (tui_box_win): Rename boxWin.
13050 (tui_highlight_win): Rename highlightWin.
13051 (tui_check_and_display_highlight_if_needed): Rename
13052 checkAndDisplayHighlightIfNeeded.
13053 (tui_refresh_all): Rename refreshAll.
13054 (tui_delete_win): Rename tuiDelwin.
13055 (tui_refresh_win): Rename tuiRefreshWin.
13056 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13057 (tui_make_visible, tui_make_invisible): New functions.
13058 (tui_make_all_visible, tui_make_all_invisible): New functions.
13059 (make_all_visible): Rename makeAllVisible.
13060 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13061 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13062 * tui/tui-windata.c, tui/tui-win.c: Update references.
13063 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13064 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13065
13066 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13067
13068 * proc-api.c (write_with_trace): Initialize local variable to
13069 silence compiler warning.
13070
13071 2004-02-06 Andrew Cagney <cagney@redhat.com>
13072
13073 * tui/tui-source.h: Do not include "defs.h".
13074 (struct tui_win_info): Declare.
13075 (tui_set_source_content_nil): Declare.
13076 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13077 (union tui_line_or_address): Rename _TuiLineOrAddress.
13078 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13079 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13080 (tui_update_source_window_as_is): Rename
13081 tuiUpdateSourceWindowAsIs.
13082 (tui_update_source_windows_with_addr): Rename
13083 tuiUpdateSourceWindowsWithAddr.
13084 (tui_update_source_windows_with_line): Rename
13085 tuiUpdateSourceWindowsWithLine.
13086 (tui_clear_source_content): Rename tuiClearSourceContent.
13087 (tui_erase_source_content): Rename tuiEraseSourceContent.
13088 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13089 (tui_show_source_content): Rename tuiShowSourceContent.
13090 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13091 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13092 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13093 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13094 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13095 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13096 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13097 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13098 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13099 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13100 (struct tui_win_info): Declare.
13101 * tui/tui-stack.c: Update references.
13102 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13103 * tui/tui-win.c, tui/tui-source.c: Ditto.
13104 * tui/tui.c, tui/tui-disasm.c: Ditto.
13105
13106 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13107
13108 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13109 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13110
13111 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13112
13113 * infrun.c (handle_inferior_event): Allow for breakpoint
13114 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13115 and SIGEMT. Update comments.
13116 * NEWS (Revised SPARC target): Mention support for non-executable
13117 stack.
13118
13119 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13120
13121 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13122 * inftarg.c: Update copyright year.
13123 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13124 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13125 (sparc_xfer_wcookie): New function.
13126 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13127 * Makefile.in (sparc-nat.o): Update dependencies.
13128 * config/sparc/nm-nbsd.h: Include "target.h".
13129 (NATIVE_XFER_WCOOKIE): New define.
13130 (sparc_xfer_wcookie): New prototype.
13131
13132 2004-02-04 Andrew Cagney <cagney@redhat.com>
13133
13134 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13135 SYSCALL_TRAP function.
13136 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13137
13138 2004-02-04 Andrew Cagney <cagney@redhat.com>
13139 Daniel Jacobowitz <drow@mvista.com>
13140
13141 * objfiles.h: Delete comments refering to inside_entry_func and
13142 DEPRECATED_FRAME_CHAIN_VALID.
13143 * defs.h (inside_entry_func): Update prototype..
13144 * blockframe.c (inside_entry_func): Rename to
13145 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13146 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13147
13148 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13149
13150 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13151 outside of #ifdef SOLIB_ADD region.
13152 (do_restore_lang_radix_cleanup): Ditto.
13153 (resolve_pending_breakpoint): Ditto.
13154
13155 2004-02-03 Andrew Cagney <cagney@redhat.com>
13156
13157 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13158 (process_note_abi_tag_sections): Delete unused function.
13159 (ia64_read_fp): Delete unused function.
13160 (gdbarch_extract_struct_value_address): Delete declaration.
13161
13162 2004-02-02 Andrew Cagney <cagney@redhat.com>
13163
13164 * vax-tdep.c (vax_frame_chain): Delete call to
13165 deprecated_inside_entry_file.
13166 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13167
13168 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13169
13170 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13171 column that's "empty" or "same value" when eliminating REG_RA
13172 rules.
13173
13174 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13175
13176 * NEWS: Add information about new pending breakpoint support.
13177
13178 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13179
13180 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13181 and pending fields for pending breakpoint support.
13182 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13183 (condition_command): Only parse condition if not a pending
13184 breakpoint.
13185 (print_one_breakpoint): Add support for pending breakpoints.
13186 (describe_other_breakpoints): Add checks to verify we are not
13187 dealing with pending breakpoints.
13188 (check_duplicates): Don't check pending breakpoints.
13189 (set_raw_breakpoint): Initialize pending flag.
13190 (do_restore_lang_radix_cleanup): New cleanup routine.
13191 (resolve_pending_breakpoint): New function.
13192 (re_enable_breakpoints_in_shlibs): Try and resolve any
13193 pending breakpoints via resolve_pending_breakpoint.
13194 (mention): Add pending breakpoint support.
13195 (parse_breakpoint_sals): Add new parameter to pass to
13196 decode_line_1 to indicate silent errors when files or functions
13197 are not found. Change all callers.
13198 (do_captured_parse_breakpoint): New function.
13199 (break_command_1): Change prototype to return an rc value and to
13200 take an optional pending breakpoint pointer. Support creating
13201 a pending breakpoint if a "not found" form of error occurs when
13202 parsing the breakpoint. Also support resolving an existing pending
13203 breakpoint and be silent if the resolution fails.
13204 (create_breakpoints): Change prototype to take pending breakpoint
13205 pointer. When resolving a pending breakpoint, use the new pointer
13206 to provide a conditional or commands added by the end-user.
13207 (delete_breakpoint): Add appropriate check for pending.
13208 (breakpoint_re_set_one): Ditto.
13209 (do_enable_breakpoint): Ditto.
13210
13211 2004-02-02 David Carlton <carlton@kealia.com>
13212
13213 * valops.c (enum oload_classification): New.
13214 (find_overload_match): Break implementation into separate
13215 functions; delete #if 0'd code; look for symbols within
13216 namespaces.
13217 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13218 (find_oload_champ,oload_method_static,classify_oload_match): New.
13219 * cp-support.h: Add declaration for cp_func_name; update
13220 declaration for make_symbol_overload_list.
13221 * cp-support.c (cp_func_name): New.
13222 (overload_list_add_symbol): Fix comment, use
13223 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13224 (make_symbol_overload_list): Take a function name and a namespace
13225 instead of a symbol; change implementation.
13226 (make_symbol_overload_list_using): New.
13227 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13228
13229 2004-02-02 Fred Fish <fnf@redhat.com>
13230
13231 * main.c (gdb_stdtarg): Move definition to group with other
13232 gdb_stdtarg definitions and update copyright years.
13233 * remote-sim.c (gdb_os_write_stderr): Write output to
13234 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13235 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13236 gdb_stderr stream and update copyright years.
13237
13238 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13239
13240 * Makefile.in (mips-linux-nat.o): Update dependencies.
13241 * mips-linux-nat.c: Include mips-tdep.h.
13242
13243 2004-02-01 Roland McGrath <roland@redhat.com>
13244
13245 * sol-thread.c (sol_thread_xfer_partial): New function.
13246 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13247 (init_sol_core_ops): Likewise.
13248
13249 * procfs.c (procfs_xfer_partial): New function.
13250 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13251 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13252
13253 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13254 procfs_xfer_auxv function.
13255
13256 * procfs.c (procfs_make_note_section): If we can read
13257 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13258 * linux-proc.c (linux_make_note_section): Likewise.
13259
13260 * auxv.h: New file.
13261 * auxv.c: New file.
13262 * Makefile.in (auxv_h): New variable.
13263 (COMMON_OBS): Add auxv.o here.
13264 (auxv.o): New target.
13265
13266 * corelow.c (core_xfer_partial): New function.
13267 (init_core_ops): Use it for core_ops.to_xfer_partial.
13268
13269 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13270 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13271 macro if that is defined.
13272
13273 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13274
13275 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13276 and check the specified thread for each breakpoint.
13277 * breakpoint.h (bpstat_stop_status): Update prototype.
13278 * infrun.c (handle_inferior_event): Update calls to
13279 bpstat_stop_status.
13280
13281 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13282
13283 * Makefile.in (cli-cmds.o): Add $(readline_h).
13284
13285 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13286
13287 * cli/cli-cmds.c: Include readline.h.
13288 (complete_command): Pass the start of the last word to
13289 complete_line.
13290
13291 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13292
13293 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13294 argument, and change first argument to a CORE_ADDR.
13295 * breakpoint.h (bpstat_stop_status): Update prototype.
13296 * infrun.c (adjust_pc_after_break): Add a new comment.
13297 (handle_inferior_event): Update calls to bpstat_stop_status.
13298
13299 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13300
13301 * breakpoint.h: Update copyright years.
13302
13303 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13304
13305 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13306 (bpstat_stop_status): Don't decrement PC.
13307 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13308 prototype.
13309 * infrun.c (adjust_pc_after_break): New function.
13310 (handle_inferior_event): Call it, early. Remove later references
13311 to DECR_PC_AFTER_BREAK.
13312 (normal_stop): Add commentary.
13313
13314 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13315
13316 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13317 2004-01-27 double-free fix.
13318
13319 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13320
13321 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13322 (sparc32_frame_prev_register): Handle StackGhost.
13323 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13324
13325 2004-01-29 Roland McGrath <roland@redhat.com>
13326
13327 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13328 * configure: Regenerated.
13329
13330 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13331 * Makefile.in (procfs.o): Add dep.
13332
13333 2004-01-28 Andrew Cagney <cagney@redhat.com>
13334
13335 * tui/tui-stack.h: Update copyright.
13336 (struct frame_info): Add opaque declaration.
13337 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13338 (tui_show_locator_content): Rename tuiShowLocatorContent.
13339 (tui_show_frame_info): Rename tuiShowFrameInfo.
13340 * tui/tui-stack.c: Update copyright. Update references.
13341 * tui/tui-winsource.c: Update references.
13342 * tui/tui-win.c: Update references.
13343 * tui/tui-layout.c: Update references.
13344 * tui/tui-hooks.c: Update copyright, update references.
13345 * tui/tui.c: Update copyright, update references.
13346 * tui/tui-disasm.c: Update references.
13347
13348 2004-01-28 David Carlton <carlton@kealia.com>
13349
13350 * dwarf2read.c (add_partial_structure): Use demangled name if
13351 namespace equals "".
13352
13353 2004-01-27 Jim Blandy <jimb@redhat.com>
13354
13355 Clean up misapplied patch:
13356 * dwarf2read.c (determine_prefix): Change one of the two forward
13357 declarations for 'determine_prefix_aux' to a declaration for this.
13358 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13359 argument to 'die_specification'.
13360
13361 * dwarf2read.c (read_func_scope): Re-indent comment.
13362
13363 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13364
13365 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13366 b->exp to NULL after freeing so that error during re-parsing or
13367 evaluation of expressions associated with breakpoint don't
13368 eventually lead to re-freeing of storage.
13369 Committed by Andrew Cagney.
13370
13371 2004-01-27 Andrew Cagney <cagney@redhat.com>
13372
13373 * source.c (ambiguous_line_spec): Delete undefined declaration.
13374 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13375 (m32r_set_server_address, m32r_set_download_path): Ditto.
13376 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13377
13378 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13379
13380 * dwarf2read.c: Update calls to changed and renamed functions, and
13381 references to moved variables.
13382
13383 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13384 language, language_defn, list_in_scope, and ftypes members.
13385 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13386 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13387 (baseaddr): Remove globals.
13388
13389 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13390 (set_cu_language, die_is_declaration, die_specification)
13391 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13392 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13393 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13394 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13395
13396 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13397 cu.list_in_scope. Don't initialize cu_header_offset.
13398 (add_partial_symbol): Add local baseaddr.
13399 (psymtab_to_symtab_1): Add local baseaddr. Use
13400 objfile->section_offsets for consistency. Don't initialize
13401 cu_header_offset; do initialize cu.header.offset and
13402 cu.list_in_scope.
13403 (read_file_scope, read_func_scope, read_lexical_block_scope)
13404 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13405
13406 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13407
13408 * PROBLEMS: Add gdb/1516.
13409
13410 2003-12-29 Robert Millan <robertmh@gnu.org>
13411
13412 Patch committed by Andrw Cagney.
13413 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13414 * configure.tgt: Match knetbsd*-gnu.
13415
13416 2004-01-26 Andrew Cagney <cagney@redhat.com>
13417
13418 * breakpoint.c (catch_command_1): Delete #ifdef code.
13419 (catch_fork_command_1): Delete #ifdef wrapper.
13420 (catch_exec_command_1): Ditto.
13421 (catch_load_command_1): Ditto.
13422 (catch_unload_command_1): Ditto.
13423
13424 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13425 (catch_breakpoint): Delete #if0ed function.
13426 (disable_catch_breakpoint): Ditto.
13427 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13428 (disable_catch, enable_catch, delete_catch): Ditto.
13429
13430 2004-01-26 Andrew Cagney <cagney@redhat.com>
13431
13432 * remote.c (echo_check, quit_flag): Delete variables.
13433 (cisco_kernel_mode): Delete variable.
13434 (minitelnet_return, tty_input, escape_count): Delete variables.
13435 (remote_cisco_mode): Delete variable.
13436 (remote_cisco_open, remote_cisco_close): Delete function.
13437 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13438 (init_remote_cisco_ops): Delete function.
13439 (_initialize_remote): Do not install "remote cisco" code.
13440 (read_frame): Delete cisco specific code.
13441 (remote_info_process): Delete function.
13442 (remote_wait): Delete cisco specific code.
13443 (remote_cisco_section_offsets): Delete function.
13444 (remote_cisco_objfile_relocate): Delete function.
13445 (remote_async_wait): Delete cisco specific code.
13446 (minitelnet, readtty, readsocket): Delete function.
13447
13448 2004-01-26 Andrew Cagney <cagney@redhat.com>
13449
13450 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13451 comments mentioning extract_returned_value_address.
13452 * infcmd.c (print_return_value): Update. Add comments on
13453 extract_returned_value_address.
13454 * stack.c (return_command): Add comments on
13455 extract_returned_value_address.
13456 * values.c: Update comment.
13457 * m32r-tdep.c: Update comment.
13458 * sparc-tdep.c: Update comment.
13459 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13461 * sh64-tdep.c (sh64_gdbarch_init): Update.
13462 * sh-tdep.c (sh_gdbarch_init): Update.
13463 * s390-tdep.c (s390_gdbarch_init): Update.
13464 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13465 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13466 * m68k-tdep.c (m68k_gdbarch_init): Update.
13467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13468 * m32r-tdep.c (m32r_gdbarch_init): Update.
13469 * ia64-tdep.c (ia64_gdbarch_init): Update.
13470 * h8300-tdep.c (h8300_gdbarch_init): Update.
13471 * frv-tdep.c (frv_gdbarch_init): Update.
13472 * arm-tdep.c (arm_gdbarch_init): Update.
13473 * alpha-tdep.c (alpha_gdbarch_init): Update.
13474
13475 2004-01-26 Andrew Cagney <cagney@redhat.com>
13476
13477 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13478 SYMBOL_LOCATION_FUNCS
13479 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13480 "struct symbol_ops".
13481 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13482 type to "struct symbol_ops".
13483 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13484 (struct symbol): Replace ".aux_value.loc.funcs" and
13485 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13486 (SYMBOL_OBJFILE): Delete macro.
13487 (SYMBOL_LOCATION_FUNCS): Delete macro.
13488 (SYMBOL_LOCATION_BATON): Update.
13489 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13490 intead of SYMBOL_LOCATION_FUNCS.
13491 * ax-gdb.c (gen_var_ref): Ditto.
13492 * printcmd.c (address_info): Ditto.
13493 * findvar.c (read_var_value): Ditto.
13494 (symbol_read_needs_frame): Ditto.
13495
13496 2004-01-26 Andrew Cagney <cagney@redhat.com>
13497
13498 * dwarf2read.c (read_func_scope): Document frame-base hack.
13499
13500 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13501
13502 * infcmd.c (print_return_value): Plug memory leak; delete
13503 ui_stream object. Rename argument `structure_return' to
13504 `struct_return'.
13505
13506 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13507
13508 * infcmd.c (print_return_value): Wrap long lines.
13509 (finish_command_continuation, finish_command): Remove unused
13510 variable `funcaddr'. Fix some coding-standards problems.
13511
13512 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13513 SECT_SIZE is large enough, not whether it's exactly the right size.
13514 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13515 TDEP->fpregset to zero.
13516
13517 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13518 floating-point registers for traditional NetBSD core files.
13519 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13520 TDEP->sizeof_fpregset here.
13521
13522 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13523
13524 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13525 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13526 function with code split out from
13527 sparc32nbsd_sigcontext_frame_cache.
13528 (sparc32nbsd_sigcontext_frame_cache): Use
13529 sparc32nbsd_sigcontext_saved_regs.
13530 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13531 OpenBSD.
13532 * sparcobsd-tdep.c: New file.
13533 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13534 (sparcobsd-tdep.o): New dependency.
13535 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13536 * config/sparc/obsd.mt: New file.
13537
13538 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13539 TDEP->fpregset to be initialized to enable core file register
13540 sets.
13541
13542 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13543
13544 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13545 Add opaque declarations.
13546 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13547 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13548 function with code split out from
13549 sparc64nbsd_sigcontext_frame_cache.
13550 (sparc64nbsd_sigcontext_frame_cache): Use
13551 sparc64nbsd_sigcontext_saved_regs.
13552 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13553 OpenBSD.
13554 * sparc64obsd-tdep.c: New file.
13555 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13556 (sparc64obsd-tdep.o): New dependency.
13557 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13558 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13559 * config/sparc/obsd64.mt: New file.
13560
13561 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13562 read the instruction at PC.
13563
13564 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13565 value of GDB_OSABI_DEFAULT.
13566 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13567 instead of GDB_OSABI_NETBSD_AOUT.
13568
13569 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13570
13571 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13572 copyright.
13573
13574 2004-01-23 Andrew Cagney <cagney@redhat.com>
13575
13576 * printcmd.c (display_command): Replace tui_set_display call with
13577 tui_set_layout_for_display_command.
13578 * tui/tui.h (enum tui_win_type): Define.
13579 (tui_set_layout): Delete declaration.
13580 (tui_set_layout_for_display_command): Rename set_tui_layout.
13581 * tui/tui-data.h (enum tui_layout_type): Define.
13582 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13583 "tui.h".
13584 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13585 (tui_default_win_height): Rename tuiDefaultWinHeight.
13586 (tui_default_win_viewport_height): Rename
13587 tuiDefaultWinViewportHeight.
13588 (tui_set_layout): RenametuiSetLayout.
13589 * tui/tui-layout.c: Update references.
13590 * tui/tui.c: Update references.
13591 * tui/tui-disasm.c: Update references.
13592
13593 2004-01-23 David Carlton <carlton@kealia.com>
13594
13595 Partial workaround for PR c++/1511:
13596 * cp-namespace.c: Include frame.h.
13597 (cp_lookup_transparent_type): New
13598 (cp_lookup_transparent_type_loop): New.
13599 * cp-support.h: Declare cp_lookup_transparent_type.
13600 * symtab.c (basic_lookup_transparent_type): Renamed from
13601 lookup_transparent_type.
13602 (lookup_transparent_type): Replace old body by a call to
13603 current_language->la_lookup_transparent_type.
13604 * symtab.h: Update copyright. Declare
13605 basic_lookup_transparent_type.
13606 * language.h: Update copyright.
13607 (struct language_defn): Add la_lookup_transparent_type.
13608 * language.c: Update copyright.
13609 (unknown_language_defn): Add basic_lookup_transparent_type.
13610 (auto_language_defn): Add basic_lookup_transparent_type.
13611 (local_language_defn): Add basic_lookup_transparent_type.
13612 * ada-lang.c: Update copyright.
13613 (ada_language_defn): Add basic_lookup_transparent_type.
13614 * c-lang.c: Update copyright.
13615 (c_language_defn): Add basic_lookup_transparent_type.
13616 (cplus_language_defn): Add basic_lookup_transparent_type.
13617 (asm_language_defn): Add basic_lookup_transparent_type.
13618 (minimal_language_defn): Add basic_lookup_transparent_type.
13619 * f-lang.c: Update copyright.
13620 (f_language_defn): Add basic_lookup_transparent_type.
13621 * jv-lang.c: Update copyright.
13622 (java_language_defn): Add basic_lookup_transparent_type.
13623 * m2-lang.c: Update copyright.
13624 (m2_language_defn): Add basic_lookup_transparent_type.
13625 * objc-lang.c: Update copyright.
13626 (objc_language_defn): Add basic_lookup_transparent_type.
13627 * p-lang.c: Update copyright.
13628 (p_language_defn): Add basic_lookup_transparent_type.
13629 * scm-lang.c: Update copyright.
13630 (scm_language_defn): Add basic_lookup_transparent_type.
13631 * Makefile.in (cp-namespace.o): Depend on frame.h.
13632
13633 2004-01-23 David Carlton <carlton@kealia.com>
13634
13635 Patch for PR c++/1520:
13636 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13637 properly if we have a specification die.
13638 (determine_prefix_aux): Rename from determine_prefix.
13639 (determine_prefix): Like the old determine_prefix, but never
13640 returns NULL.
13641
13642 2004-01-23 Theodore A. Roth <troth@openavr.org>
13643
13644 * avr-tdep.c: Update copyright.
13645 (avr_iaddr_p): Delete unused function.
13646 (avr_saddr_p): Delete unused function.
13647
13648 2004-01-23 David Carlton <carlton@kealia.com>
13649
13650 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13651 Fix for PR symtab/1534.
13652
13653 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13654
13655 * NEWS (New native configurations): Mention OpenBSD/sparc and
13656 OpenBSD/sparc64.
13657 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13658 * configure.host: Likewise.
13659 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13660 handler for OpenBSD.
13661 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13662
13663 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13664
13665 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13666 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13667
13668 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13669 * cli/cli-cmds.c (shell_escape): Likewise.
13670
13671 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13672 OpenBSD .note.openbsd.ident sections.
13673
13674 2004-01-22 David Carlton <carlton@kealia.com>
13675
13676 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13677 get_scope_pc_bounds.
13678 (read_file_scope): Ditto.
13679 (get_scope_pc_bounds): New function, produced by extracting code
13680 from the above two functions, consolidating it, and adding support
13681 for DW_TAG_namespace.
13682
13683 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13684
13685 * osabi.c (MAX_NOTESZ): New define.
13686 (check_note): New function.
13687 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13688 check_note.
13689
13690 2004-01-21 Roland McGrath <roland@redhat.com>
13691
13692 * MAINTAINERS (write after approval): Add myself.
13693
13694 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13695
13696 * utils.c (init_page_info): Move declarations of `rows' and
13697 `cols' before the __GO32__-specific code. Move the closing brace
13698 outside the #ifdef __GO32__..#endif block.
13699 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13700
13701 2004-01-21 Paul Brook <paul@codesourcery.com>
13702
13703 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13704 BPSTAT_WHAT_CHECK_SHLIBS.
13705
13706 2004-01-21 Paul Brook <paul@codesourcery.com>
13707
13708 * MAINTAINERS: Add myself to write-after-approval.
13709
13710 2004-01-20 Andrew Cagney <cagney@redhat.com>
13711
13712 * ax-gdb.c (print_axs_value): Delete unused function.
13713 * jv-lang.c (java_lookup_type): Delete unused function.
13714 * cli/cli-dump.c (dump_filetype): Delete unused function.
13715 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13716 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13717 (mips_getstring): Delete unused function.
13718 (pmon_insert_breakpoint): Delete #if0ed function.
13719 (PMON_MAX_BP): Delete #if0ed MACRO.
13720 (mips_pmon_bp_info): Delete #if0ed variable.
13721 (pmon_remove_breakpoint): Delete #if0ed function.
13722 * monitor.c (monitor_write_even_block): Delete unused function.
13723 (monitor_write_memory_block): Delete #if0ed code.
13724 * dink32-rom.c (dink32_load): Delete unused function.
13725 (_initialize_dink32_rom): Delete #if0ed code.
13726 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13727
13728 * tui/tui-command.c: Update references.
13729 * tui/tui-io.c: Update references.
13730 * tui/tui-command.h: Update copyright.
13731 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13732
13733 * source.c (ambiguous_line_spec): Delete never-defined function.
13734 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13735 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13736 * cli/cli-cmds.c (validate_comname): Ditto.
13737
13738 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13739 "tui-data.h".
13740 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13741 (tui_show_disassem): Rename tuiShowDisassem.
13742 (tui_show_disassem_and_update_source): Rename
13743 tuiVerticalDisassemScroll.
13744 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13745 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13746 * tui/tui.h: Update copyright.
13747 (enum tui_status): Define.
13748 * tui/tui-data.h (enum tui_scroll_direction): Define.
13749 * tui/tui-disasm.c: Update copyright. Update references.
13750 * tui/tui-winsource.c: Update copyright. Update references.
13751 * tui/tui-win.c: Update references.
13752 * tui/tui-layout.c: Update references.
13753
13754 2004-01-20 Andrew Cagney <cagney@redhat.com>
13755
13756 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13757 sym2 to start of block.
13758
13759 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13760
13761 * MAINTAINERS: Delete mmalloc.
13762 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13763 * NEWS: Mention removal of --with-malloc.
13764 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13765 * config.in: Regenerate.
13766 * configure: Regenerate.
13767 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13768 USE_MMALLOC, MMCHECK_FORCE.
13769 * gdbinit.in: Remove mmalloc.
13770 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13771 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13772 * config/i386/go32.mh: Likewise.
13773 * config/i386/interix.mh: Likewise.
13774 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13775
13776 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13777
13778 * linespec.c (decode_variable, symtab_from_filename): Call
13779 error_silent with error message instead of throwing an exception
13780 directly.
13781 * defs.h (error_silent, error_output_message): Add prototypes.
13782 (catch_exceptions_with_msg): Ditto.
13783 * utils.c (error_silent, error_output_message): New functions.
13784 * top.c (catch_exceptions_with_msg): New function.
13785
13786 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13787
13788 * mi/mi-cmds.h (enum print_values): Add definition.
13789
13790 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13791 type and value for simple data types and just the name and type
13792 for complex ones, if required.
13793
13794 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13795 children, if required.
13796
13797 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13798
13799 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13800 unused declarations.
13801
13802 2004-01-19 Andrew Cagney <cagney@redhat.com>
13803
13804 * top.h (mapped_symbol_files): Delete declaration.
13805 * main.c (captured_main): Delete option "m" and "mapped".
13806 * objfiles.c (mapped_symbol_files): Delete variable.
13807 * symfile.c (symbol_file_command): Delete mmap code.
13808 (symbol_file_add_with_addrs_or_offsets): Ditto.
13809 (add_symbol_file_command, reread_separate_symbols): Ditto.
13810 * objfiles.h (OBJF_MAPPED): Delete.
13811 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13812 (free_objfile) [USE_MMALLOC]: Ditto.
13813 (open_existing_mapped_file): Delete function.
13814 (open_mapped_file): Delete function.
13815 (map_to_file): Delete function.
13816
13817 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13818
13819 * infrun.c (step_into_function): Account for possible breakpoint
13820 adjustment when computing ``stop_func_start''.
13821
13822 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13823
13824 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13825 the region size against the size of a pointer, not the size of
13826 a register as given by DEPRECATED_REGISTER_SIZE.
13827
13828 2004-01-19 Andrew Cagney <cagney@redhat.com>
13829
13830 * tui/tui-regs.h: Include "tui-data.h".
13831 (tuiFirstRegElementNoInLine): Delete declaration.
13832 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13833 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13834 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13835 (tui_calculate_regs_column_count): Rename
13836 tuiCalculateRegsColumnCount.
13837 (tui_check_register_values): Rename tuiCheckRegisterValues.
13838 (tui_show_registers): Rename tuiShowRegisters.
13839 (tui_display_registers_from_line): Rename
13840 tuiDisplayRegistersFromLine.
13841 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13842 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13843 (tui_first_reg_element_no_inline): Rename
13844 tuiFirstRegElementNoInLine.
13845 * tui/tui-data.h: Update copyright.
13846 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13847 * tui/tui-windata.c: Update copyright, update references.
13848 * tui/tui-regs.c: Update copyright, update references.
13849 * tui/tui-win.c: Update copyright, update references.
13850 * tui/tui-layout.c: Update copyright, update references.
13851
13852 2004-01-18 Andrew Cagney <cagney@redhat.com>
13853
13854 * tui/tui-io.c: Update copyright.
13855 (key_is_end_sequence, key_is_backspace): New functions.
13856 (key_is_command_char, key_is_start_sequence): New function.
13857 (tui_getc): Update references.
13858 * tui/tui-io.h: Update copyright.
13859 (m_tuiStartNewLine): Delete macro.
13860 (m_isBackspace, m_isDeleteChar): Delete macros.
13861 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13862 (m_isNextPage, m_isPrevPage): Delete macros.
13863 (m_isLeftArrow, m_isRightArrow): Delete macros.
13864 (m_isXdbStyleCommandChar): Delete macro.
13865 (key_is_start_sequence): Declare, replace m_isStartSequence.
13866 (key_is_end_sequence): Declare, replace m_isEndSequence.
13867 (key_is_backspace): Declare ,replace m_isBackspace.
13868 (key_is_command_char): Declare, replace m_isCommandChar.
13869 * tui/tui-command.c: Update copyright.
13870 (tuiDispatchCtrlChar): Update references.
13871
13872 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13873 tuiSourceWin.h.
13874
13875 * tui/tui-command.c: Rename tui/tuiCommand.c.
13876 * tui/tui-command.h: Rename tui/tuiCommand.h.
13877 * tui/tui-data.c: Rename tui/tuiData.c.
13878 * tui/tui-data.h: Rename tui/tuiData.h.
13879 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13880 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13881 * tui/tui-io.c: Rename tui/tuiIO.c.
13882 * tui/tui-io.h: Rename tui/tuiIO.h.
13883 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13884 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13885 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13886 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13887 * tui/tui-source.c: Rename tui/tuiSource.c.
13888 * tui/tui-source.h: Rename tui/tuiSource.h.
13889 * tui/tui-stack.c: Rename tui/tuiStack.c.
13890 * tui/tui-stack.h: Rename tui/tuiStack.h.
13891 * tui/tui-win.c: Rename tui/tuiWin.c.
13892 * tui/tui-win.h: Rename tui/tuiWin.h.
13893 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13894 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13895 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13896 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13897 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13898 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13899 * tui/tui-file.c: Update includes.
13900 * tui/tui-hooks.c: Update includes.
13901 * tui/tui-interp.c: Update includes.
13902 * tui/tui.c: Update includes.
13903 * Makefile.in: Update all tui/ dependencies.
13904 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13905
13906 * Makefile.in: Update copyright. Update dependencies.
13907
13908 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13909 problem.
13910
13911 2004-01-18 Andrew Cagney <cagney@redhat.com>
13912
13913 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13914 instead of register_gdbarch_init.
13915
13916 * remote-sds.c (tohex): Delete unused function. Update copyright.
13917 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13918 * v850-tdep.c (v850_register_virtual_size): Ditto.
13919 * target.c (normal_target_post_startup_inferior): Ditto.
13920 * source.c (ambiguous_line_spec): Ditto.
13921 * remote.c (adapt_remote_get_threadinfo): Ditto.
13922 * mi/mi-out.c (out_field_fmt): Ditto.
13923 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13924 (output_control_change_notification): Ditto.
13925 * m68k-tdep.c (m68k_register_byte): Ditto.
13926 (m68k_remote_breakpoint_from_pc): Ditto.
13927 * ui-out.c (init_ui_out_state): Delete unused declaration.
13928 * stabsread.c (search_value): Ditto.
13929 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13930 * maint.c (print_section_table): Ditto.
13931 * infrun.c (set_follow_fork_mode_command): Ditto.
13932
13933 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13934
13935 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13936 DW_CFA_def_cfa_exporession. Add support for
13937 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13938 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13939
13940 2004-01-18 Andrew Cagney <cagney@redhat.com>
13941
13942 * ocd.c: Update copyright.
13943 (bdm_read_register_command): Delete unused function.
13944 (_initialize_remote_ocd): Delete commented out reference.
13945 (get_quoted_char, reset_packet): Delete #if0ed function.
13946 (output_packet, put_quoted_char): Delete #if0ed function.
13947 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13948 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13949 (BDM_BREAKPOINT): Delete #if0ed macro.
13950 (remote_timeout): Delete #if0ed variable.
13951
13952 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13953
13954 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13955 (core-sol2.o): Remove dependency.
13956 * core-sol2.c: Remove file.
13957
13958 2004-01-17 Andrew Cagney <cagney@redhat.com>
13959
13960 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13961 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13962 enums.
13963
13964 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13965
13966 * remote.c: Update copyright years.
13967
13968 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13969
13970 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13971
13972 2004-01-17 Andrew Cagney <cagney@redhat.com>
13973
13974 * mdebugread.c: Update copyright.
13975 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13976 (parse_type, parse_procedure): Ditto.
13977 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13978
13979 * cris-tdep.c (cris_store_struct_return): Put back accidently
13980 deleted function.
13981
13982 * gdbarch.sh: Update copyright year.
13983 * gdbarch.h, gdbarch.c: Re-generate.
13984
13985 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13986
13987 Suggested by George Anzinger.
13988 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13989 correct stack offset. Include unknown opcode numbers in the error
13990 message.
13991
13992 2004-01-17 Andrew Cagney <cagney@redhat.com>
13993
13994 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13995 extract_struct_value_address, i386 does not set it.
13996 * sparc64-tdep.c (sparc64_init_abi): Do not set
13997 extract_struct_value_address, never called.
13998 (sparc64_extract_struct_value_address): Delete function.
13999 * m68hc11-tdep.c: Update copyright.
14000 (m68hc11_gdbarch_init): Delete redundant assignment of
14001 extract_struct_value_address.
14002 * i386-tdep.c: Update copyright.
14003 (i386_gdbarch_init): Do not set extract_struct_value_address,
14004 never called.
14005 (i386_extract_struct_value_address): Delete function.
14006 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14007 extract_struct_value_address, never called.
14008 (sparc32_extract_struct_value_address): #if 0 function. Add
14009 comments explaining its future.
14010
14011 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14012
14013 * arm-tdep.c (arm_write_pc): New function.
14014 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14015
14016 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14017
14018 * breakpoint.c (must_shift_inst_regs): Delete.
14019 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14020 and SHIFT_INST_REGS.
14021 * infcmd.c (step_1, step_1_continuation): Delete references to
14022 SHIFT_INST_REGS.
14023 * infrun.c (keep_going): Likewise.
14024 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14025 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14026
14027 2004-01-17 Andrew Cagney <cagney@redhat.com>
14028
14029 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14030 * gdbarch.h, gdbarch.c: Re-generate.
14031 * infcmd.c (print_return_value): Delete reference to
14032 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14033
14034 * cris-tdep.c (cris_gdbarch_init): Do not set
14035 deprecated_extract_struct_value_address.
14036
14037 * xstormy16-tdep.c: Update copyright.
14038 (xstormy16_extract_struct_value_address): Update to current
14039 extract struct value address interface.
14040 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14041 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14042 current extract struct value address interface.
14043 (sh64_gdbarch_init): Set extract_struct_value_address.
14044
14045 * cris-tdep.c: Update copyright.
14046 (cris_extract_struct_value_address): Delete function.
14047 (struct_return_address): Delete variable.
14048 (cris_store_struct_return): Do not set struct_return_address.
14049
14050 * mcore-tdep.c: Update copyright.
14051 (mcore_extract_struct_value_address): Delete function. Update
14052 comments.
14053 (mcore_gdbarch_init): Update.
14054 * mn10300-tdep.c: Update copyright.
14055 (mn10300_extract_struct_value_address): Delete function.
14056 (mn10300_gdbarch_init): Update.
14057 * v850-tdep.c: Update copyright.
14058 (v850_extract_struct_value_address): Delete.
14059 (v850_gdbarch_init): Update.
14060 * ns32k-tdep.c: Update copyright.
14061 (ns32k_extract_struct_value_address): Delete.
14062 (ns32k_gdbarch_init): Update.
14063 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14064 (hppa_gdbarch_init): Update.
14065 * vax-tdep.c: Update copyright.
14066 (vax_extract_struct_value_address): Delete.
14067 (vax_gdbarch_init): Update.
14068
14069 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14070 * gdbarch.h, gdbarch.c: Re-generate.
14071 * procfs.c (procfs_fetch_registers): Delete reference to
14072 DEPRECATED_NPC_REGNUM.
14073 (procfs_store_registers): Ditto.
14074 * regcache.c (generic_target_write_pc): Simplify.
14075 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14076
14077 * core-sol2.c (fetch_core_registers): Replace
14078 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14079
14080 * hppa-tdep.c: Update copyright year.
14081 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14082 NPC_REGNUM.
14083 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14084
14085 * mips-tdep.c (mips_write_pc): New function.
14086 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14087 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14088 (mips_find_saved_regs, mips_software_single_step: Ditto.
14089 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14090 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14091
14092 2004-01-17 Andrew Cagney <cagney@redhat.com>
14093
14094 * mips-tdep.c: Re-indent. Group functions by ABI.
14095
14096 2004-01-17 Andrew Cagney <cagney@redhat.com>
14097
14098 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14099 * gdbarch.c: Re-generate.
14100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14101 DECR_PC_AFTER_BREAK to zero.
14102 * vax-tdep.c (vax_gdbarch_init): Ditto.
14103 * v850-tdep.c (v850_gdbarch_init): Ditto.
14104 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14105 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14106 * sh-tdep.c (sh_gdbarch_init): Ditto.
14107 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14108 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14109 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14110 * mips-tdep.c (mips_gdbarch_init): Ditto.
14111 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14113 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14114 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14115 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14116 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14117 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14118 * frv-tdep.c (frv_gdbarch_init): Ditto.
14119 * cris-tdep.c (cris_gdbarch_init): Ditto.
14120 * avr-tdep.c (avr_gdbarch_init): Ditto.
14121 * arm-tdep.c (arm_gdbarch_init): Ditto.
14122 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14123
14124 2004-01-17 J. Brobecker <brobecker@gnat.com>
14125
14126 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14127 Delete, no longer used.
14128 (read_subrange_type): New function, mostly extracted from
14129 read_array_type().
14130 (read_array_type): Replace extracted code by call to
14131 read_subrange_type().
14132 (dwarf2_get_attr_constant_value): New function.
14133 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14134 (add_partial_symbol): Likewise.
14135 (process_die): Likewise.
14136 (new_symbol): Likewise.
14137 (read_type_die): Likewise.
14138
14139 2004-01-16 Andrew Cagney <cagney@redhat.com>
14140
14141 * symfile.c: Update copyright year.
14142 (compare_symbols): Delete unused function.
14143 * stabsread.c: Update copyright year.
14144 (lrs_general_complaint): Delete unused function.
14145 (ref_search_value): Ditto.
14146 (get_substring): Delete declaration.
14147 * sh64-tdep.c: Update copyright year.
14148 (sh64_get_gdb_regnum): Delete unused function.
14149 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14150 Delete unused function.
14151
14152 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14153
14154 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14155 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14156
14157 2004-01-16 Andrew Cagney <cagney@redhat.com>
14158
14159 Changes from Peter Schauer.
14160 * rs6000-tdep.c: Update copyright year.
14161 (rs6000_push_dummy_call): Update the stack pointer before
14162 accessing the corresponding stack region.
14163 * rs6000-nat.c: Update copyright year.
14164 (set_host_arch): Set "info.abfd" to "exec_bfd".
14165
14166 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14167
14168 * blockframe.c: Update copyright year.
14169 (inside_entry_func): Don't treat a zero PC specially.
14170
14171 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14172
14173 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14174 variable.
14175 (gcore_create_callback): Ditto. Skip any memory segment that has
14176 no permissions set.
14177
14178 2004-01-14 David Carlton <carlton@kealia.com>
14179
14180 Change symbols for C++ nested types to contain the fully qualified
14181 name, if possible. (At least in the DWARF-2 case.) Partial fix
14182 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14183 c++/895.
14184 * c-exp.y (qualified_type): Handle types nested within classes.
14185 * cp-namespace.c: Update comments.
14186 (cp_set_block_scope): Delete #if 0.
14187 (cp_lookup_nested_type): Handle types nested within classes.
14188 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14189 when appropriate.
14190 (add_partial_symbol): Add the name of the enclosing namespace to
14191 types.
14192 (pdi_needs_namespace): New.
14193 (add_partial_namespace): Tweak comment.
14194 (add_partial_structure): New.
14195 (psymtab_to_symtab_1): Initialize processing_current_prefix
14196 here...
14197 (process_die): instead of here.
14198 (read_structure_scope): Try to figure out the name of the class or
14199 namespace that the structure might be defined within.
14200 (read_enumeration): Generate fully-qualified names, if possible.
14201 (read_namespace): Don't set name to NULL.
14202 (die_specification): New.
14203 (new_symbol): Generate fully-qualified names for types.
14204 (read_type_die): Determine appropriate prefix.
14205 (determine_prefix): New.
14206 (typename_concat): New.
14207 (class_name): New.
14208 * valops.c (value_aggregate_elt): Pass NOSIDE to
14209 value_struct_elt_for_reference.
14210 (value_struct_elt_for_reference): Make static, add NOSIDE
14211 parameter, call value_maybe_namespace_elt as a last resort.
14212 (value_namespace_elt): Break out code into
14213 value_maybe_namespace_elt.
14214 (value_maybe_namespace_elt): New.
14215
14216 2004-01-12 Andrew Cagney <cagney@redhat.com>
14217
14218 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14219 cooked floating-point registers.
14220 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14221 and value_to_register.
14222
14223 2004-01-13 Andrew Cagney <cagney@redhat.com>
14224
14225 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14226 * gdbarch.c: Re-generate.
14227 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14228 FUNCTION_START_OFFSET.
14229 * v850-tdep.c (v850_gdbarch_init): Ditto.
14230 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14231 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14232 * sh-tdep.c (sh_gdbarch_init): Ditto.
14233 * s390-tdep.c (s390_gdbarch_init): Ditto.
14234 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14235 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14236 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14237 * mips-tdep.c (mips_gdbarch_init): Ditto.
14238 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14239 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14241 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14242 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14243 * i386-tdep.c (i386_gdbarch_init): Ditto.
14244 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14245 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14246 * frv-tdep.c (frv_gdbarch_init): Ditto.
14247 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14248 * cris-tdep.c (cris_gdbarch_init): Ditto.
14249 * avr-tdep.c (avr_gdbarch_init): Ditto.
14250 * arm-tdep.c (arm_gdbarch_init): Ditto.
14251 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14252
14253 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14254
14255 * infrun.c (follow_fork_mode_ask): Remove.
14256 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14257 (follow_fork): Simplify and remove internal error for
14258 follow_fork_mode_ask.
14259 (_initialize_infrun): Update "set follow-fork-mode" help text.
14260
14261 2004-01-13 Andrew Cagney <cagney@redhat.com>
14262
14263 * configure.in: Update copyright year.
14264 (build_warnings): Add -Wunused-label.
14265 * configure: Re-generate.
14266
14267 2004-01-12 Andrew Cagney <cagney@redhat.com>
14268
14269 * exec.h (exec_ops): Make "extern".
14270
14271 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14272 the function is void.
14273 (mips_pseudo_register_write): Ditto.
14274
14275 2004-01-12 Andrew Cagney <cagney@redhat.com>
14276
14277 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14278 call. Never defined.
14279 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14280 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14281 (struct sparc_gregset, struct regcache): Ditto.
14282 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14283
14284 2004-01-12 Andrew Cagney <cagney@redhat.com>
14285
14286 * mi/ChangeLog: Delete file. Renamed to ...
14287 * mi/ChangeLog-1999-2003: New file.
14288 * tui/ChangeLog: Delete file. Renamed to ...
14289 * tui/ChangeLog-1998-2003: New file.
14290
14291 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14292
14293 * sparc64nbsd-tdep.c: Include "regset.h".
14294 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14295 Remove variables.
14296 (fetch_core_registers): Remove function.
14297 (sparc64nbsd_core_fns): Remove variable.
14298 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14299 functions.
14300 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14301 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14302 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14303
14304 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14305 sparc_extract_struct_value_address.
14306 (sparc32_gdbarch_init): Set extract_struct_value_address.
14307 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14308 function.
14309 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14310 return_value_on_stack.
14311
14312 * NEWS: Mention that %cs and %ss have been added to the AMD64
14313 configurations
14314
14315 * frame.c: Update copyright year.
14316 (get_prev_frame): Improve comment.
14317
14318 * sparc64fbsd-tdep.c: Include "regset.h".
14319 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14320 Remove variables.
14321 (fetch_core_registers): Remove function.
14322 (sparc64fbsd_core_fns): Remove variable.
14323 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14324 functions.
14325 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14326 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14327 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14328
14329 * sparcnbsd-tdep.c: Include "regset.h".
14330 (fetch_core_registers): Remove function.
14331 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14332 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14333 functions.
14334 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14335 TDEP->fpregset.
14336 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14337
14338 * sparc-tdep.h (struct regset): Provide opaque declaration.
14339 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14340 fpregset and sizeof_fpregset members.
14341 * sparc-tdep.c (struct regset): Provide opaque declaration.
14342 (sparc_regset_from_core_section): New function.
14343 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14344 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14345 Set regset_from_core_section when appropriate.
14346
14347 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14348
14349 * x86-64-tdep.c (amd64_non_pod_p): New function.
14350 (amd64_classify_aggregate): Return class memory for non-POD
14351 C++ structure types.
14352
14353 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14354 argument. Use it to reserve a register if necessary.
14355 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14356 amd64_push_arguments.
14357
14358 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14359
14360 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14361 register numbers in comments.
14362 * x86-64-tdep.h: Update copyright year.
14363 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14364 Adjust for addition of %cs and %ss.
14365 * amd64fbsd-nat.c: Update copyright year.
14366 (reg_offset): Add register offsets for %cs and %ss.
14367 * amd64fbsd-tdep.c: Update copyright year.
14368 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14369 (amd64fbsd_sc_reg_offset): Likewise.
14370 * x86-64-linux-nat.c: Update copyright year.
14371 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14372 and %ss.
14373 * amd64nbsd-nat.c: Update copyright year.
14374 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14375 * amd64nbsd-tdep.c: Update copyright year.
14376 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14377 * x86-64-linux-tdep.c: Update copyright year.
14378 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14379 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14380 * regformats/reg-x86-64.dat: Add %cs and %ss.
14381
14382 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14383 variables to prevent long lines. Update comments to reflect
14384 reality.
14385
14386 2004-01-09 David Carlton <carlton@kealia.com>
14387
14388 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14389 * dwarf2read.c (read_namespace): Pull out name-generating code
14390 into namespace_name. Rename previous_namespace to previous_prefix
14391 and processing_current_namespace to processing_current_prefix..
14392 (namespace_name): New function.
14393 (add_partial_symbol): Substitute uses of pdi->name with
14394 actual_name.
14395 * cp-support.h: Rename processing_current_namespace to
14396 processing_current_prefix.
14397 Update copyright year.
14398 * cp-namespace.c: Rename processing_current_namespace to
14399 processing_current_prefix.
14400 Update copyright year.
14401
14402 2004-01-09 Andrew Cagney <cagney@redhat.com>
14403
14404 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14405
14406 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14407
14408 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14409 complaining.
14410 (process_one_symbol): Deal with N_PATCH stabs.
14411
14412 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14413
14414 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14415 ifdeffed code.
14416 Update copyright year.
14417
14418 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14419
14420 * config/pa/tm-hppa.h: Update extern declarations for
14421 hppa32_hpux_frame_saved_pc_in_sigtramp,
14422 hppa32_hpux_frame_base_before_sigtramp, and
14423 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14424
14425 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14426
14427 * config/pa/tm-hppah.h: Update copyright years.
14428
14429 2004-01-08 Andrew Cagney <cagney@redhat.com>
14430
14431 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14432 (mips_o32_reg_struct_has_addr): Delete function.
14433 (mips_gdbarch_init): Update.
14434 (mips_extract_struct_value_address): Delete function.
14435
14436 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14437
14438 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14439 reality.
14440
14441 2004-01-07 Andrew Cagney <cagney@redhat.com>
14442
14443 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14444 architecture's elf flags (when available).
14445
14446 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14447 FPU to the start, check the MIPS FPU when looking for an old
14448 architecture.
14449 (set_mipsfpu_single_command): Update the architecture.
14450 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14451
14452 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14453 (mips_mask_address_p): Add "tdep" parameter.
14454 (show_mask_address, mips_addr_bits_remove): Update.
14455 (mips_dump_tdep): Update.
14456 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14457 (MIPS_STACK_ARGSIZE): Delete macro.
14458 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14459 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14460 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14461 (mips_dump_tdep): Update.
14462 (MIPS_SAVED_REGSIZE): Delete macro.
14463 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14464 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14465 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14466 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14467 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14468 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14469 (mips_pop_frame, return_value_location): Update.
14470 (mips_n32n64_return_value, mips_dump_tdep): Update.
14471
14472 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14473 MIPS ABI.
14474
14475 * mips-tdep.c: Update copyright.
14476 (mips_gdbarch_init): Merge two code blocks handling the register
14477 name and number layout.
14478
14479 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14480
14481 * tracepoint.c (validate_actionline): Fix segv at EOF
14482
14483 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14484
14485 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14486 properly for static fields.
14487
14488 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14489 Jason Molenda <jmolenda@apple.com>
14490
14491 * disasm.c: Update copyright to include 2004.
14492 (do_mixed_source_and_assembly): For uiout asm list
14493 and tuple cleanups, initialize to null_cleanup instead of
14494 NULL and do so prior to loop. Only reset when we close off
14495 the tuple/list. Move check for whether to close off the
14496 asm tuple/list to after dump_insns call where it will be run
14497 on each loop iteration.
14498
14499 2004-01-05 Andrew Cagney <cagney@redhat.com>
14500
14501 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14502 should be a switch case and not a label.
14503 * mips-tdep.c (mips32_next_pc): Delete unused labels
14504 "greater_equal_branch" and "less_zero_branch".
14505 * jv-valprint.c (java_print_value_fields): Delete unused label
14506 "flush_it".
14507
14508 * target.c (unpush_target): Only close a target that is in the
14509 target stack.
14510
14511 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14512
14513 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14514 address from [sp + 64] instead of %o2.
14515
14516 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14517 fixes PR backtrace/1476.
14518
14519 2004-01-05 Andrew Cagney <cagney@redhat.com>
14520
14521 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14522 move to start of file.
14523 * i386-tdep.h (struct regcache): Add opaque declaration.
14524 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14525 declaration.
14526 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14527 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14528 * win32-nat.c (fake_create_process): Use ISO C style definition.
14529 * stabsread.c (define_symbol): Delete #ifndef
14530 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14531 stabs_argument_has_addr call, macro never defined.
14532
14533 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14534
14535 * op50-rom.c: Delete.
14536 * w89k-rom.c: Delete.
14537 * Makefile.in: Remove references.
14538
14539 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14540
14541 * x86-64-tdep.c: Update copyright year.
14542 (struct amd64_register_info): Rename from x86_64_register_info.
14543 (amd64_register_info): Rename from x86_64_register_info.
14544 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14545 (amd64_register_name): Rename from x86_64_register_name.
14546 (amd64_register_type): Rename from x86_64_register_type.
14547 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14548 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14549 (amd64_dwarf_reg_to_regnum): Rename from
14550 x86_64_dwarf_reg_to_regnum.
14551 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14552 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14553 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14554 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14555 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14556 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14557 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14558 (amd64_frame_cache): Rename from x86_64_frame_cache.
14559 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14560 (amd64_frame_prev_register): Rename from
14561 x86_64_frame_prev_register.
14562 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14563 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14564 (amd64_sigtramp_frame_cache): Rename from
14565 x86_64_sigtramp_frame_cache.
14566 (amd64_sigtramp_frame_prev_register): Rename from
14567 x86_64_sigtramp_frame_prev_register.
14568 (amd64_sigtramp_frame_unwind): Rename from
14569 x86_64_sigtramp_frame_unwind.
14570 (amd64_sigtramp_frame_sniffer): Rename from
14571 x86_64_sigtramp_frame_sniffer.
14572 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14573 (amd64_frame_base): Rename from x86_64_frame_base.
14574 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14575 (amd64_frame_align): Rename from x86_64_frame_align.
14576 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14577 (amd64_regset_from_core_section): Rename from
14578 x86_64_regset_from_core_section.
14579 (x86_64_init_abi): Update comments.
14580
14581 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14582
14583 * MAINTAINERS (write after approval): Add myself.
14584
14585 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14586
14587 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14588 `float' arguments.
14589
14590 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14591
14592 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14593 such that it mentions a specific version of GCC that exhibits this
14594 bug.
14595
14596 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14597
14598 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14599 structure that has a single `float' member, store it in %f1 in
14600 addition to %f0.
14601
14602 * sparc-sol2-nat.c: Add missing '\'.
14603
14604 * sparc-tdep.c (sparc32_return_value): New function.
14605 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14606 Remove functions.
14607 (sparc32_gdbarch_init): Set return_value, don't set
14608 extract_return_value, store_return_value, use_struct_convention
14609 and return_value_on_stack.
14610
14611 * sparc-sol2-nat.c: Add missing ')'.
14612
14613 2004-01-03 J. Brobecker <brobecker@gnat.com>
14614
14615 * infrun.c (handle_step_into_function): New function.
14616 (handle_inferior_event): Extract out some code into the new
14617 function above.
14618
14619 2004-01-03 J. Brobecker <brobecker@gnat.com>
14620
14621 * infrun.c (handle_inferior_event): Move the declaration of
14622 real_stop_pc inside the if blocks where it is used.
14623
14624 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14625
14626 * sparc64-tdep.c (sparc64_16_byte_align_p)
14627 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14628 Use check_typedef to get subtypes of structures and unions.
14629 (sparc64_store_return_value): Fix calculation of the appropriate
14630 offset into VALBUF when storing a structure or union.
14631 (sparc64_return_value): New function.
14632 (sparc64_use_struct_convention): Remove function.
14633 (sparc64_init_abi): Set return_value, don't set
14634 extract_return_value, store_return_value and
14635 use_struct_convention.
14636
14637 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14638
14639 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14640 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14641 gdb/config/alpha/xm-alphaosf.h,
14642 gdb/config/powerpc/tm-ppcle-eabi.h,
14643 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14644 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14645 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14646 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14647 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14648 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14649 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14650 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14651 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14652 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14653 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14654 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14655 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14656 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14657 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14658 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14659 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14660 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14661 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14662 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14663 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14664 Remove lines for .cvsignore files.
14665
14666 2004-01-03 J. Brobecker <brobecker@gnat.com>
14667
14668 * infrun.c: Back out the previous change.
14669
14670 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14671
14672 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14673 sparc-*-sunos4* to the list of REMOVED configurations.
14674
14675 * configure.tgt: Add back sparc-*-vxworks*.
14676 * remote-vxsparc.c: Remove all includes except for "defs.h",
14677 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14678 Include "sparc-tdep.h".
14679 (SPARC_R_G1): New define.
14680 (vxsparc_gregset): New variable.
14681 (ext_format_sparc): Remove extern declaration.
14682 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14683 sparc32_supply_fpregset.
14684 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14685 sparc_collect_rwindow and sparc32_collect_fpregset.
14686 * config/sparc/tm-vxworks.h: New file, based on recently removed
14687 tm-vxsparc.h.
14688 * config/sparc/vxworks.mt: New file, based on recently removed
14689 vxworks.mt.
14690
14691 2004-01-03 J. Brobecker <brobecker@gnat.com>
14692
14693 * infrun.c (handle_step_into_function): New function.
14694 (handle_inferior_event): Extract out some code into the new
14695 function above.
14696
14697 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14698
14699 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14700 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14701 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14702 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14703 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14704 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14705 (sparc_nat_h): New variable.
14706 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14707 (tm-sun4os4.h): Remove dependency.
14708 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14709 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14710 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14711 sparc-tdep.o): Update dependencies.
14712 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14713 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14714 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14715 dependencies.
14716 * configure.host: Remove existing sparc-*-lynxos*,
14717 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14718 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14719 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14720 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14721 triplets.
14722 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14723 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14724 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14725 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14726 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14727 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14728 sparc64-*-solaris2* and sparc64-*-* triplets.
14729 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14730 "symtab.h" and "objfiles.h".
14731 (BIAS): Remove define.
14732 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14733 (X_DISP19): Remove macros.
14734 (sparc_fetch_instruction): Remove function.
14735 (struct gdbarch_tdep): Remove definition.
14736 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14737 (sparc_breakpoint_from_pc): Remove function.
14738 (struct sparc64_frame_cache): Remove definition.
14739 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14740 sparc64_unwind_pc): Remove functions.
14741 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14742 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14743 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14744 (sparc64_frame_cache): Change return type to `struct
14745 sparc_frame_cache *'. Simply call sparc_frame_cache.
14746 (sparc64_frame_this_id, sparc64_frame_prev_register,
14747 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14748 instead of `struct sparc64_frame_cache.
14749 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14750 sparc_analyze_control_transfer, sparc_software_single_step,
14751 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14752 _initialize_sparc64_tdep): Remove functions.
14753 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14754 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14755 macros.
14756 (sparc64_supply_gregset, sparc64_collect_gregset,
14757 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14758 (sparc64_init_abi): New function.
14759 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14760 inclusion guard. Include "sparc-tdep.h".
14761 (BIAS): Define.
14762 (r_tstate_offset, r_fprs_offset): New defines.
14763 (enum sparc_regnum): Remove defenition.
14764 (enum sparc64_regnum): Reformat.
14765 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14766 (sparc64_init_abi, sparc64_supply_gregset,
14767 sparc64_collect_gregset, sparc64_supply_fpregset,
14768 sparc64_collect_fpregset): New prototypes.
14769 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14770 Add extern declarations.
14771 (sparc64_sol2_init_abi): New prototype.
14772 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14773 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14774 prototypes.
14775 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14776 "sparnbsd-nat.h".
14777 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14778 functions.
14779 (_initialize_sparc64fbsd_nat): Remove initialization of
14780 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14781 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14782 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14783 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14784 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14785 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14786 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14787 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14788 (sparc64fbsd_r_y_offset): Remove variables.
14789 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14790 Make static and const.
14791 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14792 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14793 functions.
14794 (sparc64fbsd_gregset): New variable.
14795 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14796 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14797 and sparc64_supply_fpregset.
14798 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14799 (sparc64fbsd_sigtramp_frame_this_id)
14800 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14801 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14802 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14803 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14804 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14805 * sparcnbsd-tdep.c: Update copyright year. Include
14806 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14807 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14808 "value.h" and "sparcnbsd-tdep.h".
14809 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14810 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14811 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14812 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14813 defines.
14814 (sparcnbsd_gregset): New variable.
14815 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14816 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14817 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14818 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14819 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14820 variables.
14821 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14822 (sparc32nbsd_sigcontext_frame_this_id)
14823 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14824 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14825 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14826 (sparcnbsd_get_longjmp_target_32,
14827 sparcnbsd_get_longjmp_target_64): Remove functions.
14828 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14829 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14830 sparcnbsd_init_elf): Remove.
14831 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14832 (sparcnbsd_elf_init_abi): New functions.
14833 (_initialize_sparcnbsd_tdep): New prototype.
14834 (_initialize_sparnbsd_tdep): Update.
14835 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14836 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14837 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14838 * config/sparc/linux.mh: Update comment.
14839 (XM_FILE, HOST_IPC): Remove variables.
14840 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14841 sparc-linux-nat.o.
14842 * config/sparc/linux.mt: Update comment.
14843 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14844 * config/sparc/nbsd.mt: Reformat.
14845 * config/sparc/nbsd64.mh: Update comment.
14846 (NATDEPFILES): Add sparc-nat.o.
14847 * config/sparc/nbsd64.mt: Update comment.
14848 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14849 (TM_FILE): Set to tm-nbsd.h.
14850 * config/sparc/nbsdelf.mh: Update comment.
14851 (NATDEPFILES): Add sparc-nat.o.
14852 (XM_FILE): Delete.
14853 * config/sparc/nbsdaout.mh: Update comment.
14854 (NATDEPFILES): Add sparc-nat.o
14855 (XM_FILE): Delete.
14856 * config/sparc/nm-linux.h: Update copyright year. Don't include
14857 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14858 inclusion.
14859 (KERNEL_U_SIZE): Remove define.
14860 (kernel_u_size): Remove prototype.
14861 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14862 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14863 "regcache.h".
14864 (CHILD_PREPARE_TO_STORE): Remove define.
14865 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14866 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14867 sparcnbsd-nat.c: Rewrite files.
14868 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14869 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14870 sparcnbsd-tdep.h: Remove files.
14871 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14872 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14873 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14874 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14875 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14876 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14877 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14878 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14879 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14880 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14881 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14882 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14883 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14884 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14885 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14886 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14887 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14888 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14889 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14890
14891 2004-01-02 Andrew Cagney <cagney@redhat.com>
14892
14893 From 2003-12-18 Kazuhiro Inaoka:
14894 * configure.host: Add m32r-linux target.
14895
14896 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14897
14898 * top.c (print_gdb_version): Update year to 2004.
14899
14900 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14901
14902 * MAINTAINERS: Add myself to the write-after-approval category.
14903
14904 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14905
14906 From Bernardo Innocenti <bernie@develer.com>:
14907 * configure.tgt: Add uClinux target.
14908
14909 2004-01-02 Andrew Cagney <cagney@redhat.com>
14910
14911 * utils.c (do_my_cleanups): Make static, add forward declaration.
14912 * defs.h (do_my_cleanups): Delete declaration.
14913
14914 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14915
14916 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14917 bfd/ChangeLog-0203.
14918
14919 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14920
14921 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14922 in <machine/reg.h>.
14923 * configure, config.in: Regenerate.
14924
14925 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14926 tui/ChangeLog-1998-2003.
14927 \f
14928 Local Variables:
14929 mode: change-log
14930 left-margin: 8
14931 fill-column: 74
14932 version-control: never
14933 End: