Correct date in last entry.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3ddae2db 12004-12-13 Joel Brobecker <brobecker@gnat.com>
a99b228b
JB
2
3 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
4 parameter name to make it clear that we already have a next
5 frame. Return the sigcontext from that next frame instead
6 of the frame following it.
7
acf86d54
RC
82004-12-13 Randolph Chung <tausq@debian.org>
9
10 * Makefile.in (pa64solib_h, somsolib_h): Delete.
11 (solib_pa64_h, solib_som_h): New.
12 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
13 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
14 (pa64solib.o, somsolib.o): Delete.
15 (solib-pa64.o, solib-som.o): New.
16 * hppa-hpux-tdep.c: Include new solib interfaces.
17 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
18 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
19 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
20 is available, use it to determine the base of unwind records.
21 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
22 * hpread.c: Replace somsolib.h with solib-som.h.
23 (hpread_process_one_debug_symbol): Use target vector to get thread
24 start address.
25 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
26 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
27 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
28 * config/pa/tm-hppah.h: Use new solib interface.
29
0efcf9dc
RC
302004-12-13 Randolph Chung <tausq@debian.org>
31
32 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
33 sections to be trampolines too.
34
048a01af 352004-12-13 Ben Elliston <bje@au.ibm.com>
323e0a4a 36
048a01af
BE
37 * f-exp.y (typename): Remove unused nonterminal.
38 (name): Likewise.
39
402004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
41
42 Committed by Andrew Cagney.
323e0a4a
AC
43 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
44 markup.
45
91a533d4
AC
462004-12-12 Andrew Cagney <cagney@gnu.org>
47
39ee2ff0
AC
48 * frame.c (get_prev_frame): When unwinding normal frames, check
49 that the PC isn't zero.
50 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
51 zero PC.
52
91a533d4
AC
53 * MAINTAINERS: Reword description of what "Target Instruction Set
54 Architectures" covers.
55
0d9b270c
MK
562004-12-12 Mark Kettenis <kettenis@gnu.org>
57
58 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
59
d3322e8a
MK
602004-12-11 Mark Kettenis <kettenis@gnu.org>
61
eeca586f
MK
62 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
63 (hppa_hpux_save_state_offset): New function, replacing variable
64 with the same name.
65 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
66 functions.
67 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
68 Use new hppa_hpux_save_state_offset function. Add special
69 handling for handling 64-bit "flags" register.
70 (hppa_hpux_store_register): Likewise.
71 (hppa_hpux_child_can_run): Tweak comment.
72
7ba0e0c2
MK
73 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
74 (inf_ttrace_attach): Likewise.
75 (inf_ttrace_resume_callback): New function.
76 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
77 lwps and call inf_ttrace_resume_callback instead.
78 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
79
d3322e8a
MK
80 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
81
e02147b1
MS
822004-12-10 Michael Snyder <msnyder@redhat.com>
83
84 * mn10300-tdep.c: New file. This is a re-implementation of
85 the mn10300 target back-end using the new frame api etc.
86 * mn10300-tdep.h: New file.
87 * config/mn10300/mn10300.mt: New file (or replace old file).
88 * configure.tgt: Add mn10300 target.
89
01926a69
MK
902004-12-10 Mark Kettenis <kettenis@gnu.org>
91
c5101575
MK
92 * configure.host (hppa*-*-hpux11*): Remove.
93 * config/pa/hpux11.mh: Remove file.
94
01926a69
MK
95 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
96 typo.
97
d737fd7f
KW
982004-12-10 Kris Warkentin <kewarken@qnx.com>
99
100 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
101 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
102 function and nto_set_target function.
103 (struct nto_target_ops): Put comments inline with struct. Add osabi
104 sniffer hook. Redefine macros to permit testing/assignment. Remove
105 nto_ prefix from members.
106 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
107 dynamically to support arbitrary root paths. Check for basename of
108 lib in search path and then check for absolute.
109 (nto_in_dynsym_resolve_code): New function.
110 (nto_core_sniffer): New function.
111 (regset_core_fns): Register core sniffer.
112 (nto_initialize_signals): New function.
113 (_initialize_nto_tdep): Move signal initialization code to above to
114 avoid initialization race conditions.
115 (nto_set_target): New function.
116 * nto-procfs.c: Minor formatting/indenting changes.
117 (procfs_is_nto_target): New function.
118 (procfs_open): Set nto_is_nto_target.
119 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
120 initialization race conditions.
121 (procfs_create_inferior): Resume inferior after creation.
122 * i386-nto-tdep.c: Declare i386_nto_target.
123 (init_i386nto_ops): Initialize i386_nto_target instead of
124 current_nto_target.
125 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
126 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
58544210
MK
127 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
128 sniffer.
d737fd7f 129
3cd36e7c
MK
1302004-12-10 Mark Kettenis <kettenis@gnu.org>
131
132 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
133 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
134 (hppa_hpux_init_abi): Reformat long line.
135
08d53055
MK
1362004-12-09 Mark Kettenis <kettenis@gnu.org>
137
138 * hppa-hpux-tdep.c: Include "regset.h".
139 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
140 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
141 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
142 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
143 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
144 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
145 functions.
146 (hppa_hpux_regset): New variable.
147 (hppa_hpux_regset_from_core_section): New function.
148 (hppa_hpux_init_abi): Set regset_from_core_section.
149 (hppa_hpux_core_osabi_sniffer): New function.
150 (_initialize_hppa_hpux_tdep): Register
151 hppa_hpux_core_osabi_sniffer.
152 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
153 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
154
45851e00
RC
1552004-12-09 Randolph Chung <tausq@debian.org>
156
157 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
158 text and data sections.
159 (pa64_current_sos): Also include the dld in the list of current shared
160 objects.
161 (pa64_solib_get_solib_by_pc): Update comments.
162 (pa64_solib_get_text_base): New function.
163 (pa64_solib_select): Set solib_get_text_base method.
164
1bac0d4d
DJ
1652004-12-08 Daniel Jacobowitz <dan@debian.org>
166
167 * linux-thread-db.c (BUILD_THREAD): Delete.
168 (thread_get_info_callback): Include LWP ID in thread ID.
169 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
170 (lwp_from_thread): Use the LWP ID from the thread ID.
171
254ce0a1
RC
1722004-12-07 Randolph Chung <tausq@debian.org>
173
174 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
175 register for both 32- and 64-bit targets.
176
cc9bed83
RC
1772004-12-07 Randolph Chung <tausq@debian.org>
178
179 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
180 are unwinding through a dummy frame.
181
f77a2124
RC
1822004-12-07 Randolph Chung <tausq@debian.org>
183
184 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
185 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
186 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
187 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
188 if defined.
189
f1b38a57
RC
1902004-12-07 Randolph Chung <tausq@debian.org>
191
192 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
193 unwinding from a frame with pc == 0.
194 (hppa_stub_frame_this_id): Likewise.
195 (hppa_stub_frame_prev_register): Only provide real values if the frame
196 cache is not NULL.
197
419b8bfb
RC
1982004-12-07 Randolph Chung <tausq@debian.org>
199
200 * solib-som.c: New file.
201 * solib-som.h: New file.
202 * solib-pa64.c: New file.
203 * solib-pa64.h: New file.
204
6e93c4f7
MK
2052004-12-07 Mark Kettenis <kettenis@gnu.org>
206
207 * Makefile.in (inf-ttrace.o): Fix typo.
208
c273b20f
JB
2092004-12-07 Jim Blandy <jimb@redhat.com>
210
211 * remote.c (remote_threads_info, remote_current_thread): Use
212 strtoul to parse thread ID numbers.
213
cc72850f
MK
2142004-12-07 Mark Kettenis <kettenis@gnu.org>
215
a7be7fa8
MK
216 * inf-ttrace.c: Include "gdbthread.h".
217 (inf_ttrace_num_lwps): New variable.
218 (inf_ttrace_num_lwps_in_syscall): Renamed from
219 inf_ttrace_num_threads_in_syscall.
220 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
221 TTEVT_LWP_TERMINATE events.
222 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
223 zero.
224 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
225 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
226 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
227 events.
228 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
229 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
230 TTEVT_LWP_TERMINATE events.
231 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
232 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
233 * Makefile.in (inf-ttrace.o): Update dependencies.
234
cc72850f
MK
235 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
236 prototypes.
237 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
238 Make global. Remove HP-UX specific code. Use
239 frame_unwind_register_unsigned instead of
240 frame_unwind_register_signed.
241 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
242 Remove HP-UX specific code.
243 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
244 (hppa_frame_prev_register_helper): Set "flags" register to zero
245 for all unwound frames.
246 (hppa_gdbarch_init): Adjust.
247 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
248 (hppa_hpux_read_pc, hppa_hpux_write_pc)
249 (hppa_hpux_unwind_pc): New functions.
250 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
251
f47b1503
AS
2522004-12-07 Andreas Schwab <schwab@suse.de>
253
254 * main.c (long_options): Add entry for "-l".
255 (print_gdb_help): Add line for -l option.
256 * NEWS: Mention it.
257
c1299d67
RC
2582004-12-05 Randolph Chung <tausq@debian.org>
259
260 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
261 DEPRECATED_REGISTER_BYTE.
262
57dac9e1
RC
2632004-12-05 Randolph Chung <tausq@debian.org>
264
265 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
266 records.
267
b1acf338
MK
2682004-12-05 Mark Kettenis <kettenis@gnu.org>
269
a61ce9b4
MK
270 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
271 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
272
b1acf338
MK
273 * hppa-hpux-tdep.c: Update copyright notice and year.
274
fcab3fb5
RE
2752004-12-05 Richard Earnshaw <rearnsha@arm.com>
276
277 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
278 (get_field, put_field): Assert that the format is one we can handle.
279 Simplify logic accordingly.
280 (floatformat_normalize_byteorder): New function.
281 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
282 to normalize and select modified byte order. Pass modified byte order
283 to get_field.
284 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
285 Likewise.
286 (convert_doublest_to_floatformat): Select an appropriate intermediate
287 byte order if necessary. Always convert to the final format before
288 returning.
289
48bb3cce
DJ
2902004-12-04 Daniel Jacobowitz <dan@debian.org>
291
292 PR tui/1703
293 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
294 Suggested by Joshua Neuheisel.
295
fe46cd3a
RC
2962004-12-03 Randolph Chung <tausq@debian.org>
297
298 * gdbarch.sh (instruction_nullified): Delete.
299 * gdbarch.c: Regenerate.
300 * gdbarch.h: Regenerate.
301 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
302 nullified.
303 (hppa_unwind_pc): Likewise.
304 (hppa_instruction_nullified): Delete.
305 (hppa_gdbarch_init): Don't set instruction_nullified method.
306 * infrun.c (infwait_states): Remove infwait_nullified_state.
307 (handle_inferior_event): Remove handling of infwait_nullified_state.
308 Remove handling of nullified instructions.
309
dd515450
MK
3102004-12-03 Mark Kettenis <kettenis@gnu.org>
311
932936f0
MK
312 * inf-ttrace.c: Include <sys/mman.h>.
313 (struct inf_ttrace_page): New.
314 (struct inf_ttrace_page_dict): New.
315 (inf_ttrace_num_threads_in_syscall)
316 (inf_ttrace_reenable_page_protections): New variables.
317 (inf_ttrace_enable_syscall_events)
318 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
319 (inf_ttrace_add_page, inf_ttrace_insert_page)
320 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
321 (inf_ttrace_enable_page_protections)
322 (inf_ttrace_disable_page_protections)
323 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
324 (inf_ttrace_can_use_hw_breakpoint)
325 (inf_ttrace_region_size_ok_for_hw_watchpoint)
326 (inf_ttrace_stopped_by_watchpoint): New functions.
327 (inf_ttrace_him): Remove unsused varaible `tts'.
328 (inf_ttrace_create_inferior): Add assertionts.
329 (inf_ttrace_mourn_inferior): Clear page dictionary.
330 (inf_ttrace_attach): Set initial event mask.
331 (inf_ttrace_detach): Reset number of threads in system call.
332 (inf_ttrace_wait): Deal with system call events.
333 (inf_ttrace_target): Initialize "hardware" watchpoint-related
334 parts of the target vector.
335 (_initialize_inf_ttrace): New prototype and function.
336
dd515450
MK
337 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
338 type of `gp' variable.
339
73fb7068
RS
3402004-12-03 Richard Sandiford <rsandifo@redhat.com>
341
342 * README: Remove config.if from directory listing.
343
515921d7
JB
3442004-12-01 Joel Brobecker <brobecker@gnat.com>
345
346 * alpha-tdep.c (alpha_register_name): Add comment.
347 (alpha_cannot_fetch_register): Exclude registers numbers which
348 are no longer used from the list of registers that can be fetched.
349 (alpha_cannot_store_register): Exclude registers numbers which
350 are no longer used from the list of registers that can be stored.
351 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
352 core_reg_mapping array.
353
1cc759c3
JB
3542004-12-01 Joel Brobecker <brobecker@gnat.com>
355
356 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
357 the register value from the correct frame.
358
b546247c
RC
3592004-11-30 Randolph Chung <tausq@debian.org>
360
361 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
362 (hppa_linux_in_dyncall): Check that we are inside the range of
363 $$dyncall, not necessarily at the first insn.
364 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
365 even if the pc does not point to the first insn of the trampoline.
366
46905982
RC
3672004-11-30 Randolph Chung <tausq@debian.org>
368
369 * breakpoint.c (break_at_finish_command): Delete.
370 (break_at_finish_command_1): Delete.
371 (break_at_finish_at_depth_command): Delete.
372 (break_at_finish_at_depth_command_1): Delete.
373 (tbreak_at_finish_command): Delete.
374 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
375 and bx commands.
376
80b93d6b
AC
3772004-11-30 Andrew Cagney <cagney@gnu.org>
378
a7711b1f
AC
379 * config/nm-gnu.h: Delete file.
380 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
381
80b93d6b
AC
382 * config/nm-sysv4.h: Delete file.
383 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
384 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
385 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
386 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
387 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
388
31ffb221
AC
3892004-11-29 Andrew Cagney <cagney@gnu.org>
390
391 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
392 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
393 as can-commit architecture developers.
91a533d4 394
3919e12c
MK
3952004-11-29 Mark Kettenis <kettenis@gnu.org>
396
075ccec8
MK
397 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
398 (sparc32_skip_prologue): Skip instructions that store arguments in
399 registers into their corresponding stack slots.
400
388e0111
MK
401 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
402 tm-solib.h.
403 * config/m68k/obsd.mh (NAT_FILE): Likewise.
404
19671c2b
MK
405 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
406 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
407 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
408 sparc32nbsd_elf_init_abi. Remove duplicate code.
409
77a7fe6d
MK
410 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
411 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
412 * config/sparc/nm-nbsd.h: Remove file.
413 * config/sparc/nm-nbsdaout.h: Remove file.
414
cbfc58d1
MK
415 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
416 (sparc_xfer_partial): New function.
417 (sparc_target): Save value of to_xfer_partial from ptrace vector.
418 Set to_xfer_partial.
419
3919e12c
MK
420 * fork-child.c (fork_inferior): Fork instead of vfork if
421 PRE_TRACE_FUN is non-null.
422
ebd98106
FF
4232004-11-24 Fred Fish <fnf@specifixinc.com>
424
425 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
426 compiler generated function calls made as part of a prologue.
427
eee22bf8
MK
4282004-11-23 Mark Kettenis <kettenis@gnu.org>
429
430 * inf-ttrace.c: New file.
431 * inf-ttrace.h: New file.
432 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
433 Include "inf-ttrace.h".
434 (ss_mpsfu_high): Define to ss_tlsp if necessary.
435 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
436 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
437 ptrace systems.
438 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
439 instead of inf_ptrace_target.
440 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
441 * Makefile.in (inf_ttrace_h): New variable.
442 (hppa-hpux-nat.o): Update dependency.
443 (inf-ttrace.o): New dependency.
444 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
445
3ca64954
RC
4462004-11-23 Randolph Chung <tausq@debian.org>
447
448 * arch-utils.c (generic_instruction_nullified): New.
449 * arch-utils.h (generic_instruction_nullified): New.
450 * gdbarch.sh (instruction_nullified): New method.
451 * gdbarch.c: Regenerate.
452 * gdbarch.h: Regenerate.
453 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
454 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
455 new gdbarch method.
456 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
457 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
458 static. Rewrite to work directly off the passed regcache.
459 (hppa_gdbarch_init): Set instruction_nullified method.
460
5465445a
JB
4612004-11-23 Joel Brobecker <brobecker@gnat.com>
462
463 * sparc-tdep.c (sparc_is_unimp_insn): New function.
464 (sparc32_frame_cache): For functions where there is no debugging
465 information to help us determine whether it's a struct-return
466 function or not, fallback on checking whether the instruction
467 at the return address is an "unimp" instruction or not.
468
3f6306ec
DA
4692004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
470
871cce51
DA
471 * MAINTAINERS: Add myself to write after approval section.
472
3f6306ec
DA
473 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
474 hpux-thread.c to suppress children from running.
475 (hppa_hpux_child_can_run): New function.
476 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
477 * hpux-thread.c: Include string.h and hppa-tdep.h.
478 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
479 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
480 (hpux_thread_store_registers): Replace deprecated_registers with
481 calls to regcache_raw_read.
482 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
483
f5ccf7a2
MK
4842004-11-21 Mark Kettenis <kettenis@gnu.org>
485
486 * sparc64fbsd-nat.c: Update copyright year.
487 (_initialize_sparc64fbsd_nat): Construct and add target vector.
488 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
489 inftarg.o.
490
8c3900e4
DJ
4912004-11-21 Daniel Jacobowitz <dan@debian.org>
492
493 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
494
b957e937
DJ
4952004-11-21 Daniel Jacobowitz <dan@debian.org>
496
497 * linux-nat.c (my_waitpid): New function.
498 (linux_test_for_tracefork): Make more robust and verbose. Take
499 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
500 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
501 argument. Update calls to linux_test_for_tracefork.
502 (linux_enable_event_reporting, child_follow_fork)
503 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
504 (child_insert_exec_catchpoint): Update calls to
505 linux_supports_tracefork and linux_supports_tracevforkdone.
506
65d3800a
DJ
5072004-11-21 Daniel Jacobowitz <dan@debian.org>
508
509 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
510 (value_subscripted_rvalue): Likewise.
511 * valops.c (search_struct_field, value_slice): Likewise.
512
2c4a536d
MK
5132004-11-21 Mark Kettenis <kettenis@gnu.org>
514
515 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
516 Reorder includes a bit. Fix comment.
517 * Makefile.in (inf-ptrace.o): Update dependencies.
518
fefa1888
AS
5192004-11-21 Andreas Schwab <schwab@suse.de>
520
521 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
522 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
523 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
524 to glibc_skip_solib_resolver.
525 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
526 solib-legacy.o.
527 * Makefile.in (m68klinux-tdep.o): Update dependencies.
528
d564a7d4
DA
5292004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
530
531 * infttrace.h (ttrace_write_reg_64): Add prototype.
532 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
533 expression.
534 (store_inferior_registers): Correct formatting. Replace uses of
535 deprecated_registers with calls to regcache_raw_read,
536 regcache_raw_write_part and regcache_raw_read_part.
537
3f70a5e9
MK
5382004-11-21 Mark Kettenis <kettenis@gnu.org>
539
540 * config/pa/hppahpux.mh: Remove file.
541 * config/pa/hpux1020.mh: Remove file.
542
ced0d73d
AS
5432004-11-20 Andreas Schwab <schwab@suse.de>
544
545 * configure.host: Set host floatformat for m68k.
546
fcf54f50
EZ
5472004-11-20 Eli Zaretskii <eliz@gnu.org>
548
549 * config/djgpp/fnchange.lst: Resolve file-name clash between
550 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
551
a7289609
MK
5522004-11-20 Mark Kettenis <kettenis@gnu.org>
553
eeb8076c
MK
554 * hppa-hpux-nat.c: New file.
555 * config/pa/hpux.mh (NATDEPFILES): New file.
556 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
557 (hppa-hpux-nat.o): New dependency.
558 * configure.host: Remove hppa*-*-hpux10.20.
559 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
560
f6ffd89b
MK
561 * inf-ptrace.c: Fix coding style.
562
f1bc22da
MK
563 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
564 * infptrace.c (call_ptrace): Simply call ptrace with four
565 arguments.
566
e31272c3
MK
567 * dbxread.c (process_one_symbol): Fix a few coding standard
568 issues. Improve code formatting.
569
91f54576
MK
570 * dbxread.c: Include "gdb_string.h".
571 (record_minimal_symbol, read_ofile_symtab): Replace
572 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
573 * Makefile.in (dbxread.o): Update dependencies.
574
a7289609
MK
575 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
576 of bytes read for aligned LEB128 encodings.
577
57ac95b8
MK
5782004-11-19 Mark Kettenis <kettenis@gnu.org>
579
580 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
581 parse_and_eval_address to u_long before converting it to a pointer
582 type.
583 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
584 ps_strings from int to u_long.
585 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
586 u_long instead of CORE_ADDR.
587
ceddaf06
MK
5882004-11-18 Mark Kettenis <kettenis@gnu.org>
589
590 * dbxread.c (process_one_symbol): Do not adjust address of first
591 N_SLINE stab for a function for code generated by non-GCC
592 compilers.
593
915a2d21
KB
5942004-11-18 Kevin Buettner <kevinb@redhat.com>
595
596 * solib-null.c: New file.
597
92790ee7
AC
5982004-11-17 Andrew Cagney <cagney@gnu.org>
599
600 * MAINTAINERS: Drop MIPS and remote.
601
0c16dd26
AC
6022004-11-15 Andrew Cagney <cagney@gnu.org>
603
604 * findvar.c (value_of_register): Set the frame ID.
605 * value.c (value_primitive_field): Copy the frame ID.
606 * valops.c (value_assign): Simplify lval_register case, there's
607 always a frame.
608
2fdf551c
DJ
6092004-11-14 Daniel Jacobowitz <dan@debian.org>
610
611 * Makefile.in (mips-linux-tdep.o): Update dependencies.
612 * mips-linux-tdep.c: Include "regcache.h".
613 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
614
98754800
DJ
6152004-11-14 Daniel Jacobowitz <dan@debian.org>
616
617 * Makefile.in (linux-thread-db.o): Fix typo in last change.
618
ed89d175
DJ
6192004-11-14 Daniel Jacobowitz <dan@debian.org>
620
621 * linux-thread-db.c: New file, renamed from thread-db.c.
622 * thread-db.c: Remove.
623 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
624 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
625 to linux-thread-db.o.
626 * config/arm/linux.mh (NATDEPFILES): Likewise.
627 * config/i386/linux.mh (NATDEPFILES): Likewise.
628 * config/i386/linux64.mh (NATDEPFILES): Likewise.
629 * config/ia64/linux.mh (NATDEPFILES): Likewise.
630 * config/m32r/linux.mh (NATDEPFILES): Likewise.
631 * config/m68k/linux.mh (NATDEPFILES): Likewise.
632 * config/mips/linux.mh (NATDEPFILES): Likewise.
633 * config/pa/linux.mh (NATDEPFILES): Likewise.
634 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
635 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
636 * config/s390/s390.mh (NATDEPFILES): Likewise.
637 * config/sparc/linux.mh (NATDEPFILES): Likewise.
638 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
639
8851ec7a
AC
6402004-11-13 Andrew Cagney <cagney@gnu.org>
641
f97fe8ff
AC
642 * config/i386/i386lynx.mh: Delete file.
643 * config/i386/i386lynx.mt: Delete file.
644 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
645 * i386ly-tdep.c: Delete.
646
5873946b
AC
647 * config/tm-lynx.h: Delete, inline contents ...
648 * config/rs6000/tm-rs6000ly.h: ... here.
649
a69637bd
AC
650 * config/tm-sysv4.h: Delete file, inlining contents.
651 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
652 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
653 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
654
8851ec7a
AC
655 * regcache.h (deprecated_register_valid): Delete.
656 (deprecated_registers): Delete.
657 * regcache.c (deprecated_register_valid): Delete.
658 (deprecated_registers): Delete.
659 (deprecated_read_register_byte, _initialize_regcache)
660 (deprecated_write_register_bytes, build_regcache): Update.
661 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
662 remote-sds.o.
663 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
664 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
665
9445aa30
AC
666 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
667 v850-*-* under removed.
668 * configure.host: Delete ns32k-*-netbsd*.
669 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
670 ns32k-*-netbsd*, and v850*-*-*.
671 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
672 "Deleted"
673 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
674 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
675 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
676 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
677 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
678 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
679 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
680 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
681 * v850-tdep.c: Delete.
682
f6e1bffc
JB
6832004-11-13 Joel Brobecker <brobecker@gnat.com>
684
685 * irix5-nat.c (fetch_core_registers): Replace use of
686 deprecated_registers by equivalent code.
687
44ed547b
JB
6882004-11-13 Joel Brobecker <brobecker@gnat.com>
689
690 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
691 with equivalent code.
692 (fill_fpregset): Likewise.
693
e84ecc99
AC
6942004-11-13 Andrew Cagney <cagney@gnu.org>
695
ca1a823a
AC
696 * MAINTAINERS: Do not list "Deleted" architectures.
697
e84ecc99
AC
698 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
699 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
700 sparc-*-vxworks*.
701 * NEWS: Mention that vxworks was deleted.
702 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
703 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
704 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
705 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
706 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
707 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
708 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
709 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
710 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
711 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
712 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
713 * remote-vxmips.c, remote-vx.c: Delete.
714 * remote-vx68.c: Delete.
715 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
716 * config/m68k/os68k.mt, ada-lang.h: Ditto.
717 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
718 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
719
01e937bc
EZ
7202004-11-13 Eli Zaretskii <eliz@gnu.org>
721
29247324
EZ
722 * config/i386/xm-go32.h: Don't include fopen-bin.h.
723 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
724
725 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
726 branch that doesn't define CRLF_SOURCE_FILES; always use
727 binary-mode open.
728 (print_source_lines_base, forward_search_command)
729 (reverse_search_command): Enable the code that accepts DOS-style
730 CRLF line endings on all platforms (this removes the need for
731 CRLF_SOURCE_FILES).
732
f8f0d88a 733 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 734 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 735
01e937bc
EZ
736 * config/djgpp/fnchange.lst: Group renames for opcode directory
737 together.
738
739 * config/djgpp/djconfig.sh: Replace file names that don't exist
740 anymore with existing files, for checking the unpacked
741 distribution.
742
743 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
744 Export pre-cooked values in configure-* targets that begin with
745 "@test -f stage_last".
746
25ae5d16
AC
7472004-11-12 Andrew Cagney <cagney@gnu.org>
748
749 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
750 * value.h (struct value): Update comment.
751 * valops.c (value_assign): Fold lval_reg_fame_relative into
752 lval_register.
753 * findvar.c (value_from_register, locate_var_value): Ditto.
754
d7318818
RC
7552004-11-12 Randolph Chung <tausq@debian.org>
756
757 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
758 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
759 (write_exp_msymbol): Remove conditional check for symbols starting
760 with $. Update comments.
761
89676665
RC
7622004-11-12 Randolph Chung <tausq@debian.org>
763
764 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
765 so_lib_thread_start_addr.
766 * pa64solib.h (so_list): Forward declare.
767 (pa64_solib_thread_start_addr): Prototype.
768 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
769 (no_shared_libraries): Remove.
770 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
771 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
772 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
773 the elf solib handler to find the start address.
774
775 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
776 files to the target makefile.
777 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
778 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
779 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
780
781 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 782 files for symbol reading and shared library handling here.
89676665 783 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
784 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
785 without bringing in 64-bit support.
89676665 786
df407dfe
AC
7872004-11-12 Andrew Cagney <cagney@gnu.org>
788
4991999e
AC
789 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
790 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
791 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
792 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
793 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
794 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
795 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
796
9ee8fc9d
AC
797 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
798 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
799 (VALUE_REGNUM): Define.
800 (struct value): Delete location.regnum, rename "regno" to
801 "regnum".
802 * value.c, valops.c, valarith.c, findvar.c: Update.
803
df407dfe
AC
804 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
805 (VALUE_BITPOS): Delete.
806 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
807 * value.c (value_type, value_offset, value_bitpos)
808 (value_bitsize): New functions. Update references.
809 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
810 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
811 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
812 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
813 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
814 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
815 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
816 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
817 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
818
61c82a3b
AC
8192004-11-12 Andrew Cagney <cagney@gnu.org>
820
821 * cris-tdep.c (cris_register_offset): Delete, never called.
822 (cris_spec_reg_applicable): Delete cris_ver_sim.
823 * MAINTAINERS: List d10v as OBSOLETE.
824 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
825 FOPEN_WB et.al., defined by "fopen-bin.h".
826
5aac166f
RC
8272004-11-12 Randolph Chung <tausq@debian.org>
828
829 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
830 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
831 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
832 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
833
4fab48b9
MK
8342004-11-12 Mark Kettenis <kettenis@jive.nl>
835
836 * tui/tui-io.c: Don't include "terminal.h".
837 * Makefile.in (tui-io.o): Update dependencies.
838
9b098f24
KI
8392004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
840
841 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
842 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
843 set_gdbarch_regset_from_core_section for core file support.
844 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
845 New functions.
846
a71f8c30
RC
8472004-11-11 Randolph Chung <tausq@debian.org>
848
849 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
850 stop_after_branch parameter and use it to determine if we should look
851 at the delay slot of the first branch insn to find prologue insns.
852 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
853 (hppa_frame_cache): Likewise.
854
50b2f48a
RC
8552004-11-11 Randolph Chung <tausq@debian.org>
856
857 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
858 register so that it can be unwound from anywhere in the prologue.
859
be723e22
MS
8602004-11-10 msnyder <msnyder@redhat.com>
861
862 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
863 must invalidate lr_reg (so we don't try to save it again).
864 Ditto for cr_offset and cr_reg.
865
d6f7abdf
AC
8662004-11-05 Jon Beniston <jon@beniston.com>
867
216c5547 868 Committed by Andrew Cagney.
d6f7abdf
AC
869 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
870 when an unexpected packet is received, as the target stubs
871 continually retransmit the same packet until ACKed.
872
1d225535
RC
8732004-11-10 Randolph Chung <tausq@debian.org>
874
875 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 876 frame's type.
1d225535 877
2315ffec
RC
8782004-11-10 Randolph Chung <tausq@debian.org>
879
880 * blockframe.c (inside_entry_func): Move to .....
881 * frame.c (inside_entry_func): ... here, and make static.
882 (backtrace_past_entry): New flag.
883 (get_prev_frame): Stop backtrace at the entry function if enabled
884 by flag. Update comments.
885 (_initialize_frame): Add command to set backtrace_past_entry flag.
886 * defs.h (inside_entry_func): Remove prototype.
887
917c78fc
MK
8882004-11-10 Mark Kettenis <kettenis@gnu.org>
889
890 * dwarf2read.c: Fix formatting.
891
994b9211
AC
8922004-11-10 Andrew Cagney <cagney@gnu.org>
893
894 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
895 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
896 macros with function declarations.
897 * value.c (coerce_ref, coerce_array, coerce_number)
898 (coerce_enum): New functions.
899 (value_as_long, value_as_address): Update.
900 * ada-lang.c (ada_coerce_ref, ada_value_binop)
901 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
902 * jv-lang.c (evaluate_subexp_java): Update.
903 * valarith.c (value_less, value_neg, value_complement)
904 (value_binop, value_add, value_subscript, value_x_binop)
905 (value_logical_not, value_sub): Update.
906 * valops.c (check_field, value_struct_elt, value_ind)
907 (value_find_oload_method_list, value_cast, value_assign): Update.
908 * eval.c (evaluate_subexp_standard): Update.
909
06987e64
MK
9102004-11-10 Mark Kettenis <kettenis@gnu.org>
911
912 * mips-tdep.c (mips32_relative_offset): Change return type to
913 LONGEST, change argument type to ULONGEST. Fix sign-extension.
914
4a302917
RC
9152004-11-10 Randolph Chung <tausq@debian.org>
916
917 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
918 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
919 (hppa_fetch_pointer_argument): Likewise.
920 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
921 deprecated_read_memory_nobpt.
922 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
923 add_set_cmd sequence with add_setshow_boolean_cmd.
924
390e974f
AC
9252004-11-09 Andrew Cagney <cagney@gnu.org>
926
927 GDB 6.3 released from GDB 6.3 branch.
928
92e023d6
AC
9292004-11-09 Andrew Cagney <cagney@gnu.org>
930
931 * values.c: Rename to ...
932 * value.c: ..., new file.
933 * Makefile.in: Update.
934
d10891d4
DJ
9352004-11-09 Daniel Jacobowitz <dan@debian.org>
936
937 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
938 size.
939
00a4c844
AC
9402004-11-09 Andrew Cagney <cagney@gnu.org>
941
c44523e7
AC
942 * TODO: Delete.
943
00a4c844
AC
944 * value.h (struct value): Delete field bfd_section.
945 (VALUE_BFD_SECTION): Delete macro.
946 (COERCE_REF): Update.
947 (value_at, value_at_lazy): Delete asection parameter.
948 * printcmd.c (print_formatted, x_command): Update.
949 (do_examine): Delete asection parameter.
950 (next_section): Delete variable.
951 * valops.c (value_cast, value_at, value_at_lazy)
952 (value_coerce_function, value_addr, value_ind, value_string)
953 (find_rt_vbase_offset, value_full_object): Update.
954 * hpacc-abi.c (hpacc_virtual_fn_field)
955 (hpacc_value_rtti_type): Update.
956 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
957 (gnuv3_baseclass_offset): Update.
958 * f-valprint.c (f_val_print): Update.
959 * c-valprint.c (c_val_print): Update.
960 * p-valprint.c (pascal_val_print): Update.
961 * jv-valprint.c (java_value_print): Update.
962 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
963 * ada-lang.c (ada_value_primitive_packed_val)
964 (ada_evaluate_subexp): Update.
965 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
966 * expprint.c (print_subexp_standard): Update.
967 * infcall.c (call_function_by_hand): Update.
968 * valarith.c (value_add): Update.
969 * eval.c (evaluate_subexp_standard): Update.
970 * values.c (allocate_value, value_copy, value_static_field): Update.
971 * findvar.c (read_var_value, locate_var_value): Update.
972
5cb2fe25
AC
9732004-11-09 Andrew Cagney <cagney@gnu.org>
974
975 * i386-linux-tdep.c: Include "dwarf2-frame.h".
976 * Makefile.in: Update all dependencies.
977
cbafadeb
AC
9782004-11-08 Andrew Cagney <cagney@gnu.org>
979
980 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
981 (sentinel_frame_unwinder): Add the prev_pc method.
982 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
983 available. Do not handle the sentinel-frame case.
984 * frame-unwind.h (frame_prev_register_ftype): Define.
985 (struct frame_unwind): Add prev_pc;
986
3b78cdbb
DA
9872004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
988
989 * configure.in: Check for ncurses/term.h.
990 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
991 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
992 * tui/tui.c: Don't include term.h.
993 * configure, config.in: Rebuilt.
994
bcfca652
MK
9952004-11-08 Mark Kettenis <kettenis@gnu.org>
996
997 * m68kbsd-nat.c: Include "inf-ptrace.h".
998 (_initialize_m68kbsd_nat): Fix pasto.
999 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1000
527159b7
RC
10012004-11-08 Randolph Chung <tausq@debian.org>
1002
1003 * infrun.c (debug_infrun): New variable.
1004 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1005 (handle_inferior_event, keep_going): Likewise.
1006 (_initialize_infrun): Register "set debug infrun" command.
1007
c874c7fc
AS
10082004-11-08 Andreas Schwab <schwab@suse.de>
1009
1010 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1011 PTRACE_EVENT_VFORKDONE.
1012 (child_follow_fork): Adjust.
1013
3c8fa307
AC
10142004-11-08 Andrew Cagney <cagney@gnu.org>
1015
5c26072a
AC
1016 * README: Refer to 6.3, not 6.2, update directory listing droppng
1017 references to intl/ and mmalloc/.
1018 * PROBLEMS: Refer to 6.3 not 6.2.
1019
3c8fa307
AC
1020 * PROBLEMS: Delete no-longer applicable problems.
1021
12b8a2cb
DJ
10222004-11-07 Andrew Cagney <cagney@redhat.com>
1023 Daniel Jacobowitz <dan@debian.org>
1024 Roland McGrath <roland@redhat.com>
1025
1026 * Makefile.in (symfile-mem.o): Update dependencies.
1027 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1028 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1029 * inf-ptrace.c (inf_ptrace_attach): Call
1030 observer_notify_inferior_created.
1031 * inftarg.c (child_attach): Likewise.
1032 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1033 (symbol_file_add_from_memory): Take NAME argument. Use it for
1034 the new BFD's filename.
1035 (add_symbol_file_from_memory_command): Update call to
1036 symbol_file_add_from_memory.
1037 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1038 (symbol_file_add_from_memory_wrapper): New.
1039 (_initialize_symfile_mem): Register add_vsyscall_page as an
1040 inferior_created observer.
1041
abbc6945
MK
10422004-11-07 Mark Kettenis <kettenis@gnu.org>
1043
1044 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1045 fetch_inferior_registers. Make static.
1046 (m68kbsd_store_inferior_registers): Rename from
1047 store_inferior_registers. Make static.
1048 (_initialize_m68kbsd_nat): Construct and add target vector.
1049 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1050 inftarg.o. Add inf-ptrace.o.
1051 (NAT_FILE): Set to tm-solib.h.
1052 (LOADLIBES): New variable.
1053 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1054 inftarg.o. Add inf-ptrace.o.
1055 (NAT_FILE): Delete variable.
1056 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1057 inftarg.o. Add inf-ptrace.o.
1058 (NAT_FILE): Set to tm-solib.h.
1059 * config/m68k/nm-nbsdaout.h: Remove file.
1060
3ed09a32
DJ
10612004-11-07 Daniel Jacobowitz <dan@debian.org>
1062
1063 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1064 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1065 (dwarf2_signal_frame_unwind): New.
1066 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1067 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1068
8e763687
MK
10692004-11-07 Mark Kettenis <kettenis@gnu.org>
1070
4fb31ed0
MK
1071 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1072
fabe86c8
MK
1073 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1074 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1075 to only include the structure members we actually need.
1076 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1077 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1078 only include the structure members we actually need.
1079 (mipsnbsd_init_abi): Update.
1080
366e93e8
MK
1081 * mips64obsd-nat.c: Include "mips-tdep.h".
1082 (MIPS64OBSD_NUM_REGS): Remove define.
1083 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1084 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1085 floating-point registers correctly.
1086 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1087
8e763687
MK
1088 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1089 "gdb_assert.h".
1090 (mips64obsd_sigframe_init): New function.
1091 (mips64obsd_sigframe): New variable.
1092 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1093 unwinder.
1094 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1095
5f6a2351
JB
10962004-11-06 Joel Brobecker <brobecker@gnat.com>
1097
1098 * alpha-mdebug-tdep.c: #include mdebugread.h.
1099 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1100 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1101
f059bf6f
AC
11022004-11-05 Andrew Cagney <cagney@gnu.org>
1103
1104 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1105 CFI and the init_reg method leave the register unspecified.
1106 Include the register name in the "Incomplete CFI data" complaint.
1107 Supress leading zeros in the address.
1108
1234d960
MK
11092004-11-05 Mark Kettenis <kettenis@gnu.org>
1110
1111 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1112 skipping a personality routine in a CIE augmentation.
1113
d75e3c94
JJ
11142004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1115
1116 * defs.h (fatal, vfatal): New function prototypes.
1117 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1118 via catch_errors.
1119 (backtrace_command): Change to call backtrace_command_stub via
1120 catch_errors instead of calling backtrace_command_1 directly.
1121 (backtrace_full_command): Ditto.
1122 * utils.c (error_stream_1): New static function.
1123 (verror): Change to call error_stream_1 instead of error_stream.
1124 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1125 (vfatal, fatal): New functions.
1126
98f276a0
AC
11272004-11-05 Andrew Cagney <cagney@gnu.org>
1128
1129 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1130 when not using selected frame.
1131
f724bf08
MK
11322004-11-05 Mark Kettenis <kettenis@jive.nl>
1133
1134 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1135 personality routine in a CIE augmentation.
1136
c789492a
FL
11372004-11-05 Felix Lee <felix+log1@specifixinc.com>
1138
1139 * stack.c (set_current_sal_from_frame): New function.
1140 (print_args_stub): Use it.
1141 (print_frame_info): Don't set sal here.
1142
a81b10ae
MK
11432004-11-04 Mark Kettenis <kettenis@gnu.org>
1144
1145 * dwarf2-frame.c (read_encoded_value): Change type of third
1146 argument to `unsigned char *'. Add support for LEB128 encodings.
1147
ad766c0a
JB
11482004-11-04 Jim Blandy <jimb@redhat.com>
1149
1150 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1151 prevent cross-objfile references.
1152 (make_cv_type): Doc fix. Don't create cross-objfile references,
1153 even for stub types.
1154 (replace_type): Add assertion to prevent cross-objfile references.
1155 (check_typedef): Never resolve a stub type by copying over a type
1156 from another file.
1157
c46b0409 11582004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1159
c46b0409
KI
1160 * Makefile.in (m32r-tdep.o): Update dependencies.
1161 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1162 ABI-specific overrides.
1163
9f0b0322 11642004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1165
9f0b0322
KI
1166 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1167 unnecessary parallel execution bit.
1168 (m32r_memory_remove_breakpoint): Ditto.
1169 (m32r_breakpoint_from_pc): Update.
1170
d5c27f81
RC
11712004-11-03 Randolph Chung <tausq@debian.org>
1172
1173 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 1174 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
1175 (hppa_frame_this_id): Likewise.
1176
4577593c
AC
11772004-11-03 Andrew Cagney <cagney@gnu.org>
1178
1179 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1180 packet, obsolete configurations, end-of-life deprecated_registers.
1181
b04de778
MK
11822004-11-02 Mark Kettenis <kettenis@gnu.org>
1183
1184 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1185 encodings as well as unsigned encodings.
1186
9f2feefc
AC
11872004-11-02 Andrew Cagney <cagney@gnu.org>
1188
1189 * value.h (COERCE_VARYING_ARRAY): Delete.
1190 * valops.c (value_cast, value_slice): Delete use.
1191 * valarith.c (value_subscript, value_concat): Delete use.
1192
117ea3cf
PH
11932004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1194
1195 * NEWS: GDB understands GNAT Ada.
1196
0bbc026e
JM
11972004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1198
1199 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1200 (amd64-sol2-tdep.o): Add dependencies.
1201 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1202 config/i386/sol2-64.mt: New files.
1203 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1204 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1205 (supply_gregset): Correct order of arguments to
1206 amd64_supply_native_gregset.
1207 (fill_gregset): Correct order of arguments to
1208 amd64_collect_native_gregset.
1209 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1210 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1211 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1212 for definition of NEW_PROC_API.
1213 * configure: Regenerate.
1214
3d38a0a5
JM
12152004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1216
1217 * MAINTAINERS (Write After Approval): Add myself.
1218
f81cd1cf
AC
12192004-11-01 Andrew Cagney <cagney@gnu.org>
1220
1221 * configure.tgt: Mark d10v-*-* as obsolete.
1222 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1223
f4e88c8e
PH
12242004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1225
1226 * values.c (modify_field): Correct handling of bit-fields that
1227 don't fit in 32 bits. Use unsigned operations throughout and
1228 simplify the code a bit. Document preconditions.
1229
84674fe1
AC
12302004-10-31 Andrew Cagney <cagney@gnu.org>
1231
96693b3a
AC
1232 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1233 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1234 (in_plt_section): Delete.
1235
6f296f8f
AC
1236 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1237 (mips_gdbarch_init): Do not set same.
1238
618501c0
AC
1239 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1240 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1241
b22e8f02
AC
1242 * gdbarch.sh (in_solib_call_trampoline): Delete.
1243 * gdbarch.h, gdbarch.c: Re-generate.
1244
84674fe1
AC
1245 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1246 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1247 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1248 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1249 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1250
c6d1029f
MK
12512004-10-31 Mark Kettenis <kettenis@gnu.org>
1252
1253 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1254 (mipsnbsd_fetch_inferior_registers): Rename from
1255 fetch_inferior_registers. Make static.
1256 (mipsnbsd_store_inferior_registers): Rename from
1257 store_inferior_registers. Make static.
1258 (_initialize_mipsnbsd_nat): New function and prototype.
1259 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1260 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1261 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1262 inf-ptrace.o.
1263
bd9ca83f
AC
12642004-10-31 Andrew Cagney <cagney@gnu.org>
1265
19d718a3
AC
1266 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1267 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1268 delete corresponding unused function.
1269 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1270 in_solib_call_trampoline.
1271 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1272 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1273 * config/mips/tm-nbsd.h: Ditto.
1274 * config/arm/tm-linux.h: Ditto.
1275 * config/mips/tm-linux.h: Ditto.
1276
e8ce19c0
AC
1277 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1278 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1279 in_solib_call_trampoline, delete corresponding unused function.
1280 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1281 (vaxnbsd_aout_init_abi): Ditto.
1282 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1283 (sparc32nbsd_aout_init_abi): Ditto.
1284 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1285 (ppc_linux_init_abi): Ditto.
1286 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1287 (ns32knbsd_init_abi_aout): Ditto.
1288 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1289 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1290 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1291 (m68kbsd_aout_init_abi): Ditto.
1292 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1293 (i386_cygwin_init_abi): Ditto.
1294 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1295 (i386bsd_init_abi): Ditto.
1296
af380d61
AC
1297 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1298 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1299 isn't used by this architecture.
1300 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1301 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1302 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1303 * s390-tdep.c (s390_gdbarch_init): Ditto.
1304 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1305 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1306 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1307 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1308 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1309 * amd64-tdep.c (amd64_init_abi): Ditto.
1310
0528d9f7
AC
1311 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1312 in_solib_call_trampoline to its default value of
1313 generic_in_solib_call_trampoline.
1314 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1315 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1316 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1317 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1318 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1319 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1320
f9f9eacb
AC
1321 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1322
a4ffd1e7
AC
1323 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1324
82e34d2f
AC
1325 * config/mips/tm-mips.h: Delete file.
1326 * remote-mips.c: Delete tm-mips.h from comment.
1327 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1328 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1329 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1330 * config/mips/tm-linux.h: Don't include tm-mips.h.
1331 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1332 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1333 * config/mips/tm-wince.h: Don't include.
1334
75dec9cf
AC
1335 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1336 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1337 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1338 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1339
bd9ca83f
AC
1340 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1341 * mdebugread.c (ecoff_relocate_efi): Delete function.
1342 * objfiles.c (objfile_relocate): Delete #ifdef
1343 MDEBUG_EFI_SYMBOL_NAME code.
1344
3352ef37
AC
13452004-10-31 Orjan Friberg <organ.friberg@axis.com>
1346 Andrew Cagney <cagney@gnu.org>
1347
1348 * gdbarch.sh (single_step_through_delay): Add.
1349 * gdbarch.h, gdbarch.c: Re-generate.
1350 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1351 (mips_step_skips_delay): Delete.
1352 * mips-tdep.c (mips_single_step_through_delay): Replace
1353 mips_step_skips_delay.
1354 (mips_gdbarch_init): Set single_step_through_delay.
1355 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1356
2440b685
MK
13572004-10-31 Mark Kettenis <kettenis@gnu.org>
1358
1359 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1360 from TRAMP_FRAME frame type.
1361
56a2fed5
AC
13622004-10-31 Andrew Cagney <cagney@gnu.org>
1363
9b792b1d
AC
1364 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1365
0a5e8d98
AC
1366 * mips-tdep.c (mips_ignore_helper): Delete.
1367 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1368 * infrun.c (handle_inferior_event): Delete #ifdef
1369 DEPRECATED_IGNORE_HELPER_CALL code.
1370
56a2fed5
AC
1371 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1372
f69c55b2
MK
13732004-10-31 Mark Kettenis <kettenis@gnu.org>
1374
1375 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1376 (fill_fpregset): Do not compile for 64-bit systems.
1377 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1378 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1379 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1380
d37cca3d
AC
13812004-10-30 Andrew Cagney <cagney@gnu.org>
1382
36b8628e
AC
1383 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1384 (struct mdebug_extra_func_info): Define.
1385 * config/alpha/tm-alpha.h: Delete same.
1386 * config/mips/tm-mips.h: Delete same.
1387 * mdebugread.c: Delete same.
1388 * Makefile.in: Update dependencies.
1389 * mips-mdebug-tdep.c: Include "mdebugread.h".
1390
5b123146
AC
1391 * objfiles.c: Include "mdebugread.h".
1392 * mdebugread.c: Include "mdebugread.h".
1393 (ecoff_relocate_cfi): Delete.
1394 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1395 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1396 * mdebugread.h (ecoff_relocate_efi): New file.
1397 * Makefile.in: Update dependencies.
1398
b9c3a7de
AC
1399 * mips-tdep.c (struct frame_extra_info): Delete.
1400 (temp_proc_desc): Delete.
1401
f92761ec
AC
1402 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1403 MIPS_EFI_SYMBOL_NAME.
1404 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1405 (struct mdebug_extra_func_info): Replace struct
1406 alpha_extra_func_info and alpha_extra_func_info_t.
1407 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1408 MIPS_EFI_SYMBOL_NAME.
1409 (struct mdebug_extra_func_info): Replace struct
1410 alpha_extra_func_info and alpha_extra_func_info_t.
1411 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1412 * mdebugread.c, alpha-mdebug-tdep.c:
1413
0bb57b31
AC
1414 Suggested by Mark Kettenis.
1415 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1416 fields frame_adjust and high_addr.
1417 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1418 (non_heuristic_proc_desc): Delete references.
1419
a5c9623c
AC
1420 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1421 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1422 * mips-tdep.c: Update.
1423
607fc93c
AC
1424 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1425 (MIPS_LAST_EMBED_REGNUM): Add.
1426 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1427 (LAST_EMBED_REGNUM): Delete.
1428 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1429
24e05951
AC
1430 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1431 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1432 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1433 * mips-linux-nat.c: Update.
1434
613e114f
AC
1435 * mips-tdep.h: Add comments on registers.
1436 (MIPS_UNUSED_REGNUM): Define.
1437 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1438 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1439 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1440 * mips-linux-nat.c, remote-mips.c: Update.
1441
d37cca3d
AC
1442 * config/mips/tm-mips.h (t_insn): Delete.
1443 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1444 Replace t_insn with ULONGEST.
1445
ceb41096
MK
14462004-10-30 Mark Kettenis <kettenis@gnu.org>
1447
d1180b0f
MK
1448 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1449 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1450 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1451 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1452 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1453 (mipsnbsd_core_osabi_sniffer): New function.
1454 (mipsnbsd_init_abi): Set regset_from_core_section.
1455 (_initialize_mipsnbsd_tdep): Remove calls to
1456 deprecated_add_core_fns.
1457 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1458 (mipsnbsd_regset_from_core_section): New functions.
1459 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1460 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1461
ceb41096
MK
1462 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1463 Remove optimization for DEPRECATED_FP_REGNUM.
1464
ec4045ea
AC
14652004-10-30 Andrew Cagney <cagney@gnu.org>
1466
cd65c8f6
AC
1467 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1468 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1469 (alpha_setup_arbitrary_frame): Delete.
1470 * mips-tdep.c (setup_arbitrary_frame): Delete.
1471 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1472 (setup_arbitrary_frame): Delete.
1473 * stack.c (parse_frame_specification_1): When specified, call
1474 create_new_frame with two parameters. Delete #ifdef
1475 SETUP_ARBITRARY_FRAME.
1476
95ac2dcf
AC
1477 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1478 (MIPS_INSTLEN): Delete.
1479 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1480 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1481 * remote-mips.c, mips-tdep.c: Update.
1482
1a8da44d
AC
1483 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1484 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1485 * mips-tdep.c (mips_mdebug_frame_cache)
1486 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1487 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1488 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1489 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1490 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1491 (mips_gdbarch_init): Do not append mdebug sniffers.
1492 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1493 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1494 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1495 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1496 * Makefile.in: Update dependencies.
1497
e6bc2e8a
AC
1498 * mips-tdep.h (mips_abi_regsize): Declare.
1499 * mips-tdep.c (mips_abi_regsize): Make non-static.
1500
ec4045ea
AC
1501 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1502 (make_mips16_addr): Delete.
e6bc2e8a 1503
6b16acab
MK
15042004-10-30 Mark Kettenis <kettenis@gnu.org>
1505
1506 * i386-sol2-nat.c: New file.
1507 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1508 i386-sol2-tdep.c.
1509 (i386-sol2-nat.o): Update dependencies.
1510 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1511 i386-sol2-nat.o.
1512
8b622e6a
AC
15132004-10-30 Andrew Cagney <cagney@gnu.org>
1514
1515 Total breakage identified by Joel Brobecker.
1516 * mips-tdep.c (after_prologue): Delete.
1517 (mips_skip_prologue): Use skip_prologue_using_sal.
1518 (heuristic_proc_desc): Delete, unused.
1519
772cf8be
MK
15202004-10-30 Mark Kettenis <kettenis@gnu.org>
1521
1522 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1523 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1524 Cleanup coding style.
1525
9c8fdbfa
AC
15262004-10-30 Andrew Cagney <cagney@gnu.org>
1527
0fe7e7c8
AC
1528 * mips-tdep.h (mips_pc_is_mips16): Declare.
1529 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1530 non-static. Update calls.
1531
1b295c3d
AC
1532 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1533 * command.h (add_setshow_enum_cmd): Declare.
1534 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1535
6bcadd06
AC
1536 * mips-tdep.c (_initialize_mips_tdep): Use
1537 add_setshow_zinteger_cmd.
1538
9c8fdbfa
AC
1539 * mips-tdep.c (mips_eabi_extract_return_value)
1540 (mips_o64_extract_return_value, mips_o64_store_return_value)
1541 (return_value_location, mips_eabi_reg_struct_has_addr)
1542 (mips_eabi_use_struct_convention)
1543 (mips_eabi_store_return_value): Delete.
1544 (mips_eabi_store_return_value): New function.
1545 (mips_eabi_return_value): New function.
1546 (mips_gdbarch_init): For O64 and EABI, delete
1547 extract_return_value, store_return_value, use_struct_convention
1548 and reg_struct_has_addr, add return_value.
1549
1d93fe1a
AC
1550 * mips-tdep.c (read_signed_register): Use
1551 regcache_cooked_read_signed.
1552
303d2914
MK
15532004-10-30 Mark Kettenis <kettenis@gnu.org>
1554
1555 * mipsread.c: Cleanup coding style.
1556 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1557 (mipscoff_symfile_finish): Remove prototypes.
1558
15592004-10-29 Mark Kettenis <kettenis@gnu.org>
1560
1561 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1562 (mips_mdebug_frame_cache, mips16_scan_prologue)
1563 (mips32_scan_prologue, mips_stub_frame_cache)
1564 (heuristic_proc_start, heuristic_proc_desc)
1565 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1566 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1567 (mips_o32_return_value, mips_o64_push_dummy_call)
1568 (mips_step_skips_delay, mips_skip_trampoline_code)
1569 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1570 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1571 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1572 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1573 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1574 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1575 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1576 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1577 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1578 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1579 ZERO_REGNUM.
1580 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1581 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1582 ZERO_REGNUM.
1583 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1584 A0_REGNUM.
1585 * mipsnbsd-nat.c: Include "mips-tdep.h".
1586 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1587 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1588
1c8831c5
AC
15892004-10-29 Andrew Cagney <cagney@gnu.org>
1590
1591 * stack.c (parse_frame_specification_1): New function based on
1592 parse_frame_specification. Add message and selected_frame_p
1593 paramters. Truely always return non-NULL.
1594 (parse_frame_specification): Call parse_frame_specification_1.
1595 (frame_info): Update. Eliminate target_has_stack check.
1596 (select_frame_command): Update.
1597
b04f3ab4
AC
15982004-10-29 Andrew Cagney <cagney@gnu.org>
1599
1600 * frame.h (get_selected_frame): Add message parameter.
1601 * frame.c (get_selected_frame): Add and use message parameter.
1602 * stack.c (current_frame_command, return_command, locals_info)
1603 (catch_info, args_info, up_silently_base, down_silently_base): Use
1604 get_selected_frame with an explicit message.
1605 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1606 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1607 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1608 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1609 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1610 * breakpoint.c: Update.
1611
16122004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1613
1614 * trad-frame.c (trad_frame_get_prev_register): Use
1615 frame_unwind_register instead of frame_register_unwind, do not
1616 recurse the register's location.
1617 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1618 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1619 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1620 * sh-tdep.c (sh_frame_prev_register): Ditto.
1621 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1622 * i386-tdep.c (i386_frame_prev_register): Ditto.
1623 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1624 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1625
7a952542
MK
16262004-10-28 Mark Kettenis <kettenis@jive.nl>
1627
c18c06be
MK
1628 * proc-events.c: Fix several coding-style issues. Consistently
1629 use #ifdef instead of #if defined().
1630 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1631 ARRAY_SIZE.
1632 (_initialize_proc_events): New prototype.
1633
7a952542
MK
1634 * proc-why.c: Fix several coding-style issues.
1635 (proc_prettyfprint_why): Use ARRAY_SIZE.
1636
fcad0fa4
JB
16372004-10-27 Jim Blandy <jimb@redhat.com>
1638
1639 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1640 manner independent of the host byte order.
1641
c163184f
MK
16422004-10-27 Mark Kettenis <kettenis@gnu.org>
1643
1644 * mips-tdep.c (id_delayed): Remove prototype.
1645
9c46b6f0
MK
16462004-10-26 Mark Kettenis <kettenis@gnu.org>
1647
1648 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1649 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1650 to enum with register numbers.
1651 (enum mips_insn_size): New enum.
1652
0d0266c6
AC
16532004-10-26 Andrew Cagney <cagney@gnu.org>
1654
e7d6a6d2
AC
1655 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1656 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1657 (mips_gdbarch_init): Update.
1658 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1659
c5115f39
AC
1660 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1661 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1662 IN_SOLIB_RETURN_TRAMPOLINE.
1663 * mips-tdep.c (mips_dump_tdep): Do not print
1664 IN_SOLIB_RETURN_TRAMPOLINE.
1665 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1666 (mips_gdbarch_init): Update.
1667
0d0266c6
AC
1668 * mips-tdep.h (mips_software_single_step): Move to here ...
1669 * config/mips/tm-mips.h: ... from here.
1670 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1671 (SOFTWARE_SINGLE_STEP): Delete.
1672 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1673
156a53ca
AC
16742004-10-25 Andrew Cagney <cagney@gnu.org>
1675
1676 * NEWS: Add Changes since GDB 6.3 section.
1677
f27cf670
AS
16782004-10-23 Andreas Schwab <schwab@suse.de>
1679
156a53ca
AC
1680 * ada-lang.c (grow_vect): Return the new array instead of
1681 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1682 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1683
121d8485
UW
16842004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1685
1686 * s390-tdep.c (enum pv_boolean): Remove.
1687 (pv_is_array_ref): Remove.
1688 (s390_on_stack): Remove.
1689 (S390_NUM_SPILL_SLOTS): Remove.
1690 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1691 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1692 (s390_store): Track all stores of orginal incoming registers to the
1693 stack constant offsets relative to the CFA, instead of only tracking
1694 stores into specific spill slots.
1695 (s390_load): Likewise.
1696 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1697 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1698 defined as call-saved by the ABI.
1699 (s390_push_dummy_call): Use bottom of dummy call argument save area
1700 as return value, not the top. Do not store to the called function's
1701 register save area.
1702 (s390_unwind_dummy_id): Adapt accordingly.
1703
0a6ddd08
AC
17042004-10-23 Andrew Cagney <cagney@gnu.org>
1705
1706 * objfiles.h (struct objfile): Rename obj_private to
1707 deprecated_obj_private, sym_private to deprecated_sym_private, and
1708 sym_stab_info to deprecated_sym_stab_info.
1709 * gdb-stabs.h: Update.
1710 * elfread.c: Update.
1711 * dbxread.c: Update.
1712 * coffread.c: Update.
1713 * xcoffread.c: Update.
1714 * symfile.c: Update.
1715 * somread.c: Update.
1716 * nlmread.c: Update.
1717 * mdebugread.c: Update.
1718 * hpread.c: Update.
1719 * coffread.c: Update.
1720
abc08782
MK
17212004-10-23 Mark Kettenis <kettenis@gnu.org>
1722
1723 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1724 * configure.host: Add mips64*-*-openbsd*.
1725 * configure.tgt: Add mips64*-*-openbsd*.
1726 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1727 mips64obsd-tdep.c.
1728 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1729 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1730
fc062ac6
JB
17312004-10-21 Joel Brobecker <brobecker@gnat.com>
1732
1733 * symtab.c (symbol_search_name): Minor reformatting.
1734
5bccb4d1
JB
17352004-10-20 Joel Brobecker <brobecker@gnat.com>
1736
1737 * symtab.h: Fix typo in comment.
1738
a738430d
MK
17392004-10-19 Mark Kettenis <kettenis@gnu.org>
1740
1741 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1742 (dwarf_decode_line_header): Likewise.
1743
f2cb65ca
MC
17442004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1745
1746 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1747
09e55376
AC
17482004-10-19 Andrew Cagney <cagney@gnu.org>
1749
1750 GDB 6.3 branch created.
1751 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1752
bc5f45f8
JB
17532004-10-15 Joel Brobecker <brobecker@gnat.com>
1754
1755 * dwarf2read.c (set_cu_language): Set language to Ada for
1756 DW_LANG_Ada83 and DW_LANG_Ada95.
1757
2941da8c
MC
17582004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1759
1760 From Andreas Schwab <schwab@suse.de>:
1761 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1762 for xmalloc and xrealloc.
1763
34a17005
AC
17642004-10-15 Andrew Cagney <cagney@gnu.org>
1765
1766 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1767 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1768 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1769 Update dependencies.
1770
714e53ab
PH
17712004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1772
1773 * ada-lang.c (ada_lookup_symbol): Correct comment.
1774 (ada_evaluate_subexp): Change error message for
1775 OP_FUNCALL case so as not to indicate an internal error.
1776
17772004-10-15 Joel Brobecker <brobecker@gnat.com>
1778
1779 Committed by Paul Hilfinger.
1780 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1781 type sizes in XVE/XVU types, and emit a warning when that happens,
1782 instead of rounding up the size of the resulting type.
1783 Some minor reformatting.
1784 (ada_is_aligner_type): Do not consider a type as an aligner type
1785 if there is a corresponding XVS type as well.
1786 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1787 have several levels of pointer indirection to the array.
1788
17892004-10-15 Jerome Guitton <guitton@gnat.com>
1790
1791 Committed by Paul Hilfinger.
1792 * ada-lang.c (check_size): New function.
1793 (coerce_unspec_val_to_type): call check_size to make sure
1794 that the object size is reasonable.
1795 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1796 Implements the case when we get a reference when we evaluate
1797 the expression of one of the bounds of the slice.
1798 (ada_value_struct_elt): when a packed array field is
1799 a reference, use ada_coerce_ref to dereference it; use
1800 ada_value_ind only if it is a pointer.
1801
29639122
JB
18022004-10-15 Joel Brobecker <brobecker@gnat.com>
1803
1804 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1805 a bit to avoid the necessity of an advance declaration. Remove
1806 declaration.
1807 (set_reg_offset): Move implemenation up.
1808 (mips16_get_imm): Likewise.
1809 (mips16_scan_prologue): Likewise.
1810 (reset_saved_regs): Likewise.
1811 (mips32_scan_prologue): Likewise.
1812
a65bbe44
JB
18132004-10-14 Joel Brobecker <brobecker@gnat.com>
1814
1815 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1816 Remove sp as a parameter, compute it internally instead. Move
1817 prologue scanning limit from heuristic_proc_desc to here.
1818 (mips16_scan_prologue): Likewise.
1819 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1820 by call to mips16_scan_prologue.
1821 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1822 by call to mips32_scan_prologue.
1823 (heuristic_proc_desc): Remove code that's no longer necessary.
1824 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1825 (mips_skip_prologue): Update calls to mips16_scan_prologue
1826 and mips32_scan_prologue.
1827
1c645fec
JB
18282004-10-14 Joel Brobecker <brobecker@gnat.com>
1829
1830 * mips-tdep.c (mips16_scan_prologue): Merge code from
1831 mips16_skip_prologue. Now return the address of the first
1832 instruction past the function prologue.
1833 (mips16_skip_prologue): Remove, no longer necessary.
1834 (mips_skip_prologue): Replace call to mips16_skip_prologue
1835 by call to mips16_scan_prologue.
1836
98b4dd94
JB
18372004-10-14 Joel Brobecker <brobecker@gnat.com>
1838
1839 * mips-tdep.c (mips32_scan_prologue): Merge code from
1840 mips32_skip_prologue. Now return the address of the first
1841 instruction past the function prologue.
1842 (mips32_skip_prologue): Remove. No longer necessary.
1843 (mips16_skip_prologue): Add parameter end_pc instead of
1844 computing it.
1845 (mips_skip_prologue): Compute the upper limit for the
1846 prologue scanning. Update call to mips16_skip_prologue.
1847 Replace call to mips32_skip_prologue by call to
1848 mips32_scan_prologue.
1849
ad4c72d2
MK
18502004-10-14 Mark Kettenis <kettenis@gnu.org>
1851
dfaf8edb
MK
1852 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1853 NetBSD system call stubs that store %rp in the ERP slot of the
1854 stack frame.
1855
3e3a28f1
MK
1856 * source.c: Always define O_BINARY to 0 if not defined already.
1857 (openp): Unconditionally use O_BINARY.
1858
ad4c72d2
MK
1859 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1860 * event-top.c (gdb_readline2): Likewise.
1861
52bd1401
OF
18622004-10-14 Orjan Friberg <orjanf@axis.com>
1863
1864 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1865 deprecated_add_core_fns which was removed by mistake.
1866
e0e25c6c
KB
18672004-10-13 Kevin Buettner <kevinb@redhat.com>
1868
1869 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1870 references to deprecated_registers[] with equivalent code.
1871
9f335945
KB
18722004-10-13 Kevin Buettner <kevinb@redhat.com>
1873
1874 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1875 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1876 instead of explicit test and print statement.
1877
06c2338d
MK
18782004-10-12 Mark Kettenis <kettenis@gnu.org>
1879
1b9445c2
MK
1880 * sparc-nat.c: Include "inf-ptrace.h".
1881 (sparc_target): New function.
1882 * sparc-nat.h: Update copyright year.
1883 (sparc_target): New prototype.
1884 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1885 (_initialize_sparcnbsd_nat): Construct and add target vector.
1886 * sparc64nbsd-nat.c: Include "target.h".
1887 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1888 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1889 Update dependencies.
1890 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1891 inftarg.o, add inf-ptrace.o.
1892 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1893 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1894 (NAT_FILE): Set to nm-bsd.h.
1895 (LOADLIBES): New variable.
1896 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1897 infarg.o, add inf-ptrace.o.
1898 * config/sparc/nm-nbsdaout.h: Remove file.
1899 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1900 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1901 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1902
06c2338d
MK
1903 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1904 "fopen-same.h". Update comment.
1905
3303a276
MK
19062004-10-11 Mark Kettenis <kettenis@gnu.org>
1907
1908 * i386gnu-nat.c: Include "gdb_string.h".
1909 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1910 registers when the floating-point state isn't initialized.
1911 * Makefile.in (i386gnu-nat.o): Update dependencies.
1912
04c663e3
DA
19132004-10-11 David Anderson <davea@sgi.com>
1914
1915 * regcache.c (regcache_raw_read): Comment was missing "to".
1916 Extraneous ' removed.
1917 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1918 comment now describes use.
1919
a5f6c8f5
OF
19202004-10-11 Orjan Friberg <orjanf@axis.com>
1921
1922 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1923 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1924 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1925 (cris_sigtramp_frame_sniffer): New functions.
1926 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1927 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1928 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1929 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1930 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1931 command.
1932 (cris_version_update): Remove, replace with ...
1933 (set_cris_version): New function.
1934 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1935 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1936 (_initialize_cris_tdep): Remove CRIS mode command.
1937 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1938 cris-fpless-backtrace command.
1939 (cris_scan_prologue): Fix prologue scanning limit.
1940 (cris_register_type): Update to reflect actual registers.
1941 (cris_register_bytes_ok) Remove.
1942 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1943 Remove set_gdbarch_deprecated_register_size,
1944 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1945
77109804
AC
19462004-10-10 Andrew Cagney <cagney@gnu.org>
1947
1948 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1949 comment.
1950
25652d4f
JB
19512004-10-10 Joel Brobecker <brobecker@gnat.com>
1952
1953 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1954
1e05a7bf
JB
19552004-10-10 Joel Brobecker <brobecker@gnat.com>
1956
1957 * mips-tdep.c (mips16_scan_prologue): Renames
1958 mips16_heuristic_proc_desc. Update comment.
1959 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1960 (heuristic_proc_desc): Update calls to the 2 functions above.
1961
c68a4142
JB
19622004-10-10 Joel Brobecker <brobecker@gnat.com>
1963
1964 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1965 Update comments. Also immediately return empty cache when the start
1966 address of our function could not be found.
1967 (mips_insn32_frame_cache): Likewise.
1968
0fce0821
JB
19692004-10-10 Joel Brobecker <brobecker@gnat.com>
1970
1971 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1972 (mips_insn16_frame_cache): Pass frame cache in call to
1973 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1974 Remove code that became redundant as a consequence.
1975 (mips32_heuristic_proc_desc): No longer compute a fake
1976 procedure descriptor. Compute the full frame cache instead.
1977 Some minor comment reformatting.
1978
b672553e
JB
19792004-10-10 Jim Blandy <jimb@redhat.com>
1980
1981 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1982 reader, tracing bytecode stuff): Remove self.
1983
9cc52bde
MK
19842004-10-10 Mark Kettenis <kettenis@gnu.org>
1985
cc9784b6
MK
1986 * sparc64-linux-tdep.c: Update copyright year. Don't include
1987 "solib-svr4.h".
1988 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1989 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1990 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1991
ee8aef23
MK
1992 * sparc-linux-tdep.c: Update copyright year.
1993 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1994 to struct frame_info *. Use safe_frame_unwind_memory instead of
1995 deprecated_read_memory_nobpt.
1996 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1997 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1998 changed signature of sparc_linux_sigtramp_start.
1999 (sparc32_linux_pc_in_sigtramp): Remove function.
2000 (sparc32_linux_sigtramp_p): New function.
2001 (sparc32_linux_sigtramp_frame_sniffer): Use
2002 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2003
bc73f8cc
MK
2004 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2005 Remove function.
2006 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2007
a2249542
MK
2008 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2009 (decode_packed_array_type, value_subscript_packed)
2010 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2011 argument in call to lim_warning.
2012
9cc52bde
MK
2013 * configure.in: Really disable the TUI if an enhanced curses
2014 library isn't found.
2015 * configure: Regenerate.
2016
151fc45b
MK
20172004-10-09 Mark Kettenis <kettenis@gnu.org>
2018
2019 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2020 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2021 * config/i386/nm-nbsdaout.h: Remove file.
2022 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2023 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2024 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2025 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2026 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2027 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2028 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2029 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2030 (ldd, ld_un, ld_2): Remove defines.
2031 * config/i386/nm-obsd.h: Likewise.
2032
375c0479
PH
20332004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2034
2035 * ada-lex.l: Remove useless rule whose right-context clause
2036 causes unreferenced static function warning for yyrealloc.
2037 (ada_flex_use): Remove the artificial reference to yyrealloc.
2038
c8e73a31
AC
20392004-10-08 Andrew Cagney <cagney@gnu.org>
2040
2041 * target.h (struct target_ops): Rename to_xfer_memory to
2042 deprecated_xfer_memory.
2043 * target.c: Update.
2044 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2045 * wince.c: Update.
2046 * win32-nat.c: Update.
2047 * v850ice.c: Update.
2048 * uw-thread.c: Update.
2049 * thread-db.c: Update.
2050 * sol-thread.c: Update.
2051 * remote.c: Update.
2052 * remote-vx.c: Update.
2053 * remote-st.c: Update.
2054 * remote-sim.c: Update.
2055 * remote-sds.c: Update.
2056 * remote-rdp.c: Update.
2057 * remote-rdi.c: Update.
2058 * remote-mips.c: Update.
2059 * remote-m32r-sdi.c: Update.
2060 * remote-e7000.c: Update.
2061 * procfs.c: Update.
2062 * ppc-bdm.c: Update.
2063 * nto-procfs.c: Update.
2064 * monitor.c: Update.
2065 * linux-nat.c: Update.
2066 * inftarg.c: Update.
2067 * hpux-thread.c: Update.
2068 * go32-nat.c: Update.
2069 * gnu-nat.c: Update.
2070 * exec.c: Update.
2071 * corelow.c: Update.
2072 * bsd-kvm.c: Update.
2073 * aix-thread.c: Update.
2074
aa869812
AC
20752004-10-08 Andrew Cagney <cagney@gnu.org>
2076
2077 * target.c (debug_target): Move to near start of file.
2078 (target_stopped_data_address_p): Re-org logic, add casts.
2079
8dcef9cf
MK
20802004-10-02 Mark Kettenis <kettenis@gnu.org>
2081
2082 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2083 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2084 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2085 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2086 New defines.
2087
4aa7a7f5
JJ
20882004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2089
2090 * target.h (to_stopped_data_address): Change prototype to
2091 take a CORE_ADDR pointer and return an int.
2092 * target.c (update_current_target): Change to_stopped_data_address
2093 to match new prototype.
2094 (debug_to_stopped_data_address): Change appropriately.
2095 * breakpoint.c (bpstat_stop_status): Change call to
2096 target_stopped_data_address to use new prototype.
2097 * frv-tdep.c (frv_have_stopped_data_address): New function.
2098 (frv_stopped_data_address): Change to new prototype and
2099 functionality.
2100 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2101 prototype and functionality.
2102 (ia64_stopped_by_watchpoint): New function.
2103 * i386-nat.c (i386_stopped_data_address): Change to new
2104 prototype and functionality.
2105 (i386_stopped_by_watchpoint): New function.
2106 * remote.c (remote_stopped_data_address): Change to new prototype
2107 and functionality.
2108 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2109 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2110 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2111 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2112 new i386_stopped_by_watchpoint function.
2113 (i386_stopped_by_watchpoint): New prototype.
2114 (i386_stoppped_data_address): Change to new prototype.
2115 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2116 new ia64_stopped_by_watchpoint function.
2117 (ia64_stopped_by_watchpoint): New prototype.
2118 (ia64_stopped_data_address): Ditto.
2119
61ee279c
PH
21202004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2121
2122 * ada-typeprint.c (ada_print_type): Use int_string for printing
2123 modulus of modular type.
2124 * ada-lang.h (ada_modulus): Change return type to unsigned.
2125 * ada-lang.c (ada_language_arch_info): Correct type of
2126 string_char_type.
2127 (ada_modulus): Return unsigned result.
2128 (ada_lookup_symbol): Remove user disambiguation and modify comment
2129 accordingly.
2130
21312004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2132
2133 Committed by Paul Hilfinger.
2134 * ada-lang.c (decode_packed_array): On big-endian targets,
2135 left-justify the value if it comes with a modular type.
2136
21372004-10-08 Joel Brobecker <brobecker@gnat.com>
2138
2139 Committed by Paul Hilfinger.
2140 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2141 (is_name_suffix): Add support for "___JM" suffixes.
2142 (ada_check_typedef): Renames ada_completed_type.
2143 Update all users of CHECK_TYPEDEF, check_typedef, and
2144 ada_complete_type to call ada_check_typedef.
2145 * ada-typeprint.c: Likewise.
2146 * ada-valprint.c: Likewise.
2147
b6c25a56
CV
21482004-10-08 Corinna Vinschen <vinschen@redhat.com>
2149
2150 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2151
83ca6a46
NR
21522004-10-08 Nick Roberts <nickrob@snap.net.nz>
2153
2154 * MAINTAINERS: Update e-mail address.
2155
1fd8cd20
DJ
21562004-10-07 Daniel Jacobowitz <dan@debian.org>
2157
2158 From Maciej W. Rozycki <macro@mips.com>:
2159 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2160 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2161
cea15572
KI
21622004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2163
2164 * m32r-tdep.c (decode_prologue): Support functions written
2165 in assembler language. Recognize trap instructions as the
2166 end of prologue.
2167 (m32r_frame_unwind_cache): Ditto.
2168 (m32r_skip_prologue): Extend search limit. Quit analyzing
2169 prologue if pc's location is not readable.
2170
23485554
PH
21712004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2172
2173 * Makefile.in (.l.c): Do conversions of names of alloc and free
2174 functions that are done for .y.c files, plus special one
2175 for yy_flex_realloc. Also, correct missing-file tests here.
2176 * ada-lex.l (malloc, free): Remove macros.
2177 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2178 xrealloc.
2179 (ada_flex_use): Dummy definition to remove warnings about unused
2180 functions.
2181 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2182 to suppress warning.
2183
c0409442
CV
21842004-10-06 Corinna Vinschen <vinschen@redhat.com>
2185
2186 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2187 RETURN_VALUE.
2188 (sh_return_value_fpu): Ditto for CPUs with FPU.
2189 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2190 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2191 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2192 RETURN_VALUE functions.
2193
9bed62d7
CV
21942004-10-06 Corinna Vinschen <vinschen@redhat.com>
2195
2196 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2197 (sh_pseudo_register_write): Ditto.
2198
03131d99
CV
21992004-10-06 Corinna Vinschen <vinschen@redhat.com>
2200
2201 * sh-tdep.c (IS_MACL_STS): New define.
2202 (IS_MOVI20): Ditto.
2203 (IS_MACL_LDS): Ditto.
2204 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2205 instructions in prologue.
2206 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2207 instructions in epilogue.
2208
da962468
CV
22092004-10-06 Corinna Vinschen <vinschen@redhat.com>
2210
2211 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2212 (sh_sh_register_name): Add eight empty register names.
2213 (sh_sh3_register_name): Ditto.
2214 (sh_sh3e_register_name): Ditto.
2215 (sh_sh2e_register_name): Ditto.
2216 (sh_sh2a_register_name): New function, defining SH2A register set.
2217 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2218 in nofpu case.
2219 (sh_sh_dsp_register_name): Add eight empty register names.
2220 (sh_sh3_dsp_register_name): Ditto.
2221 (sh_sh4_register_name): Ditto.
2222 (sh_sh4_nofpu_register_name): Ditto.
2223 (sh_sh4al_dsp_register_name): Ditto.
2224 (sh2a_show_regs): New function.
2225 (sh2a_nofpu_show_regs): New function.
2226 (sh_sh2a_register_type): New function.
2227 (do_bank_register_info): New function.
2228 (sh_print_pseudo_register): Call do_bank_register_info.
2229 Call sh_print_pseudo_register for valid "bank" register.
2230 (sh_sh2a_register_sim_regno): New function.
2231 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2232 Increment pseudo register count by one for all sh variants with
2233 pseudo registers to accomodate pseudo bank register.
2234 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2235 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2236 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2237 Increment pseudo register numbers.
2238
1326e61b
CV
22392004-10-06 Corinna Vinschen <vinschen@redhat.com>
2240
2241 * dwarf2read.c (read_subroutine_type): Call make_function_type
2242 instead of lookup_function_type.
2243
146c42e3
JB
22442004-10-05 Jim Blandy <jimb@redhat.com>
2245
2246 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2247 (Previous change missed some uses.)
2248
1df84f13
AC
22492004-10-05 Andrew Cagney <cagney@gnu.org>
2250
2251 * target.h (deprecated_child_ops): Rename child_ops.
2252 * wince.c: Update copyright. Rename child_ops.
2253 * win32-nat.c: Rename child_ops.
2254 * target.c: Rename child_ops.
2255 * rs6000-nat.c: Rename child_ops.
2256 * linux-nat.c: Rename child_ops.
2257 * infttrace.c: Rename child_ops.
2258 * inftarg.c: Rename child_ops.
2259 * infptrace.c: Rename child_ops.
2260 * hppah-nat.c: Update copyright. Rename child_ops.
2261 * hpux-thread.c: Update copyright. Rename child_ops.
2262
21e3b9b9
DJ
22632004-10-05 Daniel Jacobowitz <dan@debian.org>
2264
2265 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2266
de83afe7
AC
22672004-10-05 Andrew Cagney <cagney@gnu.org>
2268
2269 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2270
10b3939b
DJ
22712004-10-05 Daniel Jacobowitz <dan@debian.org>
2272
2273 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2274 (die_ref_table): Remove.
2275 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2276 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2277 the usage of this type.
2278 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2279 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2280 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2281 (dwarf2_create_include_psymtab): Update comment.
2282 (find_partial_die): Remove third argument. Remove unreachable call
2283 to error ().
2284 (dwarf2_find_containing_comp_unit): Update comments. Change one
2285 assertion to an error. Remove an unreachable error.
2286 (dwarf2_find_comp_unit): Update comments.
2287 (type_at_offset): Remove dead code.
2288 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2289 (store_in_ref_table): Add CU argument.
2290 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2291 inter-compilation-unit references.
2292 (load_full_comp_unit, process_full_comp_unit): New functions, based
2293 on psymtab_to_symtab_1.
2294 (psymtab_to_symtab_1): Use them.
2295 (dwarf2_add_dependence): New function.
2296 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2297 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2298 (partial_die_parent_scope, guess_structure_name): Update for changes
2299 to find_partial_die.
2300 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2301 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2302 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2303 (read_die_and_children): Update call to store_in_ref_table.
2304 (do_free_die_list_cleanup): Remove.
2305 (fixup_partial_die): Update for changes to find_partial_die.
2306 (read_full_die): Handle queueing absolute references.
2307 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2308 (dwarf2_attr, die_specification, die_type)
2309 (die_containing_type, dwarf2_extension): Update calls to
2310 follow_die_ref.
2311 (dump_die): Update DW_FORM_ref* handling.
2312 (dwarf2_get_ref_die_offset): Likewise.
2313 (free_one_comp_unit): Release the dies list.
2314 (dwarf2_mark_helper): New function.
2315 (dwarf2_mark): Use it.
2316
998bdd68
MK
23172004-10-05 Mark Kettenis <kettenis@jive.nl>
2318
2319 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2320 when writing to memory.
2321
14588880
KI
23222004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2323
2324 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2325 (m32r_extract_struct_value_address): Delete function.
2326 (m32r_return_value): New function.
2327 (m32r_gdbarch_init): Instead of store_return_value,
2328 extract_return_value, deprecated_extract_struct_value_address
2329 and deprecated_use_struct_convention, set return_value.
2330
dd5e6932
DJ
23312004-10-03 Daniel Jacobowitz <dan@debian.org>
2332
2333 * dwarf2read.c (read_subrange_type): Add comment for variable
2334 sized arrays.
2335
7dc1ef8d
PH
23362004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2337
2338 * Makefile.in (.l.c): Modify rule for compatibility with recent
2339 versions of flex, and remove most command-line options.
2340 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2341 options.
2342
1f8173e6
PH
23432004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2344
2345 Turn on initial Ada support (mainly expression evaluation).
2346
2347 * Makefile.in (SFILES): Remove ada-tasks.c.
2348 (HFILES_NO_SRCDIR): Add ada-lang.h.
2349 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2350 (YYOBJ): Add ada-exp.o.
2351 (rule .l.c): Generalize to not mention ada.
2352 * symtab.c: Include ada-lang.h.
2353 (symbol_natural_name, symbol_demangled_name)
2354 (symbol_search_name): Add Ada case.
2355
cb85a953
AC
23562004-10-01 Andrew Cagney <cagney@gnu.org>
2357
3f3db248
AC
2358 * Makefile.in (COMMON_OBS): Add inf-child.o.
2359 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2360 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2361 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2362 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2363 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2364 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2365 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2366 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2367 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2368 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2369 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2370 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2371 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2372
cb85a953
AC
2373 * target.c (xfer_using_stratum): Change return type to LONGEST.
2374 On each iteration offset, readbuf and writebuf.
2375 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2376 partial_length, and read/modify/write predicate, update comments.
2377 Pass buffer.word to ptrace write.
2378
963a6417
PH
23792004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2380
2381 * symfile.c (init_filename_language_table): Add extensions for
2382 Ada.
2383 * defs.h (enum language): Add language_ada.
2384 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2385 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2386 (add_symbols_from_enclosing_procs): Make a no-op for now.
2387 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2388 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2389 (find_line_in_linetable, find_next_line_in_linetable)
2390 (read_all_symtabs, is_plausible_func_for_line)
2391 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2392 (is_runtime_sym_defined, check_size): Remove declaration.
2393 (function_name_from_pc, ada_translate_error_message)
2394 (ada_lookup_minimal_symbol): Remove definition.
2395 (ada_add_block_symbols): Remove useless label.
2396 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2397 useless declaration.
2398 (ada_is_exception_sym): Likewise.
2399
9b32d526
KI
24002004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2401
2402 Add m32r-linux support.
2403 * configure.tgt: Add m32r*-*-linux*.
2404 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2405 and m32r-linux-tdep.c.
2406 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2407 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2408 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2409 m32r-linux-tdep.c.
2410 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2411 config/m32r/linux.mh, config/m32r/linux.mt,
2412 config/m32r/nm-linux.h: New files.
2413
2de118d3
JB
24142004-09-30 Joel Brobecker <brobecker@gnat.com>
2415
2416 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2417 (mips32_fetch_instruction): Remove, unused.
2418
a9fe69d1
JB
24192004-09-30 Joel Brobecker <brobecker@gnat.com>
2420
2421 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2422 conditions that will always be true.
2423
bc8ffc12
MK
24242004-09-30 Mark Kettenis <kettenis@gnu.org>
2425
ba0cd111
MK
2426 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2427 (vaxbsd_fetch_inferior_registers): Rename from
2428 fetch_inferior_registers. Make static.
2429 (vaxbsd_store_inferior_registers): Rename from
2430 store_inferior_registers. Make static.
2431 (_initialize_vaxbsd_nat): Construct and add target vector.
2432 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2433 inftarg.o. Add inf-child.o and inf-ptrace.o.
2434 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2435 inftarg.o. Add inf-child.o and inf-ptrace.o.
2436 (NAT_FILE): Remove.
2437 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2438 inftarg.o. Add inf-child.o and inf-ptrace.o.
2439 (NAT_FILE): Remove.
2440 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2441
bc8ffc12
MK
2442 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2443 (m88kbsd_fetch_inferior_registers): Rename from
2444 fetch_inferior_registers. Make static.
2445 (m88kbsd_store_inferior_registers): Rename from
2446 store_inferior_registers. Make static.
2447 (_initialize_m88kbsd_nat): New prototype and function.
2448 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2449 inftarg.o. Add inf-child.o and inf-ptrace.o.
2450 (NAT_FILE): Remove.
2451 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2452
27394598
AC
24532004-09-30 Andrew Cagney <cagney@gnu.org>
2454
2455 * target.c (target_xfer_partial): New function.
2456 (target_read_memory_partial, target_write_memory_partial)
2457 (default_xfer_partial, target_read_partial, target_write_partial)
2458 (xfer_using_stratum): Use.
2459 (debug_to_xfer_partial): Delete function.
2460 (setup_target_debug): Do not override to_xfer_partial.
2461
74a4fe32
MK
24622004-09-30 Mark Kettenis <kettenis@chello.nl>
2463
2464 * fork-child.c: Update copyright year. Fix coding style.
2465
982526a1
MK
24662004-09-29 Mark Kettenis <kettenis@gnu.org>
2467
2468 * defs.h (msavestring, mstrsave): Remove prototypes.
2469 * utils.c (msavestring, mstrsave): Remove functions.
2470 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2471 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2472 of mstrsave.
2473 * source.c (find_and_open_source): Use xstrdup instead of
2474 mstrsave.
2475
b8eb5af0
AC
24762004-09-30 Andrew Cagney <cagney@gnu.org>
2477
0779438d
AC
2478 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2479 (inf_ptrace_xfer_memory): Delete.
2480 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2481 (target_read_memory, target_write_memory): Use xfer_using_stratum
2482 when target_xfer_partial_p.
2483 (debug_target): Move to start of file.
2484 (target_read_memory_partial, target_write_memory_partial): Use
2485 to_xfer_partial when target_xfer_partial_p.
2486
f929a579
AC
2487 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2488 inf_ptrace_xfer_memory with equivalent code.
2489 * inftarg.c (child_xfer_partial): When performing a write, pass
2490 writebuf to child_xfer_memory.
2491
b8eb5af0
AC
2492 * target.c (target_read_string): Use target_read_memory instead of
2493 target_xfer_memory.
2494
ee21b650
AC
24952004-09-29 Andrew Cagney <cagney@gnu.org>
2496
d3e05d0d
AC
2497 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2498 the address of status.
2499
ee21b650
AC
2500 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2501 (kill_inferior): Inline ptrace_wait call.
2502 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2503 * inftarg.c (child_wait): Inline ptrace_wait call.
2504
a182eed6
AC
2505 * target.h (struct target_ops): Delete field to_post_wait.
2506 (target_post_wait): Delete macro.
2507 (child_post_wait): Delete declaration.
2508 * target.c (update_current_target, update_current_target)
2509 (debug_to_post_wait, setup_target_debug): Delete functions and
2510 references.
2511 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2512 * inftarg.c (child_post_wait): Delete.
2513 (init_child_ops): Do not set to_post_wait.
2514 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2515 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2516 * inf-child.c (inf_child_post_wait): Delete.
2517 (inf_child_target): Do not set to_post_wait.
2518 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2519 (inf_ptrace_target): Do not set to_post_wait.
2520
ba0c540b
AC
2521 * wince.c (child_ops): Delete.
2522 * win32-nat.c (child_ops): Delete.
2523
81977402
AC
2524 * inftarg.c (inftarg_set_find_memory_regions)
2525 (inftarg_set_make_corefile_notes): Delete functions.
2526 (_initialize_linux_nat): Inline calls.
2527
5ac10fd1
AC
2528 * target.h (child_ops): Declare.
2529 * inftarg.c (child_ops): Move from here ...
2530 * target.c (child_ops): ... to here.
2531 * wince.c (child_ops): Delete extern declaration.
2532 * win32-nat.c (child_ops): Delete extern declaration.
2533 * linux-nat.c (child_ops): Delete extern declaration.
2534 * hpux-thread.c (child_ops): Delete extern declaration.
2535
663408c2 25362004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2537
2538 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2539
0dad8a66
MK
25402004-09-28 Mark Kettenis <kettenis@gnu.org>
2541
2542 * configure.in: Only set host_makefile_frag when building a native
2543 debugger.
2544 * configure: Regenerate.
e8d74ed3
MK
2545
2546 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2547 for OpenBSD ELF.
2548
dba24537
AC
25492004-09-28 Andrew Cagney <cagney@gnu.org>
2550
e979516b
AC
2551 Problem identified by Paul Hilfinger.
2552 * Makefile.in (ada_lex_c): Define.
2553 (ada-lex.o): Delete rule.
2554
dba24537
AC
2555 * linux-proc.c: Delete file.
2556 * Makefile.in: Update.
2557 * config/sparc/linux64.mh (NATDEPFILES):
2558 * config/sparc/linux.mh (NATDEPFILES): Update.
2559 * config/s390/s390.mh (NATDEPFILES): Update.
2560 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2561 * config/powerpc/linux.mh (NATDEPFILES): Update.
2562 * config/pa/linux.mh (NATDEPFILES): Update.
2563 * config/mips/linux.mh (NATDEPFILES): Update.
2564 * config/m68k/linux.mh (NATDEPFILES): Update.
2565 * config/ia64/linux.mh (NATDEPFILES): Update.
2566 * config/i386/linux64.mh (NATDEPFILES): Update.
2567 * config/i386/linux.mh (NATDEPFILES): Update.
2568 * config/arm/linux.mh (NATDEPFILES): Update.
2569 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2570 * linux-nat.c: Update copyright. Include <sys/param.h>,
2571 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2572 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2573 (O_LARGEFILE): Possibly define.
2574 (_initialize_linux_nat, linux_proc_pending_signals)
2575 (add_line_to_sigset, linux_proc_xfer_memory)
2576 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2577 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2578 (struct linux_corefile_thread_data)
2579 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2580 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2581
d6b0e80f
AC
25822004-09-16 Andrew Cagney <cagney@gnu.org>
2583
2584 * lin-lwp.c: Delete file.
2585 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2586 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2587 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2588 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2589 (linux_nat_attach, detach_callback, linux_nat_detach)
2590 (resume_callback, resume_clear_callback, linux_nat_resume)
2591 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2592 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2593 (status_callback, running_callback, count_events_callback)
2594 (select_singlestep_lwp_callback, select_event_lwp_callback)
2595 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2596 (child_wait, stop_and_resume_callback, linux_nat_wait)
2597 (kill_callback, kill_wait_callback, linux_nat_kill)
2598 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2599 (linux_nat_xfer_memory, linux_nat_thread_alive)
2600 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2601 (_initialize_linux_nat): New functions.
2602 * Makefile.in: Update all dependencies.
2603 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2604 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2605 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2606 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2607 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2608 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2609 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2610 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2611 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2612 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2613 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2614 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2615 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2616
5a174d79
MK
26172004-09-27 Mark Kettenis <kettenis@gnu.org>
2618
2f604c28
MK
2619 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2620 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2621
5a174d79
MK
2622 * configure.in: Don't comment out NATDEPFILES in the generated
2623 Makefile if NAT_FILE is unset.
2624 * configure: Regenerate.
2625
b2ed1746
AC
26262004-09-27 Andrew Cagney <cagney@gnu.org>
2627
44cbf7b5
AC
2628 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2629 (insert_step_resume_breakpoint): Delete.
2630 (insert_step_resume_breakpoint_at_frame): New function.
2631 (insert_step_resume_breakpoint_at_sal): New function.
2632 (handle_inferior_event, step_into_function)
2633 (insert_step_resume_breakpoint): Simplify by using same.
2634
b2ed1746
AC
2635 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2636
3691b3be
MK
26372004-09-26 Mark Kettenis <kettenis@gnu.org>
2638
36f391e8
MK
2639 * fbsd-proc.c: Remove file.
2640 * Makefile.in (fbsd-proc.o): Remove dependency.
2641
771e236c
MK
2642 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2643 code together.
2644
3691b3be
MK
2645 * config/i386/nm-fbsd64.h: Remove file.
2646 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2647
6a5c78a3
MK
26482004-09-26 Mark Kettenis <kettenis@gnu.org>
2649
2650 * amd64-nat.h: Update copyright year.
2651 (amd64bsd_target): New prototype.
2652 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2653 (amd64bsd_target): New function.
2654 (amd64bsd_fetch_inferior_registers): Rename from
2655 fetch_inferior_registers. Make static.
2656 (amd64bsd_store_inferior_registers): Rename from
2657 store_inferior_registers. Make static.
2658 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2659 (_initialize_amd64fbsd_nat): Construct and add target vector.
2660 * amd64nbsd-nat.o: Include "target.h".
2661 (_initialize_amd64nbsd_nat): Construct and add target vector.
2662 * amd64obsd-nat.c: Include "target.h".
2663 (_initialize_amd64obsd_nat): Construct and add target vector.
2664 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2665 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2666 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2667 fbsd-nat.o.
2668 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2669 Remove infptrace.o and inftarg.o. Add inf-child.o and
2670 inf-ptrace.o.
2671 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2672 (amd64obsd-nat.o): Update dependencies.
2673
27acbe61
MK
26742004-09-25 Mark Kettenis <kettenis@gnu.org>
2675
509a5e7d
MK
2676 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2677 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2678 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2679 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2680 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2681
6e1e94ea
MK
2682 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2683 Inline attach call.
2684 (inf_ptrace_detach): Inline detach call.
2685
8b9cf735
MK
2686 * configure.in: Check for waddstr instead of mvwaddstr when
2687 searching for curses library. Check for wborder.
2688 * configure, config.in: Regenerate.
2689 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2690 available.
2691
27acbe61
MK
2692 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2693
b96ec7ac
AC
26942004-09-24 Robert Picco <Robert.Picco@hp.com>
2695
2696 Committed by Andrew Cagney.
2697 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2698 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2699 configuration.
2700 (fetch_register_using_p): Implement 'p' packet. Based on code by
2701 Fernando Nasser.
2702 (remote_fetch_registers): Call fetch_register_using_p.
2703 (init_all_packet_configs, show_remote_cmd)
2704 (_initialize_remote): Add p-packet.
2705
62ece330
MK
27062004-09-24 Mark Kettenis <kettenis@gnu.org>
2707
2708 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2709 instead of call_ptrace. Call wait directly instead of
2710 ptrace_wait.
2711 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2712 (inf_ptrace_wait): Inline ptrace_wait call.
2713
00937274
PH
27142004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2715
2716 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2717 rolled back instead.
2718
3f2c7a45
PH
27192004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2720
2721 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2722 the new argument order.
2723
b6fcb393
CV
27242004-09-23 Corinna Vinschen <vinschen@redhat.com>
2725
2726 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2727 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2728 (struct gdbarch_tdep): Remove.
2729 (struct xstormy16_frame_cache): New frame cache structure.
2730 (xstormy16_register_byte, xstormy16_register_raw_size)
2731 (xstormy16_reg_virtual_type, xstormy16_register_type)
2732 (xstormy16_push_arguments, xstormy16_push_return_address)
2733 (xstormy16_pop_frame, xstormy16_store_struct_return)
2734 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2735 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2736 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2737 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2738 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2739 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2740 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2741 (xstormy16_extract_return_value, xstormy16_store_return_value):
2742 Regcachify. Drop useless struct convention handling.
2743 (xstormy16_register_type, xstormy16_return_value)
2744 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2745 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2746 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2747 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2748 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2749 (xstormy16_unwind_dummy_id) : New functions.
2750 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2751 of xstormy16_scan_prologue.
2752 (xstormy16_frame_unwind): New frame_unwind structure.
2753 (xstormy16_frame_base): New frame_base structure.
2754 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2755 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2756
1285b746
MK
27572004-09-22 Mark Kettenis <kettenis@gnu.org>
2758
2759 * language.c (language_gdbarch_post_init): Fix off-by one error.
2760
1c379e20
DJ
27612004-09-21 Daniel Jacobowitz <dan@debian.org>
2762
2763 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2764 (struct dwarf2_offset_and_type): New.
2765 (set_die_type, reset_die_and_siblings_types, get_die_type)
2766 (offset_and_type_hash, offset_and_type_eq): New functions.
2767 (read_structure_type, read_enumeration_type, read_array_type)
2768 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2769 (read_tag_reference_type, read_tag_const_type)
2770 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2771 (read_typedef, read_base_type, read_subrange_type): Use
2772 set_die_type.
2773
ae038cb0
DJ
27742004-09-20 Daniel Jacobowitz <dan@debian.org>
2775
2776 * Makefile.in (dwarf2read.o): Update dependencies.
2777 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2778 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2779 and read_in_chain.
2780 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2781 mark, and has_form_ref_addr.
2782 (struct dwarf2_per_cu_data): New.
2783 (dwarf2_max_cache_age): New.
2784 (dwarf2_build_psymtabs_hard): Free cached compilation units
2785 after loading. Create and manage the list of compilation units.
2786 Remove unnecessary NULL initialization. Fix indentation.
2787 (psymtab_to_symtab_1): Initialize all of CU.
2788 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2789 (find_partial_die): Use dwarf2_find_containing_comp_unit
2790 and load_comp_unit.
2791 (free_stack_comp_unit): Update comments. Clear the per-cu
2792 pointer. Handle aging.
2793 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2794 (age_cached_comp_units, free_one_cached_comp_unit)
2795 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2796 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2797 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2798 (show_dwarf2_cmd): New.
2799 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2800 and "maint show dwarf2 max-cache-age".
2801 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2802 externs.
2803 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2804 global.
2805
987504bb
JJ
28062004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2807
2808 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2809 and dwarf2_cu struct pointer as arguments. Change function to use
2810 obstack if provided and use dwarf2_cu to determine language-specific
2811 separator.
2812 (partial_die_parent_scope): Change comment to include java. Use
2813 new version of typename_concat instead of obconcat.
2814 (partial_die_full_name): Use typename_concat.
2815 (read_namespace): Ditto.
2816 (read_enumeration_type): Use typename_concat instead of obconcat.
2817 (new_symbol): Ditto.
2818 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2819 (guess_structure_name): Ditto.
2820 (read_subroutine_type): Ditto.
2821 (read_structure_type): Ditto.
2822 (is_vtable_name): Add Java support.
2823 (determine_class_name): Switch to new typename_concat call.
2824 (determine_prefix): Switch to new typename_concat call.
2825 * jv-exp.y (FuncStart): New pattern.
2826 (MethodInvocation): Add support for simple function calls. Change
2827 warning message for other forms of inferior call currently not
2828 supported.
2829 * valarith.c (value_subscript): Treat an array with upper-bound
2830 of -1 as unknown size.
2831
d9c8471e
DJ
28322004-09-20 Daniel Jacobowitz <dan@debian.org>
2833
2834 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2835 (lookup_partial_symtab): Use symtab_to_fullname.
2836
d73f140a
JB
28372004-09-19 Jim Blandy <jimb@redhat.com>
2838
2839 * minsyms.c (lookup_minimal_symbol): Doc fix.
2840
adbef1f0
AC
28412004-09-20 Andrew Cagney <cagney@gnu.org>
2842
2843 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2844 CHILD_RESUME.
2845 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2846 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2847 KILL_INFERIOR.
2848 * infptrace.c: Update.
2849
d092d1a2
DJ
28502004-09-19 Daniel Jacobowitz <dan@debian.org>
2851
2852 * symtab.c (output_source_filename): Mark first argument as const.
2853 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2854 for "info sources" output.
2855
86d9e1d7
MK
28562004-09-20 Mark Kettenis <kettenis@gnu.org>
2857
2858 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2859 <machine/vmparam.h>.
2860 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2861 (register_u_addr): Remove prototype.
2862
9a6c8ef4
MK
28632004-09-19 Mark Kettenis <kettenis@gnu.org>
2864
9692934b
MK
2865 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2866 (i386bsd_fetch_inferior_registers): Rename from
2867 fetch_inferior_registers. Make static.
2868 (i386bsd_store_inferior_registers): Rename from
2869 store_inferior_registers. Make static.
2870 (i386bsd_target): New function.
2871 * i386bsd-nat.h: New file.
2872 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2873 "i386bsd-nat.h".
2874 (i386fbsd_resume): Rename from child_resume. Make static.
2875 (_initialize_i386fbsd_nat): Construct and add target vector.
2876 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2877 (_initialize_i386nbsd_nat): Construct and add target vector.
2878 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2879 Remove defines.
2880 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2881 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2882 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2883 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2884 (LOADLIBES): New variable.
2885 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2886 inf-ptrace.o. Remove inftarg.o.
2887 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2888 inf-ptrace.o. Remove inftarg.o.
2889 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2890 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2891 (LOADLIBES): New variable.
2892 * Makefile.in (i386bsd_nat_h): New variable.
2893 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2894 dependencies.
2895
3510d1f2
MK
2896 * sparc64nbsd-tdep.c: Include "objfiles.h".
2897 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2898 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2899 svr4_lp64_fetch_link_map_offsets.
2900 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2901 "nbsd-tdep.h".
2902 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2903 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2904 svr4_lp64_fetch_link_map_offsets.
2905 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2906 dependencies.
2907
578c1c03
MK
2908 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2909 * fbsd-nat.h: New file.
2910 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2911 (fbsd_nat_h): New variable.
2912 (fbsd-nat.o): New dependency.
2913
7a7b73b7
MK
2914 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2915 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2916
9a6c8ef4
MK
2917 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2918 comment.
2919
72d5681a
PH
29202004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2921
2922 * ada-exp.y (type_int): New function to add layer of abstraction
2923 around references to expression types.
2924 (type_long): Ditto.
2925 (type_long_long): Ditto.
2926 (type_float): Ditto.
2927 (type_double): Ditto.
2928 (type_long_double): Ditto.
2929 (type_char): Ditto.
2930 (type_system_address): Ditto.
2931 (simple_exp): Use type_* functions in place of builtin_*
2932 variables.
2933 (exp): Ditto.
2934 (write_var_from_name): Ditto.
2935 (write_object_renaming): Ditto.
2936 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2937 declaration.
2938 (build_ada_types): Remove, replacing with...
2939 (ada_language_arch_info): New function to initialize primitive
2940 type vector in language_arch_info.
2941 (ada_array_length): Remove use of builtin_type_ada_int.
2942 (value_pos_atr): Ditto.
2943 (ada_evaluate_subexp): Ditto.
2944 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2945 builtin_type_ada_long_long, builtin_type_ada_char,
2946 builtin_type_ada_float, builtin_type_ada_double,
2947 builtin_type_ada_long_double, builtin_type_ada_natural,
2948 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2949 (ada_builtin_types): Remove.
2950 (ada_language_defn): Remove entries for la_builtin_type_vector and
2951 string_char_type and use ada_language_arch_info.
2952 (_initialize_ada_language): Do type-vector initialization along
2953 the lines of c-lang.c.
2954 (ada_create_fundamental_type): Break up line.
2955 (ada_dump_symtab): Remove unused function.
2956 (enum ada_primitive_types): Define.
2957 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2958 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2959 builtin_type_ada_float, builtin_type_ada_double,
2960 builtin_type_ada_long_double, builtin_type_ada_natural,
2961 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2962 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2963 (processInt): Ditto.
2964 (processReal): Ditto.
2965 (name_lookup): Ditto.
2966 * ada-typeprint.c (print_range): Use builtin_type_int, not
2967 builtin_type_ada_int.
2968
4f0be353
MK
29692004-09-18 Mark Kettenis <kettenis@gnu.org>
2970
30b0e2d8
MK
2971 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2972
4f0be353
MK
2973 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2974 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2975 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2976 * configure.in: Improve checks for curses library by checking for
2977 mvwaddstr instead of initscr. Drop HP curses in favour of
2978 standard curses on HP-UX.
2979 * configure: Regenerated.
2980
72d5681a 29812004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2982
2983 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2984 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2985 Minor formatting changes.
2986 (empty_array): Slight rewrite for formatting.
2987 (emit_char,parse,ada_language_defn,build_ada_types,
2988 ada_is_exception_sym, _initialize_ada_language): Move
2989 definitions around.
2990 (ada_dump_symtab): Remove unused definition.
2991 (ada_maybe_exception_partial_symbol): Remove unused definition.
2992
1c8c7407
AC
29932004-09-16 Andrew Cagney <cagney@gnu.org>
2994
7681f339
AC
2995 * inf-child.c: Include "gdb_string.h".
2996 (inf_child_core_file_to_sym_file): Delete.
2997 (inf_child_target): Set to_fetch_registers and to_store_registers.
2998 * inf-ptrace.c: Include "gdb_string.h".
2999 * Makefile.in: Update all dependencies.
3000
1c8c7407
AC
3001 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3002 problem.
3003
65596487
JB
30042004-09-14 Joel Brobecker <brobecker@gnat.com>
3005
3006 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3007 call to heuristic_proc_desc. Remove code that became redundant
3008 as a consequence.
3009 (read_next_frame_reg): Remove special case for SP_REGNUM.
3010 (set_reg_offset): Fix small typo.
3011 (reset_saved_regs): New procedure.
3012 (mips32_heuristic_proc_desc): No longer compute a fake
3013 procedure descriptor. Compute the full frame cache instead.
3014 Some minor comment reformatting.
3015
95575b2e
AC
30162004-09-14 Andrew Cagney <cagney@gnu.org>
3017
f200c492
AC
3018 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3019 maintainer.
3020
95575b2e
AC
3021 * thread-db.c (thread_db_new_objfile): Assume that there is a
3022 child process.
3023
69657671
JB
30242004-09-13 Jim Blandy <jimb@redhat.com>
3025
3026 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3027 so that its storage isn't referenced after its lifetime ends.
3028
6c4182dd
JB
3029 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3030 and never assigned to. Delete it, and the 'if (use_buffer)'
3031 clauses. Delete 'raw_buffer', since it is now unused.
3032
ee31a58d
AC
30332004-09-13 Andrew Cagney <cagney@gnu.org>
3034
2c0fc042
AC
3035 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3036 * configure: Re-generate.
3037 * nlm/Makefile.in (TAGS): Update.
3038 * Makefile.in (TAGS): Update.
3039 * config/vax/nbsd.mt (TM_FILE): Update.
3040 * config/sparc/vxworks.mt (TM_FILE): Update.
3041 * config/sparc/sol2.mt (TM_FILE): Update.
3042 * config/sparc/sol2-64.mt (TM_FILE): Update.
3043 * config/sparc/obsd64.mt (TM_FILE): Update.
3044 * config/sparc/obsd.mt (TM_FILE): Update.
3045 * config/sparc/nbsd64.mt (TM_FILE): Update.
3046 * config/sparc/nbsd.mt (TM_FILE): Update.
3047 * config/sparc/linux64.mt (TM_FILE): Update.
3048 * config/sparc/linux.mt (TM_FILE): Update.
3049 * config/sparc/fbsd.mt (TM_FILE): Update.
3050 * config/sh/wince.mt (TM_FILE): Update.
3051 * config/sh/nbsd.mt (TM_FILE): Update.
3052 * config/sh/linux.mt (TM_FILE): Update.
3053 * config/sh/embed.mt (TM_FILE): Update.
3054 * config/s390/s390.mt (TM_FILE): Update.
3055 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3056 * config/rs6000/rs6000.mt (TM_FILE): Update.
3057 * config/rs6000/aix4.mt (TM_FILE): Update.
3058 * config/powerpc/vxworks.mt (TM_FILE): Update.
3059 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3060 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3061 * config/powerpc/obsd.mt (TM_FILE): Update.
3062 * config/powerpc/nbsd.mt (TM_FILE): Update.
3063 * config/powerpc/linux.mt (TM_FILE): Update.
3064 * config/powerpc/aix.mt (TM_FILE): Update.
3065 * config/pa/obsd.mt (TM_FILE): Update.
3066 * config/pa/linux.mt (TM_FILE): Update.
3067 * config/pa/hppahpux.mt (TM_FILE): Update.
3068 * config/pa/hppa64.mt (TM_FILE): Update.
3069 * config/pa/hppa.mt (TM_FILE): Update.
3070 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3071 * config/mips/wince.mt (TM_FILE): Update.
3072 * config/mips/vxmips.mt (TM_FILE): Update.
3073 * config/mips/nbsd.mt (TM_FILE): Update.
3074 * config/mips/linux.mt (TM_FILE): Update.
3075 * config/mips/irix6.mt (TM_FILE): Update.
3076 * config/mips/irix5.mt (TM_FILE): Update.
3077 * config/mips/embed.mt (TM_FILE): Update.
3078 * config/m68k/vxworks68.mt (TM_FILE): Update.
3079 * config/m68k/st2000.mt (TM_FILE): Update.
3080 * config/m68k/os68k.mt (TM_FILE): Update.
3081 * config/m68k/obsd.mt (TM_FILE): Update.
3082 * config/m68k/nbsd.mt (TM_FILE): Update.
3083 * config/m68k/monitor.mt (TM_FILE): Update.
3084 * config/m68k/linux.mt (TM_FILE): Update.
3085 * config/m68k/cisco.mt (TM_FILE): Update.
3086 * config/ia64/linux.mt (TM_FILE): Update.
3087 * config/ia64/aix.mt (TM_FILE): Update.
3088 * config/ia64/ia64.mt (TM_FILE): Update.
3089 * config/i386/vxworks.mt (TM_FILE): Update.
3090 * config/i386/obsd64.mt (TM_FILE): Update.
3091 * config/i386/obsd.mt (TM_FILE): Update.
3092 * config/i386/nto.mt (TM_FILE): Update.
3093 * config/i386/nbsd64.mt (TM_FILE): Update.
3094 * config/i386/nbsd.mt (TM_FILE): Update.
3095 * config/i386/linux64.mt (TM_FILE): Update.
3096 * config/i386/linux.mt (TM_FILE): Update.
3097 * config/i386/i386sol2.mt (TM_FILE): Update.
3098 * config/i386/i386lynx.mt (TM_FILE): Update.
3099 * config/i386/fbsd64.mt (TM_FILE): Update.
3100 * config/i386/fbsd.mt (TM_FILE): Update.
3101 * config/i386/cygwin.mt (TM_FILE): Update.
3102 * config/h8300/h8300.mt (TM_FILE): Update.
3103 * config/frv/frv.mt (TM_FILE): Update.
3104 * config/cris/cris.mt (TM_FILE): Update.
3105 * config/arm/wince.mt (TM_FILE): Update.
3106 * config/arm/nbsd.mt (TM_FILE): Update.
3107 * config/arm/linux.mt (TM_FILE): Update.
3108 * config/arm/embed.mt (TM_FILE): Update.
3109 * config/alpha/nbsd.mt (TM_FILE): Update.
3110 * config/alpha/fbsd.mt (TM_FILE): Update.
3111 * config/alpha/alpha.mt (TM_FILE): Update.
3112 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3113 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3114
362646f5
AC
3115 Eliminate event_loop_p, always has the value 1.
3116 * defs.h (event_loop_p): Delete macro.
3117 * breakpoint.c (until_break_command): Simplify.
3118 * utils.c (prompt_for_continue): Simplify.
3119 * tracepoint.c (read_actions): Simplify.
3120 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3121 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3122 (set_prompt, init_main): Simplify.
3123 (init_signals, disconnect): Delete, unused.
3124 * remote.c (remote_async_resume)
3125 (extended_remote_async_create_inferior): Simplify.
3126 * mi/mi-interp.c (mi_input): Delete, unused.
3127 (mi_interpreter_resume, mi_command_loop): Simplify.
3128 * interps.c (current_interp_command_loop): Simplify.
3129 * infrun.c (proceed): Simplify.
3130 * infcmd.c (run_command, continue_command, step_1, jump_command)
3131 (until_command, advance_command, finish_command)
3132 (interrupt_target_command): Simplify.
3133 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3134
ee31a58d
AC
3135 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3136 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3137 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3138 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3139 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3140 * mips-tdep.c (mips_dump_tdep): Do not print same.
3141
b7ffc4a8
AC
31422004-09-12 Andrew Cagney <cagney@gnu.org>
3143
2bfb72ee
AC
3144 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3145 const.
3146 * Makefile.in (valprint.o): Delete explict rule.
3147
4f17c3c1
AC
3148 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3149 reported by Dave Anderson.
3150
f810308b
AC
3151 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3152
b7ffc4a8
AC
3153 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3154
28b41c52
AC
31552004-09-12 Salvador E. Tropea <set@users.sf.net>
3156 Andrew Cagney <cagney@gnu.org>
3157
3158 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3159 (mi_cmd_data_list_register_values)
3160 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3161 the register number computation.
3162
5bf970f9
AC
31632004-09-12 Andrew Cagney <cagney@gnu.org>
3164
3165 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3166 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3167 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3168 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3169 target.
3170 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3171 inf-ptrace.o and inf-child.o.
3172 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3173 * Makefile.in: Update dependencies.
3174
0759e0bf
AC
31752004-09-11 Andrew Cagney <cagney@gnu.org>
3176
3177 * language.c (hex_string, hex_string_custom): Move from here ...
3178 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3179 (CELLSIZE): Increase to 50.
3180 * language.h (hex_string, hex_string_custom): Move from here ...
3181 * defs.h: ... to here.
3182 * Makefile.in: Update all dependencies.
3183
bb599908
PH
31842004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3185
3186 * language.c (local_hex_format_custom): Remove.
3187 (local_hex_string): Rename to hex_string, use C format, and move to
3188 utils.c
3189 (local_hex_string_custom): Rename to hex_string_custom and change
3190 interface. Now uses C format. Move to utils.c
3191 (local_octal_format_custom): Remove.
3192 (local_decimal_format_custom): Remove.
3193 (unknown_language_defn): Remove language-specific number
3194 formatting entries.
3195 (auto_language_defn): Ditto.
3196 (local_language_defn): Ditto.
3197 * language.h (struct language_format_info): Delete declaration.
3198 (struct language_defn): Remove language_format_info fields
3199 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3200 (local_binary_format): Remove macro.
3201 (local_binary_format_prefix): Remove macro.
3202 (local_binary_format_specifier): Remove macro.
3203 (local_binary_format_suffix): Remove macro.
3204 (local_octal_format): Remove macro.
3205 (local_octal_format_prefix): Remove macro.
3206 (local_octal_format_specifier): Remove macro.
3207 (local_octal_format_suffix): Remove macro.
3208 (local_decimal_format): Remove macro.
3209 (local_decimal_format_prefix): Remove macro.
3210 (local_decimal_format_specifier): Remove macro.
3211 (local_decimal_format_suffix): Remove macro.
3212 (local_hex_format): Remove macro.
3213 (local_hex_format_prefix): Remove macro.
3214 (local_hex_format_specifier): Remove macro.
3215 (local_hex_format_suffix): Remove macro.
3216 (local_decimal_format_custom): Remove.
3217 (local_octal_format_custom): Remove.
3218 (local_hex_format_custom): Remove.
3219 (local_hex_string): Rename to hex_string and move to defs.h.
3220 (local_hex_string_custom): Rename to hex_string_custom, change
3221 interface, and move to defs.h.
3222 * utils.c: (int_string): New function.
3223 (hex_string): New function (from language.c).
3224 (hex_string_custom): New function (from language.c).
3225 (octal2str): New function.
3226 (decimal2str): Add width parameter.
3227 (paddr_u): Use new decimal2str interface.
3228 (paddr_d): Ditto.
3229 * defs.h (hex_string): Declare.
3230 (hex_string_custom): Declare.
3231 (int_string): Declare.
3232 * printcmd.c (print_scalar_formatted): Remove localized binary
3233 formatting.
3234 * valprint.c (print_longest): Use int_string.
3235 (print_floating): Use C hex format.
3236 (print_hex_chars): Ditto.
3237 (print_binary_chars): Remove language-specific formatting.
3238 (print_octal_chars): Use C octal format.
3239 (print_decimal_chars): Delocalize format.
3240 (print_decimal): Remove.
3241 * ada-lang.c (ada_language_defn): Remove language-specific number
3242 formatting entries.
3243 * p-lang.c (pascal_language_defn): Ditto.
3244 * c-lang.c (c_language_defn): Ditto.
3245 (cplus_language_defn): Ditto.
3246 (asm_language_defn): Ditto.
3247 (minimal_language_defn): Ditto.
3248 * f-lang.c (f_language_defn): Ditto.
3249 * jv-lang.c (java_language_defn): Ditto.
3250 * m2-lang.c (m2_language_defn): Ditto.
3251 * scm-lang.c (scm_language_defn): Ditto.
3252 * objc-lang.c (objc_language_defn): Ditto.
3253 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3254 new interface.
3255 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3256 * ui-out.c (ui_out_field_core_addr): Ditto.
3257 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3258 * exec.c (print_section_info): Ditto.
3259 * i387-tdep.c (print_i387_status_word): Ditto.
3260 (print_i387_control_word): Ditto.
3261 (i387_print_float_info): Ditto.
3262 * maint.c (maint_print_section_info): Ditto.
3263 * solib.c (info_sharedlibrary_command): Ditto.
3264 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3265 * symtab.c (print_msymbol_info): Ditto.
3266 * tracepoint.c (tracepoints_info): Ditto.
3267 * solib-frv.c (lm_base): Ditto.
3268 (frv_current_sos): Ditto.
3269 (enable_break2): Ditto.
3270 (enable_break): Ditto.
3271 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3272 (process_one_symbol): Ditto.
3273 * infcmd.c (program_info): Ditto.
3274 * mdebugread.c (parse_partial_symbols): Ditto.
3275 * symfile.c (add_symbol_file_command): Ditto.
3276 * cli/cli-cmds.c (edit_command): Ditto.
3277 (list_command): Ditto.
3278 * infcall.c (call_function_by_hand): Ditto.
3279 * remote-vx.c (vx_run_files_info): Ditto.
3280 (vx_wait): Ditto.
3281 (vx_attach): Ditto.
3282 (vx_detach): Ditto.
3283 (vx_kill): Ditto.
3284 * aix-thread.c (pdc_symbol_addrs): Ditto.
3285 (pdc_read_regs): Ditto.
3286 (pdc_write_regs): Ditto.
3287 (pdc_read_data): Ditto.
3288 (pdc_write_data): Ditto.
3289 * d10v-tdep.c (display_trace): Ditto.
3290 * rs6000-nat.c (find_toc_address): Ditto.
3291 * aix-thread.c: Don't include language.h.
3292 * buildsym.c: Ditto.
3293 * dbxread.c: Ditto.
3294 * mdebugread.c: Ditto.
3295 * rs6000-nat.c: Ditto.
3296 * buildsym.c (make_blockvector): Use renamed hex_string.
3297
33f2d567
JM
32982004-09-10 Jason Molenda (jmolenda@apple.com)
3299
3300 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3301 chars after 'if' or 'while' commands in user-defined commands.
3302
7b90c3f9
JB
33032004-09-08 Jim Blandy <jimb@redhat.com>
3304
3305 Fix bug reported and analyzed by Olivier Crete:
3306 * symfile.c (copy_section_addr_info): New function.
3307 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3308 original set of address arguments, instead of handwritten code
3309 that uses one length to allocate and a different length to
3310 initialize. Use make_cleanup_free_section_addr_info.
3311 * symfile.h (copy_section_addr_info): New declaration.
3312 * utils.c: #include "symfile.h".
3313 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3314 New functions.
3315 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3316 * Makefile.in (utils.o): Update dependencies.
3317
b26a6851
AC
33182004-09-08 Andrew Cagney <cagney@gnu.org>
3319
3320 * thread-db.c (keep_thread_db): Delete.
3321 (thread_db_new_objfile, thread_db_create_inferior)
3322 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3323
be24b061
MK
33242004-09-08 Mark Kettenis <kettenis@gnu.org>
3325
f6792ef4
MK
3326 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3327 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3328 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3329 (i386_frameless_signal_p): Remove prototype.
3330 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3331 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3332 I386_SSE_NUM_REGS.
3333 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3334 instead of FP0_REGNUM.
3335 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3336 of FP0_REGNUM and FPC_REGNUM.
3337
eeefdaa7
MK
3338 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3339 (sunos_solib_create_inferior_hook): Don't call
3340 sunos_relocate_main_executable.
3341
be24b061
MK
3342 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3343 solib_svr4_fetch_link_map_offsets to
3344 svr4_ilp32_fetch_link_map_offsets.
3345 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3346 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3347 svr4_ilp32_fetch_link_map_offsets.
3348 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3349
7c679d16
JB
33502004-09-07 Jim Blandy <jimb@redhat.com>
3351
3352 * frame.h (frame_register): Doc fix.
3353
1f04aa62
AC
33542004-09-07 Andrew Cagney <cagney@gnu.org>
3355
3356 * vx-share/wait.h: Delete #ifdef USG.
3357 * utils.c (request_quit): Ditto.
3358 * tui/tui.c (tui_reset): Ditto.
3359 * remote.c: Ditto.
3360 * remote-sds.c: Ditto.
3361 * remote-rdi.c: Ditto.
3362 * mdebugread.c: Ditto.
3363 * m68klinux-nat.c: Ditto.
3364 * infttrace.c: Ditto.
3365 * infptrace.c: Ditto.
3366 * i386v-nat.c: Ditto.
3367 * exec.c: Ditto.
3368 * dbxread.c: Ditto.
3369 * core-aout.c: Ditto.
3370
90edbfbc
JB
33712004-09-05 Joel Brobecker <brobecker@gnat.com>
3372
3373 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3374 heuristic_proc_desc.
3375 (mips_insn32_frame_cache): Likewise.
3376
01f4bf2b
JB
33772004-09-04 Joel Brobecker <brobecker@gnat.com>
3378
3379 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3380 left behind by error.
3381
8511a048
JB
33822004-09-04 Joel Brobecker <brobecker@gnat.com>
3383
3384 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3385 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3386
649dfe9f
JB
33872004-09-04 Joel Brobecker <brobecker@gnat.com>
3388
3389 * config/rs6000/xm-aix4.h: Remove this file.
3390 * config/rs6000/aix4.mh (XM_FILE): Delete.
3391
6e50f889
JB
33922004-09-04 Joel Brobecker <brobecker@gnat.com>
3393
3394 * config/rs6000/xm-rs6000.h: Remove this file.
3395 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3396
b8c4aece
AC
33972004-09-03 Andrew Cagney <cagney@gnu.org>
3398
fb603883
AC
3399 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3400 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3401 only use.
3402
c9343fd1
AC
3403 * mips-tdep.c (temp_saved_regs): Delete.
3404 (set_reg_offset): Replace saved_regs parameter with this_cache.
3405 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3406 (mips32_heuristic_proc_desc): Add this_cache parameter.
3407 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3408 (after_prologue): Pass a NULL this_cache.
3409
9733cfe1
AC
3410 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3411 non-kernel trap prologues.
3412
0d5febcc
AC
3413 * mips-tdep.c (find_proc_desc): Delete function.
3414 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3415 simplify.
3416 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3417 mips_insn32_frame_cache.
3418
9733cfe1 3419 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
3420 Simplify as NEXT_FRAME is NULL.
3421 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3422
177f84a3
AC
3423 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3424 local variable.
3425 (mips_skip_prologue): Update.
3426
465f7520
AC
3427 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3428 "cur_frame" parameter.
177f84a3
AC
3429 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3430 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 3431
e38b8658
AC
3432 * config/vax/nm-obsd.h: Delete file.
3433 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3434 * config/vax/nm-nbsd.h: Delete file.
3435 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3436 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3437 * config/sh/nm-nbsd.h: Delete file.
3438 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3439 * config/rs6000/nm-rs6000ly.h: Delete file.
3440 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3441 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3442 * config/powerpc/nm-obsd.h: Delete file.
3443 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3444 * config/powerpc/nm-nbsd.h: Delete file.
3445 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3446 * config/pa/nm-obsd.h: Delete file.
3447 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3448 * config/mips/nm-nbsd.h: Delete file.
3449 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3450 * config/m88k/nm-obsd.h: Delete file.
3451 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3452 * config/m68k/nm-nbsd.h: Delete file.
3453 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3454 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3455 * config/i386/nm-nbsd.h: Delete file.
3456 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3457 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3458 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3459 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3460 * config/i386/nm-i386lynx.h: Delete file.
3461 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3462 * config/arm/nm-nbsd.h: Delete file.
3463 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3464 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3465
be1ed680
AC
3466 * config/i386/tm-fbsd.h: Delete file.
3467 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3468 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3469
4b392b26
AC
3470 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3471 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3472 * config/rs6000/aix4.mt (TM_FILE): Set to
3473 config/rs6000/tm-rs6000.h.
3474 * config/powerpc/tm-ppc-aix.h: Delete file.
3475 * config/powerpc/aix.mt (TM_FILE): Set to
3476 config/rs6000/tm-rs6000.h.
3477 * config/m68k/tm-linux.h: Delete file.
3478 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3479 * config/i386/tm-linux64.h: Delete file.
3480 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3481 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3482
f3219c75
AC
3483 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3484 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3485 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3486 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3487 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3488 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3489 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3490 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3491 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3492
b8c4aece
AC
3493 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3494 gdb_host_cpu.
3495
8ac2e020
JB
34962004-09-02 Joel Brobecker <brobecker@gnat.com>
3497
3498 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3499 Minor reformatting. Some code factoring.
3500
c185a355
AC
35012004-09-02 Andrew Cagney <cagney@gnu.org>
3502
63f22f0d
AC
3503 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3504 * config/vax/tm-nbsd.h: Delete file.
3505 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3506 * config/sparc/tm-vxworks.h: Delete file.
3507 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3508 * config/sparc/tm-nbsd.h: Delete file.
3509 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3510 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3511 * config/sparc/tm-linux.h: Delete file.
3512 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3513 * config/s390/tm-linux.h: Delete file.
3514 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3515 * config/pa/tm-bsd.h: Delete file.
3516 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3517 * config/m68k/tm-obsd.h: Delete file.
3518 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3519 * config/m68k/tm-nbsd.h: Delete file.
3520 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3521 * config/i386/tm-vxworks.h: Delete file.
3522 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3523 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3524 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3525 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3526 * config/i386/tm-nbsd.h: Delete file.
3527 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3528 * config/i386/tm-i386lynx.h: Delete file.
3529 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3530 * config/cris/tm-cris.h: Delete file.
3531
0f475e27
AC
3532 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3533 * configure: Re-generate.
3534 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3535 * config/arm/tm-nbsd.h: Delete file.
3536
458ed000
AC
3537 * config/powerpc/tm-ppcle-sim.h: Delete.
3538 * config/powerpc/tm-ppcle-eabi.h: Delete.
3539 * config/powerpc/tm-nbsd.h: Delete.
3540 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3541 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3542 tm-ppcle-eabi.h.
3543
f14375f3
AC
3544 * config/i386/nto.mh (NAT_FILE): Delete.
3545 * config/i386/nm-nto.h: Delete.
3546
c34d127c
AC
3547 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3548 * config/m68k/tm-os68k.h: Ditto.
3549 * config/m68k/tm-monitor.h: Ditto.
3550 * config/m68k/tm-cisco.h: Ditto.
3551 * config/m68k/st2000.mt (TM_FILE): Delete.
3552 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3553 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3554 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3555 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3556
f7f0fe03
AC
3557 * config/m68k/tm-st2000.h: Delete.
3558 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3559 * config/sparc/fbsd.mt (TM_FILE): Delete.
3560 * config/sparc/tm-fbsd.h: Delete.
3561
a2558533
AC
3562 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3563 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3564 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3565
b78960be
AC
3566 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3567 GDB_TM_FILE and GDB_XM_FILE.
3568 * gdbarch.c: Re-generate.
3569 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3570 quotes in macro definition.
3571 * configure.in: Re-generate.
3572
4d60522e
AC
3573 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3574 validating architecture methods.
3575 * gdbarch.c: Re-generate.
3576
5010d38b
AC
3577 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3578 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3579 GDB_MULTI_ARCH_PARTIAL.
3580 * gdbarch.h: Re-generate.
3581
c185a355
AC
3582 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3583 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3584 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3585 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3586 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3587 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3588 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3589 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3590 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3591 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3592 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3593 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3594
14aaa6ab
AC
35952004-09-01 Andrew Cagney <cagney@gnu.org>
3596
3597 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3598 and main_func_highpc.
3599 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3600 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3601 * nlmread.c (nlm_symfile_read): Update.
3602
a343eb3c
JB
36032004-09-01 Joel Brobecker <brobecker@gnat.com>
3604
3605 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3606 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3607 (find_proc_desc): Remove dead code.
3608
4fbbbd07
JB
36092004-09-01 Joel Brobecker <brobecker@gnat.com>
3610
3611 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3612
84acb35a
JJ
36132004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3614
3615 * observer.sh: Add struct so_list declaration.
3616 * Makefile.in: Add dependencies on observer.h for solib.c and
3617 breakpoint.c.
3618 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3619 function.
3620 (_initialize_breakpoint): Register
3621 disable_breakpoints_in_unloaded_shlib as an observer of the
3622 "solib unloaded" observation event.
3623 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3624 call decode_line_1 so unfound breakpoint errors are silent.
3625 * solib.c (update_solib_list): When a solib is discovered to have
3626 been unloaded by the program, notify all observers of the
3627 "solib unloaded" observation event.
3628
c8cd9f6c
AC
36292004-09-01 Andrew Cagney <cagney@gnu.org>
3630
3631 * frame.c: Include "objfiles.h".
3632 (inside_main_func): New function.
3633 (get_prev_frame): Use new inside_main_func.
3634 * Makefile.in (frame.o): Update dependencies.
3635 * defs.h (inside_main_func): Delete declaration.
3636 * blockframe.c (inside_main_func): Delete function.
3637
1168df01
JB
36382004-08-31 Jim Blandy <jimb@redhat.com>
3639
3640 * dwarf2read.c (is_vtable_name): New function, based on logic from
3641 read_structure_type, but passing the correct length to strncmp,
3642 and using 'sizeof' instead of 'strlen'.
3643 (read_structure_type): Call it.
3644
f14f9744
JB
36452004-08-31 Joel Brobecker <brobecker@gnat.com>
3646
3647 * config/powerpc/aix.mh: Add comment.
3648
386d4518
PG
36492004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3650
3651 * MAINTAINERS: Add self to Write-After-Approval.
3652
7d97d5e2
MI
36532004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3654
3655 * MAINTAINERS: Add self to Write-After-Approval.
3656
68f53502
AC
36572004-08-30 Andrew Cagney <cagney@gnu.org>
3658
3659 Fix PR breakpoints/1757.
3660 * infrun.c (struct execution_control_state): Replace
3661 remove_breakpoints_on_following_step with
3662 step_after_step_resume_breakpoint.
3663 (init_execution_control_state): Update.
3664 (handle_inferior_event): For signals, when stepping off a
3665 breakpoint, set step_after_step_resume_breakpoint. When
3666 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3667 (keep_going): Delete code handling
3668 remove_breakpoints_on_following_step.
3669
7ca2d3a3
DL
36702004-08-29 David Lecomber <david@streamline-computing.com>
3671
3672 Fix PR gdb/648
3673 * language.h (enum array_ordering): New enum.
3674 * language.h (struct language_defn): New la_array_ordering
3675 attribute.
3676 * language.c (unknown_language_defn, auto_language_defn)
3677 (local_language_defn): Ditto.
3678 * ada-lang.c (ada_language_defn): Ditto.
3679 * c-lang.c (c_language_defn, cplus_language_defn)
3680 (asm_language_defn, minimal_language_defn): Ditto.
3681 * f-lang.c (f_language_defn): Ditto.
3682 * jv-lang.c (java_language_defn): Ditto.
3683 * m2-lang.c (f_language_defn): Ditto.
3684 * objc-lang.c (objc_language_defn): Ditto.
3685 * p-lang.c (pascal_language_defn): Ditto.
3686 * scm-lang.c (scm_language_defn): Ditto.
3687 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3688 oriented large to small in type structure.
3689 * dwarf2read.c (read_array_order): New function.
3690 (read_array_type): Use read_array_order to check row/column
3691 major ordering.
3692
e354df01
NW
36932004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3694
3695 * target.c (target_resize_to_sections): Check
3696 current_target.to_sections for an old value when updating.
3697
9185ddce
JB
36982004-08-27 Joel Brobecker <brobecker@gnat.com>
3699
3700 * procfs.c (dbx_link_bpt_addr): New static global variable.
3701 (dbx_link_shadow_contents): New static global variable.
3702 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3703 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3704 if we just hit it.
3705 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3706 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3707 from run to run.
3708 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3709 after the inferior has been forked.
3710 (remove_dbx_link_breakpoint): New function.
3711 (dbx_link_addr): New function.
3712 (insert_dbx_link_bpt_in_file): New function.
3713 (insert_dbx_link_bpt_in_region): New function.
3714 (insert_dbx_link_breakpoint): New function.
3715 (proc_trace_syscalls_1): New function, extracted from
3716 proc_trace_syscalls.
3717 (proc_trace_syscalls): Replace extract code by call to
3718 proc_trace_syscalls_1.
3719 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3720 is no longer valid.
3721
e6742ace
JB
37222004-08-25 Jim Blandy <jimb@redhat.com>
3723
3724 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3725
8fb3e588
AC
37262004-08-25 Andrew Cagney <cagney@gnu.org>
3727
629a41ee
AC
3728 * infrun.c (struct execution_control_state): Delete field
3729 "stepping_through_sigtramp".
3730 (init_execution_control_state): Do not set same.
3731 (context_switch): Do not pass same to save_infrun_state and
3732 load_infrun_state.
3733 * gdbthread.h (struct thread_info): Delete field
3734 stepping_through_sigtramp.
3735 (save_infrun_state, load_infrun_state): Delete parameter
3736 stepping_through_sigtramp.
3737 * thread.c (load_infrun_state, save_infrun_state): Update.
3738
8fb3e588
AC
3739 * infrun.c: Re-indent. Move expression operators to the beginning
3740 of the line. Remove long disabled #if 0 code.
3741
49c54768
AC
37422004-08-24 Andrew Cagney <cagney@gnu.org>
3743
3744 * doublest.h (floatformat_ieee_quad): Rename
3745 floatformat_ia64_quad.
3746 * doublest.c (floatformat_ieee_quad): Rename
3747 floatformat_ia64_quad.
3748 (_initialize_doublest): Update.
3749
5ca2e327
JB
37502004-08-24 Jim Blandy <jimb@redhat.com>
3751
87808bd6
JB
3752 * dwarf2expr.h (struct dwarf_expr_context): New members
3753 'num_pieces' and 'pieces', for returning the result of an
3754 expression that uses DW_OP_piece.
3755 (struct dwarf_expr_piece): New struct type.
3756 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3757 pieces.
3758 (free_dwarf_expr_context): Free pieces, if any.
3759 (add_piece): New function.
3760 (execute_stack_op): Implement DW_OP_piece.
3761 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3762 expression is a list of pieces, print an error message.
3763 (dwarf2_loc_desc_needs_frame): If the expression yields
3764 pieces, and any piece is in a register, then we need a frame.
3765
5ca2e327
JB
3766 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3767 the stack until we've decided what sort of result the evaluation
3768 has produced. Use separate variables, with more specific names.
3769
2afeb6b8
RE
37702004-08-23 Richard Earnshaw <rearnsha@arm.com>
3771
3772 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3773 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3774 (arm_netbsd_init_abi_common): Register them.
3775
5885ab49
MK
37762004-08-22 Mark Kettenis <kettenis@gnu.org>
3777
fda820a6
MK
3778 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3779
1c5bf419
MK
3780 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3781 safe_frame_unwind_memory instead of target_read_memory.
3782
8cbba7c8
MK
3783 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3784 Reorder includes.
3785 (fetch_register, store_register): Remove prototypes.
3786 (child_resume): Reorganize code and comments such that it is
3787 grouped a bit more logically.
3788 (attach): Explicitly compare errno against 0.
3789 (detach): Likewise. Use perror_with_name instead of
3790 print_sys_errmsg.
3791 * Makefile.in (infptrace.o): Update dependencies.
3792
c5fa4245
MK
3793 * ia64-linux-nat.c: Update copyright year.
3794 (fetch_debug_register, store_debug_register)
3795 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3796 PTRACE_TYPE_ARG3.
3797 * config/ia64/nm-linux.h: Update copyright year.
3798 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3799
387c058c
MK
3800 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3801 from CORE_ADDR to struct frame_info *. Use
3802 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3803 (amd64_linux_sigtramp_p): Adjust for changed signature of
3804 and64_linux_sigtramp_start
3805
277215a6
MK
3806 * gdb_ptrace.h: GNU/Linux.
3807
25f6178e
MK
3808 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3809 Remove defines.
3810
652fc137
MK
3811 * infptrace.c: Include "gdb_assert.h".
3812 (PTRACE_XFER_TYPE): Remove define.
3813 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3814 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3815 Tweak comment.
3816 (fetch_inferior_registers, store_inferior_registers): Remove
3817 redundant culry braces. Tweak comment. s/regno/regnum.
3818 * Makefile.in (infptrace.o): Update dependencies.
3819
5885ab49
MK
3820 * configure.in: Change test for return type of ptrace to default
3821 to `long' instead of `int'.
3822 * configure: Regenerate.
3823
11003ae3
MK
38242004-08-21 Mark Kettenis <kettenis@gnu.org>
3825
6b95110c
MK
3826 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3827
bcb3dc3d
MK
3828 * configure.in: Check for ttrace function.
3829 * configure, config.in: Regenerate.
3830
11003ae3
MK
3831 * gdb_ptrace.h: New file.
3832 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3833 <sys/ptrace.h>.
3834 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3835 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3836 (attach): Don't define PT_ATTACH.
3837 (detach): Don't define PT_DETACH.
3838 * Makefile.in (gdb_ptrace_h): New variable.
3839 (infptrace.o): Update dependencies.
3840
f8707cac
MK
38412004-08-16 Mark Kettenis <kettenis@gnu.org>
3842
3843 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3844 instead of `int' if not already defined.
3845 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3846 PTRACE_TYPE_ARG3.
3847 * infptrace.c (call_ptrace): Revert change that replaced
3848 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3849
655c5466
MK
38502004-08-15 Mark Kettenis <kettenis@gnu.org>
3851
156e5ba7
MK
3852 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3853 Remove defines.
3854
de9a9e51
MK
3855 * linux-nat.c (kill_inferior): Add missing third and fourth
3856 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3857
88800403
MK
3858 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3859 PTRACE_TYPE_RET.
3860
849a1d7c
MK
3861 * proc-why.c (proc_prettyfprint_why): Fix format string.
3862
61ad16d1
MK
3863 * solib-osf.c (osf_current_sos): Remove unsused label.
3864
a6ed5501
MK
3865 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3866 curses headers.
3867 * configure, config.in: Regenerate.
3868 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3869 <ncurses/ncurses.h>.
3870
016ddeca
MK
3871 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3872 * config/nm-nbsd.h: Update copyright year.
3873 (PTRACE_ARG3_TYPE): Remove define.
3874
49ec097f
MK
3875 * sparc-nat.c (fetch_inferior_registers)
3876 (store_inferior_registers, sparc_xfer_wcookie):
3877 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3878
9f8e0089
MK
3879 * alphabsd-nat.c (fetch_inferior_registers):
3880 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3881 PTRACE_TYPE_ARG3.
3882 * amd64bsd-nat.c (fetch_inferior_registers)
3883 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3884 PTRACE_TYPE_ARG3.
3885 * armnbsd-nat.c: Update copyright year.
3886 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3887 (store_register, store_regs, store_fp_register, store_fp_regs):
3888 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3889 * hppabsd-nat.c (fetch_inferior_registers)
3890 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3891 PTRACE_TYPE_ARG3.
3892 * i386bsd-nat.c (fetch_inferior_registers)
3893 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3894 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3895 * m68kbsd-nat.c (fetch_inferior_registers)
3896 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3897 PTRACE_TYPE_ARG3.
3898 * m88kbsd-nat.c (fetch_inferior_registers)
3899 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3900 PTRACE_TYPE_ARG3.
3901 * mipsnbsd-nat.c: Update copyright year.
3902 (fetch_inferior_registers, store_inferior_registers):
3903 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3904 * ns32knbsd-nat.c: Update copyright year.
3905 (fetch_inferior_registers, store_inferior_registers):
3906 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3907 * ppcnbsd-nat.c (fetch_inferior_registers):
3908 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3909 PTRACE_TYPE_ARG3.
3910 * ppcobsd-nat.c (fetch_inferior_registers):
3911 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3912 PTRACE_TYPE_ARG3.
3913 * shnbsd-nat.c: Update copyright year.
3914 (fetch_inferior_registers, store_inferior_registers):
3915 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3916 * vaxbsd-nat.c (fetch_inferior_registers)
3917 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3918 PTRACE_TYPE_ARG3.
3919
655c5466
MK
3920 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3921 PTRACE_TYPE_ARG3.
3922 * infptrace.c (call_ptrace, child_resume, attach, detach)
3923 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3924 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3925 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3926 PTRACE_TYPE_ARG3.
3927
c40d0d10
MK
39282004-08-14 Mark Kettenis <kettenis@gnu.org>
3929
5cb0ff31
MK
3930 * defs.h: Remove out-of-date comment.
3931 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3932 [!GETENV_PROVIDED] (getenv): Remove prototype.
3933
5f0f34cb
MK
3934 * standalone.c: Remove file.
3935 * Makefile.in (standalone.o): Remove dependency.
3936
7532965f
MK
3937 * i386-linux-nat.c (dummy_sse_values): Remove function and
3938 prototype.
3939 (i386_linux_dr_get): Fix typo in comment.
3940 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3941
1bdc6c53
MK
3942 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3943
c40d0d10
MK
3944 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3945 from declaration.
3946 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3947 from definition.
3948
64218d3e
MK
39492004-08-13 Mark Kettenis <kettenis@gnu.org>
3950
3951 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3952 parenthesis in definition.
3953 * configure: Regenerated.
3954
926c94e7
MC
39552004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3956
3957 * PROBLEMS: Mention build/1411.
3958
69489883
NN
39592004-08-09 Robert Millan <robertmh@gnu.org>
3960
3961 Committed by Nathanael Nerode.
3962 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3963 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3964
ebb7c577
AC
39652004-08-12 Andrew Cagney <cagney@gnu.org>
3966
3967 * NEWS: Mention fixes in GDB 6.2.1.
3968 * PROBLEMS: Remove mention of mips-irix.
3969
232d697c
JB
39702004-08-11 Joel Brobecker <brobecker@gnat.com>
3971
3972 * config/powerpc/xm-aix.h: Delete.
3973 * config/powerpc/aix.mh (MH_FILE): Remove.
3974 * config/powerpc/aix432.mh (MH_FILE): Remove.
3975
72f4e82b
JB
39762004-08-11 Joel Brobecker <brobecker@gnat.com>
3977
3978 * config/powerpc/aix.mh: Remove obsolete comment.
3979 * config/powerpc/aix432.mh: Likewise.
3980
0687ccb2
JB
39812004-08-11 Joel Brobecker <brobecker@gnat.com>
3982
3983 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3984
dbf3ada7
JB
39852004-08-11 Joel Brobecker <brobecker@gnat.com>
3986
e08e1886
JB
3987 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3988 this file is now empty.
3989 * config/xm-aix4.h: Remove, this file is no longer included
3990 anywhere.
3991
39922004-08-11 Joel Brobecker <brobecker@gnat.com>
3993
3994 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3995 that file is now empty.
dbf3ada7
JB
3996 (termdef): Remove prototype, function no longer used.
3997
4c525ef6
JB
39982004-08-11 Joel Brobecker <brobecker@gnat.com>
3999
4000 * doc/gdbint.texinfo (Host Definition): Remove documentation
4001 for USE_O_NOCTTY, no longer used.
4002 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4003 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4004
82e0b968
JB
40052004-08-11 Joel Brobecker <brobecker@gnat.com>
4006
4007 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4008 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4009 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4010
f2acbe1c
MK
40112004-08-11 Mark Kettenis <kettenis@gnu.org>
4012
daa98270
MK
4013 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4014 instead of FIVE_ARG_PTRACE.
4015
f2acbe1c
MK
4016 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4017 (new_tty): Use O_NOCTTY unconditionally.
4018
cc377e6b
MK
40192004-08-10 Mark Kettenis <kettenis@gnu.org>
4020
4021 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4022 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4023 fflush on stdout.
4024
3bcc18fa
JB
40252004-08-10 Joel Brobecker <brobecker@gnat.com>
4026
4027 * xcoff_symfile_finish: Replace last call to xmfree by call
4028 to xfree.
4029
7936743b
AC
40302004-08-10 Andrew Cagney <cagney@gnu.org>
4031
cc503c8a
AC
4032 * main.c (captured_main): Delete call to init_malloc.
4033 * defs.h (init_malloc): Delete declaration.
4034 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4035 (init_malloc): Delete functions.
4036
2dc74dc1
AC
4037 * defs.h (xmfree): Delete.
4038 * utils.c (xmfree): Delete function.
4039 (xfree): Inline calls to xmfree and mfree.
4040 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4041 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4042 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4043 * somread.c (som_symfile_finish): Ditto.
4044 * objfiles.c (allocate_objfile, free_objfile):
4045 * nlmread.c (nlm_symfile_finish): Ditto.
4046 * hpread.c (hpread_symfile_finish): Ditto.
4047 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4048 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4049 * coffread.c (coff_symfile_finish): Ditto.
4050
aa2ee5f6
AC
4051 * defs.h (xmcalloc): Delete declaration.
4052 * utils.c (xmcalloc): Delete.
4053 (xcalloc): Inline calls to xmcalloc and mcalloc.
4054 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4055 xcalloc and xfree.
4056 * symtab.c (create_demangled_names_hash): Ditto.
4057
0efffb96
AC
4058 * defs.h (xmrealloc): Delete.
4059 * utils.c (xmrealloc): Delete.
4060 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4061 * symmisc.c (extend_psymbol_list): Use xrealloc.
4062 * source.c (find_source_lines): Ditto.
4063 * hpread.c (hpread_lookup_type): Ditto.
4064 * dbxread.c (add_bincl_to_list): Ditto.
4065
7936743b
AC
4066 * utils.c (xmmalloc): Delete.
4067 (xmalloc): Inline xmmalloc and mmalloc calls.
4068 (msavestring): Use xmalloc.
4069 * defs.h (xmmalloc): Delete declaration.
4070 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4071 xmmalloc.
4072 * symmisc.c (extend_psymbol_list): Ditto.
4073 * symfile.c (init_psymbol_list): Ditto.
4074 * source.c (find_source_lines): Ditto.
4075 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4076 * elfread.c (elf_symtab_read): Ditto.
4077 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4078 * coffread.c (coff_symfile_init): Ditto.
4079
252ab814
DC
40802004-08-10 David Carlton <carlton@bactrian.org>
4081
4082 * MAINTAINERS: Remove David Carlton from c++ testsuite
4083 maintainers.
4084
8f5ba92b
JG
40852004-08-10 Jerome Guitton <guitton@gnat.com>
4086
4087 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4088 print a line feed before the prompt.
4089
21749010
MK
40902004-08-10 Mark Kettenis <kettenis@gnu.org>
4091
4092 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4093
1f011ce2
JB
40942004-08-09 Joel Brobecker <brobecker@gnat.com>
4095
4096 General cleanup of the AIX xm include file:
4097 * config/xm-aix4.h (fd_set): Remove undefine.
4098 Remove include of <sys/select.h>.
4099 (HAVE_TERMIO): Remove define.
4100 (USG): Likewise.
4101 (NULL): Remove redefine.
4102 (alloca): Remove #pragma.
4103 (vfork): Remove define.
4104 (termdef): Remove.
4105 (SIGWINCH_HANDLER): Remove.
4106 (SIGWINCH_HANDLER_BODY): Remove.
4107
cf4e7692
MK
41082004-08-09 Mark Kettenis <kettenis@gnu.org>
4109
4110 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4111 GDB_OSABI_OPENBSD_ELF.
4112
ac5754fa
MK
41132004-08-07 Robert Millan <robertmh@gnu.org>
4114
4115 * bsd-kvm.c: Check for nlist.h before including it.
4116
086ec9eb
MK
41172004-08-09 Mark Kettenis <kettenis@gnu.org>
4118
bbe06c74
MK
4119 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4120 sigcontext' offset consistency checks for ancient BSD.
4121
3aa7b3b3
MK
4122 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4123
086ec9eb
MK
4124 * configure.in: Check for <sys/types.h>. Check return and
4125 argument types of ptrace.
4126 * configure, config.in: Regenerate.
4127
09991fa0
JB
41282004-08-09 Jim Blandy <jimb@redhat.com>
4129
4130 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4131 rs6000_register_sim_regno): Doc fixes.
4132
fed7ba43
JB
41332004-08-08 Joel Brobecker <brobecker@gnat.com>
4134
4135 * mips-tdep.c: Include "floatformat.h".
4136 (n32n64_floatformat_always_valid): New function.
4137 (floatformat_n32n64_long_double_big): New constant.
4138 (mips_gdbarch_init): Set size and format of long double
4139 for N32 and N64 ABIs.
4140 * Makefile.in (mips-tdep.o): Update dependencies.
4141
456fcf94
AC
41422004-08-08 Andrew Cagney <cagney@gnu.org>
4143
2f9b146e
AC
4144 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4145 print. Improve script's error messages.
4146 * gdbarch.h: Re-generate.
4147
456fcf94
AC
4148 * gdbarch.sh (pformat): New function.
4149 (float_format, double_format, long_double_format): List with bit
4150 members. Use pformat when printing.
4151 * gdbarch.c, gdbarch.h: Re-generate.
4152
69e9e646
NW
41532004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4154
4155 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4156 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4157 (ppcnbsd_supply_pcb): New function.
4158 (_initialize_ppcnbsd_nat): New prototype and function.
4159 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4160 (LOADLIBES): New variable.
4161 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4162
5ef2d0aa
AC
41632004-08-08 Andrew Cagney <cagney@gnu.org>
4164
4165 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4166 (builtin_type_ieee_double, builtin_type_ia64_quad)
4167 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4168 BE/LE floating-point types.
4169 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4170 (builtin_type_ieee_double, builtin_type_ia64_quad)
4171 (builtin_type_ia64_spill): Declare.
4172 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4173 (floatformat_ieee_double, floatformat_arm_ext)
4174 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4175 of LE/BE floatformats.
4176 * doublest.h: (struct floatformat, floatformat_ieee_single)
4177 (floatformat_ieee_double, floatformat_arm_ext)
4178 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4179
5c7f2947
MK
41802004-08-08 Mark Kettenis <kettenis@gnu.org>
4181
ecac404d
MK
4182 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4183
9b8607ce
MK
4184 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4185 instead of regcache_raw_supply when storing the registers.
4186
f6052080
MK
4187 * i386gnu-nat.c: Update copyright year.
4188 (gnu_store_registers): Don't use deprecated_registers and
4189 deprecated_registers_valid. Use regcache_valid_p and
4190 regcache_raw_supply instead.
4191
17777823
MK
4192 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4193 frame_pc_unwind.
4194
5240ceac
MK
4195 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4196 variables. Incapitalized "process".
4197
5c7f2947
MK
4198 * configure.in: Add cursesX to the list of possible curses libs.
4199 Add cursesX.h to the list of possible curses headers.
4200 * configure, config.in: Regenerate.
4201
da7d81e3
NW
42022004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4203
4204 * configure.in: Test for struct lwp in <sys/lwp.h>.
4205 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4206 the offset of l_addr in struct lwp.
4207
7f245d65
NW
42082004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4209
4210 * bsd-kvm.c: Include "gdbcore.h"
4211 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4212
47b3f456
AC
42132004-08-07 Andrew Cagney <cagney@gnu.org>
4214
70bd8e24
AC
4215 * gdbtypes.c (build_flt, build_complex): New functions.
4216 (gdbtypes_post_init): Use.
4217
9b0dea39
AC
4218 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4219
5cf7abac
AC
4220 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4221 through to builtin_type_uint128.
4222
64d2b26d
AC
4223 * c-exp.y: Use builtin_type function to obtain builtin types.
4224
7ad6570d
AC
4225 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4226 builtin_uint128.
4227 * gdbtypes.c (gdbtypes_post_init): Update.
4228 (build_gdbtypes): Move initialization of builtin_type_int0
4229 through to builtin_type_uint128 from here ...
4230 (_initialize_gdbtypes): ... to here.
4231 * d10v-tdep.c (d10v_register_type): Update.
4232
47b3f456
AC
4233 * doublest.c: Update copyright.
4234 (floatformat_from_length): Call error when floatformat is NULL.
4235 (extract_floating_by_length): Remove NULL fmt check.
4236 (store_floating_by_length): Ditto.
4237
0a8146bf
AC
42382004-08-07 Andrew Cagney <cagney@gnu.org>
4239
4240 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4241 that the register is valid.
4242
c0ccb908
MK
42432004-08-05 Mark Kettenis <kettenis@chello.nl>
4244
8e6bed05
MK
4245 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4246 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4247 struct frame_info *. Use safe_frame_unwind_memory instead of
4248 deprecated_read_memory_nobpt.
4249 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4250 changed signature of i386_linux_sigtramp_start and
4251 i386_linux_rt_sigtramp_start.
4252
24f9f5e3
MK
4253 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4254 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4255 instead of deprecated_read_memory_nobpt.
4256 (i386nbsd_sigtramp_p): Adjust for changed signature of
4257 i386nbsd_sigtramp_offset.
4258
c822af0c
MK
4259 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4260 safe_frame_unwind_memory instead of target_read_memory.
4261
c0ccb908
MK
4262 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4263 !NO_SYS_FILE.
4264 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4265 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4266 (_initialize_kernel_u_addr): Remove prototype and function.
4267 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4268 !NO_SYS_FILE.
4269 * xcoffread.c: Likewise.
4270
b9e1c0d6
MK
42712004-08-06 Mark Kettenis <kettenis@gnu.org>
4272
4273 * vax-nat.c: New file.
4274 * vaxbsd-nat.c: Tweak comment.
4275 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4276 vaxnbsd-tdep.c.
4277 (vax-nat.o): New dependency.
4278 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4279 (vax-*-ultrix2*): Remove.
4280 * config/vax/vax.mh: New file.
4281 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4282 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4283 (vax_register_u_addr): New prototype.
4284 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4285 * config/vax/vaxult2.mh: Remove file.
4286 * config/vax/vaxult.mh: Remove file.
4287 * config/vax/vaxbsd.mh: Remove file.
4288 * config/vax/vax.mt (TM_FILE): Remove.
4289 * config/vax/tm-vaxbsd.h: Remove file.
4290
9ad7bec7
JB
42912004-08-06 Joel Brobecker <brobecker@gnat.com>
4292
4293 * aix-thread.c (get_signaled_thread): New function.
4294 (iter_trap): Delete, no longer used.
4295 (iter_tid): New function.
4296 (pd_update): Find the thread that received the SIGTRAP signal
4297 by first locating the kernel thread, and then finding its
4298 associated thread.
4299
bf0d233d
UW
43002004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4301
4302 * lin-lwp.c (child_wait): Continue inferior after processing
4303 PTRACE_EVENT_CLONE event.
4304
d0f853e1
NN
43052004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4306
4307 * MAINTAINERS: Add self to Write-After-Approval.
4308
ab14aeb0
JJ
43092004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4310
4311 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4312 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4313
9c8dbfa9
AC
43142004-08-05 Andrew Cagney <cagney@gnu.org>
4315
c8f3ca46
AC
4316 * config/xm-sysv4.h: Delete file.
4317 * config/mips/xm-irix5.h: Delete file.
4318 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4319 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4320 * config/ia64/xm-aix.h: Delete file.
4321 * config/ia64/aix.mh (XM_FILE): Delete.
4322 * config/pa/xm-hppah.h: Delete file.
4323 * config/pa/hpux11w.mh (XM_FILE): Delete.
4324 * config/pa/hpux11.mh (XM_FILE): Delete.
4325 * config/pa/hpux1020.mh (XM_FILE): Delete.
4326 * config/pa/hppahpux.mh (XM_FILE): Delete.
4327
5f7daaff
AC
4328 * config/alpha/xm-alphalinux.h: Delete file.
4329 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4330 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4331 * config/alpha/xm-alphaosf.h: Delete file.
4332 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4333 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4334 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4335 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4336
69babf95
AC
4337 * config/i386/xm-i386v.h: Delete file.
4338 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4339 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4340 * config/i386/xm-i386sco.h: Delete file.
4341 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4342 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4343 * config/i386/xm-i386v4.h: Delete file.
4344 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4345 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4346 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4347 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4348
6f009c8a
AC
4349 * config/vax/xm-vax.h: Delete file.
4350 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4351 * config/vax/xm-vaxult2.h: Delete file.
4352 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4353 * config/vax/vaxult2.mh (XM_FILE): Delete.
4354 * config/vax/xm-vaxult.h: Delete file.
4355 * config/vax/vaxult.mh (XM_FILE): Delete.
4356 * config/vax/xm-vaxbsd.h: Delete file.
4357 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4358
9c8dbfa9
AC
4359 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4360 * gdbarch.h, gdbarch.c: Re-generate.
4361 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4362 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4363 * frame.h: Delete deprecated_read_fp from comments.
4364 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4365 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4366
84367a3e
MK
43672004-08-04 Mark Kettenis <kettenis@gnu.org>
4368
9c8e3411
MK
4369 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4370 trampoline in OpenBSD 3.5-current.
4371
b87bc0d8
MK
4372 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4373 SSE registers.
4374
84367a3e
MK
4375 * Makefile.in: Remove embedded page breaks.
4376
a44bddec
JB
43772004-08-04 Jim Blandy <jimb@redhat.com>
4378
7ab3286f
JB
4379 * regcache.c (regcache_raw_read): Assert that, after calling
4380 target_fetch_registers, the register we're reading is cached.
4381
a44bddec
JB
4382 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4383 a call to 'internal_error', with a more helpful error message.
4384 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 4385 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 4386
35124113
AC
43872004-08-04 Andrew Cagney <cagney@gnu.org>
4388
4389 * Makefile.in: Update dependencies.
4390
9f643768
JB
43912004-08-04 Jim Blandy <jimb@redhat.com>
4392
6ced10dd
JB
4393 Change the layout of the PowerPC E500 raw register cache to allow
4394 the lower 32-bit halves of the GPRS to be their own raw registers,
4395 not pseudoregisters.
4396 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4397 add ppc_ev0_upper_regnum flag.
4398 * rs6000-tdep.c: #include "reggroups.h".
4399 (spe_register_p): Recognize the ev upper half registers as SPE
4400 registers.
4401 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4402 registers.
4403 (e500_move_ev_register): New function.
4404 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4405 vector registers are the pseudo-registers now, formed by splicing
4406 together the gprs and the upper-half registers.
4407 (e500_register_reggroup_p): New function.
4408 (P): Macro deleted.
4409 (P8, A4): New macro.
4410 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4411 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4412 macros.
4413 (registers_e500): Rearrange register set so that the raw register
4414 set contains 32-bit GPRs and upper-half registers, and the SPE
4415 vector registers become pseudo-registers.
4416 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4417 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4418 register numbers are now the same for the E500 as they are for
4419 other PowerPC variants. Register e500_register_reggroup_p as the
4420 register group function for the E500.
4421 * Makefile.in (rs6000-tdep.o): Update dependencies.
4422
4423 Adapt PPC E500 native support to the new raw regcache layout.
4424 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4425 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4426 (fetch_spe_register, store_spe_register): Handle fetching/storing
4427 all the SPE registers at once, if regno == -1. These now take
4428 over the job of fetch_spe_registers and store_spe_registers.
4429 (fetch_spe_registers, store_spe_registers): Deleted.
4430 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4431 unconditionally; they're always raw. Fetch/store SPE upper half
4432 registers, if present, instead of ev registers.
4433 (fetch_register, store_register): Remove sanity checks: gprs are
4434 never pseudo-registers now, so we never need to even mention any
4435 registers that are ever pseudoregisters.
4436
9f643768
JB
4437 Use a fixed register numbering when communicating with the PowerPC
4438 simulator.
4439 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4440 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4441 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4442 New functions.
4443 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4444 init_sim_regno_table.
4445 * Makefile.in (gdb_sim_ppc_h): New variable.
4446 (rs6000-tdep.o): Update dependencies.
4447
1e2279c8
AC
44482004-08-02 Andrew Cagney <cagney@gnu.org>
4449
1d94326f
AC
4450 * cris-tdep.c (cris_register_size): Restore function, still used
4451 locally.
4452
331ae7ed
AC
4453 * gdbarch.sh (deprecated_target_read_fp)
4454 (deprecated_frame_locals_address, deprecated_frame_args_address)
4455 (deprecated_frame_chain_valid, deprecated_frame_chain)
4456 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4457 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4458 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4459 * gdbarch.h, gdbarch.c: Re-generate.
4460 * regcache.c (deprecated_read_fp): Do not call
4461 DEPRECATED_TARGET_READ_FP_P.
4462 * infcmd.c (default_print_registers_info): Do not call
4463 DEPRECATED_DO_REGISTERS_INFO.
4464 * frame-base.c (default_frame_locals_address): Do not call
4465 DEPRECATED_FRAME_LOCALS_ADDRESS.
4466 (default_frame_args_address): Do not call
4467 DEPRECATED_FRAME_ARGS_ADDRESS.
4468
1e2279c8
AC
4469 * gdbarch.sh (deprecated_register_raw_size)
4470 (deprecated_register_virtual_size:int): Delete.
4471 * gdbarch.h, gdbarch.c: Re-generate.
4472 * cris-tdep.c (cris_register_size): Delete.
4473 (cris_gdbarch_init): Update.
4474 * alpha-tdep.c (alpha_register_raw_size)
4475 (alpha_register_virtual_size): Delete.
4476 (alpha_gdbarch_init): Update.
4477
a90c06b4
AC
4478 * gdbarch.sh (deprecated_register_virtual_type)
4479 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4480 (deprecated_dummy_write_sp): Delete.
4481 * gdbarch.h, gdbarch.c: Re-generate.
4482
f42accbe
AC
4483 * gdbarch.sh (deprecated_register_bytes): Delete.
4484 * gdbarch.h, gdbarch.c: Re-generate.
4485 * regcache.c (deprecated_register_bytes): New function.
4486 * regcache.h (deprecated_register_bytes): Declare.
4487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4488 * v850-tdep.c (v850_gdbarch_init): Update.
4489 * sh64-tdep.c (sh64_gdbarch_init): Update.
4490 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4492 * mcore-tdep.c (mcore_gdbarch_init): Update.
4493 * cris-tdep.c (cris_gdbarch_init): Update.
4494 * arm-tdep.c (arm_gdbarch_init): Update.
4495 * remote.c (init_remote_state): Update.
4496 * remote-vx.c (vx_prepare_to_store): Update.
4497 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4498 * irix5-nat.c (fetch_core_registers): Update.
4499 * cris-tdep.c (cris_register_bytes_ok): Update.
4500 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4501
45c9dd44
AC
4502 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4503 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4504 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4505 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4506 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4507 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4508 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4509 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4510 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4511 with mips_insn16 and mips_insn32.
4512
3acba339
AC
4513 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4514 * rs6000-tdep.c (rs6000_push_dummy_call)
4515 (rs6000_extract_return_value): Use register_size.
4516 * xstormy16-tdep.c (xstormy16_get_saved_register)
4517 (xstormy16_extract_return_value): Ditto.
4518 * valops.c (value_assign): Ditto.
4519 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4520 * v850-tdep.c (v850_extract_return_value): Ditto.
4521 * tracepoint.c (collect_symbol): Ditto.
4522 * target.c (debug_print_register): Ditto.
4523 * stack.c (frame_info): Ditto.
4524 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4525 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4526 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4527 (store_register_using_P): Ditto.
4528 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4529 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4530 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4531 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4532 * regcache.c (deprecated_read_register_bytes)
4533 (deprecated_write_register_bytes, read_register)
4534 (write_register): Ditto.
4535 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4536 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4537 * monitor.c (monitor_supply_register, monitor_fetch_register)
4538 (monitor_store_register): Ditto.
4539 * mn10300-tdep.c (mn10300_pop_frame_regular)
4540 (mn10300_print_register): Ditto.
4541 * mipsv4-nat.c (fill_fpregset): Ditto.
4542 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4543 (mips64_fill_fpregset): Ditto.
4544 * mi/mi-main.c (register_changed_p, get_register)
4545 (mi_cmd_data_write_register_values): Ditto.
4546 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4547 * irix5-nat.c (fill_gregset, fetch_core_registers):
4548 * infrun.c (write_inferior_status_register): Ditto.
4549 * infptrace.c (fetch_register, store_register): Ditto.
4550 * infcmd.c (default_print_registers_info): Ditto.
4551 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4552 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4553 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4554 * hpux-thread.c (hpux_thread_fetch_registers)
4555 (hpux_thread_store_registers): Ditto.
4556 * hppah-nat.c (store_inferior_registers, fetch_register):
4557 * findvar.c (value_from_register): Ditto.
4558 * dve3900-rom.c (fetch_bitmapped_register):
4559 * cris-tdep.c (cris_gdbarch_init): Ditto.
4560 * alpha-tdep.h: Ditto.
4561 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4562
01e1877c
AC
4563 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4564 DEPRECATED_REGISTER_RAW_SIZE from comments.
4565 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4566 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4567 DEPRECATED_REGISTER_RAW_SIZE.
4568 * findvar.c (value_of_register): Simplify by assuming that the
4569 registers raw and virtual sizes are identical.
4570 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4571 comment.
4572 * arch-utils.c (generic_register_size): Simplify by assuming
4573 register_type.
4574
73f458fb
AC
4575 * regcache.c (legacy_read_register_gen, real_register)
4576 (legacy_write_register_gen): Delete, not used.
4577
336a3131
AC
4578 * regcache.c (struct regcache_descr): Delete legacy_p.
4579 (init_legacy_regcache_descr): Delete function.
4580 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4581 Do not use deprecated register functions.
4582 (regcache_raw_read, deprecated_write_register_gen):
4583 (deprecated_read_register_gen, regcache_raw_write): Delete code
4584 predicated on legacy_p.
4585 (register_size): Delete check against register raw size.
4586
c1d546cd
AC
4587 * cris-tdep.c (cris_register_type): Replace
4588 cris_register_virtual_type.
4589 (cris_gdbarch_init): Update, set register_type.
4590
48c2c0a6
AC
4591 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4592 * gdbarch.h, gdbarch.c: Re-generate.
4593 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4594 (arm_gdbarch_init) Do not set frameless function invocation.
4595 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4596 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4597 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4598 (frv_gdbarch_init): Do not set frameless function invocation.
4599 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4600 * sh-tdep.c (sh_gdbarch_init): Ditto.
4601 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4602 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4603 * avr-tdep.c (avr_gdbarch_init): Ditto.
4604
474093a6
AC
4605 * blockframe.c (legacy_frame_chain_valid): Delete function.
4606
3c109c8b
AC
4607 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4608 and pc. Update comments.
4609 (pc_in_dummy_frame): Delete function.
4610 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4611 use the "id".
4612 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4613 call_hi, top and pc, use the id.
4614 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4615
96860204
AC
4616 * dummy-frame.c: Include "gdb_string.h".
4617 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4618 (generic_save_dummy_frame_tos): Delete.
4619 (dummy_frame_push): New function, replaces above.
4620 * dummy-frame.h: Update copyright.
4621 (dummy_frame_push): Declare.
4622 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4623 (generic_save_call_dummy_addr): Delete declarations.
4624 * infcall.c: Include "dummy-frame.h".
4625 (call_function_by_hand): Add locals caller_regcache,
4626 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4627 with call to frame_save_as_regcache plus cleanup. Delete calls to
4628 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4629 Move clear_proceed_status to just before the resume, add call to
4630 dummy_frame_push (discard cleanup).
4631 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4632 (dummy-frame.o): Add $(gdb_string_h).
4633
d67ec5db
AC
46342004-08-01 Andrew Cagney <cagney@gnu.org>
4635
4636 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4637 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4638 * dummy-frame.c (find_dummy_frame): Delete.
4639 (struct dummy_frame_cache, dummy_frame_sniffer)
4640 (dummy_frame_prev_register, dummy_frame_this_id)
4641 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4642 frame unwinder using a dummy_frame_cache.
4643
a81dcb05
AC
46442004-08-01 Andrew Cagney <cagney@gnu.org>
4645
4646 * frame.h (frame_save_as_regcache): Declare.
4647 * frame.c (frame_save_as_regcache): New function.
4648 (do_frame_read_register): Replace do_frame_unwind_register.
4649 (frame_pop): Use frame_save_as_regcache.
4650 * dummy-frame.c (generic_push_dummy_frame): Use
4651 frame_save_as_regcache.
4652
aa495d11
JB
46532004-08-01 Joel Brobecker <brobecker@gnat.com>
4654
4655 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4656 file as included until we record the first line in the linetable.
4657
ff65ac78
AC
46582004-08-01 Andrew Cagney <cagney@gnu.org>
4659
4660 * frame.h (deprecated_pop_dummy_frame)
4661 (deprecated_read_register_dummy)
4662 (deprecated_generic_find_dummy_frame): Delete.
4663 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4664 (deprecated_read_register_dummy)
4665 (deprecated_find_dummy_frame_regcache)
4666 (discard_innermost_dummy)
4667 (deprecated_pop_dummy_frame): Delete.
4668 (dummy_frame_this_id): Simplify.
4669 (struct dummy_frame): Delete "fp" and "sp".
4670 (find_dummy_frame): Simplify.
4671 (generic_push_dummy_frame): Do not set "fp" or "sp".
4672 (fprint_dummy_frames): Do not print "fp" and "sp"
4673
37bdc87e
MK
46742004-08-01 Mark Kettenis <kettenis@gnu.org>
4675
4676 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4677 (struct i386_insn): New structure.
4678 (i386_match_insn): New function.
4679 (i386_frame_setup_skip_insns): New variable.
4680 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4681 array i386_frame_setup_insns of instructions that should be
4682 skipped inside the frame setup sequence.
4683
8241eaa6
AC
46842004-08-01 Andrew Cagney <cagney@gnu.org>
4685
5bc602c7
AC
4686 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4687 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4688 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4689 * stack.c (frame_info): Delete references to
4690 DEPRECATED_FRAME_INIT_SAVED_REGS and
4691 deprecated_get_frame_saved_regs.
4692 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4693 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4694 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4695 (frame_unwind_register_signed)
4696 (frame_unwind_register_unsigned)
4697 (frame_unwind_unsigned_register): Use register_size.
4698 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4699 (deprecated_frame_xmalloc_with_cleanup)
4700 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4701 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4702
03d363a1
AC
4703 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4704 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4705 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4706 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4707
8241eaa6
AC
4708 * infcall.c (call_function_by_hand): Do not use
4709 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4710 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4711 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4712 DEPRECATED_STACK_ALIGN.
4713
f00df8b7
AC
47142004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4715
4716 Committed by Andrew Cagney.
4717 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4718
eec63939
AC
47192004-08-01 Andrew Cagney <cagney@gnu.org>
4720
4721 * mips-tdep.c (mips16_frame_cache)
4722 (mips16_frame_this_id, mips16_frame_prev_register)
4723 (mips16_frame_unwind, mips16_frame_sniffer)
4724 (mips16_frame_base_address, mips16_frame_base)
4725 (mips16_frame_base_sniffer, mips32_frame_cache)
4726 (mips32_frame_this_id, mips32_frame_prev_register)
4727 (mips32_frame_unwind, mips32_frame_sniffer)
4728 (mips32_frame_base_address, mips32_frame_base)
4729 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4730 separate heuristic mips16 and mips32 unwinders.
4731 (mips_stub_frame_cache, mips_stub_frame_this_id)
4732 (mips_stub_frame_prev_register)
4733 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4734 (mips_stub_frame_base_address, mips_stub_frame_base)
4735 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4736 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4737 match true mdebug frames.
4738 (non_heuristic_proc_desc): Add forward declaration.
4739
e66299b3
AC
47402004-08-01 Andrew Cagney <cagney@gnu.org>
4741
83cbbf3e
AC
4742 * config/mips/tm-irix6.h: Delete file.
4743 * config/mips/tm-irix5.h: Delete file.
4744 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4745 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4746
22d41b37
AC
4747 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4748 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4749 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4750 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4751 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4752 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4753 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4754 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4755 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4756 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4757 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4758 (TARGET_SIGNAL_RAW_VALUES): Delete.
4759 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4760 Delete.
4761 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4762 (TARGET_HW_WATCH_LIMIT): Delete.
4763 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4764 * minimon.h: Delete file.
4765
e66299b3
AC
4766 * trad-frame.c (trad_frame_get_this_base)
4767 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4768 functions.
4769 * trad-frame.h (trad_frame_set_this_base)
4770 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4771
1f67027d
AC
47722004-07-31 Andrew Cagney <cagney@gnu.org>
4773
4774 * trad-frame.c (trad_frame_get_prev_register): Rename
4775 trad_frame_get_prev_register.
4776 * vax-tdep.c (vax_frame_prev_register): Update.
4777 * trad-frame.h: Update.
4778 * trad-frame.c (trad_frame_get_register): Update.
4779 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4780 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4781 Update.
4782 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4783 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4784 Update.
4785 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4786 Update.
4787 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4788 Update.
4789 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4790 Update.
4791 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4792 Update.
4793 * s390-tdep.c (s390_frame_prev_register)
4794 (s390_stub_frame_prev_register)
4795 (s390_sigtramp_frame_prev_register): Update.
4796 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4797 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4798 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4799 * m88k-tdep.c (m88k_frame_prev_register)
4800 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4801 * m32r-tdep.c (m32r_frame_prev_register): Update.
4802 * hppa-tdep.c (hppa_frame_prev_register_helper)
4803 * frv-tdep.c (frv_frame_prev_register): Update.
4804 * d10v-tdep.c (d10v_frame_prev_register): Update.
4805 * cris-tdep.c (cris_frame_prev_register): Update.
4806 * avr-tdep.c (avr_frame_prev_register): Update.
4807 * arm-tdep.c (arm_prologue_prev_register)
4808 (arm_sigtramp_prev_register): Update.
4809
c1bf6f65
AC
48102004-07-31 Andrew Cagney <cagney@gnu.org>
4811
4812 * frame.h (legacy_saved_regs_unwind)
4813 (legacy_frame_chain_valid, legacy_frame_p)
4814 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4815 * dummy-frame.c (dummy_frame_this_id): Simplify.
4816 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4817 * frame.c (struct frame_info): Delete the field "type".
4818 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4819 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4820 (legacy_saved_regs_unwind, legacy_frame_p)
4821 (frame_type_from_pc): Delete.
4822 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4823 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4824
dc856692
MK
48252004-07-31 Mark Kettenis <kettenis@gnu.org>
4826
5a5effe1
MK
4827 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4828 indentation.
4829
d4fd50a6
MK
4830 * mips-nat.c: Remove file.
4831 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4832 (mips-nat.o): Remove dependency.
4833
2689df5a
MK
4834 * infptrace.c: Update copyright year.
4835 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4836 explicitly setting the buffer to all zeroes.
4837
dc856692
MK
4838 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4839 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4840
763910e0
AC
48412004-07-30 Andrew Cagney <cagney@gnu.org>
4842
4843 * GDB 6.2 released from gdb_6_2-branch.
4844
0b66e38c
EZ
48452004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4846
4847 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4848
4849 * exec.c (exec_file_attach):
4850 * nto-tdep.c (nto_find_and_open_solib):
4851 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4852 * solib.c (solib_open):
4853 * somsolib.c (som_solib_sizeof_symbol_table):
4854 * source.c (is_regular_file, openp, open_source_file):
4855 * symfile.c (symfile_bfd_open):
4856 * wince.c (upload_to_device): Differentiate between the search for
4857 binary and source files.
4858
be7d7357
AC
48592004-07-30 Andrew Cagney <cagney@gnu.org>
4860
4861 * complaints.c (_initialize_complaints): Pass NULL to
4862 add_setshow_zinteger_cmd for help_doc.
4863 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4864
ddc9cd0f
AC
48652004-07-30 Andrew Cagney <cagney@gnu.org>
4866
4867 Fix PR i18n/761.
4868 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4869 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4870 $(PACKAGE).pot and update-po.
4871 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4872 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4873 (update-po): New rules.
4874 (localedir): Define using autoconf.
4875 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4876 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4877 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4878 * configure.in: Generate CATALOGS and LINGUAS from contents of
4879 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4880 * configure: Re-generate.
4881 * po/gdbtext: New file
4882
e92f3704
JG
48832004-07-30 Jerome Guitton <guitton@gnat.com>
4884
4885 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4886 order.
4887
b0f35d58
DL
48882004-07-30 David Lecomber <dsl@sources.redhat.com>
4889
4890 * dwarf2read.c (read_file_scope): Set producer if attribute
4891 present.
4892 (struct dwarf2_cu): Added new member producer.
4893
ce7d4522
JG
48942004-07-30 Jerome Guitton <guitton@gnat.com>
4895
4896 * inflow.c (kill_command): release file handles in BFD.
4897 * exec.c (exec_file_attach): Ditto.
4898 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4899
05ee07c7
AC
49002004-07-29 Andrew Cagney <cagney@gnu.org>
4901
4902 * PROBLEMS (mips-irix): Note that it is broken.
4903
62eceb47
AC
49042004-07-29 Andrew Cagney <cagney@gnu.org>
4905
e57b8d41
AC
4906 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4907 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4908
d334389b
AC
4909 * config/xm-nbsd.h: Delete file.
4910 * config/arm/xm-nbsd.h: Delete file.
4911 * config/i386/xm-nbsd.h: Delete file.
4912 * config/ns32k/xm-nbsd.h: Delete file.
4913 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4914 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4915 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4916 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4917 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4918
e910f676
AC
4919 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4920 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4921 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4922 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4923 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4924 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4925
6fa856b9
AC
4926 * config/powerpc/xm-linux.h: Delete empty file.
4927 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4928 * config/powerpc/linux.mh (XM_FILE): Delete.
4929 * config/m68k/xm-linux.h: Delete empty file.
4930 * config/m68k/linux.mh (XM_FILE): Delete.
4931 * config/ia64/xm-linux.h: Delete empty file.
4932 * config/ia64/linux.mh (XM_FILE): Delete.
4933 * config/arm/xm-linux.h: Delete empty file.
4934 * config/arm/linux.mh (XM_FILE): Delete.
4935
471ae5ae
AC
4936 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4937 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4938 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4939 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4940 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4941 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4942 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4943 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4944
62eceb47
AC
4945 * config/m68k/xm-m68k.h: Delete file.
4946 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4947 copyright.
4948 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4949 * config/pa/xm-linux.h: Delete empty file.
4950 * config/pa/linux.mh (XM_FILE): Delete.
4951 * config/i386/xm-i386.h: Delete empty file.
4952 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4953 "i386/xm-i386.h".
4954 * config/i386/obsdaout.mh (XM_FILE): Delete.
4955 * config/i386/obsd64.mh (XM_FILE): Delete.
4956 * config/i386/fbsd64.mh (XM_FILE): Delete.
4957 * config/i386/nto.mh (XM_FILE): Delete.
4958 * config/i386/obsd.mh (XM_FILE): Delete.
4959 * config/i386/linux64.mh (XM_FILE): Delete.
4960 * config/i386/linux.mh (XM_FILE): Delete.
4961 * config/i386/i386sol2.mh (XM_FILE): Delete.
4962 * config/i386/i386gnu.mh (XM_FILE): Delete.
4963 * config/i386/fbsd.mh (XM_FILE): Delete.
4964 * config/i386/nbsd64.mh (XM_FILE): Delete.
4965
c35f4ffc
AC
49662004-07-29 Andrew Cagney <cagney@gnu.org>
4967
4968 * config/pa/xm-linux.h: Do not include "floatformat.h".
4969 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4970 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4971 * config/i386/xm-i386.h: Do not include "floatformat.h".
4972 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4973 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4974 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4975 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4976 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4977 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4978 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4979 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4980 * configure, config.in: Regenerate.
4981 * configure.host (gdb_host_float_format, gdb_host_double_format)
4982 (gdb_host_long_double_format): Set according to the host.
4983
624a44a3
AC
49842004-07-29 Andrew Cagney <cagney@gnu.org>
4985
4986 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4987
0dea2468
AC
49882004-07-28 Andrew Cagney <cagney@gnu.org>
4989
4990 * PROBLEMS: Mention threads/1650.
4991 * NEWS: Mention the NPTL fix.
4992
b3f42336
AC
49932004-07-28 Andrew Cagney <cagney@gnu.org>
4994
4995 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4996 (add_setshow_cmd_full): Make static.
4997 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4998 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4999 * cli/cli-decode.c (add_setshow_filename_cmd)
5000 (add_setshow_string_cmd): New functions.
5001 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5002 * mips-tdep.c (_initialize_mips_tdep): Update.
5003 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5004 * cli/cli-logging.c (_initialize_cli_logging): Update.
5005 * complaints.c (_initialize_complaints): Update.
5006 * remote.c (_initialize_remote): Update.
5007
3b64bf98
AC
50082004-07-28 Andrew Cagney <cagney@gnu.org>
5009
5010 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5011 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5012 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5013 print parameters. Make string parameters constant.
5014 * command.h: Update. Update copyright.
5015 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5016 * observer.c (_initialize_observer): Ditto.
5017 * frame.c (_initialize_frame): Ditto.
5018 * complaints.c (_initialize_complaints): Ditto.
5019 * maint.c (_initialize_maint_cmds): Ditto.
5020 * target.c (initialize_targets): Ditto.
5021 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5022 * infcall.c (_initialize_infcall): Ditto.
5023 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5024 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5025 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5026 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5027 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5028
e9667a65
AC
50292004-07-28 Andrew Cagney <cagney@gnu.org>
5030
54a5b07d
AC
5031 * gdbtypes.c (lookup_primitive_typename): Delete function.
5032 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5033 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5034 * gdbtypes.c (lookup_typename): Ditto.
5035 * f-exp.y (yylex): Ditto.
5036 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5037
e9667a65
AC
5038 * scm-lang.c (c_builtin_types): Delete extern declaration.
5039 (scm_language_defn): Replace
5040 string_char_type and primitive_type_vector with
5041 la_language_arch_info.
5042 * jv-lang.c (java_language_defn): Replace
5043 string_char_type and primitive_type_vector with
5044 la_language_arch_info.
5045 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5046 c_builtin_types in comment.
5047 * c-lang.h (struct language_arch_info): Declare opaque.
5048 (c_language_arch_info): Declare.
5049 (c_builtin_types): Delete declaration.
5050 * c-lang.c (c_language_arch_info): Set string_char_type to
5051 builtin_char, not builtin_true_char. Make global.
5052 (c_builtin_types): Delete array.
5053 (asm_language_defn, minimal_language_defn): Replace
5054 string_char_type and primitive_type_vector with
5055 la_language_arch_info.
5056
685419e2
AC
50572004-07-28 Andrew Cagney <cagney@gnu.org>
5058
5059 * gdbtypes.h (struct builtin_type): Rename true_char to
5060 builtin_true_char.
5061 * gdbtypes.c (gdbtypes_post_init): Update.
5062 * c-lang.c (arch_info): New function.
5063 (enum c_primitive_types): New enum.
5064 (c_language_defn): Instead of string_char_type and
5065 primitive_type_vector set la_language_arch_info.
5066
5a44ea29
AC
50672004-07-28 Andrew Cagney <cagney@gnu.org>
5068
5069 * language.h (struct language_arch_info): Fix typo
5070 s/primative/primitive/.
5071 * gdbtypes.c (lookup_primitive_typename): Ditto.
5072 * language.c (language_lookup_primitive_type_by_name)
5073 (unknown_language_arch_info): Ditto.
5074
f290d38e
AC
50752004-07-27 Andrew Cagney <cagney@gnu.org>
5076
5077 * defs.h (enum language): Add nr_languages.
5078 * language.h (struct language_arch_info): Define.
5079 (struct language_defn): Add la_language_arch_info.
5080 (language_lookup_primative_type_by_name): Declare.
5081 (language_string_char_type): Declare.
5082 * language.c (_initialize_language, language_gdbarch_post_init)
5083 (struct language_gdbarch, language_gdbarch_data): Implement
5084 per-architecture language information.
5085 (unknown_language_arch_info, language_string_char_type)
5086 (language_lookup_primative_type_by_name): New functions.
5087 (unknown_language_defn, auto_language_defn)
5088 (local_language_defn): Set la_language_arch_info to
5089 unknown_language_arch_info.
5090 (unknown_builtin_types): Delete.
5091 * gdbtypes.c (lookup_primitive_typename): Use
5092 language_lookup_primative_type_by_name.
5093 (create_string_type): Use language_string_char_type.
5094 * values.c (value_from_string): Use language_string_char_type.
5095 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5096 * p-lang.c (pascal_language_defn): Ditto.
5097 * m2-lang.c (m2_language_defn): Ditto.
5098 * jv-lang.c (java_language_defn): Ditto.
5099 * objc-lang.c (objc_language_defn): Ditto.
5100 * f-lang.c (f_language_defn): Ditto.
5101 * c-lang.c (c_language_defn, cplus_language_defn)
5102 (asm_language_defn, minimal_language_defn): Ditto.
5103
000177f0
AC
51042004-07-27 Andrew Cagney <cagney@gnu.org>
5105
5106 * gdbtypes.h (struct builtin_type): Declare.
5107 (builtin_type): Declare.
5108 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5109 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5110 (gdbtypes_post_init): New function.
5111 (builtin_type): New function.
5112
e22f895c
KI
51132004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5114
5115 * remote-m32r-sdi.c: Fix breakpoint bug.
5116 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5117 recv_char_data, recv_long_data): New functions to replace communication
5118 sequences.
5119
536517dd
MC
51202004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5121
5122 Document PR threads/1650.
5123 * PROBLEMS (Threads): Document problem with many threads
5124
a0a44d18
AC
51252004-07-26 Andrew Cagney <cagney@gnu.org>
5126
5127 * gdb-mi.el: Move from here ...
5128 * mi/gdb-mi.el: ... to here.
5129
7ac4ac06
AC
51302004-07-26 Andrew Cagney <cagney@gnu.org>
5131
5132 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5133 * main.c (captured_main): When in batch mode always detach.
5134
a1b461bf
AC
51352004-07-26 Andrew Cagney <cagney@gnu.org>
5136
5137 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5138 and h8300 as broken.
5139 * NEWS: END-OF-LIFE frame compatibility module.
5140 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5141 specific comments.
5142
cb1a6d5f
AC
51432004-07-26 Andrew Cagney <cagney@gnu.org>
5144
5145 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5146 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5147 * wince.c (_initialize_wince): Update.
5148 * win32-nat.c (_initialize_win32_nat): Update.
5149 * varobj.c (_initialize_varobj): Update.
5150 * valops.c (_initialize_valops): Update.
5151 * utils.c (initialize_utils, initialize_utils): Update.
5152 * tui/tui-win.c (_initialize_tui_win): Update.
5153 * top.c (init_main): Update.
5154 * symfile.c (_initialize_symfile): Update.
5155 * source.c (_initialize_source): Update.
5156 * somsolib.c (_initialize_som_solib): Update.
5157 * solib.c (_initialize_solib): Update.
5158 * solib-frv.c (_initialize_frv_solib): Update.
5159 * serial.c (_initialize_serial): Update.
5160 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5161 * remote.c (_initialize_remote, _initialize_remote): Update.
5162 * remote-vx.c (_initialize_vx): Update.
5163 * remote-utils.c (_initialize_sr_support): Update.
5164 * remote-sds.c (_initialize_remote_sds): Update.
5165 * remote-mips.c (_initialize_remote_mips): Update.
5166 * remote-e7000.c (_initialize_remote_e7000): Update.
5167 * proc-api.c (_initialize_proc_api): Update.
5168 * printcmd.c: Update.
5169 * parse.c (_initialize_parse): Update.
5170 * pa64solib.c (_initialize_pa64_solib): Update.
5171 * p-valprint.c (_initialize_pascal_valprint): Update.
5172 * monitor.c (_initialize_remote_monitors): Update.
5173 * mips-tdep.c (_initialize_mips_tdep): Update.
5174 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5175 * maint.c (_initialize_maint_cmds): Update.
5176 * lin-lwp.c (_initialize_lin_lwp): Update.
5177 * language.c (_initialize_language): Update.
5178 * kod.c (_initialize_kod): Update.
5179 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5180 * i386-tdep.c (_initialize_i386_tdep): Update.
5181 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5182 * gdbarch.sh: Update.
5183 * gdbarch.c: Re-generate.
5184 * gdb-events.sh: Update.
5185 * gdb-events.c: Re-generate.
5186 * frame.c (_initialize_frame): Update.
5187 * exec.c: Update.
5188 * demangle.c (_initialize_demangler): Update.
5189 * dcache.c (_initialize_dcache): Update.
5190 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5191 * cp-valprint.c (_initialize_cp_valprint): Update.
5192 * corefile.c (_initialize_core): Update.
5193 * command.h: Update.
5194 * cli/cli-decode.h: Update.
5195 * cli/cli-cmds.c (init_cli_cmds): Update.
5196 * charset.c (_initialize_charset): Update.
5197 * breakpoint.c (_initialize_breakpoint): Update.
5198 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5199 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5200 * aix-thread.c (_initialize_aix_thread): Update.
5201
b4632131
MK
52022004-07-24 Mark Kettenis <kettenis@gnu.org>
5203
5204 Partial fix for PR backtrace/1718.
5205 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5206 that GCC migrates into the prolugue. Don't handle any
5207 instructions that clobber %ebx.
5208
822c9732
AC
52092004-07-23 Andrew Cagney <cagney@gnu.org>
5210
5211 Use regcache_raw_collect instead of regcache_collect.
5212 * regcache.h (regcache_collect): Delete declaration.
5213 * regcache.c (regcache_colect): Delete function.
5214 * win32-nat.c (do_child_store_inferior_registers): Update.
5215 * sol-thread.c (sol_thread_store_registers): Update.
5216 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5217 * rs6000-nat.c (store_register): Update.
5218 * remote.c (store_register_using_P, remote_store_registers): Update.
5219 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5220 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5221 (fill_vrregset, store_spe_registers, fill_gregset)
5222 (fill_gregset): Update.
5223 * nto-procfs.c (procfs_store_registers): Update.
5224 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5225 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5226 * m68klinux-nat.c (store_register, fill_gregset): Update.
5227 * m68k-tdep.c (fill_gregset): Update.
5228 * infptrace.c (store_register): Update.
5229 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5230 * i386-linux-nat.c (store_register, fill_gregset): Update.
5231 * hppa-linux-nat.c (fill_gregset): Update.
5232 * go32-nat.c (store_register): Update.
5233 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5234 (store_fp_regs): Update.
5235 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5236 (store_nwfpe_extended, store_fpregister, store_fpregs)
5237 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5238 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5239 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5240 (store_regs_user_thread, store_regs_kernel_thread): Update.
5241
32b05c07
MK
52422004-07-24 Mark Kettenis <kettenis@gnu.org>
5243
5244 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5245 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5246 encoding.
5247 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5248 member of `struct comp_unit'.
5249
8567c30f
AC
52502004-07-23 Andrew Cagney <cagney@gnu.org>
5251
5252 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5253 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5254
f6da8dd8
MH
52552004-07-23 Martin Hunt <hunt@redhat.com>
5256 Kevin Buettner <kevinb@redhat.com>
5257
5258 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5259 alignment was being added to the offset instead of multiplied.
5260
bd921882
MK
52612004-07-23 Mark Kettenis <kettenis@gnu.org>
5262
24f033e8
MK
5263 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5264 changed signal trampoline in OpenBSD 3.5-current.
5265
90f3cecd
MK
5266 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5267 <machine/pcb.h> and "bsd-kvm.h".
5268 (sparc64nbsd_supply_pcb): New function.
5269 (_initialize_sparc64nbsd_nat): Renamed from
5270 _initialize_sparcnbsd_nat. Enable libkvm interface.
5271 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5272 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5273 (LOADLIBES): New variable.
5274
a4954a62
MK
5275 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5276
bd921882
MK
5277 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5278
23a6d369
AC
52792004-07-21 Andrew Cagney <cagney@gnu.org>
5280
5281 Use regcache_raw_supply instead of supply_register.
5282 * regcache.h (supply_register): Delete declaration.
5283 * regcache.c (supply_register): Delete function.
5284 * wince.c (do_child_fetch_inferior_registers): Update.
5285 * win32-nat.c (do_child_fetch_inferior_registers)
5286 (fetch_elf_core_registers): Update.
5287 * v850ice.c (v850ice_fetch_registers): Update.
5288 * thread-db.c (thread_db_store_registers): Update.
5289 * sol-thread.c (sol_thread_store_registers): Update.
5290 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5291 * rs6000-nat.c (fetch_register): Update.
5292 * rom68k-rom.c (rom68k_supply_one_register): Update.
5293 * remote.c (remote_wait, remote_async_wait): Update.
5294 * remote-st.c (get_hex_regs): Update.
5295 * remote-sim.c (gdbsim_fetch_register): Update.
5296 * remote-sds.c (sds_fetch_registers): Update.
5297 * remote-rdp.c (remote_rdp_fetch_register): Update.
5298 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5299 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5300 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5301 * remote-hms.c (init_hms_cmds): Update.
5302 * remote-est.c (init_est_cmds): Update.
5303 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5304 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5305 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5306 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5307 (fetch_register, supply_vrregset, supply_vrregset)
5308 (fetch_spe_registers): Update.
5309 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5310 * monitor.c (monitor_supply_register): Update.
5311 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5312 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5313 (mipsnbsd_supply_fpreg): Update.
5314 * mips-nat.c (fetch_inferior_registers)
5315 (fetch_core_registers): Update.
5316 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5317 (supply_fpregset, mips64_supply_gregset)
5318 (mips64_supply_fpregset): Update.
5319 * m68klinux-nat.c (fetch_register, supply_gregset)
5320 (supply_fpregset): Update.
5321 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5322 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5323 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5324 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5325 * infptrace.c (fetch_register): Update.
5326 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5327 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5328 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5329 (gnu_fetch_registers, gnu_store_registers): Update.
5330 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5331 * i386-linux-nat.c (fetch_register, supply_gregset)
5332 (dummy_sse_values): Update.
5333 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5334 * hppah-nat.c (fetch_register): Update.
5335 * hppa-linux-nat.c (fetch_register, supply_gregset)
5336 (supply_fpregset): Update.
5337 * go32-nat.c (fetch_register): Update.
5338 * dve3900-rom.c (fetch_bitmapped_register)
5339 (_initialize_r3900_rom): Update.
5340 * cris-tdep.c (supply_gregset): Update.
5341 * abug-rom.c (init_abug_cmds): Update.
5342 * core-aout.c (fetch_core_registers): Update.
5343 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5344 (fetch_register, fetch_fp_register): Update.
5345 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5346 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5347 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5348 * alphanbsd-tdep.c (fetch_core_registers): Update.
5349 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5350 * alpha-nat.c (fetch_osf_core_registers)
5351 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5352 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5353 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5354
73cc75f3
AC
53552004-07-21 Andrew Cagney <cagney@gnu.org>
5356
5357 * PROBLEMS: Mention breakpoints/1702.
5358 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5359 that is known to work.
5360
a53c66de
AC
53612004-07-21 Andrew Cagney <cagney@gnu.org>
5362
5363 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5364 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5365 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5366 (handle_inferior_event): Wrap call to deprecated
5367 IGNORE_HELPER_CALL in #ifdef.
5368 * config/mips/tm-nbsd.h: Update.
5369
708ff411
JB
53702004-07-20 Jim Blandy <jimb@redhat.com>
5371
412b3060
JB
5372 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5373 bfd_mach_ppc has no segment registers.
5374
13ac140c
JB
5375 Include PowerPC SPR numbers for special-purpose registers.
5376 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5377 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5378 new member in initializer.
5379 (S, S4, SN4, S64): New macros for defining special-purpose
5380 registers.
5381 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5382 registers_403, registers_403GC, registers_505, registers_860,
5383 registers_601, registers_602, registers_603, registers_604,
5384 registers_750, registers_e500): Use them.
5385
708ff411
JB
5386 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5387 replace references with expression used to initialize variable.
5388
1f602b35
AC
53892004-07-20 Andrew Cagney <cagney@gnu.org>
5390
5391 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5392 read_memory_nobpt.
5393 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5394 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5395 (s390_sigtramp_frame_sniffer): Update.
5396 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5397 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5398 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5399 (mips32_fetch_instruction): Update.
5400 * mcore-tdep.c (get_insn): Update.
5401 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5402 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5403 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5404 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5405 (i386_linux_rt_sigtramp_start): Update.
5406 * i386-linux-nat.c (child_resume): Update.
5407 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5408 * hppa-linux-tdep.c (insns_match_pattern): Update.
5409 * gdbcore.h: Update.
5410 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5411 * frame.c (safe_frame_unwind_memory): Update.
5412 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5413 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5414 * alpha-tdep.c (alpha_read_insn): Update.
5415
2cd8546d
AC
54162004-07-20 Andrew Cagney <cagney@gnu.org>
5417
5418 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5419 containing both bytes and mask. Add "frame_type".
5420 * tramp-frame.c (tramp_frame_start): Update.
5421 (tramp_frame_prepend_unwinder): Update.
5422 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5423 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5424 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5425 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5426
f928dd62
EZ
54272004-07-19 Eli Zaretskii <eliz@gnu.org>
5428
5429 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5430 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5431 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5432 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5433
d5c560f7
AC
54342004-07-17 Andrew Cagney <cagney@gnu.org>
5435
860660cb
AC
5436 * NEWS, PROBLEMS: Update for 6.2.
5437
8c266f54
AC
5438 * README: Update to 6.2.
5439
a552edd9
AC
5440 * utils.c (xvasprintf): Call xstrvprintf.
5441
c4a172b5
AC
5442 * parse.c: Update copyright.
5443 (null_post_parser): Eliminate ARGSUSED.
5444
da745b36
AC
5445 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5446 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5447 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5448
9cbc6ef0
AC
5449 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5450 * ppc-linux-nat.c: Use "Linux kernel".
5451 * hppa-linux-tdep.c: Use GNU/Linux.
5452 * hppa-linux-nat.c: Use GNU/Linux.
5453 * dwarfread.c: Add [sic] to use of Linux.
5454
1b89295f
AC
5455 * hppa-linux-nat.c: Do not include <string.h>.
5456 (supply_fpregset): Remove "register" attribute.
5457
d5c560f7
AC
5458 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5459
7ddd7709
MK
54602004-07-17 Mark Kettenis <kettenis@gnu.org>
5461
b1d19a62
MK
5462 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5463 * configure, config.in: Regenerated.
5464
7ddd7709
MK
5465 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5466 "bsd-kvm.h".
5467 (vaxbsd_supply_pcb): New function.
5468 (_initialize_vaxbsd_nat): New prototype and function.
5469 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5470 solib-sunos.o.
5471 (LOADLIBES): New variable.
5472 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5473 (LOADLIBES): New variable.
5474 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5475 (LOADLIBES): New variable.
5476 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5477
2c07db7a
AC
54782004-07-16 Andrew Cagney <cagney@gnu.org>
5479
5480 * defs.h (event_loop_p): Replace variable declaration with macro,
5481 always 1.
5482 * main.c (captured_main): Delete options "-async" and "-noasync".
5483 (event_loop_p): Delete variable.
5484 * NEWS: Mention that "-async" and "-noasync" were removed.
5485
717eb1cf
AC
54862004-07-16 Andrew Cagney <cagney@gnu.org>
5487
5488 * remote-m32r-sdi.c: Re-indent.
5489
c101bc14
JB
54902004-07-16 Jim Blandy <jimb@redhat.com>
5491
5109a438
JB
5492 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5493 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5494 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5495 missing MPC823 SPRs.
5496 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5497 incorrect. (This was corrected in GDB's register name tables on
5498 2004-07-14.)
5499
c101bc14
JB
5500 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5501 should be "esasrr" ("ESA Save and Restore Register").
5502
7ce450bd
AC
55032004-07-16 Andrew Cagney <cagney@gnu.org>
5504
5505 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5506 calls, no longer applicable. Update comments and rename parameter
5507 "step_frame" to "return_frame".
5508
ca73dd9d
AC
55092004-07-16 Andrew Cagney <cagney@gnu.org>
5510
5511 * frame.c (fprint_field): New function.
5512 (fprint_frame_id): Use fprint_field.
5513
31941f6d
JB
55142004-07-15 Joel Brobecker <brobecker@gnat.com>
5515
5516 * ada-lang.c (ada_language_defn): Remove commented out code.
5517
f86a7158
JB
55182004-07-15 Jim Blandy <jimb@redhat.com>
5519
5520 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5521 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5522
c24791ec
JB
55232004-07-14 Jim Blandy <jimb@redhat.com>
5524
29bb1356
JB
5525 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5526
cc98b5cc
JB
5527 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5528
8f088af7
JB
5529 * ppc-tdep.h (ppc_num_srs): New enum constant.
5530
0ea0ec5f
JB
5531 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5532 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5533 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5534 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5535 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5536 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5537 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5538 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5539 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5540 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5541 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5542 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5543 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5544 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5545 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5546 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5547 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5548 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5549 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5550 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5551 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5552 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5553 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5554 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5555 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5556 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5557 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5558 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5559 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5560 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5561 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5562 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5563 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5564 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5565 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5566 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5567 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5568 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5569 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5570 special-purpose register numbers.
5571
c24791ec
JB
5572 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5573 manual mentions 'md_twb', but many mention 'm_twb', and at that
5574 point in the register list.)
5575
d833db3b
AC
55762004-07-14 Andrew Cagney <cagney@gnu.org>
5577
5578 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5579 instead of "internal-error".
5580
080228b2
JB
55812004-07-10 Joel Brobecker <brobecker@gnat.com>
5582
5583 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5584 that was inserted inside a comment.
5585
c268433a
RC
55862004-07-10 Randolph Chung <tausq@debian.org>
5587
5588 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5589 function.
5590 (hppa_hpux_push_dummy_code): New function.
5591 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5592 Set find_global_pointer method.
5593
71009278
MK
55942004-07-10 Mark Kettenis <kettenis@gnu.org>
5595
5596 * NEWS: Mention BSD libkvm interface.
5597
b2fa5097
MS
55982004-07-10 Michael Snyder <msnyder@redhat.com>
5599
5600 * symfile.c (generic_load): Comment typo.
5601 * stack.c (get_selected_block): Ditto.
5602 * regcache.c (regcache_cooked_read): Ditto.
5603 * monitor.c (monitor_debug): Ditto.
5604 * mips-tdep.c (mips_read_pc): Ditto.
5605 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5606 * gdb_mbuild.sh: Ditto.
5607 * gdbarch.sh: Ditto.
5608 * gdbarch.h: Ditto.
5609
c3e5cd34
PH
56102004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5611
8a2225b2
PH
5612 * ada-tasks.c: Remove file.
5613
c3e5cd34
PH
5614 Remove ARI problems:
5615
5616 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5617 beginning of line.
5618
5619 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5620 Add comment.
5621 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5622 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5623 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5624 (UMIN_OF_SIZE): Remove.
5625 (max_of_type): New function to replace orphan macro in gdbtypes.h
5626 (min_of_type): Ditto.
5627 (discrete_type_high_bound): Use max_of_type.
5628 (discrete_type_low_bound): Use min_of_type.
5629 (possible_user_operator_p): Move operator to beginning of line.
5630 (ada_is_variant_part): Ditto.
5631 (ensure_lval): Rewrite to avoid deprecated operations.
5632 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5633 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5634 (ada_enum_name): Remove assignments in 'if' statements.
5635 (build_ada_types): Add gdbarch parameter.
5636 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5637 with gdbarch_data_register_post_init.
5638 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5639 add_show_from_set.
5640
5641 * ada-valprint.c (inspect_it): Remove declaration.
5642 (repeat_count_threshold): Remove declaration.
5643 (ada_print_floating): Remove assignments in 'if' statements.
5644 (print_str): Move operator to beginning of line.
5645
61ce229a
JB
56462004-07-08 Jim Blandy <jimb@redhat.com>
5647
5648 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5649
09bcec80
BR
56502004-07-08 Bob Rossi <bob@brasko.net>
5651
5652 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5653
31c27f77
JJ
56542004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5655
5656 * language.h (struct_language_defn): Add new function pointer:
5657 la_class_name_from_physname. Also add new prototype for
5658 language_class_name_from_physname.
5659 * language.c (language_class_name_from_physname): New function.
5660 (unk_lang_class_name): Ditto.
5661 (unknown_language_defn, auto_language_defn): Change
5662 to add unk_lang_class_name function pointer for
5663 la_class_name_from_physname.
5664 (local_language_defn): Ditto.
5665 * dwarf2read.c (guess_structure_name): Change to call
5666 language_class_name_from_physname.
5667 (determine_class_name): Ditto.
5668 * cp-support.c (class_name_from_physname): Renamed.
5669 (cp_class_name_from_physname): New name of function.
5670 * cp-support.h: Ditto.
5671 * c-lang.c (c_language_defn): Change to add NULL
5672 for class_name_from_physname function pointer.
5673 (cplus_language_defn): Change to add cp_class_name_from_physname.
5674 * jv-lang.c (java_class_name_physname): New function.
5675 (java_find_last_component): New static routine.
5676 (java_language_defn): Add java_class_name_from_physname pointer.
5677 * ada-lang.c (ada_language_defn): Change to add NULL
5678 for class_name_from_physname function pointer.
5679 * f-lang.c (f_language_defn): Ditto.
5680 * m2-lang.c (m2_language_defn): Ditto.
5681 * objc-lang.c (objc_language_defn): Ditto.
5682 * p-lang.c (pascal_language_defn): Ditto.
5683 * scm-lang.c (scm_language_defn): Ditto.
5684
ee28ca0f
AC
56852004-07-06 Andrew Cagney <cagney@gnu.org>
5686
5687 Patch from Bart Robinson.
5688 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5689 (O_LARGEFILE): Define to 0, if not defined.
5690
fdb1bf9d
MK
56912004-07-03 Mark Kettenis <kettenis@gnu.org>
5692
cb162ff6
MK
5693 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5694 <machine/pcb.h> and "bsd-kvm.h".
5695 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5696 (m68kbsd_supply_pcb): New function.
5697 (_initialize_m68kbsd_nat): New prototype and function.
5698 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5699 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5700 (LOADLIBES): New variable.
5701 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5702 (LOADLIBES): New variable.
5703
fdb1bf9d
MK
5704 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5705
963c4174
MK
57062004-07-03 Mark Kettenis <kettenis@gnu.org>
5707
5708 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5709 <sys/proc.h>.
5710 (bsd_kvm_cmdlist): New variable.
5711 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5712 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5713 command and "kvm proc" command.
5714 * Makefile.in (bsd-kvm.o): Update dependencies.
5715
533f1d8f
MK
57162004-07-02 Mark Kettenis <kettenis@gnu.org>
5717
5718 * osabi.c: Update copyright year.
5719 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5720 notes if EI_OSABI is set to ELFOSABI_HPUX.
5721
6780dcde
MS
57222004-07-01 Michael Snyder <msnyder@redhat.com>
5723
5724 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5725 that seems to have gotten whacked out of line.
5726
67bebe79
MK
57272004-07-01 Mark Kettenis <kettenis@gnu.org>
5728
5729 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5730 code.
5731
0b5d8877
PH
57322004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5733
5734 * ada-lang.c (decode_packed_array): Minor change to comment.
5735 (ada_value_slice_ptr): New function.
5736 (ada_value_slice): New function.
5737 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5738 test. Don't know why it is there.
5739 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5740 to avoid dereferencing huge arrays from which one is slicing.
5741 (empty_array): Correct to return an array rather than
5742 a subrange value.
5743 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5744 on empty arrays (let'em use 'FIRST instead).
5745
19c1ef65
PH
57462004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5747
5748 Address complaints from gdb_ari.sh:
5749
5750 * ada-exp.y: Include gdb_string.h rather than string.h.
5751 (convert_char_literal): Reformat declaration.
5752 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5753 * ada-lex.l: Change use of free to xfree (the macro would do so
5754 anyway, but this is harmless).
5755 Include gdb_string.h rather than string.h.
5756 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5757
5758 * ada-lang.c (parse): Remove K&Rism in parameter list.
5759 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5760
d81cbc94
MK
57612004-06-30 Mark Kettenis <kettenis@gnu.org>
5762
5763 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5764 dead code.
5765
07681759
MK
57662004-06-30 Mark Kettenis <kettenis@gnu.org>
5767
5768 * alphabsd-nat.c: Update copyright year.
5769 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5770
f7948b5f
JB
57712004-06-29 Joel Brobecker <brobecker@gnat.com>
5772
6e0cdd28 5773 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5774 (i386_cygwin_in_solib_call_trampoline): New function.
5775 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5776 and skip_trampoline_code gdbarch methods.
5777
8f113c9a
JB
57782004-06-29 Jim Blandy <jimb@redhat.com>
5779
5780 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5781 name actually used in the dependency lists.
5782
97dc871c
RC
57832004-06-29 Randolph Chung <tausq@debian.org>
5784
5785 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5786
47216e51
CV
57872004-06-29 Corinna Vinschen <vinschen@redhat.com>
5788
5789 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5790 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5791 functionality.
5792
e623b504
AC
57932004-06-28 Andrew Cagney <cagney@gnu.org>
5794
5795 * defs.h (xstrvprintf): Declare.
5796 * utils.c (xstrvprintf): New function.
5797 (internal_vproblem, xstrprintf, xasprintf)
5798 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5799 * serial.c (serial_printf): Ditto.
5800 * complaints.c (vcomplaint): Ditto.
5801
79acc9b3
CV
58022004-06-29 Corinna Vinschen <vinschen@redhat.com>
5803
5804 * infcmd.c (attach_command): Move call to target_terminal_inferior
5805 behind loading symbol table.
5806
1daf35d9
AC
58072004-06-28 Andrew Cagney <cagney@gnu.org>
5808
5809 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5810 change - add back extern deprecated_ui_loop_hook declaration.
5811
b435e160
AC
58122004-06-28 Andrew Cagney <cagney@gnu.org>
5813
5814 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5815 xstrprintf.
5816 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5817 (c_value_of_variable): Ditto.
5818 * utils.c (internal_vproblem): Ditto.
5819 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5820 * remote.c (add_packet_config_cmd): Ditto.
5821 * remote-rdp.c (rdp_set_command_line): Ditto.
5822 * regcache.c (regcache_dump): Ditto.
5823 * frv-tdep.c (new_variant, new_variant): Ditto.
5824 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5825 (fbsd_find_memory_regions): Ditto.
5826 * breakpoint.c (create_thread_event_breakpoint)
5827 (create_breakpoints): Ditto.
5828 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5829 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5830
06d5cf63
JB
58312004-06-28 Joel Brobecker <brobecker@gnat.com>
5832
5833 * ada-lang.c: Re-indent file, with some massaging to help indent
5834 a bit when the result is otherwise really too ugly.
5835
35809fad
UW
58362004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5837
5838 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5839 code_addr_p and special_addr_p to 'unsigned int'.
5840
40e20472
MK
58412004-06-27 Mark Kettenis <kettenis@gnu.org>
5842
5843 * i386v4-nat.c: Update copyright year and tweak comment.
5844 (regmap): Remove trailing comma.
5845 (supply_gregset): Rename local variable i to regnum. Call
5846 regcache_raw_supply instead of supply_register.
5847 (fill_gregset): Rename argument regno to regnum. Call
5848 regcache_raw_collect instead of regcache_collect.
5849
12b0b6de
UW
58502004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5851
5852 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5853 and special_addr_p.
5854 (frame_id_build, frame_id_build_special): Update comments.
5855 (frame_id_build_wild): New prototype.
5856 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5857 struct frame_id fields.
5858 (frame_id_build_wild): New function.
5859 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5860
47b42a3e
MK
58612004-06-27 Mark Kettenis <kettenis@gnu.org>
5862
5863 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5864 hppabsd-tdep.c.
5865
1265e4aa
JB
58662004-06-27 Joel Brobecker <brobecker@gnat.com>
5867
5868 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5869
76a01679
JB
58702004-06-27 Joel Brobecker <brobecker@gnat.com>
5871
5872 * ada-lang.c: Re-indent file.
5873
7aca490a
JB
58742004-06-27 Joel Brobecker <brobecker@gnat.com>
5875
5876 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5877 (no_symtab_msg): Likewise.
5878
5e987968
AS
58792004-06-27 Andreas Schwab <schwab@suse.de>
5880
5881 * source.c: Fix whitespace.
5882
315c4276
MK
58832004-06-27 Mark Kettenis <kettenis@gnu.org>
5884
d15be926
MK
5885 * configure.in: Include <sys/param.h> for td_pcb test.
5886 * configure: Regenerated.
5887
9062529b
MK
5888 * i386nbsd-nat.c: New file.
5889 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5890 i386obsd-nat.c and i386obsd-tdep.c.
5891 (i386nbsd-nat.o): New dependency.
5892 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5893 bsd-kvm.o.
5894 (LOADLIBES): New variable.
5895 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5896 bsd-kvm.o.
5897 (LOADLIBES): New variable.
5898
8010310e
MK
5899 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5900 (LOADLIBES): New variable.
5901
efe1d7b9
MK
5902 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5903 fetching from BSD_KVM_PADDR. Correctly lookup address for
5904 "_thread0".
5905
315c4276
MK
5906 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5907 "bsd-kvm.h".
5908 (amd64fbsd_supply_pcb): New funcion.
5909 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5910
399cfac6
DL
59112004-06-27 <david@streamline-computing.com>
5912
5913 Partial fix for PR cli/1056.
5914 * valarith.c: Check for zero in division and remainder
5915 evaluation.
5916
6235f9c8
MK
59172004-06-27 Mark Kettenis <kettenis@gnu.org>
5918
5919 * i387-tdep.c: Remove excessive whitespace.
5920
2726dafc
AC
59212004-06-26 Andrew Cagney <cagney@gnu.org>
5922
5923 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5924 * gdb-events.h, gdb-events.c: Re-generate.
5925 * tui/tui-hooks.c (tui_install_hooks): Update.
5926 (tui_remove_hooks): Update.
5927 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5928
0e56aeaf
MK
59292004-06-26 Mark Kettenis <kettenis@gnu.org>
5930
cb461069
MK
5931 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5932 (gregset_t, fpregset_t): Remove typedefs.
5933 (REG_OFFSET): Rename argument.
5934 (amd64bsd_r_reg_offset): Rename from reg_offset.
5935 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5936 Remove functions.
5937 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5938 of reg_offset.
5939 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5940
ecba89de
MK
5941 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5942
4cd80476
MK
5943 * vax-tdep.c: Tweak comment.
5944
0e56aeaf
MK
5945 Add OpenBSD/hppa support.
5946 * NEWS (New native configurations): Mention OpenBSD/hppa.
5947 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5948 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5949 files.
5950 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5951 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5952 * configure.host: Add hppa*-*-openbsd*.
5953 * configure.tgt: Add hppa*-*-openbsd*.
5954
98bbd631
AC
59552004-06-25 Andrew Cagney <cagney@gnu.org>
5956
5957 * defs.h (deprecated_ui_loop_hook): Deprecated.
5958 * wince.c (child_wait): Update.
5959 * win32-nat.c (child_wait): Update.
5960 * v850ice.c (v850ice_wait): Update.
5961 * top.c (deprecated_ui_loop_hook): Update.
5962 * serial.h: Update.
5963 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5964 (do_unix_readchar): Update.
5965 * ser-tcp.c (net_open): Update.
5966 * remote-sim.c (gdb_os_poll_quit): Update.
5967 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5968
769d7dc4
AC
59692004-06-24 Andrew Cagney <cagney@gnu.org>
5970
5971 * defs.h (deprecated_pre_add_symbol_hook)
5972 (deprecated_post_add_symbol_hook): Deprecated.
5973 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5974 (symbol_file_add_with_addrs_or_offsets): Update references.
5975
11c949aa
AC
59762004-06-24 Andrew Cagney <cagney@gnu.org>
5977
5978 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5979 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5980 * wince.c (ui_loop_hook): Delete extern declaration.
5981 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5982 * v850ice.c (ui_loop_hook): Delete extern declaration..
5983 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5984 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5985 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5986 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5987 ui_loop_hook declaration.
5988
eedc19af
AC
59892004-06-24 Andrew Cagney <cagney@gnu.org>
5990
5991 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5992 entry_func_highpc fields.
5993 * objfiles.c (init_entry_point_info): Do not clear
5994 entry_func_lowpc and entry_func_highpc.
5995 (objfile_relocate): Do not relocate entry_func_lowpc and
5996 entry_func_highpc.
5997 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5998 entry_func_highpc.
5999 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6000 entry_func_highpc.
6001 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6002 entry_func_lowpc and entry_func_highpc with call to
6003 inside_entry_func.
6004
d47079be
MK
60052004-06-24 Mark Kettenis <kettenis@gnu.org>
6006
6007 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6008 quad-precision floating point arguments in registers.
6009
2107e348
MK
60102004-06-24 Mark Kettenis <kettenis@gnu.org>
6011
6012 From Michael Mueller <m.mueller99@kay-mueller.de>:
6013 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6014 account.
6015
46587c42
JJ
60162004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6017
6018 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6019 to -1.
6020 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6021 untriggered watchpoints to a separate if clause. Update function
6022 comment regarding STOPPED_BY_WATCHPOINT argument.
6023
226f5cf4
JB
60242004-06-22 Jim Blandy <jimb@redhat.com>
6025
6026 * gdbarch.sh: Doc fix.
6027
f10683bb
MH
60282004-06-21 Martin Hunt <hunt@redhat.com>
6029 Kevin Buettner <kevinb@redhat.com>
6030
6031 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6032 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6033 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6034 to set_gdbarch_sp_regnum(). Use cooked register number.
6035 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6036
412d5987
AC
60372004-06-21 Andrew Cagney <cagney@gnu.org>
6038
6039 * gdbarch.sh: When the macro field is empty, do not generate a
6040 macro definition. When the macro field is "=", generate the macro
6041 name from the upper-case function name.
6042 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6043 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6044 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6045 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6046 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6047 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6048 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6049 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6050 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6051 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6052 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6053 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6054 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6055 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6056 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6057 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6058 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6059 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6060 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6061 (DEPRECATED_USE_STRUCT_CONVENTION)
6062 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6063 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6064 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6065 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6066 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6067 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6068 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6069 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6070 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6071 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6072 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6073 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6074 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6075 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6076 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6077 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6078 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6079 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6080
68908a3e
AC
60812004-06-21 Andrew Cagney <cagney@gnu.org>
6082
48f7351b
AC
6083 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6084 macro name, and the function rather than macro value. Only wrap
6085 macro print statements in #ifdef. Move format logic to where it
6086 is needed.
6087 * gdbarch.c: Re-generate.
6088
283354d8
AC
6089 * gdbarch.sh (read): Delete "print_p" and "description", add
6090 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6091 Delete references to print_p.
6092 (TARGET_ARCHITECTURE): Delete print predicate.
6093 * gdbarch.c: Re-generate.
6094
68908a3e
AC
6095 * gdbarch.sh: Check that multi-arch methods do not provide a
6096 macro.
6097 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6098 (print_registers_info, print_float_info, print_vector_info)
6099 (adjust_breakpoint_address, remote_translate_xfer_address)
6100 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6101 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6102 name from the multi-arch definition.
6103
a2428dbe
AC
61042004-06-20 Andrew Cagney <cagney@gnu.org>
6105
6106 * gdbarch.sh: Sort by the function, instead of macro name.
6107 * gdbarch.c: Re-generate.
6108
750eb019
AC
61092004-06-20 Andrew Cagney <cagney@gnu.org>
6110
66d659b1
AC
6111 * gdbarch.sh: Use the function, instead of macro name in
6112 errors and the log file.
6113 (return_value): Remove stray ":" in spec.
6114
750eb019
AC
6115 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6116 * gdbarch.h, gdbarch.c: Re-generate.
6117 * Makefile.in (arch-utils.o): Update dependencies.
6118 * values.c (using_struct_return): Move code calling
6119 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6120 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6121 to legacy_return_value, simplify.
6122 * infcmd.c (print_return_value): Move code calling
6123 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6124 to legacy_return_value, simplify.
6125 * infcall.c (call_function_by_hand): Move code calling
6126 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6127 * arch-utils.c: Update copyright. Include "gdbcore.h".
6128 (legacy_return_value): New function.
6129 * arch-utils.h: Update copyright.
6130 (legacy_return_value): Declare.
6131
b5622e8d
AC
61322004-06-20 Andrew Cagney <cagney@gnu.org>
6133
6134 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6135 * gdbarch.h, gdbarch.c: Re-generate.
6136 * values.c (using_struct_return): Update call.
6137 * mcore-tdep.c: Update comment.
6138 * infcall.c (call_function_by_hand): Update comment.
6139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6140 * arch-utils.h (always_use_struct_convention): Update.
6141 * v850-tdep.c (v850_gdbarch_init): Update.
6142 * sh64-tdep.c (sh64_gdbarch_init): Update.
6143 * sh-tdep.c (sh_gdbarch_init): Update.
6144 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6145 * mips-tdep.c (mips_gdbarch_init): Update.
6146 * mcore-tdep.c (mcore_gdbarch_init): Update.
6147 * m32r-tdep.c (m32r_gdbarch_init): Update.
6148 * ia64-tdep.c (ia64_gdbarch_init): Update.
6149 * h8300-tdep.c (h8300_gdbarch_init): Update.
6150 * frv-tdep.c (frv_gdbarch_init): Update.
6151 * cris-tdep.c (cris_gdbarch_init): Update.
6152 * arm-tdep.c (arm_gdbarch_init): Update.
6153 * alpha-tdep.c (alpha_gdbarch_init): Update.
6154
5191de37
MC
61552004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6156
6157 * PROBLEMS: Add more specific information, and a work-around,
6158 for PR gdb/1458.
6159
782263ab
AC
61602004-06-18 Andrew Cagney <cagney@gnu.org>
6161
6162 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6163 * gdbarch.h, gdbarch.c: Re-generate.
6164 * ada-lang.c (ada_finish_decode_line_1): Update.
6165 * infrun.c (handle_inferior_event): Update.
6166 * infcall.c (find_function_addr): Update.
6167 * linespec.c (minsym_found): Update.
6168 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6169 Update.
6170 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6171 * cli/cli-cmds.c (disassemble_command): Update.
6172 * vax-tdep.c (vax_gdbarch_init): Update.
6173
2f305df1
MK
61742004-06-18 Mark Kettenis <kettenis@gnu.org>
6175
6176 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6177
e5fe55f7
AC
61782004-06-17 Andrew Cagney <cagney@gnu.org>
6179
6180 GDB 6.1.1 released from the GDB 6.1 branch.
6181 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6182 * PROBLEMS: Ditto.
6183
473b7be6
DJ
61842004-06-16 Daniel Jacobowitz <dan@debian.org>
6185
6186 PR gdb/1658
6187 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6188 operation as a uleb128. Found by Michael Coulter.
6189
96d887e8
PH
61902004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6191
6192 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6193 make it non-static.
6194 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6195 to ada-lang.h; this is needed to be able to implement the kill command
6196 in multi-task mode.
6197 (task_ptid): Ditto.
6198 (task_entry): Ditto.
6199 (task_list): Ditto.
6200 (ada_build_task_list): Ditto.
6201
6202 * ada-lang.c: Conditionalize routines and data structures related
6203 to breakpoints, exceptions, completion, and symbol caching on
6204 GNAT_GDB, since these are not yet used in the submitted public sources.
6205 (ada_main_name): Editorial: Move definition out of exception-related
6206 code.
6207
31eef181
AC
62082004-06-15 Andrew Cagney <cagney@gnu.org>
6209
6210 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6211 deprecated_pc_in_call_dummy.
6212
2c500098
AM
62132004-06-15 Alan Modra <amodra@bigpond.net.au>
6214
6215 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6216 bfd_get_section_size_before_reloc or _raw_size.
6217 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6218 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6219 (dwarf2_read_section): Likewise.
6220 * elfread.c (elf_locate_sections): Likewise.
6221 * gcore.c (derive_heap_segment): Likewise.
6222 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6223 * remote-e7000.c (e7000_load): Likewise.
6224 * remote-m32r-sdi.c (m32r_load): Likewise.
6225 * remote-mips.c (mips_load_srec): Likewise.
6226 (pmon_load_fast): Likewise.
6227 * remote.c (compare_sections_command): Likewise.
6228 * symfile.c (add_section_size_callback): Likewise.
6229 (load_section_callback): Likewise.
6230 (pc_in_unmapped_range): Likewise.
6231 (pc_in_mapped_range): Likewise.
6232 (sections_overlap): Likewise.
6233 (list_overlays_command): Likewise.
6234 (simple_overlay_update_1): Likewise.
6235 (simple_overlay_update): Likewise.
6236 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6237 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6238
90f943f1
RC
62392004-06-14 Randolph Chung <tausq@debian.org>
6240
6241 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6242 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6243 static.
6244 (hppa_hpux_inferior_created): New function.
6245 (hppa_hpux_init_abi): Register observer.
6246 * symfile.c (hp_cxx_exception_support_initialized)
6247 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6248 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6249
700c15aa
RC
62502004-06-14 Randolph Chung <tausq@debian.org>
6251
3973a7d3
AC
6252 * MAINTAINERS (Write After Approval): Alphabetize my entry
6253 correctly.
700c15aa 6254
cea4838c
AC
62552004-06-14 Andrew Cagney <cagney@gnu.org>
6256
6257 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6258 testsuite maintainer.
6259
97092415
AC
62602004-06-13 Andrew Cagney <cagney@gnu.org>
6261
e8c3165b
AC
6262 * infcmd.c (print_return_value): Fix logic, allow
6263 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6264
bceabdd8
AC
6265 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6266 defining any macros.
6267 * gdbarch.h: Re-generate.
6268
57010b1c
AC
6269 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6270 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6271 * gdbarch.h: Re-generate.
6272
bc87dfa0
AC
6273 * values.c (generic_use_struct_convention): Don't check gcc_p.
6274
15ac804d
AC
6275 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6276 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6277 * gdbarch.h, gdbarch.c: Regenerate.
6278 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6279 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6281 deprecated_max_register_raw_size and
6282 deprecated_max_register_virtual_size.
6283 * v850-tdep.c (v850_gdbarch_init): Ditto.
6284 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6285 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6286 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6287 * cris-tdep.c (cris_gdbarch_init): Ditto.
6288
97092415
AC
6289 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6290 * gdbarch.h, gdbarch.c: Re-generate.
6291 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6292 (m68hc11_use_struct_convention): Delete function.
6293 (m68hc11_extract_struct_value_address): Delete function.
6294 (m68hc11_return_value): New function.
6295 (m68hc11_gdbarch_init): Instead of store_return_value,
6296 extract_return_value, return_value_on_stack,
6297 deprecated_extract_struct_value_address and use_struct_convention,
6298 set return_value.
6299 * values.c (using_struct_return): Do not call
6300 RETURN_VALUE_ON_STACK.
6301 * arch-utils.h (generic_return_value_on_stack_not): Delete
6302 declaration.
6303 * arch-utils.c (generic_return_value_on_stack_not): Delete
6304 function.
6305
44e5158b
AC
63062004-06-12 Andrew Cagney <cagney@gnu.org>
6307
6308 * values.c (register_value_being_returned): Delete function.
6309 * infcmd.c (legacy_return_value): Delete function.
6310 * infcall.c (call_function_by_hand): Inline
6311 "register_value_being_returned", simplify.
6312 * values.c (using_struct_return): Update comment, refer to
6313 print_return_value instead of register_value_being_returned.
6314 * infcmd.c (print_return_value): Inline calls to
6315 register_value_being_returned and legacy_return_value. Simplify.
6316
b887c273
RC
63172004-06-11 Randolph Chung <tausq@debian.org>
6318
6319 * somread.c (som_symtab_read): Exclude gcc local symbols.
6320
1b2bfbb9
RC
63212004-06-11 Randolph Chung <tausq@debian.org>
6322
3973a7d3
AC
6323 * infrun.c (handle_inferior_event): Handle the case when a
6324 trampoline ends up in the runtime resolver, and if the trampoline
6325 has no name. Rearrange the code so that all the trampoline
6326 processing happens before other step-out-of-range handling.
1b2bfbb9 6327
a9d61c86
MH
63282004-06-11 Martin Hunt <hunt@redhat.com>
6329
6330 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6331 has no fpu.
6332
2c87cf5a
AC
63332004-06-10 Andrew Cagney <cagney@gnu.org>
6334
6335 * blockframe.c (legacy_inside_entry_func): Delete.
6336 (legacy_frame_chain_valid): Inline call to
6337 legacy_inside_entry_func, simplify.
6338
0b67b468 63392004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
6340
6341 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
6342 * dwarf2read.c (partial_die_info): Add dirname field.
6343 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6344 (read_partial_die): Save away DW_AT_comp_dir.
6345 * defs.h (symtab_to_filename): Removed.
6346 * source.c (find_and_open_source): Added.
57c22c6c 6347 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
6348 (symtab_to_filename): Removed.
6349 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
6350 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6351 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6352 symtab_to_filename.
6353 * symtab.h (partial_symtab): Add dirname field.
6354 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
6355 (mi_cmd_file_list_exec_source_file): Call new function
6356 symtab_to_fullname to find fullname.
57c22c6c 6357 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 6358 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
6359 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6360
9a1dd1ad
AC
63612004-06-10 Andrew Cagney <cagney@gnu.org>
6362
239ae8c7
AC
6363 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6364 to generic_use_struct_convention, the default value.
6365
fc720350
AC
6366 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6367 of abort.
6368
9a1dd1ad
AC
6369 * ns32k-tdep.c (ns32k_push_arguments): New function.
6370 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6371 * infcall.c (call_function_by_hand): Call error instead of
6372 legacy_push_arguments.
6373 * value.h (legacy_push_arguments): Delete declaration.
6374 * valops.c (legacy_push_arguments): Delete function.
6375 (value_push): Delete function.
6376
fea25152
BF
63772004-06-10 Brian Ford <ford@vss.fsi.com>
6378
6379 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6380 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6381 info.
6382 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6383
30a4a8e0
AC
63842004-06-10 Andrew Cagney <cagney@gnu.org>
6385
6386 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6387 * gdbarch.h, gdbarch.c: Re-generate.
6388 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6389 parameters.
6390 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6391 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6392 deprecated_pc_in_call_dummy instead of
6393 DEPRECATED_PC_IN_CALL_DUMMY.
6394 (arm_skip_prologue): Ditto.
6395 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6396 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6397 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6398 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6399 Ditto.
6400 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6401 (sh64_init_extra_frame_info, sh64_get_saved_register)
6402 (sh64_pop_frame): Ditto.
6403 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6404 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6405 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6406 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6407 (h8300_pop_frame): Ditto.
6408 * blockframe.c (legacy_inside_entry_func)
6409 (legacy_frame_chain_valid): Ditto.
6410 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6411 to deprecated_pc_in_call_dummy.
6412
81cfbe54
AC
64132004-06-09 Andrew Cagney <cagney@gnu.org>
6414
a1f4a1b6
AC
6415 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6416 provide a default value.
6417 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6418 * gdbarch.h, gdbarch.c: Re-generate.
6419 * arch-utils.c (generic_convert_register_p): Rename
6420 legacy_convert_register_p
6421 (legacy_register_to_value, legacy_value_to_register): Delete
6422 functions.
6423 * arch-utils.h (generic_convert_register_p): Rename
6424 legacy_convert_register_p.
6425 (legacy_register_to_value, legacy_value_to_register): Delete
6426 declarations.
6427
9730f241
AC
6428 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6429 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6430 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6431 * gdbarch.h, gdbarch.c: Re-generate.
6432 * infcmd.c (default_print_registers_info): Simplify.
6433 * findvar.c (value_of_register): Simplify.
6434 * mi/mi-main.c (get_register): Simplify.
6435 * arch-utils.c (legacy_convert_register_p): Always return 0.
6436 (legacy_register_to_value, legacy_value_to_register): Always call
6437 internal_error.
6438
8a1bf479
AC
6439 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6440 #ifdef CLEAR_INSN_CACHE code.
6441 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6442 Delete #ifdef CLEAR_DEFERRED_STORES code.
6443
4b38d6f1
AC
6444 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6445
2d62ecc7
AC
6446 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6447 copyright.
6448 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6449
be4f7469
AC
6450 * config/mips/mipsv4.mh: Delete file.
6451
81cfbe54
AC
6452 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6453 unreferenced macro.
6454 (hpread_adjust_stack_address): Delete declaration.
6455
d966f0cb
AC
64562004-06-08 Andrew Cagney <cagney@gnu.org>
6457
6458 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6459 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6460 PTRACE_ATTACH / PTRACE_DETACH available call error.
6461 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6462 * infttrace.c (update_thread_state_after_attach, attach, detach):
6463 Remove #ifdef wrappers.
6464 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6465 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6466 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6467 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6468 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6469 * config/nm-linux.h (ATTACH_DETACH): Delete.
6470 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6471 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6472 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6473 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6474 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6475
d91670b9
CV
64762004-06-08 Corinna Vinschen <vinschen@redhat.com>
6477
6478 * configure.in: Set $configdir to the right OS specific value.
6479 Use value when setting $tcldir and $tkdir.
6480 * configure: Regenerate.
6481
28ba0b33
PB
64822004-06-06 Paul Brook <paul@codesourcery.com>
6483
6484 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6485 records.
6486
f26caa11
PH
64872004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6488
6489 * ada-lang.c (lookup_symbol_in_language): New function to allow
6490 re-use of another language's symbol lookup code. (Placed here
6491 temporarily while Ada support is being integrated into the public
6492 tree).
6493 (restore_language): New auxiliary function for
6494 lookup_symbol_in_language.
6495 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6496 temporarily while Ada support is being integrated into the public
6497 tree).
6498
d560a54b
AO
64992004-06-08 Alexandre Oliva <aoliva@redhat.com>
6500
e75d110c
AO
6501 * Makefile.in (check//%): New.
6502
d560a54b
AO
6503 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6504 (mn10300_store_return_value): Rewrite.
6505 (mn10300_type_align): New.
6506 (mn10300_use_struct_convention): Rewrite.
6507 (mn10300_return_value): New, using all of the above.
6508 (mn10300_pop_frame_regular): Add saved_regs_size.
6509 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6510
a72fbdb7
AO
6511 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6512 regs if PC is on movm.
6513
01904826
JB
65142004-06-07 Jim Blandy <jimb@redhat.com>
6515
6516 Add native Linux support for the PowerPC E500.
6517 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6518 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6519 all architectures except the E500.
6520 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6521 #definitions.
6522 (struct gdb_evrregset_t): New type.
6523 (have_ptrace_getsetevrregs): New variable.
6524 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6525 fetch_spe_registers): New functions.
6526 (fetch_register): Call fetch_spe_register as appropriate.
6527 Assert that we're only passed raw register numbers.
6528 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6529 Don't fetch gprs if they're pseudoregisters.
6530 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6531 store_spe_registers): New functions.
6532 (store_register): Call store_spe_register as appropriate.
6533 Assert that we're only passed raw register numbers.
6534 (store_ppc_registers): Call store_spe_registers as appropriate.
6535 Don't store gprs if they're pseudoregisters.
6536
f90ef764
JJ
65372004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6538
6539 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6540 struct if one exists, even if we are dealing with a zombie thread.
6541
45b75230
AC
65422004-06-07 Andrew Cagney <cagney@gnu.org>
6543
6544 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6545 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6546 Rename PC_REQUIRES_RUN_BEFORE_USE.
6547 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6548 #ifdef.
6549
1658da49
RC
65502004-06-07 Randolph Chung <tausq@debian.org>
6551
6552 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6553 unwinding after sp has been saved to the stack but before the end
6554 of the prologue, and after the fp has been modified but before it has
6555 been saved to the stack.
6556 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6557 Remove superfluous definitions.
6558 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6559
9a727a3c
RC
65602004-06-07 Guy Martin <gmsoft@gentoo.org>
6561
6562 Committed by Randolph Chung.
6563 * hppa-linux-nat.c: Include the correct version of the header file
6564 depending on the kernel version.
6565
9e500012
RC
65662004-06-06 Randolph Chung <tausq@debian.org>
6567
6568 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6569 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6570
3388d7ff
RC
65712004-06-06 Randolph Chung <tausq@debian.org>
6572
6573 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6574 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6575 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6576 * hppa-tdep.c (hppa_symbol_address): New function definition.
6577 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6578
d49771ef
RC
65792004-06-06 Randolph Chung <tausq@debian.org>
6580
6581 * hppa-tdep.h (struct value): Forward declaration.
6582 (gdbarch_tdep): Define tdep find_global_pointer method.
6583 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6584 associated with the function we are trying to call, and write it
6585 to the gp register.
6586 (hppa32_convert_from_funct_ptr_addr): New function.
6587 (hppa_find_global_pointer): New function.
6588 (hppa_gdbarch_init): Set default find_global_pointer method; set
6589 convert_from_func_ptr_addr method.
6590 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6591 (hppa_linux_init_abi): Set find_global_pointer method.
6592 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6593
7d9b040b
RC
65942004-06-06 Randolph Chung <tausq@debian.org>
6595
6596 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6597 to struct value *function.
6598 * gdbarch.c: Regenerate.
6599 * gdbarch.h: Likewise.
6600 * infcall.c (call_function_by_hand): Pass entire function value
6601 to push_dummy_call.
6602
6603 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6604 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6605 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6606 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6607 * arm-tdep.c (arm_push_dummy_call): Likewise.
6608 * avr-tdep.c (avr_push_dummy_call): Likewise.
6609 * cris-tdep.c (cris_push_dummy_call): Likewise.
6610 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6611 * frv-tdep.c (frv_push_dummy_call): Likewise.
6612 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6613 * hppa-tdep.c (hppa32_push_dummy_call)
6614 (hppa64_push_dummy_call): Likewise.
6615 * i386-tdep.c (i386_push_dummy_call): Likewise.
6616 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6617 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6618 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6619 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6620 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6621 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6622 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6623 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6624 (ppc64_sysv_abi_push_dummy_call): Likewise.
6625 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6626 (ppc64_sysv_abi_push_dummy_call): Likewise.
6627 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6628 * s390-tdep.c (s390_push_dummy_call): Likewise.
6629 * sh-tdep.c (sh_push_dummy_call_fpu)
6630 (sh_push_dummy_call_nofpu): Likewise.
6631 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6632 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6633 * vax-tdep.c (vax_push_dummy_call): Likewise.
6634
4a19ea35
JB
66352004-06-04 Jim Blandy <jimb@redhat.com>
6636
8327ccee
JB
6637 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6638 gdbarch argument to register_size.
6639
a3c001ce
JB
6640 * rs6000-tdep.c (rs6000_store_return_value): Use
6641 regcache_cooked_write_part instead of
6642 deprecated_write_register_bytes.
6643 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6644 not gdbarch_deprecated_store_return_value.
6645
4a19ea35
JB
6646 * ppc-linux-nat.c (store_register, fetch_register): Remove
6647 incorrect assertions. Simplify and generalize handling of
6648 transfers whose sizes are not multiples of, or less than, sizeof
6649 (PTRACE_XFER_TYPE).
6650
b9b5d7ea
JJ
66512004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6652
6653 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6654 as a new thread event.
720c7d64 6655 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6656 zombie, return TD_THR_ZOMBIE.
720c7d64 6657 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6658 TD_THR_ZOMBIE, check if the thread is still on the thread list
6659 and return a -1 ptid if not found.
6660 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6661 change the status to TARGET_WAITKIND_SPURIOUS.
6662
c8a3b559
CV
66632004-06-03 Corinna Vinschen <vinschen@redhat.com>
6664
6665 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6666 double values in little endian mode.
6667
20605361
AC
66682004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6669
6670 Committed by Andrew Cagney.
6671 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6672 after last enum constant to avoid error from IBM C
6673 compiler.
6674
bc97b3ba
JB
66752004-06-02 Jim Blandy <jimb@redhat.com>
6676
6677 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6678 to 'message', and make it local to the lone block that uses it.
6679
1da28ab0
JB
6680 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6681
4c4b4cd2
PH
66822004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6683
8a2225b2
PH
6684 * ada-exp.y: Update copyright notice.
6685 Include block.h.
6686
6687 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6688 SPECIAL_VARIABLE and unify the treatment of these cases.
6689
6690 (write_attribute_call0): Remove.
6691 (write_attribute_call1): Remove.
6692 (write_attribute_calln): Remove.
6693 (save_qualifier): Add missing semicolon.
6694
6695 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6696 temporarily disabled to allow compilation with FSF head version.
6697
6698 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6699 use individual operators (OP_*) for all attributes.
6700 (exp syntax): Use write_int.
6701 Handle STRING literals with OP_STRING.
6702 (variable syntax): Add limit parameter to calls to
6703 write_object_renaming.
6704
6705 (temp_parse_space): New definition to hold entities that need
6706 only live until the next call to ada_parse.
6707 (string_to_operator): Rename fields of ada_opname_table entries.
6708
6709 (write_var_from_sym): Record block.
6710 (write_var_from_name): Minor reformatting.
6711 Make sure saved name is properly encoded in the case of multiple
6712 matches, and set its language to Ada.
6713 Update comment.
6714 Modify to indicate unresolved name as symbol in the UNRESOLVED
6715 namespace, allocated in temp_parse_space.
6716 (write_int): New function.
6717
6718 (write_object_renaming): Add max_depth parameter to limit
6719 chains of object renamings.
6720 Handle case where root of renaming expression is itself a renaming.
6721 Use temp_parse_space for temporary name buffer.
6722 Handle renamings to dereferenced pointers (___XEXA suffices).
6723
6724 (ada_parse, yyerror, string_to_operator,
6725 write_var_from_sym, write_var_from_name, write_attribute_call0,
6726 write_attribute_call1, write_attribute_calln,
6727 write_object_renaming): Protoize.
6728
6729 (_initialize_ada_exp): New function.
6730
6731 * ada-lang.c: Update copyright notice.
6732 General terminology change to conform to GNAT compiler usage:
6733 mangle => encode, demangle => decode
6734 Include gdb_obstack.h.
6735 Include gdb_regex.h
6736 Include frame.h
6737 Include hashtab.h
6738 Include completer.h
6739 Include gdb_stat.h
6740 Include block.h
6741 Include infcall.h
6742
6743 (ADA_RETAIN_DOTS): Make sure this is defined.
6744 (TRUNCATION_TOWARDS_ZERO): Define.
6745 (struct string_vector): Define.
6746 (unresolved_names): Remove definition.
6747 (xnew_string_vector): New function.
6748 (string_vector_append): New function.
6749 (extract_string): Make static.
6750 (ada_unqualified_name): New function.
6751 (add_angle_brackets): New function.
6752 (function_name_from_pc): New function.
6753 (place_on_stack): Rename to ensure_lval.
6754
6755 (ensure_lval): Renamed from place_on_stack.
6756 Make identity on lvals.
6757 Update comment.
6758 (is_nonfunction): New interface.
6759 Only symbols in LOC_CONST class can be enumerals.
6760 (fill_in_ada_prototype): Remove; now independent of language.
6761 (add_defn_to_vec): Add obstack and symtab arguments.
6762 Use obstack to hold collected definitions.
6763 (num_defns_collected): New function.
6764 (defns_collected): New function.
6765 (ada_resolve_subexp): Rename to resolve_subexp.
6766 (resolve_subexp): Renamed from ada_resolve_subexp.
6767 (ada_op_name): Return non-const result.
6768 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6769 other purposes.
6770
6771 (to_fixed_array_type): Add declaration.
6772 (coerce_unspec_val_to_type): Remove offset parameter.
6773 (find_sal_from_funcs_and_line): New interface.
6774 (find_line_in_linetable): Ditto.
6775
6776 (all_sals_for_line): Rename to ada_sals_for_line and make
6777 global.
6778 Add new parameter. When set, do not ask the user to choose the
6779 instance, but use the first one found instead.
6780 Use given line number in returned sals.
6781 Fix comment.
6782 Skip the prologue if funfirstline is set.
6783 Correct for memory leak when 0 lines found.
6784
6785 (value_pos_atr): Use pos_atr.
6786 (pos_atr): New function.
6787 (standard_lookup): Add block parameter.
6788
6789 (makeTimeStart): Remove declaration and uses.
6790 (makeTimeStop): Remove declaration and uses.
6791
6792 (ada_completer_word_break_characters): Allow for VMS.
6793 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6794 (raise_sym_name): New constant.
6795 (raise_unhandled_sym_name): New constant.
6796 (raise_assert_sym_name): New constant.
6797 (process_raise_exception_name): New constant.
6798 (longest_exception_template): New constant.
6799 (warning_limit): New variable to limit warnings during expression
6800 evaluation.
6801 (warnings_issued): New variable to keep track of warnings issued.
6802 (known_runtime_file_name_patterns): New constant.
6803 (known_auxiliary_function_name_patterns): New constant.
6804 (symbol_list_obstack): New variable.
6805
6806 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6807 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6808 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6809 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6810 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6811 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6812 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6813 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6814 and strcmp.
6815
6816 (ada_get_field_index): New function.
6817 (lim_warning): New function.
6818 (ada_translate_error_message): New function.
6819 (MAX_OF_SIZE): New function.
6820 (MIN_OF_SIZE): New function.
6821 (UMAX_OF_SIZE): New function.
6822 (UMIN_OF_SIZE): New function.
6823 (discrete_type_high_bound): New function.
6824 (discrete_type_low_bound): New function.
6825 (base_type): New function.
6826 (do_command): Remove.
6827
6828 (ada_update_initial_language): Use language_ada, not language_unknown.
6829 (ada_encode): Renamed from ada_mangle.
6830 Obey ADA_RETAIN_DOTS.
6831 (ada_decode): Renamed from ada_demangle.
6832 Update coding conventions.
6833 (decoded_names_store): New hash table.
6834 (ada_decode_symbol): New function.
6835 (ada_la_decode): New function.
6836
6837 (modify_general_field): Correct computations of offset and bit
6838 position.
6839 (desc_base_type): Handle ref types, too.
6840 (ada_is_direct_array_type): New function.
6841
6842 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6843 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6844 (ada_is_bogus_array_descriptor,ada_type_of_array,
6845 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6846 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6847 ada_is_array_descriptor_type.
6848
6849 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6850 (ada_is_packed_array_type): Handle pointers or
6851 references to packed arrays as well.
6852 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6853 (decode_packed_array_type): Search for the packed array type
6854 symbol in the currently selected block and associated
6855 superblocks too.
6856 Use lookup_symbol again.
6857
6858 (decode_packed_array): Handle pointers and references.
6859 Update call to coerce_unspec_val_to_type.
6860 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6861 (ada_value_primitive_packed_val): Improve comment.
6862
6863 (ada_index_type): Substitute int type for "undefined".
6864 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6865 ada_array_langth, ada_is_string_type): Use renamed
6866 ada_is_simple_array_type.
6867 (empty_array): New function.
6868
6869 (ada_resolve): Rename to resolve.
6870 (resolve): Make static.
6871 Call renamed resolve_subexp.
6872 Update comment.
6873 (ada_resolve_subexp): Rename to resolve_subexp.
6874 (resolve_subexp): Update comment.
6875 Decomment disabled code.
6876 Add LOC_COMPUTED* cases.
6877 Modify to use temporary struct symbols (marked as being in
6878 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6879 OP_UNRESOLVED_VALUE.
6880 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6881 Add OP_STRING case.
6882 Remove OP_ARRAY.
6883 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6884 Use new ada_lookup_symbol_list interface.
6885 Use new ada_resolve_function interface.
6886 Remove OP_TYPE case.
6887
6888 (ada_args_match): Idiot proof against null actuals.
6889 Use intermediate variables to clarify.
6890 (ada_resolve_function): Update comment and interface.
6891 (mangled_ordered_before): Rename to encoded_ordered_before and
6892 update comment.
6893 (sort_choices): Update comment and interface.
6894 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6895 (user_select_syms): New interface.
6896 Use new sort_choices interface.
6897 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6898 (possible_user_operator_p): Idiot-proof against null values.
6899 (ada_simple_renamed_entity): Don't make cleanup; rely on
6900 caller to free result string.
6901 Remove const from return type.
6902 (make_array_descriptor): Rename uses of place_on_stack to
6903 ensure_lval.
6904 Make sure that arrays are on stack.
6905
6906 (HASH_SIZE): Define.
6907 (struct cache_entry): Define.
6908 (cache_space): Define.
6909 (cache): Define.
6910 (clear_ada_sym_cache): New function.
6911 (find_entry): New function.
6912 (lookup_cached_symbol): New function.
6913 (defn_vector_size): Define.
6914 (cache_symbol): New function.
6915 (defn_symbols): Remove.
6916
6917 (standard_lookup): Use lookup_symbol_in_language to get effect of
6918 C lookup.
6919 Cache results.
6920
6921 (symbol_completion_match): New function.
6922 (symbol_completion_add): New function.
6923 (ada_make_symbol_completion_list): New function.
6924
6925 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6926 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6927 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6928 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6929
6930 (ada_lookup_simple_minsym): New function.
6931 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6932
6933 (add_symbols_from_enclosing_procs): New interface.
6934 Conditionalize more helpfully.
6935 Don't bother if program isn't running.
6936 Use new interface to get_frame_block.
6937 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6938
6939 (remove_extra_symbols): New interface.
6940 (xget_renaming_scope): New function.
6941 (is_package_name): New function.
6942 (renaming_is_visible): New function.
6943 (remove_out_of_scope_renamings): New function.
6944
6945 (ada_lookup_symbol_list): New interface.
6946 Properly reinitialize the symbol list obstack.
6947 Don't call add_symbols_from_enclosing_procs if we start from a
6948 static or global block.
6949 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6950 add_symbols_from_enclosing_procs.
6951 Add symtab data to cached entries.
6952 Handle symbols prefixed with
6953 "standard__" specially; strip prefix and don't look in local symbols.
6954 Do not include out of scope renaming symbols in list of
6955 symbols returned.
6956 Add const to block parameter.
6957 Move check for non-local, non-global symbols earlier.
6958 Remove timing stuff.
6959 (ada_lookup_symbol): New interface.
6960 Find symtab as well.
6961 (ada_lookup_symbol_nonlocal): New function.
6962
6963 (is_name_suffix): Enhance suffix detection to recognize
6964 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6965 (is_dot_digits_suffix): New function.
6966 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6967
6968 (ada_add_block_symbols): New interface. Use obstack to return results
6969 in a vector of struct ada_symbol_infos. Add symtab argument.
6970 Use new interface to add_defn_to_vec.
6971 Remove calls to fill_in_ada_prototype.
6972 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6973
6974 (ada_finish_decode_line_1): Add const qualification to local to fix
6975 warning.
6976 Start looking in static block for functions to avoid attempts
6977 to search frame chain for up-level variables.
6978 Adapt to new ada_sals_for_line interface.
6979 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6980 Handle quoting of the function name inside the spec string.
6981 Skip prologue when funfirstline is set and update the
6982 function documentation to that effect.
6983
6984 (debug_print_lines, debug_print_block, debug_print_blocks,
6985 debug_print_symtab): Remove.
6986
6987 (ada_main_name): New function.
6988 (ada_exception_breakpoint_type): New function.
6989 (is_known_support_routine): New function.
6990 (ada_find_printable_frame): Renamed from find_printable_frame and made
6991 global.
6992 Remove level parameter.
6993 Use new interface to select_frame.
6994
6995 (begin_command): Remove.
6996 (ada_adjust_exception_stop): New function.
6997 (ada_print_exception_stop): New function.
6998 (exception_name_from_cond): New function.
6999 (ada_report_exception_break): Replace disabled code with
7000 conditionalization on GNAT_GDB.
7001 Get the exception name from the condition string.
7002 Remove and move functionality into new functions
7003 ada_print_exception_breakpoint_task and
7004 ada_print_exception_breakpoint_nontask.
7005 (error_breakpoint_runtime_sym_not_found): New function.
7006 (is_runtime_sym_defined): New function.
7007 (ada_breakpoint_rewrite): Uncomment suppressed code.
7008 Use symbolic error-message and runtime-symbol names.
7009 Surround runtime symbol names in quotes.
7010 Allow non-specific breakpoints on exceptions and assertions before
7011 program starts.
7012
7013 (ada_is_tagged_type): Add parameter.
7014 (ada_is_tag_type): New function.
7015 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7016 (ada_variant_discrim_type): Ditto.
7017 (value_tag_from_contents_and_address): New function.
7018 (type_from_tag): New function.
7019 (struct tag_args): New structure used to communicate with
7020 ada_tag_name_1.
7021 (ada_tag_name_1): New function.
7022 (ada_tag_name): New function.
7023
7024 (ada_scan_number): Update comment.
7025 (find_struct_field): New function.
7026 (ada_search_struct_field): Make static.
7027 (ada_value_struct_elt): New version that returns references when
7028 given pointers or references to structs.
7029 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7030 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7031 interface.
7032 (ada_value_ind): Use new ada_to_fixed_value interface.
7033 (ada_coerce_ref): Ditto.
7034 (field_offset): Remove.
7035
7036 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7037 (ada_find_renaming_symbol): New function.
7038 (ada_prefer_type): Prefer named types over unnamed ones.
7039 (variant_field_index): New function.
7040 (contains_variant_part): Removed: subsumed by variant_field_index.
7041 (ada_template_to_fixed_record_type): New function, mostly from
7042 template_to_fixed_record_type.
7043 (template_to_fixed_record_type):
7044 Do not scan the type fields beyond the last one; prevents a
7045 potential SEGV.
7046 Handle case where variant field is listed BEFORE discriminant it
7047 depends on.
7048 Fix calculation of record length when bit length is
7049 not evenly divisible by char length.
7050 Move code to ada_template_to_fixed_record_type and call it.
7051
7052 (template_to_static_fixed_type): Revise comment.
7053 Modify to work on ordinary record types as well as templates,
7054 so as to handle fields that use ___XVE or ___XVU encodings.
7055 (to_record_with_fixed_variant_part): Fill out comment.
7056 Initialize C++ stuff in right type.
7057 Allow case where DVAL is null.
7058 Handle case where variant field is not last.
7059 Fix typo concerning record length.
7060 (to_fixed_record_type): Decomment disabled code.
7061 (to_fixed_record_type): Use variant_field_index instead of
7062 contains_variant_part.
7063 (to_fixed_variant_branch_type): Ditto.
7064 (to_fixed_array_type): Decomment disabled code.
7065 (ada_to_fixed_type): Convert tagged types to the specific type.
7066 Deactivate the size-check for array types in order to avoid
7067 some false size alarms.
7068 (to_static_fixed_type): Decomment disabled code.
7069 Modify to call template_to_static_fixed_type
7070 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7071 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7072 Remove valaddr argument, as it is never really used.
7073 (ada_to_fixed_value): Change interface to act on single struct value*
7074 operand.
7075 (adjust_pc_past_prologue): New function.
7076 (ada_attribute_name): Modify to take enum exp_opcode argument.
7077
7078 (ada_enum_name): Recognize new homonym-distinguishing convention.
7079 Adjust local variable's type to remove compiler warning.
7080 Fix a small problem in the part that unqualifies the enumeration name.
7081 (ada_value_binop): New function.
7082 (ada_value_equal): New function.
7083
7084 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7085 Don't give error message when not doing normal evaluation
7086 and a tagged type doesn't seem to contain a structure member.
7087 Give error message for packed arrays.
7088 For indexing arrays, handle pointers to packed arrays correctly.
7089 Handle case of 'first and 'last attributes of bare integral type
7090 without encoded subtype info.
7091 Remove some unnecessary casts.
7092 Fix uninitialized value of type in computing 'first, 'last, or 'length
7093 of array object.
7094 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7095 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7096 calls.
7097 Attributes are now exp_opcode values.
7098 Correct treatment of 'modulus.
7099 Better error message for taking 'length of wrong kind of type;
7100 improve comment.
7101 Change EVAL_NORMAL to noside for consistency.
7102 Use ada_value_binop for DIV, MOD, REM.
7103 Make special case out of array of length 0, since an argument
7104 of 0 upsets some platforms' malloc.
7105 Use OP_STRING instead of OP_ARRAY.
7106 For slice, add check that we have an array type before extracting
7107 a slice out of it. Avoids a SEGV.
7108 When evaluating an array slice, if the array type is a reference to
7109 an aligner type, then replace the aligner type by the actual type.
7110 Decomment disabled code.
7111 Remove some dead code.
7112 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7113 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7114 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7115 and UNOP_MBR to UNOP_IN_RANGE.
7116 If an array type has a parallel ___XVE type, then use it.
7117 Turn arrays into pointers for lvalue arrays.
7118 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7119 bounds error and handle 0-length slices.
7120 Use lim_warning.
7121 When selecting fields, apply ada_to_fixed_value (because the fields
7122 might have ___XVU or ___XVE encodings even if not dynamic.)
7123 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7124 (ada_is_system_address_type): New function.
7125
7126 (get_var_value): Use new interface to ada_lookup_symbol_list.
7127 (get_int_var_value): New interface.
7128 (to_fixed_range_type): Allow unknown bound, with warning.
7129 (ada_is_modular_type): Decomment disabled code.
7130 (ADA_OPERATORS): New definition.
7131 (ada_operator_length): New function.
7132 (ada_expr_op_name): New function.
7133 (ada_forward_operator_length): New function.
7134 (ada_dump_subexp_body): New function.
7135 (ada_print_subexp): New function.
7136 (ada_exp_descriptor): New constant.
7137 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7138 (ada_language_defn): Add ada_exp_descriptor entry.
7139 Change ada_parse => parse.
7140 Add post-parser entry.
7141 Use ada-specific non-local symbol lookup.
7142 Don't use C-style arrays.
7143 String lower-bound is 1.
7144 Decomment disabled code.
7145 (parse): New function.
7146 New fields ada_translate_error_message, ada_lookup_symbol,
7147 ada_lookup_minimal_symbol.
7148
7149 * ada-lang.h: Update copyright dates.
7150 Replace the mangle/demangle terminology throughout by the
7151 more appropriate encode/decode one.
7152 Include breakpoint.h.
7153 Forward declare struct partial_symbol, struct block.
7154 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7155 (EXTRACT_ADDRESS): Remove.
7156 (EXTRACT_INT): Remove.
7157 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7158 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7159 (MAX_RENAMING_CHAIN_LENGTH): Define.
7160 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7161
7162 (enum task_states): Remove.
7163 ada_task_states: Remove.
7164 (fat_string): Remove.
7165 (struct entry_call): Remove.
7166 (struct task_fields): Remove.
7167 (struct task_entry): Remove.
7168
7169 (struct ada_symbol_info): Define.
7170 (enum ada_attribute): Remove.
7171 (enum ada_operator): Define.
7172
7173 (ada_get_field_index): Declare.
7174 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7175 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7176 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7177 (ada_lookup_symbol_list): New interface.
7178 (ada_decode_symbol): Declare.
7179 (ada_decode): Declare.
7180 (ada_lookup_symbol): New interface.
7181 (ada_update_initial_language): Declare.
7182 (ada_lookup_simple_minsym): Declare.
7183 (user_select_syms): New interface.
7184 (ada_sals_for_line): Declare.
7185 (ada_is_tagged_type): New interface.
7186 (ada_tag_name): Declare.
7187 (ada_lookup_struct_elt_type): Remove declaration.
7188 (ada_search_struct_field): Remove declaration.
7189 (ada_attribute_name): New interface.
7190 (ada_is_system_address_type): Declare.
7191 (ada_to_fixed_value): Remove declaration.
7192 (ada_template_to_fixed_record_type_1): Declare.
7193 (get_int_var_value): New interface.
7194 (ada_find_any_symbol): Declare.
7195 (ada_find_renaming_symbol): Declare.
7196 (ada_mangle): Rename to ada_encode.
7197 (ada_simple_renamed_entity): Remove const.
7198 (ada_main_name): Declare.
7199 (get_current_task): Rename to ada_get_current_task.
7200 (get_entry_number): Remove declaration.
7201 (ada_report_exception_break): Remove declaration.
7202 (ada_print_exception_breakpoint_nontask): Declare.
7203 (ada_print_exception_breakpoint_task): Declare.
7204 (ada_find_printable_frame): Declare.
7205
7206 * ada-lex.l: Update copyright notices.
7207 Use xmalloc and xfree instead of malloc and free.
7208 Use new interface to name_lookup.
7209 Use new interface to
7210 ada_mangle=>ada_encode.
7211 Redo handling of '$...' variable to parallel current treatment
7212 in c-exp.y.
7213 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7214 digit_to_int, strtoulst, processInt, processReal, processId,
7215 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7216 yywrap): Protoize.
7217
7218 (processInt): Use cast to remove harmless warning.
7219 (processReal): Modify to get rid of compiler warning on scan formats.
7220
7221 (processId): Replace xmalloc with obstack_alloc for name and remove
7222 call to ada_name_string_cleanup.
7223 Remove obsolete disabled code.
7224 (name_lookup): Ditto.
7225 New interface.
7226 Use obsavestring on temp_parse_space instead of savestring
7227 on name, and remove call to ada_name_string_cleanup.
7228 Free string returned from ada_simple_renamed_entity.
7229 Use new interface to ada_lookup_symbol_list.
7230 Decomment disabled code.
7231 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7232 not types.
7233 When a type name lookup succeeds as a result of
7234 lookup_primitive_typename, check for regular type entry that has not
7235 yet been read in.
7236 Limit length of chain of renamed symbols we are willing to follow.
7237 Do not break names beginning with "standard__" into segments.
7238 (block_lookup): Use new interface to ada_lookup_symbol_list.
7239
7240 * ada-typeprint.c: Update copyright notice.
7241 (demangled_type_name): Rename to decoded_type_name.
7242 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7243 (print_range_bound): Correct handling of negative
7244 bounds that make the index type looked unsigned under STABS.
7245 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7246 (print_range_type_named): Use the builtin int type if no type
7247 corresponding to the given type name could be found.
7248 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7249 Add some bullet-proofing.
7250 (print_variant_clauses): Allow for variant branches with ___XVU
7251 encodings that are not dynamic fields.
7252 Use new interface to ada_is_tagged_type.
7253 (print_record_type): Allow for fields with ___XVE encodings that
7254 are not dynamic fields.
7255 Use new interface to ada_is_tagged_type.
7256 (ada_print_type): ada_is_array_descriptor =>
7257 ada_is_array_descriptor_type.
7258
7259 * ada-valprint.c: Update copyright notice.
7260 Include gdb_string.h
7261 Include infcall.h
7262 (ui_memcpy): New function.
7263 (ada_print_floating): New function.
7264 (ada_print_str): Order arguments correctly.
7265 Correct handling of empty arrays and arrays of 0-length items.
7266 ada_is_array_descriptor => ada_is_array_descriptor_type
7267 Print values of type System.Address in hexadecimal format.
7268 Use ada_print_floating to print floating-point numbers in Ada format.
7269 Print class tag values with type names.
7270 No longer print the address of reference values. Avoids
7271 a potential confusion.
7272 (ada_value_print): Stop printing the object type for reference
7273 values, but preserve that behavior for access types. Avoids
7274 a potential confusion.
7275 Simplify one conditional expression, as the first part is now
7276 necessarily true.
7277 ada_is_array_descriptor => ada_is_array_descriptor_type
7278 Add check for arrays for null records, and print them by hand.
4c4b4cd2 7279
f65f91b5
JB
72802004-06-01 Jim Blandy <jimb@redhat.com>
7281
7282 * ppc-tdep.h: Delete unused 'regoff' member.
7283 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7284
d4687fa0
MC
72852004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7286
7287 Fix PR symtab/1661.
7288 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7289 (hpread_read_struct_type): Likewise.
7290
de169ec9
AC
72912004-06-01 Andrew Cagney <cagney@gnu.org>
7292
c6902d46
AC
7293 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7294 instead of xasprintf.
7295 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7296 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7297 (mi_cmd_data_list_register_names)
7298 (mi_cmd_data_list_changed_registers)
7299 (mi_cmd_data_list_register_values)
7300 (get_register, mi_cmd_data_write_register_values)
7301 (mi_cmd_data_write_register_values)
7302 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7303 (mi_cmd_target_download, mi_cmd_target_select)
7304 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7305 (mi_execute_cli_command, mi_execute_async_cli_command)
7306 (mi_execute_async_cli_command): Ditto.
7307 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7308 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7309
6085fc2d
AC
7310 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7311 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7312 error_last_message instead of mi_error_last_message.
7313 * mi/mi-main.c (mi_error_last_message): Delete function.
7314
de169ec9
AC
7315 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7316 "invalid number of columns" error. Delete redundant "out of
7317 memory" check.
7318
1fc7d519
MK
73192004-05-31 Mark Kettenis <kettenis@gnu.org>
7320
6cfb2041
MK
7321 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7322 (gregset_t, fpregset_t): Remove typedefs.
7323 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7324 (REG_OFFSET): Rename argument.
7325 (i386bsd_r_reg_offset): Rename from reg_offset.
7326 (REG_ADDR): Remove macro.
7327 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7328 functions.
7329 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7330 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7331 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7332 instead of supply_gregset.
7333 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7334 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7335 instead of fill_gregset.
7336 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7337
1fc7d519
MK
7338 * i386bsd-nat.c: Don't include "gregset.h".
7339 (supply_gregset, fill_gregset): Make static.
7340 (supply_fpregset, fill_fpregset): Remove.
7341 * Makefile.in (i386bsd-nat.o): Update dependencies.
7342
2c34abbe
MK
73432004-05-30 Mark Kettenis <kettenis@gnu.org>
7344
448724fb
MK
7345 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7346 "gdb_assert.h". Con't include "gregset.h".
7347 (fbsd_make_corefile_notes): Use regset-based core file support
7348 instead off fill_gregset and fill_fpregset.
7349 * Makefile.in (fbsd-proc.o): Update dependencies.
7350
5ca8ca7c
MK
7351 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7352 instructions.
7353 (m88k_frame_prev_register): Simplify code a bit.
7354
593adc23
MK
7355 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7356 (amd64_collect_fpregset): New function.
7357 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7358
8d1b517b
MK
7359 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7360
7fdafb5a
MK
7361 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7362 (i386_collect_gregset): New function.
7363 (i386_supply_fpregset): Adjust comment.
7364 (i386_collect_fpregset): New function.
7365 (i386_regset_from_core_section): Use i386_collect_gregset and
7366 i386_collect_fpregset.
7367
8693c419
MK
7368 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7369 handle VALUEP being null.
7370
2c34abbe
MK
7371 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7372
45d134d8
MK
73732004-05-29 Mark Kettenis <kettenis@gnu.org>
7374
1698f4e7
MK
7375 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7376
45d134d8
MK
7377 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7378 assembler in OpenBSD 3.5-current.
7379 (amd64obsd_sigcontext_addr): Likewise.
7380
691d145a
JB
73812004-05-28 Jim Blandy <jimb@redhat.com>
7382
7383 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7384 register set, so our regcache isn't declared "legacy" and our E500
7385 pseudoregister read and write functions aren't ignored.
7386 (rs6000_register_byte, rs6000_register_raw_size,
7387 rs6000_register_virtual_type, rs6000_register_convertible,
7388 rs6000_register_convert_to_virtual,
7389 rs6000_register_convert_to_raw): Deleted.
7390 (rs6000_register_type, rs6000_convert_register_p,
7391 rs6000_register_to_value, rs6000_value_to_register): New
7392 functions.
7393 (rs6000_gdbarch_init): Don't register
7394 gdbarch_deprecated_register_size,
7395 gdbarch_deprecated_register_bytes,
7396 gdbarch_deprecated_register_byte,
7397 gdbarch_deprecated_register_raw_size,
7398 gdbarch_deprecated_register_virtual_type,
7399 gdbarch_deprecated_register_convertible,
7400 gdbarch_deprecated_register_convert_to_virtual, or
7401 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7402 register gdbarch_register_type, gdbarch_convert_register_p,
7403 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7404
18ed0c4e
JB
74052004-05-26 Jim Blandy <jimb@redhat.com>
7406
7407 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7408 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7409 functions, updated to match the register numberings used in GCC.
7410 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7411 rs6000_dwarf2_reg_to_regnum as register number conversions
7412 functions for STABS and Dwarf2.
7413
779af9e3
RC
74142004-05-26 Randolph Chung <tausq@debian.org>
7415
7416 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7417 in header file.
7418
c23968a2
JB
74192004-05-25 Joel Brobecker <brobecker@gnat.com>
7420
7421 * NEWS: Document new "start" command.
7422
3a7d1c27
RC
74232004-05-25 Randolph Chung <tausq@debian.org>
7424
7425 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7426 hppa-linux.
7427
43613416
RC
74282004-05-25 Randolph Chung <tausq@debian.org>
7429
7430 * hppa-hpux-tdep.c (offsetof): Define.
7431 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7432 (hppa32_hpux_frame_base_before_sigtramp)
7433 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7434 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7435 (hppa64_hpux_frame_base_before_sigtramp)
7436 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7437 functions.
7438 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7439 (hppa_hpux_sigtramp_frame_unwind_cache)
7440 (hppa_hpux_sigtramp_frame_this_id)
7441 (hppa_hpux_sigtramp_frame_prev_register)
7442 (hppa_hpux_sigtramp_frame_unwind)
7443 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7444 (hppa_hpux_init_abi): Register sigtramp unwinder.
7445 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7446
6d1be3f1
RC
74472004-05-25 Randolph Chung <tausq@debian.org>
7448
7449 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7450 and multiple stack unwinds.
7451 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7452
97c34f65
AC
74532004-05-25 Andrew Cagney <cagney@gnu.org>
7454
7455 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7456 * symfile-mem.h: Delete file.
7457 * symfile-mem.c: Do not include "symfile-mem.h".
7458 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7459 "struct bfd_section". When an error do not bother returning NULL.
7460 (add_symbol_file_from_memory_command): Use "struct bfd" and
7461 "struct bfd_section".
7462 * Makefile.in (symfile_mem_h): Delete.
7463 (symfile-mem.o): Update dependencies.
7464
e23cbd82
NR
74652004-05-25 Nick Roberts <nickrob@gnu.org>
7466
7467 * gdb-mi.el: New file.
7468
20d2ca3e
AC
74692004-05-25 Andrew Cagney <cagney@gnu.org>
7470
7471 * inftarg.c: Include "observer.h".
7472 (child_attach, child_create_inferior): Notify inferior_created.
7473 * corelow.c: Include "observer.h".
7474 (core_open): Notify inferior_created.
7475 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7476
c27cda74
AC
74772004-05-25 Andrew Cagney <cagney@gnu.org>
7478
7479 * target.h (struct target_ops): Add from_tty to
7480 to_create_inferior.
7481 (target_create_inferior, find_default_create_inferior): Update.
7482 * infcmd.c (run_command): Update.
7483 * wince.c (child_create_inferior): Update.
7484 * win32-nat.c (child_create_inferior): Update.
7485 * uw-thread.c (uw_thread_create_inferior): Update.
7486 * thread-db.c (thread_db_create_inferior): Update.
7487 * target.c (debug_to_create_inferior)
7488 (find_default_create_inferior): Update.
7489 (maybe_kill_then_create_inferior): Update.
7490 * sol-thread.c (sol_thread_create_inferior): Update.
7491 * remote.c (extended_remote_async_create_inferior)
7492 (extended_remote_create_inferior): Update.
7493 * remote-vx.c (vx_create_inferior): Update.
7494 * remote-st.c (st2000_create_inferior): Update.
7495 * remote-sim.c (gdbsim_create_inferior): Update.
7496 * remote-sds.c (sds_create_inferior): Update.
7497 * remote-rdp.c (remote_rdp_create_inferior): Update.
7498 * remote-rdi.c (arm_rdi_create_inferior): Update.
7499 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7500 * remote-e7000.c (e7000_create_inferior): Update.
7501 * procfs.c (procfs_create_inferior): Update.
7502 * ocd.c (ocd_create_inferior): Update.
7503 * ocd.h (ocd_create_inferior): Update.
7504 * nto-procfs.c (procfs_create_inferior): Update.
7505 * monitor.c (monitor_create_inferior): Update.
7506 * lin-lwp.c (lin_lwp_create_inferior): Update.
7507 * inftarg.c (child_create_inferior): Update.
7508 * hpux-thread.c (hpux_thread_create_inferior): Update.
7509 * gnu-nat.c (gnu_create_inferior): Update.
7510
1db2a798
AC
75112004-05-25 Andrew Cagney <cagney@gnu.com>
7512
7513 * MAINTAINERS: Update e-mail address.
7514
007d08bb
RC
75152004-05-24 Randolph Chung <tausq@debian.org>
7516
7517 * thread.c (info_threads_command, thread_apply_all_command)
7518 (thread_apply_command, thread_command, do_captured_thread_select):
7519 Remove HPUXHPPA-specific code.
7520
69e7b95e
RC
75212004-05-24 Randolph Chung <tausq@debian.org>
7522
7523 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7524 unused symbols.
7525 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7526 references.
7527
a4d5f2e0
JB
75282004-05-24 Joel Brobecker <brobecker@gnat.com>
7529
7530 * infcmd.c (kill_if_already_running): New function, extracted
7531 from run_command().
7532 (run_command): Replace extracted code by call to
7533 kill_if_already_running().
7534 (start_command): New function.
7535 (_initialize_infcmd): Add "start" command.
7536
bf2ca189
MK
75372004-05-24 Mark Kettenis <kettenis@gnu.org>
7538
7539 Add OpenBSD/m88k support.
7540 * NEWS (New native configurations): Mention OpenBSD/m88k.
7541 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7542 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7543 * Makefile.in (m88k_tdep_h): New variable.
7544 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7545 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7546 * configure.host: Add m88*-*-openbsd*.
7547 * configure.tgt: Add m88*-*-openbsd*.
7548
80fadb11
JB
75492004-05-24 Jim Blandy <jimb@redhat.com>
7550
7551 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7552 to approve changes.
7553
19e2d14b
KB
75542004-05-24 Kevin Buettner <kevinb@redhat.com>
7555
7556 * symtab.c (fixup_section): Search section table when lookup by
7557 name fails.
7558
1b07b470
RC
75592004-05-24 Randolph Chung <tausq@debian.org>
7560
7561 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7562 be "small_struct".
7563
368702b1
MK
75642004-05-24 Mark Kettenis <kettenis@gnu.org>
7565
5df97fde
MK
7566 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7567 register number in regcache_raw_collect call.
7568 (m68kbsd_collect_fpregset): Likewise.
7569 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7570
368702b1
MK
7571 * regset.h (struct regset): Add back `regset' member.
7572
a770d4ec
MK
75732004-05-23 Mark Kettenis <kettenis@gnu.org>
7574
70f9f479
MK
7575 * configure.in: Check for td_pcb in `struct thread'.
7576 * configure, config.in: Regenerated.
7577
2e16d79e
MK
7578 * dpx2-nat.c: Remove file.
7579 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7580 (dpx2-nat.o): Remove dependencies.
7581
492cf391
MK
7582 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7583 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7584 (amd64obsd_supply_pcb): New function.
7585 (_initialize_amd64obsd_nat): Enable libkvm interface.
7586 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7587 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7588 (LOADLIBES): New variable.
7589
a770d4ec
MK
7590 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7591 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7592 (sparc32nbsd_supply_pcb): New function.
7593 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7594 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7595 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7596 (LOADLIBES): New variable.
7597
9ea75c57
MK
75982004-05-22 Mark Kettenis <kettenis@gnu.org>
7599
2e0c3539
MK
7600 * bsd-kvm.c, bsd-kvm.h: New files.
7601 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7602 "bsd-kvm.h".
7603 (i386fbsd_supply_pcb): New function.
7604 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7605 (i386fbsd-nat.o): Update dependencies.
7606 (bsd_kvm_h): New variable.
7607 (bsd-kvm.o): New dependency.
7608 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7609 (LOADLIBES): New variable.
7610
9ea75c57
MK
7611 * regset.c: Tweak comment.
7612 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7613 macro.
7614 * regset.h: Update copyright year.
7615 (struct regset): Remove `descr' member, add `gdbarch' member.
7616 (regset_alloc): Adjust prototype and comment.
7617 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7618 (i386_supply_fpregset): Likewise.
7619 (i386_regset_from_core_section): Update call to regset_alloc.
7620 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7621 REGSET->arch.
7622 (i386obsd_aout_regset_from_core_section): Update call to
7623 regset_alloc.
7624 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7625 REGSET->arch.
7626 (i386nbsd_aout_regset_from_core_section): Update call to
7627 regset_alloc.
7628 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7629 REGSET->arch.
7630 (amd64_regset_from_core_section): Update call to regset_alloc.
7631 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7632 REGSET->arch.
7633 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7634 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7635 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7636 (sparc32nbsd_init_abi): Update call to regset_alloc.
7637 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7638 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7639 (sparc64obsd_init_abi): Update call to regset_alloc.
7640 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7641 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7642 (sparc64nbsd_init_abi): Update call to regset_alloc.
7643 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7644 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7645 (sparc64fbsd_init_abi): Update call to regset_alloc.
7646
867e2dc5
JB
76472004-05-22 Jim Blandy <jimb@redhat.com>
7648
7649 * ppc-tdep.h (spe_register_p): New declaration.
7650 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7651 ppc_spefscr_regnum.
7652 * rs6000-tdep.c (spe_register_p): New function.
7653 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7654 spefscr.
7655 (rs6000_gdbarch_init): Initialize the new members of the tdep
7656 structure.
7657
617a4cba
JB
76582004-05-21 Jim Blandy <jimb@redhat.com>
7659
0397dee1
JB
7660 * ppc-linux-nat.c (fetch_register): Move code back to be next
7661 to the comment that describes it. (Moved code, instead of
7662 comment, for symmetry with store_register.)
7663
617a4cba
JB
7664 Allocate regset structures in the gdbarch's obstack, not using
7665 xmalloc.
7666 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7667 Add 'arch' argument. Allocate the regset on arch's obstack, not
7668 using xmalloc.
7669 * regset.h (regset_alloc): Update declaration.
7670 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7671 gdbarch argument.
7672 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7673 * i386-tdep.c (i386_regset_from_core_section): Same.
7674 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7675 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7676 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7677 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7678 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7679 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7680
9aa3914d
JB
76812004-05-21 Joel Brobecker <brobecker@gnat.com>
7682
7683 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7684
99c87dab
JB
76852004-05-21 Jim Blandy <jimb@redhat.com>
7686
7687 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7688 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7689
c2b6b4aa
JB
76902004-05-20 Jim Blandy <jimb@redhat.com>
7691
7692 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7693
144529d0
MK
76942004-05-20 Mark Kettenis <kettenis@gnu.org>
7695
7696 * regset.h: Make prototype const-correct.
7697 * regset.c (regset_xmalloc): Make const-correct.
7698
4725b721
PH
76992004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7700
7701 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7702 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7703 (symbol_search_name): Declare.
7704
7705 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7706 (iter_name_next_hashed): Ditto.
7707 (iter_name_next_linear): Ditto.
7708 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7709
7710 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7711 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7712 (symbol_search_name): New function.
7713
7714 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7715
7716 * minsyms.c (build_minimal_symbol_hash_tables): Change
7717 test for adding to demangled hash table to check for difference
7718 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7719
be07a590
JB
77202004-05-19 Jim Blandy <jimb@redhat.com>
7721
7722 Use a constructor function to create regset structures.
7723 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7724 (struct regset): Use supply_regset_ftype. Add new
7725 'collect_regset' member.
7726 (regset_xmalloc): New declaration.
7727 * regset.c: New file.
7728 * am64-tdep.c (amd64_regset_from_core_section): Use
7729 regset_xmalloc to construct regset structures.
7730 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7731 * i386-tdep.c (i386_regset_from_core_section): Same.
7732 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7733 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7734 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7735 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7736 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7737 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7738 * Makefile.in (COMMON_OBS): Add regset.o.
7739 (regset.o): New rule.
7740
604368f5
JB
77412004-05-19 Joel Brobecker <brobecker@gnat.com>
7742
7743 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7744 and pthread_cond_wait.c.
7745
82d69f8b
JB
77462004-05-18 Jim Blandy <jimb@redhat.com>
7747
7748 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7749 before the mach-specific switch, and then let the individual cases
7750 override the defaults, rather than leaving them uninitialized
7751 until the switch and then setting them in each case.
7752
5859efe5
RC
77532004-05-18 Randolph Chung <tausq@debian.org>
7754
7755 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7756 millicode functions.
7757
9ca80cf8
RC
77582004-05-18 Randolph Chung <tausq@debian.org>
7759
7760 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7761 references to dld_flags_buffer consistent.
7762
ed70ba00
RC
77632004-05-18 Randolph Chung <tausq@debian.org>
7764
7765 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7766 it for unwinding the stack.
7767
63100632
RC
77682004-05-18 Randolph Chung <tausq@debian.org>
7769
7770 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7771 Undefine these so we can overide them using gdbarch.
7772
090ccbb7
RC
77732004-05-18 Randolph Chung <tausq@debian.org>
7774
7775 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7776 handling for 64-bit HPUX (elf).
7777
594706e6
DJ
77782004-05-18 Daniel Jacobowitz <dan@debian.org>
7779
7780 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7781 constants.
7782 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7783 * ia64-tdep.c (examine_prologue): Likewise.
7784 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7785 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7786
e5483145
MK
77872004-05-18 Mark Kettenis <kettenis@gnu.org>
7788
7789 * vax-tdep.c (vax_return_value): Implement
7790 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7791
caed1a45
MK
77922004-05-17 Mark Kettenis <kettenis@gnu.org>
7793
7794 * vax-tdep.c (vax_return_value): Fix typo.
7795
3c0b7db2
AC
77962004-05-17 Andrew Cagney <cagney@redhat.com>
7797
5aae53e5
AC
7798 * MAINTAINERS: Mark Salter was also responsible for
7799 testsuite/config/
7800
3c0b7db2
AC
7801 * NEWS: Mention signal fixes.
7802
22b0923d
RC
78032004-05-17 Randolph Chung <tausq@debian.org>
7804
7805 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7806 check to see if we are unwinding an export stub. Export stubs clobber
7807 the %rp in the call path and stores the original rp in a stack slot.
7808
22f2b2f3
JB
78092004-05-17 Jim Blandy <jimb@redhat.com>
7810
7811 * MAINTAINERS: Update address for J.T. Conklin.
7812
cea96d64
RC
78132004-05-17 Randolph Chung <tausq@debian.org>
7814
7815 * hppa-tdep.c: Remove superfluous #include's.
7816 * Makefile.in (hppa-tdep.o): Update dependencies.
7817
f08f6a4a
RC
78182004-05-17 Randolph Chung <tausq@debian.org>
7819
7820 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7821 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7822 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7823 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7824 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7825 Remove static function declarations.
7826
51da707a
MK
78272004-05-17 Mark Kettenis <kettenis@gnu.org>
7828
caed1a45
MK
7829 * alphabsd-nat.c: Update copyright year.
7830 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7831
c0c2b0db
MK
7832 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7833 and M68K_A2_REGNUM.
7834
51da707a
MK
7835 * m68k-tdep.c (m68k_svr4_return_value): Implement
7836 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7837
8d027a04
MK
78382004-05-16 Mark Kettenis <kettenis@gnu.org>
7839
7840 * sol-thread.c Update copyright year. Fix various coding
7841 standards violations. Tweak a few comments.
7842 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7843 Delete prototypes.
7844
0d99fdb9
RC
78452004-05-15 Randolph Chung <tausq@debian.org>
7846
7847 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7848 as pointer instead of array reference since HPUX compiler does
7849 not accept unsized array arguments.
7850 * somsolib.c (dld_flags_buffer): Use constant array size.
7851
f7e3843a
MK
78522004-05-15 Mark Kettenis <kettenis@gnu.org>
7853
0fe85704
MK
7854 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7855 offset with decimal offset.
7856 (amd64obsd_sigcontext_addr): Return correct address for entire
7857 signal trampoline.
7858
a54f9a00
MK
7859 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7860 instead of get_frame_base.
7861
feae6502
MK
7862 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7863 (fill_gregset): Use regcache_raw_collect.
7864
0382d099
MK
7865 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7866 ppcobsd-tdep.c.
7867
f7e3843a
MK
7868 * config/sparc/tm-nbsd64.h: Remove file.
7869 * config/tm-sunos.h: Remove file.
7870
773df3e5
JB
78712004-05-15 Joel Brobecker <brobecker@gnat.com>
7872
7873 * rs6000-tdep.c (store_param_on_stack_p): New function,
7874 an improved version of some code extracted from skip_prologue().
7875 (skip_prologue): Use store_param_on_stack_p() to detect
7876 instructions saving a parameter on the stack. Detect when r0
7877 is used to save a parameter.
7878 Do not mark "li rx, SIMM" instructions as part of the prologue,
7879 unless the following instruction is also part of the prologue.
7880
95918acb
AC
78812004-05-14 Andrew Cagney <cagney@redhat.com>
7882
06f32659
AC
7883 * infrun.c (handle_inferior_event): Simplify
7884 STEP_OVER_UNDEBUGGABLE.
7885
95918acb
AC
7886 * infrun.c (handle_step_into_function): Delete function.
7887 (handle_inferior_event): Inline calls to
7888 handle_step_into_function.
7889
40711ff1 78902004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7891
7892 * rs6000-nat.c: Fix a comment.
7893
02f60eae
JB
78942004-05-12 David Anderson <davea@sgi.com>
7895
7896 Committed by Jim Blandy <jimb@redhat.com>:
7897 * regcache.c (struct regcache_descr): fix comment spelling.
7898
552e377b
JB
78992004-05-13 J. Brobecker <brobecker@gnat.com>
7900
7901 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7902 Fixes a link link failure.
7903
349766b2
JB
79042004-05-13 J. Brobecker <brobecker@gnat.com>
7905
7906 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7907 error that was causing the build to fail.
7908
0d4d5484
JB
79092004-05-13 J. Brobecker <brobecker@gnat.com>
7910
7911 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7912 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7913
0b30808c
AC
79142004-05-13 Andrew Cagney <cagney@redhat.com>
7915
7916 * infrun.c (handle_inferior_event): Check for
7917 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7918 calls. Update comments.
7919
cdf2c5f5
JB
79202004-05-13 Jim Blandy <jimb@redhat.com>
7921
063715bf
JB
7922 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7923 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7924 (store_regs_user_thread, store_regs_kernel_thread): Use
7925 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7926 * ppc-linux-nat.c (fill_gregset): Same.
7927 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7928 (ppc_linux_sigtramp_cache): Same.
7929 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7930 (ppcnbsd_sigtramp_cache_init): Same.
7931 * rs6000-nat.c (fetch_core_registers): Same.
7932 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7933 (rs6000_frame_cache): Same.
7934
cdf2c5f5
JB
7935 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7936 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7937 of assuming that the gprs are numbered starting with zero.
7938 * ppc-linux-nat.c (fill_gregset): Same.
7939 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7940 * ppcnbsd-nat.c (getregs_supplies): Same.
7941 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7942 * rs6000-nat.c (fetch_core_registers): Same.
7943 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7944
450bd37b
MS
79452004-05-07 Michael Snyder <msnyder@redhat.com>
7946
7947 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7948 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7949
4a72a2a6
AC
79502004-05-13 Andrew Cagney <cagney@redhat.com>
7951
7952 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7953
8edfa926
BM
79542004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7955
7956 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7957 base_address for shared libraries.
7958
723e0e3d
BM
79592004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7960
7961 * MAINTAINERS (write after approval): Add myself.
7962
00d4360e
UW
79632004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7964
7965 * breakpoint.c (bpstat_stop_status): Add new argument
7966 STOPPED_BY_WATCHPOINT. Use it instead of testing
7967 target_stopped_data_address agaist 0 to check whether
7968 or not we stopped due to a hardware watchpoint.
7969 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7970 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7971 with new argument.
7972
ec76baa5
JB
79732004-05-12 Jim Blandy <jimb@redhat.com>
7974
7975 * configure.in: When checking whether we should use the -bbigtoc
7976 option, don't forget to restore the original value of LDFLAGS.
7977 * configure: Regenerated.
7978
f2c9ca08
AC
79792004-05-12 Andrew Cagney <cagney@redhat.com>
7980
7981 * thread.c (load_infrun_state): Delete step_sp.
7982 * infrun.c (context_switch): Ditto.
7983 * inferior.h (step_sp): Ditto.
7984 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7985 * gdbthread.h (struct thread_info, save_infrun_state)
7986 (restore_infrun_state): Ditto.
7987
090ddb2a
UW
79882004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7989
7990 * MAINTAINERS (write after approval): Add myself.
7991
8aad930b
AC
79922004-05-12 Andrew Cagney <cagney@redhat.com>
7993
7994 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7995 eliminate reference to step_sp.
7996 (struct execution_control_state, init_execution_control_state)
7997 (handle_inferior_event, keep_going): Delete update_step_sp and
7998 step_sp.
7999 * infcmd.c (step_sp): Note that variable is unused.
8000
922d5ae0
AC
80012004-05-11 Andrew Cagney <cagney@redhat.com>
8002
8003 * infrun.c (step_over_function): Delete function.
8004 (handle_step_into_function): Use insert_step_resume_breakpoint.
8005 (insert_step_resume_breakpoint): Fix assertion.
8006
017c5ca5
NR
80072004-05-11 Nick Roberts <nickrob@gnu.org>
8008
8009 * utils.c (defaulted_query): Just use the normal query input type
8010 when printing the annotations.
8011
42edda50
AC
80122004-05-11 Andrew Cagney <cagney@redhat.com>
8013
8014 * infrun.c (handle_inferior_event): Simplify code handling
8015 step-into or return-from a signal trampoline.
8016
d28b44a7
AC
80172004-05-11 Andrew Cagney <cagney@redhat.com>
8018
8019 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8020 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8021
383f0f5b
JB
80222004-05-10 Jim Blandy <jimb@redhat.com>
8023
d0b57c3a
JB
8024 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8025 with a call to internal_error.
8026
383f0f5b
JB
8027 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8028 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8029 processor variant lacks those registers.
8030 (ppc_floating_point_unit_p): Change description to make it clear
8031 that this returns info about the ISA, not the ABI.
8032 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8033 return true or false by checking tdep->ppc_fp0_regnum and
8034 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8035 arch/mach switching done in rs6000_gdbarch_init; it's better to
8036 keep that logic there, and just check the results here.
8037 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8038 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8039 floating-point registers.
8040 (ppc_supply_fpregset, ppc_collect_fpregset)
8041 (rs6000_push_dummy_call, rs6000_extract_return_value)
8042 (rs6000_store_return_value): Assert that we have floating-point
8043 registers.
8044 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8045 (rs6000_frame_cache): Don't note the locations at which
8046 floating-point registers were saved if we have no fprs.
8047 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8048 registers.
8049 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8050 (store_regs_user_thread, store_regs_kernel_thread): Only call
8051 supply_fprs / fill_fprs if we actually have floating-point
8052 registers.
8053 (special_register_p): Check ppc_fpscr_regnum before matching
8054 against it.
8055 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8056 supply / collect fpscr if we don't have it.
8057 * ppc-bdm.c: #include "gdb_assert.h".
8058 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8059 have floating-point registers, since I can't test this code on
8060 FP-free systems to adapt it.
8061 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8062 fpscr and floating point register numbers if they don't exist.
8063 (fetch_register): Assert that we have floating-point registers
8064 before we reach the code that handles them.
8065 (store_register): Same. And use tdep instead of calling
8066 gdbarch_tdep again.
8067 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8068 don't have them.
8069 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8070 fprs and fpscr if we don't have them.
8071 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8072 don't have them.
8073 * ppcnbsd-nat.c: #include "gdb_assert.h".
8074 (getfpregs_supplies): Assert that we have floating-point registers.
8075 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8076 * ppcobsd-tdep.c: #include "gdb_assert.h".
8077 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8078 have floating-point registers.
8079 * rs6000-nat.c (regmap): Don't match against the fpscr and
8080 floating point register numbers if they don't exist.
8081 (fetch_inferior_registers, store_inferior_registers,
8082 fetch_core_registers): Only fetch / store / supply the
8083 floating-point registers and the fpscr if we have them.
8084 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8085 (ppcobsd-tdep.o): Update dependencies.
8086
15960608
AC
80872004-05-10 Andrew Cagney <cagney@redhat.com>
8088
8089 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8090 (context_switch): Do not switch through_sigtramp_breakpoint.
8091 * gdbthread.h (save_infrun_state, load_infrun_state)
8092 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8093 and structure member.
8094 * thread.c (load_infrun_state, save_infrun_state): Update.
8095
5ab5aa0f
MK
80962004-05-10 Mark Kettenis <kettenis@gnu.org>
8097
8098 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8099
da78b0e7
DJ
81002004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8101
8102 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8103 throughout.
8104 * aclocal.m4: Regenerate.
8105
cca0d3b0
NW
81062004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8107
8108 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8109
d303a6c7
AC
81102004-05-10 Andrew Cagney <cagney@redhat.com>
8111
8112 * infrun.c (check_sigtramp2): Delete function.
8113 (handle_inferior_event): When single stepping, and taking a
8114 signal, set a breakpoint at the signal return address. Delete
8115 redundant calls to check_sigtramp2.
8116 (insert_step_resume_breakpoint): New function.
8117 (through_sigtramp_breakpoint, handle_inferior_event)
8118 (follow_exec, wait_for_inferior, fetch_inferior_event)
8119 (currently_stepping, keep_going): Delete most uses of
8120 through_sigtramp_breakpoint, not that it should be deleted.
8121 (delete_breakpoint_current_contents): Delete function.
8122
03f4cc20
RC
81232004-05-10 Randolph Chung <tausq@debian.org>
8124
8125 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8126 target.
8127 * config/pa/tm-linux.h: New file.
8128
37fc812e
DJ
81292004-05-10 Daniel Jacobowitz <drow@mvista.com>
8130
8131 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8132 of prefixes. Don't print the prefix twice in the CLI.
8133
26c0b942
JB
81342004-05-10 Jim Blandy <jimb@redhat.com>
8135
2e56e9c1
JB
8136 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8137 collect all the gprs.
8138
26c0b942
JB
8139 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8140 loop collecting gprs.
8141
dc497459
AC
81422004-05-09 Andrew Cagney <cagney@redhat.com>
8143
8144 * remote-vx.c (net_step): Delete step-range code.
8145 * remote.c (remote_resume, init_all_packet_configs)
8146 (set_remote_protocol_E_packet_cmd)
8147 (show_remote_protocol_E_packet_cmd)
8148 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8149 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8150 (show_remote_protocol_e_packet_cmd): Ditto.
8151
0543f387
MK
81522004-05-09 Mark Kettenis <kettenis@gnu.org>
8153
c481d1ca
MK
8154 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8155
f626a069
MK
8156 * hppa-tdep.h: Update copyright year.
8157 (struct trad_frame_saved_reg): Add opaque declaration.
8158
6fa57a7d
MK
8159 * amd64-tdep.c (amd64_return_value): Implement
8160 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8161
e47577ab
MK
8162 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8163 (m68k_value_to_register): New functions.
8164 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8165 value_to_register.
8166
31db7b6c
MK
8167 * defs.h (enum return_value_convention): Add
8168 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8169 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8170 * infcmd.c (legacy_return_value): New function.
8171 (print_return_value): Rwerite to implement
8172 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8173 * values.c (using_struct_return): Check for inequality to
8174 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8175 RETURN_VALUE_STRUCT_CONVENTION.
8176 * i386-tdep.c (i386_return_value): Implement
8177 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8178
0543f387
MK
8179 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8180 include "symtab.h", "opcode/vax.h" and "inferior.h".
8181 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8182 to read_memory_unsigned_integer.
8183 (vax_gdbarch_init): Reorder.
8184 (_initialize_vax_tdep): Spell out prototype.
8185 * Makefile.in (vax-tdep.o): Update dependencies.
8186
0c93b7b6
AC
81872004-05-08 Andrew Cagney <cagney@redhat.com>
8188
e6b55ae2
AC
8189 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8190 * target.c (target_detach, target_disconnect): Ditto.
8191
1ac839b8
AC
8192 * infcall.c (call_function_by_hand): When no
8193 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8194 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8195 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8196 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8197 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8198
28954179
AC
8199 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8200 * gdbarch.h, gdbarch.c: Re-generate.
8201 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8202 deprecated_fix_call_dummy.
8203 * v850-tdep.c (v850_gdbarch_init): Ditto.
8204 * infcall.c (call_function_by_hand): Do not call
8205 DEPRECATED_FIX_CALL_DUMMY.
8206
434b87dd
AC
8207 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8208 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8209 * gdbarch.h, gdbarch.c: Re-generate.
8210 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8211 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8212 deprecated_sizeof_call_dummy_words.
8213 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8215 * v850-tdep.c (v850_gdbarch_init): Ditto.
8216 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8217 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8218 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8220 * arch-utils.h (legacy_call_dummy_words)
8221 (legacy_sizeof_call_dummy_words): Delete declarations.
8222 * arch-utils.c (legacy_call_dummy_words)
8223 (legacy_sizeof_call_dummy_words): Delete variables.
8224
58d28df8
AC
8225 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8226 * gdbarch.h, gdbarch.c: Re-generate.
8227 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8228 * infcall.c (call_function_by_hand): Eliminate call to
8229 DEPRECATED_PUSH_DUMMY_FRAME.
8230 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8231 push_dummy_frame.
8232 (ns32k_push_dummy_frame): Delete function.
8233
e4a2df64
AC
8234 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8235 deprecated_call_dummy_breakpoint_offset or
8236 deprecated_call_dummy_start_offset.
8237 * dummy-frame.c, arm-tdep.c: Update comments.
8238 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8239 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8240 * gdbarch.h, gdbarch.c: Re-generate.
8241
d3712828
AC
8242 * infcall.c (legacy_push_dummy_code): Delete function.
8243 (push_dummy_code): Delete call.
8244
7a882905
AC
8245 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8246 * gdbarch.h, gdbarch.c: Re-generate.
8247 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8248 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8249 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8250 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8251
0ec5872b
AC
8252 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8253 (struct frame_info): Delete opaque declaration.
8254 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8255 * frame.c (get_frame_type): Delete call.
8256
0c93b7b6
AC
8257 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8258 pc_in_call_dummy.
8259 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8260 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8261
75536971
MK
82622004-05-08 Mark Kettenis <kettenis@gnu.org>
8263
527ca6bb
MK
8264 * alphanbsd-tdep.c: Include "gdb_string.h".
8265 * armnbsd-tdep.c: Update copyright year.
8266 Include "gdb_string.h".
8267 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8268 dependencies.
8269
d39fdc61
MK
8270 * delta68-nat.c: Remove file.
8271 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8272 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8273 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8274 (delta68-nat.o): Remove dependency.
8275
75536971
MK
8276 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8277 function.
8278 (m68k_gdbarch_init): Don't set
8279 deprecated_frameless_function_invocation.
8280
f4ca1d1f
RC
82812004-05-07 Randolph Chung <tausq@debian.org>
8282
8283 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8284 read_memory_nobpt for code reading when doing frame unwinding.
8285 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8286
2f0e8c7a
RC
82872004-05-07 Randolph Chung <tausq@debian.org>
8288
8289 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8290 instead of sp, handle sigaltstack case.
8291 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8292 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8293 signal handler and not that of the caller.
8294 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8295 hppa_linux_sigtramp_find_sigcontext.
8296
959464ff
RC
82972004-05-07 Randolph Chung <tausq@debian.org>
8298
8299 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8300 hppa-linux-nat.c.
8301 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8302 * hppa-linux-nat.c (fetch_register, store_register): Define.
8303 (fetch_inferior_registers, store_inferior_registers): Define.
8304 (supply_gregset): Add comment and clean up some unneeded code.
8305 (fill_gregset): Add comment and fix so that it saves registers in
8306 the right place in the gregset.
8307 (fill_fpregset): Fix buffer overrun problem.
8308 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8309
0da28f8a
RC
83102004-05-07 Randolph Chung <tausq@debian.org>
8311
8312 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8313 do common handling of the pcoqt register.
8314 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8315 to use helper function.
8316 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8317 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8318 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8319 generic fallback unwinder when all else fails.
8320 (hppa_gdbarch_init): Add fallback sniffer.
8321 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8322 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8323 to use helper function.
8324
b9ec757a
JB
83252004-05-08 Joel Brobecker <brobecker@gnat.com>
8326
8327 * config/djgpp/fnchange.lst: Add translation rules for
8328 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8329
756e95f1
MK
83302004-05-08 Mark Kettenis <kettenis@gnu.org>
8331
8332 * frame.c (get_prev_frame_1): Work around GCC bug.
8333 * frame.h: Add comment about GCC bug.
8334
2b4855ab
AC
83352004-05-07 Andrew Cagney <cagney@redhat.com>
8336
8337 * observer.c: Include "commands.h" and "gdbcmd.h".
8338 (observer_debug, _initialize_observer): Add the
8339 command "set/show debug observer".
8340 * observer.sh: When observer debugging, log notify calls.
8341 * Makefile.in (observer.o): Update dependencies.
8342
ba3e8e46
JM
83432004-05-07 Jason Molenda (jmolenda@apple.com)
8344
8345 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8346
16796152
JB
83472004-05-07 Jim Blandy <jimb@redhat.com>
8348
daf6dc85
JB
8349 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8350 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8351 to recognize gpr regnums, instead of assuming that
8352 tdep->ppc_fp0_regnum marks the end of the general-purpose
8353 registers.
8354
16796152
JB
8355 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8356 the given architecture has floating-point registers.
8357
c69b8bfc
AC
83582004-05-07 Andrew Cagney <cagney@redhat.com>
8359
8360 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8361 macro defined to 1.
8362 * gdbarch.h, gdbarch.c: Re-generate.
8363 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8364 deprecated_use_generic_dummy_frames.
8365
7243600a
BF
83662004-05-07 Brian Ford <ford@vss.fsi.com>
8367
8368 * NEWS: Mention Cygwin DWARF 2 support.
8369
73c1e0a1
AC
83702004-05-07 Andrew Cagney <cagney@redhat.com>
8371
8372 * objfiles.h (struct entry_info): Delete unused fields
8373 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8374 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8375 * mipsread.c (mipscoff_symfile_read): Update.
8376 * mdebugread.c (parse_partial_symbols): Update.
8377 * dwarfread.c (read_file_scope): Update.
8378 * dwarf2read.c (read_file_scope): Update.
8379 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8380 * coffread.c (complete_symtab): Update.
8381
1d3056ac
MK
83822004-05-07 Mark Kettenis <kettenis@gnu.org>
8383
8384 * infcall.c (_initialize_infcall): Fix typo.
8385
15170568
AC
83862004-05-07 Andrew Cagney <cagney@redhat.com>
8387
8388 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8389 * command.h (add_setshow_zinteger_cmd): Declare.
8390
34f75cc1
RC
83912004-05-06 Randolph Chung <tausq@debian.org>
8392
8393 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8394 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8395 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8396 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8397 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8398 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8399 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8400 definitions ...
8401 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8402 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8403 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8404 (hppa64_hpux_frame_find_saved_regs_in_sig)
8405 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8406 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8407 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8408 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8409 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8410 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8411 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8412 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8413 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8414 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8415 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8416 (hppa32_register_type, hppa_cannot_store_register)
8417 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8418 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8419 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8420 * pa64solib.c (pa64_solib_have_load_event)
8421 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8422 (pa64_solib_unloaded_library_pathname): Likewise.
8423 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8424 (som_solib_library_pathname): Likewise.
8425
0a5e7efe
JI
84262004-05-05 Jim Ingham <jingham@apple.com>
8427
8428 * breakpoint.c (create_breakpoints): Copy the ignore count and
8429 thread id over from the pended breakpoint to the actual
8430 breakpoint.
8431
10a4b113
AC
84322004-05-05 Andrew Cagney <cagney@redhat.com>
8433
8434 * gdbarch.sh (PARM_BOUNDARY): Delete.
8435 gdbarch.h, gdbarch.c: Re-generate.
8436 * valops.c (PARM_BOUNDARY): Delete macro.
8437 (value_push): Delete PARM_BOUNDARY code.
8438 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8439
366f009f
JB
84402004-05-04 Jim Blandy <jimb@redhat.com>
8441
32b99774
JB
8442 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8443 Don't assume that the gprs, fprs, and UISA sprs are
8444 contiguous, start at register number zero, and end with fpscr.
8445 Instead, use the numbers from the tdep structure.
8446
366f009f
JB
8447 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8448 should no longer be used in code specific to the RS6000 and its
8449 derivatives.
8450 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8451 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8452 tdep->ppc_fp0_regnum.
8453 (ppc_supply_fpregset, ppc_collect_fpregset)
8454 (rs6000_push_dummy_call, rs6000_extract_return_value)
8455 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8456 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8457 FP0_REGNUM.
8458 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8459 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8460 Same.
8461 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8462 bdm_ppc_store_registers): Same.
8463 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8464 (store_register, fill_fpregset): Same.
8465 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8466 (ppc_linux_supply_fpregset): Same.
8467 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8468 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8469 Same.
8470 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8471 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8472 ppc64_sysv_abi_return_value): Same.
8473 * rs6000-nat.c (regmap, fetch_inferior_registers)
8474 (store_inferior_registers, fetch_core_registers): Same.
8475
827f338d
MK
84762004-05-01 Mark Kettenis <kettenis@gnu.org>
8477
8478 * m68knbsd-nat.c: Remove file.
8479 * m68knbsd-tdep.c: Remove file.
8480 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8481 dependencies.
8482 * configure.host: Add m68k-*-netbsdelf*.
8483 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8484 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8485 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8486 (XM_FILE): Remove.
8487 * config/m68k/nbsdelf.mh: New file.
8488 * config/m68k/nbsd.mt: New file.
8489 * config/m68k/nbsdaout.mt: Remove file.
8490 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8491 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8492 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8493 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8494 (use_struct_convention): Remove prototype.
8495 (USE_STRUCT_CONVENTION): Remove define.
8496 * config/m68k/xm-nbsd.h: Remove file.
8497
66894781
MS
84982004-05-04 Michael Snyder <msnyder@redhat.com>
8499
8500 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8501 reg_struct_return method (as gcc usually does for cross targets).
8502
f0f63663
AC
85032004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8504
8505 Committed by Andrew Cagney.
8506 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8507 alignment padding when accessing ucontext struct members.
8508
edf61169
JB
85092004-05-04 Jim Blandy <jimb@redhat.com>
8510
8bf659e8
JB
8511 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8512 'ppc_gplast_regnum' member.
8513 (ppc_num_gprs): New enum constant.
8514 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8515 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8516 * rs6000-nat.c (regmap, fetch_inferior_registers,
8517 store_inferior_registers): Same.
8518 * rs6000-tdep.c (e500_pseudo_register_read)
8519 (e500_pseudo_register_write): Same.
8520 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8521
b967e06f
JB
8522 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8523 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8524 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8525 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8526 FPLAST_REGNUM.
8527 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8528 Same.
8529 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8530 * rs6000-nat.c (regmap, fetch_inferior_registers)
8531 (store_inferior_registers): Same.
8532
edf61169
JB
8533 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8534 with FPLAST_REGNUM.
8535
58a9656e
JB
85362004-05-03 Joel Brobecker <brobecker@gnat.com>
8537
8538 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8539 failure detected by recent versions of GCC.
8540 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8541 to be consistent with the usage in dwarf2_create_include_psymtab.
8542
dc305454
MS
85432004-05-03 Michael Snyder <msnyder@redhat.com>
8544
8545 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8546 (heuristic_proc_start): Whitespace cleanup.
8547
29972665
MK
85482004-05-04 Mark Kettenis <kettenis@gnu.org>
8549
6b57680d
MK
8550 * sun3-nat.c: Remove file.
8551 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8552 dependencies.
8553 (ALLDEPFILES): Remove sun3-nat.c.
8554 (sun3-nat.o): Remove dependencies.
8555
29972665
MK
8556 * i386-interix-nat.c, i386-interix-tdep.c,
8557 config/i386/nm-interix.h, config/i386/interix.mh,
8558 config/i386/interix.mt: Remove files.
8559 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8560 dependencies.
8561
f595cb19
MK
85622004-05-03 Mark Kettenis <kettenis@gnu.org>
8563
8564 * m68k-tdep.h (struct gdbarch_tdep): Add member
8565 struct_value_regnum.
8566 (m68k_svr4_init_abi): New prototype.
8567 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8568 different calling conventions.
8569 (m68k_extract_return_value): Remove code dealing with single-field
8570 structs.
8571 (m68k_store_return_value): Remove code dealing with single-field
8572 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8573 (m68k_extract_struct_value_address): Remove function.
8574 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8575 (m68k_reg_struct_return_p, m68k_return_value)
8576 (m68k_svr4_return_value): New functions.
8577 (m68k_use_struct_convention): Remove function.
8578 (m68k_push_dummy_call): Use new struct_value_regnum member of
8579 `struct gdbarch_tdep' instead of hardcoded register number to
8580 store STRUCT_ADDR.
8581 (m68k_svr4_init_abi): New function.
8582 (m68k_gdbarch_init): Don't set extract_return_value,
8583 store_return_values, deprecated_extract_struct_value_address and
8584 use_struct_convention. Set return_value instead. Initialize new
8585 struct_value_regnum member of `struct gdbarch_tdep'.
8586 * m68klinux-tdep.c: Update copyright year.
8587 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8588 (m68k_linux_extract_struct_value_address): Remove function.
8589 (m68k_linux_init_abi): Don't set extract_return_value,
8590 store_return_values, deprecated_extract_struct_value_address and
8591 use_struct_convention. Call m68k_svr4_init_abi but override the
8592 new struct_value_regnum member of `struct gdbarch_tdep'.
8593 * Makefile.in (m68k-tdep.o): Update dependencies.
8594
aaa75496
JB
85952004-05-03 J. Brobecker <brobecker@gnat.com>
8596
8597 * dwarf2read.c (line_header): Add new included_p field in
8598 field file_names.
8599 (partial_die_info): New field has_stmt_list. New field line_offset.
8600 (dwarf2_create_include_psymtab): New function.
8601 (dwarf2_build_include_psymtabs): New function.
8602 (add_file_name): Add forward declaration. Initialize new field.
8603 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8604 to be able to determine the list of files included by the
8605 given unit, and build their associated psymtabs.
8606 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8607 files as well.
8608 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8609 (read_file_scope): Update call to dwarf_decode_lines.
8610 (read_partial_die): Handle DW_AT_stmt_list attributes.
8611
c848556f
MC
86122004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8613
8614 Unfix PR gdb/1626.
8615 * configure.in: Revert special case for osf5.*.
8616 * configure: Regenerate.
8617
eb4556d7
JB
86182004-05-02 Jim Blandy <jimb@redhat.com>
8619
8620 Move the symbol-file-from-memory functions into their own file.
8621 * symfile-mem.c, symfile-mem.h: New files.
8622 * symfile.c (symbol_file_add_from_bfd): New function.
8623 (symbol_file_add): Call symbol_file_add_from_bfd.
8624 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8625 Moved to symfile-mem.c.
8626 (_initialize_symfile): Move definition of
8627 add-symbol-file-from-memory command to symfile-mem.c.
8628 * symfile.h (symbol_file_add_from_bfd): New declaration.
8629 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8630 * config/powerpc/linux.mt (TDEPFILES): Same.
8631 * Makefile.in (SFILES): Add symfile-mem.c.
8632 (symfile_mem_h): New variable.
8633 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8634 (symfile-mem.o): New rule.
8635
80bb239e
AC
86362004-05-01 Andrew Cagney <cagney@redhat.com>
8637
7789d0fa
AC
8638 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8639 frame_find_by_id instead of frame_relative_level.
8640 (do_enable_breakpoint): Ditto.
8641 * thread.c: Update copyright.
8642 (info_threads_command): Ditto, simplify.
8643
80bb239e
AC
8644 * frame.c (deprecated_generic_get_saved_register): Delete
8645 function, moved to "xstormy16-tdep.c".
8646 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8647 deprecated_generic_get_saved_register from "frame.c".
8648 (xstormy16_frame_saved_register): Call
8649 xstormy16_get_saved_register.
8650 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8651 static.
8652 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8653 * frame.h (deprecated_generic_get_saved_register): Delete.
8654
b2a871dd
MC
86552004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8656
8657 * dwarfread.c: Update documentation on the state of dwarf-1.
8658
0e100dab
AC
86592004-05-01 Andrew Cagney <cagney@redhat.com>
8660
acd8056e
AC
8661 * stack.c (select_frame_command): Delete call to
8662 frame_relative_level.
8663 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8664 Delete #if0 code.
8665 (frame_info): Do not print FRAMELESS.
8666 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8667 (catch_info): Delete #if0 code.
8668
0e100dab
AC
8669 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8670 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8671 of frame_relative_level.
8672 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8673 to SENTINEL_FRAME.
8674 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8675 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8676 frame_relative_level.
8677
55699d59
AC
8678 * frame.h (deprecated_set_frame_type): Delete declaration.
8679 * frame.c (deprecated_set_frame_type): Delete function, update
8680 comments.
8681
fcf70625
AC
8682 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8683 * gdbarch.h, gdbarch.c: Re-generate.
8684 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8685 (shnbsd_pc_in_sigtramp): Delete.
8686 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8687 pc_in_sigtramp.
8688 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8689 pc_in_sigtramp.
8690 * frame.h: Update comments.
8691 * ppc-linux-tdep.c: Update comments.
8692 * breakpoint.c (bpstat_what): Update comments.
8693
ac5eccb7
AC
8694 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8695 m68klinux-tdep.o's dependencies, were previously added to
8696 m68klinux-nat.o.
8697
f2524b93
AC
8698 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8699 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8700 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8701 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8702 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8703
17e20bce
AC
8704 * Makefile.in (m68klinux-nat.o): Update dependencies.
8705 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8706 (m68k_linux_sigtramp_frame_cache)
8707 (m68k_linux_sigtramp_frame_this_id)
8708 (m68k_linux_sigtramp_frame_prev_register)
8709 (m68k_linux_sigtramp_frame_unwind)
8710 (m68k_linux_sigtramp_frame_sniffer)
8711 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8712 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8713 names, use trad-frame.h.
8714 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8715 (struct m68k_sigtramp_info): Delete.
8716 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8717 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8718 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8719 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8720 "m68klinux-tdep.c".
8721
c8864fa2
AC
8722 * infrun.c (check_sigtramp2): Delete check for
8723 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8724
511dd2cd
MK
87252004-05-01 Mark Kettenis <kettenis@gnu.org>
8726
8727 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8728
8c6b0e06
AC
87292004-05-01 Andrew Cagney <cagney@redhat.com>
8730
9df0bb3f
AC
8731 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8732 (frv_linux_sigtramp_frame_cache)
8733 (frv_linux_sigtramp_frame_this_id)
8734 (frv_linux_sigtramp_frame_prev_register)
8735 (frv_linux_sigtramp_frame_unwind)
8736 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8737 include "linux" in function and variable names, directly call
8738 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8739 the latest trad-frame code.
8740 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8741 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8742 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8743 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8744 * frv-tdep.c (frv_sigtramp_frame_cache)
8745 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8746 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8747 frv-linux-tdep.c.
8748 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8749 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8750 (frv_set_sigcontext_reg_addr): Delete function.
8751
8c6b0e06
AC
8752 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8753 (DEPRECATED_SIGTRAMP_END): Delete.
8754 * gdbarch.h, gdbarch.c: Re-generate.
8755 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8756 * config/vax/tm-vaxbsd.h: Update copyright.
8757 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8758 (DEPRECATED_IN_SIGTRAMP): Define.
8759 * config/m68k/tm-nbsd.h: Update copyright.
8760 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8761 (DEPRECATED_IN_SIGTRAMP): Define.
8762
50ea7769
MK
87632004-05-01 Mark Kettenis <kettenis@gnu.org>
8764
03ac2a74
MK
8765 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8766 encondings. Fixes PR gdb/1628.
8767
50ea7769
MK
8768 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8769 DW_CFA_restore state without a matching DW_CFA_remember_state
8770 instead of aborting. Fixes PR backtrace/1589.
8771
9a5d7be1
JB
87722004-04-30 Joel Brobecker <brobecker@gnat.com>
8773
8774 * MAINTAINERS: Add self as AIX maintainer.
8775 Update my e-mail address in write-after-approval section.
8776
2593d1cd
AC
87772004-04-30 Andrew Cagney <cagney@redhat.com>
8778
ce12bbf9
AC
8779 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8780 (legacy_get_prev_frame): Ditto.
8781
36710c63
AC
8782 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8783 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8784 * mipsread.c (sigtramp_address): Delete extern variable.
8785 (mipscoff_new_init): Delete reference.
8786 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8787 (fixup_sigtramp): Delete function.
8788 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8789 (fixup_sigtramp): Delete declarations.
8790
2593d1cd
AC
8791 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8792 deprecated_pc_in_sigtramp.
8793 (ppcnbsd_pc_in_sigtramp): Delete function.
8794
2a25f91c
MK
87952004-05-01 Mark Kettenis <kettenis@gnu.org>
8796
8797 * config/m68k/nm-nbsd.h: Tweak comments.
8798 * config/m68k/nm-nbsdaout.h: Likewise.
8799
0b281939
AC
88002004-04-30 Andrew Cagney <cagney@redhat.com>
8801
8802 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8803 legacy_pc_in_sigtramp.
8804 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8805
8f2d3ea0
MK
88062004-05-01 Mark Kettenis <kettenis@gnu.org>
8807
8808 Add OpenBSD/m68k support.
8809 * NEWS (New native configurations): Mention OpenBSD/m68k.
8810 * m68kbsd-tdep.c: New file.
8811 * m68kbsd-nat.c: New file.
8812 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8813 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8814 * configure.host: Add m68k-*-openbsd.
8815 * configure.tgt: Add m68k-*-openbsd.
8816 * config/m68k/tm-obsd.h: New file.
8817 * config/m68k/obsd.mt: New file.
8818 * config/m68k/obsd.mh: New file.
8819 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8820 m68kbsd-tdep.c.
8821
c40f49a4
AC
88222004-04-30 Andrew Cagney <cagney@redhat.com>
8823
8824 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8825 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8826
e81554cd
MK
88272004-04-30 Mark Kettenis <kettenis@gnu.org>
8828
8829 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8830 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8831
d4dc1a91
BF
88322004-04-30 Brian Ford <ford@vss.fsi.com>
8833
8834 Revert 2004-04-16 change.
8835 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8836 (i386_coff_init_abi): Remove.
8837 * i386-tdep.h (i386_coff_init_abi): Remove.
8838 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8839
2f72f850
AC
88402004-04-30 Andrew Cagney <cagney@redhat.com>
8841
e492f9d6
AC
8842 * blockframe.c (find_pc_partial_function): Delete use of
8843 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8844 DEPRECATED_SIGTRAMP_END.
8845
7b7adad0
AC
8846 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8847 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8848 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8849 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8850 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8851
2f72f850
AC
8852 * defs.h (deprecated_inside_entry_file): Delete declaration.
8853 * blockframe.c (deprecated_inside_entry_file): Delete function.
8854 (legacy_frame_chain_valid): Delete call.
8855 * sh64-tdep.c (sh64_frame_chain): Delete call.
8856 * objfiles.h: Update comments.
8857 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8858 call.
8859 * frame.c (get_prev_frame): Delete call, update comments.
8860
283f90a7
BF
88612004-04-30 Brian Ford <ford@vss.fsi.com>
8862
8863 * MAINTAINERS (Write After Approval): Add myself.
8864
8ee56bcf
AC
88652004-04-30 Andrew Cagney <cagney@redhat.com>
8866
8867 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8868 * gdbarch.h, gdbarch.c: Re-generate.
8869 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8870 code.
8871
ee27e1b6
AC
88722004-04-30 Andrew Cagney <cagney@redhat.com>
8873
8874 * gdb-events.sh (selected_thread_changed)
8875 (selected_frame_level_changed, target_changed): Delete.
8876 * gdb-events.h, gdb-events.c: Re-generate.
8877 * valops.c (value_assign): Update.
8878 * stack.c (select_frame_command, up_silently_base)
8879 (down_silently_base): Update.
8880
d5ac5a39
AC
88812004-04-29 Andrew Cagney <cagney@redhat.com>
8882
8883 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8884 registers correctly.
8885 (print_gp_register_row, mips32_heuristic_proc_desc)
8886 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8887 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8888 references to mips_isa_regsize.
8889
ceae6e75
AC
88902004-04-29 Andrew Cagney <cagney@redhat.com>
8891
8892 * mips-tdep.c (struct gdbarch_tdep): Delete
8893 mips_fp_register_double.
8894 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8895 mips_abi_regsize.
8896 (mips_gdbarch_init): Do not set mips_fp_register_double.
8897 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8898
a587af0b
AC
88992004-04-29 Joel Brobecker <brobecker@gnat.com>
8900
8901 Committed by Andrew Cagney.
8902 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8903 function calls.
8904
13326b4e
AC
89052004-04-29 Andrew Cagney <cagney@redhat.com>
8906
8907 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8908 gdbarch, use mips_abi, update callers.
8909 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8910 mips_abi_regsize, update callers.
8911 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8912 mips_default_abi_regsize.
8913 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8914 mips_default_abi_regsize.
8915
711cc5cd
AC
89162004-04-29 Andrew Cagney <cagney@redhat.com>
8917
1b13c4f6
AC
8918 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8919 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8920 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8921 mips_default_abi_regsize.
8922 (mips_isa_regsize): Rename mips_regisze.
8923 * mipsnbsd-tdep.c: Update.
8924 * mips-linux-tdep.c: Update.
8925 * irix5-nat.c: Update.
8926 * mips-tdep.h (mips_isa_regsize): Update.
8927
711cc5cd
AC
8928 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8929 Delete all disabled code.
8930 * gdb-events.h, gdb-events.c: Re-generate.
8931
e63bbc88
MK
89322004-04-19 Jerome Guitton <guitton@gnat.com>
8933 Mark Kettenis <kettenis@gnu.org>
8934
8935 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8936 the function begins with a branch instruction.
8937
fd35795f
MK
89382004-04-29 Mark Kettenis <kettenis@gnu.org>
8939
8940 * i386-tdep.c: Fix spelling mistakes.
8941
c960c18f
AC
89422004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8943 Andrew Cagney <cagney@redhat.com>
8944
8945 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8946 <sys/proc.h>.
8947 * acconfig.h: Provide default _KMEMUSER value.
8948 * config.in, configure: Re-generate.
8949 * NEWS: Mention fix.
8950
50306a9d
RC
89512004-04-24 Randolph Chung <tausq@debian.org>
8952
8953 * configure.host (hppa*-*-linux*): New target.
8954 * configure.tgt (hppa*-*-linux*): Likewise.
8955 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8956 gdbarch_init_osabi() call earlier so that osabi-specific frame
8957 unwinders can be registered first.
8958 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8959 hppa-linux-nat.c.
8960 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8961 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8962 * config/pa/linux.mh: New file.
8963 * config/pa/linux.mt: New file.
8964 * config/pa/nm-linux.h: New file.
8965 * config/pa/xm-linux.h: New file.
8966 * hppa-linux-nat.c: New file.
8967 * hppa-linux-tdep.c: New file.
8968
2a6228ef
RC
89692004-04-28 Randolph Chung <tausq@debian.org>
8970
8971 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8972 return values.
8973 (hppa32_push_dummy_call): Fix small struct and floating point argument
8974 passing, and make sure the stack frame is properly aligned.
8975
82c10df6
AC
89762004-04-28 Andrew Cagney <cagney@redhat.com>
8977
d762c46a
AC
8978 * stack.c (print_stack_frame): Fix description.
8979
82c10df6
AC
8980 * NEWS: Mention gdb/gdbserver/configure execute permission
8981 changed. PR server/519.
8982
0faf0076
AC
89832004-04-28 Andrew Cagney <cagney@redhat.com>
8984
8985 * stack.c (print_stack_frame_stub): Delete declaration.
8986 (struct print_stack_frame_args, print_stack_frame)
8987 (print_frame_info, print_frame): Replace "source" with print what.
8988 Replace "print" with "print_level". Replace "args" with
8989 "print_args".
8990 * frame.h (show_and_print_stack_frame, print_stack_frame)
8991 (print_frame_info): Update declarations.
8992 * stack.c (select_and_print_frame, frame_command)
8993 (current_frame_command, up_command, down_command): Update calls -
8994 use get_selected_frame, pass "enum print_what" for source, do not
8995 call frame_relative_level.
8996 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8997 * remote-rdp.c (remote_rdp_open): Ditto.
8998 * remote-mips.c (common_open): Ditto.
8999 * remote-e7000.c (e7000_start_remote): Ditto.
9000 * ocd.c (ocd_start_remote): Ditto.
9001 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9002 * infrun.c (normal_stop): Ditto.
9003 * inflow.c (kill_command): Ditto.
9004 * infcmd.c (finish_command): Ditto.
9005 * corelow.c (core_open): Ditto.
9006 * tracepoint.c (finish_tfind_command): Ditto.
9007 * thread.c (info_threads_command, info_threads_command)
9008 (restore_current_thread, do_captured_thread_select): Ditto.
9009 * ada-tasks.c (task_command): Ditto.
9010
f4c5303c
OF
90112004-04-26 Orjan Friberg <orjanf@axis.com>
9012
9013 * frame.c: Include "observer.h".
9014 (frame_observer_target_changed): New function.
9015 (_initialize_frame): Attach target_changed observer.
9016 * regcache.c: Include "observer.h".
9017 (regcache_observer_target_changed): New function.
9018 (_initialize_regcache): Attach target_changed observer.
9019 * valops.c: Include "observer.h".
9020 (value_assign): Notify target_changed event when modifying register.
9021 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9022
7270d8f2
OF
90232004-04-26 Orjan Friberg <orjanf@axis.com>
9024
9025 From Paul Koning <pkoning@equallogic.com>:
9026 * breakpoint.c (free_valchain): New function.
9027 (insert_bp_location, delete_breakpoint): Use free_valchain.
9028 (remove_breakpoint): Do not remove the valchain.
9029 (bpstat_stop_status): If not stopped by watchpoint, skip
9030 watchpoints when generating stop status list.
9031 * infrun.c (handle_inferior_event): Make
9032 stepped_after_stopped_by_watchpoint a global variable.
9033 * remote.c (remote_stopped_data_address): Return watch data
9034 address rather than zero if stepped_after_stopped_by_watchpoint is
9035 set.
9036
02d62932
MC
90372004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9038
9039 Fix PR gdb/1626.
9040 * configure.in: Check for curses after termcap.
9041 On osf5.*, do not check for ncurses.
9042 * configure: Regenerate.
9043
3e9a183c
MK
90442004-04-25 Mark Kettenis <kettenis@gnu.org>
9045
c79ac407
MK
9046 * ppcobsd-nat.c: Include "ppc-tdep.h".
9047 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9048
3e9a183c
MK
9049 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9050 Fixes PR tdep/1623 and PR tdep/1624.
9051
38cc9c28
MC
90522004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9053
9054 * xmodem.h, xmodem.c: Remove files.
9055 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9056
7f07c5b6
RC
90572004-04-23 Randolph Chung <tausq@debian.org>
9058
9059 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9060 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9061 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9062 for handling stackless frames.
9063 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9064
9f7194c3
RC
90652004-04-23 Randolph Chung <tausq@debian.org>
9066
9067 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9068 starts at a pc before the frame is created.
9069
dcff6009
JB
90702004-04-23 Joel Brobecker <brobecker@gnat.com>
9071
9072 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9073
40711ff1 90742004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
9075
9076 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9077 use convert_typed_floating to get the appropriate format.
9078
abc485a1
RC
90792004-04-22 Randolph Chung <tausq@debian.org>
9080
9081 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9082 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9083 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9084 (hppa_sign_extend): Add prototype.
9085 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9086 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9087 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9088 hppa targets will also use these functions.
9089 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9090 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9091 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9092 (hppa_gdbarch_init): Remove gdbarch setting of
9093 skip_trampoline_code, in_solib_call_trampoline and
9094 in_solib_return_trampoline.
9095 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9096 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9097 hppa_in_solib_call_trampoline.
9098 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9099 Moved from hppa-tdep.c.
9100 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9101 in_solib_call_trampoline and in_solib_return_trampoline.
9102
369aa520
RC
91032004-04-22 Randolph Chung <tausq@debian.org>
9104
9105 * hppa-tdep.c (hppa_debug): New variable.
9106 (find_unwind_entry, hppa_frame_cache): Add debug output.
9107 (_initialize_hppa_tdep): Add command to set debug flag.
9108
476be15e
AC
91092004-04-22 Andrew Cagney <cagney@redhat.com>
9110
9111 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9112 "trad-frame.h".
9113 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9114 signal trampoline unwinder.
9115 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9116
d195bc9f
MK
91172004-04-22 Mark Kettenis <kettenis@gnu.org>
9118
9119 Add OpenBSD/powerpc support.
9120 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9121 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9122 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9123 (ppc_collect_fpregset): New prototypes.
9124 * ppcobsd-nat.c: New file.
9125 * ppcobsd-tdep.c: New file.
9126 * ppcobsd-tdep.h: New file.
9127 * rs6000-tdep.c: Include "regset.h".
9128 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9129 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9130 New functions.
9131 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9132 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9133 (rs6000-tdep.o): Update dependencies.
9134 * configure.host: Add powerpc-*-openbsd.
9135 * configure.tgt: Add powerpc-*-openbsd.
9136 * config/powerpc/obsd.mh: New file.
9137 * config/powerpc/nm-obsd.h: New file.
9138 * config/powerpc/obsd.mt: New file.
9139
6f14cc33
AC
91402004-04-22 Andrew Cagney <cagney@redhat.com>
9141
fcf29e5f
AC
9142 * frame.h (show_frame_info): Delete declaration.
9143
6f14cc33
AC
9144 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9145 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9146 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9147 * frv-tdep.c (frv_frame_this_id): Ditto.
9148 * avr-tdep.c (avr_frame_this_id): Ditto.
9149
e5786a5c
EZ
91502004-04-22 Elena Zannoni <ezannoni@redhat.com>
9151
9152 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9153
26e75e5c
JB
91542004-04-22 Jim Blandy <jimb@redhat.com>
9155
9156 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9157 register number zero.
9158
d8d65dd3
MS
91592004-04-21 Michael Snyder <msnyder@redhat.com>
9160
9161 * mips-tdep.c (heuristic_proc_start):
9162 Warning() already prefixes "Warning: ".
9163
9a4105ab
AC
91642004-04-21 Andrew Cagney <cagney@redhat.com>
9165
9166 * annotate.h (deprecated_annotate_starting_hook)
9167 (deprecated_annotate_stopped_hook)
9168 (deprecated_annotate_exited_hook)
9169 (deprecated_annotate_signal_hook)
9170 (deprecated_annotate_signalled_hook): Deprecate.
9171 * tracepoint.h (deprecated_create_tracepoint_hook)
9172 (deprecated_delete_tracepoint_hook)
9173 (deprecated_modify_tracepoint_hook)
9174 (deprecated_trace_find_hook)
9175 (deprecated_trace_start_stop_hook): Deprecate.
9176 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9177 * remote.h (deprecated_target_resume_hook)
9178 (deprecated_target_wait_loop_hook): Deprecate.
9179 * gdbcore.h (deprecated_exec_file_display_hook)
9180 (deprecated_file_changed_hook): Deprecate.
9181 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9182 * defs.h (deprecated_modify_breakpoint_hook)
9183 (deprecated_command_loop_hook, deprecated_show_load_progress)
9184 (deprecated_print_frame_info_listing_hook)
9185 (deprecated_query_hook, deprecated_warning_hook)
9186 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9187 (deprecated_delete_breakpoint_hook)
9188 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9189 (deprecated_readline_begin_hook, deprecated_readline_hook)
9190 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9191 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9192 (deprecated_context_hook, deprecated_target_wait_hook)
9193 (deprecated_attach_hook, deprecated_detach_hook)
9194 (deprecated_call_command_hook, deprecated_set_hook)
9195 (deprecated_error_hook, deprecated_error_begin_hook)
9196 (deprecated_ui_load_progress_hook): Deprecate.
9197 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9198 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9199 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9200 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9201 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9202 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9203 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9204 * annotate.c, aix-thread.c: Update.
9205
62cf13cc
AC
92062004-04-21 Andrew Cagney <cagney@redhat.com>
9207
b2e31a62
AC
9208 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9209 * vaxnbsd-tdep.c: Include "gdb_string.h".
9210
62cf13cc
AC
9211 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9212 (add_symbol_file_from_memory_command): #if 0 function body, call
9213 error instead.
9214
00e32a35
AC
92152004-04-21 Andrew Cagney <cagney@redhat.com>
9216
9217 * gdbcore.h: Update copyright.
9218 (deprecated_add_core_fns): Rename add_core_fns.
9219 * win32-nat.c (_initialize_core_win32): Update.
9220 * sun3-nat.c (_initialize_core_sun3): Update.
9221 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9222 * rs6000-nat.c (_initialize_core_rs6000): Update.
9223 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9224 * nto-tdep.c (_initialize_nto_tdep): Update.
9225 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9226 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9227 * mips-nat.c (_initialize_core_mips): Update.
9228 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9229 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9230 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9231 * lynx-nat.c (_initialize_core_lynx): Update.
9232 * irix5-nat.c (_initialize_core_irix5): Update.
9233 * i386-interix-nat.c (_initialize_core_interix): Update.
9234 * cris-tdep.c (_initialize_cris_tdep): Update.
9235 * corelow.c (deprecated_add_core_fns): Update.
9236 * core-regset.c (_initialize_core_regset): Update.
9237 * core-aout.c (_initialize_core_aout): Update.
9238 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9239 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9240 * alpha-nat.c (_initialize_core_alpha): Update.
9241
13c7b1ca
JB
92422004-04-21 Jim Blandy <jimb@redhat.com>
9243
9244 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9245
7b5a2f43
DJ
92462004-04-19 Daniel Jacobowitz <drow@mvista.com>
9247
9248 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9249 Delete.
9250 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9251 (read_attribute_value): Update calls to dwarf_alloc_block.
9252 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9253 dwarf2_tmp_obstack.
9254 (psymtab_to_symtab_1): Likewise. Clean up using
9255 free_stack_comp_unit.
9256 (add_to_cu_func_list): Use the comp_unit_obstack.
9257
05cf31d1
JB
92582004-04-19 Joel Brobecker <brobecker@gnat.com>
9259
9260 * dwarf2read.c (dwarf2_flag_true_p): New function.
9261 (die_is_declaration): Use the function above. Add some comments.
9262
adf93a2f
MK
92632004-04-19 Mark Kettenis <kettenis@gnu.org>
9264
9265 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9266 architecture when registering sparcnbsd_core_osabi_sniffer.
9267 Adjust comment.
9268
748894bf
MK
92692004-04-18 Mark Kettenis <kettenis@gnu.org>
9270
f622ad42
MK
9271 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9272 return value.
9273
c4fc7f1b
MK
9274 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9275 * i386-tdep.c: Correct register numbering scheme comments
9276 throughout.
9277 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9278 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9279 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9280 (i386_gdb_arch_init): Likewise.
9281
b4ead1bd
MK
9282 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9283 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9284 ppcnbsd-tdep.o.
9285
748894bf
MK
9286 * m68k-tdep.h: Tweak comments.
9287 * m68k-tdep.c: Tweak comment.
9288
fdd72f95
RC
92892004-04-17 Randolph Chung <tausq@debian.org>
9290
9291 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9292 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9293 (hppa_hpux_som_init_abi): Set is_elf to 0.
9294 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9295 * hppa-tdep.c (low_text_segment_address): Remove global.
9296 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9297 section offset to calculate segment address.
9298 (internalize_unwinds): Define low_text_segment_address as local and
9299 pass to record_text_segment_lowaddr for ELF targets.
9300 (hppa_gdbarch_init): Zero fill tdep structure.
9301 (hppa_dump_tdep): Print tdep structure.
9302 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9303
0f8d9d59
RC
93042004-04-17 Randolph Chung <tausq@debian.org>
9305
9306 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9307 (hppa_gdbarch_init): Set pseudo_register_read.
9308 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9309 * regcache.c (supply_register): Remove check for
9310 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9311
7c46b9fb
RC
93122004-04-17 Randolph Chung <tausq@debian.org>
9313
9314 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9315 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9316 (hpread_adjust_stack_address): Move to hpread.c.
9317 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9318 obj_private_struct): Move from tm-hppa.h.
9319 * hpread.c (hppa-tdep.h): Include.
9320 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9321 (hpread_read_function_type, hpread_read_doc_function_type)
9322 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9323 directly.
9324 * pa64solib.c (hppa-tdep.h): Include.
9325 * somsolib.c (hppa-tdep.h): Include.
9326 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9327 inferior_status): Remove unused forward declarations.
9328 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9329 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9330 obj_private_struct): Move to hppa-tdep.h.
9331 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9332
8d153463
RC
93332004-04-17 Randolph Chung <tausq@debian.org>
9334
9335 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9336 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9337 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9338 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9339 Remove forward declaration and make static.
9340 (hppa_reg_struct_has_addr): Remove.
9341
350c2e5b
JB
93422004-04-16 Joel Brobecker <brobecker@gnat.com>
9343
9344 * observer.sh: Move comments in sed command to first column.
9345
bbde78fa
JM
93462004-04-16 Jason Molenda (jmolenda@apple.com)
9347
9348 * frame.c: Minor typeo corrections in comments.
9349
e0270fd9
JB
93502004-04-16 Joel Brobecker <brobecker@gnat.com>
9351
9352 * observer.c (observer_test_first_notification_function): Update
9353 function profile.
9354 (observer_test_second_notification_function): Likewise.
9355 (observer_test_third_notification_function): Likewise.
9356
3d049254
MK
93572004-04-16 Mark Kettenis <kettenis@gnu.org>
9358
9359 From Brian Ford <ford@vss.fsi.com>:
9360 * i386-tdep.c (i386_coff_init_abi): New function.
9361 * i386-tdep.h (i386_coff_init_abi): New prototype.
9362 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9363 register number translation functions for DWARF and DWARF 2.
9364
7867684d
JB
93652004-04-16 Joel Brobecker <brobecker@gnat.com>
9366
9367 * dwarf2read.c: Back out my previous change, it was incorrect.
9368
72bf9492
DJ
93692004-04-16 Daniel Jacobowitz <drow@mvista.com>
9370
9371 * dwarf2read.c: Include "hashtab.h".
9372 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9373 has_namespace_info.
9374 (struct partial_die_info): Add comments. Use bitfields to reduce
9375 memory footprint. Add scope, scope_set, has_specification,
9376 spec_offset, die_parent, die_child, and die_sibling.
9377 (peek_die_abbrev): Add prototype.
9378 (partial_read_comp_unit_head): New function, broken out from
9379 dwarf2_build_psymtabs_hard.
9380 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9381 Use partial_read_comp_unit_head. Initialize the CU and
9382 comp_unit_obstack. Update calls to read_partial_die and
9383 scan_partial_symbols. Use free_stack_comp_unit and
9384 load_partial_dies.
9385 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9386 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9387 Update calls to helper functions. Remove NAMESPACE argument.
9388 Update comments.
9389 (partial_die_parent_scope, partial_die_full_name): New functions.
9390 (add_partial_symbol): Remove namespace argument. Update call to
9391 pdi_needs_namespace. Use partial_die_full_name. Handle
9392 DW_TAG_namespace. Check has_namespace_info flag.
9393 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9394 tag. Handle namespaces.
9395 (add_partial_namespace, add_partial_enumeration): Simplify.
9396 (guess_structure_name): New function, derived from
9397 add_partial_structure.
9398 (add_partial_structure): Remove.
9399 (determine_class_name): Update comment.
9400 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9401 (is_type_tag_for_partial, load_partial_dies): New functions.
9402 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9403 Record specifications instead of following them immediately.
9404 (find_partial_die_in_comp_unit, find_partial_die)
9405 (fixup_partial_die, free_stack_comp_unit)
9406 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9407 (partial_die_hash, partial_die_eq): New functions.
9408 * Makefile.in (hashtab_h): Define.
9409 (dwarf2read.o): Update dependencies.
9410 (observer_inc, observer_h): Move to the correct section.
9411
fdc860a3
JB
94122004-04-15 Joel Brobecker <brobecker@gnat.com>
9413
9414 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9415 (die_is_declaration): Use the function above. Add comment.
9416
dc718098
JB
94172004-04-15 Joel Brobecker <brobecker@gnat.com>
9418
9419 * dwarf2read.c (read_structure_scope): Identify stub types
9420 using die_is_declaration() only.
9421
8718a420
RM
94222004-04-15 Roland McGrath <roland@redhat.com>
9423
9424 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9425 argument instead of NAME.
9426 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9427 in call to symbol_file_add_with_addrs_or_offsets.
9428 (build_addr_info): New function, helper for ...
9429 (symbol_file_add_from_memory): New function.
9430 (add_symbol_file_from_memory_command): New function using that.
9431 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9432 (pre_add_symbol_hook): Add const to argument type.
9433 * symfile.h (symbol_file_add_from_memory): Declare it.
9434
8b910bab
MK
94352004-04-15 Mark Kettenis <kettenis@gnu.org>
9436
9f076e7a
MK
9437 * NEWS (New native configurations): Mention OpenBSD/vax.
9438 * configure.host: Add vax-*-openbsd*.
9439 * config/vax/obsd.mh: New file.
9440 * config/vax/nm-obsd.h: New file.
9441
8b910bab
MK
9442 * vax-tdep.c: Include "regset.h".
9443 (vax_supply_gregset): New function.
9444 (vax_gregset): New variable.
9445 (vax_regset_from_core_section): New function.
9446 (vax_gdbarch_init): Set regset_from_core_section.
9447 * Makefile.in (vax-tdep.o): Update dependencies.
9448
7a464420
AC
94492004-04-15 Andrew Cagney <cagney@redhat.com>
9450
9451 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9452 (observer_normal_stop_notification_stub)
9453 (observer_attach_normal_stop, observer_detach_normal_stop):
9454 Delete, replaced by #include "observer.inc".
9455 * infrun.c (normal_stop): Pass "stop_bpstat" to
9456 observer_notify_normal_stop.
9457 * Makefile.in (observer_inc): Define.
9458 (observer.o): Update dependencies.
9459 (observer.h, observer.inc): New rules.
9460 * observer.h: Delete file.
9461 * observer.sh: New file.
9462
e36ad527
MK
94632004-04-15 Mark Kettenis <kettenis@gnu.org>
9464
9465 * vax-tdep.c (vax_frame_cache): Fix typo.
9466
67b441e1
MK
94672004-04-14 Mark Kettenis <kettenis@gnu.org>
9468
6f606e1c
MK
9469 * NEWS (New native configurations): Mention NetBSD/vax.
9470 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9471 * config/vax/nbsdelf.mh: New file.
9472 * config/vax/nbsdaout.mh: New file.
9473 * config/vax/nm-nbsd.h: New file.
9474 * config/vax/nm-nbsdaout.h: New file.
9475
9c5519a5
MK
9476 * vaxnbsd-tdep.c: New file.
9477 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9478 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9479 * config/vax/nbsd.mt: New file.
9480 * config/vax/tm-nbsd.h: New file.
9481
4844a614
MK
9482 * Makefile.in (vaxbsd-nat.o): New dependency.
9483
67b441e1
MK
9484 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9485 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9486 struct_addr arguments. Don't push return value address.
9487 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9488 arguments to vax_store_arguments. Store return value address in
9489 R1.
9490 (vax_store_struct_return, vax_extract_return_value)
9491 (vax_store_return_value): Remove functions.
9492 (vax_return_value): New function.
9493 (vax_gdbarch_init): Set return value. Don't set
9494 deprecated_store_struct_return, deprecated_extract_struct_return
9495 and deprecated_store_return_value.
9496
6672f2ae
AS
94972004-04-14 Andreas Schwab <schwab@suse.de>
9498
9499 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9500 value buffer.
9501 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9502
7346c184
MK
95032004-04-14 Mark Kettenis <kettenis@gnu.org>
9504
9505 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9506 (vax_unwind_dummy_id): New functions.
9507 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9508 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9509 variables.
9510 (vax_fix_call_dummy): Remove function.
9511 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9512 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9513 call_dummy_location, deprecated_call_dummy_words,
9514 deprecated_sizeof_call_dummy_words,
9515 deprecated_call_dummy_breakpoint_offset,
9516 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9517 and deprecated_dummy_write_sp.
9518
58e23df4
DC
95192004-04-13 David Carlton <carlton@kealia.com>
9520
9521 * MAINTAINERS: Move myself to "paper trail" section.
9522
5e6b39ff
MK
95232004-04-12 Mark Kettenis <kettenis@gnu.org>
9524
7def7fef
MK
9525 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9526 "trad-frame.h".
9527 (vax_frame_init_saved_regs): Remove function.
9528 (vax_sigtramp_saved_pc): Remove function.
9529 (vax_frame_saved_pc): Remove function.
9530 (vax_frame_args_address): Remove function.
9531 (vax_frame_num_args): Rewrite.
9532 (vax_frame_chain): Remove function.
9533 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9534 VAX_FP_REGNUM.
9535 (vax_pop_frame): Likewise.
9536 (vax_saved_pc_after_call): Remove function.
9537 (struct vax_frame_cache): New structure.
9538 (vax_frame_cache): New function.
9539 (vax_frame_this_id): New function.
9540 (vax_frame_prev_register): New function.
9541 (vax_frame_unwind): New variable.
9542 (vax_frame_sniffer): New function.
9543 (vax_frame_base_address): New function.
9544 (vax_frame_args_address): New function.
9545 (vax_frame_base): New variable.
9546 (vax_unwind_pc): New function.
9547 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9548 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9549 deprecated_frame_chain, deprecated_frame_saved_pc,
9550 deprecated_frame_args_address and
9551 deprecated_frame_init_saved_regs.
9552 * Makefile.in (vax-tdep.o): Update dependencies.
9553
53284fc1
MK
9554 * vaxbsd-nat.c: New file.
9555
5e6b39ff
MK
9556 * vax-tdep.h: Update copyright year. Adjust comments.
9557 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9558 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9559 (vax_regnum): New enum. Replacing...
9560 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9561 (VAX_PS_REGNUM): ... these removed macros.
9562 * vax-tdep.c (vax_register_name): Remove prototype.
9563 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9564 (vax_register_byte, vax_register_raw_size,
9565 vax_register_virtual_size, vax_register_virtual_type): Remove
9566 functions.
9567 (vax_register_type): New function.
9568 (vax_breakpoint_from_pc): Reorganize.
9569 (vax_gdbarch_init): Set register_type. Don't set
9570 deprecated_register_size, deprecated_register_bytes,
9571 deprecated_register_byte, deprecated_register_raw_size,
9572 deprecated_max_register_raw_size,
9573 deprecated_register_virtual_size,
9574 deprecated_max_register_virtual_size and
9575 deprecated_register_virtual_type. Add comment on stack direction.
9576
e9c71e9f
MK
95772004-04-11 Mark Kettenis <kettenis@gnu.org>
9578
9579 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9580 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9581 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9582
d46f1176 95832004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9584
d46f1176
RC
9585 * MAINTAINERS (write after approval): Add myself.
9586
a2a84a72
RC
95872004-04-07 Randolph Chung <tausq@debian.org>
9588
9589 * hppa-tdep.c (hppa_inner_than): Remove.
9590 (is_pa_2): Remove unused static variable.
8718a420 9591 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9592
e85c3284
PH
95932004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9594
9595 * language.h (language_defn): Add new la_post_parser field.
9596 * parser-defs.h (null_post_parser): New declaration (default for
9597 la_post_parser).
8718a420 9598
e85c3284
PH
9599 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9600 insert call to that function.
9601 (parse_exp_in_context): New function, including code formerly in
8718a420 9602 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9603 prefixification.
9604 (parse_expression_in_context): New exported function.
9605 (null_post_parser): New definition.
9606 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9607
e85c3284
PH
9608 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9609 * c-lang.c (c_language_defn): Ditto.
9610 (cplus_language_defn): Ditto.
9611 (asm_language_defn): Ditto.
9612 (minimal_language_defn): Ditto.
9613 * f-lang.c (f_language_defn): Ditto.
9614 * jv-lang.c (java_language_defn): Ditto.
9615 * language.c (unknown_language_defn): Ditto.
9616 (auto_language_defn): Ditto.
9617 (local_language_defn): Ditto.
9618 * m2-lang.c (m2_language_defn): Ditto.
9619 * scm-lang.c (scm_language_defn): Ditto.
9620 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9621
d9f8c85b
MK
96222004-04-10 Mark Kettenis <kettenis@gnu.org>
9623
fa34704a
MK
9624 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9625 (amd64nbsd_mcontext_addr): New function.
9626 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9627 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9628 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9629
403e1656
MK
9630 * corelow.c (core_xfer_partial): Fix coding standards violation.
9631 Add support for TARGET_OBJECT_WCOOKIE.
9632
a57e5a95
MK
9633 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9634 deprecated_pc_in_sigtramp.
9635 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9636 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9637 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9638 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9639 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9640 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9641 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9642
377d9ebd
MK
9643 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9644 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9645 Fix typo.
9646
f0ef85a5
MK
9647 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9648 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9649 (amd64_collect_fxsave): Likewise.
9650
d9f8c85b
MK
9651 * i386-sol2-tdep.c: Include "gdb_string.h".
9652 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9653 name.
9654 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9655
75f501b5
MK
96562004-04-10 Mark Kettenis <kettenis@gnu.org>
9657
9658 * i386-sol2-tdep.c: Include "solib-svr4.h".
9659 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9660 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9661 * config/i386/tm-i386sol2.h: Include :solib.h".
9662 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9663 solib-svr4.o and solib-legacy.o.
9664 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9665 solib-svr4.o.
9666
b31bc724
MK
96672004-04-09 Mark Kettenis <kettenis@gnu.org>
9668
18bbbd9e
MK
9669 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9670 whether a register is supplied by PTRACE_GETFPREGS.
9671 (store_inferior_registers): Likewise.
9672 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9673 whether a register is supplied by PT_GETFPREGS.
9674 (store_inferior_registers): Likewise.
9675
3c30bf1b
MK
9676 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9677 * config/i386/linux64.mt (TDEPFILES): Likewise.
9678
a4194092
MK
9679 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9680
911bc6ee
MK
9681 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9682 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9683 the program counter is in the range specified by `struct
9684 gdbarch_tdep'.
9685 * amd64-linux-tdep.c: Include "symtab.h".
9686 (amd64_linux_pc_in_sigtramp): Remove function.
9687 (amd64_linux_sigtramp_p): New function.
9688 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9689 deprecated_pc_in_sigtramp.
9690 * amd64nbsd-tdep.c: Include "symtab.h".
9691 (amd64nbsd_sigtramp_p): New function.
9692 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9693 deprecated_pc_in_sigtramp.
9694 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9695 few comments.
9696 (amd64obsd_pc_in_sigtramp): Remove function.
9697 (amd64obsd_sigtramp_p): New function.
9698 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9699 deprecated_pc_in_sigtramp.
9700 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9701 (i386bsd_pc_ins_sigtramp): Remove prototype.
9702 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9703 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9704 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9705 the program counter is in the range specified by `struct
9706 gdbarch_tdep'.
9707 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9708 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9709 (i386_go32_pc_in_sigtramp): Remove function.
9710 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9711 Initialize TDEP->sigtramp_p.
9712 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9713 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9714 deprecated_pc_in_sigtramp.
9715 * i386-linux-tdep.c: Adjust comments.
9716 (i386_linux_pc_in_sigtramp): Remove function.
9717 (i386_linux_sigtramp_p): New function.
9718 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9719 deprecated_pc_in_sigtramp.
9720 * i386-nto-tdep.c: Update copyright year.
9721 (i386nto_pc_in_sigtramp): Remove function.
9722 (i386nto_sigtramp_p): New function.
9723 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9724 SP_REGNUM.
9725 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9726 deprecated_pc_in_sigtramp.
9727 * i386-sol2-tdep.c: Update copyright year.
9728 (i386_sol2_pc_in_sigtramp): Remove function.
9729 (i386_sol2_sigtramp_p): New function.
9730 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9731 deprecated_pc_in_sigtramp.
9732 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9733 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9734 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9735 deprecated_sigtramp_start and deprecated_sigtramp_end.
9736 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9737 (i386nbsd_pc_in_sigtramp): Remove function.
9738 (i386nbsd_sigtramp_p): New function.
9739 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9740 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9741 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9742 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9743 (i386obsd_pc_in_sigtramp): Remove function.
9744 (i386obsd_sigtramp_p): New function.
9745 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9746 functions.
9747 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9748 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9749 TDEP->sigtramp_p.
9750 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9751 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9752 dependencies.
9753
e083e6ec
MK
9754 * config/i386/i386aout.mt: Remove file.
9755
bd153b94
MK
9756 * configure.tgt: Remove i[34567]86-*-go32*,
9757 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9758 and i[34567]86-*-isc*. Set gdb_target to i386 for
9759 i[34567]86-*-netware* and i[34567]86-*-*.
9760 * config/i386/i386.mt: New file.
9761 * config/i386/embed.mt: Remove file.
9762 * config/i386/go32.mt: Remove file.
9763 * config/i386/i386nw.mt: Remove file.
9764 * config/i386/i386v.mt: Remove file.
9765 * config/i386/tm-go32.h: Remove file.
9766
4a1bcc8c
MK
9767 * tui/tui-hooks.c: Include "readline/readline.h" after
9768 "gdb_curses.h" instead of before.
9769 * tui/tui-io.c: Likewise.
9770
f9a79064
MK
9771 * tui/tui.c: Fix typo in comment.
9772
b31bc724
MK
9773 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9774
f83f82bc
AC
97752004-04-08 Andrew Cagney <cagney@redhat.com>
9776
9777 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9778 (deprecated_exception_support_initialized): Declare.
8718a420 9779 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9780 (initialize_hp_cxx_exception_support)
9781 (child_enable_exception_callback): Update.
9782 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9783 (deprecated_exception_support_initialized): Rename
9784 deprecated_exception_catchpoints_are_fragile and
9785 deprecated_exception_support_initialized.
9786 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9787
9788 * symtab.c (deprecated_hp_som_som_object_present): Rename
9789 hp_som_som_object_present.
9790 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9791 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9792 Update. Delete extern declaration.
9793 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9794 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9795 (parse_nested_classes_for_hpacc): Ditto.
9796 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9797 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9798 (initialize_hp_cxx_exception_support): Ditto.
9799 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9800 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9801 (cp_print_class_method): Ditto.
8718a420 9802 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9803 (c_type_print_base): Ditto.
9804 * c-exp.y (hp_som_som_object_present): Ditto.
9805
fb2be677
AC
98062004-04-08 Andrew Cagney <cagney@redhat.com>
9807
9808 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9809 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9810 (frame_unwind_find_by_frame): Re-implement the unwind code so
9811 that it can both prepend and append sniffers. Replace
9812 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9813 * tramp-frame.c (tramp_frame_append): Use
9814 frame_unwind_prepend_unwinder.
9815 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9816 frame_unwind_register_unwinder.
9817 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9818 tramp_frame_append.
9819 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9820 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9821 (mips_linux_init_abi): Update.
9822
67faf007
KB
98232004-04-08 Kevin Buettner <kevinb@redhat.com>
9824
9825 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9826 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9827 file support.
9828
8973ff21
KB
98292004-04-07 Kevin Buettner <kevinb@redhat.com>
9830
9831 * ia64-tdep.c (elf.h): Don't include.
9832 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9833
4a0e2f88
JM
98342004-04-07 Jason Molenda (jmolenda@apple.com)
9835
9836 * frame.h: Typeo corrections in comments.
9837
9872ad24
JB
98382004-04-07 Jim Blandy <jimb@redhat.com>
9839
9840 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9841 %esp and %ebp
9842
70b216c8
MK
98432004-04-07 Mark Kettenis <kettenis@gnu.org>
9844
11d5789c
MK
9845 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9846 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9847 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9848 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9849 and solib-legacy.o.
9850 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9851 solib-svr4.o.
9852 * config/sparc/tm-sol2.h: Update copyright year. Include
9853 "solib.h".
9854
70b216c8
MK
9855 * sparc-sol2-tdep.c: Update copyright year. Include
9856 "solib-svr4.h".
9857 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9858 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9859 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9860 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9861 dependencies.
9862
6339dc9e
AC
98632004-04-06 Andrew Cagney <cagney@redhat.com>
9864
9865 * infttrace.c: Include "infttrace.h".
9866 * infttrace.h: Include "target.h".
9867 * Makefile.in (infttrace_h): Update.
9868 (infttrace.o): Update.
8718a420 9869
93449403
AC
98702004-04-06 Andrew Cagney <cagney@redhat.com>
9871
6d518969
AC
9872 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9873 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9874 move extern declarations from here ...
9875 * infttrace.h: ... to here.
9876 * Makefile.in (hppah-nat.o): Update dependencies.
9877
85f4f2d8
AC
9878 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9879 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9880 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9881 (hppa_breakpoint_from_pc): Delete.
9882
93449403
AC
9883 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9884
71456ec6
AC
98852004-04-05 Andrew Cagney <cagney@redhat.com>
9886
9887 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9888 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9889 <sys/file.h>.
8718a420 9890
4c02c60c
AC
98912004-04-06 Randolph Chung <tausq@debian.org>
9892
9893 Committed by Andrew Cagney (mechanical change).
9894 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9895 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9896 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9897 child_enable_exception_callback, current_ex_event,
9898 null_symtab_and_line, child_get_current_exception_event,
9899 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9900 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9901 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9902 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9903 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9904 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9905 Move hpux-specific definitions ...
9906 * hppa-hpux-tdep.c: ... to here.
9907
3a515653
AC
99082004-04-05 Andrew Cagney <cagney@redhat.com>
9909
9910 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9911 skip_prologue_using_sal.
9912
c1730d02
AC
99132004-04-05 Andrew Cagney <cagney@redhat.com>
9914
9915 * config/i386/tm-i386.h: Delete file.
9916 * config/i386/tm-vxworks.h: Update copyright, do not include
9917 "tm-i386.h".
9918 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9919 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9920 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9921 * config/i386/ncr3000.mt (TM_FILE): Delete.
9922 * config/i386/interix.mt (TM_FILE): Delete.
9923 * config/i386/i386v.mt (TM_FILE): Delete.
9924 * config/i386/i386nw.mt (TM_FILE): Delete.
9925 * config/i386/i386gnu.mt (TM_FILE): Delete.
9926 * config/i386/i386aout.mt (TM_FILE): Delete.
9927 * config/i386/embed.mt (TM_FILE): Delete.
9928
8b67aa36
KB
99292004-04-05 Kevin Buettner <kevinb@redhat.com>
9930
9931 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9932 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9933 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9934 (accg7_regnum): New constants.
9935 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9936 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9937 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9938 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9939 for accg registers.
9940 (frv_register_sim_regno): Update spr_map[].
9941
3c7012f5
AC
99422004-04-04 Andrew Cagney <cagney@redhat.com>
9943
9944 * config/mips/xm-riscos.h: Delete.
9945 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9946 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9947 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9948 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9949 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9950 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9951 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9952 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9953 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9954 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9955 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9956 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9957 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9958 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9959 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9960 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9961 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9962 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9963 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9964 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9965 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9966 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9967 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9968 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9969 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9970 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9971
3c7012f5
AC
9972 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9973 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9974 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9975 * configure.host: Remove m680[01]0-sun-sunos3*,
9976 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9977 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9978 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9979 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9980 mips-*-riscos*.
9981 * NEWS: Mention removed systems.
9982
99d16a21
AC
99832004-04-04 Andrew Cagney <cagney@redhat.com>
9984
9985 GDB 6.1 release created from 6.1 branch.
9986
6cdf9d98
AC
99872004-04-04 Andrew Cagney <cagney@redhat.com>
9988
98d346c3
AC
9989 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9990 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9991 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9992
6cdf9d98
AC
9993 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9994 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9995 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9996
859a326d
JB
99972004-04-03 Jim Blandy <jimb@redhat.com>
9998
9999 * MAINTAINERS: Chris Faylor has changed employers; add him to
10000 "paper trail" section, and update his E-mail address.
10001
b87178c3
AC
100022004-04-03 Andrew Cagney <cagney@redhat.com>
10003
4ea2acf0
AC
10004 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10005 generic dummy frames.
10006 * dummy-frame.c: Update copyright.
10007 (dummy_frame_sniffer): Delete check for generic dummy frames.
10008
d0bd2d18 10009 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 10010 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
10011 (REG_PARM_STACK_SPACE): Delete.
10012 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10013 Inline reference to REG_PARM_STACK_SPACE.
10014
b87178c3
AC
10015 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10016 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10017 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10018 (FRAME_BASE_BEFORE_SIGTRAMP)
10019 (hppa32_hpux_frame_base_before_sigtramp)
10020 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10021 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10022 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10023 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10024 (FRAME_BASE_BEFORE_SIGTRAMP)
10025 (hppa64_hpux_frame_base_before_sigtramp)
10026 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10027
43e2e1a0
AC
100282004-04-03 Andrew Cagney <cagney@redhat.com>
10029
10030 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10031
ddc135a4
AC
100322004-04-02 Andrew Cagney <cagney@redhat.com>
10033
10034 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10035 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10036 * dummy-frame.h: Delete out-of-date comments.
10037 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10038 * gdbarch.h, gdbarch.c: Re-generate.
10039
d15bfd3a 100402004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 10041
d15bfd3a
AC
10042 Committed by Andrew Cagney <cagney@redhat.com>.
10043 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10044 into account an instruction saving a register if we have already
10045 seen an earlier instruction saving that same register.
10046
f04ceafa
AC
100472004-04-02 Andrew Cagney <cagney@redhat.com>
10048
08be3abd
AC
10049 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10050 * gdbarch.h, gdbarch.c: Re-generate.
10051 * frame.c (legacy_get_prev_frame): Delete references to
10052 DEPRECATED_INIT_FRAME_PC_FIRST.
10053
f04ceafa
AC
10054 * infrun.c (pc_in_sigtramp): Delete function.
10055 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10056 get_frame_type.
10057
08e69816
AC
100582004-04-02 Andrew Cagney <cagney@redhat.com>
10059
10060 * infrun.c (handle_step_into_function): Delete code conditional on
10061 legacy_frame_p.
10062 (handle_inferior_event, step_over_function): Ditto.
10063
adb54772
AC
100642004-04-02 Andrew Cagney <cagney@redhat.com>
10065
10066 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10067 "previous frame inner to this frame" test.
10068
304396fb
AC
100692004-04-02 Andrew Cagney <cagney@redhat.com>
10070
10071 * frame.c (safe_frame_unwind_memory): New function.
10072 * frame.h (safe_frame_unwind_memory): Declare. Update description
10073 of /safe_/ methods.
10074 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10075 "next_frame". Use safe_frame_unwind_memory.
10076 (tramp_frame_sniffer): Update call to tramp_frame_start.
10077
6502dd73
DJ
100782004-04-01 Daniel Jacobowitz <drow@mvista.com>
10079
10080 * dwarf2read.c (dwarf2_objfile_data_key): New.
10081 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10082 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10083 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10084 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10085 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10086 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10087 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10088 Remove variables.
10089 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10090 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10091 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10092 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10093 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10094 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10095 Remove macros.
10096 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10097 data.
10098 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10099 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10100 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10101 (read_partial_die, read_full_die, read_indirect_string)
10102 (dwarf_decode_line_header, dwarf_decode_macros)
10103 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10104 Update uses of removed variables.
10105 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10106 of removed macros.
10107 (_initialize_dwarf2_read): New function.
10108 * symfile.h (dwarf2_has_info): Update prototype.
10109 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10110 * elfread.c (elf_symfile_read): Likewise.
10111
408752b0
JB
101122004-04-01 Jim Blandy <jimb@redhat.com>
10113
9f744501
JB
10114 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10115 function for register numbers on all the rs6000-derived targets.
10116 (rs6000_gdbarch_init): Don't register a separate
10117 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10118 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10119 variants.
10120
408752b0
JB
10121 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10122 numbering.
10123
2de41bce
PH
101242004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10125
10126 * valarith.c: Update copyright notice.
10127 (value_add): Handle range types.
10128 (value_sub): Ditto.
10129 (value_equal): Ditto.
10130 (value_less): Ditto.
10131 (value_neg): Ditto.
10132 (value_complement): Ditto.
8718a420 10133 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 10134 eliminiating unnecessary COERCE_ENUMs.
8718a420 10135
5613d8d3
AC
101362004-03-31 Andrew Cagney <cagney@redhat.com>
10137
10138 * frame.h (frame_unwind_id): Declare.
10139 * frame.c (frame_unwind_id): New function.
10140 (get_prev_frame_1): New function.
10141 (frame_debug_got_null_frame): New function.
10142 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10143 code proper to prev_frame, update description.
10144 * infrun.c (step_over_function): Use frame_unwind_id.
10145
c4557624
JB
101462004-04-31 J. Brobecker <brobecker@gnat.com>
10147
10148 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10149 (hppa64_push_dummy_call): Likewise.
10150
3e6bb910
JB
101512004-03-30 Jim Blandy <jimb@redhat.com>
10152
10153 From Ulrich Weigand:
10154 * utils.c (query): Do not use a va_list variable multiple times.
10155
a2f23071
DJ
101562004-03-29 Daniel Jacobowitz <drow@mvista.com>
10157
10158 * Makefile.in (linux_nat_h): Update dependencies.
10159 * configure.in: Check for <gnu/libc-version.h>.
10160 * configure: Regenerate.
10161 * config.in: Regenerate.
10162 * linux-nat.h: Include "target.h". Add waitstatus field to
10163 struct lwp_info.
10164 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10165 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10166 to.
10167 (lin_lwp_handle_extended): New function. Handle clone events.
10168 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10169 thread exit events.
10170 (child_wait): Handle clone events.
10171 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10172 * linux-nat.c (linux_enable_event_reporting): Turn on
10173 PTRACE_O_TRACECLONE.
10174 (linux_handle_extended_wait): Handle clone events.
10175 * thread-db.c: Include <gnu/libc-version.h>.
10176 (struct private_thread_info): Add dying flag.
10177 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10178 higher.
10179 (attach_thread): Update comments. Handle dying threads.
10180 (detach_thread): Set the dying flag.
10181 (check_event): Always call attach_thread.
10182
8d5f9dcb
DJ
101832004-03-29 Daniel Jacobowitz <drow@mvista.com>
10184
10185 * mips-tdep.c (mips_pdr_data): New.
10186 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10187 (_initialize_mips_tdep): Initialize mips_pdr_data.
10188
66337bb1
CV
101892004-03-29 Corinna Vinschen <vinschen@redhat.com>
10190
10191 * minsyms.c (install_minimal_symbols): Move dropping leading
10192 char from linkage name from here...
10193 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10194 test for "__gnu_compiled*" symbols.
10195
e802b915
JB
101962004-03-28 Jim Blandy <jimb@redhat.com>
10197
10198 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10199 registers to temp register r0 and byte stores as prologue
10200 instructions.
10201
72b56458
AC
102022004-03-28 Andrew Cagney <cagney@redhat.com>
10203
10204 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10205 arm*-*-*.
10206
0bfbda3b
SC
102072004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10208
10209 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10210 and switch the layout to force a display of register window.
10211
5a7225ed
JB
102122004-02-26 J. Brobecker <brobecker@gnat.com>
10213
10214 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10215 of the INTEGER class.
10216
81a07a45
JB
102172004-03-26 Jim Blandy <jimb@redhat.com>
10218
10219 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10220 bytes long on PPC GNU/Linux.
10221
8c691c7a
DC
102222004-03-26 David Carlton <carlton@kealia.com>
10223
10224 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10225
103a0089
AC
102262004-03-25 Andrew Cagney <cagney@redhat.com>
10227
10228 * PROBLEMS: Add general section titles, remove references to
10229 specific releases.
10230
7a5ea0d4
DJ
102312004-03-25 Daniel Jacobowitz <drow@mvista.com>
10232
10233 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10234 INT_REGISTER_SIZE.
10235 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10236 FP_REGISTER_VIRTUAL_SIZE.
10237 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10238 of DEPRECATED_REGISTER_RAW_SIZE.
10239 (arm_register_type): Add gdbarch argument.
10240 (arm_register_raw_size, arm_register_virtual_size): Delete.
10241 (arm_register_byte, arm_extract_return_value)
10242 (arm_store_return_value, arm_get_longjmp_target): Update references
10243 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10244 (arm_gdbarch_init): Likewise. Don't set
10245 deprecated_register_raw_size, deprecated_register_virtual_size,
10246 deprecated_max_register_raw_size,
10247 deprecated_max_register_virtual_size, or
10248 deprecated_max_register_virtual_type. Do set register_type.
10249 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10250 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10251 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10252 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10253 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10254 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10255 INT_REGISTER_SIZE.
10256 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10257 (remote_rdp_store_register): Likewise.
10258
5792a79b
DJ
102592004-03-24 Daniel Jacobowitz <drow@mvista.com>
10260
10261 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10262 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10263 to after osabi initialization.
10264 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10265 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10266 functions.
10267 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10268 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10269 variables.
10270 (mips_linux_init_abi): Append signal trampoline unwinders.
10271
1196bfda
AC
102722004-03-24 Andrew Cagney <cagney@redhat.com>
10273
10274 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10275 * tramp-frame.c: Include "gdb_assert.h".
10276 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10277 correct sizeof.
10278 (tramp_frame_append): Validate the tramp frame's instructions.
10279 * Makefile.in (tramp-frame.o): Update dependencies.
10280
4be282b4
AC
102812004-03-23 Andrew Cagney <cagney@redhat.com>
10282
10283 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10284
69aec09b
AC
102852004-03-23 Andrew Cagney <cagney@redhat.com>
10286
10287 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10288 Nasser as past testsuite/lib/ (and other) maintainers.
10289
63ed89b4
DJ
102902004-03-23 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * infcmd.c (attach_command): Reread symbols if we already have
10293 an exec file.
10294
f3b36427
AC
102952004-03-23 Andrew Cagney <cagney@redhat.com>
10296
10297 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10298
aa2a3f87
AC
102992004-03-23 Andrew Cagney <cagney@redhat.com>
10300
10301 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10302 * gdbarch.h, gdbarch.c: Re-generate.
10303 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10304 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10305 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 10306 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 10307 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 10308 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
10309 (DEPRECATED_SIGTRAMP_START): Update.
10310 * blockframe.c (find_pc_sect_partial_function): Update.
10311 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10312
00cac895
DJ
103132004-03-23 Daniel Jacobowitz <drow@mvista.com>
10314
10315 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10316 if necessary.
10317
f561f026
AC
103182004-03-23 Andrew Cagney <cagney@redhat.com>
10319
10320 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10321 predicate, deprecate.
10322 * gdbarch.h, gdbarch.c: Re-generate.
10323 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10324 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10325 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10326 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10327 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10328 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10329 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10330 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10331 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10332 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10333 * blockframe.c (find_pc_partial_function): Update.
10334 * breakpoint.c (bpstat_what): Update.
10335 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10336 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10337 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10338 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10339 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10340 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10341 * i386-nto-tdep.c (i386nto_init_abi): Update.
10342 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10343 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10344 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10345 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10346 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10347 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10348 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10349 * infrun.c (pc_in_sigtramp): Update.
10350 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10351 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10352 * mips-tdep.c (mips_gdbarch_init): Update.
10353 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10354 * ppc-linux-tdep.c: Update comment.
10355 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10356 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10357 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10358 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10359 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10360 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10361 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10362 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10363 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10364 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 10365
8050c72f
AC
103662004-03-23 Andrew Cagney <cagney@redhat.com>
10367
d2259dd3
AC
10368 * tramp-frame.h, tramp-frame.h: New files.
10369 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10370 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10371
8050c72f
AC
10372 * Makefile.in: Update all dependencies.
10373
0db9b4b7
AC
103742004-03-23 Andrew Cagney <cagney@redhat.com>
10375
10376 * Makefile.in (trad_frame_h): Add $(frame_h).
10377 * trad-frame.h: Update copyright. Include "frame.h".
10378 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10379 (trad_frame_set_id, trad_frame_get_id): Declare.
10380 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10381 * trad-frame.c: Update copyright.
10382 (struct trad_frame_cache): Define.
10383 (trad_frame_cache_zalloc): New function.
10384 (trad_frame_set_id, trad_frame_get_id): New functions.
10385 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 10386
8e645ae7
AC
103872004-03-22 Andrew Cagney <cagney@redhat.com>
10388
10389 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10390 s390_pltstub_unwind_cache.
10391 (s390_stub_frame_unwind_cache): Rename
10392 s390_pltstub_frame_unwind_cache.
10393 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10394 (s390_stub_frame_prev_register): Rename
10395 s390_pltstub_frame_prev_register.
10396 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10397 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10398
10399 From Ulrich Weigand:
10400 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10401 pointer calls like PLT calls.
10402
34fcf120
DJ
104032004-03-22 Daniel Jacobowitz <drow@mvista.com>
10404
10405 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10406 PC rather than the partial function start address. Use the start
10407 address to sanity check the found PDR.
10408
5b917078
DJ
104092004-03-22 Daniel Jacobowitz <drow@mvista.com>
10410
10411 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10412 linux_handle_extended_wait.
10413
8adf9e78
AC
104142004-03-22 Andrew Cagney <cagney@redhat.com>
10415
c3122434
AC
10416 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10417 function.
10418
8adf9e78
AC
10419 * frame.h (generic_pop_current_frame): Delete declaration.
10420 (deprecate_pop_dummy_frame): Deprecate
10421 generic_pop_dummy_frame.
10422 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10423 (generic_pop_current_frame): Delete function.
10424 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10425 generic_pop_current_frame.
10426 * v850-tdep.c (v850_pop_frame): Update.
10427 * mcore-tdep.c (mcore_pop_frame): Update.
10428 * sh64-tdep.c (sh64_pop_frame): Update.
10429 * h8300-tdep.c (h8300_pop_frame): Update.
10430
90ba813f
AC
104312004-03-22 Andrew Cagney <cagney@redhat.com>
10432
10433 * frame.h (deprecated_pc_in_call_dummy): Rename
10434 generic_pc_in_call_dummy.
10435 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10436 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10437 generic_pc_in_call_dummy.
10438 (pc_in_dummy_frame): Make static.
10439 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10440 * gdbarch.h, gdbarch.c: Re-generate.
10441 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10442 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10443 (legacy_get_prev_frame): Ditto.
10444 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10445 comment.
8718a420 10446
ca4bb888
AC
104472004-03-21 Andrew Cagney <cagney@redhat.com>
10448
244675f9
AC
10449 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10450 declaration and out-of-date comment.
10451 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10452 Delete function.
10453 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10454 deprecated_pc_in_call_dummy.
10455
ca4bb888
AC
10456 * infrun.c (handle_inferior_event): For non legacy frames, use the
10457 frame ID and frame type to identify a signal trampoline. Update
10458 comments.
10459
1777c7b4
NW
104602004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10461
10462 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10463 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10464
82417da5
AC
104652004-03-21 Andrew Cagney <cagney@redhat.com>
10466
10467 * frame-unwind.h: Update copyright.
10468 (struct frame_data): Add opaque declaration.
10469 (frame_sniffer_ftype): Declare.
10470 (struct frame_unwind): Add "unwind_data" and "sniffer".
10471 (frame_unwind_register_unwinder): Declare.
10472 (frame_unwind_find_by_frame): Add parameter "this_cache".
10473 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10474 (legacy_get_prev_frame, legacy_get_prev_frame)
10475 (get_frame_type): Pass the prologue_cache to
10476 frame_unwind_find_by_frame.
10477 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10478 "unwinder".
10479 (frame_unwind_register_unwinder): New function.
10480 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10481
b2ba182e
PH
104822004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10483
10484 * bcache.c (print_percentage): Use floating point to avoid
10485 incorrect results when portion*100 overflows.
10486
81332287
KB
104872004-03-19 Kevin Buettner <kevinb@redhat.com>
10488
10489 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10490 (ppc_linux_init_extra_frame_info)
10491 (ppc_linux_frameless_function_invocation)
10492 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10493 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10494 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10495 (rs6000_frame_chain): Delete declarations.
10496 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10497 (ppc_linux_init_extra_frame_info)
10498 (ppc_linux_frameless_function_invocation)
10499 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10500 (ppc_linux_init_abi): Remove registration of above deleted functions.
10501 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10502 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10503 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10504 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10505 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10506 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10507 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10508 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10509 frame management for all OSABIs.
10510
61a65099
KB
105112004-03-19 Andrew Cagney <cagney@redhat.com>
10512
10513 Committed by Kevin Buettner <kevinb@redhat.com>.
10514
10515 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10516 Update copyright.
10517 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10518 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10519 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10520 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10521 unwinders. #ifdef legacy frame code.
10522 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10523 "frame-base.h".
10524 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10525 (struct rs6000_frame_cache, rs6000_frame_cache)
10526 (rs6000_frame_this_id, rs6000_frame_prev_register)
10527 (rs6000_frame_sniffer, rs6000_frame_unwind)
10528 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10529 (rs6000_frame_base): Implement a traditional frame unwinder.
10530 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10531 frame unwinder.
10532
88f7da05
KB
105332004-03-19 Kevin Buettner <kevinb@redhat.com>
10534
10535 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10536 breakpoint address for watchpoints or the catch eventpoints.
10537 Add new paramter ``bptype''. Adjust all callers.
10538
f826dce1
AC
105392004-03-19 Andrew Cagney <cagney@redhat.com>
10540
33cb8b0f
AC
10541 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10542
f826dce1
AC
10543 * PROBLEMS: Delete note that ARM does not use frame code, problem
10544 fixed.
10545
43b1ab88
AC
105462004-03-18 Andrew Cagney <cagney@redhat.com>
10547
292ab034
AC
10548 * stack.c (return_command): Delete code wrapped in #ifdef
10549 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10550
43b1ab88
AC
10551 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10552
dbfe4626
AC
105532004-03-18 Andrew Cagney <cagney@redhat.com>
10554
10555 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10556 DEPRECATED_IN_SIGTRAMP.
10557 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10558 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10559 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10560 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10561 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10562 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10563 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10564 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10565 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10566 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10567
0cad6aec
AC
105682004-03-18 Andrew Cagney <cagney@redhat.com>
10569
10570 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10571 (struct frame_base_table_entry): Define.
10572 (struct frame_base_table): Re-implement as a linked list.
10573 (frame_base_init): Re-implement.
10574 (frame_base_table): Delete function.
10575 (append_predicate): Delete function.
10576 (frame_base_append_sniffer): Update.
10577 (frame_base_set_default): Update.
10578 (frame_base_find_by_frame): Update.
10579 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10580 * Makefile.in (frame-base.o): Update dependencies.
10581
9982c2e7
AC
105822004-03-17 Andrew Cagney <cagney@redhat.com>
10583
10584 * frame.c (legacy_get_prev_frame): Pass correct frame to
10585 frame_unwind_find_by_frame.
10586
8dfe8985
DC
105872004-03-17 David Carlton <carlton@kealia.com>
10588
10589 * NEWS: Mention C++ nested types and namespaces
10590
ed47347a
MC
105912004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10592
10593 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10594 and "Regressions since gdb 5.3.". Add known regressions since
10595 gdb 6.0.
10596
90aeadfc
DC
105972004-03-16 David Carlton <carlton@kealia.com>
10598
10599 * dwarf2read.c (process_structure_scope): Process children even
10600 when we're a declaration.
10601
73912b9b
AC
106022004-03-16 Andrew Cagney <cagney@redhat.com>
10603
10604 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10605 * blockframe.c (find_pc_partial_function)
10606 (find_pc_sect_partial_function): Merge into a single
10607 find_pc_partial_function.
10608
283accbc
MK
106092004-03-16 Mark Kettenis <kettenis@gnu.org>
10610
10611 * i386bsd-nat.c: s/regno/regnum/g.
10612 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10613 FP0_REGNUM.
10614 (store_inferior_registers): Likewise.
10615
f5b1afdf
MK
106162004-03-16 Mark Kettenis <kettenis@gnu.org>
10617
10618 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10619 of i387_fill_fsave.
10620 (store_inferior_registers): Call i387_collect_fsave and
10621 i387_collect_fxsave instead of i387_fill_fsave and
10622 i387_fill_fxsave.
10623
41fe5eb3
AC
106242004-03-15 Andrew Cagney <cagney@redhat.com>
10625
10626 * Makefile.in (frame-unwind.o): Update dependencies.
10627 * frame-unwind.c: Include "gdb_obstack.h".
10628 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10629 parameter.
10630 (append_predicate): Delete function.
10631 (struct frame_unwind_table_entry): New structure.
10632 (struct frame_unwind_table): Replace "sniffer" with "head" and
10633 "tail".
10634 (frame_unwind_append_sniffer): Update.
10635 (frame_unwind_find_by_frame): Update.
10636 (_initialize_frame_unwind): Registe frame_unwind_init using
10637 gdbarch_data_register_pre_init.
10638
3f63813d
MK
106392004-03-15 Mark Kettenis <kettenis@gnu.org>
10640
10641 * i386bsd-nat.c: Update copyright year.
10642 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10643 define unconditionally.
10644
3248c325 106452004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10646
10647 * i387-tdep.h (i387_collect_fsave): New prototype.
10648 * i387-tdep.c (i387_collect_fsave): New function containing most
10649 of the code from i387_fill_fsave.
3248c325 10650 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10651
871fbe6a
MK
106522004-03-15 Mark Kettenis <kettenis@gnu.org>
10653
10654 * i386-linux-tdep.c: Update copyright year.
10655 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10656 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10657 svr4_ilp32_link_map_offsets instead of
10658 i386_linux_svr4_fetch_link_map_offsets.
10659
8176b9b8
DC
106602004-03-15 David Carlton <carlton@kealia.com>
10661
10662 Fix for PR c++/1553:
10663 * dwarf2read.c (read_structure_type): Determine type name by
10664 calling determine_class_name.
10665 (determine_class_name): New.
10666 (determine_prefix): Look at TYPE_TAG_NAME and call
10667 determine_class_name when appropriate.
10668 (determine_prefix_aux, class_name): Delete.
9d58e29d 10669 (read_namespace): Set die->type.
8176b9b8 10670
fe8bf7d7
KB
106712004-03-15 Kevin Buettner <kevinb@redhat.com>
10672
10673 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10674 unused macro definition. The definition in target.h (or perhaps
10675 elsewhere) takes precedence.
10676
ed6edd9b
AC
106772004-03-15 Andrew Cagney <cagney@redhat.com>
10678
f9be684a
AC
10679 * ppc-tdep.h: Update copyright.
10680 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10681 function signatures to match "regsets.h".
10682 * ppc-linux-tdep.c: Include "regset.h".
10683 (ELF_GREGSET_SIZE): Delete.
10684 (right_supply_register): New function.
10685 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10686 using right_supply_register.
10687 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10688 functions.
10689 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10690 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10691 (_initialize_ppc_linux_tdep): Do not register
10692 ppc_linux_regset_core_fns.
10693 (ppc_linux_regset_from_core_section): Replace
10694 fetch_core_registers.
10695 (ppc_linux_regset_core_fns): Delete.
10696 * ppc-linux-nat.c: (right_fill_reg): New function.
10697 (supply_gregset): Update call to ppc_linux_supply_gregset.
10698 (fill_gregset): Clear the register set, use right_fill_reg.
10699 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10700 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10701
ed6edd9b
AC
10702 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10703 unsigned.
10704
030f20e1
AC
107052004-03-15 Andrew Cagney <cagney@redhat.com>
10706
10707 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10708 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10709 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10710 and register_gdbarch_data.
10711 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10712 (struct gdbarch_data): Replace "init" by "pre_init" and
10713 "post_init".
10714 * gdbarch.h, gdbarch.c: Re-generate.
10715 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10716 with"obstack", use OBSTACK_ZALLOC.
10717 (dwarf2_frame_ops): Delete.
10718 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10719 (dwarf2_frame_init_reg): Use gdbarch_data.
10720 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10721 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10722 (_initialize_svr4_solib): Update.
10723 * user-regs.c (_initialize_user_regs): Update.
10724 * reggroups.c (_initialize_reggroup): Update.
10725 * regcache.c (_initialize_regcache): Update.
10726 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10727 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10728 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10729 * frame-unwind.c (_initialize_frame_unwind): Update.
10730 * frame-base.c (_initialize_frame_base): Update.
10731 * user-regs.c (user_reg_add): Update.
10732 * reggroups.c (reggroup_add): Update.
10733 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10734 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10735 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10736 * frame-base.c (frame_base_table): Update.
10737 * remote.c (_initialize_remote): Update.
10738 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10739
3111a3fc
AC
107402004-03-15 Andrew Cagney <cagney@redhat.com>
10741
10742 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10743
5ecb7103
KB
107442004-03-15 Kevin Buettner <kevinb@redhat.com>
10745
10746 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10747 * frv-linux-tdep.c: New file.
10748 * frv-tdep.c (struct gdbarch_tdep): Add new field
10749 ``sigcontext_reg_addr''.
10750 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10751 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10752 (frv_sigramp_frame_sniffer): New functions.
10753 (frv_sigtramp_frame_unwind): New static global.
10754 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10755 sniffers.
10756 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10757 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10758
1ccda5e9
KB
107592004-03-15 Kevin Buettner <kevinb@redhat.com>
10760
10761 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10762 but not via a call to error(), when unable to read memory.
10763
b375a0a5
KB
107642004-03-15 Kevin Buettner <kevinb@redhat.com>
10765
10766 * frv-tdep.c (frv_call_dummy_words): Delete.
10767 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10768
4fdf6121
AC
107692004-03-15 Andrew Cagney <cagney@redhat.com>
10770
10771 * infrun.c (handle_step_into_function, step_over_function): Only
10772 update and use STEP_FRAME_ID when the system is using legacy
10773 frames. Update comments.
10774
34021503
MK
107752004-03-14 Mark Kettenis <kettenis@gnu.org>
10776
187e21d1
MK
10777 * amd64-linux-tdep.h: Remove file.
10778 * amd64-linux-tdep.c: Don't include "inferior.h" and
10779 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10780 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10781 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10782 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10783 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10784 macros.
10785 (user_to_gdb_regmap): Remove variable.
10786 (amd64_linux_gregset_reg_offset): New variable.
10787 (amd64_core_fns): Remove variable.
10788 (fetch_core_registers): Remove function.
10789 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10790 functions.
10791 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10792 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10793 * Makefile.in (amd64_linux_tdep_h): Remove.
10794 (amd64-linux-nat.o): Update dependencies.
10795 (amd64-linux-tdep.o): Update dependencies.
10796
99679982
MK
10797 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10798 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10799 functions.
10800 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10801
34021503
MK
10802 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10803 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10804
134d01f1
DJ
108052004-03-14 Daniel Jacobowitz <drow@mvista.com>
10806
10807 * dwarf2read.c (read_structure_type): Rename from
8718a420 10808 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10809 Return immediately if die->type is set. Call read_type_die before
10810 dwarf2_add_member_fn.
10811 (process_structure_scope): New function.
10812 (read_enumeration_type, process_enumeration_scope): New functions,
10813 broken out from read_enumeration. Don't create the enumeration
10814 type if it has already been created.
10815 (read_enumeration): Removed.
10816 (process_die): Call read_structure_type, process_structure_scope,
10817 read_enumeration_type, and process_enumeration_scope. Just call
10818 new_symbol for base and subrange types. Add a comment about other
10819 type dies.
10820 (read_type_die): Call read_enumeration_type.
10821 (add_partial_structure, new_symbol): Update comments.
10822
65760afb
SC
108232004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10824
10825 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10826
10f59415
SC
108272004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10828
10829 * tui/tui-win.h (tui_get_cmd_list): Declare.
10830 * tui/tui-win.c (tui_command): New function.
10831 (tui_get_cmd_list): New function.
10832 (_initialize_tui_win): Moved initialization of tui command in
10833 tui_get_cmd_list.
10834
10835 * tui/tui-data.c (init_content_element): Setup new data members.
10836 (init_win_info): Likewise.
10837 (free_content_elements): Free it.
10838 * tui/tui-data.h (struct tui_data_element): Store the register
10839 content to print.
10840 (struct tui_data_info): Keep the current register group.
10841
10842 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10843
10844 * tui/tui-regs.h (tui_show_registers): Update prototype.
10845 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10846 (tui_resize_all): No need to calculate anything for register window.
10847 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10848 (tui_set_register_element, tui_set_general_regs_content): Remove.
10849 (tui_set_special_regs_content): Remove.
10850 (tui_set_general_and_special_regs_content): Remove.
10851 (tui_set_float_regs_content): Remove.
10852 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10853 (tui_set_regs_content): Remove.
10854 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10855 (tui_v_show_registers_command_support): Remove.
10856 (tui_show_registers): Use a reggroup to specify the registers to show.
10857 (tui_show_register_group): New function.
10858 (tui_display_registers_from): Compute the layout of register window
10859 and refresh with new API; be sure to delete old register windows.
10860 (tui_check_register_values): Update to use tui_get_register and
10861 tui_display_data.
10862 (tui_display_register): Just refresh the register window part.
10863 (tui_register_format): Format registers and save in tui_data_element.
10864 (tui_get_register): New to combine tui_reg_value_has_changed and
10865 tui_get_register_raw_value; fix to use the new gdb API.
10866 (tui_show_float_command): Renamed tui_reg_float_command.
10867 (tui_show_general_command): Renamed tui_reg_general_command.
10868 (tui_show_special_command): Renamed tui_reg_system_command.
10869 (_initialize_tui_regs): Remove unused commands.
10870
c3364ea4
MK
108712004-03-13 Mark Kettenis <kettenis@gnu.org>
10872
27d1e716
MK
10873 * NEWS (New native configurations): Mention OpenBSD/amd64.
10874
c3364ea4
MK
10875 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10876 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10877 Remove defines.
10878 * config/i386/nm-fbsd64.h: Likewise.
10879 * config/i386/nm-obsd.h: Likewise.
10880 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10881 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10882
b2d6d697
KB
108832004-03-12 Kevin Buettner <kevinb@redhat.com>
10884
10885 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10886 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10887 New constants.
10888
76e43199
KB
10889 From Richard Sandiford <rsandifo@redhat.com>:
10890 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10891
34ce532e
KB
108922004-03-12 Kevin Buettner <kevinb@redhat.com>
10893
10894 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10895 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10896 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10897 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10898 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10899 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10900 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10901 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10902 definitions from frv-tdep.c to frv-tdep.h.
10903
c4d10515
KB
109042004-03-12 Kevin Buettner <kevinb@redhat.com>
10905
10906 Add shared library support for FR-V FDPIC ABI:
10907 * Makefile.in (solib-frv.o): Add dependencies.
10908 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10909 New functions.
10910 (frv_push_dummy_call): Add support for FDPIC ABI.
10911 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10912 for FDPIC ABI.
10913 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10914 (frv_fdpic_find_canonical_descriptor): Declare.
10915 * solib-frv.c: New file.
10916 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10917 * config/frv/tm-frv.h (solib.h): Include.
10918
ed1bd989
KB
109192004-03-12 Kevin Buettner <kevinb@redhat.com>
10920
10921 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10922 (frv-tdep.o): Update dependencies.
10923 * frv-tdep.h: New file.
10924 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10925 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10926 constants.
10927 (struct gdbarch_tdep): Add new member ``frv_abi''.
10928 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10929 functions.
10930 (new_variant): Set ``frv_abi'' field.
10931 (gdb_arch_init): Detect FDPIC executables.
10932
82b38f72
MK
109332004-03-12 Mark Kettenis <kettenis@gnu.org>
10934
10935 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10936 wrapper.
10937
db1ea9ba
AC
109382004-03-11 Andrew Cagney <cagney@redhat.com>
10939
10940 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10941
f8766ec1
KB
109422004-03-11 Kevin Buettner <kevinb@redhat.com>
10943
10944 * solist.h (master_so_list): New function.
10945 * solib.c (master_so_list): Likewise.
10946 * solib-svr4.c (enable_break): Iterate over so_list entries
10947 obtained from master list instead of entries obtained directly
10948 via svr4_current_sos().
10949
523f6a27
BE
109502004-03-10 Ben Elliston <bje@gnu.org>
10951
10952 * MAINTAINERS: Update my mail address.
10953
37814c18
KI
109542004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10955
10956 * remote-m32r-sdi.c: Support hardware watchpoint.
10957
8b9740d8
DJ
109582004-03-09 Daniel Jacobowitz <drow@mvista.com>
10959
10960 * user-regs.c: Update copyright years.
10961 (struct user_regs): Rename to gdb_user_regs.
10962 (append_user_reg, builtin_user_regs, user_regs_init)
10963 (user_reg_add, user_reg_map_name_to_regnum)
10964 (usernum_to_user_reg): Update.
10965
4bb7a0a7
DJ
109662004-03-09 Daniel Jacobowitz <drow@mvista.com>
10967
10968 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10969 (skip_children): New functions.
10970 (locate_pdi_sibling): Call skip_children.
10971
44e1a9eb
DJ
109722004-03-09 Daniel Jacobowitz <drow@mvista.com>
10973
10974 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10975 * gdbtypes.c (check_typedef): Update comments.
10976
f3dd6933
DJ
109772004-03-09 Daniel Jacobowitz <drow@mvista.com>
10978
10979 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10980 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10981 pointer. Update comment about comp_unit_head.
10982 (struct abbrev_info): Shorten two int flags.
10983 (dwarf_alloc_abbrev): Take a CU argument.
10984 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10985 each time through the loop. Update cleanup argument.
10986 (psymtab_to_symtab_1): Update cleanup call.
10987 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10988 abbrev_obstack.
10989 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10990 Just call obstack_free and clear the pointer.
10991
b40c7d58
DJ
109922004-03-09 Daniel Jacobowitz <drow@mvista.com>
10993
10994 * infrun.c (handle_inferior_event): Remove short-circuit code for
10995 events in a different thread.
10996
333dabeb
DJ
109972004-03-09 Daniel Jacobowitz <drow@mvista.com>
10998
10999 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11000 print the whole transfer.
11001 (initialize_targets): Update description of "set debug target".
11002
aa17d93e
DJ
110032004-03-09 Daniel Jacobowitz <drow@mvista.com>
11004
11005 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11006
0b71f08f
NW
110072004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11008
11009 * MAINTAINERS (write after approval): Add myself.
11010
3930f270
CV
110112004-03-08 Corinna Vinschen <vinschen@redhat.com>
11012
11013 * sh-tdep.c (sh_print_registers_info): Use for loop.
11014 Don't skip multiple registers when a float register is encountered.
11015
a2b4a96c
CV
110162004-03-08 Corinna Vinschen <vinschen@redhat.com>
11017
11018 Fix PR tdep/1291.
11019 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11020 to official SH documentation.
11021
f15a4bc0
AC
110222004-03-07 Andrew Cagney <cagney@redhat.com>
11023
11024 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11025 unused function.
11026
9498281f
DJ
110272004-03-07 Daniel Jacobowitz <drow@mvista.com>
11028
11029 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11030 (arm_get_next_pc): Handle BX and BLX.
11031
449e1137
AC
110322004-03-07 Andrew Cagney <cagney@redhat.com>
11033
eded0a31
AC
11034 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11035 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11036 HPPA_SP_REGNUM.
11037 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11038 (hppa_target_read_fp): Delete.
11039 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11040 register_virtual_size, max_register_raw_size,
11041 max_register_virtual_size, register_byte, register_size,
11042 target_read_fp, fp_regnum, and register_bytes. Set register_type
11043 instead of register_virtual_type.
11044 (hppa32_register_type, hppa64_register_type): Replace
11045 hppa32_register_virtual_type and hppa64_register_virtual_type.
11046 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11047 (HPPA_FP_REGNUM): Define.
11048
f5f907e2
AC
11049 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11050
69b4bbe4
AC
11051 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11052 (pa_do_registers_info): Delete.
11053 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 11054 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 11055 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 11056
78161e48
AC
11057 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11058 GDB_TARGET_IS_HPPA code.
11059 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 11060 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
11061 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11062 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
11063 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11064 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11065 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 11066 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
11067 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11068 (hppa_frameless_function_invocation, hppa64_store_return_value)
11069 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 11070 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 11071 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 11072 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
11073 (find_proc_framesize, deposit_21, restore_pc_queue)
11074 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 11075 (rp_saved, pc_in_linker_stub): Delete.
78161e48 11076
782eae8b
AC
11077 Unconditionally enable 64-bit frame and ABI code.
11078 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11079 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11080 push_dummy_frame, fix_call_dummy, push_arguments,
11081 call_dummy_location, extract_return_value, use_struct_convention,
11082 store_return_value, store_struct_return, saved_pc_after_call,
11083 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11084 frame_chain, frame_chain_valid, frameless_function_invocation,
11085 frame_saved_pc, and pop_frame.
78161e48 11086
449e1137
AC
11087 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11088 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11089 (hppa_gdbarch_init): Do not set PC_REGNUM.
11090
12507572
MK
110912004-03-06 Mark Kettenis <kettenis@gnu.org>
11092
11093 * config/alpha/tm-fbsd.h: Remove file.
11094 * config/alpha/fbsd.mt: Tweak comment.
11095 (TM_FILE): Set to tm-alpha.h.
11096
c107cc1b
AC
110972004-03-05 Andrew Cagney <cagney@redhat.com>
11098
11099 * infrun.c (step_over_function): When non-legacy code, and no
11100 step_frame_id, use the unwinder to get the caller's frame ID.
11101
f2e7c15d
MK
111022004-03-05 Mark Kettenis <kettenis@gnu.org>
11103
8b0c3633
MK
11104 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11105 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11106 bfd_arch_unknown. Adjust comment.
11107
f2e7c15d
MK
11108 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11109 * i386obsd-tdep.c: Correct spelling in comment.
11110 * i386nbsd-tdep.c: Correct spelling in comment.
11111 * sparc-tdep.c: Correct spelling in comments.
11112
1198ecbe
DC
111132004-03-05 David Carlton <carlton@kealia.com>
11114
11115 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11116 bug.
11117
9eb42ed1
MK
111182004-03-05 Mark Kettenis <kettenis@gnu.org>
11119
11120 * sparc-tdep.c: Fix typo in comment.
11121
52b5e991
JB
111222004-03-04 J. Brobecker <brobecker@gnat.com>
11123
11124 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11125
d8151005
DJ
111262004-03-04 Daniel Jacobowitz <drow@mvista.com>
11127
11128 * dwarf2read.c: Add comment describing memory lifetimes.
11129 (struct dwarf2_pinfo): Update comment.
11130 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11131 (read_enumeration, new_symbol): Don't use obsavestring.
11132
cbeae229
MK
111332004-03-04 Mark Kettenis <kettenis@gnu.org>
11134
722d18c2
MK
11135 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11136 instead of amd64_fill_fxsave.
11137 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11138 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11139
cbeae229
MK
11140 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11141 Reorganize code a bit.
11142
b4206d25
OF
111432004-03-04 Orjan Friberg <orjanf@axis.com>
11144
11145 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
11146 when the frame pointer is pushed. Don't set the frame pointer's
11147 address on the stack unless it's actually located there.
b4206d25
OF
11148 Set the SRP's address on the stack correctly when the PC is still in
11149 the prologue.
11150 (cris_return_value): New function.
11151 (cris_gdbarch_init): Clear deprecated store_return_value,
11152 extract_return_value.
11153
49b0b195
JB
111542004-03-02 Jim Blandy <jimb@redhat.com>
11155
11156 * stabsread.c (reg_value_complaint): The maximum register number
11157 is one less than the number of registers.
11158
e9ff708b
AC
111592004-03-02 Andrew Cagney <cagney@redhat.com>
11160
11161 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11162 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11163 trailing comma and redundant assignment of I386_ST0_REGNUM.
11164 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11165 32-bit segment registers.
11166
d4715e41
AC
111672004-03-01 Andrew Cagney <cagney@redhat.com>
11168
11169 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11170 use frame_relative_level and get_next_frame.
11171
3ce2bf18
AC
111722004-02-29 Andrew Cagney <cagney@redhat.com>
11173
11174 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11175 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11176 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11177 Delete macro.
11178
2da6aac3
DJ
111792004-02-29 Daniel Jacobowitz <drow@mvista.com>
11180
11181 * inflow.c (terminal_inferior): Don't give up the terminal if we
11182 previously couldn't get the inferior's terminal state.
11183
6ba34a8d
DJ
111842004-02-29 Daniel Jacobowitz <drow@mvista.com>
11185
11186 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11187 PC_REGNUM.
11188
faae5abe
AC
111892004-02-28 Andrew Cagney <cagney@redhat.com>
11190
11191 * NEWS: Refer to GDB 6.1.
11192 * README: Refer to GDB 6.1.
11193 * PROBLEMS: Refer to GDB 6.1.
11194
2227a3c5
DJ
111952004-02-28 Daniel Jacobowitz <drow@mvista.com>
11196
11197 * thread-db.c (disable_thread_signals): Remove unused function.
11198
80571bff
MK
111992004-02-28 Mark Kettenis <kettenis@gnu.org>
11200
041bd74b
MK
11201 * amd64-nat.c: Include "gdb_string.h".
11202 (amd64_collect_native_gregset): Zero-extend the 32-bit
11203 general-purpose registers and %eip.
11204
3c017e40
MK
11205 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11206 * amd64-tdep.c (amd64_collect_fxsave): New function.
11207 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11208
80571bff
MK
11209 * i387-tdep.h: Update copyright year.
11210 (i387_collect_fxsave): New prototype.
11211 * i387-tdep.c: Update copyright year.
11212 (i387_collect_fxsave): New function containing most of the code
11213 from i387_fill_fxsave.
11214 (i387_fill_fxsave): Call i387_collect_fxsave.
11215
50d71875
AC
112162004-02-28 Andrew Cagney <cagney@redhat.com>
11217
11218 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11219 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11220
4a28816e
MK
112212004-02-28 Mark Kettenis <kettenis@gnu.org>
11222
11223 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11224
dbda9972
AC
112252004-02-28 Andrew Cagney <cagney@redhat.com>
11226
11227 * utils.c: Use "", instead of <>, to include readline.
11228 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11229 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11230 * source.c, solib.c, exec.c, event-top.c: Ditto.
11231 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11232 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11233 * Makefile.in: Update all dependencies.
11234 (readline_tilde_h, readline_history_h): Define.
11235 (readline_headers): Delete.
11236
83277a99
MK
112372004-02-28 Mark Kettenis <kettenis@gnu.org>
11238
91ae4303
MK
11239 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11240 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11241 "config/i386/tm-lx64.h".
11242
83277a99
MK
11243 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11244 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11245 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11246
6e1d7d6c
AC
112472004-02-28 Andrew Cagney <cagney@redhat.com>
11248
ecc9ac84
AC
11249 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11250
6e1d7d6c
AC
11251 * breakpoint.c (_initialize_breakpoint): Use
11252 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11253 Add help to show command.
11254
9671aeef
MK
112552004-02-28 Mark Kettenis <kettenis@gnu.org>
11256
7fa2737c
MK
11257 * i386-nat.c: Reformat to be closer to coding standards.
11258 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11259 `retval'. Make variables `align' and `size' local to while-loop.
11260 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11261 (_initialize_i386_nat): New prototype.
11262
9671aeef
MK
11263 * tui/tui.c: Include <readline/readline.h> instead of
11264 "readline/readline.h". Include it after <term.h> and
11265 "gdb_curses.h".
11266
fca7aa43
AC
112672004-02-27 Andrew Cagney <cagney@redhat.com>
11268
412275d5
AC
11269 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11270 the new frame unwind code.
11271 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11272 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11273 PCOQ_HEAD_REGNUM.
11274
fca7aa43
AC
11275 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11276 "return_value" and "push_dummy_call".
11277 (hppa32_use_struct_convention): Delete unused function.
11278 (hppa32_store_return_value): Delete unused function.
11279 (hppa32_extract_return_value): Delete unused function.
11280 (hppa32_stack_align): Delete function.
11281
e6a8a7d2
EZ
112822004-02-27 Eli Zaretskii <eliz@elta.co.il>
11283
11284 * coffread.c (enter_linenos): Don't let rawptr reference memory
11285 outside linetab[]'s limits.
11286
1797a8f6
AC
112872004-02-27 Andrew Cagney <cagney@redhat.com>
11288
11289 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11290 inferior stack space - the stack needs to grow upwards.
11291 (hppa32_frame_align): New function.
11292 (hppa64_frame_align): Replace hppa_frame_align.
11293 (hppa_gdbarch_init): Update.
11294
2e4b5889
OF
112952004-02-26 Orjan Friberg <orjanf@axis.com>
11296
11297 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11298 (dwarf2-frame.h): Include.
11299 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11300 Remove static variables related to ABI setting.
11301 (struct gdbarch_tdep): Remove cris_abi member.
11302 (struct frame_extra_info): Remove.
11303 (cris_unwind_cache, stack_item): New structs.
11304 (cris_frame_unwind, cris_frame_base): New variables.
11305 (push_stack_item, pop_stack_item)
11306 (cris_frame_unwind_cache, cris_frame_this_id)
11307 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11308 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11309 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11310 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11311 (cris_reg_struct_has_addr): New functions.
11312 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 11313 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
11314 (cris_store_struct_return, cris_frameless_function_invocation)
11315 (cris_pop_frame, cris_skip_prologue_main)
11316 (cris_abi_original_store_return_value)
11317 (cris_abi_v2_store_return_value)
11318 (cris_abi_original_extract_return_value)
11319 (cris_abi_v2_extract_return_value)
11320 (cris_abi_original_reg_struct_has_addr)
11321 (cris_abi_v2_reg_struct_has_addr)
11322 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11323 (cris_push_return_address, cris_abi_update): Remove.
11324 (_initialize_cris_tdep): Remove ABI command.
11325 (cris_dump_tdep): Ditto.
8718a420 11326 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
11327 Set store_return_value, extract_return_value, push_dummy_code,
11328 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11329 frame_unwind_append_sniffer, frame_base_set_default.
11330 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11331 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11332 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 11333 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
11334 init_extra_frame_info, frameless_function_invocation, frame_chain,
11335 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11336 dummy_write_sp.
8718a420 11337
6b9acc27
JJ
113382004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11339
11340 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11341 * valprint.c (print_hex_chars): Change from static to external.
11342 (print_char_chars): New function.
11343 * printcmd.c (print_scalar_formatted): For integer and enum types
11344 that are longer than LONGEST, perform processing via appropriate
11345 print_*_chars routines.
11346
a431654a
AC
113472004-02-26 Andrew Cagney <cagney@redhat.com>
11348
11349 * Makefile.in: Update dependencies.
11350 Changes from Ulrich Weigand,
11351 * s390-tdep.c: Include "dwarf2-frame.h".
11352 (s390_dwarf2_frame_init_reg): New function.
11353 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11354 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11355
fa8d40ab
JJ
113562004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11357
11358 * breakpoint.c (pending_break_support): New setting variable.
11359 (break_command_1): Account for pending_break_support setting
11360 when creating pending breakpoints.
11361 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11362 (_initialize_breakpoint): Add "set breakpoint pending" and
11363 "show breakpoint pending" commands.
11364
0dcd613f
AC
113652004-02-26 Andrew Cagney <cagney@redhat.com>
11366
11367 Fix PR i18n/1570.
11368 * charset.c (backslashable, backslashed, represented): Remove 'e'
11369 from list of escaped characters, not part of ISO-C.
11370
479272a3
JB
113712004-02-25 J. Brobecker <brobecker@gnat.com>
11372
11373 From Peter Schauer <schauer@pdf.de>:
11374 * tui/tui.c: Move system header includes after local includes.
11375 Fixes a build failure on solaris systems.
11376
7613d933
JB
113772004-02-25 J. Brobecker <brobecker@gnat.com>
11378
11379 * configure.in: Refine the previous change.
11380 * configure: Regenerate.
11381
9c1488cb
MK
113822004-02-25 Mark Kettenis <kettenis@gnu.org>
11383
11384 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11385 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11386 "amd64-tdep.h" instead of "x86-64-tdep.h".
11387 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11388 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11389 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11390 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11391 and "x86-64-tdep.c".
11392 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11393 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11394 and "x86-64-tdep.c".
11395 * amd64bsd-nat.c: Update copyright year.
11396 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11397 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11398 "x86-64-tdep.h".
11399 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11400 "x86-64-tdep.h".
11401 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11402 "x86-64-tdep.h".
11403 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11404 "x86-64-tdep.h".
11405 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11406 "x86-64-tdep.h".
11407 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11408 "x86-64-tdep.h".
8718a420 11409 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
11410 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11411 * Makefile.in (amd64_linux_tdep_h): Renamed from
11412 x86_64_linux_tdep_h.
11413 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11414 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11415 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11416 (amd64obsd-tdep.o): Update dependencies.
11417 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11418 dependencies.
11419 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11420 dependencies.
11421 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11422 amd64-linux-nat.c amd64-linux-tdep.c.
11423 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11424 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11425 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11426 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11427 amd64-tdep.o and amd64-linux-tdep.o.
11428 (TM_FILE): Set to tm-linux64.h.
11429 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11430 (NAT_FILE): Set to nm-linux64.h.
11431 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11432 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11433 amd64-tdep.o.
11434 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11435 amd64-tdep.o.
11436 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11437 amd64-tdep.o.
11438
4b8dad4a
RM
114392004-02-25 Roland McGrath <roland@redhat.com>
11440
11441 * remote.c (remote_protocol_qPart_auxv): New variable.
11442 (init_all_packet_configs): Initialize it.
11443 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11444 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11445 (show_remote_cmd): Call it.
11446 (_initialize_remote): Initialize commands.
11447 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11448 service TARGET_OBJECT_AUXV requests.
11449
66745969
JB
114502004-02-25 J. Brobecker <brobecker@gnat.com>
11451
11452 * configure.in: Make sure that the wborder function is available.
11453 Otherwise, search for it in the cur_colr library.
11454 * configure: Regenerate.
11455
79508e1e
AC
114562004-02-25 Andrew Cagney <cagney@redhat.com>
11457
11458 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11459
571ee600
MK
114602004-02-25 Mark Kettenis <kettenis@gnu.org>
11461
11462 * config/i386/tm-x86-64linux.h: Tweak comments.
11463
2b1b322f 114642004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
11465
11466 * MAINTAINERS: Add self to write-after-approval list.
11467
4d2acc65
AC
114682004-02-25 Andrew Cagney <cagney@redhat.com>
11469
4b8dad4a 11470 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
11471 * cli/cli-script.c (execute_control_command): Unconditionally
11472 install a cleanup. Default "ret" to "invalid_control". Use
11473 "break" instead of "return" to escape from the switch.
11474
4cfcaf21
JB
114752004-02-24 J. Brobecker <brobecker@gnat.com>
11476
11477 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11478 with the lines macro defined in term.h on AiX.
11479 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11480 a collision with the label_width macro defined in term.h on AiX.
11481
54a5c8d8
KB
114822004-02-23 David Mosberger <davidm@hpl.hp.com>
11483
11484 Committed by Kevin Buettner <kevinb@redhat.com>.
11485
11486 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11487 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11488 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11489 instead of ia64_write_pc().
11490 * ia64-linux-tdep.c (regcache.h): Include.
11491 (ia64_linux_write_pc): New function.
4b8dad4a 11492
8a1dac83
RM
114932004-02-23 Roland McGrath <roland@redhat.com>
11494
11495 * auxv.c (info_auxv_command): Fix typos in error messages.
11496
90f90721
MK
114972004-02-23 Mark Kettenis <kettenis@gnu.org>
11498
8a1dac83 11499 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11500 (enum amd64_regnum): New.
11501 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11502 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11503 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11504 (X86_64_XMM1_REGNUM): Removed.
11505 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11506 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11507 prototypes for renamed functions.
11508 * x86-64-tdep.c: Fix typo.
11509 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11510 register numbers.
11511 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11512 Use constants from `enum amd64_regnum' for register numbers.
11513 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11514 (amd64_analyze_prologue, amd64_frame_cache,
11515 amd64_sigtramp_frame_cache): Use constants from `enum
11516 amd64_regnum' for register numbers.
11517 (amd64_supply_fpregset): Adjust for renamed functions.
11518 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11519 `enum amd64_regnum' for register numbers.
11520 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11521 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11522 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11523 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11524 (amd64_linux_fill_gregset): Adjust for renamed macros.
11525 (fetch_core_registers): Adjust for renamed functions.
11526 (amd64_linux_init_abi): Adjust for renamed functions.
11527 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11528 renamed functions.
11529 * amd64-nat.c: Adjust for renamed macros.
11530 * amd64bsd-nat.c (fetch_inferior_registers)
11531 (store_inferior_registers): Use constants from `enum amd64_regnum'
11532 for register numbers. Adjust for renamed variables.
11533 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11534 renamed variables.
11535 (_initialize_amd64fbsd_nat): Use constants from `enum
11536 amd64_regnum' for register numbers.
11537 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11538 `enum amd64_regnum' for register numbers.
11539 (amd64fbsd_init_abi): Adjust for renamed functions.
11540 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11541 `enum amd64_regnum' for register numbers.
11542 (amd64nbsd_init_abi): Adjust for renamed functions.
11543 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11544 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11545 `enum amd64_regnum' for register numbers.
11546 (amd64obsd_init_abi): Adjust for renamed functions.
11547 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11548
d5479188
JJ
115492004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11550
11551 * breakpoint.c (print_one_breakpoint): Do not output spaces
11552 after printing <PENDING> for a pending breakpoint.
11553
81cb7cc9
JJ
115542004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11555
11556 * printcmd.c (print_scalar_formatted): Initialize val_long
11557 to remove compiler warning message.
11558
cbdeadca
JJ
115592004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11560
11561 * defs.h (nquery, yquery): New prototypes.
11562 * breakpoint.c (break_command_1): Use new nquery interface.
11563 * utils.c (defaulted_query, nquery, yquery): New functions.
11564
da6bab63
AC
115652004-02-23 Andrew Cagney <cagney@redhat.com>
11566
2f690297
AC
11567 * hppa-tdep.c (hppa_frame_align): New function.
11568 (hppa32_push_dummy_call): New function.
11569 (hppa64_push_dummy_call): New function.
11570 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11571 disabled.
8a1dac83 11572
da6bab63
AC
11573 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11574 FIX_CALL_DUMMY when push_dummy_call is available.
11575 (call_function_by_hand, push_dummy_code): Ditto.
11576
abf9b42d
AC
115772004-02-22 Andrew Cagney <cagney@redhat.com>
11578
11579 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11580 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11581 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11582 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11583 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11584 call_dummy_location to ON_STACK.
11585
10fc94a4
MK
115862004-02-22 Mark Kettenis <kettenis@gnu.org>
11587
51433e4b
MK
11588 * x86-64-linux-tdep.c: Tweak comment.
11589 (amd64_linux_supply_gregset): Renamed from
11590 x86_64_linux_supply_gresget.
11591 (amd64_linux_fill_gregset): Renamed from
11592 x86_64_linux_fill_gregset.
11593 (fetch_core_registers): Adjust for renamed functions.
11594 (amd64_core_fns): Renamed from x86_64_core_fns.
11595 (amd64_linux_sigtramp_start): Renamed from
11596 x86_64_linux_sigtramp_start.
11597 (amd64_linux_pc_in_sigtramp): Renamed from
11598 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11599 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11600 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11601 (amd64_linux_sigcontext_addr): Renamed from
11602 x86_64_linux_sigcontext_addr.
11603 (amd64_linux_sc_reg_offset): Renamed from
11604 x86_64_linux_sc_reg_offset.
11605 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11606 Adjust for renamed functions and variables.
11607 (_initialize_amd64_linux_tdep): Renamed from
11608 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11609 variables.
11610 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11611 Adjust for renamed functions.
11612
430eaf2e
MK
11613 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11614 from x86_64_linux_gregset64_reg_offset.
11615 (amd64_linux_gregset32_reg_offset): Rename from
11616 x86_64_linux_gregset64_reg_offset.
11617 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11618 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11619 (amd64_linux_dr_set_control): Renamed from
11620 x86_64_linux_dr_set_control. Adjust for renamed functions.
11621 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11622 Adjust for renamed functions.
11623 (amd64_linux_dr_reset_addr): Renamed from
11624 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11625 (amd64_linux_dr_get_status): Renamed from
11626 x86_64_linux_dr_get_status. Adjust for renamed functions.
11627 (_initialize_amd64_linux_nat): Renamed from
11628 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11629 functions.
11630 * config/i386/nm-x86-64linux.h: Update copyright year.
11631 Adjust for renamed functions.
11632
10fc94a4
MK
11633 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11634 amd64fbsd_sigtramp_start.
11635 (amd64fbsd_sigtramp_end_addr): Renamed from
11636 amd64fbsd_sigtramp_end.
11637 (amd64fbsd_init_abi): Adjust for renamed variables.
11638 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11639 variables.
11640 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11641 amd64fbsd_sigtramp_start.
11642 (amd64fbsd_sigtramp_end_addr): Renamed from
11643 amd64fbsd_sigtramp_end.
11644
343af405
AC
116452004-02-22 Andrew Cagney <cagney@redhat.com>
11646
537987fc
AC
11647 * hppa-tdep.c (hppa32_return_value): New function.
11648 (hppa64_return_value): New function.
11649 (hppa_gdbarch_init): Set return_value; keep disabled.
11650
fad850b2
AC
11651 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11652 struct-return and inferior function call methods.
11653
26d08f08
AC
11654 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11655 "frame-base.h".
11656 (struct hppa_frame_cache): Define.
11657 (hppa_frame_cache, hppa_frame_this_id): New functions.
11658 (hppa_frame_prev_register): New function.
11659 (hppa_frame_unwind, hppa_frame_base): New variables.
11660 (hppa_frame_unwind_sniffer): New function.
11661 (hppa_frame_base_address, hppa_unwind_pc): New function.
11662 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11663 sniffer, and frame base sniffer; keep disabled.
11664 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11665 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11666
e7d7bd65
AC
11667 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11668 to predicates for "seriously old code".
11669
e963316f
AC
11670 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11671 runtime if(0).
11672
56132691
AC
11673 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11674 unsigned.
11675 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11676
343af405
AC
11677 * config/pa/tm-hppa.h: Update copyright.
11678 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11679 (deprecated_init_frame_pc_default): Delete declaration.
11680 (hppa_frame_init_saved_regs): Delete declaration.
11681 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11682 * hppa-tdep.c: Include "arch-utils.h".
11683 (hppa_gdbarch_init): Set deprecated init_frame_pc
11684 and deprecated frame_init_saved_regs.
11685 (hppa_frame_init_saved_regs): Make static.
11686
f5859b4d
MK
116872004-02-22 Mark Kettenis <kettenis@gnu.org>
11688
86f6f8e7 11689 Remove old 386BSD support.
cf7c5c23 11690 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11691 * configure.host: Remove i[34567]86-*-bsd*.
11692 * configure.tgt: Remove i[34567]86-*-bsd*.
11693 * i386b-nat.c: Removed.
11694 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11695 (i386b-nat.o): Remove dependencies.
11696
86f6f8e7
MK
11697 * config/i386/i386bsd.mh: Removed.
11698 * config/i386/i386bsd.mt: Removed.
11699 * config/i386/nm-i386bsd.h: Removed.
11700 * config/i386/tm-i386bsd.h: Removed.
11701 * config/i386/xm-i386bsd.h: Removed.
11702
971218cd
MK
11703 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11704
7e654c37
MK
11705 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11706 (amd64fbsd_init_abi): Set link map offsets.
11707 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11708 (amd64nbsd_init_abi): Set link map offsets.
11709 * amd64obsd-tdep.c: Include "solib-svr4.h".
11710 (amd64obsd_init_abi): Set link map offsets.
11711 * i386fbsd-tdep.c: Include "solib-svr4.h".
11712 (i386fbsd_init_abi): Set link map offsets.
11713 * i386nbsd-tdep.c: Include "solib-svr4.h".
11714 (i386nbsdelf_init_abi): Set link map offsets.
11715 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11716 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11717 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11718 solib-legacy.o and core-aout.o. Reformat.
11719 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11720 solib-svr4.o, solib-legacy.o. Reformat.
11721 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11722 * config/i386/nbsdelf.mh: Reformat.
11723 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11724 solib-svr4.o, solib-legacy.o and corelow.o.
11725 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11726 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11727 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11728 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11729 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11730 (TM_FILE): Set to tm-fbsd.h.
11731 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11732 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11733 solib-svr4.o.
11734 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11735 solib-svr4.o.
11736 (TM_FILE): Set to nm-nbsd.h.
11737 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11738 Simplify shared library support. Don't include "elf/common.h".
11739 (SVR4_SHARED_LIBS): Don't define.
11740 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11741 "solib.h".
11742 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11743 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11744 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11745 Don't include "i386/tm-i386.h". Include "solib.h".
11746 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11747 Don't include "i386/tm-i386.h".
11748 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11749 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11750 Include "i386/xm-i386.h".
11751 (HOST_LONG_DOUBLE_FORMAT): Remove.
11752
5d93ae8c
MK
11753 Fix OpenBSD/i386 sigtramp recognition.
11754 * i386-tdep.h: Update copyright year.
11755 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11756 (i386bsd_sigtramp_end): New prototypes.
11757 (i386fbsd_sigtramp_start_addr): Renamed from
11758 i386fbsd_sigtramp_start.
11759 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11760 (i386obsd_sigtramp_start_addr): Renamed from
11761 i386obsd_sigtramp_start.
11762 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11763 * i386bsd-tdep.c: Update copyright year.
11764 (i386bsd_pc_in_sigtramp): Make public.
11765 * i386fbsd-nat.c: Update copyright year.
11766 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11767 * i386fbsd-tdep.c: Update copyright year.
11768 (i386fbsd_sigtramp_start_addr): Renamed from
11769 i386fbsd_sigtramp_start.
11770 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11771 (i386fbsdaout_init_abi): Adjust for renamed variables.
11772 * i386obsd-nat.c: Update copyright year.
11773 (_initialize_i386obsd_nat): Adjust for renamed variables.
11774 * i386obsd-tdep.c: Include "target.h".
11775 (i386obsd_page_size): New variable.
11776 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11777 (i386obsd_sigtramp_end): New functions.
11778 (i386obsd_sigtramp_start_addr): Renamed from
11779 i386obsd_sigtramp_start.
11780 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11781 (i386obsd_init_abi): Adjust for renamed variables. Set
11782 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11783 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11784
84d04465
MK
11785 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11786 trampoline change in OpenBSD kernel.
11787
b053aceb
MK
11788 * amd64-nat.c: Update copyright year.
11789 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11790 architecture from REGCACHE.
11791
f5859b4d
MK
11792 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11793 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11794
e4bbbda8
MK
117952004-02-21 Mark Kettenis <kettenis@gnu.org>
11796
ba361932
MK
11797 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11798 i[34567]86-*-openbsd3.[0-3].
11799 * config/i386/obsdaout.mh: New file.
11800
d3e48264
MK
11801 * config/i386/obsd.mh (MH_FLAGS): Remove.
11802
60a6eeb6
MK
11803 Fix PR build/1549.
11804 * i386obsd-tdep.c: Update copyright years. Include
11805 "solib-svr4.h".
11806 (i386obsd_init_abi): Don't set regset_from_core_section here.
11807 (i386obsd_aout_init_abi): New function. Set
11808 regset_from_core_section here.
11809 (i386obsd_elf_init_abi): New function.
11810 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11811 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11812 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11813 (TM_FILE): Set to tm-nbsd.h.
11814
11815 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11816 solib-sunos.o.
11817
e4bbbda8
MK
11818 * solib-svr4.h: Update copyright year.
11819 (svr4_ilp32_fetch_link_map_offsets)
11820 (svr4_lp64_fetch_link_map_offsets): New prototype.
11821 * solib-svr4.c: Update copyright year.
11822 (svr4_ilp32_fetch_link_map_offsets)
11823 (svr4_lp64_fetch_link_map_offsets): New function.
11824
f6fe98ef
DJ
118252004-02-20 Daniel Jacobowitz <drow@mvista.com>
11826
11827 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11828 to the partial symbol table.
11829
589ca796
JB
118302004-02-20 J. brobecker <brobecker@gnat.com>
11831
11832 * PROBLEMS: Add description of problem documented under gdb/1560.
11833
2031c21a
MK
118342004-02-20 Mark Kettenis <kettenis@gnu.org>
11835
30b344b1
MK
11836 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11837 comments.
11838 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11839 functions.
11840 (amd64obsd_init_abi): Reorder initializations. Use
11841 amd64obsd_r_reg_offset to initialize the general-purpose register
11842 set details. Set regset_from_core_section.
11843 (_initialize_amd64obsd_tdep): Rename from
11844 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11845 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11846 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11847
2031c21a
MK
11848 * NEWS (New native configurations): Mention OpenBSD/alpha.
11849 * configure.tgt: Add alpha*-*-openbsd*.
11850 * configure.host: Add alpha*-*-openbsd*.
11851 * alphanbsd-tdep.c: Update copyright year.
11852 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11853
42471775
AC
118542004-02-20 Andrew Cagney <cagney@redhat.com>
11855
11856 Fix PR tdep/1372.
11857 * configure.tgt: Delete target "none-*-*".
11858 * configure.host: Delete host "none-*-*".
11859 * config/none/none.mh: Delete file.
11860 * config/none/none.mt: Delete file.
11861 * config/none/xm-none.h: Delete file.
11862 * config/none/tm-none.h: Delete file.
11863 * config/none/nm-none.h: Delete file.
11864
960ccd7d
FF
118652004-02-19 Fred Fish <fnf@redhat.com>
11866
11867 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11868 cache->uses_fp prior to setting it.
11869
5f883edd
FF
118702004-02-19 Fred Fish <fnf@redhat.com>
11871
11872 Fix for PR breakpoint/1558.
11873 * sh-tdep.c (IS_JSR): New macro.
11874 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11875
f98c22d5
JB
118762004-02-19 Jim Blandy <jimb@redhat.com>
11877
11878 * findvar.c (value_from_register): Doc fix.
11879
95051d27
JJ
118802004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11881
11882 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11883 type being greater than sizeof of host's LONGEST. Always use
11884 unpack_long() unless format 'f' chosen.
11885
ccefbec3
EZ
118862004-02-19 Joel Brobecker <brobecker@gnat.com>
11887
11888 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11889
ccefbec3
EZ
11890 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11891 contains a symbol wich is the best, non-exact match for the given
11892 pc. Update comments.
11893
118942004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11895
2ede629f
EZ
11896 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11897 macro, which was part of the now removed Mach 3 port.
11898 * utils.c (request_quit): Ditto.
11899
567ee972
MK
119002004-02-18 Mark Kettenis <kettenis@gnu.org>
11901
11902 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11903 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11904
50cca7bb
MK
119052004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11906
11907 Committed by Mark Kettenis <kettenis@gnu.org>.
11908
11909 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11910 Define.
11911
226361c4
AC
119122004-02-18 Andrew Cagney <cagney@redhat.com>
11913
11914 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11915 CONFIG_INSTALL and CONFIG_UNINSTALL.
11916 * configure: Re-generate.
11917 * interps.h (INTERP_TUI): Define.
11918 * Makefile.in: Update dependencies.
11919 (TUI): New macro.
11920 (tui-main.o): Specify dependencies.
11921 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11922 * tui/tui-main.c: New file.
11923
49cfa46f
MK
119242004-02-18 Mark Kettenis <kettenis@gnu.org>
11925
e2879ccb
MK
11926 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11927 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11928 dependencies.
11929 * configure.host: Add x86_64-*-openbsd*.
11930 * configure.tgt: Add x86_64-*-openbsd*.
11931 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11932
c43f4bec
MK
11933 * tui/tui.c: Don't include <malloc.h>.
11934
09ae75b6
MK
11935 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11936 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11937 amd64nbsd-tdep.c.
11938
49cfa46f 11939 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11940 static. Remove extraneous whitespace.
49cfa46f
MK
11941 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11942 static.
11943
05957fdb
JB
119442004-02-17 Jim Blandy <jimb@redhat.com>
11945
11946 * findvar.c (value_from_register): Doc fix.
11947
d0f54f9d
JB
119482004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11949
11950 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11951
8a1dac83 11952 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11953 CORE_ADDR as type for selectors. Correct types for GNU run time
11954 message lookup function to use double indirection.
11955 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11956 * objc-lang.h (lookup_child_selector): Adapt prototype.
11957
9cbd5950
JB
11958 * s390-nat.c (SUBOFF): New macro.
11959 (supply_gregset, fill_gregset): Use it to handle debugging
11960 of 32-bit exectuables running under a 64-bit kernel.
11961 * s390-tdep.c: Include "solib-svr4.h".
11962 (s390_svr4_fetch_link_map_offset): New function.
11963 (s390x_svr_fetch_link_map_offset): Likewise.
11964 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11965 * Makefile.in (s390-tdep.o): Update dependencies.
11966
a8c99f38
JB
11967 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11968 "frame-unwind.h".
11969 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11970 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11971 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11972 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11973 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11974 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11975 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11976 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11977 (struct frame_extra_info): Remove.
11978 (s390_memset_extra_info): Remove.
f73b1eff
JB
11979 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11980 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11981 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11982 (is_rse): Renamed to ...
11983 (is_rsy): ... this. Support long displacements.
11984 (is_rxe): Renamed to ...
11985 (is_rxy): ... this. Support long displacements.
11986 (compute_x_addr): Support long displacements.
11987 (struct s390_prologue_data): New data type.
11988 (s390_on_stack): Change API to use struct s390_prologue_data.
11989 (s390_store): Reimplement.
11990 (s390_load): New function.
11991 (s390_get_signal_frame_info): Remove.
11992 (s390_get_frame_info): Remove, replace by ...
11993 (s390_analyze_prolog): ... this new function.
11994 (s390_check_function_end): Remove.
11995 (s390_function_start): Remove.
11996 (s390_frameless_function_invokation): Remove.
11997 (s390_is_sigreturn): Remove.
11998 (s390_init_frame_pc_first): Remove.
11999 (s390_init_frame_extra_info): Remove.
12000 (s390_frame_init_saved_regs): Remove.
12001 (s390_frame_saved_pc_nofix): Remove.
12002 (s390_frame_saved_pc): Remove.
12003 (s390_frame_chain): Remove.
12004 (s390_fp_regnum, s390_read_fp): Remove.
12005 (s390_pop_frame_regular, s390_pop_frame): Remove.
12006 (s390_saved_pc_after_call): Remove.
12007 (s390_skip_prologue): Reimplement.
12008 (s390_in_function_epilogue_p): Support long displacements.
12009 (struct s390_unwind_cache): New data structure.
12010 (s390_frame_unwind_cache): New function.
12011 (s390_prologue_frame_unwind_cache): Likewise.
12012 (s390_backchain_frame_unwind_cache): Likewise.
12013 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12014 (s390_frame_unwind): Define.
12015 (s390_frame_sniffer): New function.
12016 (struct s390_pltstub_unwind_cache): New data structure.
12017 (s390_pltstub_frame_unwind_cache): New function.
12018 (s390_pltstub_frame_this_id): Likewise.
12019 (s390_pltstub_frame_prev_register): Likewise.
12020 (s390_pltstub_frame_unwind): Define.
12021 (s390_pltstub_frame_sniffer): New function.
12022 (struct s390_sigtramp_unwind_cache): New data structure.
12023 (s390_sigtramp_frame_unwind_cache): New function.
12024 (s390_sigtramp_frame_this_id): Likewise.
12025 (s390_sigtramp_frame_prev_register): Likewise.
12026 (s390_sigtramp_frame_unwind): Define.
12027 (s390_sigtramp_frame_sniffer): New function.
12028 (s390_frame_base_address, s390_local_base_address): New functions.
12029 (s390_frame_base): Define.
12030 (s390_unwind_pc, s390_unwind_sp): New function.
12031 (s390_push_dummy_call): Use new frame base location.
12032 (s390_unwind_dummy_id): Likewise.
12033 (s390_gdbarch_init): Remove calls to:
12034 set_gdbarch_frameless_function_invocation,
12035 set_gdbarch_deprecated_init_frame_pc,
12036 set_gdbarch_deprecated_frame_chain,
12037 set_gdbarch_deprecated_frame_init_saved_regs,
12038 set_gdbarch_deprecated_pop_frame,
12039 set_gdbarch_deprecated_init_extra_frame_info,
12040 set_gdbarch_deprecated_init_frame_pc_first,
12041 set_gdbarch_deprecated_target_read_fp,
12042 set_gdbarch_deprecated_frame_saved_pc,
12043 set_gdbarch_deprecated_saved_pc_after_call,
12044 set_gdbarch_deprecated_fp_regnum.
12045 Add calls to:
12046 set_gdbarch_in_solib_call_trampoline,
12047 frame_unwind_append_sniffer,
12048 frame_base_set_default,
12049 set_gdbarch_unwind_pc,
12050 set_gdbarch_unwind_sp.
12051 * Makefile.in (s390-tdep.o): Update dependencies.
12052
b0cf273e
JB
12053 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12054 (S390_STACK_FRAME_OVERHEAD): Remove.
12055 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12056 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12057 (s390_promote_integer_argument): Remove.
12058 (s390_cannot_extract_struct_value_address): Remove.
12059 (s390_use_struct_convention, s390_store_struct_return): Remove.
12060 (s390_extract_return_value, s390_store_return_value): Remove.
12061 (s390_return_value_convention, s390_return_value): New functions.
12062 (is_float_singleton): Handle typedefs.
8a1dac83 12063 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
12064 Remove, replace by ...
12065 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12066 s390_function_arg_integer): ... these new functions.
12067 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12068 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12069 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12070 Fill in tdep->abi.
12071 Remove calls to:
12072 set_gdbarch_deprecated_store_struct_return,
12073 set_gdbarch_deprecated_extract_return_value,
12074 set_gdbarch_deprecated_store_return_value,
12075 set_gdbarch_use_struct_convention,
12076 set_gdbarch_extract_struct_value_address,
12077 set_gdbarch_deprecated_pc_in_call_dummy,
12078 set_gdbarch_deprecated_push_arguments,
12079 set_gdbarch_deprecated_save_dummy_frame_tos,
12080 set_gdbarch_deprecated_push_return_address,
12081 set_gdbarch_deprecated_sizeof_call_dummy_words,
12082 set_gdbarch_deprecated_call_dummy_words,
12083 set_gdbarch_deprecated_dummy_write_sp.
12084 Add calls to:
12085 set_gdbarch_push_dummy_call,
12086 set_gdbarch_unwind_dummy_id,
12087 set_gdbarch_return_value.
8a1dac83 12088
e1457d83
JB
12089 * config/s390/nm-linux.h: Update comments.
12090 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12091 (STOPPED_BY_WATCHPOINT): Redefine.
12092 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12093 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12094 (s390_stopped_by_watchpoint): Likewise.
12095 (watch_area_cnt): Remove.
12096 * s390-nat.c: Update comments.
12097 (watch_area): Remove typedef.
12098 Global replace watch_area by struct watch_area.
12099 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 12100 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
12101 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12102 (s390_fix_watch_points): Remove pid argument,
12103 use s390_inferior_tid. Recompute area spanned by watchpoints.
12104 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12105 argument. Reimplement.
12106
d0f54f9d
JB
12107 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12108 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12109 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 12110 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
12111 core-regset.o.
12112 * config/s390/s390x.mt: Remove.
12113 * config/s390/tm-s390.h: Remove.
12114 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12115 (TARGET_ELF64): Remove.
12116 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12117 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12118 s390*-*-* case; always set gdb_target to s390.
12119 * regformats/reg-s390.dat: Remove control registers.
12120 * regformats/reg-s390x.dat: Likewise.
12121 * s390-tdep.h: New file.
8a1dac83 12122 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
12123 Include "inferior.h" and "s390-tdep.h".
12124 Remove private definition of offsetof.
12125 (s390_register_u_addr): Remove.
12126 (regmap_gregset, regmap_fpregset): Define.
12127 (supply_gregset, fill_gregset): Reimplement.
12128 (supply_fpregset, fill_fpregset): Likewise.
12129 (s390_inferior_tid): New function.
12130 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12131 (fetch_inferior_registers, store_inferior_registers): Likewise.
12132 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12133 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12134 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12135 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12136 (struct gdbarch_tdep): Define.
12137 (struct s390_register_info): Define.
12138 (s390_register_info): New variable.
12139 (s390_register_name): Reimplement.
12140 (s390_register_type): New function.
12141 (s390_register_raw_size, s390x_register_raw_size): Remove.
12142 (s390_cannot_fetch_register): Remove.
12143 (s390_register_byte): Remove.
12144 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12145 (s390_dwarf_regmap): New variable.
12146 (s390_dwarf_reg_to_regnum): New function.
12147 (s390_stab_reg_to_regnum): Remove.
12148 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12149 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12150 (s390_convert_register_p): Likewise.
12151 (s390_register_to_value, s390_value_to_register): Likewise.
12152 (s390_register_reggroup_p): Likewise.
12153 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12154 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12155 (s390_supply_regset, s390_regset_from_core_section): New functions.
12156 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12157 (S390_FPR_SIZE): Likewise.
12158 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12159 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12160 (S390_NUM_GPRS): Move here from tm-s390.h.
12161 (S390_NUM_FPRS): Likewise.
12162 (s390_in_function_epilogue_p): New function.
12163 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12164 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12165 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12166 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12167 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12168 Remove calls to:
12169 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
12170 set_gdbarch_deprecated_max_register_virtual_size,
12171 set_gdbarch_deprecated_register_byte,
d0f54f9d 12172 set_gdbarch_cannot_fetch_register,
8a1dac83 12173 set_gdbarch_cannot_store_register,
d0f54f9d
JB
12174 set_gdbarch_deprecated_register_size,
12175 set_gdbarch_deprecated_register_raw_size,
12176 set_gdbarch_deprecated_register_virtual_size,
12177 set_gdbarch_deprecated_register_virtual_type,
12178 set_gdbarch_deprecated_register_bytes.
12179 Add calls to:
12180 set_gdbarch_num_pseudo_regs,
12181 set_gdbarch_register_type,
12182 set_gdbarch_convert_register_p,
12183 set_gdbarch_register_to_value,
12184 set_gdbarch_value_to_register,
12185 set_gdbarch_register_reggroup_p,
12186 set_gdbarch_regset_from_core_section,
12187 set_gdbarch_pseudo_register_read,
12188 set_gdbarch_pseudo_register_write,
12189 set_gdbarch_in_function_epilogue_p.
12190 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12191 (s390_tdep_h): New variable.
12192
8cfe231d
JB
121932004-02-17 Jim Blandy <jimb@redhat.com>
12194
4589a601
JB
12195 * findvar.c (value_from_register): If the type has no length, just
12196 return an acceptable value --- don't report an internal error.
12197
8cfe231d
JB
12198 * stabsread.c (read_type): If we find any type numbers that are
12199 forward references, complain if the references aren't resolved by
12200 the time we're finished reading.
12201 (cleanup_undefined_types): Make error message more appropriate for
12202 a complaint.
12203
5bf0017e
EZ
122042004-02-17 Elena Zannoni <ezannoni@redhat.com>
12205
9d62932d
EZ
12206 * Makefile.in (defs_h): Remove dependency on progress_h.
12207 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12208 progress.h.
12209 * main.c (captured_main): Delete use of START_PROGRESS and
12210 END_PROGRESS.
12211
122122004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 12213
5bf0017e
EZ
12214 * objfiles.c (terminate_minimal_symbol_table): Add back
12215 initialization of MSYMBOL_TYPE.
12216
9fc9f5e2
AC
122172004-02-17 David Mosberger <davidm@hpl.hp.com>
12218
12219 Committed by Andrew Cagney.
12220 * Makefile.in (ia64_tdep_h): New macro.
12221 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12222 (ia64-tdep.o): Likewise.
12223 * ia64-tdep.h: New file.
12224 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12225 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12226 (ia64_aix_sigcontext_register_address): Likewise.
12227 (ia64_linux_getunwind_table): Delete declaration.
12228 * ia64-linux-tdep.c: Likewise.
12229
76cd2bd9
CV
122302004-02-17 Corinna Vinschen <vinschen@redhat.com>
12231
12232 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12233 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12234 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12235
634aa483
AC
122362004-02-17 Andrew Cagney <cagney@redhat.com>
12237
12238 * symtab.c (skip_prologue_using_sal): New function.
12239 * symtab.h (skip_prologue_using_sal): Declare.
12240 * frv-tdep.c: Include "symtab.h".
12241 (skip_prologue_using_sal): Delete function.
12242 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12243 * rs6000-tdep.c (refine_prologue_limit): Mention
12244 skip_prologue_using_sal.
12245 * ia64-tdep.c (refine_prologue_limit): Ditto.
12246 * Makefile.in: Update dependencies.
12247
122482004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 12249
39ce7b3f
AC
12250 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12251 START_INFERIOR_TRAPS_EXPECTED.
12252 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12253 START_INFERIOR_TRAPS_EXPECTED.
12254 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12255 Delete macro.
12256 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12257 macro, moved to "nm-osf.h". Update copyright.
12258 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12259 update copyright.
12260
19772a2c
AC
12261 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12262 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12263 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12264 frameless_look_for_prologue.
12265 * frame.h (legacy_frameless_look_for_prologue): Rename
12266 frameless_look_for_prologue.
12267 * gdbarch.h, gdbarch.c: Re-generate.
12268 * sh64-tdep.c (sh64_gdbarch_init): Update.
12269 * sh-tdep.c (sh_gdbarch_init): Update.
12270 * s390-tdep.c (s390_gdbarch_init): Update.
12271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12272 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12273 * m68k-tdep.c (m68k_gdbarch_init): Update.
12274 (delta68_frame_args_address): Update.
12275 * m32r-tdep.c (m32r_gdbarch_init): Update.
12276 * hppa-tdep.c (hppa_gdbarch_init): Update.
12277 * h8300-tdep.c (h8300_gdbarch_init): Update.
12278 * frv-tdep.c (frv_gdbarch_init): Update.
12279 (frv_frameless_function_invocation): Update.
12280 * cris-tdep.c (cris_gdbarch_init): Update.
12281 (cris_frameless_function_invocation): Update.
12282 * avr-tdep.c (avr_gdbarch_init): Update.
12283 * arm-tdep.c (arm_gdbarch_init): Update.
12284 * stack.c (frame_info): Update, call predicate.
12285 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12286 * frame.c (legacy_get_prev_frame): Update, call predicate..
12287 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12288 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12289 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12290 invocation.
12291 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12292 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12293 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
12294
12295 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12296 function.
12297
7dcaac91
DJ
122982004-02-16 Daniel Jacobowitz <drow@mvista.com>
12299
12300 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12301 initializations.
12302
88289b6e
AC
123032004-02-16 Andrew Cagney <cagney@redhat.com>
12304
12305 * tui/tui-windata.c: Include "gdb_string.h".
12306 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12307 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12308 * Makefile.in: Update dependencies.
12309
9f976b41
DJ
123102004-02-16 Daniel Jacobowitz <drow@mvista.com>
12311
12312 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12313 * infrun.c: Include "gdb_assert.h".
12314 (singlestep_ptid, saved_singlestep_ptid)
12315 (stepping_past_singlestep_breakpoint): New variables.
12316 (resume): Set singlestep_ptid. Check for singlestep thread
12317 hop.
12318 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12319 (handle_inferior_event): Handle singlestep thread hop.
12320
c324d747
AC
123212004-02-16 Andrew Cagney <cagney@redhat.com>
12322
f090b9b1
AC
12323 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12324 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12325 (dwarf2_frame_init_reg): Ditto.
12326
fd33e6cb
AC
12327 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12328 suggested by Joshua Neuheisel
12329
c324d747
AC
12330 * configure.in: Always check for curses, including pdcurses.
12331 Warn, instead of error, when no curses are found. Enable TUI when
12332 curses is available.
12333 * configure: Re-generate.
12334
b66ba949
CV
123352004-02-16 Corinna Vinschen <vinschen@redhat.com>
12336
12337 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12338 sh_sh4_register_convert_to_virtual.
12339 (sh_register_convert_to_raw): Rename from
12340 sh_sh4_register_convert_to_raw.
12341 (sh_pseudo_register_read): Accomodate above name change.
12342 (sh_pseudo_register_write): Ditto.
12343
b58cbbf2
CV
123442004-02-16 Corinna Vinschen <vinschen@redhat.com>
12345
12346 * sh-tdep.c (sh_generic_register_name): Remove.
12347 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12348
5929a910
AC
123492004-02-15 Andrew Cagney <cagney@redhat.com>
12350
4566dfcf
AC
12351 * configure.in (build_warnings): Add -Wunused-function.
12352 * configure: Re-generate.
12353
db11ed55
AC
12354 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12355 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12356
46ac7a5d
AC
12357 * procfs.c (procfs_init_inferior): Assume that
12358 START_INFERIOR_TRAPS_EXPECTED is defined.
12359 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12360 * config/ns32k/tm-nbsd.h: Delete file,
12361 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12362
ba801595
AC
12363 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12364 * config/vax/tm-vax.h: Delete file.
12365
5929a910
AC
12366 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12367 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12368 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12369 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12370 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12371 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12372 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12373
8f22cb90
MK
123742004-02-15 Mark Kettenis <kettenis@gnu.org>
12375
12376 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12377 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12378 (struct dwarf2_frame_ops): New.
12379 (dwarf2_frame_default_init_reg): New function, based on
12380 dwarf2_frame_init_reg.
12381 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12382 (dwarf2_frame_init_reg): Call architecture-specific function.
12383 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12384 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12385 instead of dwarf2_frame_data.
12386 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12387 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12388
8132723e
AC
123892004-02-15 Andrew Cagney <cagney@redhat.com>
12390
046a4708
AC
12391 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12392 register_gdbarch_swap.
12393 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12394 * f-lang.c (_initialize_f_language): Update, use
12395 DEPRECATED_REGISTER_GDBARCH_SWAP.
12396 * remote.c (_initialize_remote): Ditto.
12397 * regcache.c (_initialize_regcache): Ditto.
12398 * parse.c (_initialize_parse): Ditto.
12399 * infrun.c (_initialize_infrun): Ditto.
12400 * mi/mi-main.c (_initialize_mi_main): Ditto.
12401 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 12402
549c1eea
AC
12403 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12404 poking .cacheable directly.
12405 * symfile.c (symfile_bfd_open): Ditto.
12406
0c0b39de
AC
12407 * Makefile.in: Update all dependencies.
12408
8132723e
AC
12409 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12410 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12411 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12412 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12413 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 12414
b9d26eb9
AC
124152004-02-14 Andrew Cagney <cagney@redhat.com>
12416
8e1f669a
AC
12417 * arch-utils.c (legacy_convert_register_p): Check
12418 DEPRECATED_REGISTER_CONVERTIBLE_P.
12419 * findvar.c (value_of_register): Ditto.
12420
cd0bfa36
AC
12421 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12422 * gdbarch.h, gdbarch.c: Re-generate.
12423 * arch-utils.c (deprecated_register_convertible_not): Delete.
12424 * arch-utils.h (deprecated_register_convertible_not): Delete.
12425 * mi/mi-main.c (get_register): Update. Update copyright.
12426 * infcmd.c (default_print_registers_info): Update.
12427
b9d26eb9
AC
12428 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12429 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12430 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 12431 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
12432 * frame.c (deprecated_get_next_frame_hack): Delete function.
12433 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12434 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12435 Update.
12436 * infcall.c (call_function_by_hand): Update.
12437
9ab9195f
EZ
124382004-02-14 Elena Zannoni <ezannoni@redhat.com>
12439
12440 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 12441 from here...
9ab9195f
EZ
12442 * objfiles.c (init_entry_point_info, entry_point_address):..to
12443 here.
12444 * symfile.h (init_entry_point_info, entry_point_address): Remove
12445 prototypes.
12446 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 12447 prototypes.
9ab9195f
EZ
12448 * cris-tdep.c: Remove include of symfile.h. Add include of
12449 objfiles.h.
12450 * infcall.c: Ditto.
12451 * mcore-tdep.c: Ditto.
12452 * mn10300-tdep.c: Ditto.
12453 * sh64-tdep.c: Ditto.
12454 * v850-tdep.c: Ditto.
12455 * arm-tdep.c: Remove include of symfile.h.
12456 * blockframe.c: Ditto.
12457 * coffread.c: Ditto.
12458 * dbxread.c: Ditto.
12459 * dwarf2read.c: Ditto.
12460 * dwarfread.c: Ditto.
8a1dac83 12461 * frv-tdep.c: Ditto.
9ab9195f
EZ
12462 * ia64-tdep.c: Ditto.
12463 * mdebugread.c: Ditto.
12464 * mipsread.c: Ditto.
8a1dac83 12465 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
12466 * s390-tdep.c: Ditto.
12467 * sh-tdep.c: Ditto.
8a1dac83 12468 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
12469 * gdbarch.sh: Remove include of symfile.h.
12470 * gdbarch.c: Regenerate.
12471 * solib-irix.c (enable_break): Use entry_point_address().
12472 Add comment about include file.
12473 * xcoffread.c: Add comment about include file.
8a1dac83
RM
12474 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12475 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12476 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12477 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
12478 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12479
c4c5b7ba
AC
124802004-02-13 Andrew Cagney <cagney@redhat.com>
12481
12482 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12483 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12484 copyright.
12485 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12486
3e7879de
FF
124872004-02-12 Fred Fish <fnf@redhat.com>
12488
12489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12490 set_gdbarch_store_return_value.
12491
6a7760b6
AC
124922004-02-12 Andrew Cagney <cagney@redhat.com>
12493
12494 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12495 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12496 (interrupt_query): Ditto.
12497 (ofunc): Delete unused variable.
12498 * cris-tdep.c (cris_abi): Delete unused function.
12499 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12500 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12501 (cris_get_asr_quick_shift_steps): Ditto.
12502 (cris_skip_prologue_frameless_p): Ditto.
12503 * arm-tdep.c (arm_push_return_address): Delete unused function.
12504 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12505 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12506 * s390-tdep.c (s390_function_start): Delete unused function.
12507
31687c3c
AC
125082004-02-12 Andrew Cagney <cagney@redhat.com>
12509
12510 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12511 gdbarch.h, gdbarch.c: Re-generate.
12512 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12513 to generic_prologue_frameless_p.
12514 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12515 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12516
6de918a6
DJ
125172004-02-11 Daniel Jacobowitz <drow@mvista.com>
12518
12519 * mips-linux-tdep.c: Include "frame.h".
12520 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12521 (mips_linux_skip_resolver): New functions.
12522 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12523 and set_gdbarch_in_solib_call_trampoline.
12524 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12525 to after set_gdbarch_in_solib_return_trampoline. Only set the
12526 solib hooks to mips16 functions if the OS ABI is unknown.
12527 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12528 including "config/tm-linux.h".
12529 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12530 * Makefile.in (mips-linux-tdep.o): Update.
12531
87b3ede8
DC
125322004-02-11 David Carlton <carlton@kealia.com>
12533
12534 * linespec.c (decode_compound): Only look for a class symbol when
12535 considering all but the rightmost component.
12536
5979bc46
AC
125372004-02-11 Andrew Cagney <cagney@redhat.com>
12538
12539 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12540 abi code are are separatly grouped.
12541
5867a2fb
AC
125422004-02-11 Andrew Cagney <cagney@redhat.com>
12543
12544 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12545 * gdbarch.h, gdbarch.c: Re-generate.
12546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12547 * v850-tdep.c (v850_gdbarch_init): Update.
12548 * sh64-tdep.c (sh64_gdbarch_init): Update.
12549 * sh-tdep.c (sh_gdbarch_init): Update.
12550 * s390-tdep.c (s390_gdbarch_init): Update.
12551 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12552 * mips-tdep.c (mips_gdbarch_init): Update.
12553 * mcore-tdep.c (mcore_gdbarch_init): Update.
12554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12555 * m32r-tdep.c (m32r_gdbarch_init): Update.
12556 * ia64-tdep.c (ia64_gdbarch_init): Update.
12557 * hppa-tdep.c (hppa_gdbarch_init): Update.
12558 * h8300-tdep.c (h8300_gdbarch_init): Update.
12559 * frv-tdep.c (frv_gdbarch_init): Update.
12560 * d10v-tdep.c (d10v_gdbarch_init): Update.
12561 * cris-tdep.c (cris_gdbarch_init): Update.
12562 * avr-tdep.c (avr_gdbarch_init): Update.
12563 * arm-tdep.c (arm_gdbarch_init): Update.
12564 * alpha-tdep.c (alpha_gdbarch_init): Update.
12565
026a72f8
CV
125662004-02-11 Corinna Vinschen <vinschen@redhat.com>
12567
12568 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12569 comma.
12570 (sh_sh4al_dsp_register_name): Ditto.
12571
3903d437
AC
125722004-02-10 Andrew Cagney <cagney@redhat.com>
12573
12574 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12575 (mips_init_frame_pc_first): Delete function.
12576 (mips_frame_saved_pc): Delete function.
12577 (mips_frame_chain): Delete function.
12578 (mips_init_extra_frame_info): Delete function.
12579 (mips_xfer_register): Delete unused variable "reg".
12580 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12581 (mips_n32n64_return_value): Delete unused variable "reg".
12582 (mips_n32n64_return_value): Delete unused variable "pos".
12583 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12584 (mips_o32_return_value): Delete unused variable "pos".
12585 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12586 (mips_print_fp_register): Delete unused variable "namelen"
12587 (mips_print_fp_register): Delete unused variable "flt2"
12588 (get_frame_pointer): Delete function.
12589 (cached_proc_desc): Delete static variable.
12590 (mips_pop_frame): Delete function.
12591 (mips_find_saved_regs): Delete function.
12592 (mips_get_saved_register): Delete function.
12593 (mips_saved_pc_after_call): Delete function.
12594 (SIGFRAME_BASE): Delete macro.
12595 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12596 (SIGFRAME_PC_OFF): Delete macro.
12597 (SIGFRAME_REGSAVE_OFF): Delete macro.
12598 (mips_dump_tdep): Do not print deleted macro definitions.
12599
b9fb98bd
AC
126002004-02-10 Andrew Cagney <cagney@redhat.com>
12601
12602 * Makefile.in (SFILES): Remove explictly listed tui files.
12603 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12604
78ced177 126052004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12606
78ced177
JJ
12607 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12608 to use paddr functions to format ia64 addresses and long values.
12609 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12610 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12611 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12612 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12613 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12614
6a83354a
AC
126152004-02-10 Andrew Cagney <cagney@redhat.com>
12616
12617 * defs.h: Do not include "tui.h".
12618 * gdb_curses.h: New file.
12619 * tui/tui-hooks.h: New file.
12620 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12621 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12622 (tui_initialize_io): Delete declaration.
12623 (tui_initialize_readline: Delete redundant declaration.
12624 (struct tui_point): Delete definition.
12625 * tui/tui-data.h (struct tui_point): Define.
12626 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12627 * utils.c: Include "tui/tui.h".
12628 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12629 * printcmd.c [TUI]: Include "tui/tui.h".
12630 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12631 * tui/tui-command.c: Include "gdb_curses.h".
12632 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12633 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12634 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12635 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12636 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12637 * Makefile.in: Update all dependencies.
12638 (tui_hooks_h, gdb_curses_h): Define.
12639 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12640
997470ef
EZ
126412004-02-10 Elena Zannoni <ezannoni@redhat.com>
12642
12643 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12644 auxf2. Add comments about some other rarely used fields.
12645
4ff2cc4d
AC
126462004-02-10 Andrew Cagney <cagney@redhat.com>
12647
12648 * Makefile.in (init.c): Fix script removing duplicates. Problem
12649 reported by Peter Schauer.
12650
1ab21617
EZ
126512004-02-09 Elena Zannoni <ezannoni@redhat.com>
12652
12653 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12654 obstack_specify_allocation.
12655 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12656 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12657 (allocate_rt_common_objfile): Ditto.
12658 * symfile.c (reread_symbols): Ditto.
12659 * gdb_obstack.h: Add comment.
12660
17763fd9
EZ
126612004-02-09 Elena Zannoni <ezannoni@redhat.com>
12662
12663 * linespec.c (decode_line_1, locate_first_half)
12664 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12665 commented out code.
12666
ec5cdd75
DJ
126672004-02-09 Daniel Jacobowitz <drow@mvista.com>
12668
12669 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12670 obstack_free.
12671
43b54b88
AC
126722004-02-09 Andrew Cagney <cagney@redhat.com>
12673
12674 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12675 fails, try find_pc_section. Fix PR c++/1267.
12676 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12677 instead of find_pc_mapped_section.
12678 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12679 not default to the section containing PC. Fix PR symtab/1519.
12680
edfae063
AC
126812004-02-09 Andrew Cagney <cagney@redhat.com>
12682
12683 * Makefile.in (mips-tdep.o): Update dependencies.
12684 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12685 "trad-frame.h".
12686 (mips_unwind_pc): Return the pseudo PC register.
12687 (mips_unwind_dummy_id): New function.
12688 (mips16_fetch_instruction): New function.
12689 (mips32_fetch_instruction): New function.
12690 (struct mips_frame_cache): Define.
12691 (mips_mdebug_frame_cache): New function.
12692 (mips_mdebug_frame_this_id): New function.
12693 (mips_mdebug_frame_prev_register): New function.
12694 (mips_mdebug_frame_unwind): Define.
12695 (mips_mdebug_frame_sniffer): New function.
12696 (mips_mdebug_frame_base_address): New function.
12697 (mips_mdebug_frame_base): Define.
12698 (mips_mdebug_frame_base_sniffer): New function.
12699 (mips_gdbarch_init): Append unwind and base sniffers. Set
12700 unwind_dummy_id.
12701
defc864c
AC
127022004-02-08 Andrew Cagney <cagney@redhat.com>
12703
6764ddad
AC
12704 * frame.c: Print both the register number and name.
12705
defc864c
AC
12706 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12707 and a sed into a single sed. Make .c and .o patterns more robust.
12708 (OBS): Delete.
12709 (INIT_FILES): Replace OBS with COMMON_OBS.
12710 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12711
645d6d10
MK
127122004-02-08 Mark Kettenis <kettenis@gnu.org>
12713
12714 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12715 the PT_WCOOKIE request.
12716
23e3c3fc
AC
127172004-02-08 Andrew Cagney <cagney@redhat.com>
12718
58dfe9ff
AC
12719 * mips-tdep.c (mips_unwind_pc): New function.
12720 (mips_gdbarch_init): Set mips_unwind_pc.
12721
1152e35e
AC
12722 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12723 (get_frame_id): Allow the UNKNOWN_FRAME.
12724 (frame_register_unwind, get_frame_type): Ditto.
12725
31b75dbf
AC
12726 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12727 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12728 unwind_dummy_id indicates a legacy frame.
12729
3483b318
AC
12730 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12731 * configure: Re-generate.
12732
23e3c3fc
AC
12733 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12734 methods.
12735
33f8ca73
AC
127362004-02-08 Andrew Cagney <cagney@redhat.com>
12737
12738 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12739 makefile macro.
12740 * configure: Re-generate.
12741 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12742 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12743 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12744 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12745 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12746 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12747 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12748 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12749 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12750 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12751
6ba8e26f 127522004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12753
20d286a5
AC
12754 * Makefile.in: Update all dependencies.
12755
d836ee13
AC
12756 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12757 * configure: Re-generate.
12758 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12759 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12760 (COMMON_OBS): Add "main.o" and "annotate.o".
12761 (ANNOTATE_OBS): Delete.
12762 (OBS): Remove ANNOTATE_OBS.
12763 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12764 CONFIG_INITS.
12765 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12766 against CONFIG_OBS and "main.o".
12767 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12768 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12769
d02c80cd
AC
12770 * tui/tui-command.c: Include "gdb_string.h", delete register
12771 attribute, use ISO-C function signatures.
12772 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12773 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12774 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12775 * tui/tui.c: Ditto.
6ba8e26f
AC
12776
12777 * tui/tui-command.c: Change variable and function names to lower
12778 case.
12779 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12780 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12781 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12782 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12783 * tui/tui-winsource.c, tui/tui.c: Ditto.
12784
4a146b47
EZ
127852004-02-07 Elena Zannoni <ezannoni@redhat.com>
12786
12787 * buildsym.c (free_pending_blocks, finish_block)
12788 (record_pending_block, make_blockvector, end_symtab): Replace
12789 symbol_obstack with objfile_obstack.
8a1dac83 12790 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12791 (coff_read_enum_type): Ditto.
8a1dac83 12792 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12793 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12794 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12795 (dwarf2_symbol_mark_computed): Ditto.
12796 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12797 * elfread.c (elf_symtab_read): Ditto.
12798 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12799 (hpread_read_enum_type, hpread_read_function_type)
12800 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12801 Ditto.
8a1dac83 12802 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12803 (java_link_class_type): Ditto.
8a1dac83 12804 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12805 (new_symbol): Ditto.
12806 * minsyms.c (install_minimal_symbols): Ditto.
12807 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12808 (terminate_minimal_symbol_table): Replace symbol_obstack with
12809 objfile_obstack.
12810 (free_objfile): Remove freeing of symbol_obstack.
12811 * objfiles.h: Remove symbol_obstack field.
12812 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12813 objfile_obstack.
12814 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12815 symbol_obstack.
12816 (solib_add_common_symbols): Replace symbol_obstack with
12817 objfile_obstack.
12818 * somsolib.c (som_solib_add): Ditto.
12819 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12820 (common_block_start, common_block_end): Ditto.
12821 * symfile.c (reread_symbols): Remove freeing and init of
12822 symbol_obstack.
12823 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12824 * symfile.h: Update comment.
12825 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12826 stats printing.
12827 * symtab.c (symbol_set_names): Replace symbol_obstack with
12828 objfile_obstack.
12829 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12830 Update comments.
12831 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12832 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12833 objfile_obstack.
12834
6d012f14
AC
128352004-02-07 Andrew Cagney <cagney@redhat.com>
12836
12837 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12838 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12839 fields and variables.
12840 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12841 (m_beInvisible): Delete macro.
12842 * tui/tui-data.h: Fix case case fields and variables.
12843 (m_genWinPtrIsNull): Delete macro.
12844 (tui_win_list): Rename winList.
12845 (TUI_SRC_WIN): Rename srcWin.
12846 (TUI_DISASM_WIN): Rename disassemWin.
12847 (TUI_DATA_WIN): Rename dataWin.
12848 (TUI_CMD_WIN): Rename cmdWin.
12849 (m_genWinPtrNotNull): Delete macro.
12850 (m_winPtrIsNull): Delete macro.
12851 (m_winPtrNotNull): Delete macro.
12852 (tui_win_is_source_type): Replace m_winIsSourceType
12853 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12854 (tui_win_has_locator): Replace m_hasLocator.
12855 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12856 m_setWinHighlightOff.
12857 * tui/tui-data.c: Update references.
12858 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12859 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12860 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12861 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12862 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12863 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12864 * tui/tui-winsource.c, tui/tui.c: Ditto.
12865
7d34766b
MK
128662004-02-07 Mark Kettenis <kettenis@gnu.org>
12867
1c800673
MK
12868 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12869 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12870 StackGhost.
12871
7d34766b
MK
12872 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12873 variable `i6' to `i7'.
12874 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12875
22940a24
AC
128762004-02-07 Andrew Cagney <cagney@redhat.com>
12877
12878 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12879 (TuiPoint, TuiPointPtr): Ditto.
12880 (TuiStatus, TuiStatusPtr): Ditto.
12881 (TuiWinType, TuiWinTypePtr): Ditto.
12882 (struct tui_point): Rename _TuiPoint.
12883 (tui_get_low_disassembly_address): Rename
12884 tuiGetLowDisassemblyAddress.
12885 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12886 (tuiFree): Delete declaration.
12887 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12888 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12889 * tui/tui.c (tuiFree): Delete function.
12890 * cli/cli-cmds.c (disassemble_command): Update references.
12891 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12892 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12893 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12894 * tui/tui-winsource.c: Ditto.
12895
8b92e4d5
EZ
128962004-02-07 Elena Zannoni <ezannoni@redhat.com>
12897
12898 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12899 coffstab_build_psymtabs, elfstab_build_psymtabs)
12900 (stabsect_build_psymtabs): Replace psymbol_obstack with
12901 objfile_obstack.
12902 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12903 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12904 Ditto.
12905 * dwarfread.c (scan_compilation_units): Ditto.
12906 * elfread.c (elfstab_offset_sections): Ditto.
12907 * hppa-tdep.c (read_unwind_info): Ditto.
12908 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12909 (hpread_end_psymtab): Ditto.
12910 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12911 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12912 Ditto.
12913 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12914 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12915 (build_objfile_section_table): Ditto.
12916 (allocate_objfile): Remove init of psymbol_obstack.
12917 (free_objfile): Remove freeing of psymbol_obstack.
12918 * objfiles.h (struct objfile): Remove field
12919 psymbol_obstack. Update comments.
12920 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12921 psymbol_obstack with objfile_obstack.
12922 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12923 psymbol_obstack.
12924 * somread.c (som_symfile_offsets, init_import_symbols)
12925 (init_export_symbols): Replace psymbol_obstack with
12926 objfile_obstack.
12927 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12928 * symfile.c (default_symfile_offsets, syms_from_objfile)
12929 (reread_symbols): Remove freeing and init of psymbol_obstack.
12930 (cashier_psymtab): Update comment.
12931 * symmisc.c (print_objfile_statistics): Don't report stats for
12932 psymbol obstack.
12933 * symtab.h (struct general_symbol_info, struct partial_symtab):
12934 Update comments.
12935 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12936 (xcoff_symfile_offsets): Replace psymbol_obstack with
12937 objfile_obstack.
12938
b99607ea
EZ
129392004-02-07 Elena Zannoni <ezannoni@redhat.com>
12940
12941 * objfiles.h (struct objfile): Add objfile_obstack field.
12942 Remove type_obstack field.
12943
12944 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12945 read_structure_scope read_enumeration, new_symbol): Replace
12946 type_obstack with objfile_obstack.
12947 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12948 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12949 (lookup_fundamental_type): Ditto.
12950 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12951 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12952 (hpread_read_doc_function_type, hpread_read_struct_type)
12953 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12954 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12955 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12956 (java_link_class_type): Ditto.
12957 * mdebugread.c (parse_type): Ditto.
12958 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12959 * solib-sunos.c (solib_add_common_symbols): Ditto.
12960 * stabsread.c (define_symbol, read_type, read_member_functions,
12961 read_cpp_abbrev, read_one_struct_field): Ditto.
12962 * symfile.c (reread_symbols): Ditto.
12963 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12964
2a8854a7
AC
129652004-02-07 Andrew Cagney <cagney@redhat.com>
12966
12967 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12968 (tui_exec_info_content): Rename TuiExecInfoContent.
12969 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12970 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12971 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12972 (TuiList, TuiListPtr): Ditto.
12973 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12974 (TuiDataType, TuiDataTypePtr): Ditto.
12975 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12976 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12977 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12978 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12979 (TuiDataElement, TuiDataElementPtr): Ditto.
12980 (TuiWinElement, TuiWinElementPtr): Ditto.
12981 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12982 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12983 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12984 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12985 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12986 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12987 * tui/tui-command.c, tui/tui-data.c: Update references.
12988 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12989 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12990 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12991 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12992
05cbe71a
MK
129932004-02-07 Mark Kettenis <kettenis@gnu.org>
12994
12995 * dwarf2-frame.h: Update copyright.
12996 (enum dwarf2_frame_reg_rule): New.
12997 (struct dwarf2_frame_state_reg): New.
12998 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12999 * dwarf2-frame.c: Update copyright.
13000 (enum dwarf2_reg_rule): Remove.
13001 (struct dwarf2_frame_state): Remove defenition of `struct
13002 dwarf2_frame_state_reg'.
13003 (read_reg): Call get_frame_arch to get the architecture instead of
13004 using CURRENT_GDBARCH.
13005 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13006 DWARF2_FRAME_.
13007 (dwarf2_frame_init_reg): New function.
13008 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13009 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13010 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13011 tags with DWARF2_FRAME_.
13012 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13013 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13014 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13015
ec7d9e56
AC
130162004-02-06 Andrew Cagney <cagney@redhat.com>
13017
dd1abb8c
AC
13018 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13019 (enum tui_data_type): Rename _TuiDataType.
13020 (struct tui_layout_def): Rename _TuiLayoutDef.
13021 (struct tui_source_element): Rename _TuiSourceElement.
13022 (struct tui_data_element): Rename _TuiDataElement.
13023 (struct tui_command_element): Rename _TuiCommandElement.
13024 (struct tui_locator_element): Rename _TuiLocatorElement.
13025 (union tui_which_element): Define.
13026 (struct tui_win_element): Rename _TuiWinElement.
13027 (struct tui_data_info): Rename _TuiDataInfo.
13028 (struct tui_source_info): Rename _TuiSourceInfo.
13029 (struct tui_command_info): Rename _TuiCommandInfo.
13030 (tui_initialize_static_data): Rename initializeStaticData.
13031 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13032 (tui_alloc_win_info): Rename allocWinInfo.
13033 (tui_init_generic_part): Rename initGenericPart.
13034 (tui_init_win_info): Rename initWinInfo.
13035 (tui_alloc_content): Rename allocContent.
13036 (tui_add_content_elements): Rename addContentElements.
13037 (tui_init_content_element): Rename initContentElement.
13038 (tui_free_window): Rename freeWindow.
13039 (tui_free_win_content): Rename freeWinContent.
13040 (tui_free_data_content): Rename freeDataContent.
13041 (tui_free_all_source_wins_content): Rename
13042 freeAllSourceWinsContent.
13043 (tui_del_window): Rename tuiDelWindow.
13044 (tui_del_data_windows): Rename tuiDelDataWindows.
13045 (tui_partial_win_by_name): Rename partialWinByName.
13046 (tui_win_name): Rename winName.
13047 (tui_current_layout): Rename currentLayout.
13048 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13049 (tui_term_height): Rename termHeight.
13050 (tui_set_term_height_to): Rename setTermHeightTo.
13051 (tui_term_width): Rename termWidth.
13052 (tui_set_term_width_to): Rename setTermWidthTo.
13053 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13054 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13055 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13056 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13057 (tui_source_windows): Rename sourceWindows.
13058 (tui_clear_source_windows): Rename clearSourceWindows.
13059 (tui_clear_source_windows_detail): Rename
13060 clearSourceWindowsDetail.
13061 (tui_clear_win_detail): Rename clearWinDetail.
13062 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13063 (tui_default_tab_len): Rename tuiDefaultTabLen.
13064 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13065 (tui_win_with_focus): Rename tuiWinWithFocus.
13066 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13067 (tui_layout_def): Rename tuiLayoutDef.
13068 (tui_win_resized): Rename tuiWinResized.
13069 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13070 (tui_next_win): Rename tuiNextWin.
13071 (tui_prev_win): Rename tuiPrevWin.
13072 (tui_add_to_source_windows): Rename addToSourceWindows.
13073 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13074 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13075 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13076 * tui/tui.c, tui/tui-data.c: Ditto.
13077 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13078 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13079
a358af15
AC
13080 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13081 (struct symtab): Declare.
13082 (tui_set_source_content): Rename tuiSetSourceContent.
13083 (tui_show_symtab_source): Rename tuiShowSource.
13084 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13085 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13086 * tui/tui-source.c: Update copyright. Update references.
13087 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13088 * tui/tui-stack.c: Update references.
13089
a21fcd8f
AC
13090 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13091 (struct tui_win_info): Declare.
13092 (tui_scroll_forward): Rename tuiScrollForward.
13093 (tui_scroll_backward): Rename tuiScrollBackward.
13094 (tui_scroll_left): Rename tuiScrollLeft.
13095 (tui_scroll_right): Rename tuiScrollRight.
13096 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13097 (tui_resize_all): Rename tuiResizeAll.
13098 (tui_refresh_all_win): Rename tuiRefreshAll.
13099 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13100 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13101 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13102 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13103
edae1ccf
AC
13104 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13105 (tui_erase_data_content): Rename tuiEraseDataContent.
13106 (tui_display_all_data): Rename tuiDisplayAllData.
13107 (tui_check_data_values): Rename tuiCheckDataValues.
13108 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13109 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13110 (tui_first_data_element_no_in_line): Rename
13111 tuiFirstDataElementNoInLine.
13112 (tui_delete_data_content_windows): Rename
13113 tuiDeleteDataContentWindows.
13114 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13115 (tui_display_data_from): Rename tuiDisplayDataFrom.
13116 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13117 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13118 * tui/tui-win.c, tui/tui-regs.c: Update references.
13119 * tui/tui-layout.c, tui/tui.c: Update references.
13120
ec7d9e56
AC
13121 * tui/tui-wingeneral.h: Update copyright.
13122 (m_allBeVisible): Delete macro.
8a1dac83 13123 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
13124 (struct tui_gen_win_info): Declare.
13125 (struct tui_win_info): Declare.
13126 (tui_unhighlight_win): Rename unhighlightWin.
13127 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13128 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13129 (tui_make_window): Rename makeWindow.
13130 (tui_copy_win): Rename copyWin.
13131 (tui_box_win): Rename boxWin.
13132 (tui_highlight_win): Rename highlightWin.
13133 (tui_check_and_display_highlight_if_needed): Rename
13134 checkAndDisplayHighlightIfNeeded.
13135 (tui_refresh_all): Rename refreshAll.
13136 (tui_delete_win): Rename tuiDelwin.
13137 (tui_refresh_win): Rename tuiRefreshWin.
13138 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13139 (tui_make_visible, tui_make_invisible): New functions.
13140 (tui_make_all_visible, tui_make_all_invisible): New functions.
13141 (make_all_visible): Rename makeAllVisible.
13142 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13143 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13144 * tui/tui-windata.c, tui/tui-win.c: Update references.
13145 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13146 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13147
1e52e2eb
MK
131482004-02-06 Mark Kettenis <kettenis@gnu.org>
13149
13150 * proc-api.c (write_with_trace): Initialize local variable to
13151 silence compiler warning.
13152
f80bda8e
AC
131532004-02-06 Andrew Cagney <cagney@redhat.com>
13154
13155 * tui/tui-source.h: Do not include "defs.h".
13156 (struct tui_win_info): Declare.
13157 (tui_set_source_content_nil): Declare.
13158 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13159 (union tui_line_or_address): Rename _TuiLineOrAddress.
13160 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13161 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13162 (tui_update_source_window_as_is): Rename
13163 tuiUpdateSourceWindowAsIs.
13164 (tui_update_source_windows_with_addr): Rename
13165 tuiUpdateSourceWindowsWithAddr.
13166 (tui_update_source_windows_with_line): Rename
13167 tuiUpdateSourceWindowsWithLine.
13168 (tui_clear_source_content): Rename tuiClearSourceContent.
13169 (tui_erase_source_content): Rename tuiEraseSourceContent.
13170 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13171 (tui_show_source_content): Rename tuiShowSourceContent.
13172 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13173 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13174 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13175 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13176 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13177 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13178 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13179 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13180 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13181 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13182 (struct tui_win_info): Declare.
13183 * tui/tui-stack.c: Update references.
13184 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13185 * tui/tui-win.c, tui/tui-source.c: Ditto.
13186 * tui/tui.c, tui/tui-disasm.c: Ditto.
13187
9fbfb822
MK
131882004-02-06 Mark Kettenis <kettenis@gnu.org>
13189
13190 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13191 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13192
03cebad2
MK
131932004-02-05 Mark Kettenis <kettenis@gnu.org>
13194
13195 * infrun.c (handle_inferior_event): Allow for breakpoint
13196 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13197 and SIGEMT. Update comments.
13198 * NEWS (Revised SPARC target): Mention support for non-executable
13199 stack.
13200
290281b1
MK
132012004-02-04 Mark Kettenis <kettenis@gnu.org>
13202
13203 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13204 * inftarg.c: Update copyright year.
13205 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13206 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13207 (sparc_xfer_wcookie): New function.
13208 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13209 * Makefile.in (sparc-nat.o): Update dependencies.
13210 * config/sparc/nm-nbsd.h: Include "target.h".
13211 (NATIVE_XFER_WCOOKIE): New define.
13212 (sparc_xfer_wcookie): New prototype.
13213
212161df
AC
132142004-02-04 Andrew Cagney <cagney@redhat.com>
13215
13216 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13217 SYSCALL_TRAP function.
13218 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13219
6e4c6c91
DJ
132202004-02-04 Andrew Cagney <cagney@redhat.com>
13221 Daniel Jacobowitz <drow@mvista.com>
13222
13223 * objfiles.h: Delete comments refering to inside_entry_func and
13224 DEPRECATED_FRAME_CHAIN_VALID.
13225 * defs.h (inside_entry_func): Update prototype..
13226 * blockframe.c (inside_entry_func): Rename to
13227 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13228 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13229
cae688ec
JJ
132302004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13231
13232 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13233 outside of #ifdef SOLIB_ADD region.
13234 (do_restore_lang_radix_cleanup): Ditto.
13235 (resolve_pending_breakpoint): Ditto.
13236
19217676
AC
132372004-02-03 Andrew Cagney <cagney@redhat.com>
13238
13239 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13240 (process_note_abi_tag_sections): Delete unused function.
13241 (ia64_read_fp): Delete unused function.
13242 (gdbarch_extract_struct_value_address): Delete declaration.
13243
876753be
AC
132442004-02-02 Andrew Cagney <cagney@redhat.com>
13245
13246 * vax-tdep.c (vax_frame_chain): Delete call to
13247 deprecated_inside_entry_file.
13248 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13249
d4f10bf2
MK
132502004-02-02 Mark Kettenis <kettenis@gnu.org>
13251
13252 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13253 column that's "empty" or "same value" when eliminating REG_RA
13254 rules.
13255
cae688ec
JJ
132562004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13257
13258 * NEWS: Add information about new pending breakpoint support.
13259
0101ce28
JJ
132602004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13261
13262 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13263 and pending fields for pending breakpoint support.
13264 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13265 (condition_command): Only parse condition if not a pending
13266 breakpoint.
13267 (print_one_breakpoint): Add support for pending breakpoints.
13268 (describe_other_breakpoints): Add checks to verify we are not
13269 dealing with pending breakpoints.
13270 (check_duplicates): Don't check pending breakpoints.
13271 (set_raw_breakpoint): Initialize pending flag.
13272 (do_restore_lang_radix_cleanup): New cleanup routine.
13273 (resolve_pending_breakpoint): New function.
13274 (re_enable_breakpoints_in_shlibs): Try and resolve any
13275 pending breakpoints via resolve_pending_breakpoint.
13276 (mention): Add pending breakpoint support.
13277 (parse_breakpoint_sals): Add new parameter to pass to
13278 decode_line_1 to indicate silent errors when files or functions
13279 are not found. Change all callers.
13280 (do_captured_parse_breakpoint): New function.
13281 (break_command_1): Change prototype to return an rc value and to
13282 take an optional pending breakpoint pointer. Support creating
13283 a pending breakpoint if a "not found" form of error occurs when
13284 parsing the breakpoint. Also support resolving an existing pending
13285 breakpoint and be silent if the resolution fails.
13286 (create_breakpoints): Change prototype to take pending breakpoint
13287 pointer. When resolving a pending breakpoint, use the new pointer
13288 to provide a conditional or commands added by the end-user.
13289 (delete_breakpoint): Add appropriate check for pending.
13290 (breakpoint_re_set_one): Ditto.
13291 (do_enable_breakpoint): Ditto.
13292
8d577d32
DC
132932004-02-02 David Carlton <carlton@kealia.com>
13294
13295 * valops.c (enum oload_classification): New.
13296 (find_overload_match): Break implementation into separate
13297 functions; delete #if 0'd code; look for symbols within
13298 namespaces.
13299 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13300 (find_oload_champ,oload_method_static,classify_oload_match): New.
13301 * cp-support.h: Add declaration for cp_func_name; update
13302 declaration for make_symbol_overload_list.
13303 * cp-support.c (cp_func_name): New.
13304 (overload_list_add_symbol): Fix comment, use
13305 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13306 (make_symbol_overload_list): Take a function name and a namespace
13307 instead of a symbol; change implementation.
13308 (make_symbol_overload_list_using): New.
13309 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13310
22e8e3c7
FF
133112004-02-02 Fred Fish <fnf@redhat.com>
13312
13313 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 13314 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
13315 * remote-sim.c (gdb_os_write_stderr): Write output to
13316 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13317 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 13318 gdb_stderr stream and update copyright years.
22e8e3c7 13319
6b753f60
DJ
133202004-02-01 Daniel Jacobowitz <drow@mvista.com>
13321
13322 * Makefile.in (mips-linux-nat.o): Update dependencies.
13323 * mips-linux-nat.c: Include mips-tdep.h.
13324
133252004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
13326
13327 * sol-thread.c (sol_thread_xfer_partial): New function.
13328 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13329 (init_sol_core_ops): Likewise.
13330
13331 * procfs.c (procfs_xfer_partial): New function.
13332 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13333 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13334
13335 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13336 procfs_xfer_auxv function.
13337
13338 * procfs.c (procfs_make_note_section): If we can read
13339 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13340 * linux-proc.c (linux_make_note_section): Likewise.
13341
13342 * auxv.h: New file.
13343 * auxv.c: New file.
13344 * Makefile.in (auxv_h): New variable.
13345 (COMMON_OBS): Add auxv.o here.
13346 (auxv.o): New target.
13347
13348 * corelow.c (core_xfer_partial): New function.
13349 (init_core_ops): Use it for core_ops.to_xfer_partial.
13350
13351 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13352 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13353 macro if that is defined.
13354
fa5281d0
DJ
133552004-02-01 Daniel Jacobowitz <drow@mvista.com>
13356
13357 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13358 and check the specified thread for each breakpoint.
13359 * breakpoint.h (bpstat_stop_status): Update prototype.
13360 * infrun.c (handle_inferior_event): Update calls to
13361 bpstat_stop_status.
13362
26ee262d
DJ
133632004-02-01 Daniel Jacobowitz <drow@mvista.com>
13364
13365 * Makefile.in (cli-cmds.o): Add $(readline_h).
13366
d9b52655
DJ
133672004-02-01 Daniel Jacobowitz <drow@mvista.com>
13368
13369 * cli/cli-cmds.c: Include readline.h.
13370 (complete_command): Pass the start of the last word to
13371 complete_line.
13372
9709f61c
DJ
133732004-01-31 Daniel Jacobowitz <drow@mvista.com>
13374
13375 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13376 argument, and change first argument to a CORE_ADDR.
13377 * breakpoint.h (bpstat_stop_status): Update prototype.
13378 * infrun.c (adjust_pc_after_break): Add a new comment.
13379 (handle_inferior_event): Update calls to bpstat_stop_status.
13380
4f1280bb
DJ
133812004-01-31 Daniel Jacobowitz <drow@mvista.com>
13382
13383 * breakpoint.h: Update copyright years.
13384
4fa8626c
DJ
133852004-01-31 Daniel Jacobowitz <drow@mvista.com>
13386
13387 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13388 (bpstat_stop_status): Don't decrement PC.
13389 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13390 prototype.
13391 * infrun.c (adjust_pc_after_break): New function.
13392 (handle_inferior_event): Call it, early. Remove later references
13393 to DECR_PC_AFTER_BREAK.
13394 (normal_stop): Add commentary.
13395
fad0733a
DJ
133962004-01-31 Daniel Jacobowitz <drow@mvista.com>
13397
13398 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13399 2004-01-27 double-free fix.
13400
42cdca6c
MK
134012004-01-31 Mark Kettenis <kettenis@gnu.org>
13402
13403 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13404 (sparc32_frame_prev_register): Handle StackGhost.
13405 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13406
932d5416
RM
134072004-01-29 Roland McGrath <roland@redhat.com>
13408
13409 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13410 * configure: Regenerated.
13411
13412 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13413 * Makefile.in (procfs.o): Add dep.
13414
47d3492a
AC
134152004-01-28 Andrew Cagney <cagney@redhat.com>
13416
13417 * tui/tui-stack.h: Update copyright.
13418 (struct frame_info): Add opaque declaration.
13419 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13420 (tui_show_locator_content): Rename tuiShowLocatorContent.
13421 (tui_show_frame_info): Rename tuiShowFrameInfo.
13422 * tui/tui-stack.c: Update copyright. Update references.
13423 * tui/tui-winsource.c: Update references.
13424 * tui/tui-win.c: Update references.
13425 * tui/tui-layout.c: Update references.
13426 * tui/tui-hooks.c: Update copyright, update references.
13427 * tui/tui.c: Update copyright, update references.
13428 * tui/tui-disasm.c: Update references.
13429
5d51ca54
DC
134302004-01-28 David Carlton <carlton@kealia.com>
13431
13432 * dwarf2read.c (add_partial_structure): Use demangled name if
13433 namespace equals "".
13434
086ed43d
JB
134352004-01-27 Jim Blandy <jimb@redhat.com>
13436
13437 Clean up misapplied patch:
13438 * dwarf2read.c (determine_prefix): Change one of the two forward
13439 declarations for 'determine_prefix_aux' to a declaration for this.
13440 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13441 argument to 'die_specification'.
13442
2a35147e
JB
13443 * dwarf2read.c (read_func_scope): Re-indent comment.
13444
a355c7de 134452004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 13446
a355c7de
AC
13447 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13448 b->exp to NULL after freeing so that error during re-parsing or
13449 evaluation of expressions associated with breakpoint don't
13450 eventually lead to re-freeing of storage.
13451 Committed by Andrew Cagney.
13452
63ff5125
AC
134532004-01-27 Andrew Cagney <cagney@redhat.com>
13454
13455 * source.c (ambiguous_line_spec): Delete undefined declaration.
13456 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13457 (m32r_set_server_address, m32r_set_download_path): Ditto.
13458 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13459
e142c38c
DJ
134602004-01-27 Daniel Jacobowitz <drow@mvista.com>
13461
13462 * dwarf2read.c: Update calls to changed and renamed functions, and
13463 references to moved variables.
13464
13465 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13466 language, language_defn, list_in_scope, and ftypes members.
13467 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13468 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13469 (baseaddr): Remove globals.
13470
13471 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13472 (set_cu_language, die_is_declaration, die_specification)
13473 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13474 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13475 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13476 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13477
13478 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13479 cu.list_in_scope. Don't initialize cu_header_offset.
13480 (add_partial_symbol): Add local baseaddr.
13481 (psymtab_to_symtab_1): Add local baseaddr. Use
13482 objfile->section_offsets for consistency. Don't initialize
13483 cu_header_offset; do initialize cu.header.offset and
13484 cu.list_in_scope.
13485 (read_file_scope, read_func_scope, read_lexical_block_scope)
13486 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13487
c6e06ede
MC
134882004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13489
fb328ecc 13490 * PROBLEMS: Add gdb/1516.
c6e06ede 13491
48184fd4
AC
134922003-12-29 Robert Millan <robertmh@gnu.org>
13493
13494 Patch committed by Andrw Cagney.
13495 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13496 * configure.tgt: Match knetbsd*-gnu.
13497
c1321b30
AC
134982004-01-26 Andrew Cagney <cagney@redhat.com>
13499
f3699be3
AC
13500 * breakpoint.c (catch_command_1): Delete #ifdef code.
13501 (catch_fork_command_1): Delete #ifdef wrapper.
13502 (catch_exec_command_1): Ditto.
13503 (catch_load_command_1): Ditto.
13504 (catch_unload_command_1): Ditto.
13505
c1321b30
AC
13506 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13507 (catch_breakpoint): Delete #if0ed function.
13508 (disable_catch_breakpoint): Ditto.
13509 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13510 (disable_catch, enable_catch, delete_catch): Ditto.
13511
b4501125
AC
135122004-01-26 Andrew Cagney <cagney@redhat.com>
13513
13514 * remote.c (echo_check, quit_flag): Delete variables.
13515 (cisco_kernel_mode): Delete variable.
13516 (minitelnet_return, tty_input, escape_count): Delete variables.
13517 (remote_cisco_mode): Delete variable.
13518 (remote_cisco_open, remote_cisco_close): Delete function.
13519 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13520 (init_remote_cisco_ops): Delete function.
13521 (_initialize_remote): Do not install "remote cisco" code.
13522 (read_frame): Delete cisco specific code.
13523 (remote_info_process): Delete function.
13524 (remote_wait): Delete cisco specific code.
13525 (remote_cisco_section_offsets): Delete function.
13526 (remote_cisco_objfile_relocate): Delete function.
13527 (remote_async_wait): Delete cisco specific code.
13528 (minitelnet, readtty, readsocket): Delete function.
13529
74055713
AC
135302004-01-26 Andrew Cagney <cagney@redhat.com>
13531
13532 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13533 comments mentioning extract_returned_value_address.
13534 * infcmd.c (print_return_value): Update. Add comments on
13535 extract_returned_value_address.
13536 * stack.c (return_command): Add comments on
13537 extract_returned_value_address.
13538 * values.c: Update comment.
13539 * m32r-tdep.c: Update comment.
13540 * sparc-tdep.c: Update comment.
13541 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13542 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13543 * sh64-tdep.c (sh64_gdbarch_init): Update.
13544 * sh-tdep.c (sh_gdbarch_init): Update.
13545 * s390-tdep.c (s390_gdbarch_init): Update.
13546 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13547 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13548 * m68k-tdep.c (m68k_gdbarch_init): Update.
13549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13550 * m32r-tdep.c (m32r_gdbarch_init): Update.
13551 * ia64-tdep.c (ia64_gdbarch_init): Update.
13552 * h8300-tdep.c (h8300_gdbarch_init): Update.
13553 * frv-tdep.c (frv_gdbarch_init): Update.
13554 * arm-tdep.c (arm_gdbarch_init): Update.
13555 * alpha-tdep.c (alpha_gdbarch_init): Update.
13556
a67af2b9
AC
135572004-01-26 Andrew Cagney <cagney@redhat.com>
13558
13559 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13560 SYMBOL_LOCATION_FUNCS
13561 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13562 "struct symbol_ops".
13563 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13564 type to "struct symbol_ops".
13565 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13566 (struct symbol): Replace ".aux_value.loc.funcs" and
13567 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13568 (SYMBOL_OBJFILE): Delete macro.
13569 (SYMBOL_LOCATION_FUNCS): Delete macro.
13570 (SYMBOL_LOCATION_BATON): Update.
13571 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13572 intead of SYMBOL_LOCATION_FUNCS.
13573 * ax-gdb.c (gen_var_ref): Ditto.
13574 * printcmd.c (address_info): Ditto.
13575 * findvar.c (read_var_value): Ditto.
13576 (symbol_read_needs_frame): Ditto.
13577
c034e007
AC
135782004-01-26 Andrew Cagney <cagney@redhat.com>
13579
13580 * dwarf2read.c (read_func_scope): Document frame-base hack.
13581
bb472c1e
MK
135822004-01-25 Mark Kettenis <kettenis@gnu.org>
13583
13584 * infcmd.c (print_return_value): Plug memory leak; delete
13585 ui_stream object. Rename argument `structure_return' to
13586 `struct_return'.
13587
c8e737d5
MK
135882004-01-25 Mark Kettenis <kettenis@gnu.org>
13589
f941662f
MK
13590 * infcmd.c (print_return_value): Wrap long lines.
13591 (finish_command_continuation, finish_command): Remove unused
13592 variable `funcaddr'. Fix some coding-standards problems.
13593
c558d81a 13594 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13595 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13596 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13597 TDEP->fpregset to zero.
13598
bf1e5861 13599 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13600 floating-point registers for traditional NetBSD core files.
13601 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13602 TDEP->sizeof_fpregset here.
13603
4c72d57a
MK
136042004-01-25 Mark Kettenis <kettenis@gnu.org>
13605
566626fa
MK
13606 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13607 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13608 function with code split out from
13609 sparc32nbsd_sigcontext_frame_cache.
13610 (sparc32nbsd_sigcontext_frame_cache): Use
13611 sparc32nbsd_sigcontext_saved_regs.
13612 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13613 OpenBSD.
13614 * sparcobsd-tdep.c: New file.
13615 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13616 (sparcobsd-tdep.o): New dependency.
13617 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13618 * config/sparc/obsd.mt: New file.
13619
4c72d57a
MK
13620 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13621 TDEP->fpregset to be initialized to enable core file register
13622 sets.
13623
7e5e9f88
MK
136242004-01-24 Mark Kettenis <kettenis@gnu.org>
13625
f0f207fd 13626 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13627 Add opaque declarations.
13628 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13629 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13630 function with code split out from
13631 sparc64nbsd_sigcontext_frame_cache.
13632 (sparc64nbsd_sigcontext_frame_cache): Use
13633 sparc64nbsd_sigcontext_saved_regs.
13634 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13635 OpenBSD.
13636 * sparc64obsd-tdep.c: New file.
13637 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13638 (sparc64obsd-tdep.o): New dependency.
13639 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13640 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13641 * config/sparc/obsd64.mt: New file.
13642
690668cc
MK
13643 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13644 read the instruction at PC.
13645
7e5e9f88
MK
13646 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13647 value of GDB_OSABI_DEFAULT.
13648 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13649 instead of GDB_OSABI_NETBSD_AOUT.
13650
68b6dce9
NR
136512004-01-24 Nick Roberts <nick@nick.uklinux.net>
13652
13653 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13654 copyright.
13655
080ce8c0
AC
136562004-01-23 Andrew Cagney <cagney@redhat.com>
13657
13658 * printcmd.c (display_command): Replace tui_set_display call with
13659 tui_set_layout_for_display_command.
13660 * tui/tui.h (enum tui_win_type): Define.
13661 (tui_set_layout): Delete declaration.
13662 (tui_set_layout_for_display_command): Rename set_tui_layout.
13663 * tui/tui-data.h (enum tui_layout_type): Define.
13664 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13665 "tui.h".
13666 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13667 (tui_default_win_height): Rename tuiDefaultWinHeight.
13668 (tui_default_win_viewport_height): Rename
13669 tuiDefaultWinViewportHeight.
13670 (tui_set_layout): RenametuiSetLayout.
13671 * tui/tui-layout.c: Update references.
13672 * tui/tui.c: Update references.
13673 * tui/tui-disasm.c: Update references.
13674
b368761e
DC
136752004-01-23 David Carlton <carlton@kealia.com>
13676
13677 Partial workaround for PR c++/1511:
13678 * cp-namespace.c: Include frame.h.
13679 (cp_lookup_transparent_type): New
13680 (cp_lookup_transparent_type_loop): New.
13681 * cp-support.h: Declare cp_lookup_transparent_type.
13682 * symtab.c (basic_lookup_transparent_type): Renamed from
13683 lookup_transparent_type.
13684 (lookup_transparent_type): Replace old body by a call to
13685 current_language->la_lookup_transparent_type.
13686 * symtab.h: Update copyright. Declare
13687 basic_lookup_transparent_type.
13688 * language.h: Update copyright.
13689 (struct language_defn): Add la_lookup_transparent_type.
13690 * language.c: Update copyright.
13691 (unknown_language_defn): Add basic_lookup_transparent_type.
13692 (auto_language_defn): Add basic_lookup_transparent_type.
13693 (local_language_defn): Add basic_lookup_transparent_type.
13694 * ada-lang.c: Update copyright.
13695 (ada_language_defn): Add basic_lookup_transparent_type.
13696 * c-lang.c: Update copyright.
13697 (c_language_defn): Add basic_lookup_transparent_type.
13698 (cplus_language_defn): Add basic_lookup_transparent_type.
13699 (asm_language_defn): Add basic_lookup_transparent_type.
13700 (minimal_language_defn): Add basic_lookup_transparent_type.
13701 * f-lang.c: Update copyright.
13702 (f_language_defn): Add basic_lookup_transparent_type.
13703 * jv-lang.c: Update copyright.
13704 (java_language_defn): Add basic_lookup_transparent_type.
13705 * m2-lang.c: Update copyright.
13706 (m2_language_defn): Add basic_lookup_transparent_type.
13707 * objc-lang.c: Update copyright.
13708 (objc_language_defn): Add basic_lookup_transparent_type.
13709 * p-lang.c: Update copyright.
13710 (p_language_defn): Add basic_lookup_transparent_type.
13711 * scm-lang.c: Update copyright.
13712 (scm_language_defn): Add basic_lookup_transparent_type.
13713 * Makefile.in (cp-namespace.o): Depend on frame.h.
13714
fdde2d81
DC
137152004-01-23 David Carlton <carlton@kealia.com>
13716
13717 Patch for PR c++/1520:
13718 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13719 properly if we have a specification die.
13720 (determine_prefix_aux): Rename from determine_prefix.
13721 (determine_prefix): Like the old determine_prefix, but never
13722 returns NULL.
13723
5b828b6b
TR
137242004-01-23 Theodore A. Roth <troth@openavr.org>
13725
13726 * avr-tdep.c: Update copyright.
13727 (avr_iaddr_p): Delete unused function.
13728 (avr_saddr_p): Delete unused function.
13729
a1b8c067
DC
137302004-01-23 David Carlton <carlton@kealia.com>
13731
13732 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13733 Fix for PR symtab/1534.
13734
f2cab569
MK
137352004-01-23 Mark Kettenis <kettenis@gnu.org>
13736
13737 * NEWS (New native configurations): Mention OpenBSD/sparc and
13738 OpenBSD/sparc64.
13739 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13740 * configure.host: Likewise.
13741 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13742 handler for OpenBSD.
13743 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13744
642d8300
MK
137452004-01-22 Mark Kettenis <kettenis@gnu.org>
13746
89aac506
MK
13747 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13748 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13749
36662fde
MK
13750 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13751 * cli/cli-cmds.c (shell_escape): Likewise.
13752
642d8300
MK
13753 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13754 OpenBSD .note.openbsd.ident sections.
13755
fae299cd
DC
137562004-01-22 David Carlton <carlton@kealia.com>
13757
13758 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13759 get_scope_pc_bounds.
13760 (read_file_scope): Ditto.
13761 (get_scope_pc_bounds): New function, produced by extracting code
13762 from the above two functions, consolidating it, and adding support
13763 for DW_TAG_namespace.
13764
a49d618c
MK
137652004-01-22 Mark Kettenis <kettenis@gnu.org>
13766
13767 * osabi.c (MAX_NOTESZ): New define.
13768 (check_note): New function.
13769 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13770 check_note.
13771
fe61caab
RM
137722004-01-21 Roland McGrath <roland@redhat.com>
13773
13774 * MAINTAINERS (write after approval): Add myself.
13775
ec145965
EZ
137762004-01-21 Eli Zaretskii <eliz@gnu.org>
13777
13778 * utils.c (init_page_info): Move declarations of `rows' and
13779 `cols' before the __GO32__-specific code. Move the closing brace
13780 outside the #ifdef __GO32__..#endif block.
13781 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13782
877522db
PB
137832004-01-21 Paul Brook <paul@codesourcery.com>
13784
13785 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13786 BPSTAT_WHAT_CHECK_SHLIBS.
13787
dbf5be1c
PB
137882004-01-21 Paul Brook <paul@codesourcery.com>
13789
13790 * MAINTAINERS: Add myself to write-after-approval.
13791
81f08b92
AC
137922004-01-20 Andrew Cagney <cagney@redhat.com>
13793
5a1efed7
AC
13794 * ax-gdb.c (print_axs_value): Delete unused function.
13795 * jv-lang.c (java_lookup_type): Delete unused function.
13796 * cli/cli-dump.c (dump_filetype): Delete unused function.
13797 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13798 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13799 (mips_getstring): Delete unused function.
13800 (pmon_insert_breakpoint): Delete #if0ed function.
13801 (PMON_MAX_BP): Delete #if0ed MACRO.
13802 (mips_pmon_bp_info): Delete #if0ed variable.
13803 (pmon_remove_breakpoint): Delete #if0ed function.
13804 * monitor.c (monitor_write_even_block): Delete unused function.
13805 (monitor_write_memory_block): Delete #if0ed code.
13806 * dink32-rom.c (dink32_load): Delete unused function.
13807 (_initialize_dink32_rom): Delete #if0ed code.
13808 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13809
b0a30fce
AC
13810 * tui/tui-command.c: Update references.
13811 * tui/tui-io.c: Update references.
13812 * tui/tui-command.h: Update copyright.
13813 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13814
81f08b92
AC
13815 * source.c (ambiguous_line_spec): Delete never-defined function.
13816 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13817 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13818 * cli/cli-cmds.c (validate_comname): Ditto.
13819
65f05602
AC
13820 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13821 "tui-data.h".
13822 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13823 (tui_show_disassem): Rename tuiShowDisassem.
13824 (tui_show_disassem_and_update_source): Rename
13825 tuiVerticalDisassemScroll.
13826 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13827 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13828 * tui/tui.h: Update copyright.
13829 (enum tui_status): Define.
13830 * tui/tui-data.h (enum tui_scroll_direction): Define.
13831 * tui/tui-disasm.c: Update copyright. Update references.
13832 * tui/tui-winsource.c: Update copyright. Update references.
13833 * tui/tui-win.c: Update references.
13834 * tui/tui-layout.c: Update references.
13835
6bb0384f
AC
138362004-01-20 Andrew Cagney <cagney@redhat.com>
13837
13838 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13839 sym2 to start of block.
13840
9175c9a3
MC
138412004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13842
13843 * MAINTAINERS: Delete mmalloc.
13844 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13845 * NEWS: Mention removal of --with-malloc.
13846 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13847 * config.in: Regenerate.
13848 * configure: Regenerate.
6bb0384f
AC
13849 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13850 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13851 * gdbinit.in: Remove mmalloc.
13852 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13853 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13854 * config/i386/go32.mh: Likewise.
13855 * config/i386/interix.mh: Likewise.
13856 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13857
4fcef00a
JJ
138582004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13859
13860 * linespec.c (decode_variable, symtab_from_filename): Call
13861 error_silent with error message instead of throwing an exception
13862 directly.
13863 * defs.h (error_silent, error_output_message): Add prototypes.
13864 (catch_exceptions_with_msg): Ditto.
13865 * utils.c (error_silent, error_output_message): New functions.
13866 * top.c (catch_exceptions_with_msg): New function.
13867
8e94b928
NR
138682004-01-20 Nick Roberts <nick@nick.uklinux.net>
13869
13870 * mi/mi-cmds.h (enum print_values): Add definition.
13871
13872 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13873 type and value for simple data types and just the name and type
13874 for complex ones, if required.
13875
13876 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13877 children, if required.
13878
a02d6af8
KB
138792004-01-19 Kevin Buettner <kevinb@redhat.com>
13880
13881 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13882 unused declarations.
13883
78a4a9b9
AC
138842004-01-19 Andrew Cagney <cagney@redhat.com>
13885
13886 * top.h (mapped_symbol_files): Delete declaration.
13887 * main.c (captured_main): Delete option "m" and "mapped".
13888 * objfiles.c (mapped_symbol_files): Delete variable.
13889 * symfile.c (symbol_file_command): Delete mmap code.
13890 (symbol_file_add_with_addrs_or_offsets): Ditto.
13891 (add_symbol_file_command, reread_separate_symbols): Ditto.
13892 * objfiles.h (OBJF_MAPPED): Delete.
13893 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13894 (free_objfile) [USE_MMALLOC]: Ditto.
13895 (open_existing_mapped_file): Delete function.
13896 (open_mapped_file): Delete function.
13897 (map_to_file): Delete function.
13898
2dbd5e30
KB
138992004-01-19 Kevin Buettner <kevinb@redhat.com>
13900
13901 * infrun.c (step_into_function): Account for possible breakpoint
13902 adjustment when computing ``stop_func_start''.
13903
437b434f
KB
139042004-01-19 Kevin Buettner <kevinb@redhat.com>
13905
13906 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13907 the region size against the size of a pointer, not the size of
13908 a register as given by DEPRECATED_REGISTER_SIZE.
13909
55fb0713
AC
139102004-01-19 Andrew Cagney <cagney@redhat.com>
13911
13912 * tui/tui-regs.h: Include "tui-data.h".
13913 (tuiFirstRegElementNoInLine): Delete declaration.
13914 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13915 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13916 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13917 (tui_calculate_regs_column_count): Rename
13918 tuiCalculateRegsColumnCount.
13919 (tui_check_register_values): Rename tuiCheckRegisterValues.
13920 (tui_show_registers): Rename tuiShowRegisters.
13921 (tui_display_registers_from_line): Rename
13922 tuiDisplayRegistersFromLine.
13923 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13924 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13925 (tui_first_reg_element_no_inline): Rename
13926 tuiFirstRegElementNoInLine.
13927 * tui/tui-data.h: Update copyright.
13928 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13929 * tui/tui-windata.c: Update copyright, update references.
13930 * tui/tui-regs.c: Update copyright, update references.
13931 * tui/tui-win.c: Update copyright, update references.
13932 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13933
cebe9500
AC
139342004-01-18 Andrew Cagney <cagney@redhat.com>
13935
bcdf1568
AC
13936 * tui/tui-io.c: Update copyright.
13937 (key_is_end_sequence, key_is_backspace): New functions.
13938 (key_is_command_char, key_is_start_sequence): New function.
13939 (tui_getc): Update references.
13940 * tui/tui-io.h: Update copyright.
13941 (m_tuiStartNewLine): Delete macro.
13942 (m_isBackspace, m_isDeleteChar): Delete macros.
13943 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13944 (m_isNextPage, m_isPrevPage): Delete macros.
13945 (m_isLeftArrow, m_isRightArrow): Delete macros.
13946 (m_isXdbStyleCommandChar): Delete macro.
13947 (key_is_start_sequence): Declare, replace m_isStartSequence.
13948 (key_is_end_sequence): Declare, replace m_isEndSequence.
13949 (key_is_backspace): Declare ,replace m_isBackspace.
13950 (key_is_command_char): Declare, replace m_isCommandChar.
13951 * tui/tui-command.c: Update copyright.
13952 (tuiDispatchCtrlChar): Update references.
13953
130d87e6
AC
13954 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13955 tuiSourceWin.h.
13956
d7b2e967
AC
13957 * tui/tui-command.c: Rename tui/tuiCommand.c.
13958 * tui/tui-command.h: Rename tui/tuiCommand.h.
13959 * tui/tui-data.c: Rename tui/tuiData.c.
13960 * tui/tui-data.h: Rename tui/tuiData.h.
13961 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13962 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13963 * tui/tui-io.c: Rename tui/tuiIO.c.
13964 * tui/tui-io.h: Rename tui/tuiIO.h.
13965 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13966 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13967 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13968 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13969 * tui/tui-source.c: Rename tui/tuiSource.c.
13970 * tui/tui-source.h: Rename tui/tuiSource.h.
13971 * tui/tui-stack.c: Rename tui/tuiStack.c.
13972 * tui/tui-stack.h: Rename tui/tuiStack.h.
13973 * tui/tui-win.c: Rename tui/tuiWin.c.
13974 * tui/tui-win.h: Rename tui/tuiWin.h.
13975 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13976 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13977 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13978 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13979 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13980 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13981 * tui/tui-file.c: Update includes.
13982 * tui/tui-hooks.c: Update includes.
13983 * tui/tui-interp.c: Update includes.
13984 * tui/tui.c: Update includes.
13985 * Makefile.in: Update all tui/ dependencies.
13986 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13987
b2100910
AC
13988 * Makefile.in: Update copyright. Update dependencies.
13989
cebe9500
AC
13990 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13991 problem.
13992
c6f0559b
AC
139932004-01-18 Andrew Cagney <cagney@redhat.com>
13994
43e9390b
AC
13995 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13996 instead of register_gdbarch_init.
13997
c6f0559b
AC
13998 * remote-sds.c (tohex): Delete unused function. Update copyright.
13999 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14000 * v850-tdep.c (v850_register_virtual_size): Ditto.
14001 * target.c (normal_target_post_startup_inferior): Ditto.
14002 * source.c (ambiguous_line_spec): Ditto.
14003 * remote.c (adapt_remote_get_threadinfo): Ditto.
14004 * mi/mi-out.c (out_field_fmt): Ditto.
14005 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14006 (output_control_change_notification): Ditto.
14007 * m68k-tdep.c (m68k_register_byte): Ditto.
14008 (m68k_remote_breakpoint_from_pc): Ditto.
14009 * ui-out.c (init_ui_out_state): Delete unused declaration.
14010 * stabsread.c (search_value): Ditto.
14011 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14012 * maint.c (print_section_table): Ditto.
14013 * infrun.c (set_follow_fork_mode_command): Ditto.
14014
a8504492
MK
140152004-01-18 Mark Kettenis <kettenis@gnu.org>
14016
14017 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14018 DW_CFA_def_cfa_exporession. Add support for
14019 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14020 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14021
0bd8997e
AC
140222004-01-18 Andrew Cagney <cagney@redhat.com>
14023
14024 * ocd.c: Update copyright.
14025 (bdm_read_register_command): Delete unused function.
14026 (_initialize_remote_ocd): Delete commented out reference.
14027 (get_quoted_char, reset_packet): Delete #if0ed function.
14028 (output_packet, put_quoted_char): Delete #if0ed function.
14029 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14030 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14031 (BDM_BREAKPOINT): Delete #if0ed macro.
14032 (remote_timeout): Delete #if0ed variable.
14033
31bb40e4
MK
140342004-01-18 Mark Kettenis <kettenis@gnu.org>
14035
14036 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14037 (core-sol2.o): Remove dependency.
14038 * core-sol2.c: Remove file.
14039
887432a5
AC
140402004-01-17 Andrew Cagney <cagney@redhat.com>
14041
14042 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14043 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14044 enums.
14045
29182b13
DJ
140462004-01-17 Daniel Jacobowitz <drow@mvista.com>
14047
14048 * remote.c: Update copyright years.
14049
2963ee1d
DJ
140502004-01-17 Daniel Jacobowitz <drow@mvista.com>
14051
14052 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14053
79d45cd4
AC
140542004-01-17 Andrew Cagney <cagney@redhat.com>
14055
ee300cd4
AC
14056 * mdebugread.c: Update copyright.
14057 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14058 (parse_type, parse_procedure): Ditto.
14059 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14060
fcacc9c2
AC
14061 * cris-tdep.c (cris_store_struct_return): Put back accidently
14062 deleted function.
14063
79d45cd4
AC
14064 * gdbarch.sh: Update copyright year.
14065 * gdbarch.h, gdbarch.c: Re-generate.
14066
b263358a
DJ
140672004-01-17 Daniel Jacobowitz <drow@mvista.com>
14068
14069 Suggested by George Anzinger.
14070 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14071 correct stack offset. Include unknown opcode numbers in the error
14072 message.
14073
931aecf5
AC
140742004-01-17 Andrew Cagney <cagney@redhat.com>
14075
14076 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14077 extract_struct_value_address, i386 does not set it.
14078 * sparc64-tdep.c (sparc64_init_abi): Do not set
14079 extract_struct_value_address, never called.
14080 (sparc64_extract_struct_value_address): Delete function.
14081 * m68hc11-tdep.c: Update copyright.
14082 (m68hc11_gdbarch_init): Delete redundant assignment of
14083 extract_struct_value_address.
14084 * i386-tdep.c: Update copyright.
14085 (i386_gdbarch_init): Do not set extract_struct_value_address,
14086 never called.
14087 (i386_extract_struct_value_address): Delete function.
14088 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14089 extract_struct_value_address, never called.
14090 (sparc32_extract_struct_value_address): #if 0 function. Add
14091 comments explaining its future.
14092
756fe439
DJ
140932004-01-17 Daniel Jacobowitz <drow@mvista.com>
14094
14095 * arm-tdep.c (arm_write_pc): New function.
14096 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14097
e74f0f02
DJ
140982004-01-17 Daniel Jacobowitz <drow@mvista.com>
14099
14100 * breakpoint.c (must_shift_inst_regs): Delete.
14101 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14102 and SHIFT_INST_REGS.
14103 * infcmd.c (step_1, step_1_continuation): Delete references to
14104 SHIFT_INST_REGS.
14105 * infrun.c (keep_going): Likewise.
14106 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14107 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14108
b6cb9035
AC
141092004-01-17 Andrew Cagney <cagney@redhat.com>
14110
444a1e2e
AC
14111 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14112 * gdbarch.h, gdbarch.c: Re-generate.
14113 * infcmd.c (print_return_value): Delete reference to
14114 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14115
def7e6ed
AC
14116 * cris-tdep.c (cris_gdbarch_init): Do not set
14117 deprecated_extract_struct_value_address.
14118
07be497a
AC
14119 * xstormy16-tdep.c: Update copyright.
14120 (xstormy16_extract_struct_value_address): Update to current
14121 extract struct value address interface.
14122 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14123 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14124 current extract struct value address interface.
14125 (sh64_gdbarch_init): Set extract_struct_value_address.
14126
6b4d5c91
AC
14127 * cris-tdep.c: Update copyright.
14128 (cris_extract_struct_value_address): Delete function.
14129 (struct_return_address): Delete variable.
14130 (cris_store_struct_return): Do not set struct_return_address.
14131
464e0365
AC
14132 * mcore-tdep.c: Update copyright.
14133 (mcore_extract_struct_value_address): Delete function. Update
14134 comments.
14135 (mcore_gdbarch_init): Update.
14136 * mn10300-tdep.c: Update copyright.
14137 (mn10300_extract_struct_value_address): Delete function.
14138 (mn10300_gdbarch_init): Update.
14139 * v850-tdep.c: Update copyright.
14140 (v850_extract_struct_value_address): Delete.
14141 (v850_gdbarch_init): Update.
14142 * ns32k-tdep.c: Update copyright.
14143 (ns32k_extract_struct_value_address): Delete.
14144 (ns32k_gdbarch_init): Update.
14145 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14146 (hppa_gdbarch_init): Update.
14147 * vax-tdep.c: Update copyright.
14148 (vax_extract_struct_value_address): Delete.
14149 (vax_gdbarch_init): Update.
14150
afb18d0f
AC
14151 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14152 * gdbarch.h, gdbarch.c: Re-generate.
14153 * procfs.c (procfs_fetch_registers): Delete reference to
14154 DEPRECATED_NPC_REGNUM.
14155 (procfs_store_registers): Ditto.
14156 * regcache.c (generic_target_write_pc): Simplify.
14157 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14158
a698f53e
AC
14159 * core-sol2.c (fetch_core_registers): Replace
14160 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14161
adc11376
AC
14162 * hppa-tdep.c: Update copyright year.
14163 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14164 NPC_REGNUM.
14165 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14166
b6cb9035
AC
14167 * mips-tdep.c (mips_write_pc): New function.
14168 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14169 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14170 (mips_find_saved_regs, mips_software_single_step: Ditto.
14171 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14172 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14173
6d82d43b
AC
141742004-01-17 Andrew Cagney <cagney@redhat.com>
14175
14176 * mips-tdep.c: Re-indent. Group functions by ABI.
14177
71bd6bd4
AC
141782004-01-17 Andrew Cagney <cagney@redhat.com>
14179
14180 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14181 * gdbarch.c: Re-generate.
14182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14183 DECR_PC_AFTER_BREAK to zero.
14184 * vax-tdep.c (vax_gdbarch_init): Ditto.
14185 * v850-tdep.c (v850_gdbarch_init): Ditto.
14186 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14187 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14188 * sh-tdep.c (sh_gdbarch_init): Ditto.
14189 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14190 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14191 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14192 * mips-tdep.c (mips_gdbarch_init): Ditto.
14193 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14194 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14195 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14196 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14197 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14198 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14199 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14200 * frv-tdep.c (frv_gdbarch_init): Ditto.
14201 * cris-tdep.c (cris_gdbarch_init): Ditto.
14202 * avr-tdep.c (avr_gdbarch_init): Ditto.
14203 * arm-tdep.c (arm_gdbarch_init): Ditto.
14204 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14205
a02abb62
JB
142062004-01-17 J. Brobecker <brobecker@gnat.com>
14207
14208 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14209 Delete, no longer used.
14210 (read_subrange_type): New function, mostly extracted from
14211 read_array_type().
14212 (read_array_type): Replace extracted code by call to
14213 read_subrange_type().
14214 (dwarf2_get_attr_constant_value): New function.
14215 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14216 (add_partial_symbol): Likewise.
14217 (process_die): Likewise.
14218 (new_symbol): Likewise.
14219 (read_type_die): Likewise.
14220
cf5b2f1b
AC
142212004-01-16 Andrew Cagney <cagney@redhat.com>
14222
14223 * symfile.c: Update copyright year.
14224 (compare_symbols): Delete unused function.
14225 * stabsread.c: Update copyright year.
14226 (lrs_general_complaint): Delete unused function.
14227 (ref_search_value): Ditto.
14228 (get_substring): Delete declaration.
14229 * sh64-tdep.c: Update copyright year.
14230 (sh64_get_gdb_regnum): Delete unused function.
14231 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14232 Delete unused function.
14233
d33b9831
MK
142342004-01-17 Mark Kettenis <kettenis@gnu.org>
14235
14236 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14237 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14238
7aea86e6
AC
142392004-01-16 Andrew Cagney <cagney@redhat.com>
14240
14241 Changes from Peter Schauer.
14242 * rs6000-tdep.c: Update copyright year.
14243 (rs6000_push_dummy_call): Update the stack pointer before
14244 accessing the corresponding stack region.
14245 * rs6000-nat.c: Update copyright year.
14246 (set_host_arch): Set "info.abfd" to "exec_bfd".
14247
26b0da32
MK
142482004-01-15 Mark Kettenis <kettenis@gnu.org>
14249
14250 * blockframe.c: Update copyright year.
14251 (inside_entry_func): Don't treat a zero PC specially.
14252
86fbe6cc
EZ
142532004-01-14 Elena Zannoni <ezannoni@redhat.com>
14254
14255 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14256 variable.
14257 (gcore_create_callback): Ditto. Skip any memory segment that has
14258 no permissions set.
14259
63d06c5c
DC
142602004-01-14 David Carlton <carlton@kealia.com>
14261
14262 Change symbols for C++ nested types to contain the fully qualified
14263 name, if possible. (At least in the DWARF-2 case.) Partial fix
14264 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14265 c++/895.
14266 * c-exp.y (qualified_type): Handle types nested within classes.
14267 * cp-namespace.c: Update comments.
14268 (cp_set_block_scope): Delete #if 0.
14269 (cp_lookup_nested_type): Handle types nested within classes.
14270 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14271 when appropriate.
14272 (add_partial_symbol): Add the name of the enclosing namespace to
14273 types.
14274 (pdi_needs_namespace): New.
14275 (add_partial_namespace): Tweak comment.
14276 (add_partial_structure): New.
14277 (psymtab_to_symtab_1): Initialize processing_current_prefix
14278 here...
14279 (process_die): instead of here.
14280 (read_structure_scope): Try to figure out the name of the class or
14281 namespace that the structure might be defined within.
14282 (read_enumeration): Generate fully-qualified names, if possible.
14283 (read_namespace): Don't set name to NULL.
14284 (die_specification): New.
14285 (new_symbol): Generate fully-qualified names for types.
14286 (read_type_die): Determine appropriate prefix.
14287 (determine_prefix): New.
14288 (typename_concat): New.
14289 (class_name): New.
14290 * valops.c (value_aggregate_elt): Pass NOSIDE to
14291 value_struct_elt_for_reference.
14292 (value_struct_elt_for_reference): Make static, add NOSIDE
14293 parameter, call value_maybe_namespace_elt as a last resort.
14294 (value_namespace_elt): Break out code into
14295 value_maybe_namespace_elt.
14296 (value_maybe_namespace_elt): New.
14297
87783b8b
AC
142982004-01-12 Andrew Cagney <cagney@redhat.com>
14299
14300 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14301 cooked floating-point registers.
14302 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14303 and value_to_register.
14304
6503b91e
AC
143052004-01-13 Andrew Cagney <cagney@redhat.com>
14306
14307 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14308 * gdbarch.c: Re-generate.
14309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14310 FUNCTION_START_OFFSET.
14311 * v850-tdep.c (v850_gdbarch_init): Ditto.
14312 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14313 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14314 * sh-tdep.c (sh_gdbarch_init): Ditto.
14315 * s390-tdep.c (s390_gdbarch_init): Ditto.
14316 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14317 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14318 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14319 * mips-tdep.c (mips_gdbarch_init): Ditto.
14320 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14321 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14323 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14324 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14325 * i386-tdep.c (i386_gdbarch_init): Ditto.
14326 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14327 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14328 * frv-tdep.c (frv_gdbarch_init): Ditto.
14329 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14330 * cris-tdep.c (cris_gdbarch_init): Ditto.
14331 * avr-tdep.c (avr_gdbarch_init): Ditto.
14332 * arm-tdep.c (arm_gdbarch_init): Ditto.
14333 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14334
ea1dd7bc
DJ
143352004-01-13 Daniel Jacobowitz <drow@mvista.com>
14336
14337 * infrun.c (follow_fork_mode_ask): Remove.
14338 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14339 (follow_fork): Simplify and remove internal error for
14340 follow_fork_mode_ask.
14341 (_initialize_infrun): Update "set follow-fork-mode" help text.
14342
0f0cffd2
AC
143432004-01-13 Andrew Cagney <cagney@redhat.com>
14344
14345 * configure.in: Update copyright year.
14346 (build_warnings): Add -Wunused-label.
14347 * configure: Re-generate.
14348
de38af99
AC
143492004-01-12 Andrew Cagney <cagney@redhat.com>
14350
954a7fba
AC
14351 * exec.h (exec_ops): Make "extern".
14352
de38af99
AC
14353 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14354 the function is void.
14355 (mips_pseudo_register_write): Ditto.
14356
1a111ce3
AC
143572004-01-12 Andrew Cagney <cagney@redhat.com>
14358
14359 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14360 call. Never defined.
14361 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14362 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14363 (struct sparc_gregset, struct regcache): Ditto.
14364 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14365
48efe704
AC
143662004-01-12 Andrew Cagney <cagney@redhat.com>
14367
14368 * mi/ChangeLog: Delete file. Renamed to ...
14369 * mi/ChangeLog-1999-2003: New file.
14370 * tui/ChangeLog: Delete file. Renamed to ...
14371 * tui/ChangeLog-1998-2003: New file.
fe61caab 14372
a54124c5
MK
143732004-01-11 Mark Kettenis <kettenis@gnu.org>
14374
2ca62865
MK
14375 * sparc64nbsd-tdep.c: Include "regset.h".
14376 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14377 Remove variables.
14378 (fetch_core_registers): Remove function.
14379 (sparc64nbsd_core_fns): Remove variable.
14380 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14381 functions.
14382 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14383 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14384 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14385
ca9d58e9
MK
14386 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14387 sparc_extract_struct_value_address.
14388 (sparc32_gdbarch_init): Set extract_struct_value_address.
14389 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14390 function.
14391 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14392 return_value_on_stack.
14393
3cc87ec0
MK
14394 * NEWS: Mention that %cs and %ss have been added to the AMD64
14395 configurations
14396
5bf00f29
MK
14397 * frame.c: Update copyright year.
14398 (get_prev_frame): Improve comment.
14399
4f7ec84e
MK
14400 * sparc64fbsd-tdep.c: Include "regset.h".
14401 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14402 Remove variables.
14403 (fetch_core_registers): Remove function.
14404 (sparc64fbsd_core_fns): Remove variable.
14405 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14406 functions.
14407 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14408 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 14409 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 14410
4e7b0cd3
MK
14411 * sparcnbsd-tdep.c: Include "regset.h".
14412 (fetch_core_registers): Remove function.
14413 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14414 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14415 functions.
14416 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14417 TDEP->fpregset.
46b58ce9 14418 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 14419
a54124c5
MK
14420 * sparc-tdep.h (struct regset): Provide opaque declaration.
14421 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14422 fpregset and sizeof_fpregset members.
14423 * sparc-tdep.c (struct regset): Provide opaque declaration.
14424 (sparc_regset_from_core_section): New function.
14425 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14426 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14427 Set regset_from_core_section when appropriate.
14428
29ff87c5
MK
144292004-01-10 Mark Kettenis <kettenis@gnu.org>
14430
79b1ab3d
MK
14431 * x86-64-tdep.c (amd64_non_pod_p): New function.
14432 (amd64_classify_aggregate): Return class memory for non-POD
14433 C++ structure types.
14434
6470d250
MK
14435 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14436 argument. Use it to reserve a register if necessary.
14437 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14438 amd64_push_arguments.
14439
562c50c2
MK
14440 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14441
af233647
MK
14442 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14443 register numbers in comments.
14444 * x86-64-tdep.h: Update copyright year.
14445 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14446 Adjust for addition of %cs and %ss.
14447 * amd64fbsd-nat.c: Update copyright year.
14448 (reg_offset): Add register offsets for %cs and %ss.
14449 * amd64fbsd-tdep.c: Update copyright year.
14450 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14451 (amd64fbsd_sc_reg_offset): Likewise.
14452 * x86-64-linux-nat.c: Update copyright year.
14453 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14454 and %ss.
14455 * amd64nbsd-nat.c: Update copyright year.
14456 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14457 * amd64nbsd-tdep.c: Update copyright year.
14458 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14459 * x86-64-linux-tdep.c: Update copyright year.
14460 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14461 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14462 * regformats/reg-x86-64.dat: Add %cs and %ss.
14463
29ff87c5
MK
14464 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14465 variables to prevent long lines. Update comments to reflect
14466 reality.
14467
38d518c9
EZ
144682004-01-09 David Carlton <carlton@kealia.com>
14469
14470 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14471 * dwarf2read.c (read_namespace): Pull out name-generating code
14472 into namespace_name. Rename previous_namespace to previous_prefix
14473 and processing_current_namespace to processing_current_prefix..
14474 (namespace_name): New function.
14475 (add_partial_symbol): Substitute uses of pdi->name with
14476 actual_name.
14477 * cp-support.h: Rename processing_current_namespace to
14478 processing_current_prefix.
14479 Update copyright year.
14480 * cp-namespace.c: Rename processing_current_namespace to
14481 processing_current_prefix.
14482 Update copyright year.
fe61caab 14483
1e4728e7
AC
144842004-01-09 Andrew Cagney <cagney@redhat.com>
14485
14486 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14487
c77c642a
MK
144882004-01-09 Mark Kettenis <kettenis@gnu.org>
14489
14490 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14491 complaining.
14492 (process_one_symbol): Deal with N_PATCH stabs.
14493
b44e9041
EZ
144942004-01-09 Elena Zannoni <ezannoni@redhat.com>
14495
14496 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14497 ifdeffed code.
14498 Update copyright year.
38d518c9 14499
eccfb640
MC
145002004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14501
14502 * config/pa/tm-hppa.h: Update extern declarations for
14503 hppa32_hpux_frame_saved_pc_in_sigtramp,
14504 hppa32_hpux_frame_base_before_sigtramp, and
14505 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14506
848c5feb
MC
145072004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14508
14509 * config/pa/tm-hppah.h: Update copyright years.
14510
3cc5d663
AC
145112004-01-08 Andrew Cagney <cagney@redhat.com>
14512
14513 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14514 (mips_o32_reg_struct_has_addr): Delete function.
14515 (mips_gdbarch_init): Update.
14516 (mips_extract_struct_value_address): Delete function.
14517
bfec0b41
JJ
145182004-01-08 David Mosberger <davidm@hpl.hp.com>
14519
14520 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14521 reality.
14522
16e109ca
AC
145232004-01-07 Andrew Cagney <cagney@redhat.com>
14524
6214a8a1
AC
14525 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14526 architecture's elf flags (when available).
14527
8d5838b5
AC
14528 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14529 FPU to the start, check the MIPS FPU when looking for an old
14530 architecture.
14531 (set_mipsfpu_single_command): Update the architecture.
14532 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14533
480d3dd2
AC
14534 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14535 (mips_mask_address_p): Add "tdep" parameter.
14536 (show_mask_address, mips_addr_bits_remove): Update.
14537 (mips_dump_tdep): Update.
14538 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14539 (MIPS_STACK_ARGSIZE): Delete macro.
14540 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14541 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14542 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14543 (mips_dump_tdep): Update.
14544 (MIPS_SAVED_REGSIZE): Delete macro.
14545 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14546 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14547 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14548 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14549 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14550 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14551 (mips_pop_frame, return_value_location): Update.
14552 (mips_n32n64_return_value, mips_dump_tdep): Update.
14553
ec03c1ac
AC
14554 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14555 MIPS ABI.
14556
16e109ca
AC
14557 * mips-tdep.c: Update copyright.
14558 (mips_gdbarch_init): Merge two code blocks handling the register
14559 name and number layout.
14560
15255275
MS
145612004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14562
14563 * tracepoint.c (validate_actionline): Fix segv at EOF
14564
9f9057da
MC
145652004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14566
14567 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14568 properly for static fields.
14569
0127c0d3 145702004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14571 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14572
14573 * disasm.c: Update copyright to include 2004.
14574 (do_mixed_source_and_assembly): For uiout asm list
14575 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14576 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14577 the tuple/list. Move check for whether to close off the
fe61caab 14578 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14579 on each loop iteration.
14580
5269965e
AC
145812004-01-05 Andrew Cagney <cagney@redhat.com>
14582
54f1137d
AC
14583 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14584 should be a switch case and not a label.
14585 * mips-tdep.c (mips32_next_pc): Delete unused labels
14586 "greater_equal_branch" and "less_zero_branch".
14587 * jv-valprint.c (java_print_value_fields): Delete unused label
14588 "flush_it".
14589
5269965e
AC
14590 * target.c (unpush_target): Only close a target that is in the
14591 target stack.
14592
dbc22fa1
MK
145932004-01-05 Mark Kettenis <kettenis@gnu.org>
14594
9515395e
MK
14595 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14596 address from [sp + 64] instead of %o2.
14597
dbc22fa1
MK
14598 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14599 fixes PR backtrace/1476.
14600
5439edaa
AC
146012004-01-05 Andrew Cagney <cagney@redhat.com>
14602
14603 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14604 move to start of file.
14605 * i386-tdep.h (struct regcache): Add opaque declaration.
14606 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14607 declaration.
14608 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14609 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14610 * win32-nat.c (fake_create_process): Use ISO C style definition.
14611 * stabsread.c (define_symbol): Delete #ifndef
14612 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14613 stabs_argument_has_addr call, macro never defined.
14614
19061abe
MC
146152004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14616
14617 * op50-rom.c: Delete.
14618 * w89k-rom.c: Delete.
14619 * Makefile.in: Remove references.
14620
e53bef9f
MK
146212004-01-04 Mark Kettenis <kettenis@gnu.org>
14622
14623 * x86-64-tdep.c: Update copyright year.
14624 (struct amd64_register_info): Rename from x86_64_register_info.
14625 (amd64_register_info): Rename from x86_64_register_info.
14626 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14627 (amd64_register_name): Rename from x86_64_register_name.
14628 (amd64_register_type): Rename from x86_64_register_type.
14629 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14630 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14631 (amd64_dwarf_reg_to_regnum): Rename from
14632 x86_64_dwarf_reg_to_regnum.
14633 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14634 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14635 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14636 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14637 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14638 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14639 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14640 (amd64_frame_cache): Rename from x86_64_frame_cache.
14641 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14642 (amd64_frame_prev_register): Rename from
14643 x86_64_frame_prev_register.
14644 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14645 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14646 (amd64_sigtramp_frame_cache): Rename from
14647 x86_64_sigtramp_frame_cache.
14648 (amd64_sigtramp_frame_prev_register): Rename from
14649 x86_64_sigtramp_frame_prev_register.
14650 (amd64_sigtramp_frame_unwind): Rename from
14651 x86_64_sigtramp_frame_unwind.
14652 (amd64_sigtramp_frame_sniffer): Rename from
14653 x86_64_sigtramp_frame_sniffer.
14654 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14655 (amd64_frame_base): Rename from x86_64_frame_base.
14656 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14657 (amd64_frame_align): Rename from x86_64_frame_align.
14658 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14659 (amd64_regset_from_core_section): Rename from
14660 x86_64_regset_from_core_section.
14661 (x86_64_init_abi): Update comments.
14662
fca6aa58
NR
146632004-01-04 Nick Roberts <nick@nick.uklinux.net>
14664
14665 * MAINTAINERS (write after approval): Add myself.
14666
8ada74e3
MK
146672004-01-04 Mark Kettenis <kettenis@gnu.org>
14668
14669 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14670 `float' arguments.
14671
5154b0cd
MK
146722004-01-04 Mark Kettenis <kettenis@gnu.org>
14673
14674 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14675 such that it mentions a specific version of GCC that exhibits this
14676 bug.
14677
fb316966
MK
146782004-01-03 Mark Kettenis <kettenis@gnu.org>
14679
200cc553
MK
14680 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14681 structure that has a single `float' member, store it in %f1 in
14682 addition to %f0.
14683
e226a4a0
MK
14684 * sparc-sol2-nat.c: Add missing '\'.
14685
b9d4c5ed
MK
14686 * sparc-tdep.c (sparc32_return_value): New function.
14687 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14688 Remove functions.
14689 (sparc32_gdbarch_init): Set return_value, don't set
14690 extract_return_value, store_return_value, use_struct_convention
14691 and return_value_on_stack.
14692
fb316966
MK
14693 * sparc-sol2-nat.c: Add missing ')'.
14694
1af510a8
JB
146952004-01-03 J. Brobecker <brobecker@gnat.com>
14696
14697 * infrun.c (handle_step_into_function): New function.
14698 (handle_inferior_event): Extract out some code into the new
14699 function above.
14700
5cf4d23a
JB
147012004-01-03 J. Brobecker <brobecker@gnat.com>
14702
14703 * infrun.c (handle_inferior_event): Move the declaration of
14704 real_stop_pc inside the if blocks where it is used.
14705
60af1db2
MK
147062004-01-03 Mark Kettenis <kettenis@gnu.org>
14707
14708 * sparc64-tdep.c (sparc64_16_byte_align_p)
14709 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14710 Use check_typedef to get subtypes of structures and unions.
14711 (sparc64_store_return_value): Fix calculation of the appropriate
14712 offset into VALBUF when storing a structure or union.
14713 (sparc64_return_value): New function.
14714 (sparc64_use_struct_convention): Remove function.
14715 (sparc64_init_abi): Set return_value, don't set
14716 extract_return_value, store_return_value and
14717 use_struct_convention.
14718
1a901d3f
EZ
147192004-01-03 Eli Zaretskii <eliz@elta.co.il>
14720
14721 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14722 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14723 gdb/config/alpha/xm-alphaosf.h,
14724 gdb/config/powerpc/tm-ppcle-eabi.h,
14725 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14726 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14727 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14728 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14729 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14730 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14731 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14732 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14733 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14734 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14735 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14736 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14737 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14738 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14739 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14740 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14741 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14742 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14743 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14744 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14745 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14746 Remove lines for .cvsignore files.
14747
ef52e463
JB
147482004-01-03 J. Brobecker <brobecker@gnat.com>
14749
14750 * infrun.c: Back out the previous change.
14751
cb1bf9dc
MK
147522004-01-03 Mark Kettenis <kettenis@gnu.org>
14753
f0424ef6
MK
14754 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14755 sparc-*-sunos4* to the list of REMOVED configurations.
14756
cb1bf9dc
MK
14757 * configure.tgt: Add back sparc-*-vxworks*.
14758 * remote-vxsparc.c: Remove all includes except for "defs.h",
14759 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14760 Include "sparc-tdep.h".
14761 (SPARC_R_G1): New define.
14762 (vxsparc_gregset): New variable.
14763 (ext_format_sparc): Remove extern declaration.
14764 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14765 sparc32_supply_fpregset.
14766 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14767 sparc_collect_rwindow and sparc32_collect_fpregset.
14768 * config/sparc/tm-vxworks.h: New file, based on recently removed
14769 tm-vxsparc.h.
14770 * config/sparc/vxworks.mt: New file, based on recently removed
14771 vxworks.mt.
fe61caab 14772
5e938f9f
JB
147732004-01-03 J. Brobecker <brobecker@gnat.com>
14774
14775 * infrun.c (handle_step_into_function): New function.
14776 (handle_inferior_event): Extract out some code into the new
14777 function above.
14778
386c036b
MK
147792004-01-02 Mark Kettenis <kettenis@gnu.org>
14780
14781 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14782 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14783 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14784 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14785 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14786 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14787 (sparc_nat_h): New variable.
14788 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14789 (tm-sun4os4.h): Remove dependency.
14790 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14791 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14792 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14793 sparc-tdep.o): Update dependencies.
14794 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14795 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14796 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14797 dependencies.
14798 * configure.host: Remove existing sparc-*-lynxos*,
14799 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14800 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14801 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14802 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14803 triplets.
14804 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14805 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14806 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14807 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14808 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14809 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14810 sparc64-*-solaris2* and sparc64-*-* triplets.
14811 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14812 "symtab.h" and "objfiles.h".
14813 (BIAS): Remove define.
14814 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14815 (X_DISP19): Remove macros.
14816 (sparc_fetch_instruction): Remove function.
14817 (struct gdbarch_tdep): Remove definition.
14818 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14819 (sparc_breakpoint_from_pc): Remove function.
14820 (struct sparc64_frame_cache): Remove definition.
14821 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14822 sparc64_unwind_pc): Remove functions.
14823 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14824 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14825 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14826 (sparc64_frame_cache): Change return type to `struct
14827 sparc_frame_cache *'. Simply call sparc_frame_cache.
14828 (sparc64_frame_this_id, sparc64_frame_prev_register,
14829 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14830 instead of `struct sparc64_frame_cache.
14831 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14832 sparc_analyze_control_transfer, sparc_software_single_step,
14833 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14834 _initialize_sparc64_tdep): Remove functions.
14835 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14836 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14837 macros.
14838 (sparc64_supply_gregset, sparc64_collect_gregset,
14839 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14840 (sparc64_init_abi): New function.
14841 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14842 inclusion guard. Include "sparc-tdep.h".
14843 (BIAS): Define.
14844 (r_tstate_offset, r_fprs_offset): New defines.
14845 (enum sparc_regnum): Remove defenition.
14846 (enum sparc64_regnum): Reformat.
14847 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14848 (sparc64_init_abi, sparc64_supply_gregset,
14849 sparc64_collect_gregset, sparc64_supply_fpregset,
14850 sparc64_collect_fpregset): New prototypes.
14851 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14852 Add extern declarations.
14853 (sparc64_sol2_init_abi): New prototype.
14854 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14855 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14856 prototypes.
14857 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14858 "sparnbsd-nat.h".
14859 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14860 functions.
14861 (_initialize_sparc64fbsd_nat): Remove initialization of
14862 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14863 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14864 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14865 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14866 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14867 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14868 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14869 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14870 (sparc64fbsd_r_y_offset): Remove variables.
14871 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14872 Make static and const.
14873 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14874 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14875 functions.
14876 (sparc64fbsd_gregset): New variable.
14877 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14878 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14879 and sparc64_supply_fpregset.
14880 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14881 (sparc64fbsd_sigtramp_frame_this_id)
14882 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14883 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14884 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14885 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14886 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14887 * sparcnbsd-tdep.c: Update copyright year. Include
14888 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14889 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14890 "value.h" and "sparcnbsd-tdep.h".
14891 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14892 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14893 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14894 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14895 defines.
14896 (sparcnbsd_gregset): New variable.
14897 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14898 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14899 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14900 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14901 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14902 variables.
14903 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14904 (sparc32nbsd_sigcontext_frame_this_id)
14905 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14906 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14907 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14908 (sparcnbsd_get_longjmp_target_32,
14909 sparcnbsd_get_longjmp_target_64): Remove functions.
14910 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14911 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14912 sparcnbsd_init_elf): Remove.
14913 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14914 (sparcnbsd_elf_init_abi): New functions.
14915 (_initialize_sparcnbsd_tdep): New prototype.
14916 (_initialize_sparnbsd_tdep): Update.
14917 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14918 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14919 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14920 * config/sparc/linux.mh: Update comment.
14921 (XM_FILE, HOST_IPC): Remove variables.
14922 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14923 sparc-linux-nat.o.
14924 * config/sparc/linux.mt: Update comment.
14925 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14926 * config/sparc/nbsd.mt: Reformat.
14927 * config/sparc/nbsd64.mh: Update comment.
14928 (NATDEPFILES): Add sparc-nat.o.
14929 * config/sparc/nbsd64.mt: Update comment.
14930 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14931 (TM_FILE): Set to tm-nbsd.h.
14932 * config/sparc/nbsdelf.mh: Update comment.
14933 (NATDEPFILES): Add sparc-nat.o.
14934 (XM_FILE): Delete.
14935 * config/sparc/nbsdaout.mh: Update comment.
14936 (NATDEPFILES): Add sparc-nat.o
14937 (XM_FILE): Delete.
14938 * config/sparc/nm-linux.h: Update copyright year. Don't include
14939 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14940 inclusion.
14941 (KERNEL_U_SIZE): Remove define.
14942 (kernel_u_size): Remove prototype.
14943 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14944 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14945 "regcache.h".
14946 (CHILD_PREPARE_TO_STORE): Remove define.
14947 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14948 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14949 sparcnbsd-nat.c: Rewrite files.
14950 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14951 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14952 sparcnbsd-tdep.h: Remove files.
14953 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14954 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14955 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14956 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14957 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14958 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14959 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14960 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14961 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14962 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14963 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14964 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14965 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14966 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14967 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14968 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14969 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14970 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14971 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14972
ee84457a
AC
149732004-01-02 Andrew Cagney <cagney@redhat.com>
14974
14975 From 2003-12-18 Kazuhiro Inaoka:
14976 * configure.host: Add m32r-linux target.
14977
0bc2134e
MC
149782004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14979
14980 * top.c (print_gdb_version): Update year to 2004.
14981
89a72f9c
MM
149822004-01-02 Mark Mitchell <mark@codesourcery.com>
14983
14984 * MAINTAINERS: Add myself to the write-after-approval category.
14985
86b013ed
DJ
149862004-01-02 Daniel Jacobowitz <drow@mvista.com>
14987
14988 From Bernardo Innocenti <bernie@develer.com>:
14989 * configure.tgt: Add uClinux target.
14990
e42c9534
AC
149912004-01-02 Andrew Cagney <cagney@redhat.com>
14992
14993 * utils.c (do_my_cleanups): Make static, add forward declaration.
14994 * defs.h (do_my_cleanups): Delete declaration.
14995
162467d3
EZ
149962004-01-02 Eli Zaretskii <eliz@elta.co.il>
14997
14998 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14999 bfd/ChangeLog-0203.
15000
78434e59
MK
150012004-01-02 Mark Kettenis <kettenis@gnu.org>
15002
15003 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15004 in <machine/reg.h>.
15005 * configure, config.in: Regenerate.
15006
48efe704
AC
15007For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15008tui/ChangeLog-1998-2003.
c906108c
SS
15009\f
15010Local Variables:
15011mode: change-log
15012left-margin: 8
15013fill-column: 74
15014version-control: never
15015End:
This page took 1.28203 seconds and 4 git commands to generate.