2004-12-13 Randolph Chung <tausq@debian.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4bb7a266
RC
12004-12-13 Randolph Chung <tausq@debian.org>
2
3 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
4 solib_get_solib_by_pc method through target vector.
5
3ddae2db 62004-12-13 Joel Brobecker <brobecker@gnat.com>
a99b228b
JB
7
8 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
9 parameter name to make it clear that we already have a next
10 frame. Return the sigcontext from that next frame instead
11 of the frame following it.
12
acf86d54
RC
132004-12-13 Randolph Chung <tausq@debian.org>
14
15 * Makefile.in (pa64solib_h, somsolib_h): Delete.
16 (solib_pa64_h, solib_som_h): New.
17 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
18 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
19 (pa64solib.o, somsolib.o): Delete.
20 (solib-pa64.o, solib-som.o): New.
21 * hppa-hpux-tdep.c: Include new solib interfaces.
22 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
23 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
24 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
25 is available, use it to determine the base of unwind records.
26 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
27 * hpread.c: Replace somsolib.h with solib-som.h.
28 (hpread_process_one_debug_symbol): Use target vector to get thread
29 start address.
30 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
31 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
32 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
33 * config/pa/tm-hppah.h: Use new solib interface.
34
0efcf9dc
RC
352004-12-13 Randolph Chung <tausq@debian.org>
36
37 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
38 sections to be trampolines too.
39
048a01af 402004-12-13 Ben Elliston <bje@au.ibm.com>
323e0a4a 41
048a01af
BE
42 * f-exp.y (typename): Remove unused nonterminal.
43 (name): Likewise.
44
452004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
46
47 Committed by Andrew Cagney.
323e0a4a
AC
48 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
49 markup.
50
91a533d4
AC
512004-12-12 Andrew Cagney <cagney@gnu.org>
52
39ee2ff0
AC
53 * frame.c (get_prev_frame): When unwinding normal frames, check
54 that the PC isn't zero.
55 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
56 zero PC.
57
91a533d4
AC
58 * MAINTAINERS: Reword description of what "Target Instruction Set
59 Architectures" covers.
60
0d9b270c
MK
612004-12-12 Mark Kettenis <kettenis@gnu.org>
62
63 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
64
d3322e8a
MK
652004-12-11 Mark Kettenis <kettenis@gnu.org>
66
eeca586f
MK
67 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
68 (hppa_hpux_save_state_offset): New function, replacing variable
69 with the same name.
70 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
71 functions.
72 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
73 Use new hppa_hpux_save_state_offset function. Add special
74 handling for handling 64-bit "flags" register.
75 (hppa_hpux_store_register): Likewise.
76 (hppa_hpux_child_can_run): Tweak comment.
77
7ba0e0c2
MK
78 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
79 (inf_ttrace_attach): Likewise.
80 (inf_ttrace_resume_callback): New function.
81 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
82 lwps and call inf_ttrace_resume_callback instead.
83 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
84
d3322e8a
MK
85 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
86
e02147b1
MS
872004-12-10 Michael Snyder <msnyder@redhat.com>
88
89 * mn10300-tdep.c: New file. This is a re-implementation of
90 the mn10300 target back-end using the new frame api etc.
91 * mn10300-tdep.h: New file.
92 * config/mn10300/mn10300.mt: New file (or replace old file).
93 * configure.tgt: Add mn10300 target.
94
01926a69
MK
952004-12-10 Mark Kettenis <kettenis@gnu.org>
96
c5101575
MK
97 * configure.host (hppa*-*-hpux11*): Remove.
98 * config/pa/hpux11.mh: Remove file.
99
01926a69
MK
100 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
101 typo.
102
d737fd7f
KW
1032004-12-10 Kris Warkentin <kewarken@qnx.com>
104
105 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
106 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
107 function and nto_set_target function.
108 (struct nto_target_ops): Put comments inline with struct. Add osabi
109 sniffer hook. Redefine macros to permit testing/assignment. Remove
110 nto_ prefix from members.
111 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
112 dynamically to support arbitrary root paths. Check for basename of
113 lib in search path and then check for absolute.
114 (nto_in_dynsym_resolve_code): New function.
115 (nto_core_sniffer): New function.
116 (regset_core_fns): Register core sniffer.
117 (nto_initialize_signals): New function.
118 (_initialize_nto_tdep): Move signal initialization code to above to
119 avoid initialization race conditions.
120 (nto_set_target): New function.
121 * nto-procfs.c: Minor formatting/indenting changes.
122 (procfs_is_nto_target): New function.
123 (procfs_open): Set nto_is_nto_target.
124 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
125 initialization race conditions.
126 (procfs_create_inferior): Resume inferior after creation.
127 * i386-nto-tdep.c: Declare i386_nto_target.
128 (init_i386nto_ops): Initialize i386_nto_target instead of
129 current_nto_target.
130 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
131 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
58544210
MK
132 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
133 sniffer.
d737fd7f 134
3cd36e7c
MK
1352004-12-10 Mark Kettenis <kettenis@gnu.org>
136
137 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
138 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
139 (hppa_hpux_init_abi): Reformat long line.
140
08d53055
MK
1412004-12-09 Mark Kettenis <kettenis@gnu.org>
142
143 * hppa-hpux-tdep.c: Include "regset.h".
144 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
145 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
146 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
147 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
148 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
149 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
150 functions.
151 (hppa_hpux_regset): New variable.
152 (hppa_hpux_regset_from_core_section): New function.
153 (hppa_hpux_init_abi): Set regset_from_core_section.
154 (hppa_hpux_core_osabi_sniffer): New function.
155 (_initialize_hppa_hpux_tdep): Register
156 hppa_hpux_core_osabi_sniffer.
157 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
158 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
159
45851e00
RC
1602004-12-09 Randolph Chung <tausq@debian.org>
161
162 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
163 text and data sections.
164 (pa64_current_sos): Also include the dld in the list of current shared
165 objects.
166 (pa64_solib_get_solib_by_pc): Update comments.
167 (pa64_solib_get_text_base): New function.
168 (pa64_solib_select): Set solib_get_text_base method.
169
1bac0d4d
DJ
1702004-12-08 Daniel Jacobowitz <dan@debian.org>
171
172 * linux-thread-db.c (BUILD_THREAD): Delete.
173 (thread_get_info_callback): Include LWP ID in thread ID.
174 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
175 (lwp_from_thread): Use the LWP ID from the thread ID.
176
254ce0a1
RC
1772004-12-07 Randolph Chung <tausq@debian.org>
178
179 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
180 register for both 32- and 64-bit targets.
181
cc9bed83
RC
1822004-12-07 Randolph Chung <tausq@debian.org>
183
184 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
185 are unwinding through a dummy frame.
186
f77a2124
RC
1872004-12-07 Randolph Chung <tausq@debian.org>
188
189 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
190 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
191 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
192 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
193 if defined.
194
f1b38a57
RC
1952004-12-07 Randolph Chung <tausq@debian.org>
196
197 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
198 unwinding from a frame with pc == 0.
199 (hppa_stub_frame_this_id): Likewise.
200 (hppa_stub_frame_prev_register): Only provide real values if the frame
201 cache is not NULL.
202
419b8bfb
RC
2032004-12-07 Randolph Chung <tausq@debian.org>
204
205 * solib-som.c: New file.
206 * solib-som.h: New file.
207 * solib-pa64.c: New file.
208 * solib-pa64.h: New file.
209
6e93c4f7
MK
2102004-12-07 Mark Kettenis <kettenis@gnu.org>
211
212 * Makefile.in (inf-ttrace.o): Fix typo.
213
c273b20f
JB
2142004-12-07 Jim Blandy <jimb@redhat.com>
215
216 * remote.c (remote_threads_info, remote_current_thread): Use
217 strtoul to parse thread ID numbers.
218
cc72850f
MK
2192004-12-07 Mark Kettenis <kettenis@gnu.org>
220
a7be7fa8
MK
221 * inf-ttrace.c: Include "gdbthread.h".
222 (inf_ttrace_num_lwps): New variable.
223 (inf_ttrace_num_lwps_in_syscall): Renamed from
224 inf_ttrace_num_threads_in_syscall.
225 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
226 TTEVT_LWP_TERMINATE events.
227 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
228 zero.
229 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
230 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
231 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
232 events.
233 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
234 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
235 TTEVT_LWP_TERMINATE events.
236 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
237 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
238 * Makefile.in (inf-ttrace.o): Update dependencies.
239
cc72850f
MK
240 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
241 prototypes.
242 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
243 Make global. Remove HP-UX specific code. Use
244 frame_unwind_register_unsigned instead of
245 frame_unwind_register_signed.
246 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
247 Remove HP-UX specific code.
248 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
249 (hppa_frame_prev_register_helper): Set "flags" register to zero
250 for all unwound frames.
251 (hppa_gdbarch_init): Adjust.
252 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
253 (hppa_hpux_read_pc, hppa_hpux_write_pc)
254 (hppa_hpux_unwind_pc): New functions.
255 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
256
f47b1503
AS
2572004-12-07 Andreas Schwab <schwab@suse.de>
258
259 * main.c (long_options): Add entry for "-l".
260 (print_gdb_help): Add line for -l option.
261 * NEWS: Mention it.
262
c1299d67
RC
2632004-12-05 Randolph Chung <tausq@debian.org>
264
265 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
266 DEPRECATED_REGISTER_BYTE.
267
57dac9e1
RC
2682004-12-05 Randolph Chung <tausq@debian.org>
269
270 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
271 records.
272
b1acf338
MK
2732004-12-05 Mark Kettenis <kettenis@gnu.org>
274
a61ce9b4
MK
275 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
276 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
277
b1acf338
MK
278 * hppa-hpux-tdep.c: Update copyright notice and year.
279
fcab3fb5
RE
2802004-12-05 Richard Earnshaw <rearnsha@arm.com>
281
282 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
283 (get_field, put_field): Assert that the format is one we can handle.
284 Simplify logic accordingly.
285 (floatformat_normalize_byteorder): New function.
286 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
287 to normalize and select modified byte order. Pass modified byte order
288 to get_field.
289 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
290 Likewise.
291 (convert_doublest_to_floatformat): Select an appropriate intermediate
292 byte order if necessary. Always convert to the final format before
293 returning.
294
48bb3cce
DJ
2952004-12-04 Daniel Jacobowitz <dan@debian.org>
296
297 PR tui/1703
298 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
299 Suggested by Joshua Neuheisel.
300
fe46cd3a
RC
3012004-12-03 Randolph Chung <tausq@debian.org>
302
303 * gdbarch.sh (instruction_nullified): Delete.
304 * gdbarch.c: Regenerate.
305 * gdbarch.h: Regenerate.
306 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
307 nullified.
308 (hppa_unwind_pc): Likewise.
309 (hppa_instruction_nullified): Delete.
310 (hppa_gdbarch_init): Don't set instruction_nullified method.
311 * infrun.c (infwait_states): Remove infwait_nullified_state.
312 (handle_inferior_event): Remove handling of infwait_nullified_state.
313 Remove handling of nullified instructions.
314
dd515450
MK
3152004-12-03 Mark Kettenis <kettenis@gnu.org>
316
932936f0
MK
317 * inf-ttrace.c: Include <sys/mman.h>.
318 (struct inf_ttrace_page): New.
319 (struct inf_ttrace_page_dict): New.
320 (inf_ttrace_num_threads_in_syscall)
321 (inf_ttrace_reenable_page_protections): New variables.
322 (inf_ttrace_enable_syscall_events)
323 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
324 (inf_ttrace_add_page, inf_ttrace_insert_page)
325 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
326 (inf_ttrace_enable_page_protections)
327 (inf_ttrace_disable_page_protections)
328 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
329 (inf_ttrace_can_use_hw_breakpoint)
330 (inf_ttrace_region_size_ok_for_hw_watchpoint)
331 (inf_ttrace_stopped_by_watchpoint): New functions.
332 (inf_ttrace_him): Remove unsused varaible `tts'.
333 (inf_ttrace_create_inferior): Add assertionts.
334 (inf_ttrace_mourn_inferior): Clear page dictionary.
335 (inf_ttrace_attach): Set initial event mask.
336 (inf_ttrace_detach): Reset number of threads in system call.
337 (inf_ttrace_wait): Deal with system call events.
338 (inf_ttrace_target): Initialize "hardware" watchpoint-related
339 parts of the target vector.
340 (_initialize_inf_ttrace): New prototype and function.
341
dd515450
MK
342 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
343 type of `gp' variable.
344
73fb7068
RS
3452004-12-03 Richard Sandiford <rsandifo@redhat.com>
346
347 * README: Remove config.if from directory listing.
348
515921d7
JB
3492004-12-01 Joel Brobecker <brobecker@gnat.com>
350
351 * alpha-tdep.c (alpha_register_name): Add comment.
352 (alpha_cannot_fetch_register): Exclude registers numbers which
353 are no longer used from the list of registers that can be fetched.
354 (alpha_cannot_store_register): Exclude registers numbers which
355 are no longer used from the list of registers that can be stored.
356 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
357 core_reg_mapping array.
358
1cc759c3
JB
3592004-12-01 Joel Brobecker <brobecker@gnat.com>
360
361 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
362 the register value from the correct frame.
363
b546247c
RC
3642004-11-30 Randolph Chung <tausq@debian.org>
365
366 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
367 (hppa_linux_in_dyncall): Check that we are inside the range of
368 $$dyncall, not necessarily at the first insn.
369 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
370 even if the pc does not point to the first insn of the trampoline.
371
46905982
RC
3722004-11-30 Randolph Chung <tausq@debian.org>
373
374 * breakpoint.c (break_at_finish_command): Delete.
375 (break_at_finish_command_1): Delete.
376 (break_at_finish_at_depth_command): Delete.
377 (break_at_finish_at_depth_command_1): Delete.
378 (tbreak_at_finish_command): Delete.
379 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
380 and bx commands.
381
80b93d6b
AC
3822004-11-30 Andrew Cagney <cagney@gnu.org>
383
a7711b1f
AC
384 * config/nm-gnu.h: Delete file.
385 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
386
80b93d6b
AC
387 * config/nm-sysv4.h: Delete file.
388 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
389 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
390 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
391 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
392 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
393
31ffb221
AC
3942004-11-29 Andrew Cagney <cagney@gnu.org>
395
396 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
397 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
398 as can-commit architecture developers.
91a533d4 399
3919e12c
MK
4002004-11-29 Mark Kettenis <kettenis@gnu.org>
401
075ccec8
MK
402 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
403 (sparc32_skip_prologue): Skip instructions that store arguments in
404 registers into their corresponding stack slots.
405
388e0111
MK
406 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
407 tm-solib.h.
408 * config/m68k/obsd.mh (NAT_FILE): Likewise.
409
19671c2b
MK
410 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
411 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
412 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
413 sparc32nbsd_elf_init_abi. Remove duplicate code.
414
77a7fe6d
MK
415 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
416 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
417 * config/sparc/nm-nbsd.h: Remove file.
418 * config/sparc/nm-nbsdaout.h: Remove file.
419
cbfc58d1
MK
420 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
421 (sparc_xfer_partial): New function.
422 (sparc_target): Save value of to_xfer_partial from ptrace vector.
423 Set to_xfer_partial.
424
3919e12c
MK
425 * fork-child.c (fork_inferior): Fork instead of vfork if
426 PRE_TRACE_FUN is non-null.
427
ebd98106
FF
4282004-11-24 Fred Fish <fnf@specifixinc.com>
429
430 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
431 compiler generated function calls made as part of a prologue.
432
eee22bf8
MK
4332004-11-23 Mark Kettenis <kettenis@gnu.org>
434
435 * inf-ttrace.c: New file.
436 * inf-ttrace.h: New file.
437 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
438 Include "inf-ttrace.h".
439 (ss_mpsfu_high): Define to ss_tlsp if necessary.
440 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
441 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
442 ptrace systems.
443 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
444 instead of inf_ptrace_target.
445 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
446 * Makefile.in (inf_ttrace_h): New variable.
447 (hppa-hpux-nat.o): Update dependency.
448 (inf-ttrace.o): New dependency.
449 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
450
3ca64954
RC
4512004-11-23 Randolph Chung <tausq@debian.org>
452
453 * arch-utils.c (generic_instruction_nullified): New.
454 * arch-utils.h (generic_instruction_nullified): New.
455 * gdbarch.sh (instruction_nullified): New method.
456 * gdbarch.c: Regenerate.
457 * gdbarch.h: Regenerate.
458 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
459 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
460 new gdbarch method.
461 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
462 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
463 static. Rewrite to work directly off the passed regcache.
464 (hppa_gdbarch_init): Set instruction_nullified method.
465
5465445a
JB
4662004-11-23 Joel Brobecker <brobecker@gnat.com>
467
468 * sparc-tdep.c (sparc_is_unimp_insn): New function.
469 (sparc32_frame_cache): For functions where there is no debugging
470 information to help us determine whether it's a struct-return
471 function or not, fallback on checking whether the instruction
472 at the return address is an "unimp" instruction or not.
473
3f6306ec
DA
4742004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
475
871cce51
DA
476 * MAINTAINERS: Add myself to write after approval section.
477
3f6306ec
DA
478 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
479 hpux-thread.c to suppress children from running.
480 (hppa_hpux_child_can_run): New function.
481 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
482 * hpux-thread.c: Include string.h and hppa-tdep.h.
483 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
484 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
485 (hpux_thread_store_registers): Replace deprecated_registers with
486 calls to regcache_raw_read.
487 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
488
f5ccf7a2
MK
4892004-11-21 Mark Kettenis <kettenis@gnu.org>
490
491 * sparc64fbsd-nat.c: Update copyright year.
492 (_initialize_sparc64fbsd_nat): Construct and add target vector.
493 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
494 inftarg.o.
495
8c3900e4
DJ
4962004-11-21 Daniel Jacobowitz <dan@debian.org>
497
498 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
499
b957e937
DJ
5002004-11-21 Daniel Jacobowitz <dan@debian.org>
501
502 * linux-nat.c (my_waitpid): New function.
503 (linux_test_for_tracefork): Make more robust and verbose. Take
504 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
505 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
506 argument. Update calls to linux_test_for_tracefork.
507 (linux_enable_event_reporting, child_follow_fork)
508 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
509 (child_insert_exec_catchpoint): Update calls to
510 linux_supports_tracefork and linux_supports_tracevforkdone.
511
65d3800a
DJ
5122004-11-21 Daniel Jacobowitz <dan@debian.org>
513
514 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
515 (value_subscripted_rvalue): Likewise.
516 * valops.c (search_struct_field, value_slice): Likewise.
517
2c4a536d
MK
5182004-11-21 Mark Kettenis <kettenis@gnu.org>
519
520 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
521 Reorder includes a bit. Fix comment.
522 * Makefile.in (inf-ptrace.o): Update dependencies.
523
fefa1888
AS
5242004-11-21 Andreas Schwab <schwab@suse.de>
525
526 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
527 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
528 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
529 to glibc_skip_solib_resolver.
530 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
531 solib-legacy.o.
532 * Makefile.in (m68klinux-tdep.o): Update dependencies.
533
d564a7d4
DA
5342004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
535
536 * infttrace.h (ttrace_write_reg_64): Add prototype.
537 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
538 expression.
539 (store_inferior_registers): Correct formatting. Replace uses of
540 deprecated_registers with calls to regcache_raw_read,
541 regcache_raw_write_part and regcache_raw_read_part.
542
3f70a5e9
MK
5432004-11-21 Mark Kettenis <kettenis@gnu.org>
544
545 * config/pa/hppahpux.mh: Remove file.
546 * config/pa/hpux1020.mh: Remove file.
547
ced0d73d
AS
5482004-11-20 Andreas Schwab <schwab@suse.de>
549
550 * configure.host: Set host floatformat for m68k.
551
fcf54f50
EZ
5522004-11-20 Eli Zaretskii <eliz@gnu.org>
553
554 * config/djgpp/fnchange.lst: Resolve file-name clash between
555 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
556
a7289609
MK
5572004-11-20 Mark Kettenis <kettenis@gnu.org>
558
eeb8076c
MK
559 * hppa-hpux-nat.c: New file.
560 * config/pa/hpux.mh (NATDEPFILES): New file.
561 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
562 (hppa-hpux-nat.o): New dependency.
563 * configure.host: Remove hppa*-*-hpux10.20.
564 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
565
f6ffd89b
MK
566 * inf-ptrace.c: Fix coding style.
567
f1bc22da
MK
568 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
569 * infptrace.c (call_ptrace): Simply call ptrace with four
570 arguments.
571
e31272c3
MK
572 * dbxread.c (process_one_symbol): Fix a few coding standard
573 issues. Improve code formatting.
574
91f54576
MK
575 * dbxread.c: Include "gdb_string.h".
576 (record_minimal_symbol, read_ofile_symtab): Replace
577 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
578 * Makefile.in (dbxread.o): Update dependencies.
579
a7289609
MK
580 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
581 of bytes read for aligned LEB128 encodings.
582
57ac95b8
MK
5832004-11-19 Mark Kettenis <kettenis@gnu.org>
584
585 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
586 parse_and_eval_address to u_long before converting it to a pointer
587 type.
588 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
589 ps_strings from int to u_long.
590 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
591 u_long instead of CORE_ADDR.
592
ceddaf06
MK
5932004-11-18 Mark Kettenis <kettenis@gnu.org>
594
595 * dbxread.c (process_one_symbol): Do not adjust address of first
596 N_SLINE stab for a function for code generated by non-GCC
597 compilers.
598
915a2d21
KB
5992004-11-18 Kevin Buettner <kevinb@redhat.com>
600
601 * solib-null.c: New file.
602
92790ee7
AC
6032004-11-17 Andrew Cagney <cagney@gnu.org>
604
605 * MAINTAINERS: Drop MIPS and remote.
606
0c16dd26
AC
6072004-11-15 Andrew Cagney <cagney@gnu.org>
608
609 * findvar.c (value_of_register): Set the frame ID.
610 * value.c (value_primitive_field): Copy the frame ID.
611 * valops.c (value_assign): Simplify lval_register case, there's
612 always a frame.
613
2fdf551c
DJ
6142004-11-14 Daniel Jacobowitz <dan@debian.org>
615
616 * Makefile.in (mips-linux-tdep.o): Update dependencies.
617 * mips-linux-tdep.c: Include "regcache.h".
618 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
619
98754800
DJ
6202004-11-14 Daniel Jacobowitz <dan@debian.org>
621
622 * Makefile.in (linux-thread-db.o): Fix typo in last change.
623
ed89d175
DJ
6242004-11-14 Daniel Jacobowitz <dan@debian.org>
625
626 * linux-thread-db.c: New file, renamed from thread-db.c.
627 * thread-db.c: Remove.
628 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
629 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
630 to linux-thread-db.o.
631 * config/arm/linux.mh (NATDEPFILES): Likewise.
632 * config/i386/linux.mh (NATDEPFILES): Likewise.
633 * config/i386/linux64.mh (NATDEPFILES): Likewise.
634 * config/ia64/linux.mh (NATDEPFILES): Likewise.
635 * config/m32r/linux.mh (NATDEPFILES): Likewise.
636 * config/m68k/linux.mh (NATDEPFILES): Likewise.
637 * config/mips/linux.mh (NATDEPFILES): Likewise.
638 * config/pa/linux.mh (NATDEPFILES): Likewise.
639 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
640 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
641 * config/s390/s390.mh (NATDEPFILES): Likewise.
642 * config/sparc/linux.mh (NATDEPFILES): Likewise.
643 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
644
8851ec7a
AC
6452004-11-13 Andrew Cagney <cagney@gnu.org>
646
f97fe8ff
AC
647 * config/i386/i386lynx.mh: Delete file.
648 * config/i386/i386lynx.mt: Delete file.
649 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
650 * i386ly-tdep.c: Delete.
651
5873946b
AC
652 * config/tm-lynx.h: Delete, inline contents ...
653 * config/rs6000/tm-rs6000ly.h: ... here.
654
a69637bd
AC
655 * config/tm-sysv4.h: Delete file, inlining contents.
656 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
657 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
658 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
659
8851ec7a
AC
660 * regcache.h (deprecated_register_valid): Delete.
661 (deprecated_registers): Delete.
662 * regcache.c (deprecated_register_valid): Delete.
663 (deprecated_registers): Delete.
664 (deprecated_read_register_byte, _initialize_regcache)
665 (deprecated_write_register_bytes, build_regcache): Update.
666 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
667 remote-sds.o.
668 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
669 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
670
9445aa30
AC
671 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
672 v850-*-* under removed.
673 * configure.host: Delete ns32k-*-netbsd*.
674 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
675 ns32k-*-netbsd*, and v850*-*-*.
676 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
677 "Deleted"
678 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
679 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
680 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
681 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
682 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
683 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
684 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
685 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
686 * v850-tdep.c: Delete.
687
f6e1bffc
JB
6882004-11-13 Joel Brobecker <brobecker@gnat.com>
689
690 * irix5-nat.c (fetch_core_registers): Replace use of
691 deprecated_registers by equivalent code.
692
44ed547b
JB
6932004-11-13 Joel Brobecker <brobecker@gnat.com>
694
695 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
696 with equivalent code.
697 (fill_fpregset): Likewise.
698
e84ecc99
AC
6992004-11-13 Andrew Cagney <cagney@gnu.org>
700
ca1a823a
AC
701 * MAINTAINERS: Do not list "Deleted" architectures.
702
e84ecc99
AC
703 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
704 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
705 sparc-*-vxworks*.
706 * NEWS: Mention that vxworks was deleted.
707 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
708 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
709 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
710 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
711 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
712 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
713 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
714 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
715 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
716 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
717 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
718 * remote-vxmips.c, remote-vx.c: Delete.
719 * remote-vx68.c: Delete.
720 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
721 * config/m68k/os68k.mt, ada-lang.h: Ditto.
722 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
723 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
724
01e937bc
EZ
7252004-11-13 Eli Zaretskii <eliz@gnu.org>
726
29247324
EZ
727 * config/i386/xm-go32.h: Don't include fopen-bin.h.
728 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
729
730 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
731 branch that doesn't define CRLF_SOURCE_FILES; always use
732 binary-mode open.
733 (print_source_lines_base, forward_search_command)
734 (reverse_search_command): Enable the code that accepts DOS-style
735 CRLF line endings on all platforms (this removes the need for
736 CRLF_SOURCE_FILES).
737
f8f0d88a 738 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 739 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 740
01e937bc
EZ
741 * config/djgpp/fnchange.lst: Group renames for opcode directory
742 together.
743
744 * config/djgpp/djconfig.sh: Replace file names that don't exist
745 anymore with existing files, for checking the unpacked
746 distribution.
747
748 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
749 Export pre-cooked values in configure-* targets that begin with
750 "@test -f stage_last".
751
25ae5d16
AC
7522004-11-12 Andrew Cagney <cagney@gnu.org>
753
754 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
755 * value.h (struct value): Update comment.
756 * valops.c (value_assign): Fold lval_reg_fame_relative into
757 lval_register.
758 * findvar.c (value_from_register, locate_var_value): Ditto.
759
d7318818
RC
7602004-11-12 Randolph Chung <tausq@debian.org>
761
762 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
763 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
764 (write_exp_msymbol): Remove conditional check for symbols starting
765 with $. Update comments.
766
89676665
RC
7672004-11-12 Randolph Chung <tausq@debian.org>
768
769 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
770 so_lib_thread_start_addr.
771 * pa64solib.h (so_list): Forward declare.
772 (pa64_solib_thread_start_addr): Prototype.
773 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
774 (no_shared_libraries): Remove.
775 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
776 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
777 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
778 the elf solib handler to find the start address.
779
780 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
781 files to the target makefile.
782 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
783 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
784 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
785
786 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 787 files for symbol reading and shared library handling here.
89676665 788 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
789 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
790 without bringing in 64-bit support.
89676665 791
df407dfe
AC
7922004-11-12 Andrew Cagney <cagney@gnu.org>
793
4991999e
AC
794 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
795 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
796 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
797 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
798 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
799 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
800 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
801
9ee8fc9d
AC
802 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
803 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
804 (VALUE_REGNUM): Define.
805 (struct value): Delete location.regnum, rename "regno" to
806 "regnum".
807 * value.c, valops.c, valarith.c, findvar.c: Update.
808
df407dfe
AC
809 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
810 (VALUE_BITPOS): Delete.
811 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
812 * value.c (value_type, value_offset, value_bitpos)
813 (value_bitsize): New functions. Update references.
814 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
815 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
816 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
817 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
818 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
819 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
820 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
821 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
822 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
823
61c82a3b
AC
8242004-11-12 Andrew Cagney <cagney@gnu.org>
825
826 * cris-tdep.c (cris_register_offset): Delete, never called.
827 (cris_spec_reg_applicable): Delete cris_ver_sim.
828 * MAINTAINERS: List d10v as OBSOLETE.
829 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
830 FOPEN_WB et.al., defined by "fopen-bin.h".
831
5aac166f
RC
8322004-11-12 Randolph Chung <tausq@debian.org>
833
834 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
835 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
836 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
837 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
838
4fab48b9
MK
8392004-11-12 Mark Kettenis <kettenis@jive.nl>
840
841 * tui/tui-io.c: Don't include "terminal.h".
842 * Makefile.in (tui-io.o): Update dependencies.
843
9b098f24
KI
8442004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
845
846 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
847 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
848 set_gdbarch_regset_from_core_section for core file support.
849 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
850 New functions.
851
a71f8c30
RC
8522004-11-11 Randolph Chung <tausq@debian.org>
853
854 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
855 stop_after_branch parameter and use it to determine if we should look
856 at the delay slot of the first branch insn to find prologue insns.
857 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
858 (hppa_frame_cache): Likewise.
859
50b2f48a
RC
8602004-11-11 Randolph Chung <tausq@debian.org>
861
862 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
863 register so that it can be unwound from anywhere in the prologue.
864
be723e22
MS
8652004-11-10 msnyder <msnyder@redhat.com>
866
867 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
868 must invalidate lr_reg (so we don't try to save it again).
869 Ditto for cr_offset and cr_reg.
870
d6f7abdf
AC
8712004-11-05 Jon Beniston <jon@beniston.com>
872
216c5547 873 Committed by Andrew Cagney.
d6f7abdf
AC
874 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
875 when an unexpected packet is received, as the target stubs
876 continually retransmit the same packet until ACKed.
877
1d225535
RC
8782004-11-10 Randolph Chung <tausq@debian.org>
879
880 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 881 frame's type.
1d225535 882
2315ffec
RC
8832004-11-10 Randolph Chung <tausq@debian.org>
884
885 * blockframe.c (inside_entry_func): Move to .....
886 * frame.c (inside_entry_func): ... here, and make static.
887 (backtrace_past_entry): New flag.
888 (get_prev_frame): Stop backtrace at the entry function if enabled
889 by flag. Update comments.
890 (_initialize_frame): Add command to set backtrace_past_entry flag.
891 * defs.h (inside_entry_func): Remove prototype.
892
917c78fc
MK
8932004-11-10 Mark Kettenis <kettenis@gnu.org>
894
895 * dwarf2read.c: Fix formatting.
896
994b9211
AC
8972004-11-10 Andrew Cagney <cagney@gnu.org>
898
899 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
900 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
901 macros with function declarations.
902 * value.c (coerce_ref, coerce_array, coerce_number)
903 (coerce_enum): New functions.
904 (value_as_long, value_as_address): Update.
905 * ada-lang.c (ada_coerce_ref, ada_value_binop)
906 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
907 * jv-lang.c (evaluate_subexp_java): Update.
908 * valarith.c (value_less, value_neg, value_complement)
909 (value_binop, value_add, value_subscript, value_x_binop)
910 (value_logical_not, value_sub): Update.
911 * valops.c (check_field, value_struct_elt, value_ind)
912 (value_find_oload_method_list, value_cast, value_assign): Update.
913 * eval.c (evaluate_subexp_standard): Update.
914
06987e64
MK
9152004-11-10 Mark Kettenis <kettenis@gnu.org>
916
917 * mips-tdep.c (mips32_relative_offset): Change return type to
918 LONGEST, change argument type to ULONGEST. Fix sign-extension.
919
4a302917
RC
9202004-11-10 Randolph Chung <tausq@debian.org>
921
922 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
923 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
924 (hppa_fetch_pointer_argument): Likewise.
925 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
926 deprecated_read_memory_nobpt.
927 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
928 add_set_cmd sequence with add_setshow_boolean_cmd.
929
390e974f
AC
9302004-11-09 Andrew Cagney <cagney@gnu.org>
931
932 GDB 6.3 released from GDB 6.3 branch.
933
92e023d6
AC
9342004-11-09 Andrew Cagney <cagney@gnu.org>
935
936 * values.c: Rename to ...
937 * value.c: ..., new file.
938 * Makefile.in: Update.
939
d10891d4
DJ
9402004-11-09 Daniel Jacobowitz <dan@debian.org>
941
942 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
943 size.
944
00a4c844
AC
9452004-11-09 Andrew Cagney <cagney@gnu.org>
946
c44523e7
AC
947 * TODO: Delete.
948
00a4c844
AC
949 * value.h (struct value): Delete field bfd_section.
950 (VALUE_BFD_SECTION): Delete macro.
951 (COERCE_REF): Update.
952 (value_at, value_at_lazy): Delete asection parameter.
953 * printcmd.c (print_formatted, x_command): Update.
954 (do_examine): Delete asection parameter.
955 (next_section): Delete variable.
956 * valops.c (value_cast, value_at, value_at_lazy)
957 (value_coerce_function, value_addr, value_ind, value_string)
958 (find_rt_vbase_offset, value_full_object): Update.
959 * hpacc-abi.c (hpacc_virtual_fn_field)
960 (hpacc_value_rtti_type): Update.
961 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
962 (gnuv3_baseclass_offset): Update.
963 * f-valprint.c (f_val_print): Update.
964 * c-valprint.c (c_val_print): Update.
965 * p-valprint.c (pascal_val_print): Update.
966 * jv-valprint.c (java_value_print): Update.
967 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
968 * ada-lang.c (ada_value_primitive_packed_val)
969 (ada_evaluate_subexp): Update.
970 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
971 * expprint.c (print_subexp_standard): Update.
972 * infcall.c (call_function_by_hand): Update.
973 * valarith.c (value_add): Update.
974 * eval.c (evaluate_subexp_standard): Update.
975 * values.c (allocate_value, value_copy, value_static_field): Update.
976 * findvar.c (read_var_value, locate_var_value): Update.
977
5cb2fe25
AC
9782004-11-09 Andrew Cagney <cagney@gnu.org>
979
980 * i386-linux-tdep.c: Include "dwarf2-frame.h".
981 * Makefile.in: Update all dependencies.
982
cbafadeb
AC
9832004-11-08 Andrew Cagney <cagney@gnu.org>
984
985 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
986 (sentinel_frame_unwinder): Add the prev_pc method.
987 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
988 available. Do not handle the sentinel-frame case.
989 * frame-unwind.h (frame_prev_register_ftype): Define.
990 (struct frame_unwind): Add prev_pc;
991
3b78cdbb
DA
9922004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
993
994 * configure.in: Check for ncurses/term.h.
995 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
996 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
997 * tui/tui.c: Don't include term.h.
998 * configure, config.in: Rebuilt.
999
bcfca652
MK
10002004-11-08 Mark Kettenis <kettenis@gnu.org>
1001
1002 * m68kbsd-nat.c: Include "inf-ptrace.h".
1003 (_initialize_m68kbsd_nat): Fix pasto.
1004 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1005
527159b7
RC
10062004-11-08 Randolph Chung <tausq@debian.org>
1007
1008 * infrun.c (debug_infrun): New variable.
1009 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1010 (handle_inferior_event, keep_going): Likewise.
1011 (_initialize_infrun): Register "set debug infrun" command.
1012
c874c7fc
AS
10132004-11-08 Andreas Schwab <schwab@suse.de>
1014
1015 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1016 PTRACE_EVENT_VFORKDONE.
1017 (child_follow_fork): Adjust.
1018
3c8fa307
AC
10192004-11-08 Andrew Cagney <cagney@gnu.org>
1020
5c26072a
AC
1021 * README: Refer to 6.3, not 6.2, update directory listing droppng
1022 references to intl/ and mmalloc/.
1023 * PROBLEMS: Refer to 6.3 not 6.2.
1024
3c8fa307
AC
1025 * PROBLEMS: Delete no-longer applicable problems.
1026
12b8a2cb
DJ
10272004-11-07 Andrew Cagney <cagney@redhat.com>
1028 Daniel Jacobowitz <dan@debian.org>
1029 Roland McGrath <roland@redhat.com>
1030
1031 * Makefile.in (symfile-mem.o): Update dependencies.
1032 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1033 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1034 * inf-ptrace.c (inf_ptrace_attach): Call
1035 observer_notify_inferior_created.
1036 * inftarg.c (child_attach): Likewise.
1037 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1038 (symbol_file_add_from_memory): Take NAME argument. Use it for
1039 the new BFD's filename.
1040 (add_symbol_file_from_memory_command): Update call to
1041 symbol_file_add_from_memory.
1042 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1043 (symbol_file_add_from_memory_wrapper): New.
1044 (_initialize_symfile_mem): Register add_vsyscall_page as an
1045 inferior_created observer.
1046
abbc6945
MK
10472004-11-07 Mark Kettenis <kettenis@gnu.org>
1048
1049 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1050 fetch_inferior_registers. Make static.
1051 (m68kbsd_store_inferior_registers): Rename from
1052 store_inferior_registers. Make static.
1053 (_initialize_m68kbsd_nat): Construct and add target vector.
1054 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1055 inftarg.o. Add inf-ptrace.o.
1056 (NAT_FILE): Set to tm-solib.h.
1057 (LOADLIBES): New variable.
1058 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1059 inftarg.o. Add inf-ptrace.o.
1060 (NAT_FILE): Delete variable.
1061 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1062 inftarg.o. Add inf-ptrace.o.
1063 (NAT_FILE): Set to tm-solib.h.
1064 * config/m68k/nm-nbsdaout.h: Remove file.
1065
3ed09a32
DJ
10662004-11-07 Daniel Jacobowitz <dan@debian.org>
1067
1068 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1069 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1070 (dwarf2_signal_frame_unwind): New.
1071 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1072 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1073
8e763687
MK
10742004-11-07 Mark Kettenis <kettenis@gnu.org>
1075
4fb31ed0
MK
1076 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1077
fabe86c8
MK
1078 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1079 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1080 to only include the structure members we actually need.
1081 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1082 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1083 only include the structure members we actually need.
1084 (mipsnbsd_init_abi): Update.
1085
366e93e8
MK
1086 * mips64obsd-nat.c: Include "mips-tdep.h".
1087 (MIPS64OBSD_NUM_REGS): Remove define.
1088 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1089 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1090 floating-point registers correctly.
1091 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1092
8e763687
MK
1093 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1094 "gdb_assert.h".
1095 (mips64obsd_sigframe_init): New function.
1096 (mips64obsd_sigframe): New variable.
1097 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1098 unwinder.
1099 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1100
5f6a2351
JB
11012004-11-06 Joel Brobecker <brobecker@gnat.com>
1102
1103 * alpha-mdebug-tdep.c: #include mdebugread.h.
1104 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1105 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1106
f059bf6f
AC
11072004-11-05 Andrew Cagney <cagney@gnu.org>
1108
1109 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1110 CFI and the init_reg method leave the register unspecified.
1111 Include the register name in the "Incomplete CFI data" complaint.
1112 Supress leading zeros in the address.
1113
1234d960
MK
11142004-11-05 Mark Kettenis <kettenis@gnu.org>
1115
1116 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1117 skipping a personality routine in a CIE augmentation.
1118
d75e3c94
JJ
11192004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1120
1121 * defs.h (fatal, vfatal): New function prototypes.
1122 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1123 via catch_errors.
1124 (backtrace_command): Change to call backtrace_command_stub via
1125 catch_errors instead of calling backtrace_command_1 directly.
1126 (backtrace_full_command): Ditto.
1127 * utils.c (error_stream_1): New static function.
1128 (verror): Change to call error_stream_1 instead of error_stream.
1129 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1130 (vfatal, fatal): New functions.
1131
98f276a0
AC
11322004-11-05 Andrew Cagney <cagney@gnu.org>
1133
1134 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1135 when not using selected frame.
1136
f724bf08
MK
11372004-11-05 Mark Kettenis <kettenis@jive.nl>
1138
1139 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1140 personality routine in a CIE augmentation.
1141
c789492a
FL
11422004-11-05 Felix Lee <felix+log1@specifixinc.com>
1143
1144 * stack.c (set_current_sal_from_frame): New function.
1145 (print_args_stub): Use it.
1146 (print_frame_info): Don't set sal here.
1147
a81b10ae
MK
11482004-11-04 Mark Kettenis <kettenis@gnu.org>
1149
1150 * dwarf2-frame.c (read_encoded_value): Change type of third
1151 argument to `unsigned char *'. Add support for LEB128 encodings.
1152
ad766c0a
JB
11532004-11-04 Jim Blandy <jimb@redhat.com>
1154
1155 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1156 prevent cross-objfile references.
1157 (make_cv_type): Doc fix. Don't create cross-objfile references,
1158 even for stub types.
1159 (replace_type): Add assertion to prevent cross-objfile references.
1160 (check_typedef): Never resolve a stub type by copying over a type
1161 from another file.
1162
c46b0409 11632004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1164
c46b0409
KI
1165 * Makefile.in (m32r-tdep.o): Update dependencies.
1166 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1167 ABI-specific overrides.
1168
9f0b0322 11692004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1170
9f0b0322
KI
1171 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1172 unnecessary parallel execution bit.
1173 (m32r_memory_remove_breakpoint): Ditto.
1174 (m32r_breakpoint_from_pc): Update.
1175
d5c27f81
RC
11762004-11-03 Randolph Chung <tausq@debian.org>
1177
1178 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 1179 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
1180 (hppa_frame_this_id): Likewise.
1181
4577593c
AC
11822004-11-03 Andrew Cagney <cagney@gnu.org>
1183
1184 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1185 packet, obsolete configurations, end-of-life deprecated_registers.
1186
b04de778
MK
11872004-11-02 Mark Kettenis <kettenis@gnu.org>
1188
1189 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1190 encodings as well as unsigned encodings.
1191
9f2feefc
AC
11922004-11-02 Andrew Cagney <cagney@gnu.org>
1193
1194 * value.h (COERCE_VARYING_ARRAY): Delete.
1195 * valops.c (value_cast, value_slice): Delete use.
1196 * valarith.c (value_subscript, value_concat): Delete use.
1197
117ea3cf
PH
11982004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1199
1200 * NEWS: GDB understands GNAT Ada.
1201
0bbc026e
JM
12022004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1203
1204 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1205 (amd64-sol2-tdep.o): Add dependencies.
1206 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1207 config/i386/sol2-64.mt: New files.
1208 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1209 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1210 (supply_gregset): Correct order of arguments to
1211 amd64_supply_native_gregset.
1212 (fill_gregset): Correct order of arguments to
1213 amd64_collect_native_gregset.
1214 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1215 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1216 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1217 for definition of NEW_PROC_API.
1218 * configure: Regenerate.
1219
3d38a0a5
JM
12202004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1221
1222 * MAINTAINERS (Write After Approval): Add myself.
1223
f81cd1cf
AC
12242004-11-01 Andrew Cagney <cagney@gnu.org>
1225
1226 * configure.tgt: Mark d10v-*-* as obsolete.
1227 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1228
f4e88c8e
PH
12292004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1230
1231 * values.c (modify_field): Correct handling of bit-fields that
1232 don't fit in 32 bits. Use unsigned operations throughout and
1233 simplify the code a bit. Document preconditions.
1234
84674fe1
AC
12352004-10-31 Andrew Cagney <cagney@gnu.org>
1236
96693b3a
AC
1237 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1238 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1239 (in_plt_section): Delete.
1240
6f296f8f
AC
1241 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1242 (mips_gdbarch_init): Do not set same.
1243
618501c0
AC
1244 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1245 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1246
b22e8f02
AC
1247 * gdbarch.sh (in_solib_call_trampoline): Delete.
1248 * gdbarch.h, gdbarch.c: Re-generate.
1249
84674fe1
AC
1250 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1251 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1252 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1253 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1254 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1255
c6d1029f
MK
12562004-10-31 Mark Kettenis <kettenis@gnu.org>
1257
1258 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1259 (mipsnbsd_fetch_inferior_registers): Rename from
1260 fetch_inferior_registers. Make static.
1261 (mipsnbsd_store_inferior_registers): Rename from
1262 store_inferior_registers. Make static.
1263 (_initialize_mipsnbsd_nat): New function and prototype.
1264 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1265 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1266 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1267 inf-ptrace.o.
1268
bd9ca83f
AC
12692004-10-31 Andrew Cagney <cagney@gnu.org>
1270
19d718a3
AC
1271 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1272 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1273 delete corresponding unused function.
1274 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1275 in_solib_call_trampoline.
1276 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1277 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1278 * config/mips/tm-nbsd.h: Ditto.
1279 * config/arm/tm-linux.h: Ditto.
1280 * config/mips/tm-linux.h: Ditto.
1281
e8ce19c0
AC
1282 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1283 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1284 in_solib_call_trampoline, delete corresponding unused function.
1285 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1286 (vaxnbsd_aout_init_abi): Ditto.
1287 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1288 (sparc32nbsd_aout_init_abi): Ditto.
1289 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1290 (ppc_linux_init_abi): Ditto.
1291 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1292 (ns32knbsd_init_abi_aout): Ditto.
1293 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1294 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1295 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1296 (m68kbsd_aout_init_abi): Ditto.
1297 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1298 (i386_cygwin_init_abi): Ditto.
1299 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1300 (i386bsd_init_abi): Ditto.
1301
af380d61
AC
1302 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1303 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1304 isn't used by this architecture.
1305 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1306 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1307 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1308 * s390-tdep.c (s390_gdbarch_init): Ditto.
1309 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1310 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1311 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1312 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1313 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1314 * amd64-tdep.c (amd64_init_abi): Ditto.
1315
0528d9f7
AC
1316 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1317 in_solib_call_trampoline to its default value of
1318 generic_in_solib_call_trampoline.
1319 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1320 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1321 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1322 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1323 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1324 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1325
f9f9eacb
AC
1326 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1327
a4ffd1e7
AC
1328 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1329
82e34d2f
AC
1330 * config/mips/tm-mips.h: Delete file.
1331 * remote-mips.c: Delete tm-mips.h from comment.
1332 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1333 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1334 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1335 * config/mips/tm-linux.h: Don't include tm-mips.h.
1336 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1337 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1338 * config/mips/tm-wince.h: Don't include.
1339
75dec9cf
AC
1340 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1341 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1342 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1343 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1344
bd9ca83f
AC
1345 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1346 * mdebugread.c (ecoff_relocate_efi): Delete function.
1347 * objfiles.c (objfile_relocate): Delete #ifdef
1348 MDEBUG_EFI_SYMBOL_NAME code.
1349
3352ef37
AC
13502004-10-31 Orjan Friberg <organ.friberg@axis.com>
1351 Andrew Cagney <cagney@gnu.org>
1352
1353 * gdbarch.sh (single_step_through_delay): Add.
1354 * gdbarch.h, gdbarch.c: Re-generate.
1355 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1356 (mips_step_skips_delay): Delete.
1357 * mips-tdep.c (mips_single_step_through_delay): Replace
1358 mips_step_skips_delay.
1359 (mips_gdbarch_init): Set single_step_through_delay.
1360 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1361
2440b685
MK
13622004-10-31 Mark Kettenis <kettenis@gnu.org>
1363
1364 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1365 from TRAMP_FRAME frame type.
1366
56a2fed5
AC
13672004-10-31 Andrew Cagney <cagney@gnu.org>
1368
9b792b1d
AC
1369 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1370
0a5e8d98
AC
1371 * mips-tdep.c (mips_ignore_helper): Delete.
1372 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1373 * infrun.c (handle_inferior_event): Delete #ifdef
1374 DEPRECATED_IGNORE_HELPER_CALL code.
1375
56a2fed5
AC
1376 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1377
f69c55b2
MK
13782004-10-31 Mark Kettenis <kettenis@gnu.org>
1379
1380 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1381 (fill_fpregset): Do not compile for 64-bit systems.
1382 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1383 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1384 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1385
d37cca3d
AC
13862004-10-30 Andrew Cagney <cagney@gnu.org>
1387
36b8628e
AC
1388 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1389 (struct mdebug_extra_func_info): Define.
1390 * config/alpha/tm-alpha.h: Delete same.
1391 * config/mips/tm-mips.h: Delete same.
1392 * mdebugread.c: Delete same.
1393 * Makefile.in: Update dependencies.
1394 * mips-mdebug-tdep.c: Include "mdebugread.h".
1395
5b123146
AC
1396 * objfiles.c: Include "mdebugread.h".
1397 * mdebugread.c: Include "mdebugread.h".
1398 (ecoff_relocate_cfi): Delete.
1399 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1400 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1401 * mdebugread.h (ecoff_relocate_efi): New file.
1402 * Makefile.in: Update dependencies.
1403
b9c3a7de
AC
1404 * mips-tdep.c (struct frame_extra_info): Delete.
1405 (temp_proc_desc): Delete.
1406
f92761ec
AC
1407 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1408 MIPS_EFI_SYMBOL_NAME.
1409 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1410 (struct mdebug_extra_func_info): Replace struct
1411 alpha_extra_func_info and alpha_extra_func_info_t.
1412 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1413 MIPS_EFI_SYMBOL_NAME.
1414 (struct mdebug_extra_func_info): Replace struct
1415 alpha_extra_func_info and alpha_extra_func_info_t.
1416 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1417 * mdebugread.c, alpha-mdebug-tdep.c:
1418
0bb57b31
AC
1419 Suggested by Mark Kettenis.
1420 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1421 fields frame_adjust and high_addr.
1422 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1423 (non_heuristic_proc_desc): Delete references.
1424
a5c9623c
AC
1425 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1426 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1427 * mips-tdep.c: Update.
1428
607fc93c
AC
1429 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1430 (MIPS_LAST_EMBED_REGNUM): Add.
1431 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1432 (LAST_EMBED_REGNUM): Delete.
1433 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1434
24e05951
AC
1435 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1436 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1437 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1438 * mips-linux-nat.c: Update.
1439
613e114f
AC
1440 * mips-tdep.h: Add comments on registers.
1441 (MIPS_UNUSED_REGNUM): Define.
1442 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1443 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1444 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1445 * mips-linux-nat.c, remote-mips.c: Update.
1446
d37cca3d
AC
1447 * config/mips/tm-mips.h (t_insn): Delete.
1448 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1449 Replace t_insn with ULONGEST.
1450
ceb41096
MK
14512004-10-30 Mark Kettenis <kettenis@gnu.org>
1452
d1180b0f
MK
1453 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1454 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1455 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1456 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1457 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1458 (mipsnbsd_core_osabi_sniffer): New function.
1459 (mipsnbsd_init_abi): Set regset_from_core_section.
1460 (_initialize_mipsnbsd_tdep): Remove calls to
1461 deprecated_add_core_fns.
1462 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1463 (mipsnbsd_regset_from_core_section): New functions.
1464 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1465 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1466
ceb41096
MK
1467 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1468 Remove optimization for DEPRECATED_FP_REGNUM.
1469
ec4045ea
AC
14702004-10-30 Andrew Cagney <cagney@gnu.org>
1471
cd65c8f6
AC
1472 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1473 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1474 (alpha_setup_arbitrary_frame): Delete.
1475 * mips-tdep.c (setup_arbitrary_frame): Delete.
1476 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1477 (setup_arbitrary_frame): Delete.
1478 * stack.c (parse_frame_specification_1): When specified, call
1479 create_new_frame with two parameters. Delete #ifdef
1480 SETUP_ARBITRARY_FRAME.
1481
95ac2dcf
AC
1482 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1483 (MIPS_INSTLEN): Delete.
1484 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1485 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1486 * remote-mips.c, mips-tdep.c: Update.
1487
1a8da44d
AC
1488 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1489 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1490 * mips-tdep.c (mips_mdebug_frame_cache)
1491 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1492 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1493 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1494 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1495 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1496 (mips_gdbarch_init): Do not append mdebug sniffers.
1497 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1498 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1499 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1500 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1501 * Makefile.in: Update dependencies.
1502
e6bc2e8a
AC
1503 * mips-tdep.h (mips_abi_regsize): Declare.
1504 * mips-tdep.c (mips_abi_regsize): Make non-static.
1505
ec4045ea
AC
1506 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1507 (make_mips16_addr): Delete.
e6bc2e8a 1508
6b16acab
MK
15092004-10-30 Mark Kettenis <kettenis@gnu.org>
1510
1511 * i386-sol2-nat.c: New file.
1512 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1513 i386-sol2-tdep.c.
1514 (i386-sol2-nat.o): Update dependencies.
1515 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1516 i386-sol2-nat.o.
1517
8b622e6a
AC
15182004-10-30 Andrew Cagney <cagney@gnu.org>
1519
1520 Total breakage identified by Joel Brobecker.
1521 * mips-tdep.c (after_prologue): Delete.
1522 (mips_skip_prologue): Use skip_prologue_using_sal.
1523 (heuristic_proc_desc): Delete, unused.
1524
772cf8be
MK
15252004-10-30 Mark Kettenis <kettenis@gnu.org>
1526
1527 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1528 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1529 Cleanup coding style.
1530
9c8fdbfa
AC
15312004-10-30 Andrew Cagney <cagney@gnu.org>
1532
0fe7e7c8
AC
1533 * mips-tdep.h (mips_pc_is_mips16): Declare.
1534 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1535 non-static. Update calls.
1536
1b295c3d
AC
1537 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1538 * command.h (add_setshow_enum_cmd): Declare.
1539 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1540
6bcadd06
AC
1541 * mips-tdep.c (_initialize_mips_tdep): Use
1542 add_setshow_zinteger_cmd.
1543
9c8fdbfa
AC
1544 * mips-tdep.c (mips_eabi_extract_return_value)
1545 (mips_o64_extract_return_value, mips_o64_store_return_value)
1546 (return_value_location, mips_eabi_reg_struct_has_addr)
1547 (mips_eabi_use_struct_convention)
1548 (mips_eabi_store_return_value): Delete.
1549 (mips_eabi_store_return_value): New function.
1550 (mips_eabi_return_value): New function.
1551 (mips_gdbarch_init): For O64 and EABI, delete
1552 extract_return_value, store_return_value, use_struct_convention
1553 and reg_struct_has_addr, add return_value.
1554
1d93fe1a
AC
1555 * mips-tdep.c (read_signed_register): Use
1556 regcache_cooked_read_signed.
1557
303d2914
MK
15582004-10-30 Mark Kettenis <kettenis@gnu.org>
1559
1560 * mipsread.c: Cleanup coding style.
1561 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1562 (mipscoff_symfile_finish): Remove prototypes.
1563
15642004-10-29 Mark Kettenis <kettenis@gnu.org>
1565
1566 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1567 (mips_mdebug_frame_cache, mips16_scan_prologue)
1568 (mips32_scan_prologue, mips_stub_frame_cache)
1569 (heuristic_proc_start, heuristic_proc_desc)
1570 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1571 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1572 (mips_o32_return_value, mips_o64_push_dummy_call)
1573 (mips_step_skips_delay, mips_skip_trampoline_code)
1574 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1575 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1576 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1577 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1578 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1579 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1580 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1581 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1582 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1583 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1584 ZERO_REGNUM.
1585 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1586 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1587 ZERO_REGNUM.
1588 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1589 A0_REGNUM.
1590 * mipsnbsd-nat.c: Include "mips-tdep.h".
1591 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1592 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1593
1c8831c5
AC
15942004-10-29 Andrew Cagney <cagney@gnu.org>
1595
1596 * stack.c (parse_frame_specification_1): New function based on
1597 parse_frame_specification. Add message and selected_frame_p
1598 paramters. Truely always return non-NULL.
1599 (parse_frame_specification): Call parse_frame_specification_1.
1600 (frame_info): Update. Eliminate target_has_stack check.
1601 (select_frame_command): Update.
1602
b04f3ab4
AC
16032004-10-29 Andrew Cagney <cagney@gnu.org>
1604
1605 * frame.h (get_selected_frame): Add message parameter.
1606 * frame.c (get_selected_frame): Add and use message parameter.
1607 * stack.c (current_frame_command, return_command, locals_info)
1608 (catch_info, args_info, up_silently_base, down_silently_base): Use
1609 get_selected_frame with an explicit message.
1610 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1611 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1612 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1613 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1614 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1615 * breakpoint.c: Update.
1616
16172004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1618
1619 * trad-frame.c (trad_frame_get_prev_register): Use
1620 frame_unwind_register instead of frame_register_unwind, do not
1621 recurse the register's location.
1622 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1623 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1624 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1625 * sh-tdep.c (sh_frame_prev_register): Ditto.
1626 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1627 * i386-tdep.c (i386_frame_prev_register): Ditto.
1628 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1629 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1630
7a952542
MK
16312004-10-28 Mark Kettenis <kettenis@jive.nl>
1632
c18c06be
MK
1633 * proc-events.c: Fix several coding-style issues. Consistently
1634 use #ifdef instead of #if defined().
1635 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1636 ARRAY_SIZE.
1637 (_initialize_proc_events): New prototype.
1638
7a952542
MK
1639 * proc-why.c: Fix several coding-style issues.
1640 (proc_prettyfprint_why): Use ARRAY_SIZE.
1641
fcad0fa4
JB
16422004-10-27 Jim Blandy <jimb@redhat.com>
1643
1644 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1645 manner independent of the host byte order.
1646
c163184f
MK
16472004-10-27 Mark Kettenis <kettenis@gnu.org>
1648
1649 * mips-tdep.c (id_delayed): Remove prototype.
1650
9c46b6f0
MK
16512004-10-26 Mark Kettenis <kettenis@gnu.org>
1652
1653 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1654 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1655 to enum with register numbers.
1656 (enum mips_insn_size): New enum.
1657
0d0266c6
AC
16582004-10-26 Andrew Cagney <cagney@gnu.org>
1659
e7d6a6d2
AC
1660 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1661 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1662 (mips_gdbarch_init): Update.
1663 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1664
c5115f39
AC
1665 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1666 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1667 IN_SOLIB_RETURN_TRAMPOLINE.
1668 * mips-tdep.c (mips_dump_tdep): Do not print
1669 IN_SOLIB_RETURN_TRAMPOLINE.
1670 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1671 (mips_gdbarch_init): Update.
1672
0d0266c6
AC
1673 * mips-tdep.h (mips_software_single_step): Move to here ...
1674 * config/mips/tm-mips.h: ... from here.
1675 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1676 (SOFTWARE_SINGLE_STEP): Delete.
1677 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1678
156a53ca
AC
16792004-10-25 Andrew Cagney <cagney@gnu.org>
1680
1681 * NEWS: Add Changes since GDB 6.3 section.
1682
f27cf670
AS
16832004-10-23 Andreas Schwab <schwab@suse.de>
1684
156a53ca
AC
1685 * ada-lang.c (grow_vect): Return the new array instead of
1686 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1687 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1688
121d8485
UW
16892004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1690
1691 * s390-tdep.c (enum pv_boolean): Remove.
1692 (pv_is_array_ref): Remove.
1693 (s390_on_stack): Remove.
1694 (S390_NUM_SPILL_SLOTS): Remove.
1695 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1696 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1697 (s390_store): Track all stores of orginal incoming registers to the
1698 stack constant offsets relative to the CFA, instead of only tracking
1699 stores into specific spill slots.
1700 (s390_load): Likewise.
1701 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1702 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1703 defined as call-saved by the ABI.
1704 (s390_push_dummy_call): Use bottom of dummy call argument save area
1705 as return value, not the top. Do not store to the called function's
1706 register save area.
1707 (s390_unwind_dummy_id): Adapt accordingly.
1708
0a6ddd08
AC
17092004-10-23 Andrew Cagney <cagney@gnu.org>
1710
1711 * objfiles.h (struct objfile): Rename obj_private to
1712 deprecated_obj_private, sym_private to deprecated_sym_private, and
1713 sym_stab_info to deprecated_sym_stab_info.
1714 * gdb-stabs.h: Update.
1715 * elfread.c: Update.
1716 * dbxread.c: Update.
1717 * coffread.c: Update.
1718 * xcoffread.c: Update.
1719 * symfile.c: Update.
1720 * somread.c: Update.
1721 * nlmread.c: Update.
1722 * mdebugread.c: Update.
1723 * hpread.c: Update.
1724 * coffread.c: Update.
1725
abc08782
MK
17262004-10-23 Mark Kettenis <kettenis@gnu.org>
1727
1728 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1729 * configure.host: Add mips64*-*-openbsd*.
1730 * configure.tgt: Add mips64*-*-openbsd*.
1731 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1732 mips64obsd-tdep.c.
1733 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1734 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1735
fc062ac6
JB
17362004-10-21 Joel Brobecker <brobecker@gnat.com>
1737
1738 * symtab.c (symbol_search_name): Minor reformatting.
1739
5bccb4d1
JB
17402004-10-20 Joel Brobecker <brobecker@gnat.com>
1741
1742 * symtab.h: Fix typo in comment.
1743
a738430d
MK
17442004-10-19 Mark Kettenis <kettenis@gnu.org>
1745
1746 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1747 (dwarf_decode_line_header): Likewise.
1748
f2cb65ca
MC
17492004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1750
1751 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1752
09e55376
AC
17532004-10-19 Andrew Cagney <cagney@gnu.org>
1754
1755 GDB 6.3 branch created.
1756 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1757
bc5f45f8
JB
17582004-10-15 Joel Brobecker <brobecker@gnat.com>
1759
1760 * dwarf2read.c (set_cu_language): Set language to Ada for
1761 DW_LANG_Ada83 and DW_LANG_Ada95.
1762
2941da8c
MC
17632004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1764
1765 From Andreas Schwab <schwab@suse.de>:
1766 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1767 for xmalloc and xrealloc.
1768
34a17005
AC
17692004-10-15 Andrew Cagney <cagney@gnu.org>
1770
1771 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1772 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1773 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1774 Update dependencies.
1775
714e53ab
PH
17762004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1777
1778 * ada-lang.c (ada_lookup_symbol): Correct comment.
1779 (ada_evaluate_subexp): Change error message for
1780 OP_FUNCALL case so as not to indicate an internal error.
1781
17822004-10-15 Joel Brobecker <brobecker@gnat.com>
1783
1784 Committed by Paul Hilfinger.
1785 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1786 type sizes in XVE/XVU types, and emit a warning when that happens,
1787 instead of rounding up the size of the resulting type.
1788 Some minor reformatting.
1789 (ada_is_aligner_type): Do not consider a type as an aligner type
1790 if there is a corresponding XVS type as well.
1791 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1792 have several levels of pointer indirection to the array.
1793
17942004-10-15 Jerome Guitton <guitton@gnat.com>
1795
1796 Committed by Paul Hilfinger.
1797 * ada-lang.c (check_size): New function.
1798 (coerce_unspec_val_to_type): call check_size to make sure
1799 that the object size is reasonable.
1800 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1801 Implements the case when we get a reference when we evaluate
1802 the expression of one of the bounds of the slice.
1803 (ada_value_struct_elt): when a packed array field is
1804 a reference, use ada_coerce_ref to dereference it; use
1805 ada_value_ind only if it is a pointer.
1806
29639122
JB
18072004-10-15 Joel Brobecker <brobecker@gnat.com>
1808
1809 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1810 a bit to avoid the necessity of an advance declaration. Remove
1811 declaration.
1812 (set_reg_offset): Move implemenation up.
1813 (mips16_get_imm): Likewise.
1814 (mips16_scan_prologue): Likewise.
1815 (reset_saved_regs): Likewise.
1816 (mips32_scan_prologue): Likewise.
1817
a65bbe44
JB
18182004-10-14 Joel Brobecker <brobecker@gnat.com>
1819
1820 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1821 Remove sp as a parameter, compute it internally instead. Move
1822 prologue scanning limit from heuristic_proc_desc to here.
1823 (mips16_scan_prologue): Likewise.
1824 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1825 by call to mips16_scan_prologue.
1826 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1827 by call to mips32_scan_prologue.
1828 (heuristic_proc_desc): Remove code that's no longer necessary.
1829 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1830 (mips_skip_prologue): Update calls to mips16_scan_prologue
1831 and mips32_scan_prologue.
1832
1c645fec
JB
18332004-10-14 Joel Brobecker <brobecker@gnat.com>
1834
1835 * mips-tdep.c (mips16_scan_prologue): Merge code from
1836 mips16_skip_prologue. Now return the address of the first
1837 instruction past the function prologue.
1838 (mips16_skip_prologue): Remove, no longer necessary.
1839 (mips_skip_prologue): Replace call to mips16_skip_prologue
1840 by call to mips16_scan_prologue.
1841
98b4dd94
JB
18422004-10-14 Joel Brobecker <brobecker@gnat.com>
1843
1844 * mips-tdep.c (mips32_scan_prologue): Merge code from
1845 mips32_skip_prologue. Now return the address of the first
1846 instruction past the function prologue.
1847 (mips32_skip_prologue): Remove. No longer necessary.
1848 (mips16_skip_prologue): Add parameter end_pc instead of
1849 computing it.
1850 (mips_skip_prologue): Compute the upper limit for the
1851 prologue scanning. Update call to mips16_skip_prologue.
1852 Replace call to mips32_skip_prologue by call to
1853 mips32_scan_prologue.
1854
ad4c72d2
MK
18552004-10-14 Mark Kettenis <kettenis@gnu.org>
1856
dfaf8edb
MK
1857 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1858 NetBSD system call stubs that store %rp in the ERP slot of the
1859 stack frame.
1860
3e3a28f1
MK
1861 * source.c: Always define O_BINARY to 0 if not defined already.
1862 (openp): Unconditionally use O_BINARY.
1863
ad4c72d2
MK
1864 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1865 * event-top.c (gdb_readline2): Likewise.
1866
52bd1401
OF
18672004-10-14 Orjan Friberg <orjanf@axis.com>
1868
1869 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1870 deprecated_add_core_fns which was removed by mistake.
1871
e0e25c6c
KB
18722004-10-13 Kevin Buettner <kevinb@redhat.com>
1873
1874 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1875 references to deprecated_registers[] with equivalent code.
1876
9f335945
KB
18772004-10-13 Kevin Buettner <kevinb@redhat.com>
1878
1879 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1880 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1881 instead of explicit test and print statement.
1882
06c2338d
MK
18832004-10-12 Mark Kettenis <kettenis@gnu.org>
1884
1b9445c2
MK
1885 * sparc-nat.c: Include "inf-ptrace.h".
1886 (sparc_target): New function.
1887 * sparc-nat.h: Update copyright year.
1888 (sparc_target): New prototype.
1889 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1890 (_initialize_sparcnbsd_nat): Construct and add target vector.
1891 * sparc64nbsd-nat.c: Include "target.h".
1892 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1893 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1894 Update dependencies.
1895 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1896 inftarg.o, add inf-ptrace.o.
1897 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1898 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1899 (NAT_FILE): Set to nm-bsd.h.
1900 (LOADLIBES): New variable.
1901 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1902 infarg.o, add inf-ptrace.o.
1903 * config/sparc/nm-nbsdaout.h: Remove file.
1904 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1905 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1906 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1907
06c2338d
MK
1908 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1909 "fopen-same.h". Update comment.
1910
3303a276
MK
19112004-10-11 Mark Kettenis <kettenis@gnu.org>
1912
1913 * i386gnu-nat.c: Include "gdb_string.h".
1914 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1915 registers when the floating-point state isn't initialized.
1916 * Makefile.in (i386gnu-nat.o): Update dependencies.
1917
04c663e3
DA
19182004-10-11 David Anderson <davea@sgi.com>
1919
1920 * regcache.c (regcache_raw_read): Comment was missing "to".
1921 Extraneous ' removed.
1922 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1923 comment now describes use.
1924
a5f6c8f5
OF
19252004-10-11 Orjan Friberg <orjanf@axis.com>
1926
1927 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1928 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1929 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1930 (cris_sigtramp_frame_sniffer): New functions.
1931 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1932 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1933 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1934 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1935 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1936 command.
1937 (cris_version_update): Remove, replace with ...
1938 (set_cris_version): New function.
1939 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1940 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1941 (_initialize_cris_tdep): Remove CRIS mode command.
1942 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1943 cris-fpless-backtrace command.
1944 (cris_scan_prologue): Fix prologue scanning limit.
1945 (cris_register_type): Update to reflect actual registers.
1946 (cris_register_bytes_ok) Remove.
1947 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1948 Remove set_gdbarch_deprecated_register_size,
1949 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1950
77109804
AC
19512004-10-10 Andrew Cagney <cagney@gnu.org>
1952
1953 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1954 comment.
1955
25652d4f
JB
19562004-10-10 Joel Brobecker <brobecker@gnat.com>
1957
1958 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1959
1e05a7bf
JB
19602004-10-10 Joel Brobecker <brobecker@gnat.com>
1961
1962 * mips-tdep.c (mips16_scan_prologue): Renames
1963 mips16_heuristic_proc_desc. Update comment.
1964 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1965 (heuristic_proc_desc): Update calls to the 2 functions above.
1966
c68a4142
JB
19672004-10-10 Joel Brobecker <brobecker@gnat.com>
1968
1969 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1970 Update comments. Also immediately return empty cache when the start
1971 address of our function could not be found.
1972 (mips_insn32_frame_cache): Likewise.
1973
0fce0821
JB
19742004-10-10 Joel Brobecker <brobecker@gnat.com>
1975
1976 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1977 (mips_insn16_frame_cache): Pass frame cache in call to
1978 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1979 Remove code that became redundant as a consequence.
1980 (mips32_heuristic_proc_desc): No longer compute a fake
1981 procedure descriptor. Compute the full frame cache instead.
1982 Some minor comment reformatting.
1983
b672553e
JB
19842004-10-10 Jim Blandy <jimb@redhat.com>
1985
1986 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1987 reader, tracing bytecode stuff): Remove self.
1988
9cc52bde
MK
19892004-10-10 Mark Kettenis <kettenis@gnu.org>
1990
cc9784b6
MK
1991 * sparc64-linux-tdep.c: Update copyright year. Don't include
1992 "solib-svr4.h".
1993 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1994 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1995 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1996
ee8aef23
MK
1997 * sparc-linux-tdep.c: Update copyright year.
1998 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1999 to struct frame_info *. Use safe_frame_unwind_memory instead of
2000 deprecated_read_memory_nobpt.
2001 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2002 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2003 changed signature of sparc_linux_sigtramp_start.
2004 (sparc32_linux_pc_in_sigtramp): Remove function.
2005 (sparc32_linux_sigtramp_p): New function.
2006 (sparc32_linux_sigtramp_frame_sniffer): Use
2007 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2008
bc73f8cc
MK
2009 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2010 Remove function.
2011 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2012
a2249542
MK
2013 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2014 (decode_packed_array_type, value_subscript_packed)
2015 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2016 argument in call to lim_warning.
2017
9cc52bde
MK
2018 * configure.in: Really disable the TUI if an enhanced curses
2019 library isn't found.
2020 * configure: Regenerate.
2021
151fc45b
MK
20222004-10-09 Mark Kettenis <kettenis@gnu.org>
2023
2024 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2025 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2026 * config/i386/nm-nbsdaout.h: Remove file.
2027 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2028 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2029 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2030 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2031 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2032 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2033 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2034 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2035 (ldd, ld_un, ld_2): Remove defines.
2036 * config/i386/nm-obsd.h: Likewise.
2037
375c0479
PH
20382004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2039
2040 * ada-lex.l: Remove useless rule whose right-context clause
2041 causes unreferenced static function warning for yyrealloc.
2042 (ada_flex_use): Remove the artificial reference to yyrealloc.
2043
c8e73a31
AC
20442004-10-08 Andrew Cagney <cagney@gnu.org>
2045
2046 * target.h (struct target_ops): Rename to_xfer_memory to
2047 deprecated_xfer_memory.
2048 * target.c: Update.
2049 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2050 * wince.c: Update.
2051 * win32-nat.c: Update.
2052 * v850ice.c: Update.
2053 * uw-thread.c: Update.
2054 * thread-db.c: Update.
2055 * sol-thread.c: Update.
2056 * remote.c: Update.
2057 * remote-vx.c: Update.
2058 * remote-st.c: Update.
2059 * remote-sim.c: Update.
2060 * remote-sds.c: Update.
2061 * remote-rdp.c: Update.
2062 * remote-rdi.c: Update.
2063 * remote-mips.c: Update.
2064 * remote-m32r-sdi.c: Update.
2065 * remote-e7000.c: Update.
2066 * procfs.c: Update.
2067 * ppc-bdm.c: Update.
2068 * nto-procfs.c: Update.
2069 * monitor.c: Update.
2070 * linux-nat.c: Update.
2071 * inftarg.c: Update.
2072 * hpux-thread.c: Update.
2073 * go32-nat.c: Update.
2074 * gnu-nat.c: Update.
2075 * exec.c: Update.
2076 * corelow.c: Update.
2077 * bsd-kvm.c: Update.
2078 * aix-thread.c: Update.
2079
aa869812
AC
20802004-10-08 Andrew Cagney <cagney@gnu.org>
2081
2082 * target.c (debug_target): Move to near start of file.
2083 (target_stopped_data_address_p): Re-org logic, add casts.
2084
8dcef9cf
MK
20852004-10-02 Mark Kettenis <kettenis@gnu.org>
2086
2087 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2088 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2089 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2090 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2091 New defines.
2092
4aa7a7f5
JJ
20932004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2094
2095 * target.h (to_stopped_data_address): Change prototype to
2096 take a CORE_ADDR pointer and return an int.
2097 * target.c (update_current_target): Change to_stopped_data_address
2098 to match new prototype.
2099 (debug_to_stopped_data_address): Change appropriately.
2100 * breakpoint.c (bpstat_stop_status): Change call to
2101 target_stopped_data_address to use new prototype.
2102 * frv-tdep.c (frv_have_stopped_data_address): New function.
2103 (frv_stopped_data_address): Change to new prototype and
2104 functionality.
2105 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2106 prototype and functionality.
2107 (ia64_stopped_by_watchpoint): New function.
2108 * i386-nat.c (i386_stopped_data_address): Change to new
2109 prototype and functionality.
2110 (i386_stopped_by_watchpoint): New function.
2111 * remote.c (remote_stopped_data_address): Change to new prototype
2112 and functionality.
2113 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2114 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2115 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2116 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2117 new i386_stopped_by_watchpoint function.
2118 (i386_stopped_by_watchpoint): New prototype.
2119 (i386_stoppped_data_address): Change to new prototype.
2120 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2121 new ia64_stopped_by_watchpoint function.
2122 (ia64_stopped_by_watchpoint): New prototype.
2123 (ia64_stopped_data_address): Ditto.
2124
61ee279c
PH
21252004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2126
2127 * ada-typeprint.c (ada_print_type): Use int_string for printing
2128 modulus of modular type.
2129 * ada-lang.h (ada_modulus): Change return type to unsigned.
2130 * ada-lang.c (ada_language_arch_info): Correct type of
2131 string_char_type.
2132 (ada_modulus): Return unsigned result.
2133 (ada_lookup_symbol): Remove user disambiguation and modify comment
2134 accordingly.
2135
21362004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2137
2138 Committed by Paul Hilfinger.
2139 * ada-lang.c (decode_packed_array): On big-endian targets,
2140 left-justify the value if it comes with a modular type.
2141
21422004-10-08 Joel Brobecker <brobecker@gnat.com>
2143
2144 Committed by Paul Hilfinger.
2145 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2146 (is_name_suffix): Add support for "___JM" suffixes.
2147 (ada_check_typedef): Renames ada_completed_type.
2148 Update all users of CHECK_TYPEDEF, check_typedef, and
2149 ada_complete_type to call ada_check_typedef.
2150 * ada-typeprint.c: Likewise.
2151 * ada-valprint.c: Likewise.
2152
b6c25a56
CV
21532004-10-08 Corinna Vinschen <vinschen@redhat.com>
2154
2155 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2156
83ca6a46
NR
21572004-10-08 Nick Roberts <nickrob@snap.net.nz>
2158
2159 * MAINTAINERS: Update e-mail address.
2160
1fd8cd20
DJ
21612004-10-07 Daniel Jacobowitz <dan@debian.org>
2162
2163 From Maciej W. Rozycki <macro@mips.com>:
2164 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2165 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2166
cea15572
KI
21672004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2168
2169 * m32r-tdep.c (decode_prologue): Support functions written
2170 in assembler language. Recognize trap instructions as the
2171 end of prologue.
2172 (m32r_frame_unwind_cache): Ditto.
2173 (m32r_skip_prologue): Extend search limit. Quit analyzing
2174 prologue if pc's location is not readable.
2175
23485554
PH
21762004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2177
2178 * Makefile.in (.l.c): Do conversions of names of alloc and free
2179 functions that are done for .y.c files, plus special one
2180 for yy_flex_realloc. Also, correct missing-file tests here.
2181 * ada-lex.l (malloc, free): Remove macros.
2182 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2183 xrealloc.
2184 (ada_flex_use): Dummy definition to remove warnings about unused
2185 functions.
2186 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2187 to suppress warning.
2188
c0409442
CV
21892004-10-06 Corinna Vinschen <vinschen@redhat.com>
2190
2191 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2192 RETURN_VALUE.
2193 (sh_return_value_fpu): Ditto for CPUs with FPU.
2194 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2195 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2196 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2197 RETURN_VALUE functions.
2198
9bed62d7
CV
21992004-10-06 Corinna Vinschen <vinschen@redhat.com>
2200
2201 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2202 (sh_pseudo_register_write): Ditto.
2203
03131d99
CV
22042004-10-06 Corinna Vinschen <vinschen@redhat.com>
2205
2206 * sh-tdep.c (IS_MACL_STS): New define.
2207 (IS_MOVI20): Ditto.
2208 (IS_MACL_LDS): Ditto.
2209 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2210 instructions in prologue.
2211 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2212 instructions in epilogue.
2213
da962468
CV
22142004-10-06 Corinna Vinschen <vinschen@redhat.com>
2215
2216 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2217 (sh_sh_register_name): Add eight empty register names.
2218 (sh_sh3_register_name): Ditto.
2219 (sh_sh3e_register_name): Ditto.
2220 (sh_sh2e_register_name): Ditto.
2221 (sh_sh2a_register_name): New function, defining SH2A register set.
2222 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2223 in nofpu case.
2224 (sh_sh_dsp_register_name): Add eight empty register names.
2225 (sh_sh3_dsp_register_name): Ditto.
2226 (sh_sh4_register_name): Ditto.
2227 (sh_sh4_nofpu_register_name): Ditto.
2228 (sh_sh4al_dsp_register_name): Ditto.
2229 (sh2a_show_regs): New function.
2230 (sh2a_nofpu_show_regs): New function.
2231 (sh_sh2a_register_type): New function.
2232 (do_bank_register_info): New function.
2233 (sh_print_pseudo_register): Call do_bank_register_info.
2234 Call sh_print_pseudo_register for valid "bank" register.
2235 (sh_sh2a_register_sim_regno): New function.
2236 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2237 Increment pseudo register count by one for all sh variants with
2238 pseudo registers to accomodate pseudo bank register.
2239 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2240 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2241 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2242 Increment pseudo register numbers.
2243
1326e61b
CV
22442004-10-06 Corinna Vinschen <vinschen@redhat.com>
2245
2246 * dwarf2read.c (read_subroutine_type): Call make_function_type
2247 instead of lookup_function_type.
2248
146c42e3
JB
22492004-10-05 Jim Blandy <jimb@redhat.com>
2250
2251 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2252 (Previous change missed some uses.)
2253
1df84f13
AC
22542004-10-05 Andrew Cagney <cagney@gnu.org>
2255
2256 * target.h (deprecated_child_ops): Rename child_ops.
2257 * wince.c: Update copyright. Rename child_ops.
2258 * win32-nat.c: Rename child_ops.
2259 * target.c: Rename child_ops.
2260 * rs6000-nat.c: Rename child_ops.
2261 * linux-nat.c: Rename child_ops.
2262 * infttrace.c: Rename child_ops.
2263 * inftarg.c: Rename child_ops.
2264 * infptrace.c: Rename child_ops.
2265 * hppah-nat.c: Update copyright. Rename child_ops.
2266 * hpux-thread.c: Update copyright. Rename child_ops.
2267
21e3b9b9
DJ
22682004-10-05 Daniel Jacobowitz <dan@debian.org>
2269
2270 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2271
de83afe7
AC
22722004-10-05 Andrew Cagney <cagney@gnu.org>
2273
2274 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2275
10b3939b
DJ
22762004-10-05 Daniel Jacobowitz <dan@debian.org>
2277
2278 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2279 (die_ref_table): Remove.
2280 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2281 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2282 the usage of this type.
2283 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2284 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2285 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2286 (dwarf2_create_include_psymtab): Update comment.
2287 (find_partial_die): Remove third argument. Remove unreachable call
2288 to error ().
2289 (dwarf2_find_containing_comp_unit): Update comments. Change one
2290 assertion to an error. Remove an unreachable error.
2291 (dwarf2_find_comp_unit): Update comments.
2292 (type_at_offset): Remove dead code.
2293 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2294 (store_in_ref_table): Add CU argument.
2295 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2296 inter-compilation-unit references.
2297 (load_full_comp_unit, process_full_comp_unit): New functions, based
2298 on psymtab_to_symtab_1.
2299 (psymtab_to_symtab_1): Use them.
2300 (dwarf2_add_dependence): New function.
2301 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2302 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2303 (partial_die_parent_scope, guess_structure_name): Update for changes
2304 to find_partial_die.
2305 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2306 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2307 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2308 (read_die_and_children): Update call to store_in_ref_table.
2309 (do_free_die_list_cleanup): Remove.
2310 (fixup_partial_die): Update for changes to find_partial_die.
2311 (read_full_die): Handle queueing absolute references.
2312 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2313 (dwarf2_attr, die_specification, die_type)
2314 (die_containing_type, dwarf2_extension): Update calls to
2315 follow_die_ref.
2316 (dump_die): Update DW_FORM_ref* handling.
2317 (dwarf2_get_ref_die_offset): Likewise.
2318 (free_one_comp_unit): Release the dies list.
2319 (dwarf2_mark_helper): New function.
2320 (dwarf2_mark): Use it.
2321
998bdd68
MK
23222004-10-05 Mark Kettenis <kettenis@jive.nl>
2323
2324 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2325 when writing to memory.
2326
14588880
KI
23272004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2328
2329 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2330 (m32r_extract_struct_value_address): Delete function.
2331 (m32r_return_value): New function.
2332 (m32r_gdbarch_init): Instead of store_return_value,
2333 extract_return_value, deprecated_extract_struct_value_address
2334 and deprecated_use_struct_convention, set return_value.
2335
dd5e6932
DJ
23362004-10-03 Daniel Jacobowitz <dan@debian.org>
2337
2338 * dwarf2read.c (read_subrange_type): Add comment for variable
2339 sized arrays.
2340
7dc1ef8d
PH
23412004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2342
2343 * Makefile.in (.l.c): Modify rule for compatibility with recent
2344 versions of flex, and remove most command-line options.
2345 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2346 options.
2347
1f8173e6
PH
23482004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2349
2350 Turn on initial Ada support (mainly expression evaluation).
2351
2352 * Makefile.in (SFILES): Remove ada-tasks.c.
2353 (HFILES_NO_SRCDIR): Add ada-lang.h.
2354 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2355 (YYOBJ): Add ada-exp.o.
2356 (rule .l.c): Generalize to not mention ada.
2357 * symtab.c: Include ada-lang.h.
2358 (symbol_natural_name, symbol_demangled_name)
2359 (symbol_search_name): Add Ada case.
2360
cb85a953
AC
23612004-10-01 Andrew Cagney <cagney@gnu.org>
2362
3f3db248
AC
2363 * Makefile.in (COMMON_OBS): Add inf-child.o.
2364 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2365 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2366 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2367 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2368 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2369 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2370 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2371 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2372 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2373 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2374 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2375 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2376 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2377
cb85a953
AC
2378 * target.c (xfer_using_stratum): Change return type to LONGEST.
2379 On each iteration offset, readbuf and writebuf.
2380 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2381 partial_length, and read/modify/write predicate, update comments.
2382 Pass buffer.word to ptrace write.
2383
963a6417
PH
23842004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2385
2386 * symfile.c (init_filename_language_table): Add extensions for
2387 Ada.
2388 * defs.h (enum language): Add language_ada.
2389 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2390 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2391 (add_symbols_from_enclosing_procs): Make a no-op for now.
2392 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2393 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2394 (find_line_in_linetable, find_next_line_in_linetable)
2395 (read_all_symtabs, is_plausible_func_for_line)
2396 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2397 (is_runtime_sym_defined, check_size): Remove declaration.
2398 (function_name_from_pc, ada_translate_error_message)
2399 (ada_lookup_minimal_symbol): Remove definition.
2400 (ada_add_block_symbols): Remove useless label.
2401 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2402 useless declaration.
2403 (ada_is_exception_sym): Likewise.
2404
9b32d526
KI
24052004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2406
2407 Add m32r-linux support.
2408 * configure.tgt: Add m32r*-*-linux*.
2409 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2410 and m32r-linux-tdep.c.
2411 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2412 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2413 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2414 m32r-linux-tdep.c.
2415 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2416 config/m32r/linux.mh, config/m32r/linux.mt,
2417 config/m32r/nm-linux.h: New files.
2418
2de118d3
JB
24192004-09-30 Joel Brobecker <brobecker@gnat.com>
2420
2421 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2422 (mips32_fetch_instruction): Remove, unused.
2423
a9fe69d1
JB
24242004-09-30 Joel Brobecker <brobecker@gnat.com>
2425
2426 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2427 conditions that will always be true.
2428
bc8ffc12
MK
24292004-09-30 Mark Kettenis <kettenis@gnu.org>
2430
ba0cd111
MK
2431 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2432 (vaxbsd_fetch_inferior_registers): Rename from
2433 fetch_inferior_registers. Make static.
2434 (vaxbsd_store_inferior_registers): Rename from
2435 store_inferior_registers. Make static.
2436 (_initialize_vaxbsd_nat): Construct and add target vector.
2437 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2438 inftarg.o. Add inf-child.o and inf-ptrace.o.
2439 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2440 inftarg.o. Add inf-child.o and inf-ptrace.o.
2441 (NAT_FILE): Remove.
2442 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2443 inftarg.o. Add inf-child.o and inf-ptrace.o.
2444 (NAT_FILE): Remove.
2445 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2446
bc8ffc12
MK
2447 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2448 (m88kbsd_fetch_inferior_registers): Rename from
2449 fetch_inferior_registers. Make static.
2450 (m88kbsd_store_inferior_registers): Rename from
2451 store_inferior_registers. Make static.
2452 (_initialize_m88kbsd_nat): New prototype and function.
2453 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2454 inftarg.o. Add inf-child.o and inf-ptrace.o.
2455 (NAT_FILE): Remove.
2456 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2457
27394598
AC
24582004-09-30 Andrew Cagney <cagney@gnu.org>
2459
2460 * target.c (target_xfer_partial): New function.
2461 (target_read_memory_partial, target_write_memory_partial)
2462 (default_xfer_partial, target_read_partial, target_write_partial)
2463 (xfer_using_stratum): Use.
2464 (debug_to_xfer_partial): Delete function.
2465 (setup_target_debug): Do not override to_xfer_partial.
2466
74a4fe32
MK
24672004-09-30 Mark Kettenis <kettenis@chello.nl>
2468
2469 * fork-child.c: Update copyright year. Fix coding style.
2470
982526a1
MK
24712004-09-29 Mark Kettenis <kettenis@gnu.org>
2472
2473 * defs.h (msavestring, mstrsave): Remove prototypes.
2474 * utils.c (msavestring, mstrsave): Remove functions.
2475 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2476 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2477 of mstrsave.
2478 * source.c (find_and_open_source): Use xstrdup instead of
2479 mstrsave.
2480
b8eb5af0
AC
24812004-09-30 Andrew Cagney <cagney@gnu.org>
2482
0779438d
AC
2483 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2484 (inf_ptrace_xfer_memory): Delete.
2485 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2486 (target_read_memory, target_write_memory): Use xfer_using_stratum
2487 when target_xfer_partial_p.
2488 (debug_target): Move to start of file.
2489 (target_read_memory_partial, target_write_memory_partial): Use
2490 to_xfer_partial when target_xfer_partial_p.
2491
f929a579
AC
2492 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2493 inf_ptrace_xfer_memory with equivalent code.
2494 * inftarg.c (child_xfer_partial): When performing a write, pass
2495 writebuf to child_xfer_memory.
2496
b8eb5af0
AC
2497 * target.c (target_read_string): Use target_read_memory instead of
2498 target_xfer_memory.
2499
ee21b650
AC
25002004-09-29 Andrew Cagney <cagney@gnu.org>
2501
d3e05d0d
AC
2502 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2503 the address of status.
2504
ee21b650
AC
2505 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2506 (kill_inferior): Inline ptrace_wait call.
2507 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2508 * inftarg.c (child_wait): Inline ptrace_wait call.
2509
a182eed6
AC
2510 * target.h (struct target_ops): Delete field to_post_wait.
2511 (target_post_wait): Delete macro.
2512 (child_post_wait): Delete declaration.
2513 * target.c (update_current_target, update_current_target)
2514 (debug_to_post_wait, setup_target_debug): Delete functions and
2515 references.
2516 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2517 * inftarg.c (child_post_wait): Delete.
2518 (init_child_ops): Do not set to_post_wait.
2519 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2520 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2521 * inf-child.c (inf_child_post_wait): Delete.
2522 (inf_child_target): Do not set to_post_wait.
2523 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2524 (inf_ptrace_target): Do not set to_post_wait.
2525
ba0c540b
AC
2526 * wince.c (child_ops): Delete.
2527 * win32-nat.c (child_ops): Delete.
2528
81977402
AC
2529 * inftarg.c (inftarg_set_find_memory_regions)
2530 (inftarg_set_make_corefile_notes): Delete functions.
2531 (_initialize_linux_nat): Inline calls.
2532
5ac10fd1
AC
2533 * target.h (child_ops): Declare.
2534 * inftarg.c (child_ops): Move from here ...
2535 * target.c (child_ops): ... to here.
2536 * wince.c (child_ops): Delete extern declaration.
2537 * win32-nat.c (child_ops): Delete extern declaration.
2538 * linux-nat.c (child_ops): Delete extern declaration.
2539 * hpux-thread.c (child_ops): Delete extern declaration.
2540
663408c2 25412004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2542
2543 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2544
0dad8a66
MK
25452004-09-28 Mark Kettenis <kettenis@gnu.org>
2546
2547 * configure.in: Only set host_makefile_frag when building a native
2548 debugger.
2549 * configure: Regenerate.
e8d74ed3
MK
2550
2551 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2552 for OpenBSD ELF.
2553
dba24537
AC
25542004-09-28 Andrew Cagney <cagney@gnu.org>
2555
e979516b
AC
2556 Problem identified by Paul Hilfinger.
2557 * Makefile.in (ada_lex_c): Define.
2558 (ada-lex.o): Delete rule.
2559
dba24537
AC
2560 * linux-proc.c: Delete file.
2561 * Makefile.in: Update.
2562 * config/sparc/linux64.mh (NATDEPFILES):
2563 * config/sparc/linux.mh (NATDEPFILES): Update.
2564 * config/s390/s390.mh (NATDEPFILES): Update.
2565 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2566 * config/powerpc/linux.mh (NATDEPFILES): Update.
2567 * config/pa/linux.mh (NATDEPFILES): Update.
2568 * config/mips/linux.mh (NATDEPFILES): Update.
2569 * config/m68k/linux.mh (NATDEPFILES): Update.
2570 * config/ia64/linux.mh (NATDEPFILES): Update.
2571 * config/i386/linux64.mh (NATDEPFILES): Update.
2572 * config/i386/linux.mh (NATDEPFILES): Update.
2573 * config/arm/linux.mh (NATDEPFILES): Update.
2574 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2575 * linux-nat.c: Update copyright. Include <sys/param.h>,
2576 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2577 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2578 (O_LARGEFILE): Possibly define.
2579 (_initialize_linux_nat, linux_proc_pending_signals)
2580 (add_line_to_sigset, linux_proc_xfer_memory)
2581 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2582 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2583 (struct linux_corefile_thread_data)
2584 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2585 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2586
d6b0e80f
AC
25872004-09-16 Andrew Cagney <cagney@gnu.org>
2588
2589 * lin-lwp.c: Delete file.
2590 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2591 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2592 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2593 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2594 (linux_nat_attach, detach_callback, linux_nat_detach)
2595 (resume_callback, resume_clear_callback, linux_nat_resume)
2596 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2597 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2598 (status_callback, running_callback, count_events_callback)
2599 (select_singlestep_lwp_callback, select_event_lwp_callback)
2600 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2601 (child_wait, stop_and_resume_callback, linux_nat_wait)
2602 (kill_callback, kill_wait_callback, linux_nat_kill)
2603 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2604 (linux_nat_xfer_memory, linux_nat_thread_alive)
2605 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2606 (_initialize_linux_nat): New functions.
2607 * Makefile.in: Update all dependencies.
2608 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2609 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2610 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2611 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2612 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2613 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2614 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2615 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2616 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2617 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2618 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2619 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2620 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2621
5a174d79
MK
26222004-09-27 Mark Kettenis <kettenis@gnu.org>
2623
2f604c28
MK
2624 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2625 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2626
5a174d79
MK
2627 * configure.in: Don't comment out NATDEPFILES in the generated
2628 Makefile if NAT_FILE is unset.
2629 * configure: Regenerate.
2630
b2ed1746
AC
26312004-09-27 Andrew Cagney <cagney@gnu.org>
2632
44cbf7b5
AC
2633 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2634 (insert_step_resume_breakpoint): Delete.
2635 (insert_step_resume_breakpoint_at_frame): New function.
2636 (insert_step_resume_breakpoint_at_sal): New function.
2637 (handle_inferior_event, step_into_function)
2638 (insert_step_resume_breakpoint): Simplify by using same.
2639
b2ed1746
AC
2640 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2641
3691b3be
MK
26422004-09-26 Mark Kettenis <kettenis@gnu.org>
2643
36f391e8
MK
2644 * fbsd-proc.c: Remove file.
2645 * Makefile.in (fbsd-proc.o): Remove dependency.
2646
771e236c
MK
2647 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2648 code together.
2649
3691b3be
MK
2650 * config/i386/nm-fbsd64.h: Remove file.
2651 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2652
6a5c78a3
MK
26532004-09-26 Mark Kettenis <kettenis@gnu.org>
2654
2655 * amd64-nat.h: Update copyright year.
2656 (amd64bsd_target): New prototype.
2657 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2658 (amd64bsd_target): New function.
2659 (amd64bsd_fetch_inferior_registers): Rename from
2660 fetch_inferior_registers. Make static.
2661 (amd64bsd_store_inferior_registers): Rename from
2662 store_inferior_registers. Make static.
2663 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2664 (_initialize_amd64fbsd_nat): Construct and add target vector.
2665 * amd64nbsd-nat.o: Include "target.h".
2666 (_initialize_amd64nbsd_nat): Construct and add target vector.
2667 * amd64obsd-nat.c: Include "target.h".
2668 (_initialize_amd64obsd_nat): Construct and add target vector.
2669 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2670 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2671 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2672 fbsd-nat.o.
2673 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2674 Remove infptrace.o and inftarg.o. Add inf-child.o and
2675 inf-ptrace.o.
2676 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2677 (amd64obsd-nat.o): Update dependencies.
2678
27acbe61
MK
26792004-09-25 Mark Kettenis <kettenis@gnu.org>
2680
509a5e7d
MK
2681 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2682 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2683 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2684 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2685 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2686
6e1e94ea
MK
2687 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2688 Inline attach call.
2689 (inf_ptrace_detach): Inline detach call.
2690
8b9cf735
MK
2691 * configure.in: Check for waddstr instead of mvwaddstr when
2692 searching for curses library. Check for wborder.
2693 * configure, config.in: Regenerate.
2694 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2695 available.
2696
27acbe61
MK
2697 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2698
b96ec7ac
AC
26992004-09-24 Robert Picco <Robert.Picco@hp.com>
2700
2701 Committed by Andrew Cagney.
2702 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2703 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2704 configuration.
2705 (fetch_register_using_p): Implement 'p' packet. Based on code by
2706 Fernando Nasser.
2707 (remote_fetch_registers): Call fetch_register_using_p.
2708 (init_all_packet_configs, show_remote_cmd)
2709 (_initialize_remote): Add p-packet.
2710
62ece330
MK
27112004-09-24 Mark Kettenis <kettenis@gnu.org>
2712
2713 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2714 instead of call_ptrace. Call wait directly instead of
2715 ptrace_wait.
2716 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2717 (inf_ptrace_wait): Inline ptrace_wait call.
2718
00937274
PH
27192004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2720
2721 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2722 rolled back instead.
2723
3f2c7a45
PH
27242004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2725
2726 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2727 the new argument order.
2728
b6fcb393
CV
27292004-09-23 Corinna Vinschen <vinschen@redhat.com>
2730
2731 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2732 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2733 (struct gdbarch_tdep): Remove.
2734 (struct xstormy16_frame_cache): New frame cache structure.
2735 (xstormy16_register_byte, xstormy16_register_raw_size)
2736 (xstormy16_reg_virtual_type, xstormy16_register_type)
2737 (xstormy16_push_arguments, xstormy16_push_return_address)
2738 (xstormy16_pop_frame, xstormy16_store_struct_return)
2739 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2740 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2741 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2742 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2743 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2744 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2745 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2746 (xstormy16_extract_return_value, xstormy16_store_return_value):
2747 Regcachify. Drop useless struct convention handling.
2748 (xstormy16_register_type, xstormy16_return_value)
2749 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2750 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2751 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2752 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2753 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2754 (xstormy16_unwind_dummy_id) : New functions.
2755 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2756 of xstormy16_scan_prologue.
2757 (xstormy16_frame_unwind): New frame_unwind structure.
2758 (xstormy16_frame_base): New frame_base structure.
2759 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2760 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2761
1285b746
MK
27622004-09-22 Mark Kettenis <kettenis@gnu.org>
2763
2764 * language.c (language_gdbarch_post_init): Fix off-by one error.
2765
1c379e20
DJ
27662004-09-21 Daniel Jacobowitz <dan@debian.org>
2767
2768 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2769 (struct dwarf2_offset_and_type): New.
2770 (set_die_type, reset_die_and_siblings_types, get_die_type)
2771 (offset_and_type_hash, offset_and_type_eq): New functions.
2772 (read_structure_type, read_enumeration_type, read_array_type)
2773 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2774 (read_tag_reference_type, read_tag_const_type)
2775 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2776 (read_typedef, read_base_type, read_subrange_type): Use
2777 set_die_type.
2778
ae038cb0
DJ
27792004-09-20 Daniel Jacobowitz <dan@debian.org>
2780
2781 * Makefile.in (dwarf2read.o): Update dependencies.
2782 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2783 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2784 and read_in_chain.
2785 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2786 mark, and has_form_ref_addr.
2787 (struct dwarf2_per_cu_data): New.
2788 (dwarf2_max_cache_age): New.
2789 (dwarf2_build_psymtabs_hard): Free cached compilation units
2790 after loading. Create and manage the list of compilation units.
2791 Remove unnecessary NULL initialization. Fix indentation.
2792 (psymtab_to_symtab_1): Initialize all of CU.
2793 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2794 (find_partial_die): Use dwarf2_find_containing_comp_unit
2795 and load_comp_unit.
2796 (free_stack_comp_unit): Update comments. Clear the per-cu
2797 pointer. Handle aging.
2798 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2799 (age_cached_comp_units, free_one_cached_comp_unit)
2800 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2801 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2802 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2803 (show_dwarf2_cmd): New.
2804 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2805 and "maint show dwarf2 max-cache-age".
2806 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2807 externs.
2808 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2809 global.
2810
987504bb
JJ
28112004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2812
2813 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2814 and dwarf2_cu struct pointer as arguments. Change function to use
2815 obstack if provided and use dwarf2_cu to determine language-specific
2816 separator.
2817 (partial_die_parent_scope): Change comment to include java. Use
2818 new version of typename_concat instead of obconcat.
2819 (partial_die_full_name): Use typename_concat.
2820 (read_namespace): Ditto.
2821 (read_enumeration_type): Use typename_concat instead of obconcat.
2822 (new_symbol): Ditto.
2823 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2824 (guess_structure_name): Ditto.
2825 (read_subroutine_type): Ditto.
2826 (read_structure_type): Ditto.
2827 (is_vtable_name): Add Java support.
2828 (determine_class_name): Switch to new typename_concat call.
2829 (determine_prefix): Switch to new typename_concat call.
2830 * jv-exp.y (FuncStart): New pattern.
2831 (MethodInvocation): Add support for simple function calls. Change
2832 warning message for other forms of inferior call currently not
2833 supported.
2834 * valarith.c (value_subscript): Treat an array with upper-bound
2835 of -1 as unknown size.
2836
d9c8471e
DJ
28372004-09-20 Daniel Jacobowitz <dan@debian.org>
2838
2839 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2840 (lookup_partial_symtab): Use symtab_to_fullname.
2841
d73f140a
JB
28422004-09-19 Jim Blandy <jimb@redhat.com>
2843
2844 * minsyms.c (lookup_minimal_symbol): Doc fix.
2845
adbef1f0
AC
28462004-09-20 Andrew Cagney <cagney@gnu.org>
2847
2848 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2849 CHILD_RESUME.
2850 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2851 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2852 KILL_INFERIOR.
2853 * infptrace.c: Update.
2854
d092d1a2
DJ
28552004-09-19 Daniel Jacobowitz <dan@debian.org>
2856
2857 * symtab.c (output_source_filename): Mark first argument as const.
2858 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2859 for "info sources" output.
2860
86d9e1d7
MK
28612004-09-20 Mark Kettenis <kettenis@gnu.org>
2862
2863 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2864 <machine/vmparam.h>.
2865 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2866 (register_u_addr): Remove prototype.
2867
9a6c8ef4
MK
28682004-09-19 Mark Kettenis <kettenis@gnu.org>
2869
9692934b
MK
2870 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2871 (i386bsd_fetch_inferior_registers): Rename from
2872 fetch_inferior_registers. Make static.
2873 (i386bsd_store_inferior_registers): Rename from
2874 store_inferior_registers. Make static.
2875 (i386bsd_target): New function.
2876 * i386bsd-nat.h: New file.
2877 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2878 "i386bsd-nat.h".
2879 (i386fbsd_resume): Rename from child_resume. Make static.
2880 (_initialize_i386fbsd_nat): Construct and add target vector.
2881 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2882 (_initialize_i386nbsd_nat): Construct and add target vector.
2883 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2884 Remove defines.
2885 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2886 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2887 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2888 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2889 (LOADLIBES): New variable.
2890 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2891 inf-ptrace.o. Remove inftarg.o.
2892 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2893 inf-ptrace.o. Remove inftarg.o.
2894 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2895 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2896 (LOADLIBES): New variable.
2897 * Makefile.in (i386bsd_nat_h): New variable.
2898 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2899 dependencies.
2900
3510d1f2
MK
2901 * sparc64nbsd-tdep.c: Include "objfiles.h".
2902 (sparc64nbsd_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 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2906 "nbsd-tdep.h".
2907 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2908 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2909 svr4_lp64_fetch_link_map_offsets.
2910 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2911 dependencies.
2912
578c1c03
MK
2913 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2914 * fbsd-nat.h: New file.
2915 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2916 (fbsd_nat_h): New variable.
2917 (fbsd-nat.o): New dependency.
2918
7a7b73b7
MK
2919 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2920 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2921
9a6c8ef4
MK
2922 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2923 comment.
2924
72d5681a
PH
29252004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2926
2927 * ada-exp.y (type_int): New function to add layer of abstraction
2928 around references to expression types.
2929 (type_long): Ditto.
2930 (type_long_long): Ditto.
2931 (type_float): Ditto.
2932 (type_double): Ditto.
2933 (type_long_double): Ditto.
2934 (type_char): Ditto.
2935 (type_system_address): Ditto.
2936 (simple_exp): Use type_* functions in place of builtin_*
2937 variables.
2938 (exp): Ditto.
2939 (write_var_from_name): Ditto.
2940 (write_object_renaming): Ditto.
2941 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2942 declaration.
2943 (build_ada_types): Remove, replacing with...
2944 (ada_language_arch_info): New function to initialize primitive
2945 type vector in language_arch_info.
2946 (ada_array_length): Remove use of builtin_type_ada_int.
2947 (value_pos_atr): Ditto.
2948 (ada_evaluate_subexp): Ditto.
2949 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2950 builtin_type_ada_long_long, builtin_type_ada_char,
2951 builtin_type_ada_float, builtin_type_ada_double,
2952 builtin_type_ada_long_double, builtin_type_ada_natural,
2953 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2954 (ada_builtin_types): Remove.
2955 (ada_language_defn): Remove entries for la_builtin_type_vector and
2956 string_char_type and use ada_language_arch_info.
2957 (_initialize_ada_language): Do type-vector initialization along
2958 the lines of c-lang.c.
2959 (ada_create_fundamental_type): Break up line.
2960 (ada_dump_symtab): Remove unused function.
2961 (enum ada_primitive_types): Define.
2962 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2963 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2964 builtin_type_ada_float, builtin_type_ada_double,
2965 builtin_type_ada_long_double, builtin_type_ada_natural,
2966 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2967 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2968 (processInt): Ditto.
2969 (processReal): Ditto.
2970 (name_lookup): Ditto.
2971 * ada-typeprint.c (print_range): Use builtin_type_int, not
2972 builtin_type_ada_int.
2973
4f0be353
MK
29742004-09-18 Mark Kettenis <kettenis@gnu.org>
2975
30b0e2d8
MK
2976 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2977
4f0be353
MK
2978 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2979 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2980 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2981 * configure.in: Improve checks for curses library by checking for
2982 mvwaddstr instead of initscr. Drop HP curses in favour of
2983 standard curses on HP-UX.
2984 * configure: Regenerated.
2985
72d5681a 29862004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2987
2988 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2989 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2990 Minor formatting changes.
2991 (empty_array): Slight rewrite for formatting.
2992 (emit_char,parse,ada_language_defn,build_ada_types,
2993 ada_is_exception_sym, _initialize_ada_language): Move
2994 definitions around.
2995 (ada_dump_symtab): Remove unused definition.
2996 (ada_maybe_exception_partial_symbol): Remove unused definition.
2997
1c8c7407
AC
29982004-09-16 Andrew Cagney <cagney@gnu.org>
2999
7681f339
AC
3000 * inf-child.c: Include "gdb_string.h".
3001 (inf_child_core_file_to_sym_file): Delete.
3002 (inf_child_target): Set to_fetch_registers and to_store_registers.
3003 * inf-ptrace.c: Include "gdb_string.h".
3004 * Makefile.in: Update all dependencies.
3005
1c8c7407
AC
3006 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3007 problem.
3008
65596487
JB
30092004-09-14 Joel Brobecker <brobecker@gnat.com>
3010
3011 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3012 call to heuristic_proc_desc. Remove code that became redundant
3013 as a consequence.
3014 (read_next_frame_reg): Remove special case for SP_REGNUM.
3015 (set_reg_offset): Fix small typo.
3016 (reset_saved_regs): New procedure.
3017 (mips32_heuristic_proc_desc): No longer compute a fake
3018 procedure descriptor. Compute the full frame cache instead.
3019 Some minor comment reformatting.
3020
95575b2e
AC
30212004-09-14 Andrew Cagney <cagney@gnu.org>
3022
f200c492
AC
3023 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3024 maintainer.
3025
95575b2e
AC
3026 * thread-db.c (thread_db_new_objfile): Assume that there is a
3027 child process.
3028
69657671
JB
30292004-09-13 Jim Blandy <jimb@redhat.com>
3030
3031 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3032 so that its storage isn't referenced after its lifetime ends.
3033
6c4182dd
JB
3034 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3035 and never assigned to. Delete it, and the 'if (use_buffer)'
3036 clauses. Delete 'raw_buffer', since it is now unused.
3037
ee31a58d
AC
30382004-09-13 Andrew Cagney <cagney@gnu.org>
3039
2c0fc042
AC
3040 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3041 * configure: Re-generate.
3042 * nlm/Makefile.in (TAGS): Update.
3043 * Makefile.in (TAGS): Update.
3044 * config/vax/nbsd.mt (TM_FILE): Update.
3045 * config/sparc/vxworks.mt (TM_FILE): Update.
3046 * config/sparc/sol2.mt (TM_FILE): Update.
3047 * config/sparc/sol2-64.mt (TM_FILE): Update.
3048 * config/sparc/obsd64.mt (TM_FILE): Update.
3049 * config/sparc/obsd.mt (TM_FILE): Update.
3050 * config/sparc/nbsd64.mt (TM_FILE): Update.
3051 * config/sparc/nbsd.mt (TM_FILE): Update.
3052 * config/sparc/linux64.mt (TM_FILE): Update.
3053 * config/sparc/linux.mt (TM_FILE): Update.
3054 * config/sparc/fbsd.mt (TM_FILE): Update.
3055 * config/sh/wince.mt (TM_FILE): Update.
3056 * config/sh/nbsd.mt (TM_FILE): Update.
3057 * config/sh/linux.mt (TM_FILE): Update.
3058 * config/sh/embed.mt (TM_FILE): Update.
3059 * config/s390/s390.mt (TM_FILE): Update.
3060 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3061 * config/rs6000/rs6000.mt (TM_FILE): Update.
3062 * config/rs6000/aix4.mt (TM_FILE): Update.
3063 * config/powerpc/vxworks.mt (TM_FILE): Update.
3064 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3065 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3066 * config/powerpc/obsd.mt (TM_FILE): Update.
3067 * config/powerpc/nbsd.mt (TM_FILE): Update.
3068 * config/powerpc/linux.mt (TM_FILE): Update.
3069 * config/powerpc/aix.mt (TM_FILE): Update.
3070 * config/pa/obsd.mt (TM_FILE): Update.
3071 * config/pa/linux.mt (TM_FILE): Update.
3072 * config/pa/hppahpux.mt (TM_FILE): Update.
3073 * config/pa/hppa64.mt (TM_FILE): Update.
3074 * config/pa/hppa.mt (TM_FILE): Update.
3075 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3076 * config/mips/wince.mt (TM_FILE): Update.
3077 * config/mips/vxmips.mt (TM_FILE): Update.
3078 * config/mips/nbsd.mt (TM_FILE): Update.
3079 * config/mips/linux.mt (TM_FILE): Update.
3080 * config/mips/irix6.mt (TM_FILE): Update.
3081 * config/mips/irix5.mt (TM_FILE): Update.
3082 * config/mips/embed.mt (TM_FILE): Update.
3083 * config/m68k/vxworks68.mt (TM_FILE): Update.
3084 * config/m68k/st2000.mt (TM_FILE): Update.
3085 * config/m68k/os68k.mt (TM_FILE): Update.
3086 * config/m68k/obsd.mt (TM_FILE): Update.
3087 * config/m68k/nbsd.mt (TM_FILE): Update.
3088 * config/m68k/monitor.mt (TM_FILE): Update.
3089 * config/m68k/linux.mt (TM_FILE): Update.
3090 * config/m68k/cisco.mt (TM_FILE): Update.
3091 * config/ia64/linux.mt (TM_FILE): Update.
3092 * config/ia64/aix.mt (TM_FILE): Update.
3093 * config/ia64/ia64.mt (TM_FILE): Update.
3094 * config/i386/vxworks.mt (TM_FILE): Update.
3095 * config/i386/obsd64.mt (TM_FILE): Update.
3096 * config/i386/obsd.mt (TM_FILE): Update.
3097 * config/i386/nto.mt (TM_FILE): Update.
3098 * config/i386/nbsd64.mt (TM_FILE): Update.
3099 * config/i386/nbsd.mt (TM_FILE): Update.
3100 * config/i386/linux64.mt (TM_FILE): Update.
3101 * config/i386/linux.mt (TM_FILE): Update.
3102 * config/i386/i386sol2.mt (TM_FILE): Update.
3103 * config/i386/i386lynx.mt (TM_FILE): Update.
3104 * config/i386/fbsd64.mt (TM_FILE): Update.
3105 * config/i386/fbsd.mt (TM_FILE): Update.
3106 * config/i386/cygwin.mt (TM_FILE): Update.
3107 * config/h8300/h8300.mt (TM_FILE): Update.
3108 * config/frv/frv.mt (TM_FILE): Update.
3109 * config/cris/cris.mt (TM_FILE): Update.
3110 * config/arm/wince.mt (TM_FILE): Update.
3111 * config/arm/nbsd.mt (TM_FILE): Update.
3112 * config/arm/linux.mt (TM_FILE): Update.
3113 * config/arm/embed.mt (TM_FILE): Update.
3114 * config/alpha/nbsd.mt (TM_FILE): Update.
3115 * config/alpha/fbsd.mt (TM_FILE): Update.
3116 * config/alpha/alpha.mt (TM_FILE): Update.
3117 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3118 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3119
362646f5
AC
3120 Eliminate event_loop_p, always has the value 1.
3121 * defs.h (event_loop_p): Delete macro.
3122 * breakpoint.c (until_break_command): Simplify.
3123 * utils.c (prompt_for_continue): Simplify.
3124 * tracepoint.c (read_actions): Simplify.
3125 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3126 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3127 (set_prompt, init_main): Simplify.
3128 (init_signals, disconnect): Delete, unused.
3129 * remote.c (remote_async_resume)
3130 (extended_remote_async_create_inferior): Simplify.
3131 * mi/mi-interp.c (mi_input): Delete, unused.
3132 (mi_interpreter_resume, mi_command_loop): Simplify.
3133 * interps.c (current_interp_command_loop): Simplify.
3134 * infrun.c (proceed): Simplify.
3135 * infcmd.c (run_command, continue_command, step_1, jump_command)
3136 (until_command, advance_command, finish_command)
3137 (interrupt_target_command): Simplify.
3138 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3139
ee31a58d
AC
3140 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3141 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3142 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3143 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3144 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3145 * mips-tdep.c (mips_dump_tdep): Do not print same.
3146
b7ffc4a8
AC
31472004-09-12 Andrew Cagney <cagney@gnu.org>
3148
2bfb72ee
AC
3149 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3150 const.
3151 * Makefile.in (valprint.o): Delete explict rule.
3152
4f17c3c1
AC
3153 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3154 reported by Dave Anderson.
3155
f810308b
AC
3156 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3157
b7ffc4a8
AC
3158 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3159
28b41c52
AC
31602004-09-12 Salvador E. Tropea <set@users.sf.net>
3161 Andrew Cagney <cagney@gnu.org>
3162
3163 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3164 (mi_cmd_data_list_register_values)
3165 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3166 the register number computation.
3167
5bf970f9
AC
31682004-09-12 Andrew Cagney <cagney@gnu.org>
3169
3170 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3171 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3172 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3173 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3174 target.
3175 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3176 inf-ptrace.o and inf-child.o.
3177 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3178 * Makefile.in: Update dependencies.
3179
0759e0bf
AC
31802004-09-11 Andrew Cagney <cagney@gnu.org>
3181
3182 * language.c (hex_string, hex_string_custom): Move from here ...
3183 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3184 (CELLSIZE): Increase to 50.
3185 * language.h (hex_string, hex_string_custom): Move from here ...
3186 * defs.h: ... to here.
3187 * Makefile.in: Update all dependencies.
3188
bb599908
PH
31892004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3190
3191 * language.c (local_hex_format_custom): Remove.
3192 (local_hex_string): Rename to hex_string, use C format, and move to
3193 utils.c
3194 (local_hex_string_custom): Rename to hex_string_custom and change
3195 interface. Now uses C format. Move to utils.c
3196 (local_octal_format_custom): Remove.
3197 (local_decimal_format_custom): Remove.
3198 (unknown_language_defn): Remove language-specific number
3199 formatting entries.
3200 (auto_language_defn): Ditto.
3201 (local_language_defn): Ditto.
3202 * language.h (struct language_format_info): Delete declaration.
3203 (struct language_defn): Remove language_format_info fields
3204 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3205 (local_binary_format): Remove macro.
3206 (local_binary_format_prefix): Remove macro.
3207 (local_binary_format_specifier): Remove macro.
3208 (local_binary_format_suffix): Remove macro.
3209 (local_octal_format): Remove macro.
3210 (local_octal_format_prefix): Remove macro.
3211 (local_octal_format_specifier): Remove macro.
3212 (local_octal_format_suffix): Remove macro.
3213 (local_decimal_format): Remove macro.
3214 (local_decimal_format_prefix): Remove macro.
3215 (local_decimal_format_specifier): Remove macro.
3216 (local_decimal_format_suffix): Remove macro.
3217 (local_hex_format): Remove macro.
3218 (local_hex_format_prefix): Remove macro.
3219 (local_hex_format_specifier): Remove macro.
3220 (local_hex_format_suffix): Remove macro.
3221 (local_decimal_format_custom): Remove.
3222 (local_octal_format_custom): Remove.
3223 (local_hex_format_custom): Remove.
3224 (local_hex_string): Rename to hex_string and move to defs.h.
3225 (local_hex_string_custom): Rename to hex_string_custom, change
3226 interface, and move to defs.h.
3227 * utils.c: (int_string): New function.
3228 (hex_string): New function (from language.c).
3229 (hex_string_custom): New function (from language.c).
3230 (octal2str): New function.
3231 (decimal2str): Add width parameter.
3232 (paddr_u): Use new decimal2str interface.
3233 (paddr_d): Ditto.
3234 * defs.h (hex_string): Declare.
3235 (hex_string_custom): Declare.
3236 (int_string): Declare.
3237 * printcmd.c (print_scalar_formatted): Remove localized binary
3238 formatting.
3239 * valprint.c (print_longest): Use int_string.
3240 (print_floating): Use C hex format.
3241 (print_hex_chars): Ditto.
3242 (print_binary_chars): Remove language-specific formatting.
3243 (print_octal_chars): Use C octal format.
3244 (print_decimal_chars): Delocalize format.
3245 (print_decimal): Remove.
3246 * ada-lang.c (ada_language_defn): Remove language-specific number
3247 formatting entries.
3248 * p-lang.c (pascal_language_defn): Ditto.
3249 * c-lang.c (c_language_defn): Ditto.
3250 (cplus_language_defn): Ditto.
3251 (asm_language_defn): Ditto.
3252 (minimal_language_defn): Ditto.
3253 * f-lang.c (f_language_defn): Ditto.
3254 * jv-lang.c (java_language_defn): Ditto.
3255 * m2-lang.c (m2_language_defn): Ditto.
3256 * scm-lang.c (scm_language_defn): Ditto.
3257 * objc-lang.c (objc_language_defn): Ditto.
3258 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3259 new interface.
3260 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3261 * ui-out.c (ui_out_field_core_addr): Ditto.
3262 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3263 * exec.c (print_section_info): Ditto.
3264 * i387-tdep.c (print_i387_status_word): Ditto.
3265 (print_i387_control_word): Ditto.
3266 (i387_print_float_info): Ditto.
3267 * maint.c (maint_print_section_info): Ditto.
3268 * solib.c (info_sharedlibrary_command): Ditto.
3269 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3270 * symtab.c (print_msymbol_info): Ditto.
3271 * tracepoint.c (tracepoints_info): Ditto.
3272 * solib-frv.c (lm_base): Ditto.
3273 (frv_current_sos): Ditto.
3274 (enable_break2): Ditto.
3275 (enable_break): Ditto.
3276 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3277 (process_one_symbol): Ditto.
3278 * infcmd.c (program_info): Ditto.
3279 * mdebugread.c (parse_partial_symbols): Ditto.
3280 * symfile.c (add_symbol_file_command): Ditto.
3281 * cli/cli-cmds.c (edit_command): Ditto.
3282 (list_command): Ditto.
3283 * infcall.c (call_function_by_hand): Ditto.
3284 * remote-vx.c (vx_run_files_info): Ditto.
3285 (vx_wait): Ditto.
3286 (vx_attach): Ditto.
3287 (vx_detach): Ditto.
3288 (vx_kill): Ditto.
3289 * aix-thread.c (pdc_symbol_addrs): Ditto.
3290 (pdc_read_regs): Ditto.
3291 (pdc_write_regs): Ditto.
3292 (pdc_read_data): Ditto.
3293 (pdc_write_data): Ditto.
3294 * d10v-tdep.c (display_trace): Ditto.
3295 * rs6000-nat.c (find_toc_address): Ditto.
3296 * aix-thread.c: Don't include language.h.
3297 * buildsym.c: Ditto.
3298 * dbxread.c: Ditto.
3299 * mdebugread.c: Ditto.
3300 * rs6000-nat.c: Ditto.
3301 * buildsym.c (make_blockvector): Use renamed hex_string.
3302
33f2d567
JM
33032004-09-10 Jason Molenda (jmolenda@apple.com)
3304
3305 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3306 chars after 'if' or 'while' commands in user-defined commands.
3307
7b90c3f9
JB
33082004-09-08 Jim Blandy <jimb@redhat.com>
3309
3310 Fix bug reported and analyzed by Olivier Crete:
3311 * symfile.c (copy_section_addr_info): New function.
3312 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3313 original set of address arguments, instead of handwritten code
3314 that uses one length to allocate and a different length to
3315 initialize. Use make_cleanup_free_section_addr_info.
3316 * symfile.h (copy_section_addr_info): New declaration.
3317 * utils.c: #include "symfile.h".
3318 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3319 New functions.
3320 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3321 * Makefile.in (utils.o): Update dependencies.
3322
b26a6851
AC
33232004-09-08 Andrew Cagney <cagney@gnu.org>
3324
3325 * thread-db.c (keep_thread_db): Delete.
3326 (thread_db_new_objfile, thread_db_create_inferior)
3327 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3328
be24b061
MK
33292004-09-08 Mark Kettenis <kettenis@gnu.org>
3330
f6792ef4
MK
3331 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3332 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3333 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3334 (i386_frameless_signal_p): Remove prototype.
3335 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3336 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3337 I386_SSE_NUM_REGS.
3338 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3339 instead of FP0_REGNUM.
3340 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3341 of FP0_REGNUM and FPC_REGNUM.
3342
eeefdaa7
MK
3343 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3344 (sunos_solib_create_inferior_hook): Don't call
3345 sunos_relocate_main_executable.
3346
be24b061
MK
3347 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3348 solib_svr4_fetch_link_map_offsets to
3349 svr4_ilp32_fetch_link_map_offsets.
3350 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3351 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3352 svr4_ilp32_fetch_link_map_offsets.
3353 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3354
7c679d16
JB
33552004-09-07 Jim Blandy <jimb@redhat.com>
3356
3357 * frame.h (frame_register): Doc fix.
3358
1f04aa62
AC
33592004-09-07 Andrew Cagney <cagney@gnu.org>
3360
3361 * vx-share/wait.h: Delete #ifdef USG.
3362 * utils.c (request_quit): Ditto.
3363 * tui/tui.c (tui_reset): Ditto.
3364 * remote.c: Ditto.
3365 * remote-sds.c: Ditto.
3366 * remote-rdi.c: Ditto.
3367 * mdebugread.c: Ditto.
3368 * m68klinux-nat.c: Ditto.
3369 * infttrace.c: Ditto.
3370 * infptrace.c: Ditto.
3371 * i386v-nat.c: Ditto.
3372 * exec.c: Ditto.
3373 * dbxread.c: Ditto.
3374 * core-aout.c: Ditto.
3375
90edbfbc
JB
33762004-09-05 Joel Brobecker <brobecker@gnat.com>
3377
3378 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3379 heuristic_proc_desc.
3380 (mips_insn32_frame_cache): Likewise.
3381
01f4bf2b
JB
33822004-09-04 Joel Brobecker <brobecker@gnat.com>
3383
3384 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3385 left behind by error.
3386
8511a048
JB
33872004-09-04 Joel Brobecker <brobecker@gnat.com>
3388
3389 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3390 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3391
649dfe9f
JB
33922004-09-04 Joel Brobecker <brobecker@gnat.com>
3393
3394 * config/rs6000/xm-aix4.h: Remove this file.
3395 * config/rs6000/aix4.mh (XM_FILE): Delete.
3396
6e50f889
JB
33972004-09-04 Joel Brobecker <brobecker@gnat.com>
3398
3399 * config/rs6000/xm-rs6000.h: Remove this file.
3400 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3401
b8c4aece
AC
34022004-09-03 Andrew Cagney <cagney@gnu.org>
3403
fb603883
AC
3404 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3405 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3406 only use.
3407
c9343fd1
AC
3408 * mips-tdep.c (temp_saved_regs): Delete.
3409 (set_reg_offset): Replace saved_regs parameter with this_cache.
3410 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3411 (mips32_heuristic_proc_desc): Add this_cache parameter.
3412 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3413 (after_prologue): Pass a NULL this_cache.
3414
9733cfe1
AC
3415 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3416 non-kernel trap prologues.
3417
0d5febcc
AC
3418 * mips-tdep.c (find_proc_desc): Delete function.
3419 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3420 simplify.
3421 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3422 mips_insn32_frame_cache.
3423
9733cfe1 3424 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
3425 Simplify as NEXT_FRAME is NULL.
3426 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3427
177f84a3
AC
3428 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3429 local variable.
3430 (mips_skip_prologue): Update.
3431
465f7520
AC
3432 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3433 "cur_frame" parameter.
177f84a3
AC
3434 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3435 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 3436
e38b8658
AC
3437 * config/vax/nm-obsd.h: Delete file.
3438 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3439 * config/vax/nm-nbsd.h: Delete file.
3440 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3441 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3442 * config/sh/nm-nbsd.h: Delete file.
3443 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3444 * config/rs6000/nm-rs6000ly.h: Delete file.
3445 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3446 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3447 * config/powerpc/nm-obsd.h: Delete file.
3448 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3449 * config/powerpc/nm-nbsd.h: Delete file.
3450 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3451 * config/pa/nm-obsd.h: Delete file.
3452 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3453 * config/mips/nm-nbsd.h: Delete file.
3454 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3455 * config/m88k/nm-obsd.h: Delete file.
3456 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3457 * config/m68k/nm-nbsd.h: Delete file.
3458 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3459 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3460 * config/i386/nm-nbsd.h: Delete file.
3461 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3462 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3463 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3464 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3465 * config/i386/nm-i386lynx.h: Delete file.
3466 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3467 * config/arm/nm-nbsd.h: Delete file.
3468 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3469 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3470
be1ed680
AC
3471 * config/i386/tm-fbsd.h: Delete file.
3472 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3473 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3474
4b392b26
AC
3475 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3476 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3477 * config/rs6000/aix4.mt (TM_FILE): Set to
3478 config/rs6000/tm-rs6000.h.
3479 * config/powerpc/tm-ppc-aix.h: Delete file.
3480 * config/powerpc/aix.mt (TM_FILE): Set to
3481 config/rs6000/tm-rs6000.h.
3482 * config/m68k/tm-linux.h: Delete file.
3483 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3484 * config/i386/tm-linux64.h: Delete file.
3485 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3486 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3487
f3219c75
AC
3488 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3489 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3490 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3491 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3492 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3493 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3494 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3495 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3496 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3497
b8c4aece
AC
3498 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3499 gdb_host_cpu.
3500
8ac2e020
JB
35012004-09-02 Joel Brobecker <brobecker@gnat.com>
3502
3503 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3504 Minor reformatting. Some code factoring.
3505
c185a355
AC
35062004-09-02 Andrew Cagney <cagney@gnu.org>
3507
63f22f0d
AC
3508 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3509 * config/vax/tm-nbsd.h: Delete file.
3510 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3511 * config/sparc/tm-vxworks.h: Delete file.
3512 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3513 * config/sparc/tm-nbsd.h: Delete file.
3514 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3515 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3516 * config/sparc/tm-linux.h: Delete file.
3517 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3518 * config/s390/tm-linux.h: Delete file.
3519 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3520 * config/pa/tm-bsd.h: Delete file.
3521 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3522 * config/m68k/tm-obsd.h: Delete file.
3523 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3524 * config/m68k/tm-nbsd.h: Delete file.
3525 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3526 * config/i386/tm-vxworks.h: Delete file.
3527 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3528 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3529 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3530 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3531 * config/i386/tm-nbsd.h: Delete file.
3532 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3533 * config/i386/tm-i386lynx.h: Delete file.
3534 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3535 * config/cris/tm-cris.h: Delete file.
3536
0f475e27
AC
3537 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3538 * configure: Re-generate.
3539 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3540 * config/arm/tm-nbsd.h: Delete file.
3541
458ed000
AC
3542 * config/powerpc/tm-ppcle-sim.h: Delete.
3543 * config/powerpc/tm-ppcle-eabi.h: Delete.
3544 * config/powerpc/tm-nbsd.h: Delete.
3545 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3546 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3547 tm-ppcle-eabi.h.
3548
f14375f3
AC
3549 * config/i386/nto.mh (NAT_FILE): Delete.
3550 * config/i386/nm-nto.h: Delete.
3551
c34d127c
AC
3552 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3553 * config/m68k/tm-os68k.h: Ditto.
3554 * config/m68k/tm-monitor.h: Ditto.
3555 * config/m68k/tm-cisco.h: Ditto.
3556 * config/m68k/st2000.mt (TM_FILE): Delete.
3557 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3558 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3559 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3560 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3561
f7f0fe03
AC
3562 * config/m68k/tm-st2000.h: Delete.
3563 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3564 * config/sparc/fbsd.mt (TM_FILE): Delete.
3565 * config/sparc/tm-fbsd.h: Delete.
3566
a2558533
AC
3567 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3568 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3569 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3570
b78960be
AC
3571 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3572 GDB_TM_FILE and GDB_XM_FILE.
3573 * gdbarch.c: Re-generate.
3574 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3575 quotes in macro definition.
3576 * configure.in: Re-generate.
3577
4d60522e
AC
3578 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3579 validating architecture methods.
3580 * gdbarch.c: Re-generate.
3581
5010d38b
AC
3582 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3583 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3584 GDB_MULTI_ARCH_PARTIAL.
3585 * gdbarch.h: Re-generate.
3586
c185a355
AC
3587 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3588 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3589 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3590 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3591 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3592 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3593 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3594 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3595 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3596 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3597 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3598 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3599
14aaa6ab
AC
36002004-09-01 Andrew Cagney <cagney@gnu.org>
3601
3602 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3603 and main_func_highpc.
3604 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3605 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3606 * nlmread.c (nlm_symfile_read): Update.
3607
a343eb3c
JB
36082004-09-01 Joel Brobecker <brobecker@gnat.com>
3609
3610 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3611 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3612 (find_proc_desc): Remove dead code.
3613
4fbbbd07
JB
36142004-09-01 Joel Brobecker <brobecker@gnat.com>
3615
3616 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3617
84acb35a
JJ
36182004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3619
3620 * observer.sh: Add struct so_list declaration.
3621 * Makefile.in: Add dependencies on observer.h for solib.c and
3622 breakpoint.c.
3623 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3624 function.
3625 (_initialize_breakpoint): Register
3626 disable_breakpoints_in_unloaded_shlib as an observer of the
3627 "solib unloaded" observation event.
3628 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3629 call decode_line_1 so unfound breakpoint errors are silent.
3630 * solib.c (update_solib_list): When a solib is discovered to have
3631 been unloaded by the program, notify all observers of the
3632 "solib unloaded" observation event.
3633
c8cd9f6c
AC
36342004-09-01 Andrew Cagney <cagney@gnu.org>
3635
3636 * frame.c: Include "objfiles.h".
3637 (inside_main_func): New function.
3638 (get_prev_frame): Use new inside_main_func.
3639 * Makefile.in (frame.o): Update dependencies.
3640 * defs.h (inside_main_func): Delete declaration.
3641 * blockframe.c (inside_main_func): Delete function.
3642
1168df01
JB
36432004-08-31 Jim Blandy <jimb@redhat.com>
3644
3645 * dwarf2read.c (is_vtable_name): New function, based on logic from
3646 read_structure_type, but passing the correct length to strncmp,
3647 and using 'sizeof' instead of 'strlen'.
3648 (read_structure_type): Call it.
3649
f14f9744
JB
36502004-08-31 Joel Brobecker <brobecker@gnat.com>
3651
3652 * config/powerpc/aix.mh: Add comment.
3653
386d4518
PG
36542004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3655
3656 * MAINTAINERS: Add self to Write-After-Approval.
3657
7d97d5e2
MI
36582004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3659
3660 * MAINTAINERS: Add self to Write-After-Approval.
3661
68f53502
AC
36622004-08-30 Andrew Cagney <cagney@gnu.org>
3663
3664 Fix PR breakpoints/1757.
3665 * infrun.c (struct execution_control_state): Replace
3666 remove_breakpoints_on_following_step with
3667 step_after_step_resume_breakpoint.
3668 (init_execution_control_state): Update.
3669 (handle_inferior_event): For signals, when stepping off a
3670 breakpoint, set step_after_step_resume_breakpoint. When
3671 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3672 (keep_going): Delete code handling
3673 remove_breakpoints_on_following_step.
3674
7ca2d3a3
DL
36752004-08-29 David Lecomber <david@streamline-computing.com>
3676
3677 Fix PR gdb/648
3678 * language.h (enum array_ordering): New enum.
3679 * language.h (struct language_defn): New la_array_ordering
3680 attribute.
3681 * language.c (unknown_language_defn, auto_language_defn)
3682 (local_language_defn): Ditto.
3683 * ada-lang.c (ada_language_defn): Ditto.
3684 * c-lang.c (c_language_defn, cplus_language_defn)
3685 (asm_language_defn, minimal_language_defn): Ditto.
3686 * f-lang.c (f_language_defn): Ditto.
3687 * jv-lang.c (java_language_defn): Ditto.
3688 * m2-lang.c (f_language_defn): Ditto.
3689 * objc-lang.c (objc_language_defn): Ditto.
3690 * p-lang.c (pascal_language_defn): Ditto.
3691 * scm-lang.c (scm_language_defn): Ditto.
3692 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3693 oriented large to small in type structure.
3694 * dwarf2read.c (read_array_order): New function.
3695 (read_array_type): Use read_array_order to check row/column
3696 major ordering.
3697
e354df01
NW
36982004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3699
3700 * target.c (target_resize_to_sections): Check
3701 current_target.to_sections for an old value when updating.
3702
9185ddce
JB
37032004-08-27 Joel Brobecker <brobecker@gnat.com>
3704
3705 * procfs.c (dbx_link_bpt_addr): New static global variable.
3706 (dbx_link_shadow_contents): New static global variable.
3707 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3708 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3709 if we just hit it.
3710 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3711 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3712 from run to run.
3713 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3714 after the inferior has been forked.
3715 (remove_dbx_link_breakpoint): New function.
3716 (dbx_link_addr): New function.
3717 (insert_dbx_link_bpt_in_file): New function.
3718 (insert_dbx_link_bpt_in_region): New function.
3719 (insert_dbx_link_breakpoint): New function.
3720 (proc_trace_syscalls_1): New function, extracted from
3721 proc_trace_syscalls.
3722 (proc_trace_syscalls): Replace extract code by call to
3723 proc_trace_syscalls_1.
3724 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3725 is no longer valid.
3726
e6742ace
JB
37272004-08-25 Jim Blandy <jimb@redhat.com>
3728
3729 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3730
8fb3e588
AC
37312004-08-25 Andrew Cagney <cagney@gnu.org>
3732
629a41ee
AC
3733 * infrun.c (struct execution_control_state): Delete field
3734 "stepping_through_sigtramp".
3735 (init_execution_control_state): Do not set same.
3736 (context_switch): Do not pass same to save_infrun_state and
3737 load_infrun_state.
3738 * gdbthread.h (struct thread_info): Delete field
3739 stepping_through_sigtramp.
3740 (save_infrun_state, load_infrun_state): Delete parameter
3741 stepping_through_sigtramp.
3742 * thread.c (load_infrun_state, save_infrun_state): Update.
3743
8fb3e588
AC
3744 * infrun.c: Re-indent. Move expression operators to the beginning
3745 of the line. Remove long disabled #if 0 code.
3746
49c54768
AC
37472004-08-24 Andrew Cagney <cagney@gnu.org>
3748
3749 * doublest.h (floatformat_ieee_quad): Rename
3750 floatformat_ia64_quad.
3751 * doublest.c (floatformat_ieee_quad): Rename
3752 floatformat_ia64_quad.
3753 (_initialize_doublest): Update.
3754
5ca2e327
JB
37552004-08-24 Jim Blandy <jimb@redhat.com>
3756
87808bd6
JB
3757 * dwarf2expr.h (struct dwarf_expr_context): New members
3758 'num_pieces' and 'pieces', for returning the result of an
3759 expression that uses DW_OP_piece.
3760 (struct dwarf_expr_piece): New struct type.
3761 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3762 pieces.
3763 (free_dwarf_expr_context): Free pieces, if any.
3764 (add_piece): New function.
3765 (execute_stack_op): Implement DW_OP_piece.
3766 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3767 expression is a list of pieces, print an error message.
3768 (dwarf2_loc_desc_needs_frame): If the expression yields
3769 pieces, and any piece is in a register, then we need a frame.
3770
5ca2e327
JB
3771 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3772 the stack until we've decided what sort of result the evaluation
3773 has produced. Use separate variables, with more specific names.
3774
2afeb6b8
RE
37752004-08-23 Richard Earnshaw <rearnsha@arm.com>
3776
3777 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3778 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3779 (arm_netbsd_init_abi_common): Register them.
3780
5885ab49
MK
37812004-08-22 Mark Kettenis <kettenis@gnu.org>
3782
fda820a6
MK
3783 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3784
1c5bf419
MK
3785 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3786 safe_frame_unwind_memory instead of target_read_memory.
3787
8cbba7c8
MK
3788 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3789 Reorder includes.
3790 (fetch_register, store_register): Remove prototypes.
3791 (child_resume): Reorganize code and comments such that it is
3792 grouped a bit more logically.
3793 (attach): Explicitly compare errno against 0.
3794 (detach): Likewise. Use perror_with_name instead of
3795 print_sys_errmsg.
3796 * Makefile.in (infptrace.o): Update dependencies.
3797
c5fa4245
MK
3798 * ia64-linux-nat.c: Update copyright year.
3799 (fetch_debug_register, store_debug_register)
3800 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3801 PTRACE_TYPE_ARG3.
3802 * config/ia64/nm-linux.h: Update copyright year.
3803 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3804
387c058c
MK
3805 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3806 from CORE_ADDR to struct frame_info *. Use
3807 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3808 (amd64_linux_sigtramp_p): Adjust for changed signature of
3809 and64_linux_sigtramp_start
3810
277215a6
MK
3811 * gdb_ptrace.h: GNU/Linux.
3812
25f6178e
MK
3813 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3814 Remove defines.
3815
652fc137
MK
3816 * infptrace.c: Include "gdb_assert.h".
3817 (PTRACE_XFER_TYPE): Remove define.
3818 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3819 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3820 Tweak comment.
3821 (fetch_inferior_registers, store_inferior_registers): Remove
3822 redundant culry braces. Tweak comment. s/regno/regnum.
3823 * Makefile.in (infptrace.o): Update dependencies.
3824
5885ab49
MK
3825 * configure.in: Change test for return type of ptrace to default
3826 to `long' instead of `int'.
3827 * configure: Regenerate.
3828
11003ae3
MK
38292004-08-21 Mark Kettenis <kettenis@gnu.org>
3830
6b95110c
MK
3831 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3832
bcb3dc3d
MK
3833 * configure.in: Check for ttrace function.
3834 * configure, config.in: Regenerate.
3835
11003ae3
MK
3836 * gdb_ptrace.h: New file.
3837 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3838 <sys/ptrace.h>.
3839 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3840 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3841 (attach): Don't define PT_ATTACH.
3842 (detach): Don't define PT_DETACH.
3843 * Makefile.in (gdb_ptrace_h): New variable.
3844 (infptrace.o): Update dependencies.
3845
f8707cac
MK
38462004-08-16 Mark Kettenis <kettenis@gnu.org>
3847
3848 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3849 instead of `int' if not already defined.
3850 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3851 PTRACE_TYPE_ARG3.
3852 * infptrace.c (call_ptrace): Revert change that replaced
3853 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3854
655c5466
MK
38552004-08-15 Mark Kettenis <kettenis@gnu.org>
3856
156e5ba7
MK
3857 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3858 Remove defines.
3859
de9a9e51
MK
3860 * linux-nat.c (kill_inferior): Add missing third and fourth
3861 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3862
88800403
MK
3863 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3864 PTRACE_TYPE_RET.
3865
849a1d7c
MK
3866 * proc-why.c (proc_prettyfprint_why): Fix format string.
3867
61ad16d1
MK
3868 * solib-osf.c (osf_current_sos): Remove unsused label.
3869
a6ed5501
MK
3870 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3871 curses headers.
3872 * configure, config.in: Regenerate.
3873 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3874 <ncurses/ncurses.h>.
3875
016ddeca
MK
3876 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3877 * config/nm-nbsd.h: Update copyright year.
3878 (PTRACE_ARG3_TYPE): Remove define.
3879
49ec097f
MK
3880 * sparc-nat.c (fetch_inferior_registers)
3881 (store_inferior_registers, sparc_xfer_wcookie):
3882 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3883
9f8e0089
MK
3884 * alphabsd-nat.c (fetch_inferior_registers):
3885 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3886 PTRACE_TYPE_ARG3.
3887 * amd64bsd-nat.c (fetch_inferior_registers)
3888 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3889 PTRACE_TYPE_ARG3.
3890 * armnbsd-nat.c: Update copyright year.
3891 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3892 (store_register, store_regs, store_fp_register, store_fp_regs):
3893 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3894 * hppabsd-nat.c (fetch_inferior_registers)
3895 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3896 PTRACE_TYPE_ARG3.
3897 * i386bsd-nat.c (fetch_inferior_registers)
3898 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3899 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3900 * m68kbsd-nat.c (fetch_inferior_registers)
3901 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3902 PTRACE_TYPE_ARG3.
3903 * m88kbsd-nat.c (fetch_inferior_registers)
3904 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3905 PTRACE_TYPE_ARG3.
3906 * mipsnbsd-nat.c: Update copyright year.
3907 (fetch_inferior_registers, store_inferior_registers):
3908 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3909 * ns32knbsd-nat.c: Update copyright year.
3910 (fetch_inferior_registers, store_inferior_registers):
3911 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3912 * ppcnbsd-nat.c (fetch_inferior_registers):
3913 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3914 PTRACE_TYPE_ARG3.
3915 * ppcobsd-nat.c (fetch_inferior_registers):
3916 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3917 PTRACE_TYPE_ARG3.
3918 * shnbsd-nat.c: Update copyright year.
3919 (fetch_inferior_registers, store_inferior_registers):
3920 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3921 * vaxbsd-nat.c (fetch_inferior_registers)
3922 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3923 PTRACE_TYPE_ARG3.
3924
655c5466
MK
3925 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3926 PTRACE_TYPE_ARG3.
3927 * infptrace.c (call_ptrace, child_resume, attach, detach)
3928 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3929 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3930 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3931 PTRACE_TYPE_ARG3.
3932
c40d0d10
MK
39332004-08-14 Mark Kettenis <kettenis@gnu.org>
3934
5cb0ff31
MK
3935 * defs.h: Remove out-of-date comment.
3936 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3937 [!GETENV_PROVIDED] (getenv): Remove prototype.
3938
5f0f34cb
MK
3939 * standalone.c: Remove file.
3940 * Makefile.in (standalone.o): Remove dependency.
3941
7532965f
MK
3942 * i386-linux-nat.c (dummy_sse_values): Remove function and
3943 prototype.
3944 (i386_linux_dr_get): Fix typo in comment.
3945 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3946
1bdc6c53
MK
3947 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3948
c40d0d10
MK
3949 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3950 from declaration.
3951 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3952 from definition.
3953
64218d3e
MK
39542004-08-13 Mark Kettenis <kettenis@gnu.org>
3955
3956 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3957 parenthesis in definition.
3958 * configure: Regenerated.
3959
926c94e7
MC
39602004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3961
3962 * PROBLEMS: Mention build/1411.
3963
69489883
NN
39642004-08-09 Robert Millan <robertmh@gnu.org>
3965
3966 Committed by Nathanael Nerode.
3967 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3968 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3969
ebb7c577
AC
39702004-08-12 Andrew Cagney <cagney@gnu.org>
3971
3972 * NEWS: Mention fixes in GDB 6.2.1.
3973 * PROBLEMS: Remove mention of mips-irix.
3974
232d697c
JB
39752004-08-11 Joel Brobecker <brobecker@gnat.com>
3976
3977 * config/powerpc/xm-aix.h: Delete.
3978 * config/powerpc/aix.mh (MH_FILE): Remove.
3979 * config/powerpc/aix432.mh (MH_FILE): Remove.
3980
72f4e82b
JB
39812004-08-11 Joel Brobecker <brobecker@gnat.com>
3982
3983 * config/powerpc/aix.mh: Remove obsolete comment.
3984 * config/powerpc/aix432.mh: Likewise.
3985
0687ccb2
JB
39862004-08-11 Joel Brobecker <brobecker@gnat.com>
3987
3988 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3989
dbf3ada7
JB
39902004-08-11 Joel Brobecker <brobecker@gnat.com>
3991
e08e1886
JB
3992 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3993 this file is now empty.
3994 * config/xm-aix4.h: Remove, this file is no longer included
3995 anywhere.
3996
39972004-08-11 Joel Brobecker <brobecker@gnat.com>
3998
3999 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4000 that file is now empty.
dbf3ada7
JB
4001 (termdef): Remove prototype, function no longer used.
4002
4c525ef6
JB
40032004-08-11 Joel Brobecker <brobecker@gnat.com>
4004
4005 * doc/gdbint.texinfo (Host Definition): Remove documentation
4006 for USE_O_NOCTTY, no longer used.
4007 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4008 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4009
82e0b968
JB
40102004-08-11 Joel Brobecker <brobecker@gnat.com>
4011
4012 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4013 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4014 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4015
f2acbe1c
MK
40162004-08-11 Mark Kettenis <kettenis@gnu.org>
4017
daa98270
MK
4018 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4019 instead of FIVE_ARG_PTRACE.
4020
f2acbe1c
MK
4021 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4022 (new_tty): Use O_NOCTTY unconditionally.
4023
cc377e6b
MK
40242004-08-10 Mark Kettenis <kettenis@gnu.org>
4025
4026 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4027 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4028 fflush on stdout.
4029
3bcc18fa
JB
40302004-08-10 Joel Brobecker <brobecker@gnat.com>
4031
4032 * xcoff_symfile_finish: Replace last call to xmfree by call
4033 to xfree.
4034
7936743b
AC
40352004-08-10 Andrew Cagney <cagney@gnu.org>
4036
cc503c8a
AC
4037 * main.c (captured_main): Delete call to init_malloc.
4038 * defs.h (init_malloc): Delete declaration.
4039 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4040 (init_malloc): Delete functions.
4041
2dc74dc1
AC
4042 * defs.h (xmfree): Delete.
4043 * utils.c (xmfree): Delete function.
4044 (xfree): Inline calls to xmfree and mfree.
4045 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4046 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4047 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4048 * somread.c (som_symfile_finish): Ditto.
4049 * objfiles.c (allocate_objfile, free_objfile):
4050 * nlmread.c (nlm_symfile_finish): Ditto.
4051 * hpread.c (hpread_symfile_finish): Ditto.
4052 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4053 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4054 * coffread.c (coff_symfile_finish): Ditto.
4055
aa2ee5f6
AC
4056 * defs.h (xmcalloc): Delete declaration.
4057 * utils.c (xmcalloc): Delete.
4058 (xcalloc): Inline calls to xmcalloc and mcalloc.
4059 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4060 xcalloc and xfree.
4061 * symtab.c (create_demangled_names_hash): Ditto.
4062
0efffb96
AC
4063 * defs.h (xmrealloc): Delete.
4064 * utils.c (xmrealloc): Delete.
4065 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4066 * symmisc.c (extend_psymbol_list): Use xrealloc.
4067 * source.c (find_source_lines): Ditto.
4068 * hpread.c (hpread_lookup_type): Ditto.
4069 * dbxread.c (add_bincl_to_list): Ditto.
4070
7936743b
AC
4071 * utils.c (xmmalloc): Delete.
4072 (xmalloc): Inline xmmalloc and mmalloc calls.
4073 (msavestring): Use xmalloc.
4074 * defs.h (xmmalloc): Delete declaration.
4075 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4076 xmmalloc.
4077 * symmisc.c (extend_psymbol_list): Ditto.
4078 * symfile.c (init_psymbol_list): Ditto.
4079 * source.c (find_source_lines): Ditto.
4080 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4081 * elfread.c (elf_symtab_read): Ditto.
4082 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4083 * coffread.c (coff_symfile_init): Ditto.
4084
252ab814
DC
40852004-08-10 David Carlton <carlton@bactrian.org>
4086
4087 * MAINTAINERS: Remove David Carlton from c++ testsuite
4088 maintainers.
4089
8f5ba92b
JG
40902004-08-10 Jerome Guitton <guitton@gnat.com>
4091
4092 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4093 print a line feed before the prompt.
4094
21749010
MK
40952004-08-10 Mark Kettenis <kettenis@gnu.org>
4096
4097 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4098
1f011ce2
JB
40992004-08-09 Joel Brobecker <brobecker@gnat.com>
4100
4101 General cleanup of the AIX xm include file:
4102 * config/xm-aix4.h (fd_set): Remove undefine.
4103 Remove include of <sys/select.h>.
4104 (HAVE_TERMIO): Remove define.
4105 (USG): Likewise.
4106 (NULL): Remove redefine.
4107 (alloca): Remove #pragma.
4108 (vfork): Remove define.
4109 (termdef): Remove.
4110 (SIGWINCH_HANDLER): Remove.
4111 (SIGWINCH_HANDLER_BODY): Remove.
4112
cf4e7692
MK
41132004-08-09 Mark Kettenis <kettenis@gnu.org>
4114
4115 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4116 GDB_OSABI_OPENBSD_ELF.
4117
ac5754fa
MK
41182004-08-07 Robert Millan <robertmh@gnu.org>
4119
4120 * bsd-kvm.c: Check for nlist.h before including it.
4121
086ec9eb
MK
41222004-08-09 Mark Kettenis <kettenis@gnu.org>
4123
bbe06c74
MK
4124 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4125 sigcontext' offset consistency checks for ancient BSD.
4126
3aa7b3b3
MK
4127 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4128
086ec9eb
MK
4129 * configure.in: Check for <sys/types.h>. Check return and
4130 argument types of ptrace.
4131 * configure, config.in: Regenerate.
4132
09991fa0
JB
41332004-08-09 Jim Blandy <jimb@redhat.com>
4134
4135 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4136 rs6000_register_sim_regno): Doc fixes.
4137
fed7ba43
JB
41382004-08-08 Joel Brobecker <brobecker@gnat.com>
4139
4140 * mips-tdep.c: Include "floatformat.h".
4141 (n32n64_floatformat_always_valid): New function.
4142 (floatformat_n32n64_long_double_big): New constant.
4143 (mips_gdbarch_init): Set size and format of long double
4144 for N32 and N64 ABIs.
4145 * Makefile.in (mips-tdep.o): Update dependencies.
4146
456fcf94
AC
41472004-08-08 Andrew Cagney <cagney@gnu.org>
4148
2f9b146e
AC
4149 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4150 print. Improve script's error messages.
4151 * gdbarch.h: Re-generate.
4152
456fcf94
AC
4153 * gdbarch.sh (pformat): New function.
4154 (float_format, double_format, long_double_format): List with bit
4155 members. Use pformat when printing.
4156 * gdbarch.c, gdbarch.h: Re-generate.
4157
69e9e646
NW
41582004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4159
4160 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4161 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4162 (ppcnbsd_supply_pcb): New function.
4163 (_initialize_ppcnbsd_nat): New prototype and function.
4164 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4165 (LOADLIBES): New variable.
4166 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4167
5ef2d0aa
AC
41682004-08-08 Andrew Cagney <cagney@gnu.org>
4169
4170 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4171 (builtin_type_ieee_double, builtin_type_ia64_quad)
4172 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4173 BE/LE floating-point types.
4174 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4175 (builtin_type_ieee_double, builtin_type_ia64_quad)
4176 (builtin_type_ia64_spill): Declare.
4177 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4178 (floatformat_ieee_double, floatformat_arm_ext)
4179 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4180 of LE/BE floatformats.
4181 * doublest.h: (struct floatformat, floatformat_ieee_single)
4182 (floatformat_ieee_double, floatformat_arm_ext)
4183 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4184
5c7f2947
MK
41852004-08-08 Mark Kettenis <kettenis@gnu.org>
4186
ecac404d
MK
4187 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4188
9b8607ce
MK
4189 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4190 instead of regcache_raw_supply when storing the registers.
4191
f6052080
MK
4192 * i386gnu-nat.c: Update copyright year.
4193 (gnu_store_registers): Don't use deprecated_registers and
4194 deprecated_registers_valid. Use regcache_valid_p and
4195 regcache_raw_supply instead.
4196
17777823
MK
4197 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4198 frame_pc_unwind.
4199
5240ceac
MK
4200 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4201 variables. Incapitalized "process".
4202
5c7f2947
MK
4203 * configure.in: Add cursesX to the list of possible curses libs.
4204 Add cursesX.h to the list of possible curses headers.
4205 * configure, config.in: Regenerate.
4206
da7d81e3
NW
42072004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4208
4209 * configure.in: Test for struct lwp in <sys/lwp.h>.
4210 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4211 the offset of l_addr in struct lwp.
4212
7f245d65
NW
42132004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4214
4215 * bsd-kvm.c: Include "gdbcore.h"
4216 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4217
47b3f456
AC
42182004-08-07 Andrew Cagney <cagney@gnu.org>
4219
70bd8e24
AC
4220 * gdbtypes.c (build_flt, build_complex): New functions.
4221 (gdbtypes_post_init): Use.
4222
9b0dea39
AC
4223 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4224
5cf7abac
AC
4225 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4226 through to builtin_type_uint128.
4227
64d2b26d
AC
4228 * c-exp.y: Use builtin_type function to obtain builtin types.
4229
7ad6570d
AC
4230 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4231 builtin_uint128.
4232 * gdbtypes.c (gdbtypes_post_init): Update.
4233 (build_gdbtypes): Move initialization of builtin_type_int0
4234 through to builtin_type_uint128 from here ...
4235 (_initialize_gdbtypes): ... to here.
4236 * d10v-tdep.c (d10v_register_type): Update.
4237
47b3f456
AC
4238 * doublest.c: Update copyright.
4239 (floatformat_from_length): Call error when floatformat is NULL.
4240 (extract_floating_by_length): Remove NULL fmt check.
4241 (store_floating_by_length): Ditto.
4242
0a8146bf
AC
42432004-08-07 Andrew Cagney <cagney@gnu.org>
4244
4245 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4246 that the register is valid.
4247
c0ccb908
MK
42482004-08-05 Mark Kettenis <kettenis@chello.nl>
4249
8e6bed05
MK
4250 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4251 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4252 struct frame_info *. Use safe_frame_unwind_memory instead of
4253 deprecated_read_memory_nobpt.
4254 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4255 changed signature of i386_linux_sigtramp_start and
4256 i386_linux_rt_sigtramp_start.
4257
24f9f5e3
MK
4258 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4259 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4260 instead of deprecated_read_memory_nobpt.
4261 (i386nbsd_sigtramp_p): Adjust for changed signature of
4262 i386nbsd_sigtramp_offset.
4263
c822af0c
MK
4264 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4265 safe_frame_unwind_memory instead of target_read_memory.
4266
c0ccb908
MK
4267 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4268 !NO_SYS_FILE.
4269 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4270 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4271 (_initialize_kernel_u_addr): Remove prototype and function.
4272 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4273 !NO_SYS_FILE.
4274 * xcoffread.c: Likewise.
4275
b9e1c0d6
MK
42762004-08-06 Mark Kettenis <kettenis@gnu.org>
4277
4278 * vax-nat.c: New file.
4279 * vaxbsd-nat.c: Tweak comment.
4280 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4281 vaxnbsd-tdep.c.
4282 (vax-nat.o): New dependency.
4283 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4284 (vax-*-ultrix2*): Remove.
4285 * config/vax/vax.mh: New file.
4286 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4287 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4288 (vax_register_u_addr): New prototype.
4289 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4290 * config/vax/vaxult2.mh: Remove file.
4291 * config/vax/vaxult.mh: Remove file.
4292 * config/vax/vaxbsd.mh: Remove file.
4293 * config/vax/vax.mt (TM_FILE): Remove.
4294 * config/vax/tm-vaxbsd.h: Remove file.
4295
9ad7bec7
JB
42962004-08-06 Joel Brobecker <brobecker@gnat.com>
4297
4298 * aix-thread.c (get_signaled_thread): New function.
4299 (iter_trap): Delete, no longer used.
4300 (iter_tid): New function.
4301 (pd_update): Find the thread that received the SIGTRAP signal
4302 by first locating the kernel thread, and then finding its
4303 associated thread.
4304
bf0d233d
UW
43052004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4306
4307 * lin-lwp.c (child_wait): Continue inferior after processing
4308 PTRACE_EVENT_CLONE event.
4309
d0f853e1
NN
43102004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4311
4312 * MAINTAINERS: Add self to Write-After-Approval.
4313
ab14aeb0
JJ
43142004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4315
4316 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4317 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4318
9c8dbfa9
AC
43192004-08-05 Andrew Cagney <cagney@gnu.org>
4320
c8f3ca46
AC
4321 * config/xm-sysv4.h: Delete file.
4322 * config/mips/xm-irix5.h: Delete file.
4323 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4324 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4325 * config/ia64/xm-aix.h: Delete file.
4326 * config/ia64/aix.mh (XM_FILE): Delete.
4327 * config/pa/xm-hppah.h: Delete file.
4328 * config/pa/hpux11w.mh (XM_FILE): Delete.
4329 * config/pa/hpux11.mh (XM_FILE): Delete.
4330 * config/pa/hpux1020.mh (XM_FILE): Delete.
4331 * config/pa/hppahpux.mh (XM_FILE): Delete.
4332
5f7daaff
AC
4333 * config/alpha/xm-alphalinux.h: Delete file.
4334 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4335 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4336 * config/alpha/xm-alphaosf.h: Delete file.
4337 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4338 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4339 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4340 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4341
69babf95
AC
4342 * config/i386/xm-i386v.h: Delete file.
4343 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4344 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4345 * config/i386/xm-i386sco.h: Delete file.
4346 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4347 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4348 * config/i386/xm-i386v4.h: Delete file.
4349 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4350 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4351 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4352 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4353
6f009c8a
AC
4354 * config/vax/xm-vax.h: Delete file.
4355 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4356 * config/vax/xm-vaxult2.h: Delete file.
4357 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4358 * config/vax/vaxult2.mh (XM_FILE): Delete.
4359 * config/vax/xm-vaxult.h: Delete file.
4360 * config/vax/vaxult.mh (XM_FILE): Delete.
4361 * config/vax/xm-vaxbsd.h: Delete file.
4362 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4363
9c8dbfa9
AC
4364 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4365 * gdbarch.h, gdbarch.c: Re-generate.
4366 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4367 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4368 * frame.h: Delete deprecated_read_fp from comments.
4369 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4370 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4371
84367a3e
MK
43722004-08-04 Mark Kettenis <kettenis@gnu.org>
4373
9c8e3411
MK
4374 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4375 trampoline in OpenBSD 3.5-current.
4376
b87bc0d8
MK
4377 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4378 SSE registers.
4379
84367a3e
MK
4380 * Makefile.in: Remove embedded page breaks.
4381
a44bddec
JB
43822004-08-04 Jim Blandy <jimb@redhat.com>
4383
7ab3286f
JB
4384 * regcache.c (regcache_raw_read): Assert that, after calling
4385 target_fetch_registers, the register we're reading is cached.
4386
a44bddec
JB
4387 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4388 a call to 'internal_error', with a more helpful error message.
4389 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 4390 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 4391
35124113
AC
43922004-08-04 Andrew Cagney <cagney@gnu.org>
4393
4394 * Makefile.in: Update dependencies.
4395
9f643768
JB
43962004-08-04 Jim Blandy <jimb@redhat.com>
4397
6ced10dd
JB
4398 Change the layout of the PowerPC E500 raw register cache to allow
4399 the lower 32-bit halves of the GPRS to be their own raw registers,
4400 not pseudoregisters.
4401 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4402 add ppc_ev0_upper_regnum flag.
4403 * rs6000-tdep.c: #include "reggroups.h".
4404 (spe_register_p): Recognize the ev upper half registers as SPE
4405 registers.
4406 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4407 registers.
4408 (e500_move_ev_register): New function.
4409 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4410 vector registers are the pseudo-registers now, formed by splicing
4411 together the gprs and the upper-half registers.
4412 (e500_register_reggroup_p): New function.
4413 (P): Macro deleted.
4414 (P8, A4): New macro.
4415 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4416 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4417 macros.
4418 (registers_e500): Rearrange register set so that the raw register
4419 set contains 32-bit GPRs and upper-half registers, and the SPE
4420 vector registers become pseudo-registers.
4421 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4422 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4423 register numbers are now the same for the E500 as they are for
4424 other PowerPC variants. Register e500_register_reggroup_p as the
4425 register group function for the E500.
4426 * Makefile.in (rs6000-tdep.o): Update dependencies.
4427
4428 Adapt PPC E500 native support to the new raw regcache layout.
4429 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4430 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4431 (fetch_spe_register, store_spe_register): Handle fetching/storing
4432 all the SPE registers at once, if regno == -1. These now take
4433 over the job of fetch_spe_registers and store_spe_registers.
4434 (fetch_spe_registers, store_spe_registers): Deleted.
4435 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4436 unconditionally; they're always raw. Fetch/store SPE upper half
4437 registers, if present, instead of ev registers.
4438 (fetch_register, store_register): Remove sanity checks: gprs are
4439 never pseudo-registers now, so we never need to even mention any
4440 registers that are ever pseudoregisters.
4441
9f643768
JB
4442 Use a fixed register numbering when communicating with the PowerPC
4443 simulator.
4444 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4445 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4446 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4447 New functions.
4448 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4449 init_sim_regno_table.
4450 * Makefile.in (gdb_sim_ppc_h): New variable.
4451 (rs6000-tdep.o): Update dependencies.
4452
1e2279c8
AC
44532004-08-02 Andrew Cagney <cagney@gnu.org>
4454
1d94326f
AC
4455 * cris-tdep.c (cris_register_size): Restore function, still used
4456 locally.
4457
331ae7ed
AC
4458 * gdbarch.sh (deprecated_target_read_fp)
4459 (deprecated_frame_locals_address, deprecated_frame_args_address)
4460 (deprecated_frame_chain_valid, deprecated_frame_chain)
4461 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4462 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4463 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4464 * gdbarch.h, gdbarch.c: Re-generate.
4465 * regcache.c (deprecated_read_fp): Do not call
4466 DEPRECATED_TARGET_READ_FP_P.
4467 * infcmd.c (default_print_registers_info): Do not call
4468 DEPRECATED_DO_REGISTERS_INFO.
4469 * frame-base.c (default_frame_locals_address): Do not call
4470 DEPRECATED_FRAME_LOCALS_ADDRESS.
4471 (default_frame_args_address): Do not call
4472 DEPRECATED_FRAME_ARGS_ADDRESS.
4473
1e2279c8
AC
4474 * gdbarch.sh (deprecated_register_raw_size)
4475 (deprecated_register_virtual_size:int): Delete.
4476 * gdbarch.h, gdbarch.c: Re-generate.
4477 * cris-tdep.c (cris_register_size): Delete.
4478 (cris_gdbarch_init): Update.
4479 * alpha-tdep.c (alpha_register_raw_size)
4480 (alpha_register_virtual_size): Delete.
4481 (alpha_gdbarch_init): Update.
4482
a90c06b4
AC
4483 * gdbarch.sh (deprecated_register_virtual_type)
4484 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4485 (deprecated_dummy_write_sp): Delete.
4486 * gdbarch.h, gdbarch.c: Re-generate.
4487
f42accbe
AC
4488 * gdbarch.sh (deprecated_register_bytes): Delete.
4489 * gdbarch.h, gdbarch.c: Re-generate.
4490 * regcache.c (deprecated_register_bytes): New function.
4491 * regcache.h (deprecated_register_bytes): Declare.
4492 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4493 * v850-tdep.c (v850_gdbarch_init): Update.
4494 * sh64-tdep.c (sh64_gdbarch_init): Update.
4495 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4496 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4497 * mcore-tdep.c (mcore_gdbarch_init): Update.
4498 * cris-tdep.c (cris_gdbarch_init): Update.
4499 * arm-tdep.c (arm_gdbarch_init): Update.
4500 * remote.c (init_remote_state): Update.
4501 * remote-vx.c (vx_prepare_to_store): Update.
4502 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4503 * irix5-nat.c (fetch_core_registers): Update.
4504 * cris-tdep.c (cris_register_bytes_ok): Update.
4505 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4506
45c9dd44
AC
4507 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4508 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4509 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4510 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4511 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4512 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4513 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4514 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4515 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4516 with mips_insn16 and mips_insn32.
4517
3acba339
AC
4518 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4519 * rs6000-tdep.c (rs6000_push_dummy_call)
4520 (rs6000_extract_return_value): Use register_size.
4521 * xstormy16-tdep.c (xstormy16_get_saved_register)
4522 (xstormy16_extract_return_value): Ditto.
4523 * valops.c (value_assign): Ditto.
4524 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4525 * v850-tdep.c (v850_extract_return_value): Ditto.
4526 * tracepoint.c (collect_symbol): Ditto.
4527 * target.c (debug_print_register): Ditto.
4528 * stack.c (frame_info): Ditto.
4529 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4530 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4531 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4532 (store_register_using_P): Ditto.
4533 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4534 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4535 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4536 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4537 * regcache.c (deprecated_read_register_bytes)
4538 (deprecated_write_register_bytes, read_register)
4539 (write_register): Ditto.
4540 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4541 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4542 * monitor.c (monitor_supply_register, monitor_fetch_register)
4543 (monitor_store_register): Ditto.
4544 * mn10300-tdep.c (mn10300_pop_frame_regular)
4545 (mn10300_print_register): Ditto.
4546 * mipsv4-nat.c (fill_fpregset): Ditto.
4547 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4548 (mips64_fill_fpregset): Ditto.
4549 * mi/mi-main.c (register_changed_p, get_register)
4550 (mi_cmd_data_write_register_values): Ditto.
4551 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4552 * irix5-nat.c (fill_gregset, fetch_core_registers):
4553 * infrun.c (write_inferior_status_register): Ditto.
4554 * infptrace.c (fetch_register, store_register): Ditto.
4555 * infcmd.c (default_print_registers_info): Ditto.
4556 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4557 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4558 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4559 * hpux-thread.c (hpux_thread_fetch_registers)
4560 (hpux_thread_store_registers): Ditto.
4561 * hppah-nat.c (store_inferior_registers, fetch_register):
4562 * findvar.c (value_from_register): Ditto.
4563 * dve3900-rom.c (fetch_bitmapped_register):
4564 * cris-tdep.c (cris_gdbarch_init): Ditto.
4565 * alpha-tdep.h: Ditto.
4566 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4567
01e1877c
AC
4568 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4569 DEPRECATED_REGISTER_RAW_SIZE from comments.
4570 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4571 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4572 DEPRECATED_REGISTER_RAW_SIZE.
4573 * findvar.c (value_of_register): Simplify by assuming that the
4574 registers raw and virtual sizes are identical.
4575 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4576 comment.
4577 * arch-utils.c (generic_register_size): Simplify by assuming
4578 register_type.
4579
73f458fb
AC
4580 * regcache.c (legacy_read_register_gen, real_register)
4581 (legacy_write_register_gen): Delete, not used.
4582
336a3131
AC
4583 * regcache.c (struct regcache_descr): Delete legacy_p.
4584 (init_legacy_regcache_descr): Delete function.
4585 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4586 Do not use deprecated register functions.
4587 (regcache_raw_read, deprecated_write_register_gen):
4588 (deprecated_read_register_gen, regcache_raw_write): Delete code
4589 predicated on legacy_p.
4590 (register_size): Delete check against register raw size.
4591
c1d546cd
AC
4592 * cris-tdep.c (cris_register_type): Replace
4593 cris_register_virtual_type.
4594 (cris_gdbarch_init): Update, set register_type.
4595
48c2c0a6
AC
4596 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4597 * gdbarch.h, gdbarch.c: Re-generate.
4598 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4599 (arm_gdbarch_init) Do not set frameless function invocation.
4600 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4601 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4602 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4603 (frv_gdbarch_init): Do not set frameless function invocation.
4604 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4605 * sh-tdep.c (sh_gdbarch_init): Ditto.
4606 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4607 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4608 * avr-tdep.c (avr_gdbarch_init): Ditto.
4609
474093a6
AC
4610 * blockframe.c (legacy_frame_chain_valid): Delete function.
4611
3c109c8b
AC
4612 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4613 and pc. Update comments.
4614 (pc_in_dummy_frame): Delete function.
4615 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4616 use the "id".
4617 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4618 call_hi, top and pc, use the id.
4619 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4620
96860204
AC
4621 * dummy-frame.c: Include "gdb_string.h".
4622 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4623 (generic_save_dummy_frame_tos): Delete.
4624 (dummy_frame_push): New function, replaces above.
4625 * dummy-frame.h: Update copyright.
4626 (dummy_frame_push): Declare.
4627 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4628 (generic_save_call_dummy_addr): Delete declarations.
4629 * infcall.c: Include "dummy-frame.h".
4630 (call_function_by_hand): Add locals caller_regcache,
4631 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4632 with call to frame_save_as_regcache plus cleanup. Delete calls to
4633 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4634 Move clear_proceed_status to just before the resume, add call to
4635 dummy_frame_push (discard cleanup).
4636 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4637 (dummy-frame.o): Add $(gdb_string_h).
4638
d67ec5db
AC
46392004-08-01 Andrew Cagney <cagney@gnu.org>
4640
4641 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4642 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4643 * dummy-frame.c (find_dummy_frame): Delete.
4644 (struct dummy_frame_cache, dummy_frame_sniffer)
4645 (dummy_frame_prev_register, dummy_frame_this_id)
4646 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4647 frame unwinder using a dummy_frame_cache.
4648
a81dcb05
AC
46492004-08-01 Andrew Cagney <cagney@gnu.org>
4650
4651 * frame.h (frame_save_as_regcache): Declare.
4652 * frame.c (frame_save_as_regcache): New function.
4653 (do_frame_read_register): Replace do_frame_unwind_register.
4654 (frame_pop): Use frame_save_as_regcache.
4655 * dummy-frame.c (generic_push_dummy_frame): Use
4656 frame_save_as_regcache.
4657
aa495d11
JB
46582004-08-01 Joel Brobecker <brobecker@gnat.com>
4659
4660 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4661 file as included until we record the first line in the linetable.
4662
ff65ac78
AC
46632004-08-01 Andrew Cagney <cagney@gnu.org>
4664
4665 * frame.h (deprecated_pop_dummy_frame)
4666 (deprecated_read_register_dummy)
4667 (deprecated_generic_find_dummy_frame): Delete.
4668 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4669 (deprecated_read_register_dummy)
4670 (deprecated_find_dummy_frame_regcache)
4671 (discard_innermost_dummy)
4672 (deprecated_pop_dummy_frame): Delete.
4673 (dummy_frame_this_id): Simplify.
4674 (struct dummy_frame): Delete "fp" and "sp".
4675 (find_dummy_frame): Simplify.
4676 (generic_push_dummy_frame): Do not set "fp" or "sp".
4677 (fprint_dummy_frames): Do not print "fp" and "sp"
4678
37bdc87e
MK
46792004-08-01 Mark Kettenis <kettenis@gnu.org>
4680
4681 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4682 (struct i386_insn): New structure.
4683 (i386_match_insn): New function.
4684 (i386_frame_setup_skip_insns): New variable.
4685 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4686 array i386_frame_setup_insns of instructions that should be
4687 skipped inside the frame setup sequence.
4688
8241eaa6
AC
46892004-08-01 Andrew Cagney <cagney@gnu.org>
4690
5bc602c7
AC
4691 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4692 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4693 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4694 * stack.c (frame_info): Delete references to
4695 DEPRECATED_FRAME_INIT_SAVED_REGS and
4696 deprecated_get_frame_saved_regs.
4697 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4698 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4699 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4700 (frame_unwind_register_signed)
4701 (frame_unwind_register_unsigned)
4702 (frame_unwind_unsigned_register): Use register_size.
4703 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4704 (deprecated_frame_xmalloc_with_cleanup)
4705 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4706 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4707
03d363a1
AC
4708 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4709 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4710 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4711 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4712
8241eaa6
AC
4713 * infcall.c (call_function_by_hand): Do not use
4714 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4715 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4716 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4717 DEPRECATED_STACK_ALIGN.
4718
f00df8b7
AC
47192004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4720
4721 Committed by Andrew Cagney.
4722 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4723
eec63939
AC
47242004-08-01 Andrew Cagney <cagney@gnu.org>
4725
4726 * mips-tdep.c (mips16_frame_cache)
4727 (mips16_frame_this_id, mips16_frame_prev_register)
4728 (mips16_frame_unwind, mips16_frame_sniffer)
4729 (mips16_frame_base_address, mips16_frame_base)
4730 (mips16_frame_base_sniffer, mips32_frame_cache)
4731 (mips32_frame_this_id, mips32_frame_prev_register)
4732 (mips32_frame_unwind, mips32_frame_sniffer)
4733 (mips32_frame_base_address, mips32_frame_base)
4734 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4735 separate heuristic mips16 and mips32 unwinders.
4736 (mips_stub_frame_cache, mips_stub_frame_this_id)
4737 (mips_stub_frame_prev_register)
4738 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4739 (mips_stub_frame_base_address, mips_stub_frame_base)
4740 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4741 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4742 match true mdebug frames.
4743 (non_heuristic_proc_desc): Add forward declaration.
4744
e66299b3
AC
47452004-08-01 Andrew Cagney <cagney@gnu.org>
4746
83cbbf3e
AC
4747 * config/mips/tm-irix6.h: Delete file.
4748 * config/mips/tm-irix5.h: Delete file.
4749 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4750 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4751
22d41b37
AC
4752 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4753 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4754 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4755 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4756 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4757 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4758 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4759 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4760 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4761 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4762 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4763 (TARGET_SIGNAL_RAW_VALUES): Delete.
4764 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4765 Delete.
4766 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4767 (TARGET_HW_WATCH_LIMIT): Delete.
4768 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4769 * minimon.h: Delete file.
4770
e66299b3
AC
4771 * trad-frame.c (trad_frame_get_this_base)
4772 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4773 functions.
4774 * trad-frame.h (trad_frame_set_this_base)
4775 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4776
1f67027d
AC
47772004-07-31 Andrew Cagney <cagney@gnu.org>
4778
4779 * trad-frame.c (trad_frame_get_prev_register): Rename
4780 trad_frame_get_prev_register.
4781 * vax-tdep.c (vax_frame_prev_register): Update.
4782 * trad-frame.h: Update.
4783 * trad-frame.c (trad_frame_get_register): Update.
4784 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4785 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4786 Update.
4787 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4788 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4789 Update.
4790 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4791 Update.
4792 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4793 Update.
4794 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4795 Update.
4796 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4797 Update.
4798 * s390-tdep.c (s390_frame_prev_register)
4799 (s390_stub_frame_prev_register)
4800 (s390_sigtramp_frame_prev_register): Update.
4801 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4802 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4803 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4804 * m88k-tdep.c (m88k_frame_prev_register)
4805 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4806 * m32r-tdep.c (m32r_frame_prev_register): Update.
4807 * hppa-tdep.c (hppa_frame_prev_register_helper)
4808 * frv-tdep.c (frv_frame_prev_register): Update.
4809 * d10v-tdep.c (d10v_frame_prev_register): Update.
4810 * cris-tdep.c (cris_frame_prev_register): Update.
4811 * avr-tdep.c (avr_frame_prev_register): Update.
4812 * arm-tdep.c (arm_prologue_prev_register)
4813 (arm_sigtramp_prev_register): Update.
4814
c1bf6f65
AC
48152004-07-31 Andrew Cagney <cagney@gnu.org>
4816
4817 * frame.h (legacy_saved_regs_unwind)
4818 (legacy_frame_chain_valid, legacy_frame_p)
4819 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4820 * dummy-frame.c (dummy_frame_this_id): Simplify.
4821 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4822 * frame.c (struct frame_info): Delete the field "type".
4823 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4824 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4825 (legacy_saved_regs_unwind, legacy_frame_p)
4826 (frame_type_from_pc): Delete.
4827 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4828 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4829
dc856692
MK
48302004-07-31 Mark Kettenis <kettenis@gnu.org>
4831
5a5effe1
MK
4832 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4833 indentation.
4834
d4fd50a6
MK
4835 * mips-nat.c: Remove file.
4836 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4837 (mips-nat.o): Remove dependency.
4838
2689df5a
MK
4839 * infptrace.c: Update copyright year.
4840 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4841 explicitly setting the buffer to all zeroes.
4842
dc856692
MK
4843 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4844 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4845
763910e0
AC
48462004-07-30 Andrew Cagney <cagney@gnu.org>
4847
4848 * GDB 6.2 released from gdb_6_2-branch.
4849
0b66e38c
EZ
48502004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4851
4852 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4853
4854 * exec.c (exec_file_attach):
4855 * nto-tdep.c (nto_find_and_open_solib):
4856 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4857 * solib.c (solib_open):
4858 * somsolib.c (som_solib_sizeof_symbol_table):
4859 * source.c (is_regular_file, openp, open_source_file):
4860 * symfile.c (symfile_bfd_open):
4861 * wince.c (upload_to_device): Differentiate between the search for
4862 binary and source files.
4863
be7d7357
AC
48642004-07-30 Andrew Cagney <cagney@gnu.org>
4865
4866 * complaints.c (_initialize_complaints): Pass NULL to
4867 add_setshow_zinteger_cmd for help_doc.
4868 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4869
ddc9cd0f
AC
48702004-07-30 Andrew Cagney <cagney@gnu.org>
4871
4872 Fix PR i18n/761.
4873 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4874 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4875 $(PACKAGE).pot and update-po.
4876 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4877 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4878 (update-po): New rules.
4879 (localedir): Define using autoconf.
4880 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4881 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4882 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4883 * configure.in: Generate CATALOGS and LINGUAS from contents of
4884 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4885 * configure: Re-generate.
4886 * po/gdbtext: New file
4887
e92f3704
JG
48882004-07-30 Jerome Guitton <guitton@gnat.com>
4889
4890 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4891 order.
4892
b0f35d58
DL
48932004-07-30 David Lecomber <dsl@sources.redhat.com>
4894
4895 * dwarf2read.c (read_file_scope): Set producer if attribute
4896 present.
4897 (struct dwarf2_cu): Added new member producer.
4898
ce7d4522
JG
48992004-07-30 Jerome Guitton <guitton@gnat.com>
4900
4901 * inflow.c (kill_command): release file handles in BFD.
4902 * exec.c (exec_file_attach): Ditto.
4903 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4904
05ee07c7
AC
49052004-07-29 Andrew Cagney <cagney@gnu.org>
4906
4907 * PROBLEMS (mips-irix): Note that it is broken.
4908
62eceb47
AC
49092004-07-29 Andrew Cagney <cagney@gnu.org>
4910
e57b8d41
AC
4911 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4912 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4913
d334389b
AC
4914 * config/xm-nbsd.h: Delete file.
4915 * config/arm/xm-nbsd.h: Delete file.
4916 * config/i386/xm-nbsd.h: Delete file.
4917 * config/ns32k/xm-nbsd.h: Delete file.
4918 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4919 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4920 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4921 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4922 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4923
e910f676
AC
4924 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4925 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4926 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4927 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4928 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4929 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4930
6fa856b9
AC
4931 * config/powerpc/xm-linux.h: Delete empty file.
4932 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4933 * config/powerpc/linux.mh (XM_FILE): Delete.
4934 * config/m68k/xm-linux.h: Delete empty file.
4935 * config/m68k/linux.mh (XM_FILE): Delete.
4936 * config/ia64/xm-linux.h: Delete empty file.
4937 * config/ia64/linux.mh (XM_FILE): Delete.
4938 * config/arm/xm-linux.h: Delete empty file.
4939 * config/arm/linux.mh (XM_FILE): Delete.
4940
471ae5ae
AC
4941 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4942 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4943 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4944 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4945 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4946 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4947 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4948 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4949
62eceb47
AC
4950 * config/m68k/xm-m68k.h: Delete file.
4951 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4952 copyright.
4953 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4954 * config/pa/xm-linux.h: Delete empty file.
4955 * config/pa/linux.mh (XM_FILE): Delete.
4956 * config/i386/xm-i386.h: Delete empty file.
4957 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4958 "i386/xm-i386.h".
4959 * config/i386/obsdaout.mh (XM_FILE): Delete.
4960 * config/i386/obsd64.mh (XM_FILE): Delete.
4961 * config/i386/fbsd64.mh (XM_FILE): Delete.
4962 * config/i386/nto.mh (XM_FILE): Delete.
4963 * config/i386/obsd.mh (XM_FILE): Delete.
4964 * config/i386/linux64.mh (XM_FILE): Delete.
4965 * config/i386/linux.mh (XM_FILE): Delete.
4966 * config/i386/i386sol2.mh (XM_FILE): Delete.
4967 * config/i386/i386gnu.mh (XM_FILE): Delete.
4968 * config/i386/fbsd.mh (XM_FILE): Delete.
4969 * config/i386/nbsd64.mh (XM_FILE): Delete.
4970
c35f4ffc
AC
49712004-07-29 Andrew Cagney <cagney@gnu.org>
4972
4973 * config/pa/xm-linux.h: Do not include "floatformat.h".
4974 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4975 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4976 * config/i386/xm-i386.h: Do not include "floatformat.h".
4977 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4978 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4979 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4980 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4981 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4982 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4983 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4984 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4985 * configure, config.in: Regenerate.
4986 * configure.host (gdb_host_float_format, gdb_host_double_format)
4987 (gdb_host_long_double_format): Set according to the host.
4988
624a44a3
AC
49892004-07-29 Andrew Cagney <cagney@gnu.org>
4990
4991 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4992
0dea2468
AC
49932004-07-28 Andrew Cagney <cagney@gnu.org>
4994
4995 * PROBLEMS: Mention threads/1650.
4996 * NEWS: Mention the NPTL fix.
4997
b3f42336
AC
49982004-07-28 Andrew Cagney <cagney@gnu.org>
4999
5000 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5001 (add_setshow_cmd_full): Make static.
5002 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5003 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5004 * cli/cli-decode.c (add_setshow_filename_cmd)
5005 (add_setshow_string_cmd): New functions.
5006 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5007 * mips-tdep.c (_initialize_mips_tdep): Update.
5008 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5009 * cli/cli-logging.c (_initialize_cli_logging): Update.
5010 * complaints.c (_initialize_complaints): Update.
5011 * remote.c (_initialize_remote): Update.
5012
3b64bf98
AC
50132004-07-28 Andrew Cagney <cagney@gnu.org>
5014
5015 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5016 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5017 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5018 print parameters. Make string parameters constant.
5019 * command.h: Update. Update copyright.
5020 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5021 * observer.c (_initialize_observer): Ditto.
5022 * frame.c (_initialize_frame): Ditto.
5023 * complaints.c (_initialize_complaints): Ditto.
5024 * maint.c (_initialize_maint_cmds): Ditto.
5025 * target.c (initialize_targets): Ditto.
5026 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5027 * infcall.c (_initialize_infcall): Ditto.
5028 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5029 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5030 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5031 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5032 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5033
e9667a65
AC
50342004-07-28 Andrew Cagney <cagney@gnu.org>
5035
54a5b07d
AC
5036 * gdbtypes.c (lookup_primitive_typename): Delete function.
5037 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5038 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5039 * gdbtypes.c (lookup_typename): Ditto.
5040 * f-exp.y (yylex): Ditto.
5041 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5042
e9667a65
AC
5043 * scm-lang.c (c_builtin_types): Delete extern declaration.
5044 (scm_language_defn): Replace
5045 string_char_type and primitive_type_vector with
5046 la_language_arch_info.
5047 * jv-lang.c (java_language_defn): Replace
5048 string_char_type and primitive_type_vector with
5049 la_language_arch_info.
5050 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5051 c_builtin_types in comment.
5052 * c-lang.h (struct language_arch_info): Declare opaque.
5053 (c_language_arch_info): Declare.
5054 (c_builtin_types): Delete declaration.
5055 * c-lang.c (c_language_arch_info): Set string_char_type to
5056 builtin_char, not builtin_true_char. Make global.
5057 (c_builtin_types): Delete array.
5058 (asm_language_defn, minimal_language_defn): Replace
5059 string_char_type and primitive_type_vector with
5060 la_language_arch_info.
5061
685419e2
AC
50622004-07-28 Andrew Cagney <cagney@gnu.org>
5063
5064 * gdbtypes.h (struct builtin_type): Rename true_char to
5065 builtin_true_char.
5066 * gdbtypes.c (gdbtypes_post_init): Update.
5067 * c-lang.c (arch_info): New function.
5068 (enum c_primitive_types): New enum.
5069 (c_language_defn): Instead of string_char_type and
5070 primitive_type_vector set la_language_arch_info.
5071
5a44ea29
AC
50722004-07-28 Andrew Cagney <cagney@gnu.org>
5073
5074 * language.h (struct language_arch_info): Fix typo
5075 s/primative/primitive/.
5076 * gdbtypes.c (lookup_primitive_typename): Ditto.
5077 * language.c (language_lookup_primitive_type_by_name)
5078 (unknown_language_arch_info): Ditto.
5079
f290d38e
AC
50802004-07-27 Andrew Cagney <cagney@gnu.org>
5081
5082 * defs.h (enum language): Add nr_languages.
5083 * language.h (struct language_arch_info): Define.
5084 (struct language_defn): Add la_language_arch_info.
5085 (language_lookup_primative_type_by_name): Declare.
5086 (language_string_char_type): Declare.
5087 * language.c (_initialize_language, language_gdbarch_post_init)
5088 (struct language_gdbarch, language_gdbarch_data): Implement
5089 per-architecture language information.
5090 (unknown_language_arch_info, language_string_char_type)
5091 (language_lookup_primative_type_by_name): New functions.
5092 (unknown_language_defn, auto_language_defn)
5093 (local_language_defn): Set la_language_arch_info to
5094 unknown_language_arch_info.
5095 (unknown_builtin_types): Delete.
5096 * gdbtypes.c (lookup_primitive_typename): Use
5097 language_lookup_primative_type_by_name.
5098 (create_string_type): Use language_string_char_type.
5099 * values.c (value_from_string): Use language_string_char_type.
5100 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5101 * p-lang.c (pascal_language_defn): Ditto.
5102 * m2-lang.c (m2_language_defn): Ditto.
5103 * jv-lang.c (java_language_defn): Ditto.
5104 * objc-lang.c (objc_language_defn): Ditto.
5105 * f-lang.c (f_language_defn): Ditto.
5106 * c-lang.c (c_language_defn, cplus_language_defn)
5107 (asm_language_defn, minimal_language_defn): Ditto.
5108
000177f0
AC
51092004-07-27 Andrew Cagney <cagney@gnu.org>
5110
5111 * gdbtypes.h (struct builtin_type): Declare.
5112 (builtin_type): Declare.
5113 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5114 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5115 (gdbtypes_post_init): New function.
5116 (builtin_type): New function.
5117
e22f895c
KI
51182004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5119
5120 * remote-m32r-sdi.c: Fix breakpoint bug.
5121 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5122 recv_char_data, recv_long_data): New functions to replace communication
5123 sequences.
5124
536517dd
MC
51252004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5126
5127 Document PR threads/1650.
5128 * PROBLEMS (Threads): Document problem with many threads
5129
a0a44d18
AC
51302004-07-26 Andrew Cagney <cagney@gnu.org>
5131
5132 * gdb-mi.el: Move from here ...
5133 * mi/gdb-mi.el: ... to here.
5134
7ac4ac06
AC
51352004-07-26 Andrew Cagney <cagney@gnu.org>
5136
5137 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5138 * main.c (captured_main): When in batch mode always detach.
5139
a1b461bf
AC
51402004-07-26 Andrew Cagney <cagney@gnu.org>
5141
5142 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5143 and h8300 as broken.
5144 * NEWS: END-OF-LIFE frame compatibility module.
5145 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5146 specific comments.
5147
cb1a6d5f
AC
51482004-07-26 Andrew Cagney <cagney@gnu.org>
5149
5150 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5151 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5152 * wince.c (_initialize_wince): Update.
5153 * win32-nat.c (_initialize_win32_nat): Update.
5154 * varobj.c (_initialize_varobj): Update.
5155 * valops.c (_initialize_valops): Update.
5156 * utils.c (initialize_utils, initialize_utils): Update.
5157 * tui/tui-win.c (_initialize_tui_win): Update.
5158 * top.c (init_main): Update.
5159 * symfile.c (_initialize_symfile): Update.
5160 * source.c (_initialize_source): Update.
5161 * somsolib.c (_initialize_som_solib): Update.
5162 * solib.c (_initialize_solib): Update.
5163 * solib-frv.c (_initialize_frv_solib): Update.
5164 * serial.c (_initialize_serial): Update.
5165 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5166 * remote.c (_initialize_remote, _initialize_remote): Update.
5167 * remote-vx.c (_initialize_vx): Update.
5168 * remote-utils.c (_initialize_sr_support): Update.
5169 * remote-sds.c (_initialize_remote_sds): Update.
5170 * remote-mips.c (_initialize_remote_mips): Update.
5171 * remote-e7000.c (_initialize_remote_e7000): Update.
5172 * proc-api.c (_initialize_proc_api): Update.
5173 * printcmd.c: Update.
5174 * parse.c (_initialize_parse): Update.
5175 * pa64solib.c (_initialize_pa64_solib): Update.
5176 * p-valprint.c (_initialize_pascal_valprint): Update.
5177 * monitor.c (_initialize_remote_monitors): Update.
5178 * mips-tdep.c (_initialize_mips_tdep): Update.
5179 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5180 * maint.c (_initialize_maint_cmds): Update.
5181 * lin-lwp.c (_initialize_lin_lwp): Update.
5182 * language.c (_initialize_language): Update.
5183 * kod.c (_initialize_kod): Update.
5184 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5185 * i386-tdep.c (_initialize_i386_tdep): Update.
5186 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5187 * gdbarch.sh: Update.
5188 * gdbarch.c: Re-generate.
5189 * gdb-events.sh: Update.
5190 * gdb-events.c: Re-generate.
5191 * frame.c (_initialize_frame): Update.
5192 * exec.c: Update.
5193 * demangle.c (_initialize_demangler): Update.
5194 * dcache.c (_initialize_dcache): Update.
5195 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5196 * cp-valprint.c (_initialize_cp_valprint): Update.
5197 * corefile.c (_initialize_core): Update.
5198 * command.h: Update.
5199 * cli/cli-decode.h: Update.
5200 * cli/cli-cmds.c (init_cli_cmds): Update.
5201 * charset.c (_initialize_charset): Update.
5202 * breakpoint.c (_initialize_breakpoint): Update.
5203 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5204 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5205 * aix-thread.c (_initialize_aix_thread): Update.
5206
b4632131
MK
52072004-07-24 Mark Kettenis <kettenis@gnu.org>
5208
5209 Partial fix for PR backtrace/1718.
5210 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5211 that GCC migrates into the prolugue. Don't handle any
5212 instructions that clobber %ebx.
5213
822c9732
AC
52142004-07-23 Andrew Cagney <cagney@gnu.org>
5215
5216 Use regcache_raw_collect instead of regcache_collect.
5217 * regcache.h (regcache_collect): Delete declaration.
5218 * regcache.c (regcache_colect): Delete function.
5219 * win32-nat.c (do_child_store_inferior_registers): Update.
5220 * sol-thread.c (sol_thread_store_registers): Update.
5221 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5222 * rs6000-nat.c (store_register): Update.
5223 * remote.c (store_register_using_P, remote_store_registers): Update.
5224 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5225 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5226 (fill_vrregset, store_spe_registers, fill_gregset)
5227 (fill_gregset): Update.
5228 * nto-procfs.c (procfs_store_registers): Update.
5229 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5230 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5231 * m68klinux-nat.c (store_register, fill_gregset): Update.
5232 * m68k-tdep.c (fill_gregset): Update.
5233 * infptrace.c (store_register): Update.
5234 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5235 * i386-linux-nat.c (store_register, fill_gregset): Update.
5236 * hppa-linux-nat.c (fill_gregset): Update.
5237 * go32-nat.c (store_register): Update.
5238 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5239 (store_fp_regs): Update.
5240 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5241 (store_nwfpe_extended, store_fpregister, store_fpregs)
5242 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5243 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5244 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5245 (store_regs_user_thread, store_regs_kernel_thread): Update.
5246
32b05c07
MK
52472004-07-24 Mark Kettenis <kettenis@gnu.org>
5248
5249 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5250 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5251 encoding.
5252 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5253 member of `struct comp_unit'.
5254
8567c30f
AC
52552004-07-23 Andrew Cagney <cagney@gnu.org>
5256
5257 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5258 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5259
f6da8dd8
MH
52602004-07-23 Martin Hunt <hunt@redhat.com>
5261 Kevin Buettner <kevinb@redhat.com>
5262
5263 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5264 alignment was being added to the offset instead of multiplied.
5265
bd921882
MK
52662004-07-23 Mark Kettenis <kettenis@gnu.org>
5267
24f033e8
MK
5268 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5269 changed signal trampoline in OpenBSD 3.5-current.
5270
90f3cecd
MK
5271 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5272 <machine/pcb.h> and "bsd-kvm.h".
5273 (sparc64nbsd_supply_pcb): New function.
5274 (_initialize_sparc64nbsd_nat): Renamed from
5275 _initialize_sparcnbsd_nat. Enable libkvm interface.
5276 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5277 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5278 (LOADLIBES): New variable.
5279
a4954a62
MK
5280 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5281
bd921882
MK
5282 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5283
23a6d369
AC
52842004-07-21 Andrew Cagney <cagney@gnu.org>
5285
5286 Use regcache_raw_supply instead of supply_register.
5287 * regcache.h (supply_register): Delete declaration.
5288 * regcache.c (supply_register): Delete function.
5289 * wince.c (do_child_fetch_inferior_registers): Update.
5290 * win32-nat.c (do_child_fetch_inferior_registers)
5291 (fetch_elf_core_registers): Update.
5292 * v850ice.c (v850ice_fetch_registers): Update.
5293 * thread-db.c (thread_db_store_registers): Update.
5294 * sol-thread.c (sol_thread_store_registers): Update.
5295 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5296 * rs6000-nat.c (fetch_register): Update.
5297 * rom68k-rom.c (rom68k_supply_one_register): Update.
5298 * remote.c (remote_wait, remote_async_wait): Update.
5299 * remote-st.c (get_hex_regs): Update.
5300 * remote-sim.c (gdbsim_fetch_register): Update.
5301 * remote-sds.c (sds_fetch_registers): Update.
5302 * remote-rdp.c (remote_rdp_fetch_register): Update.
5303 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5304 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5305 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5306 * remote-hms.c (init_hms_cmds): Update.
5307 * remote-est.c (init_est_cmds): Update.
5308 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5309 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5310 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5311 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5312 (fetch_register, supply_vrregset, supply_vrregset)
5313 (fetch_spe_registers): Update.
5314 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5315 * monitor.c (monitor_supply_register): Update.
5316 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5317 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5318 (mipsnbsd_supply_fpreg): Update.
5319 * mips-nat.c (fetch_inferior_registers)
5320 (fetch_core_registers): Update.
5321 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5322 (supply_fpregset, mips64_supply_gregset)
5323 (mips64_supply_fpregset): Update.
5324 * m68klinux-nat.c (fetch_register, supply_gregset)
5325 (supply_fpregset): Update.
5326 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5327 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5328 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5329 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5330 * infptrace.c (fetch_register): Update.
5331 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5332 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5333 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5334 (gnu_fetch_registers, gnu_store_registers): Update.
5335 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5336 * i386-linux-nat.c (fetch_register, supply_gregset)
5337 (dummy_sse_values): Update.
5338 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5339 * hppah-nat.c (fetch_register): Update.
5340 * hppa-linux-nat.c (fetch_register, supply_gregset)
5341 (supply_fpregset): Update.
5342 * go32-nat.c (fetch_register): Update.
5343 * dve3900-rom.c (fetch_bitmapped_register)
5344 (_initialize_r3900_rom): Update.
5345 * cris-tdep.c (supply_gregset): Update.
5346 * abug-rom.c (init_abug_cmds): Update.
5347 * core-aout.c (fetch_core_registers): Update.
5348 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5349 (fetch_register, fetch_fp_register): Update.
5350 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5351 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5352 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5353 * alphanbsd-tdep.c (fetch_core_registers): Update.
5354 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5355 * alpha-nat.c (fetch_osf_core_registers)
5356 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5357 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5358 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5359
73cc75f3
AC
53602004-07-21 Andrew Cagney <cagney@gnu.org>
5361
5362 * PROBLEMS: Mention breakpoints/1702.
5363 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5364 that is known to work.
5365
a53c66de
AC
53662004-07-21 Andrew Cagney <cagney@gnu.org>
5367
5368 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5369 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5370 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5371 (handle_inferior_event): Wrap call to deprecated
5372 IGNORE_HELPER_CALL in #ifdef.
5373 * config/mips/tm-nbsd.h: Update.
5374
708ff411
JB
53752004-07-20 Jim Blandy <jimb@redhat.com>
5376
412b3060
JB
5377 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5378 bfd_mach_ppc has no segment registers.
5379
13ac140c
JB
5380 Include PowerPC SPR numbers for special-purpose registers.
5381 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5382 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5383 new member in initializer.
5384 (S, S4, SN4, S64): New macros for defining special-purpose
5385 registers.
5386 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5387 registers_403, registers_403GC, registers_505, registers_860,
5388 registers_601, registers_602, registers_603, registers_604,
5389 registers_750, registers_e500): Use them.
5390
708ff411
JB
5391 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5392 replace references with expression used to initialize variable.
5393
1f602b35
AC
53942004-07-20 Andrew Cagney <cagney@gnu.org>
5395
5396 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5397 read_memory_nobpt.
5398 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5399 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5400 (s390_sigtramp_frame_sniffer): Update.
5401 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5402 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5403 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5404 (mips32_fetch_instruction): Update.
5405 * mcore-tdep.c (get_insn): Update.
5406 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5407 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5408 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5409 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5410 (i386_linux_rt_sigtramp_start): Update.
5411 * i386-linux-nat.c (child_resume): Update.
5412 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5413 * hppa-linux-tdep.c (insns_match_pattern): Update.
5414 * gdbcore.h: Update.
5415 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5416 * frame.c (safe_frame_unwind_memory): Update.
5417 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5418 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5419 * alpha-tdep.c (alpha_read_insn): Update.
5420
2cd8546d
AC
54212004-07-20 Andrew Cagney <cagney@gnu.org>
5422
5423 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5424 containing both bytes and mask. Add "frame_type".
5425 * tramp-frame.c (tramp_frame_start): Update.
5426 (tramp_frame_prepend_unwinder): Update.
5427 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5428 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5429 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5430 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5431
f928dd62
EZ
54322004-07-19 Eli Zaretskii <eliz@gnu.org>
5433
5434 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5435 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5436 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5437 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5438
d5c560f7
AC
54392004-07-17 Andrew Cagney <cagney@gnu.org>
5440
860660cb
AC
5441 * NEWS, PROBLEMS: Update for 6.2.
5442
8c266f54
AC
5443 * README: Update to 6.2.
5444
a552edd9
AC
5445 * utils.c (xvasprintf): Call xstrvprintf.
5446
c4a172b5
AC
5447 * parse.c: Update copyright.
5448 (null_post_parser): Eliminate ARGSUSED.
5449
da745b36
AC
5450 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5451 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5452 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5453
9cbc6ef0
AC
5454 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5455 * ppc-linux-nat.c: Use "Linux kernel".
5456 * hppa-linux-tdep.c: Use GNU/Linux.
5457 * hppa-linux-nat.c: Use GNU/Linux.
5458 * dwarfread.c: Add [sic] to use of Linux.
5459
1b89295f
AC
5460 * hppa-linux-nat.c: Do not include <string.h>.
5461 (supply_fpregset): Remove "register" attribute.
5462
d5c560f7
AC
5463 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5464
7ddd7709
MK
54652004-07-17 Mark Kettenis <kettenis@gnu.org>
5466
b1d19a62
MK
5467 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5468 * configure, config.in: Regenerated.
5469
7ddd7709
MK
5470 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5471 "bsd-kvm.h".
5472 (vaxbsd_supply_pcb): New function.
5473 (_initialize_vaxbsd_nat): New prototype and function.
5474 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5475 solib-sunos.o.
5476 (LOADLIBES): New variable.
5477 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5478 (LOADLIBES): New variable.
5479 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5480 (LOADLIBES): New variable.
5481 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5482
2c07db7a
AC
54832004-07-16 Andrew Cagney <cagney@gnu.org>
5484
5485 * defs.h (event_loop_p): Replace variable declaration with macro,
5486 always 1.
5487 * main.c (captured_main): Delete options "-async" and "-noasync".
5488 (event_loop_p): Delete variable.
5489 * NEWS: Mention that "-async" and "-noasync" were removed.
5490
717eb1cf
AC
54912004-07-16 Andrew Cagney <cagney@gnu.org>
5492
5493 * remote-m32r-sdi.c: Re-indent.
5494
c101bc14
JB
54952004-07-16 Jim Blandy <jimb@redhat.com>
5496
5109a438
JB
5497 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5498 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5499 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5500 missing MPC823 SPRs.
5501 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5502 incorrect. (This was corrected in GDB's register name tables on
5503 2004-07-14.)
5504
c101bc14
JB
5505 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5506 should be "esasrr" ("ESA Save and Restore Register").
5507
7ce450bd
AC
55082004-07-16 Andrew Cagney <cagney@gnu.org>
5509
5510 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5511 calls, no longer applicable. Update comments and rename parameter
5512 "step_frame" to "return_frame".
5513
ca73dd9d
AC
55142004-07-16 Andrew Cagney <cagney@gnu.org>
5515
5516 * frame.c (fprint_field): New function.
5517 (fprint_frame_id): Use fprint_field.
5518
31941f6d
JB
55192004-07-15 Joel Brobecker <brobecker@gnat.com>
5520
5521 * ada-lang.c (ada_language_defn): Remove commented out code.
5522
f86a7158
JB
55232004-07-15 Jim Blandy <jimb@redhat.com>
5524
5525 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5526 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5527
c24791ec
JB
55282004-07-14 Jim Blandy <jimb@redhat.com>
5529
29bb1356
JB
5530 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5531
cc98b5cc
JB
5532 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5533
8f088af7
JB
5534 * ppc-tdep.h (ppc_num_srs): New enum constant.
5535
0ea0ec5f
JB
5536 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5537 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5538 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5539 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5540 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5541 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5542 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5543 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5544 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5545 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5546 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5547 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5548 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5549 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5550 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5551 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5552 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5553 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5554 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5555 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5556 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5557 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5558 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5559 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5560 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5561 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5562 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5563 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5564 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5565 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5566 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5567 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5568 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5569 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5570 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5571 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5572 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5573 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5574 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5575 special-purpose register numbers.
5576
c24791ec
JB
5577 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5578 manual mentions 'md_twb', but many mention 'm_twb', and at that
5579 point in the register list.)
5580
d833db3b
AC
55812004-07-14 Andrew Cagney <cagney@gnu.org>
5582
5583 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5584 instead of "internal-error".
5585
080228b2
JB
55862004-07-10 Joel Brobecker <brobecker@gnat.com>
5587
5588 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5589 that was inserted inside a comment.
5590
c268433a
RC
55912004-07-10 Randolph Chung <tausq@debian.org>
5592
5593 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5594 function.
5595 (hppa_hpux_push_dummy_code): New function.
5596 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5597 Set find_global_pointer method.
5598
71009278
MK
55992004-07-10 Mark Kettenis <kettenis@gnu.org>
5600
5601 * NEWS: Mention BSD libkvm interface.
5602
b2fa5097
MS
56032004-07-10 Michael Snyder <msnyder@redhat.com>
5604
5605 * symfile.c (generic_load): Comment typo.
5606 * stack.c (get_selected_block): Ditto.
5607 * regcache.c (regcache_cooked_read): Ditto.
5608 * monitor.c (monitor_debug): Ditto.
5609 * mips-tdep.c (mips_read_pc): Ditto.
5610 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5611 * gdb_mbuild.sh: Ditto.
5612 * gdbarch.sh: Ditto.
5613 * gdbarch.h: Ditto.
5614
c3e5cd34
PH
56152004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5616
8a2225b2
PH
5617 * ada-tasks.c: Remove file.
5618
c3e5cd34
PH
5619 Remove ARI problems:
5620
5621 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5622 beginning of line.
5623
5624 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5625 Add comment.
5626 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5627 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5628 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5629 (UMIN_OF_SIZE): Remove.
5630 (max_of_type): New function to replace orphan macro in gdbtypes.h
5631 (min_of_type): Ditto.
5632 (discrete_type_high_bound): Use max_of_type.
5633 (discrete_type_low_bound): Use min_of_type.
5634 (possible_user_operator_p): Move operator to beginning of line.
5635 (ada_is_variant_part): Ditto.
5636 (ensure_lval): Rewrite to avoid deprecated operations.
5637 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5638 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5639 (ada_enum_name): Remove assignments in 'if' statements.
5640 (build_ada_types): Add gdbarch parameter.
5641 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5642 with gdbarch_data_register_post_init.
5643 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5644 add_show_from_set.
5645
5646 * ada-valprint.c (inspect_it): Remove declaration.
5647 (repeat_count_threshold): Remove declaration.
5648 (ada_print_floating): Remove assignments in 'if' statements.
5649 (print_str): Move operator to beginning of line.
5650
61ce229a
JB
56512004-07-08 Jim Blandy <jimb@redhat.com>
5652
5653 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5654
09bcec80
BR
56552004-07-08 Bob Rossi <bob@brasko.net>
5656
5657 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5658
31c27f77
JJ
56592004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5660
5661 * language.h (struct_language_defn): Add new function pointer:
5662 la_class_name_from_physname. Also add new prototype for
5663 language_class_name_from_physname.
5664 * language.c (language_class_name_from_physname): New function.
5665 (unk_lang_class_name): Ditto.
5666 (unknown_language_defn, auto_language_defn): Change
5667 to add unk_lang_class_name function pointer for
5668 la_class_name_from_physname.
5669 (local_language_defn): Ditto.
5670 * dwarf2read.c (guess_structure_name): Change to call
5671 language_class_name_from_physname.
5672 (determine_class_name): Ditto.
5673 * cp-support.c (class_name_from_physname): Renamed.
5674 (cp_class_name_from_physname): New name of function.
5675 * cp-support.h: Ditto.
5676 * c-lang.c (c_language_defn): Change to add NULL
5677 for class_name_from_physname function pointer.
5678 (cplus_language_defn): Change to add cp_class_name_from_physname.
5679 * jv-lang.c (java_class_name_physname): New function.
5680 (java_find_last_component): New static routine.
5681 (java_language_defn): Add java_class_name_from_physname pointer.
5682 * ada-lang.c (ada_language_defn): Change to add NULL
5683 for class_name_from_physname function pointer.
5684 * f-lang.c (f_language_defn): Ditto.
5685 * m2-lang.c (m2_language_defn): Ditto.
5686 * objc-lang.c (objc_language_defn): Ditto.
5687 * p-lang.c (pascal_language_defn): Ditto.
5688 * scm-lang.c (scm_language_defn): Ditto.
5689
ee28ca0f
AC
56902004-07-06 Andrew Cagney <cagney@gnu.org>
5691
5692 Patch from Bart Robinson.
5693 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5694 (O_LARGEFILE): Define to 0, if not defined.
5695
fdb1bf9d
MK
56962004-07-03 Mark Kettenis <kettenis@gnu.org>
5697
cb162ff6
MK
5698 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5699 <machine/pcb.h> and "bsd-kvm.h".
5700 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5701 (m68kbsd_supply_pcb): New function.
5702 (_initialize_m68kbsd_nat): New prototype and function.
5703 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5704 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5705 (LOADLIBES): New variable.
5706 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5707 (LOADLIBES): New variable.
5708
fdb1bf9d
MK
5709 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5710
963c4174
MK
57112004-07-03 Mark Kettenis <kettenis@gnu.org>
5712
5713 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5714 <sys/proc.h>.
5715 (bsd_kvm_cmdlist): New variable.
5716 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5717 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5718 command and "kvm proc" command.
5719 * Makefile.in (bsd-kvm.o): Update dependencies.
5720
533f1d8f
MK
57212004-07-02 Mark Kettenis <kettenis@gnu.org>
5722
5723 * osabi.c: Update copyright year.
5724 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5725 notes if EI_OSABI is set to ELFOSABI_HPUX.
5726
6780dcde
MS
57272004-07-01 Michael Snyder <msnyder@redhat.com>
5728
5729 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5730 that seems to have gotten whacked out of line.
5731
67bebe79
MK
57322004-07-01 Mark Kettenis <kettenis@gnu.org>
5733
5734 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5735 code.
5736
0b5d8877
PH
57372004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5738
5739 * ada-lang.c (decode_packed_array): Minor change to comment.
5740 (ada_value_slice_ptr): New function.
5741 (ada_value_slice): New function.
5742 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5743 test. Don't know why it is there.
5744 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5745 to avoid dereferencing huge arrays from which one is slicing.
5746 (empty_array): Correct to return an array rather than
5747 a subrange value.
5748 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5749 on empty arrays (let'em use 'FIRST instead).
5750
19c1ef65
PH
57512004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5752
5753 Address complaints from gdb_ari.sh:
5754
5755 * ada-exp.y: Include gdb_string.h rather than string.h.
5756 (convert_char_literal): Reformat declaration.
5757 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5758 * ada-lex.l: Change use of free to xfree (the macro would do so
5759 anyway, but this is harmless).
5760 Include gdb_string.h rather than string.h.
5761 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5762
5763 * ada-lang.c (parse): Remove K&Rism in parameter list.
5764 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5765
d81cbc94
MK
57662004-06-30 Mark Kettenis <kettenis@gnu.org>
5767
5768 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5769 dead code.
5770
07681759
MK
57712004-06-30 Mark Kettenis <kettenis@gnu.org>
5772
5773 * alphabsd-nat.c: Update copyright year.
5774 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5775
f7948b5f
JB
57762004-06-29 Joel Brobecker <brobecker@gnat.com>
5777
6e0cdd28 5778 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5779 (i386_cygwin_in_solib_call_trampoline): New function.
5780 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5781 and skip_trampoline_code gdbarch methods.
5782
8f113c9a
JB
57832004-06-29 Jim Blandy <jimb@redhat.com>
5784
5785 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5786 name actually used in the dependency lists.
5787
97dc871c
RC
57882004-06-29 Randolph Chung <tausq@debian.org>
5789
5790 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5791
47216e51
CV
57922004-06-29 Corinna Vinschen <vinschen@redhat.com>
5793
5794 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5795 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5796 functionality.
5797
e623b504
AC
57982004-06-28 Andrew Cagney <cagney@gnu.org>
5799
5800 * defs.h (xstrvprintf): Declare.
5801 * utils.c (xstrvprintf): New function.
5802 (internal_vproblem, xstrprintf, xasprintf)
5803 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5804 * serial.c (serial_printf): Ditto.
5805 * complaints.c (vcomplaint): Ditto.
5806
79acc9b3
CV
58072004-06-29 Corinna Vinschen <vinschen@redhat.com>
5808
5809 * infcmd.c (attach_command): Move call to target_terminal_inferior
5810 behind loading symbol table.
5811
1daf35d9
AC
58122004-06-28 Andrew Cagney <cagney@gnu.org>
5813
5814 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5815 change - add back extern deprecated_ui_loop_hook declaration.
5816
b435e160
AC
58172004-06-28 Andrew Cagney <cagney@gnu.org>
5818
5819 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5820 xstrprintf.
5821 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5822 (c_value_of_variable): Ditto.
5823 * utils.c (internal_vproblem): Ditto.
5824 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5825 * remote.c (add_packet_config_cmd): Ditto.
5826 * remote-rdp.c (rdp_set_command_line): Ditto.
5827 * regcache.c (regcache_dump): Ditto.
5828 * frv-tdep.c (new_variant, new_variant): Ditto.
5829 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5830 (fbsd_find_memory_regions): Ditto.
5831 * breakpoint.c (create_thread_event_breakpoint)
5832 (create_breakpoints): Ditto.
5833 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5834 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5835
06d5cf63
JB
58362004-06-28 Joel Brobecker <brobecker@gnat.com>
5837
5838 * ada-lang.c: Re-indent file, with some massaging to help indent
5839 a bit when the result is otherwise really too ugly.
5840
35809fad
UW
58412004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5842
5843 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5844 code_addr_p and special_addr_p to 'unsigned int'.
5845
40e20472
MK
58462004-06-27 Mark Kettenis <kettenis@gnu.org>
5847
5848 * i386v4-nat.c: Update copyright year and tweak comment.
5849 (regmap): Remove trailing comma.
5850 (supply_gregset): Rename local variable i to regnum. Call
5851 regcache_raw_supply instead of supply_register.
5852 (fill_gregset): Rename argument regno to regnum. Call
5853 regcache_raw_collect instead of regcache_collect.
5854
12b0b6de
UW
58552004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5856
5857 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5858 and special_addr_p.
5859 (frame_id_build, frame_id_build_special): Update comments.
5860 (frame_id_build_wild): New prototype.
5861 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5862 struct frame_id fields.
5863 (frame_id_build_wild): New function.
5864 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5865
47b42a3e
MK
58662004-06-27 Mark Kettenis <kettenis@gnu.org>
5867
5868 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5869 hppabsd-tdep.c.
5870
1265e4aa
JB
58712004-06-27 Joel Brobecker <brobecker@gnat.com>
5872
5873 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5874
76a01679
JB
58752004-06-27 Joel Brobecker <brobecker@gnat.com>
5876
5877 * ada-lang.c: Re-indent file.
5878
7aca490a
JB
58792004-06-27 Joel Brobecker <brobecker@gnat.com>
5880
5881 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5882 (no_symtab_msg): Likewise.
5883
5e987968
AS
58842004-06-27 Andreas Schwab <schwab@suse.de>
5885
5886 * source.c: Fix whitespace.
5887
315c4276
MK
58882004-06-27 Mark Kettenis <kettenis@gnu.org>
5889
d15be926
MK
5890 * configure.in: Include <sys/param.h> for td_pcb test.
5891 * configure: Regenerated.
5892
9062529b
MK
5893 * i386nbsd-nat.c: New file.
5894 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5895 i386obsd-nat.c and i386obsd-tdep.c.
5896 (i386nbsd-nat.o): New dependency.
5897 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5898 bsd-kvm.o.
5899 (LOADLIBES): New variable.
5900 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5901 bsd-kvm.o.
5902 (LOADLIBES): New variable.
5903
8010310e
MK
5904 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5905 (LOADLIBES): New variable.
5906
efe1d7b9
MK
5907 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5908 fetching from BSD_KVM_PADDR. Correctly lookup address for
5909 "_thread0".
5910
315c4276
MK
5911 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5912 "bsd-kvm.h".
5913 (amd64fbsd_supply_pcb): New funcion.
5914 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5915
399cfac6
DL
59162004-06-27 <david@streamline-computing.com>
5917
5918 Partial fix for PR cli/1056.
5919 * valarith.c: Check for zero in division and remainder
5920 evaluation.
5921
6235f9c8
MK
59222004-06-27 Mark Kettenis <kettenis@gnu.org>
5923
5924 * i387-tdep.c: Remove excessive whitespace.
5925
2726dafc
AC
59262004-06-26 Andrew Cagney <cagney@gnu.org>
5927
5928 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5929 * gdb-events.h, gdb-events.c: Re-generate.
5930 * tui/tui-hooks.c (tui_install_hooks): Update.
5931 (tui_remove_hooks): Update.
5932 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5933
0e56aeaf
MK
59342004-06-26 Mark Kettenis <kettenis@gnu.org>
5935
cb461069
MK
5936 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5937 (gregset_t, fpregset_t): Remove typedefs.
5938 (REG_OFFSET): Rename argument.
5939 (amd64bsd_r_reg_offset): Rename from reg_offset.
5940 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5941 Remove functions.
5942 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5943 of reg_offset.
5944 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5945
ecba89de
MK
5946 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5947
4cd80476
MK
5948 * vax-tdep.c: Tweak comment.
5949
0e56aeaf
MK
5950 Add OpenBSD/hppa support.
5951 * NEWS (New native configurations): Mention OpenBSD/hppa.
5952 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5953 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5954 files.
5955 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5956 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5957 * configure.host: Add hppa*-*-openbsd*.
5958 * configure.tgt: Add hppa*-*-openbsd*.
5959
98bbd631
AC
59602004-06-25 Andrew Cagney <cagney@gnu.org>
5961
5962 * defs.h (deprecated_ui_loop_hook): Deprecated.
5963 * wince.c (child_wait): Update.
5964 * win32-nat.c (child_wait): Update.
5965 * v850ice.c (v850ice_wait): Update.
5966 * top.c (deprecated_ui_loop_hook): Update.
5967 * serial.h: Update.
5968 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5969 (do_unix_readchar): Update.
5970 * ser-tcp.c (net_open): Update.
5971 * remote-sim.c (gdb_os_poll_quit): Update.
5972 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5973
769d7dc4
AC
59742004-06-24 Andrew Cagney <cagney@gnu.org>
5975
5976 * defs.h (deprecated_pre_add_symbol_hook)
5977 (deprecated_post_add_symbol_hook): Deprecated.
5978 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5979 (symbol_file_add_with_addrs_or_offsets): Update references.
5980
11c949aa
AC
59812004-06-24 Andrew Cagney <cagney@gnu.org>
5982
5983 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5984 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5985 * wince.c (ui_loop_hook): Delete extern declaration.
5986 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5987 * v850ice.c (ui_loop_hook): Delete extern declaration..
5988 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5989 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5990 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5991 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5992 ui_loop_hook declaration.
5993
eedc19af
AC
59942004-06-24 Andrew Cagney <cagney@gnu.org>
5995
5996 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5997 entry_func_highpc fields.
5998 * objfiles.c (init_entry_point_info): Do not clear
5999 entry_func_lowpc and entry_func_highpc.
6000 (objfile_relocate): Do not relocate entry_func_lowpc and
6001 entry_func_highpc.
6002 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6003 entry_func_highpc.
6004 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6005 entry_func_highpc.
6006 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6007 entry_func_lowpc and entry_func_highpc with call to
6008 inside_entry_func.
6009
d47079be
MK
60102004-06-24 Mark Kettenis <kettenis@gnu.org>
6011
6012 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6013 quad-precision floating point arguments in registers.
6014
2107e348
MK
60152004-06-24 Mark Kettenis <kettenis@gnu.org>
6016
6017 From Michael Mueller <m.mueller99@kay-mueller.de>:
6018 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6019 account.
6020
46587c42
JJ
60212004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6022
6023 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6024 to -1.
6025 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6026 untriggered watchpoints to a separate if clause. Update function
6027 comment regarding STOPPED_BY_WATCHPOINT argument.
6028
226f5cf4
JB
60292004-06-22 Jim Blandy <jimb@redhat.com>
6030
6031 * gdbarch.sh: Doc fix.
6032
f10683bb
MH
60332004-06-21 Martin Hunt <hunt@redhat.com>
6034 Kevin Buettner <kevinb@redhat.com>
6035
6036 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6037 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6038 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6039 to set_gdbarch_sp_regnum(). Use cooked register number.
6040 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6041
412d5987
AC
60422004-06-21 Andrew Cagney <cagney@gnu.org>
6043
6044 * gdbarch.sh: When the macro field is empty, do not generate a
6045 macro definition. When the macro field is "=", generate the macro
6046 name from the upper-case function name.
6047 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6048 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6049 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6050 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6051 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6052 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6053 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6054 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6055 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6056 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6057 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6058 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6059 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6060 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6061 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6062 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6063 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6064 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6065 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6066 (DEPRECATED_USE_STRUCT_CONVENTION)
6067 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6068 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6069 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6070 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6071 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6072 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6073 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6074 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6075 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6076 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6077 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6078 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6079 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6080 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6081 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6082 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6083 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6084 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6085
68908a3e
AC
60862004-06-21 Andrew Cagney <cagney@gnu.org>
6087
48f7351b
AC
6088 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6089 macro name, and the function rather than macro value. Only wrap
6090 macro print statements in #ifdef. Move format logic to where it
6091 is needed.
6092 * gdbarch.c: Re-generate.
6093
283354d8
AC
6094 * gdbarch.sh (read): Delete "print_p" and "description", add
6095 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6096 Delete references to print_p.
6097 (TARGET_ARCHITECTURE): Delete print predicate.
6098 * gdbarch.c: Re-generate.
6099
68908a3e
AC
6100 * gdbarch.sh: Check that multi-arch methods do not provide a
6101 macro.
6102 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6103 (print_registers_info, print_float_info, print_vector_info)
6104 (adjust_breakpoint_address, remote_translate_xfer_address)
6105 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6106 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6107 name from the multi-arch definition.
6108
a2428dbe
AC
61092004-06-20 Andrew Cagney <cagney@gnu.org>
6110
6111 * gdbarch.sh: Sort by the function, instead of macro name.
6112 * gdbarch.c: Re-generate.
6113
750eb019
AC
61142004-06-20 Andrew Cagney <cagney@gnu.org>
6115
66d659b1
AC
6116 * gdbarch.sh: Use the function, instead of macro name in
6117 errors and the log file.
6118 (return_value): Remove stray ":" in spec.
6119
750eb019
AC
6120 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6121 * gdbarch.h, gdbarch.c: Re-generate.
6122 * Makefile.in (arch-utils.o): Update dependencies.
6123 * values.c (using_struct_return): Move code calling
6124 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6125 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6126 to legacy_return_value, simplify.
6127 * infcmd.c (print_return_value): Move code calling
6128 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6129 to legacy_return_value, simplify.
6130 * infcall.c (call_function_by_hand): Move code calling
6131 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6132 * arch-utils.c: Update copyright. Include "gdbcore.h".
6133 (legacy_return_value): New function.
6134 * arch-utils.h: Update copyright.
6135 (legacy_return_value): Declare.
6136
b5622e8d
AC
61372004-06-20 Andrew Cagney <cagney@gnu.org>
6138
6139 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6140 * gdbarch.h, gdbarch.c: Re-generate.
6141 * values.c (using_struct_return): Update call.
6142 * mcore-tdep.c: Update comment.
6143 * infcall.c (call_function_by_hand): Update comment.
6144 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6145 * arch-utils.h (always_use_struct_convention): Update.
6146 * v850-tdep.c (v850_gdbarch_init): Update.
6147 * sh64-tdep.c (sh64_gdbarch_init): Update.
6148 * sh-tdep.c (sh_gdbarch_init): Update.
6149 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6150 * mips-tdep.c (mips_gdbarch_init): Update.
6151 * mcore-tdep.c (mcore_gdbarch_init): Update.
6152 * m32r-tdep.c (m32r_gdbarch_init): Update.
6153 * ia64-tdep.c (ia64_gdbarch_init): Update.
6154 * h8300-tdep.c (h8300_gdbarch_init): Update.
6155 * frv-tdep.c (frv_gdbarch_init): Update.
6156 * cris-tdep.c (cris_gdbarch_init): Update.
6157 * arm-tdep.c (arm_gdbarch_init): Update.
6158 * alpha-tdep.c (alpha_gdbarch_init): Update.
6159
5191de37
MC
61602004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6161
6162 * PROBLEMS: Add more specific information, and a work-around,
6163 for PR gdb/1458.
6164
782263ab
AC
61652004-06-18 Andrew Cagney <cagney@gnu.org>
6166
6167 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6168 * gdbarch.h, gdbarch.c: Re-generate.
6169 * ada-lang.c (ada_finish_decode_line_1): Update.
6170 * infrun.c (handle_inferior_event): Update.
6171 * infcall.c (find_function_addr): Update.
6172 * linespec.c (minsym_found): Update.
6173 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6174 Update.
6175 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6176 * cli/cli-cmds.c (disassemble_command): Update.
6177 * vax-tdep.c (vax_gdbarch_init): Update.
6178
2f305df1
MK
61792004-06-18 Mark Kettenis <kettenis@gnu.org>
6180
6181 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6182
e5fe55f7
AC
61832004-06-17 Andrew Cagney <cagney@gnu.org>
6184
6185 GDB 6.1.1 released from the GDB 6.1 branch.
6186 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6187 * PROBLEMS: Ditto.
6188
473b7be6
DJ
61892004-06-16 Daniel Jacobowitz <dan@debian.org>
6190
6191 PR gdb/1658
6192 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6193 operation as a uleb128. Found by Michael Coulter.
6194
96d887e8
PH
61952004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6196
6197 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6198 make it non-static.
6199 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6200 to ada-lang.h; this is needed to be able to implement the kill command
6201 in multi-task mode.
6202 (task_ptid): Ditto.
6203 (task_entry): Ditto.
6204 (task_list): Ditto.
6205 (ada_build_task_list): Ditto.
6206
6207 * ada-lang.c: Conditionalize routines and data structures related
6208 to breakpoints, exceptions, completion, and symbol caching on
6209 GNAT_GDB, since these are not yet used in the submitted public sources.
6210 (ada_main_name): Editorial: Move definition out of exception-related
6211 code.
6212
31eef181
AC
62132004-06-15 Andrew Cagney <cagney@gnu.org>
6214
6215 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6216 deprecated_pc_in_call_dummy.
6217
2c500098
AM
62182004-06-15 Alan Modra <amodra@bigpond.net.au>
6219
6220 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6221 bfd_get_section_size_before_reloc or _raw_size.
6222 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6223 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6224 (dwarf2_read_section): Likewise.
6225 * elfread.c (elf_locate_sections): Likewise.
6226 * gcore.c (derive_heap_segment): Likewise.
6227 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6228 * remote-e7000.c (e7000_load): Likewise.
6229 * remote-m32r-sdi.c (m32r_load): Likewise.
6230 * remote-mips.c (mips_load_srec): Likewise.
6231 (pmon_load_fast): Likewise.
6232 * remote.c (compare_sections_command): Likewise.
6233 * symfile.c (add_section_size_callback): Likewise.
6234 (load_section_callback): Likewise.
6235 (pc_in_unmapped_range): Likewise.
6236 (pc_in_mapped_range): Likewise.
6237 (sections_overlap): Likewise.
6238 (list_overlays_command): Likewise.
6239 (simple_overlay_update_1): Likewise.
6240 (simple_overlay_update): Likewise.
6241 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6242 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6243
90f943f1
RC
62442004-06-14 Randolph Chung <tausq@debian.org>
6245
6246 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6247 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6248 static.
6249 (hppa_hpux_inferior_created): New function.
6250 (hppa_hpux_init_abi): Register observer.
6251 * symfile.c (hp_cxx_exception_support_initialized)
6252 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6253 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6254
700c15aa
RC
62552004-06-14 Randolph Chung <tausq@debian.org>
6256
3973a7d3
AC
6257 * MAINTAINERS (Write After Approval): Alphabetize my entry
6258 correctly.
700c15aa 6259
cea4838c
AC
62602004-06-14 Andrew Cagney <cagney@gnu.org>
6261
6262 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6263 testsuite maintainer.
6264
97092415
AC
62652004-06-13 Andrew Cagney <cagney@gnu.org>
6266
e8c3165b
AC
6267 * infcmd.c (print_return_value): Fix logic, allow
6268 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6269
bceabdd8
AC
6270 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6271 defining any macros.
6272 * gdbarch.h: Re-generate.
6273
57010b1c
AC
6274 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6275 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6276 * gdbarch.h: Re-generate.
6277
bc87dfa0
AC
6278 * values.c (generic_use_struct_convention): Don't check gcc_p.
6279
15ac804d
AC
6280 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6281 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6282 * gdbarch.h, gdbarch.c: Regenerate.
6283 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6284 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6286 deprecated_max_register_raw_size and
6287 deprecated_max_register_virtual_size.
6288 * v850-tdep.c (v850_gdbarch_init): Ditto.
6289 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6290 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6291 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6292 * cris-tdep.c (cris_gdbarch_init): Ditto.
6293
97092415
AC
6294 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6295 * gdbarch.h, gdbarch.c: Re-generate.
6296 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6297 (m68hc11_use_struct_convention): Delete function.
6298 (m68hc11_extract_struct_value_address): Delete function.
6299 (m68hc11_return_value): New function.
6300 (m68hc11_gdbarch_init): Instead of store_return_value,
6301 extract_return_value, return_value_on_stack,
6302 deprecated_extract_struct_value_address and use_struct_convention,
6303 set return_value.
6304 * values.c (using_struct_return): Do not call
6305 RETURN_VALUE_ON_STACK.
6306 * arch-utils.h (generic_return_value_on_stack_not): Delete
6307 declaration.
6308 * arch-utils.c (generic_return_value_on_stack_not): Delete
6309 function.
6310
44e5158b
AC
63112004-06-12 Andrew Cagney <cagney@gnu.org>
6312
6313 * values.c (register_value_being_returned): Delete function.
6314 * infcmd.c (legacy_return_value): Delete function.
6315 * infcall.c (call_function_by_hand): Inline
6316 "register_value_being_returned", simplify.
6317 * values.c (using_struct_return): Update comment, refer to
6318 print_return_value instead of register_value_being_returned.
6319 * infcmd.c (print_return_value): Inline calls to
6320 register_value_being_returned and legacy_return_value. Simplify.
6321
b887c273
RC
63222004-06-11 Randolph Chung <tausq@debian.org>
6323
6324 * somread.c (som_symtab_read): Exclude gcc local symbols.
6325
1b2bfbb9
RC
63262004-06-11 Randolph Chung <tausq@debian.org>
6327
3973a7d3
AC
6328 * infrun.c (handle_inferior_event): Handle the case when a
6329 trampoline ends up in the runtime resolver, and if the trampoline
6330 has no name. Rearrange the code so that all the trampoline
6331 processing happens before other step-out-of-range handling.
1b2bfbb9 6332
a9d61c86
MH
63332004-06-11 Martin Hunt <hunt@redhat.com>
6334
6335 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6336 has no fpu.
6337
2c87cf5a
AC
63382004-06-10 Andrew Cagney <cagney@gnu.org>
6339
6340 * blockframe.c (legacy_inside_entry_func): Delete.
6341 (legacy_frame_chain_valid): Inline call to
6342 legacy_inside_entry_func, simplify.
6343
0b67b468 63442004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
6345
6346 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
6347 * dwarf2read.c (partial_die_info): Add dirname field.
6348 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6349 (read_partial_die): Save away DW_AT_comp_dir.
6350 * defs.h (symtab_to_filename): Removed.
6351 * source.c (find_and_open_source): Added.
57c22c6c 6352 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
6353 (symtab_to_filename): Removed.
6354 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
6355 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6356 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6357 symtab_to_filename.
6358 * symtab.h (partial_symtab): Add dirname field.
6359 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
6360 (mi_cmd_file_list_exec_source_file): Call new function
6361 symtab_to_fullname to find fullname.
57c22c6c 6362 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 6363 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
6364 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6365
9a1dd1ad
AC
63662004-06-10 Andrew Cagney <cagney@gnu.org>
6367
239ae8c7
AC
6368 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6369 to generic_use_struct_convention, the default value.
6370
fc720350
AC
6371 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6372 of abort.
6373
9a1dd1ad
AC
6374 * ns32k-tdep.c (ns32k_push_arguments): New function.
6375 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6376 * infcall.c (call_function_by_hand): Call error instead of
6377 legacy_push_arguments.
6378 * value.h (legacy_push_arguments): Delete declaration.
6379 * valops.c (legacy_push_arguments): Delete function.
6380 (value_push): Delete function.
6381
fea25152
BF
63822004-06-10 Brian Ford <ford@vss.fsi.com>
6383
6384 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6385 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6386 info.
6387 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6388
30a4a8e0
AC
63892004-06-10 Andrew Cagney <cagney@gnu.org>
6390
6391 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6392 * gdbarch.h, gdbarch.c: Re-generate.
6393 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6394 parameters.
6395 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6396 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6397 deprecated_pc_in_call_dummy instead of
6398 DEPRECATED_PC_IN_CALL_DUMMY.
6399 (arm_skip_prologue): Ditto.
6400 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6401 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6402 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6403 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6404 Ditto.
6405 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6406 (sh64_init_extra_frame_info, sh64_get_saved_register)
6407 (sh64_pop_frame): Ditto.
6408 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6409 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6410 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6411 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6412 (h8300_pop_frame): Ditto.
6413 * blockframe.c (legacy_inside_entry_func)
6414 (legacy_frame_chain_valid): Ditto.
6415 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6416 to deprecated_pc_in_call_dummy.
6417
81cfbe54
AC
64182004-06-09 Andrew Cagney <cagney@gnu.org>
6419
a1f4a1b6
AC
6420 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6421 provide a default value.
6422 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6423 * gdbarch.h, gdbarch.c: Re-generate.
6424 * arch-utils.c (generic_convert_register_p): Rename
6425 legacy_convert_register_p
6426 (legacy_register_to_value, legacy_value_to_register): Delete
6427 functions.
6428 * arch-utils.h (generic_convert_register_p): Rename
6429 legacy_convert_register_p.
6430 (legacy_register_to_value, legacy_value_to_register): Delete
6431 declarations.
6432
9730f241
AC
6433 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6434 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6435 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6436 * gdbarch.h, gdbarch.c: Re-generate.
6437 * infcmd.c (default_print_registers_info): Simplify.
6438 * findvar.c (value_of_register): Simplify.
6439 * mi/mi-main.c (get_register): Simplify.
6440 * arch-utils.c (legacy_convert_register_p): Always return 0.
6441 (legacy_register_to_value, legacy_value_to_register): Always call
6442 internal_error.
6443
8a1bf479
AC
6444 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6445 #ifdef CLEAR_INSN_CACHE code.
6446 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6447 Delete #ifdef CLEAR_DEFERRED_STORES code.
6448
4b38d6f1
AC
6449 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6450
2d62ecc7
AC
6451 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6452 copyright.
6453 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6454
be4f7469
AC
6455 * config/mips/mipsv4.mh: Delete file.
6456
81cfbe54
AC
6457 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6458 unreferenced macro.
6459 (hpread_adjust_stack_address): Delete declaration.
6460
d966f0cb
AC
64612004-06-08 Andrew Cagney <cagney@gnu.org>
6462
6463 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6464 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6465 PTRACE_ATTACH / PTRACE_DETACH available call error.
6466 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6467 * infttrace.c (update_thread_state_after_attach, attach, detach):
6468 Remove #ifdef wrappers.
6469 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6470 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6471 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6472 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6473 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6474 * config/nm-linux.h (ATTACH_DETACH): Delete.
6475 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6476 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6477 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6478 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6479 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6480
d91670b9
CV
64812004-06-08 Corinna Vinschen <vinschen@redhat.com>
6482
6483 * configure.in: Set $configdir to the right OS specific value.
6484 Use value when setting $tcldir and $tkdir.
6485 * configure: Regenerate.
6486
28ba0b33
PB
64872004-06-06 Paul Brook <paul@codesourcery.com>
6488
6489 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6490 records.
6491
f26caa11
PH
64922004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6493
6494 * ada-lang.c (lookup_symbol_in_language): New function to allow
6495 re-use of another language's symbol lookup code. (Placed here
6496 temporarily while Ada support is being integrated into the public
6497 tree).
6498 (restore_language): New auxiliary function for
6499 lookup_symbol_in_language.
6500 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6501 temporarily while Ada support is being integrated into the public
6502 tree).
6503
d560a54b
AO
65042004-06-08 Alexandre Oliva <aoliva@redhat.com>
6505
e75d110c
AO
6506 * Makefile.in (check//%): New.
6507
d560a54b
AO
6508 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6509 (mn10300_store_return_value): Rewrite.
6510 (mn10300_type_align): New.
6511 (mn10300_use_struct_convention): Rewrite.
6512 (mn10300_return_value): New, using all of the above.
6513 (mn10300_pop_frame_regular): Add saved_regs_size.
6514 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6515
a72fbdb7
AO
6516 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6517 regs if PC is on movm.
6518
01904826
JB
65192004-06-07 Jim Blandy <jimb@redhat.com>
6520
6521 Add native Linux support for the PowerPC E500.
6522 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6523 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6524 all architectures except the E500.
6525 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6526 #definitions.
6527 (struct gdb_evrregset_t): New type.
6528 (have_ptrace_getsetevrregs): New variable.
6529 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6530 fetch_spe_registers): New functions.
6531 (fetch_register): Call fetch_spe_register as appropriate.
6532 Assert that we're only passed raw register numbers.
6533 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6534 Don't fetch gprs if they're pseudoregisters.
6535 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6536 store_spe_registers): New functions.
6537 (store_register): Call store_spe_register as appropriate.
6538 Assert that we're only passed raw register numbers.
6539 (store_ppc_registers): Call store_spe_registers as appropriate.
6540 Don't store gprs if they're pseudoregisters.
6541
f90ef764
JJ
65422004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6543
6544 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6545 struct if one exists, even if we are dealing with a zombie thread.
6546
45b75230
AC
65472004-06-07 Andrew Cagney <cagney@gnu.org>
6548
6549 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6550 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6551 Rename PC_REQUIRES_RUN_BEFORE_USE.
6552 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6553 #ifdef.
6554
1658da49
RC
65552004-06-07 Randolph Chung <tausq@debian.org>
6556
6557 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6558 unwinding after sp has been saved to the stack but before the end
6559 of the prologue, and after the fp has been modified but before it has
6560 been saved to the stack.
6561 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6562 Remove superfluous definitions.
6563 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6564
9a727a3c
RC
65652004-06-07 Guy Martin <gmsoft@gentoo.org>
6566
6567 Committed by Randolph Chung.
6568 * hppa-linux-nat.c: Include the correct version of the header file
6569 depending on the kernel version.
6570
9e500012
RC
65712004-06-06 Randolph Chung <tausq@debian.org>
6572
6573 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6574 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6575
3388d7ff
RC
65762004-06-06 Randolph Chung <tausq@debian.org>
6577
6578 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6579 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6580 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6581 * hppa-tdep.c (hppa_symbol_address): New function definition.
6582 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6583
d49771ef
RC
65842004-06-06 Randolph Chung <tausq@debian.org>
6585
6586 * hppa-tdep.h (struct value): Forward declaration.
6587 (gdbarch_tdep): Define tdep find_global_pointer method.
6588 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6589 associated with the function we are trying to call, and write it
6590 to the gp register.
6591 (hppa32_convert_from_funct_ptr_addr): New function.
6592 (hppa_find_global_pointer): New function.
6593 (hppa_gdbarch_init): Set default find_global_pointer method; set
6594 convert_from_func_ptr_addr method.
6595 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6596 (hppa_linux_init_abi): Set find_global_pointer method.
6597 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6598
7d9b040b
RC
65992004-06-06 Randolph Chung <tausq@debian.org>
6600
6601 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6602 to struct value *function.
6603 * gdbarch.c: Regenerate.
6604 * gdbarch.h: Likewise.
6605 * infcall.c (call_function_by_hand): Pass entire function value
6606 to push_dummy_call.
6607
6608 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6609 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6610 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6611 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6612 * arm-tdep.c (arm_push_dummy_call): Likewise.
6613 * avr-tdep.c (avr_push_dummy_call): Likewise.
6614 * cris-tdep.c (cris_push_dummy_call): Likewise.
6615 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6616 * frv-tdep.c (frv_push_dummy_call): Likewise.
6617 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6618 * hppa-tdep.c (hppa32_push_dummy_call)
6619 (hppa64_push_dummy_call): Likewise.
6620 * i386-tdep.c (i386_push_dummy_call): Likewise.
6621 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6622 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6623 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6624 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6625 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6626 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6627 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6628 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6629 (ppc64_sysv_abi_push_dummy_call): Likewise.
6630 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6631 (ppc64_sysv_abi_push_dummy_call): Likewise.
6632 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6633 * s390-tdep.c (s390_push_dummy_call): Likewise.
6634 * sh-tdep.c (sh_push_dummy_call_fpu)
6635 (sh_push_dummy_call_nofpu): Likewise.
6636 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6637 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6638 * vax-tdep.c (vax_push_dummy_call): Likewise.
6639
4a19ea35
JB
66402004-06-04 Jim Blandy <jimb@redhat.com>
6641
8327ccee
JB
6642 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6643 gdbarch argument to register_size.
6644
a3c001ce
JB
6645 * rs6000-tdep.c (rs6000_store_return_value): Use
6646 regcache_cooked_write_part instead of
6647 deprecated_write_register_bytes.
6648 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6649 not gdbarch_deprecated_store_return_value.
6650
4a19ea35
JB
6651 * ppc-linux-nat.c (store_register, fetch_register): Remove
6652 incorrect assertions. Simplify and generalize handling of
6653 transfers whose sizes are not multiples of, or less than, sizeof
6654 (PTRACE_XFER_TYPE).
6655
b9b5d7ea
JJ
66562004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6657
6658 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6659 as a new thread event.
720c7d64 6660 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6661 zombie, return TD_THR_ZOMBIE.
720c7d64 6662 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6663 TD_THR_ZOMBIE, check if the thread is still on the thread list
6664 and return a -1 ptid if not found.
6665 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6666 change the status to TARGET_WAITKIND_SPURIOUS.
6667
c8a3b559
CV
66682004-06-03 Corinna Vinschen <vinschen@redhat.com>
6669
6670 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6671 double values in little endian mode.
6672
20605361
AC
66732004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6674
6675 Committed by Andrew Cagney.
6676 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6677 after last enum constant to avoid error from IBM C
6678 compiler.
6679
bc97b3ba
JB
66802004-06-02 Jim Blandy <jimb@redhat.com>
6681
6682 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6683 to 'message', and make it local to the lone block that uses it.
6684
1da28ab0
JB
6685 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6686
4c4b4cd2
PH
66872004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6688
8a2225b2
PH
6689 * ada-exp.y: Update copyright notice.
6690 Include block.h.
6691
6692 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6693 SPECIAL_VARIABLE and unify the treatment of these cases.
6694
6695 (write_attribute_call0): Remove.
6696 (write_attribute_call1): Remove.
6697 (write_attribute_calln): Remove.
6698 (save_qualifier): Add missing semicolon.
6699
6700 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6701 temporarily disabled to allow compilation with FSF head version.
6702
6703 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6704 use individual operators (OP_*) for all attributes.
6705 (exp syntax): Use write_int.
6706 Handle STRING literals with OP_STRING.
6707 (variable syntax): Add limit parameter to calls to
6708 write_object_renaming.
6709
6710 (temp_parse_space): New definition to hold entities that need
6711 only live until the next call to ada_parse.
6712 (string_to_operator): Rename fields of ada_opname_table entries.
6713
6714 (write_var_from_sym): Record block.
6715 (write_var_from_name): Minor reformatting.
6716 Make sure saved name is properly encoded in the case of multiple
6717 matches, and set its language to Ada.
6718 Update comment.
6719 Modify to indicate unresolved name as symbol in the UNRESOLVED
6720 namespace, allocated in temp_parse_space.
6721 (write_int): New function.
6722
6723 (write_object_renaming): Add max_depth parameter to limit
6724 chains of object renamings.
6725 Handle case where root of renaming expression is itself a renaming.
6726 Use temp_parse_space for temporary name buffer.
6727 Handle renamings to dereferenced pointers (___XEXA suffices).
6728
6729 (ada_parse, yyerror, string_to_operator,
6730 write_var_from_sym, write_var_from_name, write_attribute_call0,
6731 write_attribute_call1, write_attribute_calln,
6732 write_object_renaming): Protoize.
6733
6734 (_initialize_ada_exp): New function.
6735
6736 * ada-lang.c: Update copyright notice.
6737 General terminology change to conform to GNAT compiler usage:
6738 mangle => encode, demangle => decode
6739 Include gdb_obstack.h.
6740 Include gdb_regex.h
6741 Include frame.h
6742 Include hashtab.h
6743 Include completer.h
6744 Include gdb_stat.h
6745 Include block.h
6746 Include infcall.h
6747
6748 (ADA_RETAIN_DOTS): Make sure this is defined.
6749 (TRUNCATION_TOWARDS_ZERO): Define.
6750 (struct string_vector): Define.
6751 (unresolved_names): Remove definition.
6752 (xnew_string_vector): New function.
6753 (string_vector_append): New function.
6754 (extract_string): Make static.
6755 (ada_unqualified_name): New function.
6756 (add_angle_brackets): New function.
6757 (function_name_from_pc): New function.
6758 (place_on_stack): Rename to ensure_lval.
6759
6760 (ensure_lval): Renamed from place_on_stack.
6761 Make identity on lvals.
6762 Update comment.
6763 (is_nonfunction): New interface.
6764 Only symbols in LOC_CONST class can be enumerals.
6765 (fill_in_ada_prototype): Remove; now independent of language.
6766 (add_defn_to_vec): Add obstack and symtab arguments.
6767 Use obstack to hold collected definitions.
6768 (num_defns_collected): New function.
6769 (defns_collected): New function.
6770 (ada_resolve_subexp): Rename to resolve_subexp.
6771 (resolve_subexp): Renamed from ada_resolve_subexp.
6772 (ada_op_name): Return non-const result.
6773 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6774 other purposes.
6775
6776 (to_fixed_array_type): Add declaration.
6777 (coerce_unspec_val_to_type): Remove offset parameter.
6778 (find_sal_from_funcs_and_line): New interface.
6779 (find_line_in_linetable): Ditto.
6780
6781 (all_sals_for_line): Rename to ada_sals_for_line and make
6782 global.
6783 Add new parameter. When set, do not ask the user to choose the
6784 instance, but use the first one found instead.
6785 Use given line number in returned sals.
6786 Fix comment.
6787 Skip the prologue if funfirstline is set.
6788 Correct for memory leak when 0 lines found.
6789
6790 (value_pos_atr): Use pos_atr.
6791 (pos_atr): New function.
6792 (standard_lookup): Add block parameter.
6793
6794 (makeTimeStart): Remove declaration and uses.
6795 (makeTimeStop): Remove declaration and uses.
6796
6797 (ada_completer_word_break_characters): Allow for VMS.
6798 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6799 (raise_sym_name): New constant.
6800 (raise_unhandled_sym_name): New constant.
6801 (raise_assert_sym_name): New constant.
6802 (process_raise_exception_name): New constant.
6803 (longest_exception_template): New constant.
6804 (warning_limit): New variable to limit warnings during expression
6805 evaluation.
6806 (warnings_issued): New variable to keep track of warnings issued.
6807 (known_runtime_file_name_patterns): New constant.
6808 (known_auxiliary_function_name_patterns): New constant.
6809 (symbol_list_obstack): New variable.
6810
6811 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6812 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6813 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6814 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6815 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6816 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6817 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6818 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6819 and strcmp.
6820
6821 (ada_get_field_index): New function.
6822 (lim_warning): New function.
6823 (ada_translate_error_message): New function.
6824 (MAX_OF_SIZE): New function.
6825 (MIN_OF_SIZE): New function.
6826 (UMAX_OF_SIZE): New function.
6827 (UMIN_OF_SIZE): New function.
6828 (discrete_type_high_bound): New function.
6829 (discrete_type_low_bound): New function.
6830 (base_type): New function.
6831 (do_command): Remove.
6832
6833 (ada_update_initial_language): Use language_ada, not language_unknown.
6834 (ada_encode): Renamed from ada_mangle.
6835 Obey ADA_RETAIN_DOTS.
6836 (ada_decode): Renamed from ada_demangle.
6837 Update coding conventions.
6838 (decoded_names_store): New hash table.
6839 (ada_decode_symbol): New function.
6840 (ada_la_decode): New function.
6841
6842 (modify_general_field): Correct computations of offset and bit
6843 position.
6844 (desc_base_type): Handle ref types, too.
6845 (ada_is_direct_array_type): New function.
6846
6847 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6848 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6849 (ada_is_bogus_array_descriptor,ada_type_of_array,
6850 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6851 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6852 ada_is_array_descriptor_type.
6853
6854 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6855 (ada_is_packed_array_type): Handle pointers or
6856 references to packed arrays as well.
6857 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6858 (decode_packed_array_type): Search for the packed array type
6859 symbol in the currently selected block and associated
6860 superblocks too.
6861 Use lookup_symbol again.
6862
6863 (decode_packed_array): Handle pointers and references.
6864 Update call to coerce_unspec_val_to_type.
6865 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6866 (ada_value_primitive_packed_val): Improve comment.
6867
6868 (ada_index_type): Substitute int type for "undefined".
6869 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6870 ada_array_langth, ada_is_string_type): Use renamed
6871 ada_is_simple_array_type.
6872 (empty_array): New function.
6873
6874 (ada_resolve): Rename to resolve.
6875 (resolve): Make static.
6876 Call renamed resolve_subexp.
6877 Update comment.
6878 (ada_resolve_subexp): Rename to resolve_subexp.
6879 (resolve_subexp): Update comment.
6880 Decomment disabled code.
6881 Add LOC_COMPUTED* cases.
6882 Modify to use temporary struct symbols (marked as being in
6883 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6884 OP_UNRESOLVED_VALUE.
6885 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6886 Add OP_STRING case.
6887 Remove OP_ARRAY.
6888 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6889 Use new ada_lookup_symbol_list interface.
6890 Use new ada_resolve_function interface.
6891 Remove OP_TYPE case.
6892
6893 (ada_args_match): Idiot proof against null actuals.
6894 Use intermediate variables to clarify.
6895 (ada_resolve_function): Update comment and interface.
6896 (mangled_ordered_before): Rename to encoded_ordered_before and
6897 update comment.
6898 (sort_choices): Update comment and interface.
6899 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6900 (user_select_syms): New interface.
6901 Use new sort_choices interface.
6902 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6903 (possible_user_operator_p): Idiot-proof against null values.
6904 (ada_simple_renamed_entity): Don't make cleanup; rely on
6905 caller to free result string.
6906 Remove const from return type.
6907 (make_array_descriptor): Rename uses of place_on_stack to
6908 ensure_lval.
6909 Make sure that arrays are on stack.
6910
6911 (HASH_SIZE): Define.
6912 (struct cache_entry): Define.
6913 (cache_space): Define.
6914 (cache): Define.
6915 (clear_ada_sym_cache): New function.
6916 (find_entry): New function.
6917 (lookup_cached_symbol): New function.
6918 (defn_vector_size): Define.
6919 (cache_symbol): New function.
6920 (defn_symbols): Remove.
6921
6922 (standard_lookup): Use lookup_symbol_in_language to get effect of
6923 C lookup.
6924 Cache results.
6925
6926 (symbol_completion_match): New function.
6927 (symbol_completion_add): New function.
6928 (ada_make_symbol_completion_list): New function.
6929
6930 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6931 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6932 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6933 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6934
6935 (ada_lookup_simple_minsym): New function.
6936 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6937
6938 (add_symbols_from_enclosing_procs): New interface.
6939 Conditionalize more helpfully.
6940 Don't bother if program isn't running.
6941 Use new interface to get_frame_block.
6942 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6943
6944 (remove_extra_symbols): New interface.
6945 (xget_renaming_scope): New function.
6946 (is_package_name): New function.
6947 (renaming_is_visible): New function.
6948 (remove_out_of_scope_renamings): New function.
6949
6950 (ada_lookup_symbol_list): New interface.
6951 Properly reinitialize the symbol list obstack.
6952 Don't call add_symbols_from_enclosing_procs if we start from a
6953 static or global block.
6954 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6955 add_symbols_from_enclosing_procs.
6956 Add symtab data to cached entries.
6957 Handle symbols prefixed with
6958 "standard__" specially; strip prefix and don't look in local symbols.
6959 Do not include out of scope renaming symbols in list of
6960 symbols returned.
6961 Add const to block parameter.
6962 Move check for non-local, non-global symbols earlier.
6963 Remove timing stuff.
6964 (ada_lookup_symbol): New interface.
6965 Find symtab as well.
6966 (ada_lookup_symbol_nonlocal): New function.
6967
6968 (is_name_suffix): Enhance suffix detection to recognize
6969 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6970 (is_dot_digits_suffix): New function.
6971 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6972
6973 (ada_add_block_symbols): New interface. Use obstack to return results
6974 in a vector of struct ada_symbol_infos. Add symtab argument.
6975 Use new interface to add_defn_to_vec.
6976 Remove calls to fill_in_ada_prototype.
6977 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6978
6979 (ada_finish_decode_line_1): Add const qualification to local to fix
6980 warning.
6981 Start looking in static block for functions to avoid attempts
6982 to search frame chain for up-level variables.
6983 Adapt to new ada_sals_for_line interface.
6984 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6985 Handle quoting of the function name inside the spec string.
6986 Skip prologue when funfirstline is set and update the
6987 function documentation to that effect.
6988
6989 (debug_print_lines, debug_print_block, debug_print_blocks,
6990 debug_print_symtab): Remove.
6991
6992 (ada_main_name): New function.
6993 (ada_exception_breakpoint_type): New function.
6994 (is_known_support_routine): New function.
6995 (ada_find_printable_frame): Renamed from find_printable_frame and made
6996 global.
6997 Remove level parameter.
6998 Use new interface to select_frame.
6999
7000 (begin_command): Remove.
7001 (ada_adjust_exception_stop): New function.
7002 (ada_print_exception_stop): New function.
7003 (exception_name_from_cond): New function.
7004 (ada_report_exception_break): Replace disabled code with
7005 conditionalization on GNAT_GDB.
7006 Get the exception name from the condition string.
7007 Remove and move functionality into new functions
7008 ada_print_exception_breakpoint_task and
7009 ada_print_exception_breakpoint_nontask.
7010 (error_breakpoint_runtime_sym_not_found): New function.
7011 (is_runtime_sym_defined): New function.
7012 (ada_breakpoint_rewrite): Uncomment suppressed code.
7013 Use symbolic error-message and runtime-symbol names.
7014 Surround runtime symbol names in quotes.
7015 Allow non-specific breakpoints on exceptions and assertions before
7016 program starts.
7017
7018 (ada_is_tagged_type): Add parameter.
7019 (ada_is_tag_type): New function.
7020 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7021 (ada_variant_discrim_type): Ditto.
7022 (value_tag_from_contents_and_address): New function.
7023 (type_from_tag): New function.
7024 (struct tag_args): New structure used to communicate with
7025 ada_tag_name_1.
7026 (ada_tag_name_1): New function.
7027 (ada_tag_name): New function.
7028
7029 (ada_scan_number): Update comment.
7030 (find_struct_field): New function.
7031 (ada_search_struct_field): Make static.
7032 (ada_value_struct_elt): New version that returns references when
7033 given pointers or references to structs.
7034 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7035 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7036 interface.
7037 (ada_value_ind): Use new ada_to_fixed_value interface.
7038 (ada_coerce_ref): Ditto.
7039 (field_offset): Remove.
7040
7041 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7042 (ada_find_renaming_symbol): New function.
7043 (ada_prefer_type): Prefer named types over unnamed ones.
7044 (variant_field_index): New function.
7045 (contains_variant_part): Removed: subsumed by variant_field_index.
7046 (ada_template_to_fixed_record_type): New function, mostly from
7047 template_to_fixed_record_type.
7048 (template_to_fixed_record_type):
7049 Do not scan the type fields beyond the last one; prevents a
7050 potential SEGV.
7051 Handle case where variant field is listed BEFORE discriminant it
7052 depends on.
7053 Fix calculation of record length when bit length is
7054 not evenly divisible by char length.
7055 Move code to ada_template_to_fixed_record_type and call it.
7056
7057 (template_to_static_fixed_type): Revise comment.
7058 Modify to work on ordinary record types as well as templates,
7059 so as to handle fields that use ___XVE or ___XVU encodings.
7060 (to_record_with_fixed_variant_part): Fill out comment.
7061 Initialize C++ stuff in right type.
7062 Allow case where DVAL is null.
7063 Handle case where variant field is not last.
7064 Fix typo concerning record length.
7065 (to_fixed_record_type): Decomment disabled code.
7066 (to_fixed_record_type): Use variant_field_index instead of
7067 contains_variant_part.
7068 (to_fixed_variant_branch_type): Ditto.
7069 (to_fixed_array_type): Decomment disabled code.
7070 (ada_to_fixed_type): Convert tagged types to the specific type.
7071 Deactivate the size-check for array types in order to avoid
7072 some false size alarms.
7073 (to_static_fixed_type): Decomment disabled code.
7074 Modify to call template_to_static_fixed_type
7075 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7076 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7077 Remove valaddr argument, as it is never really used.
7078 (ada_to_fixed_value): Change interface to act on single struct value*
7079 operand.
7080 (adjust_pc_past_prologue): New function.
7081 (ada_attribute_name): Modify to take enum exp_opcode argument.
7082
7083 (ada_enum_name): Recognize new homonym-distinguishing convention.
7084 Adjust local variable's type to remove compiler warning.
7085 Fix a small problem in the part that unqualifies the enumeration name.
7086 (ada_value_binop): New function.
7087 (ada_value_equal): New function.
7088
7089 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7090 Don't give error message when not doing normal evaluation
7091 and a tagged type doesn't seem to contain a structure member.
7092 Give error message for packed arrays.
7093 For indexing arrays, handle pointers to packed arrays correctly.
7094 Handle case of 'first and 'last attributes of bare integral type
7095 without encoded subtype info.
7096 Remove some unnecessary casts.
7097 Fix uninitialized value of type in computing 'first, 'last, or 'length
7098 of array object.
7099 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7100 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7101 calls.
7102 Attributes are now exp_opcode values.
7103 Correct treatment of 'modulus.
7104 Better error message for taking 'length of wrong kind of type;
7105 improve comment.
7106 Change EVAL_NORMAL to noside for consistency.
7107 Use ada_value_binop for DIV, MOD, REM.
7108 Make special case out of array of length 0, since an argument
7109 of 0 upsets some platforms' malloc.
7110 Use OP_STRING instead of OP_ARRAY.
7111 For slice, add check that we have an array type before extracting
7112 a slice out of it. Avoids a SEGV.
7113 When evaluating an array slice, if the array type is a reference to
7114 an aligner type, then replace the aligner type by the actual type.
7115 Decomment disabled code.
7116 Remove some dead code.
7117 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7118 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7119 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7120 and UNOP_MBR to UNOP_IN_RANGE.
7121 If an array type has a parallel ___XVE type, then use it.
7122 Turn arrays into pointers for lvalue arrays.
7123 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7124 bounds error and handle 0-length slices.
7125 Use lim_warning.
7126 When selecting fields, apply ada_to_fixed_value (because the fields
7127 might have ___XVU or ___XVE encodings even if not dynamic.)
7128 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7129 (ada_is_system_address_type): New function.
7130
7131 (get_var_value): Use new interface to ada_lookup_symbol_list.
7132 (get_int_var_value): New interface.
7133 (to_fixed_range_type): Allow unknown bound, with warning.
7134 (ada_is_modular_type): Decomment disabled code.
7135 (ADA_OPERATORS): New definition.
7136 (ada_operator_length): New function.
7137 (ada_expr_op_name): New function.
7138 (ada_forward_operator_length): New function.
7139 (ada_dump_subexp_body): New function.
7140 (ada_print_subexp): New function.
7141 (ada_exp_descriptor): New constant.
7142 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7143 (ada_language_defn): Add ada_exp_descriptor entry.
7144 Change ada_parse => parse.
7145 Add post-parser entry.
7146 Use ada-specific non-local symbol lookup.
7147 Don't use C-style arrays.
7148 String lower-bound is 1.
7149 Decomment disabled code.
7150 (parse): New function.
7151 New fields ada_translate_error_message, ada_lookup_symbol,
7152 ada_lookup_minimal_symbol.
7153
7154 * ada-lang.h: Update copyright dates.
7155 Replace the mangle/demangle terminology throughout by the
7156 more appropriate encode/decode one.
7157 Include breakpoint.h.
7158 Forward declare struct partial_symbol, struct block.
7159 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7160 (EXTRACT_ADDRESS): Remove.
7161 (EXTRACT_INT): Remove.
7162 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7163 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7164 (MAX_RENAMING_CHAIN_LENGTH): Define.
7165 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7166
7167 (enum task_states): Remove.
7168 ada_task_states: Remove.
7169 (fat_string): Remove.
7170 (struct entry_call): Remove.
7171 (struct task_fields): Remove.
7172 (struct task_entry): Remove.
7173
7174 (struct ada_symbol_info): Define.
7175 (enum ada_attribute): Remove.
7176 (enum ada_operator): Define.
7177
7178 (ada_get_field_index): Declare.
7179 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7180 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7181 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7182 (ada_lookup_symbol_list): New interface.
7183 (ada_decode_symbol): Declare.
7184 (ada_decode): Declare.
7185 (ada_lookup_symbol): New interface.
7186 (ada_update_initial_language): Declare.
7187 (ada_lookup_simple_minsym): Declare.
7188 (user_select_syms): New interface.
7189 (ada_sals_for_line): Declare.
7190 (ada_is_tagged_type): New interface.
7191 (ada_tag_name): Declare.
7192 (ada_lookup_struct_elt_type): Remove declaration.
7193 (ada_search_struct_field): Remove declaration.
7194 (ada_attribute_name): New interface.
7195 (ada_is_system_address_type): Declare.
7196 (ada_to_fixed_value): Remove declaration.
7197 (ada_template_to_fixed_record_type_1): Declare.
7198 (get_int_var_value): New interface.
7199 (ada_find_any_symbol): Declare.
7200 (ada_find_renaming_symbol): Declare.
7201 (ada_mangle): Rename to ada_encode.
7202 (ada_simple_renamed_entity): Remove const.
7203 (ada_main_name): Declare.
7204 (get_current_task): Rename to ada_get_current_task.
7205 (get_entry_number): Remove declaration.
7206 (ada_report_exception_break): Remove declaration.
7207 (ada_print_exception_breakpoint_nontask): Declare.
7208 (ada_print_exception_breakpoint_task): Declare.
7209 (ada_find_printable_frame): Declare.
7210
7211 * ada-lex.l: Update copyright notices.
7212 Use xmalloc and xfree instead of malloc and free.
7213 Use new interface to name_lookup.
7214 Use new interface to
7215 ada_mangle=>ada_encode.
7216 Redo handling of '$...' variable to parallel current treatment
7217 in c-exp.y.
7218 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7219 digit_to_int, strtoulst, processInt, processReal, processId,
7220 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7221 yywrap): Protoize.
7222
7223 (processInt): Use cast to remove harmless warning.
7224 (processReal): Modify to get rid of compiler warning on scan formats.
7225
7226 (processId): Replace xmalloc with obstack_alloc for name and remove
7227 call to ada_name_string_cleanup.
7228 Remove obsolete disabled code.
7229 (name_lookup): Ditto.
7230 New interface.
7231 Use obsavestring on temp_parse_space instead of savestring
7232 on name, and remove call to ada_name_string_cleanup.
7233 Free string returned from ada_simple_renamed_entity.
7234 Use new interface to ada_lookup_symbol_list.
7235 Decomment disabled code.
7236 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7237 not types.
7238 When a type name lookup succeeds as a result of
7239 lookup_primitive_typename, check for regular type entry that has not
7240 yet been read in.
7241 Limit length of chain of renamed symbols we are willing to follow.
7242 Do not break names beginning with "standard__" into segments.
7243 (block_lookup): Use new interface to ada_lookup_symbol_list.
7244
7245 * ada-typeprint.c: Update copyright notice.
7246 (demangled_type_name): Rename to decoded_type_name.
7247 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7248 (print_range_bound): Correct handling of negative
7249 bounds that make the index type looked unsigned under STABS.
7250 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7251 (print_range_type_named): Use the builtin int type if no type
7252 corresponding to the given type name could be found.
7253 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7254 Add some bullet-proofing.
7255 (print_variant_clauses): Allow for variant branches with ___XVU
7256 encodings that are not dynamic fields.
7257 Use new interface to ada_is_tagged_type.
7258 (print_record_type): Allow for fields with ___XVE encodings that
7259 are not dynamic fields.
7260 Use new interface to ada_is_tagged_type.
7261 (ada_print_type): ada_is_array_descriptor =>
7262 ada_is_array_descriptor_type.
7263
7264 * ada-valprint.c: Update copyright notice.
7265 Include gdb_string.h
7266 Include infcall.h
7267 (ui_memcpy): New function.
7268 (ada_print_floating): New function.
7269 (ada_print_str): Order arguments correctly.
7270 Correct handling of empty arrays and arrays of 0-length items.
7271 ada_is_array_descriptor => ada_is_array_descriptor_type
7272 Print values of type System.Address in hexadecimal format.
7273 Use ada_print_floating to print floating-point numbers in Ada format.
7274 Print class tag values with type names.
7275 No longer print the address of reference values. Avoids
7276 a potential confusion.
7277 (ada_value_print): Stop printing the object type for reference
7278 values, but preserve that behavior for access types. Avoids
7279 a potential confusion.
7280 Simplify one conditional expression, as the first part is now
7281 necessarily true.
7282 ada_is_array_descriptor => ada_is_array_descriptor_type
7283 Add check for arrays for null records, and print them by hand.
4c4b4cd2 7284
f65f91b5
JB
72852004-06-01 Jim Blandy <jimb@redhat.com>
7286
7287 * ppc-tdep.h: Delete unused 'regoff' member.
7288 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7289
d4687fa0
MC
72902004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7291
7292 Fix PR symtab/1661.
7293 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7294 (hpread_read_struct_type): Likewise.
7295
de169ec9
AC
72962004-06-01 Andrew Cagney <cagney@gnu.org>
7297
c6902d46
AC
7298 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7299 instead of xasprintf.
7300 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7301 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7302 (mi_cmd_data_list_register_names)
7303 (mi_cmd_data_list_changed_registers)
7304 (mi_cmd_data_list_register_values)
7305 (get_register, mi_cmd_data_write_register_values)
7306 (mi_cmd_data_write_register_values)
7307 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7308 (mi_cmd_target_download, mi_cmd_target_select)
7309 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7310 (mi_execute_cli_command, mi_execute_async_cli_command)
7311 (mi_execute_async_cli_command): Ditto.
7312 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7313 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7314
6085fc2d
AC
7315 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7316 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7317 error_last_message instead of mi_error_last_message.
7318 * mi/mi-main.c (mi_error_last_message): Delete function.
7319
de169ec9
AC
7320 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7321 "invalid number of columns" error. Delete redundant "out of
7322 memory" check.
7323
1fc7d519
MK
73242004-05-31 Mark Kettenis <kettenis@gnu.org>
7325
6cfb2041
MK
7326 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7327 (gregset_t, fpregset_t): Remove typedefs.
7328 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7329 (REG_OFFSET): Rename argument.
7330 (i386bsd_r_reg_offset): Rename from reg_offset.
7331 (REG_ADDR): Remove macro.
7332 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7333 functions.
7334 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7335 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7336 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7337 instead of supply_gregset.
7338 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7339 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7340 instead of fill_gregset.
7341 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7342
1fc7d519
MK
7343 * i386bsd-nat.c: Don't include "gregset.h".
7344 (supply_gregset, fill_gregset): Make static.
7345 (supply_fpregset, fill_fpregset): Remove.
7346 * Makefile.in (i386bsd-nat.o): Update dependencies.
7347
2c34abbe
MK
73482004-05-30 Mark Kettenis <kettenis@gnu.org>
7349
448724fb
MK
7350 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7351 "gdb_assert.h". Con't include "gregset.h".
7352 (fbsd_make_corefile_notes): Use regset-based core file support
7353 instead off fill_gregset and fill_fpregset.
7354 * Makefile.in (fbsd-proc.o): Update dependencies.
7355
5ca8ca7c
MK
7356 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7357 instructions.
7358 (m88k_frame_prev_register): Simplify code a bit.
7359
593adc23
MK
7360 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7361 (amd64_collect_fpregset): New function.
7362 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7363
8d1b517b
MK
7364 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7365
7fdafb5a
MK
7366 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7367 (i386_collect_gregset): New function.
7368 (i386_supply_fpregset): Adjust comment.
7369 (i386_collect_fpregset): New function.
7370 (i386_regset_from_core_section): Use i386_collect_gregset and
7371 i386_collect_fpregset.
7372
8693c419
MK
7373 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7374 handle VALUEP being null.
7375
2c34abbe
MK
7376 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7377
45d134d8
MK
73782004-05-29 Mark Kettenis <kettenis@gnu.org>
7379
1698f4e7
MK
7380 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7381
45d134d8
MK
7382 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7383 assembler in OpenBSD 3.5-current.
7384 (amd64obsd_sigcontext_addr): Likewise.
7385
691d145a
JB
73862004-05-28 Jim Blandy <jimb@redhat.com>
7387
7388 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7389 register set, so our regcache isn't declared "legacy" and our E500
7390 pseudoregister read and write functions aren't ignored.
7391 (rs6000_register_byte, rs6000_register_raw_size,
7392 rs6000_register_virtual_type, rs6000_register_convertible,
7393 rs6000_register_convert_to_virtual,
7394 rs6000_register_convert_to_raw): Deleted.
7395 (rs6000_register_type, rs6000_convert_register_p,
7396 rs6000_register_to_value, rs6000_value_to_register): New
7397 functions.
7398 (rs6000_gdbarch_init): Don't register
7399 gdbarch_deprecated_register_size,
7400 gdbarch_deprecated_register_bytes,
7401 gdbarch_deprecated_register_byte,
7402 gdbarch_deprecated_register_raw_size,
7403 gdbarch_deprecated_register_virtual_type,
7404 gdbarch_deprecated_register_convertible,
7405 gdbarch_deprecated_register_convert_to_virtual, or
7406 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7407 register gdbarch_register_type, gdbarch_convert_register_p,
7408 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7409
18ed0c4e
JB
74102004-05-26 Jim Blandy <jimb@redhat.com>
7411
7412 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7413 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7414 functions, updated to match the register numberings used in GCC.
7415 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7416 rs6000_dwarf2_reg_to_regnum as register number conversions
7417 functions for STABS and Dwarf2.
7418
779af9e3
RC
74192004-05-26 Randolph Chung <tausq@debian.org>
7420
7421 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7422 in header file.
7423
c23968a2
JB
74242004-05-25 Joel Brobecker <brobecker@gnat.com>
7425
7426 * NEWS: Document new "start" command.
7427
3a7d1c27
RC
74282004-05-25 Randolph Chung <tausq@debian.org>
7429
7430 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7431 hppa-linux.
7432
43613416
RC
74332004-05-25 Randolph Chung <tausq@debian.org>
7434
7435 * hppa-hpux-tdep.c (offsetof): Define.
7436 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7437 (hppa32_hpux_frame_base_before_sigtramp)
7438 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7439 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7440 (hppa64_hpux_frame_base_before_sigtramp)
7441 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7442 functions.
7443 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7444 (hppa_hpux_sigtramp_frame_unwind_cache)
7445 (hppa_hpux_sigtramp_frame_this_id)
7446 (hppa_hpux_sigtramp_frame_prev_register)
7447 (hppa_hpux_sigtramp_frame_unwind)
7448 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7449 (hppa_hpux_init_abi): Register sigtramp unwinder.
7450 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7451
6d1be3f1
RC
74522004-05-25 Randolph Chung <tausq@debian.org>
7453
7454 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7455 and multiple stack unwinds.
7456 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7457
97c34f65
AC
74582004-05-25 Andrew Cagney <cagney@gnu.org>
7459
7460 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7461 * symfile-mem.h: Delete file.
7462 * symfile-mem.c: Do not include "symfile-mem.h".
7463 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7464 "struct bfd_section". When an error do not bother returning NULL.
7465 (add_symbol_file_from_memory_command): Use "struct bfd" and
7466 "struct bfd_section".
7467 * Makefile.in (symfile_mem_h): Delete.
7468 (symfile-mem.o): Update dependencies.
7469
e23cbd82
NR
74702004-05-25 Nick Roberts <nickrob@gnu.org>
7471
7472 * gdb-mi.el: New file.
7473
20d2ca3e
AC
74742004-05-25 Andrew Cagney <cagney@gnu.org>
7475
7476 * inftarg.c: Include "observer.h".
7477 (child_attach, child_create_inferior): Notify inferior_created.
7478 * corelow.c: Include "observer.h".
7479 (core_open): Notify inferior_created.
7480 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7481
c27cda74
AC
74822004-05-25 Andrew Cagney <cagney@gnu.org>
7483
7484 * target.h (struct target_ops): Add from_tty to
7485 to_create_inferior.
7486 (target_create_inferior, find_default_create_inferior): Update.
7487 * infcmd.c (run_command): Update.
7488 * wince.c (child_create_inferior): Update.
7489 * win32-nat.c (child_create_inferior): Update.
7490 * uw-thread.c (uw_thread_create_inferior): Update.
7491 * thread-db.c (thread_db_create_inferior): Update.
7492 * target.c (debug_to_create_inferior)
7493 (find_default_create_inferior): Update.
7494 (maybe_kill_then_create_inferior): Update.
7495 * sol-thread.c (sol_thread_create_inferior): Update.
7496 * remote.c (extended_remote_async_create_inferior)
7497 (extended_remote_create_inferior): Update.
7498 * remote-vx.c (vx_create_inferior): Update.
7499 * remote-st.c (st2000_create_inferior): Update.
7500 * remote-sim.c (gdbsim_create_inferior): Update.
7501 * remote-sds.c (sds_create_inferior): Update.
7502 * remote-rdp.c (remote_rdp_create_inferior): Update.
7503 * remote-rdi.c (arm_rdi_create_inferior): Update.
7504 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7505 * remote-e7000.c (e7000_create_inferior): Update.
7506 * procfs.c (procfs_create_inferior): Update.
7507 * ocd.c (ocd_create_inferior): Update.
7508 * ocd.h (ocd_create_inferior): Update.
7509 * nto-procfs.c (procfs_create_inferior): Update.
7510 * monitor.c (monitor_create_inferior): Update.
7511 * lin-lwp.c (lin_lwp_create_inferior): Update.
7512 * inftarg.c (child_create_inferior): Update.
7513 * hpux-thread.c (hpux_thread_create_inferior): Update.
7514 * gnu-nat.c (gnu_create_inferior): Update.
7515
1db2a798
AC
75162004-05-25 Andrew Cagney <cagney@gnu.com>
7517
7518 * MAINTAINERS: Update e-mail address.
7519
007d08bb
RC
75202004-05-24 Randolph Chung <tausq@debian.org>
7521
7522 * thread.c (info_threads_command, thread_apply_all_command)
7523 (thread_apply_command, thread_command, do_captured_thread_select):
7524 Remove HPUXHPPA-specific code.
7525
69e7b95e
RC
75262004-05-24 Randolph Chung <tausq@debian.org>
7527
7528 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7529 unused symbols.
7530 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7531 references.
7532
a4d5f2e0
JB
75332004-05-24 Joel Brobecker <brobecker@gnat.com>
7534
7535 * infcmd.c (kill_if_already_running): New function, extracted
7536 from run_command().
7537 (run_command): Replace extracted code by call to
7538 kill_if_already_running().
7539 (start_command): New function.
7540 (_initialize_infcmd): Add "start" command.
7541
bf2ca189
MK
75422004-05-24 Mark Kettenis <kettenis@gnu.org>
7543
7544 Add OpenBSD/m88k support.
7545 * NEWS (New native configurations): Mention OpenBSD/m88k.
7546 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7547 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7548 * Makefile.in (m88k_tdep_h): New variable.
7549 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7550 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7551 * configure.host: Add m88*-*-openbsd*.
7552 * configure.tgt: Add m88*-*-openbsd*.
7553
80fadb11
JB
75542004-05-24 Jim Blandy <jimb@redhat.com>
7555
7556 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7557 to approve changes.
7558
19e2d14b
KB
75592004-05-24 Kevin Buettner <kevinb@redhat.com>
7560
7561 * symtab.c (fixup_section): Search section table when lookup by
7562 name fails.
7563
1b07b470
RC
75642004-05-24 Randolph Chung <tausq@debian.org>
7565
7566 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7567 be "small_struct".
7568
368702b1
MK
75692004-05-24 Mark Kettenis <kettenis@gnu.org>
7570
5df97fde
MK
7571 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7572 register number in regcache_raw_collect call.
7573 (m68kbsd_collect_fpregset): Likewise.
7574 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7575
368702b1
MK
7576 * regset.h (struct regset): Add back `regset' member.
7577
a770d4ec
MK
75782004-05-23 Mark Kettenis <kettenis@gnu.org>
7579
70f9f479
MK
7580 * configure.in: Check for td_pcb in `struct thread'.
7581 * configure, config.in: Regenerated.
7582
2e16d79e
MK
7583 * dpx2-nat.c: Remove file.
7584 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7585 (dpx2-nat.o): Remove dependencies.
7586
492cf391
MK
7587 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7588 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7589 (amd64obsd_supply_pcb): New function.
7590 (_initialize_amd64obsd_nat): Enable libkvm interface.
7591 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7592 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7593 (LOADLIBES): New variable.
7594
a770d4ec
MK
7595 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7596 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7597 (sparc32nbsd_supply_pcb): New function.
7598 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7599 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7600 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7601 (LOADLIBES): New variable.
7602
9ea75c57
MK
76032004-05-22 Mark Kettenis <kettenis@gnu.org>
7604
2e0c3539
MK
7605 * bsd-kvm.c, bsd-kvm.h: New files.
7606 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7607 "bsd-kvm.h".
7608 (i386fbsd_supply_pcb): New function.
7609 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7610 (i386fbsd-nat.o): Update dependencies.
7611 (bsd_kvm_h): New variable.
7612 (bsd-kvm.o): New dependency.
7613 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7614 (LOADLIBES): New variable.
7615
9ea75c57
MK
7616 * regset.c: Tweak comment.
7617 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7618 macro.
7619 * regset.h: Update copyright year.
7620 (struct regset): Remove `descr' member, add `gdbarch' member.
7621 (regset_alloc): Adjust prototype and comment.
7622 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7623 (i386_supply_fpregset): Likewise.
7624 (i386_regset_from_core_section): Update call to regset_alloc.
7625 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7626 REGSET->arch.
7627 (i386obsd_aout_regset_from_core_section): Update call to
7628 regset_alloc.
7629 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7630 REGSET->arch.
7631 (i386nbsd_aout_regset_from_core_section): Update call to
7632 regset_alloc.
7633 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7634 REGSET->arch.
7635 (amd64_regset_from_core_section): Update call to regset_alloc.
7636 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7637 REGSET->arch.
7638 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7639 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7640 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7641 (sparc32nbsd_init_abi): Update call to regset_alloc.
7642 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7643 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7644 (sparc64obsd_init_abi): Update call to regset_alloc.
7645 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7646 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7647 (sparc64nbsd_init_abi): Update call to regset_alloc.
7648 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7649 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7650 (sparc64fbsd_init_abi): Update call to regset_alloc.
7651
867e2dc5
JB
76522004-05-22 Jim Blandy <jimb@redhat.com>
7653
7654 * ppc-tdep.h (spe_register_p): New declaration.
7655 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7656 ppc_spefscr_regnum.
7657 * rs6000-tdep.c (spe_register_p): New function.
7658 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7659 spefscr.
7660 (rs6000_gdbarch_init): Initialize the new members of the tdep
7661 structure.
7662
617a4cba
JB
76632004-05-21 Jim Blandy <jimb@redhat.com>
7664
0397dee1
JB
7665 * ppc-linux-nat.c (fetch_register): Move code back to be next
7666 to the comment that describes it. (Moved code, instead of
7667 comment, for symmetry with store_register.)
7668
617a4cba
JB
7669 Allocate regset structures in the gdbarch's obstack, not using
7670 xmalloc.
7671 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7672 Add 'arch' argument. Allocate the regset on arch's obstack, not
7673 using xmalloc.
7674 * regset.h (regset_alloc): Update declaration.
7675 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7676 gdbarch argument.
7677 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7678 * i386-tdep.c (i386_regset_from_core_section): Same.
7679 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7680 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7681 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7682 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7683 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7684 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7685
9aa3914d
JB
76862004-05-21 Joel Brobecker <brobecker@gnat.com>
7687
7688 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7689
99c87dab
JB
76902004-05-21 Jim Blandy <jimb@redhat.com>
7691
7692 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7693 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7694
c2b6b4aa
JB
76952004-05-20 Jim Blandy <jimb@redhat.com>
7696
7697 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7698
144529d0
MK
76992004-05-20 Mark Kettenis <kettenis@gnu.org>
7700
7701 * regset.h: Make prototype const-correct.
7702 * regset.c (regset_xmalloc): Make const-correct.
7703
4725b721
PH
77042004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7705
7706 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7707 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7708 (symbol_search_name): Declare.
7709
7710 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7711 (iter_name_next_hashed): Ditto.
7712 (iter_name_next_linear): Ditto.
7713 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7714
7715 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7716 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7717 (symbol_search_name): New function.
7718
7719 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7720
7721 * minsyms.c (build_minimal_symbol_hash_tables): Change
7722 test for adding to demangled hash table to check for difference
7723 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7724
be07a590
JB
77252004-05-19 Jim Blandy <jimb@redhat.com>
7726
7727 Use a constructor function to create regset structures.
7728 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7729 (struct regset): Use supply_regset_ftype. Add new
7730 'collect_regset' member.
7731 (regset_xmalloc): New declaration.
7732 * regset.c: New file.
7733 * am64-tdep.c (amd64_regset_from_core_section): Use
7734 regset_xmalloc to construct regset structures.
7735 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7736 * i386-tdep.c (i386_regset_from_core_section): Same.
7737 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7738 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7739 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7740 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7741 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7742 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7743 * Makefile.in (COMMON_OBS): Add regset.o.
7744 (regset.o): New rule.
7745
604368f5
JB
77462004-05-19 Joel Brobecker <brobecker@gnat.com>
7747
7748 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7749 and pthread_cond_wait.c.
7750
82d69f8b
JB
77512004-05-18 Jim Blandy <jimb@redhat.com>
7752
7753 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7754 before the mach-specific switch, and then let the individual cases
7755 override the defaults, rather than leaving them uninitialized
7756 until the switch and then setting them in each case.
7757
5859efe5
RC
77582004-05-18 Randolph Chung <tausq@debian.org>
7759
7760 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7761 millicode functions.
7762
9ca80cf8
RC
77632004-05-18 Randolph Chung <tausq@debian.org>
7764
7765 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7766 references to dld_flags_buffer consistent.
7767
ed70ba00
RC
77682004-05-18 Randolph Chung <tausq@debian.org>
7769
7770 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7771 it for unwinding the stack.
7772
63100632
RC
77732004-05-18 Randolph Chung <tausq@debian.org>
7774
7775 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7776 Undefine these so we can overide them using gdbarch.
7777
090ccbb7
RC
77782004-05-18 Randolph Chung <tausq@debian.org>
7779
7780 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7781 handling for 64-bit HPUX (elf).
7782
594706e6
DJ
77832004-05-18 Daniel Jacobowitz <dan@debian.org>
7784
7785 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7786 constants.
7787 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7788 * ia64-tdep.c (examine_prologue): Likewise.
7789 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7790 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7791
e5483145
MK
77922004-05-18 Mark Kettenis <kettenis@gnu.org>
7793
7794 * vax-tdep.c (vax_return_value): Implement
7795 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7796
caed1a45
MK
77972004-05-17 Mark Kettenis <kettenis@gnu.org>
7798
7799 * vax-tdep.c (vax_return_value): Fix typo.
7800
3c0b7db2
AC
78012004-05-17 Andrew Cagney <cagney@redhat.com>
7802
5aae53e5
AC
7803 * MAINTAINERS: Mark Salter was also responsible for
7804 testsuite/config/
7805
3c0b7db2
AC
7806 * NEWS: Mention signal fixes.
7807
22b0923d
RC
78082004-05-17 Randolph Chung <tausq@debian.org>
7809
7810 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7811 check to see if we are unwinding an export stub. Export stubs clobber
7812 the %rp in the call path and stores the original rp in a stack slot.
7813
22f2b2f3
JB
78142004-05-17 Jim Blandy <jimb@redhat.com>
7815
7816 * MAINTAINERS: Update address for J.T. Conklin.
7817
cea96d64
RC
78182004-05-17 Randolph Chung <tausq@debian.org>
7819
7820 * hppa-tdep.c: Remove superfluous #include's.
7821 * Makefile.in (hppa-tdep.o): Update dependencies.
7822
f08f6a4a
RC
78232004-05-17 Randolph Chung <tausq@debian.org>
7824
7825 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7826 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7827 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7828 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7829 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7830 Remove static function declarations.
7831
51da707a
MK
78322004-05-17 Mark Kettenis <kettenis@gnu.org>
7833
caed1a45
MK
7834 * alphabsd-nat.c: Update copyright year.
7835 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7836
c0c2b0db
MK
7837 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7838 and M68K_A2_REGNUM.
7839
51da707a
MK
7840 * m68k-tdep.c (m68k_svr4_return_value): Implement
7841 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7842
8d027a04
MK
78432004-05-16 Mark Kettenis <kettenis@gnu.org>
7844
7845 * sol-thread.c Update copyright year. Fix various coding
7846 standards violations. Tweak a few comments.
7847 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7848 Delete prototypes.
7849
0d99fdb9
RC
78502004-05-15 Randolph Chung <tausq@debian.org>
7851
7852 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7853 as pointer instead of array reference since HPUX compiler does
7854 not accept unsized array arguments.
7855 * somsolib.c (dld_flags_buffer): Use constant array size.
7856
f7e3843a
MK
78572004-05-15 Mark Kettenis <kettenis@gnu.org>
7858
0fe85704
MK
7859 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7860 offset with decimal offset.
7861 (amd64obsd_sigcontext_addr): Return correct address for entire
7862 signal trampoline.
7863
a54f9a00
MK
7864 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7865 instead of get_frame_base.
7866
feae6502
MK
7867 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7868 (fill_gregset): Use regcache_raw_collect.
7869
0382d099
MK
7870 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7871 ppcobsd-tdep.c.
7872
f7e3843a
MK
7873 * config/sparc/tm-nbsd64.h: Remove file.
7874 * config/tm-sunos.h: Remove file.
7875
773df3e5
JB
78762004-05-15 Joel Brobecker <brobecker@gnat.com>
7877
7878 * rs6000-tdep.c (store_param_on_stack_p): New function,
7879 an improved version of some code extracted from skip_prologue().
7880 (skip_prologue): Use store_param_on_stack_p() to detect
7881 instructions saving a parameter on the stack. Detect when r0
7882 is used to save a parameter.
7883 Do not mark "li rx, SIMM" instructions as part of the prologue,
7884 unless the following instruction is also part of the prologue.
7885
95918acb
AC
78862004-05-14 Andrew Cagney <cagney@redhat.com>
7887
06f32659
AC
7888 * infrun.c (handle_inferior_event): Simplify
7889 STEP_OVER_UNDEBUGGABLE.
7890
95918acb
AC
7891 * infrun.c (handle_step_into_function): Delete function.
7892 (handle_inferior_event): Inline calls to
7893 handle_step_into_function.
7894
40711ff1 78952004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7896
7897 * rs6000-nat.c: Fix a comment.
7898
02f60eae
JB
78992004-05-12 David Anderson <davea@sgi.com>
7900
7901 Committed by Jim Blandy <jimb@redhat.com>:
7902 * regcache.c (struct regcache_descr): fix comment spelling.
7903
552e377b
JB
79042004-05-13 J. Brobecker <brobecker@gnat.com>
7905
7906 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7907 Fixes a link link failure.
7908
349766b2
JB
79092004-05-13 J. Brobecker <brobecker@gnat.com>
7910
7911 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7912 error that was causing the build to fail.
7913
0d4d5484
JB
79142004-05-13 J. Brobecker <brobecker@gnat.com>
7915
7916 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7917 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7918
0b30808c
AC
79192004-05-13 Andrew Cagney <cagney@redhat.com>
7920
7921 * infrun.c (handle_inferior_event): Check for
7922 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7923 calls. Update comments.
7924
cdf2c5f5
JB
79252004-05-13 Jim Blandy <jimb@redhat.com>
7926
063715bf
JB
7927 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7928 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7929 (store_regs_user_thread, store_regs_kernel_thread): Use
7930 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7931 * ppc-linux-nat.c (fill_gregset): Same.
7932 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7933 (ppc_linux_sigtramp_cache): Same.
7934 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7935 (ppcnbsd_sigtramp_cache_init): Same.
7936 * rs6000-nat.c (fetch_core_registers): Same.
7937 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7938 (rs6000_frame_cache): Same.
7939
cdf2c5f5
JB
7940 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7941 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7942 of assuming that the gprs are numbered starting with zero.
7943 * ppc-linux-nat.c (fill_gregset): Same.
7944 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7945 * ppcnbsd-nat.c (getregs_supplies): Same.
7946 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7947 * rs6000-nat.c (fetch_core_registers): Same.
7948 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7949
450bd37b
MS
79502004-05-07 Michael Snyder <msnyder@redhat.com>
7951
7952 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7953 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7954
4a72a2a6
AC
79552004-05-13 Andrew Cagney <cagney@redhat.com>
7956
7957 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7958
8edfa926
BM
79592004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7960
7961 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7962 base_address for shared libraries.
7963
723e0e3d
BM
79642004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7965
7966 * MAINTAINERS (write after approval): Add myself.
7967
00d4360e
UW
79682004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7969
7970 * breakpoint.c (bpstat_stop_status): Add new argument
7971 STOPPED_BY_WATCHPOINT. Use it instead of testing
7972 target_stopped_data_address agaist 0 to check whether
7973 or not we stopped due to a hardware watchpoint.
7974 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7975 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7976 with new argument.
7977
ec76baa5
JB
79782004-05-12 Jim Blandy <jimb@redhat.com>
7979
7980 * configure.in: When checking whether we should use the -bbigtoc
7981 option, don't forget to restore the original value of LDFLAGS.
7982 * configure: Regenerated.
7983
f2c9ca08
AC
79842004-05-12 Andrew Cagney <cagney@redhat.com>
7985
7986 * thread.c (load_infrun_state): Delete step_sp.
7987 * infrun.c (context_switch): Ditto.
7988 * inferior.h (step_sp): Ditto.
7989 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7990 * gdbthread.h (struct thread_info, save_infrun_state)
7991 (restore_infrun_state): Ditto.
7992
090ddb2a
UW
79932004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7994
7995 * MAINTAINERS (write after approval): Add myself.
7996
8aad930b
AC
79972004-05-12 Andrew Cagney <cagney@redhat.com>
7998
7999 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8000 eliminate reference to step_sp.
8001 (struct execution_control_state, init_execution_control_state)
8002 (handle_inferior_event, keep_going): Delete update_step_sp and
8003 step_sp.
8004 * infcmd.c (step_sp): Note that variable is unused.
8005
922d5ae0
AC
80062004-05-11 Andrew Cagney <cagney@redhat.com>
8007
8008 * infrun.c (step_over_function): Delete function.
8009 (handle_step_into_function): Use insert_step_resume_breakpoint.
8010 (insert_step_resume_breakpoint): Fix assertion.
8011
017c5ca5
NR
80122004-05-11 Nick Roberts <nickrob@gnu.org>
8013
8014 * utils.c (defaulted_query): Just use the normal query input type
8015 when printing the annotations.
8016
42edda50
AC
80172004-05-11 Andrew Cagney <cagney@redhat.com>
8018
8019 * infrun.c (handle_inferior_event): Simplify code handling
8020 step-into or return-from a signal trampoline.
8021
d28b44a7
AC
80222004-05-11 Andrew Cagney <cagney@redhat.com>
8023
8024 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8025 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8026
383f0f5b
JB
80272004-05-10 Jim Blandy <jimb@redhat.com>
8028
d0b57c3a
JB
8029 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8030 with a call to internal_error.
8031
383f0f5b
JB
8032 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8033 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8034 processor variant lacks those registers.
8035 (ppc_floating_point_unit_p): Change description to make it clear
8036 that this returns info about the ISA, not the ABI.
8037 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8038 return true or false by checking tdep->ppc_fp0_regnum and
8039 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8040 arch/mach switching done in rs6000_gdbarch_init; it's better to
8041 keep that logic there, and just check the results here.
8042 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8043 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8044 floating-point registers.
8045 (ppc_supply_fpregset, ppc_collect_fpregset)
8046 (rs6000_push_dummy_call, rs6000_extract_return_value)
8047 (rs6000_store_return_value): Assert that we have floating-point
8048 registers.
8049 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8050 (rs6000_frame_cache): Don't note the locations at which
8051 floating-point registers were saved if we have no fprs.
8052 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8053 registers.
8054 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8055 (store_regs_user_thread, store_regs_kernel_thread): Only call
8056 supply_fprs / fill_fprs if we actually have floating-point
8057 registers.
8058 (special_register_p): Check ppc_fpscr_regnum before matching
8059 against it.
8060 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8061 supply / collect fpscr if we don't have it.
8062 * ppc-bdm.c: #include "gdb_assert.h".
8063 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8064 have floating-point registers, since I can't test this code on
8065 FP-free systems to adapt it.
8066 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8067 fpscr and floating point register numbers if they don't exist.
8068 (fetch_register): Assert that we have floating-point registers
8069 before we reach the code that handles them.
8070 (store_register): Same. And use tdep instead of calling
8071 gdbarch_tdep again.
8072 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8073 don't have them.
8074 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8075 fprs and fpscr if we don't have them.
8076 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8077 don't have them.
8078 * ppcnbsd-nat.c: #include "gdb_assert.h".
8079 (getfpregs_supplies): Assert that we have floating-point registers.
8080 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8081 * ppcobsd-tdep.c: #include "gdb_assert.h".
8082 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8083 have floating-point registers.
8084 * rs6000-nat.c (regmap): Don't match against the fpscr and
8085 floating point register numbers if they don't exist.
8086 (fetch_inferior_registers, store_inferior_registers,
8087 fetch_core_registers): Only fetch / store / supply the
8088 floating-point registers and the fpscr if we have them.
8089 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8090 (ppcobsd-tdep.o): Update dependencies.
8091
15960608
AC
80922004-05-10 Andrew Cagney <cagney@redhat.com>
8093
8094 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8095 (context_switch): Do not switch through_sigtramp_breakpoint.
8096 * gdbthread.h (save_infrun_state, load_infrun_state)
8097 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8098 and structure member.
8099 * thread.c (load_infrun_state, save_infrun_state): Update.
8100
5ab5aa0f
MK
81012004-05-10 Mark Kettenis <kettenis@gnu.org>
8102
8103 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8104
da78b0e7
DJ
81052004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8106
8107 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8108 throughout.
8109 * aclocal.m4: Regenerate.
8110
cca0d3b0
NW
81112004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8112
8113 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8114
d303a6c7
AC
81152004-05-10 Andrew Cagney <cagney@redhat.com>
8116
8117 * infrun.c (check_sigtramp2): Delete function.
8118 (handle_inferior_event): When single stepping, and taking a
8119 signal, set a breakpoint at the signal return address. Delete
8120 redundant calls to check_sigtramp2.
8121 (insert_step_resume_breakpoint): New function.
8122 (through_sigtramp_breakpoint, handle_inferior_event)
8123 (follow_exec, wait_for_inferior, fetch_inferior_event)
8124 (currently_stepping, keep_going): Delete most uses of
8125 through_sigtramp_breakpoint, not that it should be deleted.
8126 (delete_breakpoint_current_contents): Delete function.
8127
03f4cc20
RC
81282004-05-10 Randolph Chung <tausq@debian.org>
8129
8130 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8131 target.
8132 * config/pa/tm-linux.h: New file.
8133
37fc812e
DJ
81342004-05-10 Daniel Jacobowitz <drow@mvista.com>
8135
8136 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8137 of prefixes. Don't print the prefix twice in the CLI.
8138
26c0b942
JB
81392004-05-10 Jim Blandy <jimb@redhat.com>
8140
2e56e9c1
JB
8141 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8142 collect all the gprs.
8143
26c0b942
JB
8144 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8145 loop collecting gprs.
8146
dc497459
AC
81472004-05-09 Andrew Cagney <cagney@redhat.com>
8148
8149 * remote-vx.c (net_step): Delete step-range code.
8150 * remote.c (remote_resume, init_all_packet_configs)
8151 (set_remote_protocol_E_packet_cmd)
8152 (show_remote_protocol_E_packet_cmd)
8153 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8154 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8155 (show_remote_protocol_e_packet_cmd): Ditto.
8156
0543f387
MK
81572004-05-09 Mark Kettenis <kettenis@gnu.org>
8158
c481d1ca
MK
8159 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8160
f626a069
MK
8161 * hppa-tdep.h: Update copyright year.
8162 (struct trad_frame_saved_reg): Add opaque declaration.
8163
6fa57a7d
MK
8164 * amd64-tdep.c (amd64_return_value): Implement
8165 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8166
e47577ab
MK
8167 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8168 (m68k_value_to_register): New functions.
8169 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8170 value_to_register.
8171
31db7b6c
MK
8172 * defs.h (enum return_value_convention): Add
8173 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8174 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8175 * infcmd.c (legacy_return_value): New function.
8176 (print_return_value): Rwerite to implement
8177 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8178 * values.c (using_struct_return): Check for inequality to
8179 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8180 RETURN_VALUE_STRUCT_CONVENTION.
8181 * i386-tdep.c (i386_return_value): Implement
8182 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8183
0543f387
MK
8184 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8185 include "symtab.h", "opcode/vax.h" and "inferior.h".
8186 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8187 to read_memory_unsigned_integer.
8188 (vax_gdbarch_init): Reorder.
8189 (_initialize_vax_tdep): Spell out prototype.
8190 * Makefile.in (vax-tdep.o): Update dependencies.
8191
0c93b7b6
AC
81922004-05-08 Andrew Cagney <cagney@redhat.com>
8193
e6b55ae2
AC
8194 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8195 * target.c (target_detach, target_disconnect): Ditto.
8196
1ac839b8
AC
8197 * infcall.c (call_function_by_hand): When no
8198 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8199 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8200 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8201 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8202 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8203
28954179
AC
8204 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8205 * gdbarch.h, gdbarch.c: Re-generate.
8206 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8207 deprecated_fix_call_dummy.
8208 * v850-tdep.c (v850_gdbarch_init): Ditto.
8209 * infcall.c (call_function_by_hand): Do not call
8210 DEPRECATED_FIX_CALL_DUMMY.
8211
434b87dd
AC
8212 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8213 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8214 * gdbarch.h, gdbarch.c: Re-generate.
8215 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8216 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8217 deprecated_sizeof_call_dummy_words.
8218 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8220 * v850-tdep.c (v850_gdbarch_init): Ditto.
8221 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8222 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8223 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8224 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8225 * arch-utils.h (legacy_call_dummy_words)
8226 (legacy_sizeof_call_dummy_words): Delete declarations.
8227 * arch-utils.c (legacy_call_dummy_words)
8228 (legacy_sizeof_call_dummy_words): Delete variables.
8229
58d28df8
AC
8230 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8231 * gdbarch.h, gdbarch.c: Re-generate.
8232 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8233 * infcall.c (call_function_by_hand): Eliminate call to
8234 DEPRECATED_PUSH_DUMMY_FRAME.
8235 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8236 push_dummy_frame.
8237 (ns32k_push_dummy_frame): Delete function.
8238
e4a2df64
AC
8239 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8240 deprecated_call_dummy_breakpoint_offset or
8241 deprecated_call_dummy_start_offset.
8242 * dummy-frame.c, arm-tdep.c: Update comments.
8243 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8244 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8245 * gdbarch.h, gdbarch.c: Re-generate.
8246
d3712828
AC
8247 * infcall.c (legacy_push_dummy_code): Delete function.
8248 (push_dummy_code): Delete call.
8249
7a882905
AC
8250 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8251 * gdbarch.h, gdbarch.c: Re-generate.
8252 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8253 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8254 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8255 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8256
0ec5872b
AC
8257 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8258 (struct frame_info): Delete opaque declaration.
8259 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8260 * frame.c (get_frame_type): Delete call.
8261
0c93b7b6
AC
8262 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8263 pc_in_call_dummy.
8264 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8265 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8266
75536971
MK
82672004-05-08 Mark Kettenis <kettenis@gnu.org>
8268
527ca6bb
MK
8269 * alphanbsd-tdep.c: Include "gdb_string.h".
8270 * armnbsd-tdep.c: Update copyright year.
8271 Include "gdb_string.h".
8272 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8273 dependencies.
8274
d39fdc61
MK
8275 * delta68-nat.c: Remove file.
8276 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8277 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8278 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8279 (delta68-nat.o): Remove dependency.
8280
75536971
MK
8281 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8282 function.
8283 (m68k_gdbarch_init): Don't set
8284 deprecated_frameless_function_invocation.
8285
f4ca1d1f
RC
82862004-05-07 Randolph Chung <tausq@debian.org>
8287
8288 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8289 read_memory_nobpt for code reading when doing frame unwinding.
8290 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8291
2f0e8c7a
RC
82922004-05-07 Randolph Chung <tausq@debian.org>
8293
8294 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8295 instead of sp, handle sigaltstack case.
8296 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8297 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8298 signal handler and not that of the caller.
8299 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8300 hppa_linux_sigtramp_find_sigcontext.
8301
959464ff
RC
83022004-05-07 Randolph Chung <tausq@debian.org>
8303
8304 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8305 hppa-linux-nat.c.
8306 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8307 * hppa-linux-nat.c (fetch_register, store_register): Define.
8308 (fetch_inferior_registers, store_inferior_registers): Define.
8309 (supply_gregset): Add comment and clean up some unneeded code.
8310 (fill_gregset): Add comment and fix so that it saves registers in
8311 the right place in the gregset.
8312 (fill_fpregset): Fix buffer overrun problem.
8313 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8314
0da28f8a
RC
83152004-05-07 Randolph Chung <tausq@debian.org>
8316
8317 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8318 do common handling of the pcoqt register.
8319 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8320 to use helper function.
8321 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8322 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8323 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8324 generic fallback unwinder when all else fails.
8325 (hppa_gdbarch_init): Add fallback sniffer.
8326 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8327 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8328 to use helper function.
8329
b9ec757a
JB
83302004-05-08 Joel Brobecker <brobecker@gnat.com>
8331
8332 * config/djgpp/fnchange.lst: Add translation rules for
8333 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8334
756e95f1
MK
83352004-05-08 Mark Kettenis <kettenis@gnu.org>
8336
8337 * frame.c (get_prev_frame_1): Work around GCC bug.
8338 * frame.h: Add comment about GCC bug.
8339
2b4855ab
AC
83402004-05-07 Andrew Cagney <cagney@redhat.com>
8341
8342 * observer.c: Include "commands.h" and "gdbcmd.h".
8343 (observer_debug, _initialize_observer): Add the
8344 command "set/show debug observer".
8345 * observer.sh: When observer debugging, log notify calls.
8346 * Makefile.in (observer.o): Update dependencies.
8347
ba3e8e46
JM
83482004-05-07 Jason Molenda (jmolenda@apple.com)
8349
8350 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8351
16796152
JB
83522004-05-07 Jim Blandy <jimb@redhat.com>
8353
daf6dc85
JB
8354 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8355 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8356 to recognize gpr regnums, instead of assuming that
8357 tdep->ppc_fp0_regnum marks the end of the general-purpose
8358 registers.
8359
16796152
JB
8360 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8361 the given architecture has floating-point registers.
8362
c69b8bfc
AC
83632004-05-07 Andrew Cagney <cagney@redhat.com>
8364
8365 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8366 macro defined to 1.
8367 * gdbarch.h, gdbarch.c: Re-generate.
8368 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8369 deprecated_use_generic_dummy_frames.
8370
7243600a
BF
83712004-05-07 Brian Ford <ford@vss.fsi.com>
8372
8373 * NEWS: Mention Cygwin DWARF 2 support.
8374
73c1e0a1
AC
83752004-05-07 Andrew Cagney <cagney@redhat.com>
8376
8377 * objfiles.h (struct entry_info): Delete unused fields
8378 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8379 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8380 * mipsread.c (mipscoff_symfile_read): Update.
8381 * mdebugread.c (parse_partial_symbols): Update.
8382 * dwarfread.c (read_file_scope): Update.
8383 * dwarf2read.c (read_file_scope): Update.
8384 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8385 * coffread.c (complete_symtab): Update.
8386
1d3056ac
MK
83872004-05-07 Mark Kettenis <kettenis@gnu.org>
8388
8389 * infcall.c (_initialize_infcall): Fix typo.
8390
15170568
AC
83912004-05-07 Andrew Cagney <cagney@redhat.com>
8392
8393 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8394 * command.h (add_setshow_zinteger_cmd): Declare.
8395
34f75cc1
RC
83962004-05-06 Randolph Chung <tausq@debian.org>
8397
8398 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8399 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8400 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8401 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8402 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8403 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8404 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8405 definitions ...
8406 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8407 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8408 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8409 (hppa64_hpux_frame_find_saved_regs_in_sig)
8410 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8411 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8412 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8413 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8414 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8415 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8416 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8417 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8418 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8419 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8420 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8421 (hppa32_register_type, hppa_cannot_store_register)
8422 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8423 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8424 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8425 * pa64solib.c (pa64_solib_have_load_event)
8426 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8427 (pa64_solib_unloaded_library_pathname): Likewise.
8428 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8429 (som_solib_library_pathname): Likewise.
8430
0a5e7efe
JI
84312004-05-05 Jim Ingham <jingham@apple.com>
8432
8433 * breakpoint.c (create_breakpoints): Copy the ignore count and
8434 thread id over from the pended breakpoint to the actual
8435 breakpoint.
8436
10a4b113
AC
84372004-05-05 Andrew Cagney <cagney@redhat.com>
8438
8439 * gdbarch.sh (PARM_BOUNDARY): Delete.
8440 gdbarch.h, gdbarch.c: Re-generate.
8441 * valops.c (PARM_BOUNDARY): Delete macro.
8442 (value_push): Delete PARM_BOUNDARY code.
8443 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8444
366f009f
JB
84452004-05-04 Jim Blandy <jimb@redhat.com>
8446
32b99774
JB
8447 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8448 Don't assume that the gprs, fprs, and UISA sprs are
8449 contiguous, start at register number zero, and end with fpscr.
8450 Instead, use the numbers from the tdep structure.
8451
366f009f
JB
8452 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8453 should no longer be used in code specific to the RS6000 and its
8454 derivatives.
8455 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8456 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8457 tdep->ppc_fp0_regnum.
8458 (ppc_supply_fpregset, ppc_collect_fpregset)
8459 (rs6000_push_dummy_call, rs6000_extract_return_value)
8460 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8461 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8462 FP0_REGNUM.
8463 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8464 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8465 Same.
8466 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8467 bdm_ppc_store_registers): Same.
8468 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8469 (store_register, fill_fpregset): Same.
8470 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8471 (ppc_linux_supply_fpregset): Same.
8472 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8473 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8474 Same.
8475 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8476 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8477 ppc64_sysv_abi_return_value): Same.
8478 * rs6000-nat.c (regmap, fetch_inferior_registers)
8479 (store_inferior_registers, fetch_core_registers): Same.
8480
827f338d
MK
84812004-05-01 Mark Kettenis <kettenis@gnu.org>
8482
8483 * m68knbsd-nat.c: Remove file.
8484 * m68knbsd-tdep.c: Remove file.
8485 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8486 dependencies.
8487 * configure.host: Add m68k-*-netbsdelf*.
8488 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8489 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8490 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8491 (XM_FILE): Remove.
8492 * config/m68k/nbsdelf.mh: New file.
8493 * config/m68k/nbsd.mt: New file.
8494 * config/m68k/nbsdaout.mt: Remove file.
8495 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8496 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8497 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8498 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8499 (use_struct_convention): Remove prototype.
8500 (USE_STRUCT_CONVENTION): Remove define.
8501 * config/m68k/xm-nbsd.h: Remove file.
8502
66894781
MS
85032004-05-04 Michael Snyder <msnyder@redhat.com>
8504
8505 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8506 reg_struct_return method (as gcc usually does for cross targets).
8507
f0f63663
AC
85082004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8509
8510 Committed by Andrew Cagney.
8511 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8512 alignment padding when accessing ucontext struct members.
8513
edf61169
JB
85142004-05-04 Jim Blandy <jimb@redhat.com>
8515
8bf659e8
JB
8516 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8517 'ppc_gplast_regnum' member.
8518 (ppc_num_gprs): New enum constant.
8519 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8520 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8521 * rs6000-nat.c (regmap, fetch_inferior_registers,
8522 store_inferior_registers): Same.
8523 * rs6000-tdep.c (e500_pseudo_register_read)
8524 (e500_pseudo_register_write): Same.
8525 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8526
b967e06f
JB
8527 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8528 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8529 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8530 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8531 FPLAST_REGNUM.
8532 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8533 Same.
8534 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8535 * rs6000-nat.c (regmap, fetch_inferior_registers)
8536 (store_inferior_registers): Same.
8537
edf61169
JB
8538 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8539 with FPLAST_REGNUM.
8540
58a9656e
JB
85412004-05-03 Joel Brobecker <brobecker@gnat.com>
8542
8543 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8544 failure detected by recent versions of GCC.
8545 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8546 to be consistent with the usage in dwarf2_create_include_psymtab.
8547
dc305454
MS
85482004-05-03 Michael Snyder <msnyder@redhat.com>
8549
8550 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8551 (heuristic_proc_start): Whitespace cleanup.
8552
29972665
MK
85532004-05-04 Mark Kettenis <kettenis@gnu.org>
8554
6b57680d
MK
8555 * sun3-nat.c: Remove file.
8556 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8557 dependencies.
8558 (ALLDEPFILES): Remove sun3-nat.c.
8559 (sun3-nat.o): Remove dependencies.
8560
29972665
MK
8561 * i386-interix-nat.c, i386-interix-tdep.c,
8562 config/i386/nm-interix.h, config/i386/interix.mh,
8563 config/i386/interix.mt: Remove files.
8564 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8565 dependencies.
8566
f595cb19
MK
85672004-05-03 Mark Kettenis <kettenis@gnu.org>
8568
8569 * m68k-tdep.h (struct gdbarch_tdep): Add member
8570 struct_value_regnum.
8571 (m68k_svr4_init_abi): New prototype.
8572 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8573 different calling conventions.
8574 (m68k_extract_return_value): Remove code dealing with single-field
8575 structs.
8576 (m68k_store_return_value): Remove code dealing with single-field
8577 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8578 (m68k_extract_struct_value_address): Remove function.
8579 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8580 (m68k_reg_struct_return_p, m68k_return_value)
8581 (m68k_svr4_return_value): New functions.
8582 (m68k_use_struct_convention): Remove function.
8583 (m68k_push_dummy_call): Use new struct_value_regnum member of
8584 `struct gdbarch_tdep' instead of hardcoded register number to
8585 store STRUCT_ADDR.
8586 (m68k_svr4_init_abi): New function.
8587 (m68k_gdbarch_init): Don't set extract_return_value,
8588 store_return_values, deprecated_extract_struct_value_address and
8589 use_struct_convention. Set return_value instead. Initialize new
8590 struct_value_regnum member of `struct gdbarch_tdep'.
8591 * m68klinux-tdep.c: Update copyright year.
8592 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8593 (m68k_linux_extract_struct_value_address): Remove function.
8594 (m68k_linux_init_abi): Don't set extract_return_value,
8595 store_return_values, deprecated_extract_struct_value_address and
8596 use_struct_convention. Call m68k_svr4_init_abi but override the
8597 new struct_value_regnum member of `struct gdbarch_tdep'.
8598 * Makefile.in (m68k-tdep.o): Update dependencies.
8599
aaa75496
JB
86002004-05-03 J. Brobecker <brobecker@gnat.com>
8601
8602 * dwarf2read.c (line_header): Add new included_p field in
8603 field file_names.
8604 (partial_die_info): New field has_stmt_list. New field line_offset.
8605 (dwarf2_create_include_psymtab): New function.
8606 (dwarf2_build_include_psymtabs): New function.
8607 (add_file_name): Add forward declaration. Initialize new field.
8608 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8609 to be able to determine the list of files included by the
8610 given unit, and build their associated psymtabs.
8611 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8612 files as well.
8613 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8614 (read_file_scope): Update call to dwarf_decode_lines.
8615 (read_partial_die): Handle DW_AT_stmt_list attributes.
8616
c848556f
MC
86172004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8618
8619 Unfix PR gdb/1626.
8620 * configure.in: Revert special case for osf5.*.
8621 * configure: Regenerate.
8622
eb4556d7
JB
86232004-05-02 Jim Blandy <jimb@redhat.com>
8624
8625 Move the symbol-file-from-memory functions into their own file.
8626 * symfile-mem.c, symfile-mem.h: New files.
8627 * symfile.c (symbol_file_add_from_bfd): New function.
8628 (symbol_file_add): Call symbol_file_add_from_bfd.
8629 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8630 Moved to symfile-mem.c.
8631 (_initialize_symfile): Move definition of
8632 add-symbol-file-from-memory command to symfile-mem.c.
8633 * symfile.h (symbol_file_add_from_bfd): New declaration.
8634 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8635 * config/powerpc/linux.mt (TDEPFILES): Same.
8636 * Makefile.in (SFILES): Add symfile-mem.c.
8637 (symfile_mem_h): New variable.
8638 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8639 (symfile-mem.o): New rule.
8640
80bb239e
AC
86412004-05-01 Andrew Cagney <cagney@redhat.com>
8642
7789d0fa
AC
8643 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8644 frame_find_by_id instead of frame_relative_level.
8645 (do_enable_breakpoint): Ditto.
8646 * thread.c: Update copyright.
8647 (info_threads_command): Ditto, simplify.
8648
80bb239e
AC
8649 * frame.c (deprecated_generic_get_saved_register): Delete
8650 function, moved to "xstormy16-tdep.c".
8651 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8652 deprecated_generic_get_saved_register from "frame.c".
8653 (xstormy16_frame_saved_register): Call
8654 xstormy16_get_saved_register.
8655 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8656 static.
8657 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8658 * frame.h (deprecated_generic_get_saved_register): Delete.
8659
b2a871dd
MC
86602004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8661
8662 * dwarfread.c: Update documentation on the state of dwarf-1.
8663
0e100dab
AC
86642004-05-01 Andrew Cagney <cagney@redhat.com>
8665
acd8056e
AC
8666 * stack.c (select_frame_command): Delete call to
8667 frame_relative_level.
8668 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8669 Delete #if0 code.
8670 (frame_info): Do not print FRAMELESS.
8671 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8672 (catch_info): Delete #if0 code.
8673
0e100dab
AC
8674 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8675 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8676 of frame_relative_level.
8677 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8678 to SENTINEL_FRAME.
8679 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8680 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8681 frame_relative_level.
8682
55699d59
AC
8683 * frame.h (deprecated_set_frame_type): Delete declaration.
8684 * frame.c (deprecated_set_frame_type): Delete function, update
8685 comments.
8686
fcf70625
AC
8687 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8688 * gdbarch.h, gdbarch.c: Re-generate.
8689 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8690 (shnbsd_pc_in_sigtramp): Delete.
8691 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8692 pc_in_sigtramp.
8693 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8694 pc_in_sigtramp.
8695 * frame.h: Update comments.
8696 * ppc-linux-tdep.c: Update comments.
8697 * breakpoint.c (bpstat_what): Update comments.
8698
ac5eccb7
AC
8699 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8700 m68klinux-tdep.o's dependencies, were previously added to
8701 m68klinux-nat.o.
8702
f2524b93
AC
8703 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8704 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8705 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8706 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8707 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8708
17e20bce
AC
8709 * Makefile.in (m68klinux-nat.o): Update dependencies.
8710 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8711 (m68k_linux_sigtramp_frame_cache)
8712 (m68k_linux_sigtramp_frame_this_id)
8713 (m68k_linux_sigtramp_frame_prev_register)
8714 (m68k_linux_sigtramp_frame_unwind)
8715 (m68k_linux_sigtramp_frame_sniffer)
8716 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8717 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8718 names, use trad-frame.h.
8719 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8720 (struct m68k_sigtramp_info): Delete.
8721 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8722 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8723 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8724 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8725 "m68klinux-tdep.c".
8726
c8864fa2
AC
8727 * infrun.c (check_sigtramp2): Delete check for
8728 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8729
511dd2cd
MK
87302004-05-01 Mark Kettenis <kettenis@gnu.org>
8731
8732 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8733
8c6b0e06
AC
87342004-05-01 Andrew Cagney <cagney@redhat.com>
8735
9df0bb3f
AC
8736 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8737 (frv_linux_sigtramp_frame_cache)
8738 (frv_linux_sigtramp_frame_this_id)
8739 (frv_linux_sigtramp_frame_prev_register)
8740 (frv_linux_sigtramp_frame_unwind)
8741 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8742 include "linux" in function and variable names, directly call
8743 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8744 the latest trad-frame code.
8745 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8746 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8747 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8748 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8749 * frv-tdep.c (frv_sigtramp_frame_cache)
8750 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8751 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8752 frv-linux-tdep.c.
8753 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8754 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8755 (frv_set_sigcontext_reg_addr): Delete function.
8756
8c6b0e06
AC
8757 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8758 (DEPRECATED_SIGTRAMP_END): Delete.
8759 * gdbarch.h, gdbarch.c: Re-generate.
8760 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8761 * config/vax/tm-vaxbsd.h: Update copyright.
8762 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8763 (DEPRECATED_IN_SIGTRAMP): Define.
8764 * config/m68k/tm-nbsd.h: Update copyright.
8765 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8766 (DEPRECATED_IN_SIGTRAMP): Define.
8767
50ea7769
MK
87682004-05-01 Mark Kettenis <kettenis@gnu.org>
8769
03ac2a74
MK
8770 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8771 encondings. Fixes PR gdb/1628.
8772
50ea7769
MK
8773 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8774 DW_CFA_restore state without a matching DW_CFA_remember_state
8775 instead of aborting. Fixes PR backtrace/1589.
8776
9a5d7be1
JB
87772004-04-30 Joel Brobecker <brobecker@gnat.com>
8778
8779 * MAINTAINERS: Add self as AIX maintainer.
8780 Update my e-mail address in write-after-approval section.
8781
2593d1cd
AC
87822004-04-30 Andrew Cagney <cagney@redhat.com>
8783
ce12bbf9
AC
8784 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8785 (legacy_get_prev_frame): Ditto.
8786
36710c63
AC
8787 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8788 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8789 * mipsread.c (sigtramp_address): Delete extern variable.
8790 (mipscoff_new_init): Delete reference.
8791 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8792 (fixup_sigtramp): Delete function.
8793 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8794 (fixup_sigtramp): Delete declarations.
8795
2593d1cd
AC
8796 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8797 deprecated_pc_in_sigtramp.
8798 (ppcnbsd_pc_in_sigtramp): Delete function.
8799
2a25f91c
MK
88002004-05-01 Mark Kettenis <kettenis@gnu.org>
8801
8802 * config/m68k/nm-nbsd.h: Tweak comments.
8803 * config/m68k/nm-nbsdaout.h: Likewise.
8804
0b281939
AC
88052004-04-30 Andrew Cagney <cagney@redhat.com>
8806
8807 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8808 legacy_pc_in_sigtramp.
8809 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8810
8f2d3ea0
MK
88112004-05-01 Mark Kettenis <kettenis@gnu.org>
8812
8813 Add OpenBSD/m68k support.
8814 * NEWS (New native configurations): Mention OpenBSD/m68k.
8815 * m68kbsd-tdep.c: New file.
8816 * m68kbsd-nat.c: New file.
8817 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8818 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8819 * configure.host: Add m68k-*-openbsd.
8820 * configure.tgt: Add m68k-*-openbsd.
8821 * config/m68k/tm-obsd.h: New file.
8822 * config/m68k/obsd.mt: New file.
8823 * config/m68k/obsd.mh: New file.
8824 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8825 m68kbsd-tdep.c.
8826
c40f49a4
AC
88272004-04-30 Andrew Cagney <cagney@redhat.com>
8828
8829 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8830 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8831
e81554cd
MK
88322004-04-30 Mark Kettenis <kettenis@gnu.org>
8833
8834 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8835 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8836
d4dc1a91
BF
88372004-04-30 Brian Ford <ford@vss.fsi.com>
8838
8839 Revert 2004-04-16 change.
8840 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8841 (i386_coff_init_abi): Remove.
8842 * i386-tdep.h (i386_coff_init_abi): Remove.
8843 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8844
2f72f850
AC
88452004-04-30 Andrew Cagney <cagney@redhat.com>
8846
e492f9d6
AC
8847 * blockframe.c (find_pc_partial_function): Delete use of
8848 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8849 DEPRECATED_SIGTRAMP_END.
8850
7b7adad0
AC
8851 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8852 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8853 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8854 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8855 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8856
2f72f850
AC
8857 * defs.h (deprecated_inside_entry_file): Delete declaration.
8858 * blockframe.c (deprecated_inside_entry_file): Delete function.
8859 (legacy_frame_chain_valid): Delete call.
8860 * sh64-tdep.c (sh64_frame_chain): Delete call.
8861 * objfiles.h: Update comments.
8862 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8863 call.
8864 * frame.c (get_prev_frame): Delete call, update comments.
8865
283f90a7
BF
88662004-04-30 Brian Ford <ford@vss.fsi.com>
8867
8868 * MAINTAINERS (Write After Approval): Add myself.
8869
8ee56bcf
AC
88702004-04-30 Andrew Cagney <cagney@redhat.com>
8871
8872 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8873 * gdbarch.h, gdbarch.c: Re-generate.
8874 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8875 code.
8876
ee27e1b6
AC
88772004-04-30 Andrew Cagney <cagney@redhat.com>
8878
8879 * gdb-events.sh (selected_thread_changed)
8880 (selected_frame_level_changed, target_changed): Delete.
8881 * gdb-events.h, gdb-events.c: Re-generate.
8882 * valops.c (value_assign): Update.
8883 * stack.c (select_frame_command, up_silently_base)
8884 (down_silently_base): Update.
8885
d5ac5a39
AC
88862004-04-29 Andrew Cagney <cagney@redhat.com>
8887
8888 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8889 registers correctly.
8890 (print_gp_register_row, mips32_heuristic_proc_desc)
8891 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8892 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8893 references to mips_isa_regsize.
8894
ceae6e75
AC
88952004-04-29 Andrew Cagney <cagney@redhat.com>
8896
8897 * mips-tdep.c (struct gdbarch_tdep): Delete
8898 mips_fp_register_double.
8899 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8900 mips_abi_regsize.
8901 (mips_gdbarch_init): Do not set mips_fp_register_double.
8902 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8903
a587af0b
AC
89042004-04-29 Joel Brobecker <brobecker@gnat.com>
8905
8906 Committed by Andrew Cagney.
8907 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8908 function calls.
8909
13326b4e
AC
89102004-04-29 Andrew Cagney <cagney@redhat.com>
8911
8912 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8913 gdbarch, use mips_abi, update callers.
8914 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8915 mips_abi_regsize, update callers.
8916 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8917 mips_default_abi_regsize.
8918 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8919 mips_default_abi_regsize.
8920
711cc5cd
AC
89212004-04-29 Andrew Cagney <cagney@redhat.com>
8922
1b13c4f6
AC
8923 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8924 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8925 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8926 mips_default_abi_regsize.
8927 (mips_isa_regsize): Rename mips_regisze.
8928 * mipsnbsd-tdep.c: Update.
8929 * mips-linux-tdep.c: Update.
8930 * irix5-nat.c: Update.
8931 * mips-tdep.h (mips_isa_regsize): Update.
8932
711cc5cd
AC
8933 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8934 Delete all disabled code.
8935 * gdb-events.h, gdb-events.c: Re-generate.
8936
e63bbc88
MK
89372004-04-19 Jerome Guitton <guitton@gnat.com>
8938 Mark Kettenis <kettenis@gnu.org>
8939
8940 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8941 the function begins with a branch instruction.
8942
fd35795f
MK
89432004-04-29 Mark Kettenis <kettenis@gnu.org>
8944
8945 * i386-tdep.c: Fix spelling mistakes.
8946
c960c18f
AC
89472004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8948 Andrew Cagney <cagney@redhat.com>
8949
8950 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8951 <sys/proc.h>.
8952 * acconfig.h: Provide default _KMEMUSER value.
8953 * config.in, configure: Re-generate.
8954 * NEWS: Mention fix.
8955
50306a9d
RC
89562004-04-24 Randolph Chung <tausq@debian.org>
8957
8958 * configure.host (hppa*-*-linux*): New target.
8959 * configure.tgt (hppa*-*-linux*): Likewise.
8960 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8961 gdbarch_init_osabi() call earlier so that osabi-specific frame
8962 unwinders can be registered first.
8963 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8964 hppa-linux-nat.c.
8965 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8966 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8967 * config/pa/linux.mh: New file.
8968 * config/pa/linux.mt: New file.
8969 * config/pa/nm-linux.h: New file.
8970 * config/pa/xm-linux.h: New file.
8971 * hppa-linux-nat.c: New file.
8972 * hppa-linux-tdep.c: New file.
8973
2a6228ef
RC
89742004-04-28 Randolph Chung <tausq@debian.org>
8975
8976 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8977 return values.
8978 (hppa32_push_dummy_call): Fix small struct and floating point argument
8979 passing, and make sure the stack frame is properly aligned.
8980
82c10df6
AC
89812004-04-28 Andrew Cagney <cagney@redhat.com>
8982
d762c46a
AC
8983 * stack.c (print_stack_frame): Fix description.
8984
82c10df6
AC
8985 * NEWS: Mention gdb/gdbserver/configure execute permission
8986 changed. PR server/519.
8987
0faf0076
AC
89882004-04-28 Andrew Cagney <cagney@redhat.com>
8989
8990 * stack.c (print_stack_frame_stub): Delete declaration.
8991 (struct print_stack_frame_args, print_stack_frame)
8992 (print_frame_info, print_frame): Replace "source" with print what.
8993 Replace "print" with "print_level". Replace "args" with
8994 "print_args".
8995 * frame.h (show_and_print_stack_frame, print_stack_frame)
8996 (print_frame_info): Update declarations.
8997 * stack.c (select_and_print_frame, frame_command)
8998 (current_frame_command, up_command, down_command): Update calls -
8999 use get_selected_frame, pass "enum print_what" for source, do not
9000 call frame_relative_level.
9001 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9002 * remote-rdp.c (remote_rdp_open): Ditto.
9003 * remote-mips.c (common_open): Ditto.
9004 * remote-e7000.c (e7000_start_remote): Ditto.
9005 * ocd.c (ocd_start_remote): Ditto.
9006 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9007 * infrun.c (normal_stop): Ditto.
9008 * inflow.c (kill_command): Ditto.
9009 * infcmd.c (finish_command): Ditto.
9010 * corelow.c (core_open): Ditto.
9011 * tracepoint.c (finish_tfind_command): Ditto.
9012 * thread.c (info_threads_command, info_threads_command)
9013 (restore_current_thread, do_captured_thread_select): Ditto.
9014 * ada-tasks.c (task_command): Ditto.
9015
f4c5303c
OF
90162004-04-26 Orjan Friberg <orjanf@axis.com>
9017
9018 * frame.c: Include "observer.h".
9019 (frame_observer_target_changed): New function.
9020 (_initialize_frame): Attach target_changed observer.
9021 * regcache.c: Include "observer.h".
9022 (regcache_observer_target_changed): New function.
9023 (_initialize_regcache): Attach target_changed observer.
9024 * valops.c: Include "observer.h".
9025 (value_assign): Notify target_changed event when modifying register.
9026 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9027
7270d8f2
OF
90282004-04-26 Orjan Friberg <orjanf@axis.com>
9029
9030 From Paul Koning <pkoning@equallogic.com>:
9031 * breakpoint.c (free_valchain): New function.
9032 (insert_bp_location, delete_breakpoint): Use free_valchain.
9033 (remove_breakpoint): Do not remove the valchain.
9034 (bpstat_stop_status): If not stopped by watchpoint, skip
9035 watchpoints when generating stop status list.
9036 * infrun.c (handle_inferior_event): Make
9037 stepped_after_stopped_by_watchpoint a global variable.
9038 * remote.c (remote_stopped_data_address): Return watch data
9039 address rather than zero if stepped_after_stopped_by_watchpoint is
9040 set.
9041
02d62932
MC
90422004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9043
9044 Fix PR gdb/1626.
9045 * configure.in: Check for curses after termcap.
9046 On osf5.*, do not check for ncurses.
9047 * configure: Regenerate.
9048
3e9a183c
MK
90492004-04-25 Mark Kettenis <kettenis@gnu.org>
9050
c79ac407
MK
9051 * ppcobsd-nat.c: Include "ppc-tdep.h".
9052 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9053
3e9a183c
MK
9054 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9055 Fixes PR tdep/1623 and PR tdep/1624.
9056
38cc9c28
MC
90572004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9058
9059 * xmodem.h, xmodem.c: Remove files.
9060 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9061
7f07c5b6
RC
90622004-04-23 Randolph Chung <tausq@debian.org>
9063
9064 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9065 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9066 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9067 for handling stackless frames.
9068 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9069
9f7194c3
RC
90702004-04-23 Randolph Chung <tausq@debian.org>
9071
9072 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9073 starts at a pc before the frame is created.
9074
dcff6009
JB
90752004-04-23 Joel Brobecker <brobecker@gnat.com>
9076
9077 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9078
40711ff1 90792004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
9080
9081 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9082 use convert_typed_floating to get the appropriate format.
9083
abc485a1
RC
90842004-04-22 Randolph Chung <tausq@debian.org>
9085
9086 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9087 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9088 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9089 (hppa_sign_extend): Add prototype.
9090 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9091 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9092 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9093 hppa targets will also use these functions.
9094 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9095 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9096 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9097 (hppa_gdbarch_init): Remove gdbarch setting of
9098 skip_trampoline_code, in_solib_call_trampoline and
9099 in_solib_return_trampoline.
9100 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9101 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9102 hppa_in_solib_call_trampoline.
9103 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9104 Moved from hppa-tdep.c.
9105 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9106 in_solib_call_trampoline and in_solib_return_trampoline.
9107
369aa520
RC
91082004-04-22 Randolph Chung <tausq@debian.org>
9109
9110 * hppa-tdep.c (hppa_debug): New variable.
9111 (find_unwind_entry, hppa_frame_cache): Add debug output.
9112 (_initialize_hppa_tdep): Add command to set debug flag.
9113
476be15e
AC
91142004-04-22 Andrew Cagney <cagney@redhat.com>
9115
9116 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9117 "trad-frame.h".
9118 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9119 signal trampoline unwinder.
9120 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9121
d195bc9f
MK
91222004-04-22 Mark Kettenis <kettenis@gnu.org>
9123
9124 Add OpenBSD/powerpc support.
9125 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9126 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9127 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9128 (ppc_collect_fpregset): New prototypes.
9129 * ppcobsd-nat.c: New file.
9130 * ppcobsd-tdep.c: New file.
9131 * ppcobsd-tdep.h: New file.
9132 * rs6000-tdep.c: Include "regset.h".
9133 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9134 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9135 New functions.
9136 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9137 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9138 (rs6000-tdep.o): Update dependencies.
9139 * configure.host: Add powerpc-*-openbsd.
9140 * configure.tgt: Add powerpc-*-openbsd.
9141 * config/powerpc/obsd.mh: New file.
9142 * config/powerpc/nm-obsd.h: New file.
9143 * config/powerpc/obsd.mt: New file.
9144
6f14cc33
AC
91452004-04-22 Andrew Cagney <cagney@redhat.com>
9146
fcf29e5f
AC
9147 * frame.h (show_frame_info): Delete declaration.
9148
6f14cc33
AC
9149 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9150 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9151 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9152 * frv-tdep.c (frv_frame_this_id): Ditto.
9153 * avr-tdep.c (avr_frame_this_id): Ditto.
9154
e5786a5c
EZ
91552004-04-22 Elena Zannoni <ezannoni@redhat.com>
9156
9157 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9158
26e75e5c
JB
91592004-04-22 Jim Blandy <jimb@redhat.com>
9160
9161 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9162 register number zero.
9163
d8d65dd3
MS
91642004-04-21 Michael Snyder <msnyder@redhat.com>
9165
9166 * mips-tdep.c (heuristic_proc_start):
9167 Warning() already prefixes "Warning: ".
9168
9a4105ab
AC
91692004-04-21 Andrew Cagney <cagney@redhat.com>
9170
9171 * annotate.h (deprecated_annotate_starting_hook)
9172 (deprecated_annotate_stopped_hook)
9173 (deprecated_annotate_exited_hook)
9174 (deprecated_annotate_signal_hook)
9175 (deprecated_annotate_signalled_hook): Deprecate.
9176 * tracepoint.h (deprecated_create_tracepoint_hook)
9177 (deprecated_delete_tracepoint_hook)
9178 (deprecated_modify_tracepoint_hook)
9179 (deprecated_trace_find_hook)
9180 (deprecated_trace_start_stop_hook): Deprecate.
9181 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9182 * remote.h (deprecated_target_resume_hook)
9183 (deprecated_target_wait_loop_hook): Deprecate.
9184 * gdbcore.h (deprecated_exec_file_display_hook)
9185 (deprecated_file_changed_hook): Deprecate.
9186 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9187 * defs.h (deprecated_modify_breakpoint_hook)
9188 (deprecated_command_loop_hook, deprecated_show_load_progress)
9189 (deprecated_print_frame_info_listing_hook)
9190 (deprecated_query_hook, deprecated_warning_hook)
9191 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9192 (deprecated_delete_breakpoint_hook)
9193 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9194 (deprecated_readline_begin_hook, deprecated_readline_hook)
9195 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9196 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9197 (deprecated_context_hook, deprecated_target_wait_hook)
9198 (deprecated_attach_hook, deprecated_detach_hook)
9199 (deprecated_call_command_hook, deprecated_set_hook)
9200 (deprecated_error_hook, deprecated_error_begin_hook)
9201 (deprecated_ui_load_progress_hook): Deprecate.
9202 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9203 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9204 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9205 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9206 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9207 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9208 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9209 * annotate.c, aix-thread.c: Update.
9210
62cf13cc
AC
92112004-04-21 Andrew Cagney <cagney@redhat.com>
9212
b2e31a62
AC
9213 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9214 * vaxnbsd-tdep.c: Include "gdb_string.h".
9215
62cf13cc
AC
9216 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9217 (add_symbol_file_from_memory_command): #if 0 function body, call
9218 error instead.
9219
00e32a35
AC
92202004-04-21 Andrew Cagney <cagney@redhat.com>
9221
9222 * gdbcore.h: Update copyright.
9223 (deprecated_add_core_fns): Rename add_core_fns.
9224 * win32-nat.c (_initialize_core_win32): Update.
9225 * sun3-nat.c (_initialize_core_sun3): Update.
9226 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9227 * rs6000-nat.c (_initialize_core_rs6000): Update.
9228 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9229 * nto-tdep.c (_initialize_nto_tdep): Update.
9230 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9231 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9232 * mips-nat.c (_initialize_core_mips): Update.
9233 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9234 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9235 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9236 * lynx-nat.c (_initialize_core_lynx): Update.
9237 * irix5-nat.c (_initialize_core_irix5): Update.
9238 * i386-interix-nat.c (_initialize_core_interix): Update.
9239 * cris-tdep.c (_initialize_cris_tdep): Update.
9240 * corelow.c (deprecated_add_core_fns): Update.
9241 * core-regset.c (_initialize_core_regset): Update.
9242 * core-aout.c (_initialize_core_aout): Update.
9243 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9244 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9245 * alpha-nat.c (_initialize_core_alpha): Update.
9246
13c7b1ca
JB
92472004-04-21 Jim Blandy <jimb@redhat.com>
9248
9249 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9250
7b5a2f43
DJ
92512004-04-19 Daniel Jacobowitz <drow@mvista.com>
9252
9253 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9254 Delete.
9255 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9256 (read_attribute_value): Update calls to dwarf_alloc_block.
9257 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9258 dwarf2_tmp_obstack.
9259 (psymtab_to_symtab_1): Likewise. Clean up using
9260 free_stack_comp_unit.
9261 (add_to_cu_func_list): Use the comp_unit_obstack.
9262
05cf31d1
JB
92632004-04-19 Joel Brobecker <brobecker@gnat.com>
9264
9265 * dwarf2read.c (dwarf2_flag_true_p): New function.
9266 (die_is_declaration): Use the function above. Add some comments.
9267
adf93a2f
MK
92682004-04-19 Mark Kettenis <kettenis@gnu.org>
9269
9270 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9271 architecture when registering sparcnbsd_core_osabi_sniffer.
9272 Adjust comment.
9273
748894bf
MK
92742004-04-18 Mark Kettenis <kettenis@gnu.org>
9275
f622ad42
MK
9276 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9277 return value.
9278
c4fc7f1b
MK
9279 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9280 * i386-tdep.c: Correct register numbering scheme comments
9281 throughout.
9282 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9283 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9284 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9285 (i386_gdb_arch_init): Likewise.
9286
b4ead1bd
MK
9287 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9288 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9289 ppcnbsd-tdep.o.
9290
748894bf
MK
9291 * m68k-tdep.h: Tweak comments.
9292 * m68k-tdep.c: Tweak comment.
9293
fdd72f95
RC
92942004-04-17 Randolph Chung <tausq@debian.org>
9295
9296 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9297 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9298 (hppa_hpux_som_init_abi): Set is_elf to 0.
9299 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9300 * hppa-tdep.c (low_text_segment_address): Remove global.
9301 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9302 section offset to calculate segment address.
9303 (internalize_unwinds): Define low_text_segment_address as local and
9304 pass to record_text_segment_lowaddr for ELF targets.
9305 (hppa_gdbarch_init): Zero fill tdep structure.
9306 (hppa_dump_tdep): Print tdep structure.
9307 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9308
0f8d9d59
RC
93092004-04-17 Randolph Chung <tausq@debian.org>
9310
9311 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9312 (hppa_gdbarch_init): Set pseudo_register_read.
9313 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9314 * regcache.c (supply_register): Remove check for
9315 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9316
7c46b9fb
RC
93172004-04-17 Randolph Chung <tausq@debian.org>
9318
9319 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9320 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9321 (hpread_adjust_stack_address): Move to hpread.c.
9322 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9323 obj_private_struct): Move from tm-hppa.h.
9324 * hpread.c (hppa-tdep.h): Include.
9325 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9326 (hpread_read_function_type, hpread_read_doc_function_type)
9327 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9328 directly.
9329 * pa64solib.c (hppa-tdep.h): Include.
9330 * somsolib.c (hppa-tdep.h): Include.
9331 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9332 inferior_status): Remove unused forward declarations.
9333 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9334 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9335 obj_private_struct): Move to hppa-tdep.h.
9336 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9337
8d153463
RC
93382004-04-17 Randolph Chung <tausq@debian.org>
9339
9340 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9341 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9342 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9343 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9344 Remove forward declaration and make static.
9345 (hppa_reg_struct_has_addr): Remove.
9346
350c2e5b
JB
93472004-04-16 Joel Brobecker <brobecker@gnat.com>
9348
9349 * observer.sh: Move comments in sed command to first column.
9350
bbde78fa
JM
93512004-04-16 Jason Molenda (jmolenda@apple.com)
9352
9353 * frame.c: Minor typeo corrections in comments.
9354
e0270fd9
JB
93552004-04-16 Joel Brobecker <brobecker@gnat.com>
9356
9357 * observer.c (observer_test_first_notification_function): Update
9358 function profile.
9359 (observer_test_second_notification_function): Likewise.
9360 (observer_test_third_notification_function): Likewise.
9361
3d049254
MK
93622004-04-16 Mark Kettenis <kettenis@gnu.org>
9363
9364 From Brian Ford <ford@vss.fsi.com>:
9365 * i386-tdep.c (i386_coff_init_abi): New function.
9366 * i386-tdep.h (i386_coff_init_abi): New prototype.
9367 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9368 register number translation functions for DWARF and DWARF 2.
9369
7867684d
JB
93702004-04-16 Joel Brobecker <brobecker@gnat.com>
9371
9372 * dwarf2read.c: Back out my previous change, it was incorrect.
9373
72bf9492
DJ
93742004-04-16 Daniel Jacobowitz <drow@mvista.com>
9375
9376 * dwarf2read.c: Include "hashtab.h".
9377 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9378 has_namespace_info.
9379 (struct partial_die_info): Add comments. Use bitfields to reduce
9380 memory footprint. Add scope, scope_set, has_specification,
9381 spec_offset, die_parent, die_child, and die_sibling.
9382 (peek_die_abbrev): Add prototype.
9383 (partial_read_comp_unit_head): New function, broken out from
9384 dwarf2_build_psymtabs_hard.
9385 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9386 Use partial_read_comp_unit_head. Initialize the CU and
9387 comp_unit_obstack. Update calls to read_partial_die and
9388 scan_partial_symbols. Use free_stack_comp_unit and
9389 load_partial_dies.
9390 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9391 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9392 Update calls to helper functions. Remove NAMESPACE argument.
9393 Update comments.
9394 (partial_die_parent_scope, partial_die_full_name): New functions.
9395 (add_partial_symbol): Remove namespace argument. Update call to
9396 pdi_needs_namespace. Use partial_die_full_name. Handle
9397 DW_TAG_namespace. Check has_namespace_info flag.
9398 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9399 tag. Handle namespaces.
9400 (add_partial_namespace, add_partial_enumeration): Simplify.
9401 (guess_structure_name): New function, derived from
9402 add_partial_structure.
9403 (add_partial_structure): Remove.
9404 (determine_class_name): Update comment.
9405 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9406 (is_type_tag_for_partial, load_partial_dies): New functions.
9407 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9408 Record specifications instead of following them immediately.
9409 (find_partial_die_in_comp_unit, find_partial_die)
9410 (fixup_partial_die, free_stack_comp_unit)
9411 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9412 (partial_die_hash, partial_die_eq): New functions.
9413 * Makefile.in (hashtab_h): Define.
9414 (dwarf2read.o): Update dependencies.
9415 (observer_inc, observer_h): Move to the correct section.
9416
fdc860a3
JB
94172004-04-15 Joel Brobecker <brobecker@gnat.com>
9418
9419 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9420 (die_is_declaration): Use the function above. Add comment.
9421
dc718098
JB
94222004-04-15 Joel Brobecker <brobecker@gnat.com>
9423
9424 * dwarf2read.c (read_structure_scope): Identify stub types
9425 using die_is_declaration() only.
9426
8718a420
RM
94272004-04-15 Roland McGrath <roland@redhat.com>
9428
9429 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9430 argument instead of NAME.
9431 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9432 in call to symbol_file_add_with_addrs_or_offsets.
9433 (build_addr_info): New function, helper for ...
9434 (symbol_file_add_from_memory): New function.
9435 (add_symbol_file_from_memory_command): New function using that.
9436 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9437 (pre_add_symbol_hook): Add const to argument type.
9438 * symfile.h (symbol_file_add_from_memory): Declare it.
9439
8b910bab
MK
94402004-04-15 Mark Kettenis <kettenis@gnu.org>
9441
9f076e7a
MK
9442 * NEWS (New native configurations): Mention OpenBSD/vax.
9443 * configure.host: Add vax-*-openbsd*.
9444 * config/vax/obsd.mh: New file.
9445 * config/vax/nm-obsd.h: New file.
9446
8b910bab
MK
9447 * vax-tdep.c: Include "regset.h".
9448 (vax_supply_gregset): New function.
9449 (vax_gregset): New variable.
9450 (vax_regset_from_core_section): New function.
9451 (vax_gdbarch_init): Set regset_from_core_section.
9452 * Makefile.in (vax-tdep.o): Update dependencies.
9453
7a464420
AC
94542004-04-15 Andrew Cagney <cagney@redhat.com>
9455
9456 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9457 (observer_normal_stop_notification_stub)
9458 (observer_attach_normal_stop, observer_detach_normal_stop):
9459 Delete, replaced by #include "observer.inc".
9460 * infrun.c (normal_stop): Pass "stop_bpstat" to
9461 observer_notify_normal_stop.
9462 * Makefile.in (observer_inc): Define.
9463 (observer.o): Update dependencies.
9464 (observer.h, observer.inc): New rules.
9465 * observer.h: Delete file.
9466 * observer.sh: New file.
9467
e36ad527
MK
94682004-04-15 Mark Kettenis <kettenis@gnu.org>
9469
9470 * vax-tdep.c (vax_frame_cache): Fix typo.
9471
67b441e1
MK
94722004-04-14 Mark Kettenis <kettenis@gnu.org>
9473
6f606e1c
MK
9474 * NEWS (New native configurations): Mention NetBSD/vax.
9475 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9476 * config/vax/nbsdelf.mh: New file.
9477 * config/vax/nbsdaout.mh: New file.
9478 * config/vax/nm-nbsd.h: New file.
9479 * config/vax/nm-nbsdaout.h: New file.
9480
9c5519a5
MK
9481 * vaxnbsd-tdep.c: New file.
9482 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9483 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9484 * config/vax/nbsd.mt: New file.
9485 * config/vax/tm-nbsd.h: New file.
9486
4844a614
MK
9487 * Makefile.in (vaxbsd-nat.o): New dependency.
9488
67b441e1
MK
9489 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9490 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9491 struct_addr arguments. Don't push return value address.
9492 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9493 arguments to vax_store_arguments. Store return value address in
9494 R1.
9495 (vax_store_struct_return, vax_extract_return_value)
9496 (vax_store_return_value): Remove functions.
9497 (vax_return_value): New function.
9498 (vax_gdbarch_init): Set return value. Don't set
9499 deprecated_store_struct_return, deprecated_extract_struct_return
9500 and deprecated_store_return_value.
9501
6672f2ae
AS
95022004-04-14 Andreas Schwab <schwab@suse.de>
9503
9504 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9505 value buffer.
9506 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9507
7346c184
MK
95082004-04-14 Mark Kettenis <kettenis@gnu.org>
9509
9510 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9511 (vax_unwind_dummy_id): New functions.
9512 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9513 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9514 variables.
9515 (vax_fix_call_dummy): Remove function.
9516 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9517 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9518 call_dummy_location, deprecated_call_dummy_words,
9519 deprecated_sizeof_call_dummy_words,
9520 deprecated_call_dummy_breakpoint_offset,
9521 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9522 and deprecated_dummy_write_sp.
9523
58e23df4
DC
95242004-04-13 David Carlton <carlton@kealia.com>
9525
9526 * MAINTAINERS: Move myself to "paper trail" section.
9527
5e6b39ff
MK
95282004-04-12 Mark Kettenis <kettenis@gnu.org>
9529
7def7fef
MK
9530 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9531 "trad-frame.h".
9532 (vax_frame_init_saved_regs): Remove function.
9533 (vax_sigtramp_saved_pc): Remove function.
9534 (vax_frame_saved_pc): Remove function.
9535 (vax_frame_args_address): Remove function.
9536 (vax_frame_num_args): Rewrite.
9537 (vax_frame_chain): Remove function.
9538 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9539 VAX_FP_REGNUM.
9540 (vax_pop_frame): Likewise.
9541 (vax_saved_pc_after_call): Remove function.
9542 (struct vax_frame_cache): New structure.
9543 (vax_frame_cache): New function.
9544 (vax_frame_this_id): New function.
9545 (vax_frame_prev_register): New function.
9546 (vax_frame_unwind): New variable.
9547 (vax_frame_sniffer): New function.
9548 (vax_frame_base_address): New function.
9549 (vax_frame_args_address): New function.
9550 (vax_frame_base): New variable.
9551 (vax_unwind_pc): New function.
9552 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9553 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9554 deprecated_frame_chain, deprecated_frame_saved_pc,
9555 deprecated_frame_args_address and
9556 deprecated_frame_init_saved_regs.
9557 * Makefile.in (vax-tdep.o): Update dependencies.
9558
53284fc1
MK
9559 * vaxbsd-nat.c: New file.
9560
5e6b39ff
MK
9561 * vax-tdep.h: Update copyright year. Adjust comments.
9562 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9563 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9564 (vax_regnum): New enum. Replacing...
9565 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9566 (VAX_PS_REGNUM): ... these removed macros.
9567 * vax-tdep.c (vax_register_name): Remove prototype.
9568 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9569 (vax_register_byte, vax_register_raw_size,
9570 vax_register_virtual_size, vax_register_virtual_type): Remove
9571 functions.
9572 (vax_register_type): New function.
9573 (vax_breakpoint_from_pc): Reorganize.
9574 (vax_gdbarch_init): Set register_type. Don't set
9575 deprecated_register_size, deprecated_register_bytes,
9576 deprecated_register_byte, deprecated_register_raw_size,
9577 deprecated_max_register_raw_size,
9578 deprecated_register_virtual_size,
9579 deprecated_max_register_virtual_size and
9580 deprecated_register_virtual_type. Add comment on stack direction.
9581
e9c71e9f
MK
95822004-04-11 Mark Kettenis <kettenis@gnu.org>
9583
9584 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9585 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9586 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9587
d46f1176 95882004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9589
d46f1176
RC
9590 * MAINTAINERS (write after approval): Add myself.
9591
a2a84a72
RC
95922004-04-07 Randolph Chung <tausq@debian.org>
9593
9594 * hppa-tdep.c (hppa_inner_than): Remove.
9595 (is_pa_2): Remove unused static variable.
8718a420 9596 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9597
e85c3284
PH
95982004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9599
9600 * language.h (language_defn): Add new la_post_parser field.
9601 * parser-defs.h (null_post_parser): New declaration (default for
9602 la_post_parser).
8718a420 9603
e85c3284
PH
9604 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9605 insert call to that function.
9606 (parse_exp_in_context): New function, including code formerly in
8718a420 9607 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9608 prefixification.
9609 (parse_expression_in_context): New exported function.
9610 (null_post_parser): New definition.
9611 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9612
e85c3284
PH
9613 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9614 * c-lang.c (c_language_defn): Ditto.
9615 (cplus_language_defn): Ditto.
9616 (asm_language_defn): Ditto.
9617 (minimal_language_defn): Ditto.
9618 * f-lang.c (f_language_defn): Ditto.
9619 * jv-lang.c (java_language_defn): Ditto.
9620 * language.c (unknown_language_defn): Ditto.
9621 (auto_language_defn): Ditto.
9622 (local_language_defn): Ditto.
9623 * m2-lang.c (m2_language_defn): Ditto.
9624 * scm-lang.c (scm_language_defn): Ditto.
9625 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9626
d9f8c85b
MK
96272004-04-10 Mark Kettenis <kettenis@gnu.org>
9628
fa34704a
MK
9629 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9630 (amd64nbsd_mcontext_addr): New function.
9631 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9632 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9633 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9634
403e1656
MK
9635 * corelow.c (core_xfer_partial): Fix coding standards violation.
9636 Add support for TARGET_OBJECT_WCOOKIE.
9637
a57e5a95
MK
9638 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9639 deprecated_pc_in_sigtramp.
9640 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9641 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9642 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9643 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9644 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9645 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9646 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9647
377d9ebd
MK
9648 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9649 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9650 Fix typo.
9651
f0ef85a5
MK
9652 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9653 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9654 (amd64_collect_fxsave): Likewise.
9655
d9f8c85b
MK
9656 * i386-sol2-tdep.c: Include "gdb_string.h".
9657 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9658 name.
9659 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9660
75f501b5
MK
96612004-04-10 Mark Kettenis <kettenis@gnu.org>
9662
9663 * i386-sol2-tdep.c: Include "solib-svr4.h".
9664 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9665 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9666 * config/i386/tm-i386sol2.h: Include :solib.h".
9667 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9668 solib-svr4.o and solib-legacy.o.
9669 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9670 solib-svr4.o.
9671
b31bc724
MK
96722004-04-09 Mark Kettenis <kettenis@gnu.org>
9673
18bbbd9e
MK
9674 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9675 whether a register is supplied by PTRACE_GETFPREGS.
9676 (store_inferior_registers): Likewise.
9677 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9678 whether a register is supplied by PT_GETFPREGS.
9679 (store_inferior_registers): Likewise.
9680
3c30bf1b
MK
9681 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9682 * config/i386/linux64.mt (TDEPFILES): Likewise.
9683
a4194092
MK
9684 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9685
911bc6ee
MK
9686 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9687 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9688 the program counter is in the range specified by `struct
9689 gdbarch_tdep'.
9690 * amd64-linux-tdep.c: Include "symtab.h".
9691 (amd64_linux_pc_in_sigtramp): Remove function.
9692 (amd64_linux_sigtramp_p): New function.
9693 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9694 deprecated_pc_in_sigtramp.
9695 * amd64nbsd-tdep.c: Include "symtab.h".
9696 (amd64nbsd_sigtramp_p): New function.
9697 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9698 deprecated_pc_in_sigtramp.
9699 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9700 few comments.
9701 (amd64obsd_pc_in_sigtramp): Remove function.
9702 (amd64obsd_sigtramp_p): New function.
9703 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9704 deprecated_pc_in_sigtramp.
9705 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9706 (i386bsd_pc_ins_sigtramp): Remove prototype.
9707 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9708 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9709 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9710 the program counter is in the range specified by `struct
9711 gdbarch_tdep'.
9712 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9713 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9714 (i386_go32_pc_in_sigtramp): Remove function.
9715 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9716 Initialize TDEP->sigtramp_p.
9717 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9718 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9719 deprecated_pc_in_sigtramp.
9720 * i386-linux-tdep.c: Adjust comments.
9721 (i386_linux_pc_in_sigtramp): Remove function.
9722 (i386_linux_sigtramp_p): New function.
9723 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9724 deprecated_pc_in_sigtramp.
9725 * i386-nto-tdep.c: Update copyright year.
9726 (i386nto_pc_in_sigtramp): Remove function.
9727 (i386nto_sigtramp_p): New function.
9728 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9729 SP_REGNUM.
9730 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9731 deprecated_pc_in_sigtramp.
9732 * i386-sol2-tdep.c: Update copyright year.
9733 (i386_sol2_pc_in_sigtramp): Remove function.
9734 (i386_sol2_sigtramp_p): New function.
9735 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9736 deprecated_pc_in_sigtramp.
9737 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9738 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9739 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9740 deprecated_sigtramp_start and deprecated_sigtramp_end.
9741 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9742 (i386nbsd_pc_in_sigtramp): Remove function.
9743 (i386nbsd_sigtramp_p): New function.
9744 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9745 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9746 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9747 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9748 (i386obsd_pc_in_sigtramp): Remove function.
9749 (i386obsd_sigtramp_p): New function.
9750 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9751 functions.
9752 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9753 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9754 TDEP->sigtramp_p.
9755 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9756 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9757 dependencies.
9758
e083e6ec
MK
9759 * config/i386/i386aout.mt: Remove file.
9760
bd153b94
MK
9761 * configure.tgt: Remove i[34567]86-*-go32*,
9762 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9763 and i[34567]86-*-isc*. Set gdb_target to i386 for
9764 i[34567]86-*-netware* and i[34567]86-*-*.
9765 * config/i386/i386.mt: New file.
9766 * config/i386/embed.mt: Remove file.
9767 * config/i386/go32.mt: Remove file.
9768 * config/i386/i386nw.mt: Remove file.
9769 * config/i386/i386v.mt: Remove file.
9770 * config/i386/tm-go32.h: Remove file.
9771
4a1bcc8c
MK
9772 * tui/tui-hooks.c: Include "readline/readline.h" after
9773 "gdb_curses.h" instead of before.
9774 * tui/tui-io.c: Likewise.
9775
f9a79064
MK
9776 * tui/tui.c: Fix typo in comment.
9777
b31bc724
MK
9778 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9779
f83f82bc
AC
97802004-04-08 Andrew Cagney <cagney@redhat.com>
9781
9782 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9783 (deprecated_exception_support_initialized): Declare.
8718a420 9784 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9785 (initialize_hp_cxx_exception_support)
9786 (child_enable_exception_callback): Update.
9787 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9788 (deprecated_exception_support_initialized): Rename
9789 deprecated_exception_catchpoints_are_fragile and
9790 deprecated_exception_support_initialized.
9791 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9792
9793 * symtab.c (deprecated_hp_som_som_object_present): Rename
9794 hp_som_som_object_present.
9795 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9796 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9797 Update. Delete extern declaration.
9798 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9799 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9800 (parse_nested_classes_for_hpacc): Ditto.
9801 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9802 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9803 (initialize_hp_cxx_exception_support): Ditto.
9804 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9805 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9806 (cp_print_class_method): Ditto.
8718a420 9807 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9808 (c_type_print_base): Ditto.
9809 * c-exp.y (hp_som_som_object_present): Ditto.
9810
fb2be677
AC
98112004-04-08 Andrew Cagney <cagney@redhat.com>
9812
9813 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9814 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9815 (frame_unwind_find_by_frame): Re-implement the unwind code so
9816 that it can both prepend and append sniffers. Replace
9817 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9818 * tramp-frame.c (tramp_frame_append): Use
9819 frame_unwind_prepend_unwinder.
9820 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9821 frame_unwind_register_unwinder.
9822 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9823 tramp_frame_append.
9824 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9825 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9826 (mips_linux_init_abi): Update.
9827
67faf007
KB
98282004-04-08 Kevin Buettner <kevinb@redhat.com>
9829
9830 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9831 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9832 file support.
9833
8973ff21
KB
98342004-04-07 Kevin Buettner <kevinb@redhat.com>
9835
9836 * ia64-tdep.c (elf.h): Don't include.
9837 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9838
4a0e2f88
JM
98392004-04-07 Jason Molenda (jmolenda@apple.com)
9840
9841 * frame.h: Typeo corrections in comments.
9842
9872ad24
JB
98432004-04-07 Jim Blandy <jimb@redhat.com>
9844
9845 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9846 %esp and %ebp
9847
70b216c8
MK
98482004-04-07 Mark Kettenis <kettenis@gnu.org>
9849
11d5789c
MK
9850 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9851 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9852 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9853 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9854 and solib-legacy.o.
9855 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9856 solib-svr4.o.
9857 * config/sparc/tm-sol2.h: Update copyright year. Include
9858 "solib.h".
9859
70b216c8
MK
9860 * sparc-sol2-tdep.c: Update copyright year. Include
9861 "solib-svr4.h".
9862 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9863 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9864 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9865 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9866 dependencies.
9867
6339dc9e
AC
98682004-04-06 Andrew Cagney <cagney@redhat.com>
9869
9870 * infttrace.c: Include "infttrace.h".
9871 * infttrace.h: Include "target.h".
9872 * Makefile.in (infttrace_h): Update.
9873 (infttrace.o): Update.
8718a420 9874
93449403
AC
98752004-04-06 Andrew Cagney <cagney@redhat.com>
9876
6d518969
AC
9877 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9878 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9879 move extern declarations from here ...
9880 * infttrace.h: ... to here.
9881 * Makefile.in (hppah-nat.o): Update dependencies.
9882
85f4f2d8
AC
9883 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9884 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9885 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9886 (hppa_breakpoint_from_pc): Delete.
9887
93449403
AC
9888 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9889
71456ec6
AC
98902004-04-05 Andrew Cagney <cagney@redhat.com>
9891
9892 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9893 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9894 <sys/file.h>.
8718a420 9895
4c02c60c
AC
98962004-04-06 Randolph Chung <tausq@debian.org>
9897
9898 Committed by Andrew Cagney (mechanical change).
9899 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9900 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9901 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9902 child_enable_exception_callback, current_ex_event,
9903 null_symtab_and_line, child_get_current_exception_event,
9904 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9905 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9906 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9907 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9908 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9909 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9910 Move hpux-specific definitions ...
9911 * hppa-hpux-tdep.c: ... to here.
9912
3a515653
AC
99132004-04-05 Andrew Cagney <cagney@redhat.com>
9914
9915 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9916 skip_prologue_using_sal.
9917
c1730d02
AC
99182004-04-05 Andrew Cagney <cagney@redhat.com>
9919
9920 * config/i386/tm-i386.h: Delete file.
9921 * config/i386/tm-vxworks.h: Update copyright, do not include
9922 "tm-i386.h".
9923 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9924 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9925 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9926 * config/i386/ncr3000.mt (TM_FILE): Delete.
9927 * config/i386/interix.mt (TM_FILE): Delete.
9928 * config/i386/i386v.mt (TM_FILE): Delete.
9929 * config/i386/i386nw.mt (TM_FILE): Delete.
9930 * config/i386/i386gnu.mt (TM_FILE): Delete.
9931 * config/i386/i386aout.mt (TM_FILE): Delete.
9932 * config/i386/embed.mt (TM_FILE): Delete.
9933
8b67aa36
KB
99342004-04-05 Kevin Buettner <kevinb@redhat.com>
9935
9936 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9937 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9938 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9939 (accg7_regnum): New constants.
9940 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9941 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9942 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9943 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9944 for accg registers.
9945 (frv_register_sim_regno): Update spr_map[].
9946
3c7012f5
AC
99472004-04-04 Andrew Cagney <cagney@redhat.com>
9948
9949 * config/mips/xm-riscos.h: Delete.
9950 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9951 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9952 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9953 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9954 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9955 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9956 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9957 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9958 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9959 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9960 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9961 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9962 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9963 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9964 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9965 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9966 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9967 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9968 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9969 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9970 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9971 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9972 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9973 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9974 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9975 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9976
3c7012f5
AC
9977 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9978 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9979 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9980 * configure.host: Remove m680[01]0-sun-sunos3*,
9981 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9982 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9983 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9984 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9985 mips-*-riscos*.
9986 * NEWS: Mention removed systems.
9987
99d16a21
AC
99882004-04-04 Andrew Cagney <cagney@redhat.com>
9989
9990 GDB 6.1 release created from 6.1 branch.
9991
6cdf9d98
AC
99922004-04-04 Andrew Cagney <cagney@redhat.com>
9993
98d346c3
AC
9994 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9995 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9996 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9997
6cdf9d98
AC
9998 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9999 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10000 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10001
859a326d
JB
100022004-04-03 Jim Blandy <jimb@redhat.com>
10003
10004 * MAINTAINERS: Chris Faylor has changed employers; add him to
10005 "paper trail" section, and update his E-mail address.
10006
b87178c3
AC
100072004-04-03 Andrew Cagney <cagney@redhat.com>
10008
4ea2acf0
AC
10009 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10010 generic dummy frames.
10011 * dummy-frame.c: Update copyright.
10012 (dummy_frame_sniffer): Delete check for generic dummy frames.
10013
d0bd2d18 10014 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 10015 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
10016 (REG_PARM_STACK_SPACE): Delete.
10017 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10018 Inline reference to REG_PARM_STACK_SPACE.
10019
b87178c3
AC
10020 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10021 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10022 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10023 (FRAME_BASE_BEFORE_SIGTRAMP)
10024 (hppa32_hpux_frame_base_before_sigtramp)
10025 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10026 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10027 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10028 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10029 (FRAME_BASE_BEFORE_SIGTRAMP)
10030 (hppa64_hpux_frame_base_before_sigtramp)
10031 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10032
43e2e1a0
AC
100332004-04-03 Andrew Cagney <cagney@redhat.com>
10034
10035 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10036
ddc135a4
AC
100372004-04-02 Andrew Cagney <cagney@redhat.com>
10038
10039 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10040 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10041 * dummy-frame.h: Delete out-of-date comments.
10042 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10043 * gdbarch.h, gdbarch.c: Re-generate.
10044
d15bfd3a 100452004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 10046
d15bfd3a
AC
10047 Committed by Andrew Cagney <cagney@redhat.com>.
10048 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10049 into account an instruction saving a register if we have already
10050 seen an earlier instruction saving that same register.
10051
f04ceafa
AC
100522004-04-02 Andrew Cagney <cagney@redhat.com>
10053
08be3abd
AC
10054 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10055 * gdbarch.h, gdbarch.c: Re-generate.
10056 * frame.c (legacy_get_prev_frame): Delete references to
10057 DEPRECATED_INIT_FRAME_PC_FIRST.
10058
f04ceafa
AC
10059 * infrun.c (pc_in_sigtramp): Delete function.
10060 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10061 get_frame_type.
10062
08e69816
AC
100632004-04-02 Andrew Cagney <cagney@redhat.com>
10064
10065 * infrun.c (handle_step_into_function): Delete code conditional on
10066 legacy_frame_p.
10067 (handle_inferior_event, step_over_function): Ditto.
10068
adb54772
AC
100692004-04-02 Andrew Cagney <cagney@redhat.com>
10070
10071 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10072 "previous frame inner to this frame" test.
10073
304396fb
AC
100742004-04-02 Andrew Cagney <cagney@redhat.com>
10075
10076 * frame.c (safe_frame_unwind_memory): New function.
10077 * frame.h (safe_frame_unwind_memory): Declare. Update description
10078 of /safe_/ methods.
10079 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10080 "next_frame". Use safe_frame_unwind_memory.
10081 (tramp_frame_sniffer): Update call to tramp_frame_start.
10082
6502dd73
DJ
100832004-04-01 Daniel Jacobowitz <drow@mvista.com>
10084
10085 * dwarf2read.c (dwarf2_objfile_data_key): New.
10086 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10087 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10088 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10089 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10090 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10091 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10092 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10093 Remove variables.
10094 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10095 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10096 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10097 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10098 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10099 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10100 Remove macros.
10101 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10102 data.
10103 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10104 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10105 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10106 (read_partial_die, read_full_die, read_indirect_string)
10107 (dwarf_decode_line_header, dwarf_decode_macros)
10108 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10109 Update uses of removed variables.
10110 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10111 of removed macros.
10112 (_initialize_dwarf2_read): New function.
10113 * symfile.h (dwarf2_has_info): Update prototype.
10114 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10115 * elfread.c (elf_symfile_read): Likewise.
10116
408752b0
JB
101172004-04-01 Jim Blandy <jimb@redhat.com>
10118
9f744501
JB
10119 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10120 function for register numbers on all the rs6000-derived targets.
10121 (rs6000_gdbarch_init): Don't register a separate
10122 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10123 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10124 variants.
10125
408752b0
JB
10126 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10127 numbering.
10128
2de41bce
PH
101292004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10130
10131 * valarith.c: Update copyright notice.
10132 (value_add): Handle range types.
10133 (value_sub): Ditto.
10134 (value_equal): Ditto.
10135 (value_less): Ditto.
10136 (value_neg): Ditto.
10137 (value_complement): Ditto.
8718a420 10138 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 10139 eliminiating unnecessary COERCE_ENUMs.
8718a420 10140
5613d8d3
AC
101412004-03-31 Andrew Cagney <cagney@redhat.com>
10142
10143 * frame.h (frame_unwind_id): Declare.
10144 * frame.c (frame_unwind_id): New function.
10145 (get_prev_frame_1): New function.
10146 (frame_debug_got_null_frame): New function.
10147 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10148 code proper to prev_frame, update description.
10149 * infrun.c (step_over_function): Use frame_unwind_id.
10150
c4557624
JB
101512004-04-31 J. Brobecker <brobecker@gnat.com>
10152
10153 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10154 (hppa64_push_dummy_call): Likewise.
10155
3e6bb910
JB
101562004-03-30 Jim Blandy <jimb@redhat.com>
10157
10158 From Ulrich Weigand:
10159 * utils.c (query): Do not use a va_list variable multiple times.
10160
a2f23071
DJ
101612004-03-29 Daniel Jacobowitz <drow@mvista.com>
10162
10163 * Makefile.in (linux_nat_h): Update dependencies.
10164 * configure.in: Check for <gnu/libc-version.h>.
10165 * configure: Regenerate.
10166 * config.in: Regenerate.
10167 * linux-nat.h: Include "target.h". Add waitstatus field to
10168 struct lwp_info.
10169 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10170 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10171 to.
10172 (lin_lwp_handle_extended): New function. Handle clone events.
10173 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10174 thread exit events.
10175 (child_wait): Handle clone events.
10176 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10177 * linux-nat.c (linux_enable_event_reporting): Turn on
10178 PTRACE_O_TRACECLONE.
10179 (linux_handle_extended_wait): Handle clone events.
10180 * thread-db.c: Include <gnu/libc-version.h>.
10181 (struct private_thread_info): Add dying flag.
10182 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10183 higher.
10184 (attach_thread): Update comments. Handle dying threads.
10185 (detach_thread): Set the dying flag.
10186 (check_event): Always call attach_thread.
10187
8d5f9dcb
DJ
101882004-03-29 Daniel Jacobowitz <drow@mvista.com>
10189
10190 * mips-tdep.c (mips_pdr_data): New.
10191 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10192 (_initialize_mips_tdep): Initialize mips_pdr_data.
10193
66337bb1
CV
101942004-03-29 Corinna Vinschen <vinschen@redhat.com>
10195
10196 * minsyms.c (install_minimal_symbols): Move dropping leading
10197 char from linkage name from here...
10198 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10199 test for "__gnu_compiled*" symbols.
10200
e802b915
JB
102012004-03-28 Jim Blandy <jimb@redhat.com>
10202
10203 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10204 registers to temp register r0 and byte stores as prologue
10205 instructions.
10206
72b56458
AC
102072004-03-28 Andrew Cagney <cagney@redhat.com>
10208
10209 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10210 arm*-*-*.
10211
0bfbda3b
SC
102122004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10213
10214 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10215 and switch the layout to force a display of register window.
10216
5a7225ed
JB
102172004-02-26 J. Brobecker <brobecker@gnat.com>
10218
10219 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10220 of the INTEGER class.
10221
81a07a45
JB
102222004-03-26 Jim Blandy <jimb@redhat.com>
10223
10224 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10225 bytes long on PPC GNU/Linux.
10226
8c691c7a
DC
102272004-03-26 David Carlton <carlton@kealia.com>
10228
10229 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10230
103a0089
AC
102312004-03-25 Andrew Cagney <cagney@redhat.com>
10232
10233 * PROBLEMS: Add general section titles, remove references to
10234 specific releases.
10235
7a5ea0d4
DJ
102362004-03-25 Daniel Jacobowitz <drow@mvista.com>
10237
10238 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10239 INT_REGISTER_SIZE.
10240 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10241 FP_REGISTER_VIRTUAL_SIZE.
10242 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10243 of DEPRECATED_REGISTER_RAW_SIZE.
10244 (arm_register_type): Add gdbarch argument.
10245 (arm_register_raw_size, arm_register_virtual_size): Delete.
10246 (arm_register_byte, arm_extract_return_value)
10247 (arm_store_return_value, arm_get_longjmp_target): Update references
10248 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10249 (arm_gdbarch_init): Likewise. Don't set
10250 deprecated_register_raw_size, deprecated_register_virtual_size,
10251 deprecated_max_register_raw_size,
10252 deprecated_max_register_virtual_size, or
10253 deprecated_max_register_virtual_type. Do set register_type.
10254 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10255 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10256 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10257 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10258 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10259 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10260 INT_REGISTER_SIZE.
10261 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10262 (remote_rdp_store_register): Likewise.
10263
5792a79b
DJ
102642004-03-24 Daniel Jacobowitz <drow@mvista.com>
10265
10266 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10267 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10268 to after osabi initialization.
10269 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10270 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10271 functions.
10272 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10273 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10274 variables.
10275 (mips_linux_init_abi): Append signal trampoline unwinders.
10276
1196bfda
AC
102772004-03-24 Andrew Cagney <cagney@redhat.com>
10278
10279 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10280 * tramp-frame.c: Include "gdb_assert.h".
10281 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10282 correct sizeof.
10283 (tramp_frame_append): Validate the tramp frame's instructions.
10284 * Makefile.in (tramp-frame.o): Update dependencies.
10285
4be282b4
AC
102862004-03-23 Andrew Cagney <cagney@redhat.com>
10287
10288 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10289
69aec09b
AC
102902004-03-23 Andrew Cagney <cagney@redhat.com>
10291
10292 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10293 Nasser as past testsuite/lib/ (and other) maintainers.
10294
63ed89b4
DJ
102952004-03-23 Daniel Jacobowitz <drow@mvista.com>
10296
10297 * infcmd.c (attach_command): Reread symbols if we already have
10298 an exec file.
10299
f3b36427
AC
103002004-03-23 Andrew Cagney <cagney@redhat.com>
10301
10302 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10303
aa2a3f87
AC
103042004-03-23 Andrew Cagney <cagney@redhat.com>
10305
10306 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10307 * gdbarch.h, gdbarch.c: Re-generate.
10308 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10309 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10310 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 10311 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 10312 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 10313 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
10314 (DEPRECATED_SIGTRAMP_START): Update.
10315 * blockframe.c (find_pc_sect_partial_function): Update.
10316 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10317
00cac895
DJ
103182004-03-23 Daniel Jacobowitz <drow@mvista.com>
10319
10320 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10321 if necessary.
10322
f561f026
AC
103232004-03-23 Andrew Cagney <cagney@redhat.com>
10324
10325 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10326 predicate, deprecate.
10327 * gdbarch.h, gdbarch.c: Re-generate.
10328 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10329 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10330 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10331 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10332 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10333 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10334 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10335 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10336 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10337 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10338 * blockframe.c (find_pc_partial_function): Update.
10339 * breakpoint.c (bpstat_what): Update.
10340 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10341 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10342 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10343 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10344 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10345 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10346 * i386-nto-tdep.c (i386nto_init_abi): Update.
10347 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10348 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10349 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10350 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10351 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10352 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10353 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10354 * infrun.c (pc_in_sigtramp): Update.
10355 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10356 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10357 * mips-tdep.c (mips_gdbarch_init): Update.
10358 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10359 * ppc-linux-tdep.c: Update comment.
10360 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10361 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10362 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10363 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10364 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10365 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10366 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10367 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10368 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10369 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 10370
8050c72f
AC
103712004-03-23 Andrew Cagney <cagney@redhat.com>
10372
d2259dd3
AC
10373 * tramp-frame.h, tramp-frame.h: New files.
10374 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10375 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10376
8050c72f
AC
10377 * Makefile.in: Update all dependencies.
10378
0db9b4b7
AC
103792004-03-23 Andrew Cagney <cagney@redhat.com>
10380
10381 * Makefile.in (trad_frame_h): Add $(frame_h).
10382 * trad-frame.h: Update copyright. Include "frame.h".
10383 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10384 (trad_frame_set_id, trad_frame_get_id): Declare.
10385 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10386 * trad-frame.c: Update copyright.
10387 (struct trad_frame_cache): Define.
10388 (trad_frame_cache_zalloc): New function.
10389 (trad_frame_set_id, trad_frame_get_id): New functions.
10390 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 10391
8e645ae7
AC
103922004-03-22 Andrew Cagney <cagney@redhat.com>
10393
10394 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10395 s390_pltstub_unwind_cache.
10396 (s390_stub_frame_unwind_cache): Rename
10397 s390_pltstub_frame_unwind_cache.
10398 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10399 (s390_stub_frame_prev_register): Rename
10400 s390_pltstub_frame_prev_register.
10401 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10402 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10403
10404 From Ulrich Weigand:
10405 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10406 pointer calls like PLT calls.
10407
34fcf120
DJ
104082004-03-22 Daniel Jacobowitz <drow@mvista.com>
10409
10410 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10411 PC rather than the partial function start address. Use the start
10412 address to sanity check the found PDR.
10413
5b917078
DJ
104142004-03-22 Daniel Jacobowitz <drow@mvista.com>
10415
10416 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10417 linux_handle_extended_wait.
10418
8adf9e78
AC
104192004-03-22 Andrew Cagney <cagney@redhat.com>
10420
c3122434
AC
10421 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10422 function.
10423
8adf9e78
AC
10424 * frame.h (generic_pop_current_frame): Delete declaration.
10425 (deprecate_pop_dummy_frame): Deprecate
10426 generic_pop_dummy_frame.
10427 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10428 (generic_pop_current_frame): Delete function.
10429 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10430 generic_pop_current_frame.
10431 * v850-tdep.c (v850_pop_frame): Update.
10432 * mcore-tdep.c (mcore_pop_frame): Update.
10433 * sh64-tdep.c (sh64_pop_frame): Update.
10434 * h8300-tdep.c (h8300_pop_frame): Update.
10435
90ba813f
AC
104362004-03-22 Andrew Cagney <cagney@redhat.com>
10437
10438 * frame.h (deprecated_pc_in_call_dummy): Rename
10439 generic_pc_in_call_dummy.
10440 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10441 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10442 generic_pc_in_call_dummy.
10443 (pc_in_dummy_frame): Make static.
10444 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10445 * gdbarch.h, gdbarch.c: Re-generate.
10446 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10447 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10448 (legacy_get_prev_frame): Ditto.
10449 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10450 comment.
8718a420 10451
ca4bb888
AC
104522004-03-21 Andrew Cagney <cagney@redhat.com>
10453
244675f9
AC
10454 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10455 declaration and out-of-date comment.
10456 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10457 Delete function.
10458 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10459 deprecated_pc_in_call_dummy.
10460
ca4bb888
AC
10461 * infrun.c (handle_inferior_event): For non legacy frames, use the
10462 frame ID and frame type to identify a signal trampoline. Update
10463 comments.
10464
1777c7b4
NW
104652004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10466
10467 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10468 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10469
82417da5
AC
104702004-03-21 Andrew Cagney <cagney@redhat.com>
10471
10472 * frame-unwind.h: Update copyright.
10473 (struct frame_data): Add opaque declaration.
10474 (frame_sniffer_ftype): Declare.
10475 (struct frame_unwind): Add "unwind_data" and "sniffer".
10476 (frame_unwind_register_unwinder): Declare.
10477 (frame_unwind_find_by_frame): Add parameter "this_cache".
10478 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10479 (legacy_get_prev_frame, legacy_get_prev_frame)
10480 (get_frame_type): Pass the prologue_cache to
10481 frame_unwind_find_by_frame.
10482 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10483 "unwinder".
10484 (frame_unwind_register_unwinder): New function.
10485 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10486
b2ba182e
PH
104872004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10488
10489 * bcache.c (print_percentage): Use floating point to avoid
10490 incorrect results when portion*100 overflows.
10491
81332287
KB
104922004-03-19 Kevin Buettner <kevinb@redhat.com>
10493
10494 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10495 (ppc_linux_init_extra_frame_info)
10496 (ppc_linux_frameless_function_invocation)
10497 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10498 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10499 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10500 (rs6000_frame_chain): Delete declarations.
10501 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10502 (ppc_linux_init_extra_frame_info)
10503 (ppc_linux_frameless_function_invocation)
10504 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10505 (ppc_linux_init_abi): Remove registration of above deleted functions.
10506 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10507 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10508 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10509 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10510 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10511 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10512 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10513 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10514 frame management for all OSABIs.
10515
61a65099
KB
105162004-03-19 Andrew Cagney <cagney@redhat.com>
10517
10518 Committed by Kevin Buettner <kevinb@redhat.com>.
10519
10520 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10521 Update copyright.
10522 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10523 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10524 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10525 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10526 unwinders. #ifdef legacy frame code.
10527 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10528 "frame-base.h".
10529 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10530 (struct rs6000_frame_cache, rs6000_frame_cache)
10531 (rs6000_frame_this_id, rs6000_frame_prev_register)
10532 (rs6000_frame_sniffer, rs6000_frame_unwind)
10533 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10534 (rs6000_frame_base): Implement a traditional frame unwinder.
10535 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10536 frame unwinder.
10537
88f7da05
KB
105382004-03-19 Kevin Buettner <kevinb@redhat.com>
10539
10540 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10541 breakpoint address for watchpoints or the catch eventpoints.
10542 Add new paramter ``bptype''. Adjust all callers.
10543
f826dce1
AC
105442004-03-19 Andrew Cagney <cagney@redhat.com>
10545
33cb8b0f
AC
10546 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10547
f826dce1
AC
10548 * PROBLEMS: Delete note that ARM does not use frame code, problem
10549 fixed.
10550
43b1ab88
AC
105512004-03-18 Andrew Cagney <cagney@redhat.com>
10552
292ab034
AC
10553 * stack.c (return_command): Delete code wrapped in #ifdef
10554 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10555
43b1ab88
AC
10556 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10557
dbfe4626
AC
105582004-03-18 Andrew Cagney <cagney@redhat.com>
10559
10560 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10561 DEPRECATED_IN_SIGTRAMP.
10562 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10563 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10564 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10565 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10566 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10567 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10568 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10569 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10570 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10571 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10572
0cad6aec
AC
105732004-03-18 Andrew Cagney <cagney@redhat.com>
10574
10575 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10576 (struct frame_base_table_entry): Define.
10577 (struct frame_base_table): Re-implement as a linked list.
10578 (frame_base_init): Re-implement.
10579 (frame_base_table): Delete function.
10580 (append_predicate): Delete function.
10581 (frame_base_append_sniffer): Update.
10582 (frame_base_set_default): Update.
10583 (frame_base_find_by_frame): Update.
10584 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10585 * Makefile.in (frame-base.o): Update dependencies.
10586
9982c2e7
AC
105872004-03-17 Andrew Cagney <cagney@redhat.com>
10588
10589 * frame.c (legacy_get_prev_frame): Pass correct frame to
10590 frame_unwind_find_by_frame.
10591
8dfe8985
DC
105922004-03-17 David Carlton <carlton@kealia.com>
10593
10594 * NEWS: Mention C++ nested types and namespaces
10595
ed47347a
MC
105962004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10597
10598 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10599 and "Regressions since gdb 5.3.". Add known regressions since
10600 gdb 6.0.
10601
90aeadfc
DC
106022004-03-16 David Carlton <carlton@kealia.com>
10603
10604 * dwarf2read.c (process_structure_scope): Process children even
10605 when we're a declaration.
10606
73912b9b
AC
106072004-03-16 Andrew Cagney <cagney@redhat.com>
10608
10609 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10610 * blockframe.c (find_pc_partial_function)
10611 (find_pc_sect_partial_function): Merge into a single
10612 find_pc_partial_function.
10613
283accbc
MK
106142004-03-16 Mark Kettenis <kettenis@gnu.org>
10615
10616 * i386bsd-nat.c: s/regno/regnum/g.
10617 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10618 FP0_REGNUM.
10619 (store_inferior_registers): Likewise.
10620
f5b1afdf
MK
106212004-03-16 Mark Kettenis <kettenis@gnu.org>
10622
10623 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10624 of i387_fill_fsave.
10625 (store_inferior_registers): Call i387_collect_fsave and
10626 i387_collect_fxsave instead of i387_fill_fsave and
10627 i387_fill_fxsave.
10628
41fe5eb3
AC
106292004-03-15 Andrew Cagney <cagney@redhat.com>
10630
10631 * Makefile.in (frame-unwind.o): Update dependencies.
10632 * frame-unwind.c: Include "gdb_obstack.h".
10633 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10634 parameter.
10635 (append_predicate): Delete function.
10636 (struct frame_unwind_table_entry): New structure.
10637 (struct frame_unwind_table): Replace "sniffer" with "head" and
10638 "tail".
10639 (frame_unwind_append_sniffer): Update.
10640 (frame_unwind_find_by_frame): Update.
10641 (_initialize_frame_unwind): Registe frame_unwind_init using
10642 gdbarch_data_register_pre_init.
10643
3f63813d
MK
106442004-03-15 Mark Kettenis <kettenis@gnu.org>
10645
10646 * i386bsd-nat.c: Update copyright year.
10647 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10648 define unconditionally.
10649
3248c325 106502004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10651
10652 * i387-tdep.h (i387_collect_fsave): New prototype.
10653 * i387-tdep.c (i387_collect_fsave): New function containing most
10654 of the code from i387_fill_fsave.
3248c325 10655 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10656
871fbe6a
MK
106572004-03-15 Mark Kettenis <kettenis@gnu.org>
10658
10659 * i386-linux-tdep.c: Update copyright year.
10660 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10661 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10662 svr4_ilp32_link_map_offsets instead of
10663 i386_linux_svr4_fetch_link_map_offsets.
10664
8176b9b8
DC
106652004-03-15 David Carlton <carlton@kealia.com>
10666
10667 Fix for PR c++/1553:
10668 * dwarf2read.c (read_structure_type): Determine type name by
10669 calling determine_class_name.
10670 (determine_class_name): New.
10671 (determine_prefix): Look at TYPE_TAG_NAME and call
10672 determine_class_name when appropriate.
10673 (determine_prefix_aux, class_name): Delete.
9d58e29d 10674 (read_namespace): Set die->type.
8176b9b8 10675
fe8bf7d7
KB
106762004-03-15 Kevin Buettner <kevinb@redhat.com>
10677
10678 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10679 unused macro definition. The definition in target.h (or perhaps
10680 elsewhere) takes precedence.
10681
ed6edd9b
AC
106822004-03-15 Andrew Cagney <cagney@redhat.com>
10683
f9be684a
AC
10684 * ppc-tdep.h: Update copyright.
10685 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10686 function signatures to match "regsets.h".
10687 * ppc-linux-tdep.c: Include "regset.h".
10688 (ELF_GREGSET_SIZE): Delete.
10689 (right_supply_register): New function.
10690 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10691 using right_supply_register.
10692 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10693 functions.
10694 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10695 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10696 (_initialize_ppc_linux_tdep): Do not register
10697 ppc_linux_regset_core_fns.
10698 (ppc_linux_regset_from_core_section): Replace
10699 fetch_core_registers.
10700 (ppc_linux_regset_core_fns): Delete.
10701 * ppc-linux-nat.c: (right_fill_reg): New function.
10702 (supply_gregset): Update call to ppc_linux_supply_gregset.
10703 (fill_gregset): Clear the register set, use right_fill_reg.
10704 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10705 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10706
ed6edd9b
AC
10707 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10708 unsigned.
10709
030f20e1
AC
107102004-03-15 Andrew Cagney <cagney@redhat.com>
10711
10712 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10713 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10714 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10715 and register_gdbarch_data.
10716 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10717 (struct gdbarch_data): Replace "init" by "pre_init" and
10718 "post_init".
10719 * gdbarch.h, gdbarch.c: Re-generate.
10720 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10721 with"obstack", use OBSTACK_ZALLOC.
10722 (dwarf2_frame_ops): Delete.
10723 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10724 (dwarf2_frame_init_reg): Use gdbarch_data.
10725 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10726 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10727 (_initialize_svr4_solib): Update.
10728 * user-regs.c (_initialize_user_regs): Update.
10729 * reggroups.c (_initialize_reggroup): Update.
10730 * regcache.c (_initialize_regcache): Update.
10731 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10732 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10733 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10734 * frame-unwind.c (_initialize_frame_unwind): Update.
10735 * frame-base.c (_initialize_frame_base): Update.
10736 * user-regs.c (user_reg_add): Update.
10737 * reggroups.c (reggroup_add): Update.
10738 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10739 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10740 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10741 * frame-base.c (frame_base_table): Update.
10742 * remote.c (_initialize_remote): Update.
10743 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10744
3111a3fc
AC
107452004-03-15 Andrew Cagney <cagney@redhat.com>
10746
10747 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10748
5ecb7103
KB
107492004-03-15 Kevin Buettner <kevinb@redhat.com>
10750
10751 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10752 * frv-linux-tdep.c: New file.
10753 * frv-tdep.c (struct gdbarch_tdep): Add new field
10754 ``sigcontext_reg_addr''.
10755 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10756 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10757 (frv_sigramp_frame_sniffer): New functions.
10758 (frv_sigtramp_frame_unwind): New static global.
10759 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10760 sniffers.
10761 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10762 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10763
1ccda5e9
KB
107642004-03-15 Kevin Buettner <kevinb@redhat.com>
10765
10766 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10767 but not via a call to error(), when unable to read memory.
10768
b375a0a5
KB
107692004-03-15 Kevin Buettner <kevinb@redhat.com>
10770
10771 * frv-tdep.c (frv_call_dummy_words): Delete.
10772 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10773
4fdf6121
AC
107742004-03-15 Andrew Cagney <cagney@redhat.com>
10775
10776 * infrun.c (handle_step_into_function, step_over_function): Only
10777 update and use STEP_FRAME_ID when the system is using legacy
10778 frames. Update comments.
10779
34021503
MK
107802004-03-14 Mark Kettenis <kettenis@gnu.org>
10781
187e21d1
MK
10782 * amd64-linux-tdep.h: Remove file.
10783 * amd64-linux-tdep.c: Don't include "inferior.h" and
10784 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10785 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10786 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10787 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10788 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10789 macros.
10790 (user_to_gdb_regmap): Remove variable.
10791 (amd64_linux_gregset_reg_offset): New variable.
10792 (amd64_core_fns): Remove variable.
10793 (fetch_core_registers): Remove function.
10794 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10795 functions.
10796 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10797 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10798 * Makefile.in (amd64_linux_tdep_h): Remove.
10799 (amd64-linux-nat.o): Update dependencies.
10800 (amd64-linux-tdep.o): Update dependencies.
10801
99679982
MK
10802 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10803 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10804 functions.
10805 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10806
34021503
MK
10807 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10808 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10809
134d01f1
DJ
108102004-03-14 Daniel Jacobowitz <drow@mvista.com>
10811
10812 * dwarf2read.c (read_structure_type): Rename from
8718a420 10813 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10814 Return immediately if die->type is set. Call read_type_die before
10815 dwarf2_add_member_fn.
10816 (process_structure_scope): New function.
10817 (read_enumeration_type, process_enumeration_scope): New functions,
10818 broken out from read_enumeration. Don't create the enumeration
10819 type if it has already been created.
10820 (read_enumeration): Removed.
10821 (process_die): Call read_structure_type, process_structure_scope,
10822 read_enumeration_type, and process_enumeration_scope. Just call
10823 new_symbol for base and subrange types. Add a comment about other
10824 type dies.
10825 (read_type_die): Call read_enumeration_type.
10826 (add_partial_structure, new_symbol): Update comments.
10827
65760afb
SC
108282004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10829
10830 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10831
10f59415
SC
108322004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10833
10834 * tui/tui-win.h (tui_get_cmd_list): Declare.
10835 * tui/tui-win.c (tui_command): New function.
10836 (tui_get_cmd_list): New function.
10837 (_initialize_tui_win): Moved initialization of tui command in
10838 tui_get_cmd_list.
10839
10840 * tui/tui-data.c (init_content_element): Setup new data members.
10841 (init_win_info): Likewise.
10842 (free_content_elements): Free it.
10843 * tui/tui-data.h (struct tui_data_element): Store the register
10844 content to print.
10845 (struct tui_data_info): Keep the current register group.
10846
10847 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10848
10849 * tui/tui-regs.h (tui_show_registers): Update prototype.
10850 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10851 (tui_resize_all): No need to calculate anything for register window.
10852 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10853 (tui_set_register_element, tui_set_general_regs_content): Remove.
10854 (tui_set_special_regs_content): Remove.
10855 (tui_set_general_and_special_regs_content): Remove.
10856 (tui_set_float_regs_content): Remove.
10857 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10858 (tui_set_regs_content): Remove.
10859 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10860 (tui_v_show_registers_command_support): Remove.
10861 (tui_show_registers): Use a reggroup to specify the registers to show.
10862 (tui_show_register_group): New function.
10863 (tui_display_registers_from): Compute the layout of register window
10864 and refresh with new API; be sure to delete old register windows.
10865 (tui_check_register_values): Update to use tui_get_register and
10866 tui_display_data.
10867 (tui_display_register): Just refresh the register window part.
10868 (tui_register_format): Format registers and save in tui_data_element.
10869 (tui_get_register): New to combine tui_reg_value_has_changed and
10870 tui_get_register_raw_value; fix to use the new gdb API.
10871 (tui_show_float_command): Renamed tui_reg_float_command.
10872 (tui_show_general_command): Renamed tui_reg_general_command.
10873 (tui_show_special_command): Renamed tui_reg_system_command.
10874 (_initialize_tui_regs): Remove unused commands.
10875
c3364ea4
MK
108762004-03-13 Mark Kettenis <kettenis@gnu.org>
10877
27d1e716
MK
10878 * NEWS (New native configurations): Mention OpenBSD/amd64.
10879
c3364ea4
MK
10880 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10881 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10882 Remove defines.
10883 * config/i386/nm-fbsd64.h: Likewise.
10884 * config/i386/nm-obsd.h: Likewise.
10885 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10886 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10887
b2d6d697
KB
108882004-03-12 Kevin Buettner <kevinb@redhat.com>
10889
10890 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10891 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10892 New constants.
10893
76e43199
KB
10894 From Richard Sandiford <rsandifo@redhat.com>:
10895 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10896
34ce532e
KB
108972004-03-12 Kevin Buettner <kevinb@redhat.com>
10898
10899 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10900 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10901 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10902 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10903 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10904 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10905 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10906 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10907 definitions from frv-tdep.c to frv-tdep.h.
10908
c4d10515
KB
109092004-03-12 Kevin Buettner <kevinb@redhat.com>
10910
10911 Add shared library support for FR-V FDPIC ABI:
10912 * Makefile.in (solib-frv.o): Add dependencies.
10913 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10914 New functions.
10915 (frv_push_dummy_call): Add support for FDPIC ABI.
10916 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10917 for FDPIC ABI.
10918 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10919 (frv_fdpic_find_canonical_descriptor): Declare.
10920 * solib-frv.c: New file.
10921 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10922 * config/frv/tm-frv.h (solib.h): Include.
10923
ed1bd989
KB
109242004-03-12 Kevin Buettner <kevinb@redhat.com>
10925
10926 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10927 (frv-tdep.o): Update dependencies.
10928 * frv-tdep.h: New file.
10929 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10930 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10931 constants.
10932 (struct gdbarch_tdep): Add new member ``frv_abi''.
10933 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10934 functions.
10935 (new_variant): Set ``frv_abi'' field.
10936 (gdb_arch_init): Detect FDPIC executables.
10937
82b38f72
MK
109382004-03-12 Mark Kettenis <kettenis@gnu.org>
10939
10940 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10941 wrapper.
10942
db1ea9ba
AC
109432004-03-11 Andrew Cagney <cagney@redhat.com>
10944
10945 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10946
f8766ec1
KB
109472004-03-11 Kevin Buettner <kevinb@redhat.com>
10948
10949 * solist.h (master_so_list): New function.
10950 * solib.c (master_so_list): Likewise.
10951 * solib-svr4.c (enable_break): Iterate over so_list entries
10952 obtained from master list instead of entries obtained directly
10953 via svr4_current_sos().
10954
523f6a27
BE
109552004-03-10 Ben Elliston <bje@gnu.org>
10956
10957 * MAINTAINERS: Update my mail address.
10958
37814c18
KI
109592004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10960
10961 * remote-m32r-sdi.c: Support hardware watchpoint.
10962
8b9740d8
DJ
109632004-03-09 Daniel Jacobowitz <drow@mvista.com>
10964
10965 * user-regs.c: Update copyright years.
10966 (struct user_regs): Rename to gdb_user_regs.
10967 (append_user_reg, builtin_user_regs, user_regs_init)
10968 (user_reg_add, user_reg_map_name_to_regnum)
10969 (usernum_to_user_reg): Update.
10970
4bb7a0a7
DJ
109712004-03-09 Daniel Jacobowitz <drow@mvista.com>
10972
10973 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10974 (skip_children): New functions.
10975 (locate_pdi_sibling): Call skip_children.
10976
44e1a9eb
DJ
109772004-03-09 Daniel Jacobowitz <drow@mvista.com>
10978
10979 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10980 * gdbtypes.c (check_typedef): Update comments.
10981
f3dd6933
DJ
109822004-03-09 Daniel Jacobowitz <drow@mvista.com>
10983
10984 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10985 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10986 pointer. Update comment about comp_unit_head.
10987 (struct abbrev_info): Shorten two int flags.
10988 (dwarf_alloc_abbrev): Take a CU argument.
10989 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10990 each time through the loop. Update cleanup argument.
10991 (psymtab_to_symtab_1): Update cleanup call.
10992 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10993 abbrev_obstack.
10994 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10995 Just call obstack_free and clear the pointer.
10996
b40c7d58
DJ
109972004-03-09 Daniel Jacobowitz <drow@mvista.com>
10998
10999 * infrun.c (handle_inferior_event): Remove short-circuit code for
11000 events in a different thread.
11001
333dabeb
DJ
110022004-03-09 Daniel Jacobowitz <drow@mvista.com>
11003
11004 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11005 print the whole transfer.
11006 (initialize_targets): Update description of "set debug target".
11007
aa17d93e
DJ
110082004-03-09 Daniel Jacobowitz <drow@mvista.com>
11009
11010 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11011
0b71f08f
NW
110122004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11013
11014 * MAINTAINERS (write after approval): Add myself.
11015
3930f270
CV
110162004-03-08 Corinna Vinschen <vinschen@redhat.com>
11017
11018 * sh-tdep.c (sh_print_registers_info): Use for loop.
11019 Don't skip multiple registers when a float register is encountered.
11020
a2b4a96c
CV
110212004-03-08 Corinna Vinschen <vinschen@redhat.com>
11022
11023 Fix PR tdep/1291.
11024 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11025 to official SH documentation.
11026
f15a4bc0
AC
110272004-03-07 Andrew Cagney <cagney@redhat.com>
11028
11029 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11030 unused function.
11031
9498281f
DJ
110322004-03-07 Daniel Jacobowitz <drow@mvista.com>
11033
11034 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11035 (arm_get_next_pc): Handle BX and BLX.
11036
449e1137
AC
110372004-03-07 Andrew Cagney <cagney@redhat.com>
11038
eded0a31
AC
11039 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11040 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11041 HPPA_SP_REGNUM.
11042 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11043 (hppa_target_read_fp): Delete.
11044 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11045 register_virtual_size, max_register_raw_size,
11046 max_register_virtual_size, register_byte, register_size,
11047 target_read_fp, fp_regnum, and register_bytes. Set register_type
11048 instead of register_virtual_type.
11049 (hppa32_register_type, hppa64_register_type): Replace
11050 hppa32_register_virtual_type and hppa64_register_virtual_type.
11051 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11052 (HPPA_FP_REGNUM): Define.
11053
f5f907e2
AC
11054 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11055
69b4bbe4
AC
11056 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11057 (pa_do_registers_info): Delete.
11058 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 11059 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 11060 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 11061
78161e48
AC
11062 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11063 GDB_TARGET_IS_HPPA code.
11064 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 11065 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
11066 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11067 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
11068 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11069 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11070 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 11071 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
11072 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11073 (hppa_frameless_function_invocation, hppa64_store_return_value)
11074 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 11075 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 11076 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 11077 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
11078 (find_proc_framesize, deposit_21, restore_pc_queue)
11079 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 11080 (rp_saved, pc_in_linker_stub): Delete.
78161e48 11081
782eae8b
AC
11082 Unconditionally enable 64-bit frame and ABI code.
11083 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11084 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11085 push_dummy_frame, fix_call_dummy, push_arguments,
11086 call_dummy_location, extract_return_value, use_struct_convention,
11087 store_return_value, store_struct_return, saved_pc_after_call,
11088 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11089 frame_chain, frame_chain_valid, frameless_function_invocation,
11090 frame_saved_pc, and pop_frame.
78161e48 11091
449e1137
AC
11092 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11093 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11094 (hppa_gdbarch_init): Do not set PC_REGNUM.
11095
12507572
MK
110962004-03-06 Mark Kettenis <kettenis@gnu.org>
11097
11098 * config/alpha/tm-fbsd.h: Remove file.
11099 * config/alpha/fbsd.mt: Tweak comment.
11100 (TM_FILE): Set to tm-alpha.h.
11101
c107cc1b
AC
111022004-03-05 Andrew Cagney <cagney@redhat.com>
11103
11104 * infrun.c (step_over_function): When non-legacy code, and no
11105 step_frame_id, use the unwinder to get the caller's frame ID.
11106
f2e7c15d
MK
111072004-03-05 Mark Kettenis <kettenis@gnu.org>
11108
8b0c3633
MK
11109 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11110 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11111 bfd_arch_unknown. Adjust comment.
11112
f2e7c15d
MK
11113 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11114 * i386obsd-tdep.c: Correct spelling in comment.
11115 * i386nbsd-tdep.c: Correct spelling in comment.
11116 * sparc-tdep.c: Correct spelling in comments.
11117
1198ecbe
DC
111182004-03-05 David Carlton <carlton@kealia.com>
11119
11120 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11121 bug.
11122
9eb42ed1
MK
111232004-03-05 Mark Kettenis <kettenis@gnu.org>
11124
11125 * sparc-tdep.c: Fix typo in comment.
11126
52b5e991
JB
111272004-03-04 J. Brobecker <brobecker@gnat.com>
11128
11129 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11130
d8151005
DJ
111312004-03-04 Daniel Jacobowitz <drow@mvista.com>
11132
11133 * dwarf2read.c: Add comment describing memory lifetimes.
11134 (struct dwarf2_pinfo): Update comment.
11135 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11136 (read_enumeration, new_symbol): Don't use obsavestring.
11137
cbeae229
MK
111382004-03-04 Mark Kettenis <kettenis@gnu.org>
11139
722d18c2
MK
11140 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11141 instead of amd64_fill_fxsave.
11142 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11143 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11144
cbeae229
MK
11145 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11146 Reorganize code a bit.
11147
b4206d25
OF
111482004-03-04 Orjan Friberg <orjanf@axis.com>
11149
11150 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
11151 when the frame pointer is pushed. Don't set the frame pointer's
11152 address on the stack unless it's actually located there.
b4206d25
OF
11153 Set the SRP's address on the stack correctly when the PC is still in
11154 the prologue.
11155 (cris_return_value): New function.
11156 (cris_gdbarch_init): Clear deprecated store_return_value,
11157 extract_return_value.
11158
49b0b195
JB
111592004-03-02 Jim Blandy <jimb@redhat.com>
11160
11161 * stabsread.c (reg_value_complaint): The maximum register number
11162 is one less than the number of registers.
11163
e9ff708b
AC
111642004-03-02 Andrew Cagney <cagney@redhat.com>
11165
11166 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11167 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11168 trailing comma and redundant assignment of I386_ST0_REGNUM.
11169 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11170 32-bit segment registers.
11171
d4715e41
AC
111722004-03-01 Andrew Cagney <cagney@redhat.com>
11173
11174 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11175 use frame_relative_level and get_next_frame.
11176
3ce2bf18
AC
111772004-02-29 Andrew Cagney <cagney@redhat.com>
11178
11179 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11180 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11181 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11182 Delete macro.
11183
2da6aac3
DJ
111842004-02-29 Daniel Jacobowitz <drow@mvista.com>
11185
11186 * inflow.c (terminal_inferior): Don't give up the terminal if we
11187 previously couldn't get the inferior's terminal state.
11188
6ba34a8d
DJ
111892004-02-29 Daniel Jacobowitz <drow@mvista.com>
11190
11191 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11192 PC_REGNUM.
11193
faae5abe
AC
111942004-02-28 Andrew Cagney <cagney@redhat.com>
11195
11196 * NEWS: Refer to GDB 6.1.
11197 * README: Refer to GDB 6.1.
11198 * PROBLEMS: Refer to GDB 6.1.
11199
2227a3c5
DJ
112002004-02-28 Daniel Jacobowitz <drow@mvista.com>
11201
11202 * thread-db.c (disable_thread_signals): Remove unused function.
11203
80571bff
MK
112042004-02-28 Mark Kettenis <kettenis@gnu.org>
11205
041bd74b
MK
11206 * amd64-nat.c: Include "gdb_string.h".
11207 (amd64_collect_native_gregset): Zero-extend the 32-bit
11208 general-purpose registers and %eip.
11209
3c017e40
MK
11210 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11211 * amd64-tdep.c (amd64_collect_fxsave): New function.
11212 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11213
80571bff
MK
11214 * i387-tdep.h: Update copyright year.
11215 (i387_collect_fxsave): New prototype.
11216 * i387-tdep.c: Update copyright year.
11217 (i387_collect_fxsave): New function containing most of the code
11218 from i387_fill_fxsave.
11219 (i387_fill_fxsave): Call i387_collect_fxsave.
11220
50d71875
AC
112212004-02-28 Andrew Cagney <cagney@redhat.com>
11222
11223 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11224 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11225
4a28816e
MK
112262004-02-28 Mark Kettenis <kettenis@gnu.org>
11227
11228 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11229
dbda9972
AC
112302004-02-28 Andrew Cagney <cagney@redhat.com>
11231
11232 * utils.c: Use "", instead of <>, to include readline.
11233 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11234 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11235 * source.c, solib.c, exec.c, event-top.c: Ditto.
11236 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11237 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11238 * Makefile.in: Update all dependencies.
11239 (readline_tilde_h, readline_history_h): Define.
11240 (readline_headers): Delete.
11241
83277a99
MK
112422004-02-28 Mark Kettenis <kettenis@gnu.org>
11243
91ae4303
MK
11244 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11245 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11246 "config/i386/tm-lx64.h".
11247
83277a99
MK
11248 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11249 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11250 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11251
6e1d7d6c
AC
112522004-02-28 Andrew Cagney <cagney@redhat.com>
11253
ecc9ac84
AC
11254 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11255
6e1d7d6c
AC
11256 * breakpoint.c (_initialize_breakpoint): Use
11257 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11258 Add help to show command.
11259
9671aeef
MK
112602004-02-28 Mark Kettenis <kettenis@gnu.org>
11261
7fa2737c
MK
11262 * i386-nat.c: Reformat to be closer to coding standards.
11263 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11264 `retval'. Make variables `align' and `size' local to while-loop.
11265 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11266 (_initialize_i386_nat): New prototype.
11267
9671aeef
MK
11268 * tui/tui.c: Include <readline/readline.h> instead of
11269 "readline/readline.h". Include it after <term.h> and
11270 "gdb_curses.h".
11271
fca7aa43
AC
112722004-02-27 Andrew Cagney <cagney@redhat.com>
11273
412275d5
AC
11274 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11275 the new frame unwind code.
11276 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11277 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11278 PCOQ_HEAD_REGNUM.
11279
fca7aa43
AC
11280 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11281 "return_value" and "push_dummy_call".
11282 (hppa32_use_struct_convention): Delete unused function.
11283 (hppa32_store_return_value): Delete unused function.
11284 (hppa32_extract_return_value): Delete unused function.
11285 (hppa32_stack_align): Delete function.
11286
e6a8a7d2
EZ
112872004-02-27 Eli Zaretskii <eliz@elta.co.il>
11288
11289 * coffread.c (enter_linenos): Don't let rawptr reference memory
11290 outside linetab[]'s limits.
11291
1797a8f6
AC
112922004-02-27 Andrew Cagney <cagney@redhat.com>
11293
11294 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11295 inferior stack space - the stack needs to grow upwards.
11296 (hppa32_frame_align): New function.
11297 (hppa64_frame_align): Replace hppa_frame_align.
11298 (hppa_gdbarch_init): Update.
11299
2e4b5889
OF
113002004-02-26 Orjan Friberg <orjanf@axis.com>
11301
11302 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11303 (dwarf2-frame.h): Include.
11304 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11305 Remove static variables related to ABI setting.
11306 (struct gdbarch_tdep): Remove cris_abi member.
11307 (struct frame_extra_info): Remove.
11308 (cris_unwind_cache, stack_item): New structs.
11309 (cris_frame_unwind, cris_frame_base): New variables.
11310 (push_stack_item, pop_stack_item)
11311 (cris_frame_unwind_cache, cris_frame_this_id)
11312 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11313 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11314 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11315 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11316 (cris_reg_struct_has_addr): New functions.
11317 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 11318 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
11319 (cris_store_struct_return, cris_frameless_function_invocation)
11320 (cris_pop_frame, cris_skip_prologue_main)
11321 (cris_abi_original_store_return_value)
11322 (cris_abi_v2_store_return_value)
11323 (cris_abi_original_extract_return_value)
11324 (cris_abi_v2_extract_return_value)
11325 (cris_abi_original_reg_struct_has_addr)
11326 (cris_abi_v2_reg_struct_has_addr)
11327 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11328 (cris_push_return_address, cris_abi_update): Remove.
11329 (_initialize_cris_tdep): Remove ABI command.
11330 (cris_dump_tdep): Ditto.
8718a420 11331 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
11332 Set store_return_value, extract_return_value, push_dummy_code,
11333 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11334 frame_unwind_append_sniffer, frame_base_set_default.
11335 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11336 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11337 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 11338 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
11339 init_extra_frame_info, frameless_function_invocation, frame_chain,
11340 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11341 dummy_write_sp.
8718a420 11342
6b9acc27
JJ
113432004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11344
11345 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11346 * valprint.c (print_hex_chars): Change from static to external.
11347 (print_char_chars): New function.
11348 * printcmd.c (print_scalar_formatted): For integer and enum types
11349 that are longer than LONGEST, perform processing via appropriate
11350 print_*_chars routines.
11351
a431654a
AC
113522004-02-26 Andrew Cagney <cagney@redhat.com>
11353
11354 * Makefile.in: Update dependencies.
11355 Changes from Ulrich Weigand,
11356 * s390-tdep.c: Include "dwarf2-frame.h".
11357 (s390_dwarf2_frame_init_reg): New function.
11358 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11359 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11360
fa8d40ab
JJ
113612004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11362
11363 * breakpoint.c (pending_break_support): New setting variable.
11364 (break_command_1): Account for pending_break_support setting
11365 when creating pending breakpoints.
11366 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11367 (_initialize_breakpoint): Add "set breakpoint pending" and
11368 "show breakpoint pending" commands.
11369
0dcd613f
AC
113702004-02-26 Andrew Cagney <cagney@redhat.com>
11371
11372 Fix PR i18n/1570.
11373 * charset.c (backslashable, backslashed, represented): Remove 'e'
11374 from list of escaped characters, not part of ISO-C.
11375
479272a3
JB
113762004-02-25 J. Brobecker <brobecker@gnat.com>
11377
11378 From Peter Schauer <schauer@pdf.de>:
11379 * tui/tui.c: Move system header includes after local includes.
11380 Fixes a build failure on solaris systems.
11381
7613d933
JB
113822004-02-25 J. Brobecker <brobecker@gnat.com>
11383
11384 * configure.in: Refine the previous change.
11385 * configure: Regenerate.
11386
9c1488cb
MK
113872004-02-25 Mark Kettenis <kettenis@gnu.org>
11388
11389 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11390 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11391 "amd64-tdep.h" instead of "x86-64-tdep.h".
11392 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11393 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11394 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11395 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11396 and "x86-64-tdep.c".
11397 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11398 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11399 and "x86-64-tdep.c".
11400 * amd64bsd-nat.c: Update copyright year.
11401 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11402 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11403 "x86-64-tdep.h".
11404 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11405 "x86-64-tdep.h".
11406 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11407 "x86-64-tdep.h".
11408 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11409 "x86-64-tdep.h".
11410 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11411 "x86-64-tdep.h".
11412 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11413 "x86-64-tdep.h".
8718a420 11414 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
11415 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11416 * Makefile.in (amd64_linux_tdep_h): Renamed from
11417 x86_64_linux_tdep_h.
11418 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11419 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11420 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11421 (amd64obsd-tdep.o): Update dependencies.
11422 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11423 dependencies.
11424 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11425 dependencies.
11426 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11427 amd64-linux-nat.c amd64-linux-tdep.c.
11428 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11429 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11430 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11431 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11432 amd64-tdep.o and amd64-linux-tdep.o.
11433 (TM_FILE): Set to tm-linux64.h.
11434 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11435 (NAT_FILE): Set to nm-linux64.h.
11436 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11437 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11438 amd64-tdep.o.
11439 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11440 amd64-tdep.o.
11441 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11442 amd64-tdep.o.
11443
4b8dad4a
RM
114442004-02-25 Roland McGrath <roland@redhat.com>
11445
11446 * remote.c (remote_protocol_qPart_auxv): New variable.
11447 (init_all_packet_configs): Initialize it.
11448 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11449 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11450 (show_remote_cmd): Call it.
11451 (_initialize_remote): Initialize commands.
11452 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11453 service TARGET_OBJECT_AUXV requests.
11454
66745969
JB
114552004-02-25 J. Brobecker <brobecker@gnat.com>
11456
11457 * configure.in: Make sure that the wborder function is available.
11458 Otherwise, search for it in the cur_colr library.
11459 * configure: Regenerate.
11460
79508e1e
AC
114612004-02-25 Andrew Cagney <cagney@redhat.com>
11462
11463 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11464
571ee600
MK
114652004-02-25 Mark Kettenis <kettenis@gnu.org>
11466
11467 * config/i386/tm-x86-64linux.h: Tweak comments.
11468
2b1b322f 114692004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
11470
11471 * MAINTAINERS: Add self to write-after-approval list.
11472
4d2acc65
AC
114732004-02-25 Andrew Cagney <cagney@redhat.com>
11474
4b8dad4a 11475 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
11476 * cli/cli-script.c (execute_control_command): Unconditionally
11477 install a cleanup. Default "ret" to "invalid_control". Use
11478 "break" instead of "return" to escape from the switch.
11479
4cfcaf21
JB
114802004-02-24 J. Brobecker <brobecker@gnat.com>
11481
11482 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11483 with the lines macro defined in term.h on AiX.
11484 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11485 a collision with the label_width macro defined in term.h on AiX.
11486
54a5c8d8
KB
114872004-02-23 David Mosberger <davidm@hpl.hp.com>
11488
11489 Committed by Kevin Buettner <kevinb@redhat.com>.
11490
11491 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11492 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11493 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11494 instead of ia64_write_pc().
11495 * ia64-linux-tdep.c (regcache.h): Include.
11496 (ia64_linux_write_pc): New function.
4b8dad4a 11497
8a1dac83
RM
114982004-02-23 Roland McGrath <roland@redhat.com>
11499
11500 * auxv.c (info_auxv_command): Fix typos in error messages.
11501
90f90721
MK
115022004-02-23 Mark Kettenis <kettenis@gnu.org>
11503
8a1dac83 11504 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11505 (enum amd64_regnum): New.
11506 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11507 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11508 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11509 (X86_64_XMM1_REGNUM): Removed.
11510 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11511 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11512 prototypes for renamed functions.
11513 * x86-64-tdep.c: Fix typo.
11514 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11515 register numbers.
11516 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11517 Use constants from `enum amd64_regnum' for register numbers.
11518 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11519 (amd64_analyze_prologue, amd64_frame_cache,
11520 amd64_sigtramp_frame_cache): Use constants from `enum
11521 amd64_regnum' for register numbers.
11522 (amd64_supply_fpregset): Adjust for renamed functions.
11523 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11524 `enum amd64_regnum' for register numbers.
11525 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11526 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11527 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11528 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11529 (amd64_linux_fill_gregset): Adjust for renamed macros.
11530 (fetch_core_registers): Adjust for renamed functions.
11531 (amd64_linux_init_abi): Adjust for renamed functions.
11532 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11533 renamed functions.
11534 * amd64-nat.c: Adjust for renamed macros.
11535 * amd64bsd-nat.c (fetch_inferior_registers)
11536 (store_inferior_registers): Use constants from `enum amd64_regnum'
11537 for register numbers. Adjust for renamed variables.
11538 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11539 renamed variables.
11540 (_initialize_amd64fbsd_nat): Use constants from `enum
11541 amd64_regnum' for register numbers.
11542 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11543 `enum amd64_regnum' for register numbers.
11544 (amd64fbsd_init_abi): Adjust for renamed functions.
11545 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11546 `enum amd64_regnum' for register numbers.
11547 (amd64nbsd_init_abi): Adjust for renamed functions.
11548 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11549 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11550 `enum amd64_regnum' for register numbers.
11551 (amd64obsd_init_abi): Adjust for renamed functions.
11552 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11553
d5479188
JJ
115542004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11555
11556 * breakpoint.c (print_one_breakpoint): Do not output spaces
11557 after printing <PENDING> for a pending breakpoint.
11558
81cb7cc9
JJ
115592004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11560
11561 * printcmd.c (print_scalar_formatted): Initialize val_long
11562 to remove compiler warning message.
11563
cbdeadca
JJ
115642004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11565
11566 * defs.h (nquery, yquery): New prototypes.
11567 * breakpoint.c (break_command_1): Use new nquery interface.
11568 * utils.c (defaulted_query, nquery, yquery): New functions.
11569
da6bab63
AC
115702004-02-23 Andrew Cagney <cagney@redhat.com>
11571
2f690297
AC
11572 * hppa-tdep.c (hppa_frame_align): New function.
11573 (hppa32_push_dummy_call): New function.
11574 (hppa64_push_dummy_call): New function.
11575 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11576 disabled.
8a1dac83 11577
da6bab63
AC
11578 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11579 FIX_CALL_DUMMY when push_dummy_call is available.
11580 (call_function_by_hand, push_dummy_code): Ditto.
11581
abf9b42d
AC
115822004-02-22 Andrew Cagney <cagney@redhat.com>
11583
11584 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11585 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11586 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11587 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11588 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11589 call_dummy_location to ON_STACK.
11590
10fc94a4
MK
115912004-02-22 Mark Kettenis <kettenis@gnu.org>
11592
51433e4b
MK
11593 * x86-64-linux-tdep.c: Tweak comment.
11594 (amd64_linux_supply_gregset): Renamed from
11595 x86_64_linux_supply_gresget.
11596 (amd64_linux_fill_gregset): Renamed from
11597 x86_64_linux_fill_gregset.
11598 (fetch_core_registers): Adjust for renamed functions.
11599 (amd64_core_fns): Renamed from x86_64_core_fns.
11600 (amd64_linux_sigtramp_start): Renamed from
11601 x86_64_linux_sigtramp_start.
11602 (amd64_linux_pc_in_sigtramp): Renamed from
11603 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11604 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11605 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11606 (amd64_linux_sigcontext_addr): Renamed from
11607 x86_64_linux_sigcontext_addr.
11608 (amd64_linux_sc_reg_offset): Renamed from
11609 x86_64_linux_sc_reg_offset.
11610 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11611 Adjust for renamed functions and variables.
11612 (_initialize_amd64_linux_tdep): Renamed from
11613 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11614 variables.
11615 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11616 Adjust for renamed functions.
11617
430eaf2e
MK
11618 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11619 from x86_64_linux_gregset64_reg_offset.
11620 (amd64_linux_gregset32_reg_offset): Rename from
11621 x86_64_linux_gregset64_reg_offset.
11622 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11623 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11624 (amd64_linux_dr_set_control): Renamed from
11625 x86_64_linux_dr_set_control. Adjust for renamed functions.
11626 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11627 Adjust for renamed functions.
11628 (amd64_linux_dr_reset_addr): Renamed from
11629 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11630 (amd64_linux_dr_get_status): Renamed from
11631 x86_64_linux_dr_get_status. Adjust for renamed functions.
11632 (_initialize_amd64_linux_nat): Renamed from
11633 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11634 functions.
11635 * config/i386/nm-x86-64linux.h: Update copyright year.
11636 Adjust for renamed functions.
11637
10fc94a4
MK
11638 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11639 amd64fbsd_sigtramp_start.
11640 (amd64fbsd_sigtramp_end_addr): Renamed from
11641 amd64fbsd_sigtramp_end.
11642 (amd64fbsd_init_abi): Adjust for renamed variables.
11643 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11644 variables.
11645 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11646 amd64fbsd_sigtramp_start.
11647 (amd64fbsd_sigtramp_end_addr): Renamed from
11648 amd64fbsd_sigtramp_end.
11649
343af405
AC
116502004-02-22 Andrew Cagney <cagney@redhat.com>
11651
537987fc
AC
11652 * hppa-tdep.c (hppa32_return_value): New function.
11653 (hppa64_return_value): New function.
11654 (hppa_gdbarch_init): Set return_value; keep disabled.
11655
fad850b2
AC
11656 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11657 struct-return and inferior function call methods.
11658
26d08f08
AC
11659 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11660 "frame-base.h".
11661 (struct hppa_frame_cache): Define.
11662 (hppa_frame_cache, hppa_frame_this_id): New functions.
11663 (hppa_frame_prev_register): New function.
11664 (hppa_frame_unwind, hppa_frame_base): New variables.
11665 (hppa_frame_unwind_sniffer): New function.
11666 (hppa_frame_base_address, hppa_unwind_pc): New function.
11667 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11668 sniffer, and frame base sniffer; keep disabled.
11669 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11670 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11671
e7d7bd65
AC
11672 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11673 to predicates for "seriously old code".
11674
e963316f
AC
11675 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11676 runtime if(0).
11677
56132691
AC
11678 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11679 unsigned.
11680 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11681
343af405
AC
11682 * config/pa/tm-hppa.h: Update copyright.
11683 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11684 (deprecated_init_frame_pc_default): Delete declaration.
11685 (hppa_frame_init_saved_regs): Delete declaration.
11686 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11687 * hppa-tdep.c: Include "arch-utils.h".
11688 (hppa_gdbarch_init): Set deprecated init_frame_pc
11689 and deprecated frame_init_saved_regs.
11690 (hppa_frame_init_saved_regs): Make static.
11691
f5859b4d
MK
116922004-02-22 Mark Kettenis <kettenis@gnu.org>
11693
86f6f8e7 11694 Remove old 386BSD support.
cf7c5c23 11695 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11696 * configure.host: Remove i[34567]86-*-bsd*.
11697 * configure.tgt: Remove i[34567]86-*-bsd*.
11698 * i386b-nat.c: Removed.
11699 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11700 (i386b-nat.o): Remove dependencies.
11701
86f6f8e7
MK
11702 * config/i386/i386bsd.mh: Removed.
11703 * config/i386/i386bsd.mt: Removed.
11704 * config/i386/nm-i386bsd.h: Removed.
11705 * config/i386/tm-i386bsd.h: Removed.
11706 * config/i386/xm-i386bsd.h: Removed.
11707
971218cd
MK
11708 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11709
7e654c37
MK
11710 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11711 (amd64fbsd_init_abi): Set link map offsets.
11712 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11713 (amd64nbsd_init_abi): Set link map offsets.
11714 * amd64obsd-tdep.c: Include "solib-svr4.h".
11715 (amd64obsd_init_abi): Set link map offsets.
11716 * i386fbsd-tdep.c: Include "solib-svr4.h".
11717 (i386fbsd_init_abi): Set link map offsets.
11718 * i386nbsd-tdep.c: Include "solib-svr4.h".
11719 (i386nbsdelf_init_abi): Set link map offsets.
11720 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11721 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11722 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11723 solib-legacy.o and core-aout.o. Reformat.
11724 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11725 solib-svr4.o, solib-legacy.o. Reformat.
11726 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11727 * config/i386/nbsdelf.mh: Reformat.
11728 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11729 solib-svr4.o, solib-legacy.o and corelow.o.
11730 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11731 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11732 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11733 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11734 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11735 (TM_FILE): Set to tm-fbsd.h.
11736 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11737 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11738 solib-svr4.o.
11739 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11740 solib-svr4.o.
11741 (TM_FILE): Set to nm-nbsd.h.
11742 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11743 Simplify shared library support. Don't include "elf/common.h".
11744 (SVR4_SHARED_LIBS): Don't define.
11745 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11746 "solib.h".
11747 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11748 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11749 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11750 Don't include "i386/tm-i386.h". Include "solib.h".
11751 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11752 Don't include "i386/tm-i386.h".
11753 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11754 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11755 Include "i386/xm-i386.h".
11756 (HOST_LONG_DOUBLE_FORMAT): Remove.
11757
5d93ae8c
MK
11758 Fix OpenBSD/i386 sigtramp recognition.
11759 * i386-tdep.h: Update copyright year.
11760 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11761 (i386bsd_sigtramp_end): New prototypes.
11762 (i386fbsd_sigtramp_start_addr): Renamed from
11763 i386fbsd_sigtramp_start.
11764 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11765 (i386obsd_sigtramp_start_addr): Renamed from
11766 i386obsd_sigtramp_start.
11767 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11768 * i386bsd-tdep.c: Update copyright year.
11769 (i386bsd_pc_in_sigtramp): Make public.
11770 * i386fbsd-nat.c: Update copyright year.
11771 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11772 * i386fbsd-tdep.c: Update copyright year.
11773 (i386fbsd_sigtramp_start_addr): Renamed from
11774 i386fbsd_sigtramp_start.
11775 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11776 (i386fbsdaout_init_abi): Adjust for renamed variables.
11777 * i386obsd-nat.c: Update copyright year.
11778 (_initialize_i386obsd_nat): Adjust for renamed variables.
11779 * i386obsd-tdep.c: Include "target.h".
11780 (i386obsd_page_size): New variable.
11781 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11782 (i386obsd_sigtramp_end): New functions.
11783 (i386obsd_sigtramp_start_addr): Renamed from
11784 i386obsd_sigtramp_start.
11785 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11786 (i386obsd_init_abi): Adjust for renamed variables. Set
11787 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11788 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11789
84d04465
MK
11790 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11791 trampoline change in OpenBSD kernel.
11792
b053aceb
MK
11793 * amd64-nat.c: Update copyright year.
11794 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11795 architecture from REGCACHE.
11796
f5859b4d
MK
11797 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11798 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11799
e4bbbda8
MK
118002004-02-21 Mark Kettenis <kettenis@gnu.org>
11801
ba361932
MK
11802 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11803 i[34567]86-*-openbsd3.[0-3].
11804 * config/i386/obsdaout.mh: New file.
11805
d3e48264
MK
11806 * config/i386/obsd.mh (MH_FLAGS): Remove.
11807
60a6eeb6
MK
11808 Fix PR build/1549.
11809 * i386obsd-tdep.c: Update copyright years. Include
11810 "solib-svr4.h".
11811 (i386obsd_init_abi): Don't set regset_from_core_section here.
11812 (i386obsd_aout_init_abi): New function. Set
11813 regset_from_core_section here.
11814 (i386obsd_elf_init_abi): New function.
11815 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11816 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11817 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11818 (TM_FILE): Set to tm-nbsd.h.
11819
11820 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11821 solib-sunos.o.
11822
e4bbbda8
MK
11823 * solib-svr4.h: Update copyright year.
11824 (svr4_ilp32_fetch_link_map_offsets)
11825 (svr4_lp64_fetch_link_map_offsets): New prototype.
11826 * solib-svr4.c: Update copyright year.
11827 (svr4_ilp32_fetch_link_map_offsets)
11828 (svr4_lp64_fetch_link_map_offsets): New function.
11829
f6fe98ef
DJ
118302004-02-20 Daniel Jacobowitz <drow@mvista.com>
11831
11832 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11833 to the partial symbol table.
11834
589ca796
JB
118352004-02-20 J. brobecker <brobecker@gnat.com>
11836
11837 * PROBLEMS: Add description of problem documented under gdb/1560.
11838
2031c21a
MK
118392004-02-20 Mark Kettenis <kettenis@gnu.org>
11840
30b344b1
MK
11841 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11842 comments.
11843 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11844 functions.
11845 (amd64obsd_init_abi): Reorder initializations. Use
11846 amd64obsd_r_reg_offset to initialize the general-purpose register
11847 set details. Set regset_from_core_section.
11848 (_initialize_amd64obsd_tdep): Rename from
11849 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11850 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11851 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11852
2031c21a
MK
11853 * NEWS (New native configurations): Mention OpenBSD/alpha.
11854 * configure.tgt: Add alpha*-*-openbsd*.
11855 * configure.host: Add alpha*-*-openbsd*.
11856 * alphanbsd-tdep.c: Update copyright year.
11857 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11858
42471775
AC
118592004-02-20 Andrew Cagney <cagney@redhat.com>
11860
11861 Fix PR tdep/1372.
11862 * configure.tgt: Delete target "none-*-*".
11863 * configure.host: Delete host "none-*-*".
11864 * config/none/none.mh: Delete file.
11865 * config/none/none.mt: Delete file.
11866 * config/none/xm-none.h: Delete file.
11867 * config/none/tm-none.h: Delete file.
11868 * config/none/nm-none.h: Delete file.
11869
960ccd7d
FF
118702004-02-19 Fred Fish <fnf@redhat.com>
11871
11872 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11873 cache->uses_fp prior to setting it.
11874
5f883edd
FF
118752004-02-19 Fred Fish <fnf@redhat.com>
11876
11877 Fix for PR breakpoint/1558.
11878 * sh-tdep.c (IS_JSR): New macro.
11879 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11880
f98c22d5
JB
118812004-02-19 Jim Blandy <jimb@redhat.com>
11882
11883 * findvar.c (value_from_register): Doc fix.
11884
95051d27
JJ
118852004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11886
11887 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11888 type being greater than sizeof of host's LONGEST. Always use
11889 unpack_long() unless format 'f' chosen.
11890
ccefbec3
EZ
118912004-02-19 Joel Brobecker <brobecker@gnat.com>
11892
11893 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11894
ccefbec3
EZ
11895 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11896 contains a symbol wich is the best, non-exact match for the given
11897 pc. Update comments.
11898
118992004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11900
2ede629f
EZ
11901 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11902 macro, which was part of the now removed Mach 3 port.
11903 * utils.c (request_quit): Ditto.
11904
567ee972
MK
119052004-02-18 Mark Kettenis <kettenis@gnu.org>
11906
11907 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11908 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11909
50cca7bb
MK
119102004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11911
11912 Committed by Mark Kettenis <kettenis@gnu.org>.
11913
11914 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11915 Define.
11916
226361c4
AC
119172004-02-18 Andrew Cagney <cagney@redhat.com>
11918
11919 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11920 CONFIG_INSTALL and CONFIG_UNINSTALL.
11921 * configure: Re-generate.
11922 * interps.h (INTERP_TUI): Define.
11923 * Makefile.in: Update dependencies.
11924 (TUI): New macro.
11925 (tui-main.o): Specify dependencies.
11926 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11927 * tui/tui-main.c: New file.
11928
49cfa46f
MK
119292004-02-18 Mark Kettenis <kettenis@gnu.org>
11930
e2879ccb
MK
11931 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11932 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11933 dependencies.
11934 * configure.host: Add x86_64-*-openbsd*.
11935 * configure.tgt: Add x86_64-*-openbsd*.
11936 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11937
c43f4bec
MK
11938 * tui/tui.c: Don't include <malloc.h>.
11939
09ae75b6
MK
11940 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11941 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11942 amd64nbsd-tdep.c.
11943
49cfa46f 11944 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11945 static. Remove extraneous whitespace.
49cfa46f
MK
11946 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11947 static.
11948
05957fdb
JB
119492004-02-17 Jim Blandy <jimb@redhat.com>
11950
11951 * findvar.c (value_from_register): Doc fix.
11952
d0f54f9d
JB
119532004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11954
11955 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11956
8a1dac83 11957 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11958 CORE_ADDR as type for selectors. Correct types for GNU run time
11959 message lookup function to use double indirection.
11960 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11961 * objc-lang.h (lookup_child_selector): Adapt prototype.
11962
9cbd5950
JB
11963 * s390-nat.c (SUBOFF): New macro.
11964 (supply_gregset, fill_gregset): Use it to handle debugging
11965 of 32-bit exectuables running under a 64-bit kernel.
11966 * s390-tdep.c: Include "solib-svr4.h".
11967 (s390_svr4_fetch_link_map_offset): New function.
11968 (s390x_svr_fetch_link_map_offset): Likewise.
11969 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11970 * Makefile.in (s390-tdep.o): Update dependencies.
11971
a8c99f38
JB
11972 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11973 "frame-unwind.h".
11974 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11975 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11976 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11977 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11978 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11979 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11980 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11981 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11982 (struct frame_extra_info): Remove.
11983 (s390_memset_extra_info): Remove.
f73b1eff
JB
11984 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11985 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11986 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11987 (is_rse): Renamed to ...
11988 (is_rsy): ... this. Support long displacements.
11989 (is_rxe): Renamed to ...
11990 (is_rxy): ... this. Support long displacements.
11991 (compute_x_addr): Support long displacements.
11992 (struct s390_prologue_data): New data type.
11993 (s390_on_stack): Change API to use struct s390_prologue_data.
11994 (s390_store): Reimplement.
11995 (s390_load): New function.
11996 (s390_get_signal_frame_info): Remove.
11997 (s390_get_frame_info): Remove, replace by ...
11998 (s390_analyze_prolog): ... this new function.
11999 (s390_check_function_end): Remove.
12000 (s390_function_start): Remove.
12001 (s390_frameless_function_invokation): Remove.
12002 (s390_is_sigreturn): Remove.
12003 (s390_init_frame_pc_first): Remove.
12004 (s390_init_frame_extra_info): Remove.
12005 (s390_frame_init_saved_regs): Remove.
12006 (s390_frame_saved_pc_nofix): Remove.
12007 (s390_frame_saved_pc): Remove.
12008 (s390_frame_chain): Remove.
12009 (s390_fp_regnum, s390_read_fp): Remove.
12010 (s390_pop_frame_regular, s390_pop_frame): Remove.
12011 (s390_saved_pc_after_call): Remove.
12012 (s390_skip_prologue): Reimplement.
12013 (s390_in_function_epilogue_p): Support long displacements.
12014 (struct s390_unwind_cache): New data structure.
12015 (s390_frame_unwind_cache): New function.
12016 (s390_prologue_frame_unwind_cache): Likewise.
12017 (s390_backchain_frame_unwind_cache): Likewise.
12018 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12019 (s390_frame_unwind): Define.
12020 (s390_frame_sniffer): New function.
12021 (struct s390_pltstub_unwind_cache): New data structure.
12022 (s390_pltstub_frame_unwind_cache): New function.
12023 (s390_pltstub_frame_this_id): Likewise.
12024 (s390_pltstub_frame_prev_register): Likewise.
12025 (s390_pltstub_frame_unwind): Define.
12026 (s390_pltstub_frame_sniffer): New function.
12027 (struct s390_sigtramp_unwind_cache): New data structure.
12028 (s390_sigtramp_frame_unwind_cache): New function.
12029 (s390_sigtramp_frame_this_id): Likewise.
12030 (s390_sigtramp_frame_prev_register): Likewise.
12031 (s390_sigtramp_frame_unwind): Define.
12032 (s390_sigtramp_frame_sniffer): New function.
12033 (s390_frame_base_address, s390_local_base_address): New functions.
12034 (s390_frame_base): Define.
12035 (s390_unwind_pc, s390_unwind_sp): New function.
12036 (s390_push_dummy_call): Use new frame base location.
12037 (s390_unwind_dummy_id): Likewise.
12038 (s390_gdbarch_init): Remove calls to:
12039 set_gdbarch_frameless_function_invocation,
12040 set_gdbarch_deprecated_init_frame_pc,
12041 set_gdbarch_deprecated_frame_chain,
12042 set_gdbarch_deprecated_frame_init_saved_regs,
12043 set_gdbarch_deprecated_pop_frame,
12044 set_gdbarch_deprecated_init_extra_frame_info,
12045 set_gdbarch_deprecated_init_frame_pc_first,
12046 set_gdbarch_deprecated_target_read_fp,
12047 set_gdbarch_deprecated_frame_saved_pc,
12048 set_gdbarch_deprecated_saved_pc_after_call,
12049 set_gdbarch_deprecated_fp_regnum.
12050 Add calls to:
12051 set_gdbarch_in_solib_call_trampoline,
12052 frame_unwind_append_sniffer,
12053 frame_base_set_default,
12054 set_gdbarch_unwind_pc,
12055 set_gdbarch_unwind_sp.
12056 * Makefile.in (s390-tdep.o): Update dependencies.
12057
b0cf273e
JB
12058 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12059 (S390_STACK_FRAME_OVERHEAD): Remove.
12060 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12061 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12062 (s390_promote_integer_argument): Remove.
12063 (s390_cannot_extract_struct_value_address): Remove.
12064 (s390_use_struct_convention, s390_store_struct_return): Remove.
12065 (s390_extract_return_value, s390_store_return_value): Remove.
12066 (s390_return_value_convention, s390_return_value): New functions.
12067 (is_float_singleton): Handle typedefs.
8a1dac83 12068 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
12069 Remove, replace by ...
12070 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12071 s390_function_arg_integer): ... these new functions.
12072 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12073 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12074 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12075 Fill in tdep->abi.
12076 Remove calls to:
12077 set_gdbarch_deprecated_store_struct_return,
12078 set_gdbarch_deprecated_extract_return_value,
12079 set_gdbarch_deprecated_store_return_value,
12080 set_gdbarch_use_struct_convention,
12081 set_gdbarch_extract_struct_value_address,
12082 set_gdbarch_deprecated_pc_in_call_dummy,
12083 set_gdbarch_deprecated_push_arguments,
12084 set_gdbarch_deprecated_save_dummy_frame_tos,
12085 set_gdbarch_deprecated_push_return_address,
12086 set_gdbarch_deprecated_sizeof_call_dummy_words,
12087 set_gdbarch_deprecated_call_dummy_words,
12088 set_gdbarch_deprecated_dummy_write_sp.
12089 Add calls to:
12090 set_gdbarch_push_dummy_call,
12091 set_gdbarch_unwind_dummy_id,
12092 set_gdbarch_return_value.
8a1dac83 12093
e1457d83
JB
12094 * config/s390/nm-linux.h: Update comments.
12095 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12096 (STOPPED_BY_WATCHPOINT): Redefine.
12097 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12098 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12099 (s390_stopped_by_watchpoint): Likewise.
12100 (watch_area_cnt): Remove.
12101 * s390-nat.c: Update comments.
12102 (watch_area): Remove typedef.
12103 Global replace watch_area by struct watch_area.
12104 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 12105 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
12106 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12107 (s390_fix_watch_points): Remove pid argument,
12108 use s390_inferior_tid. Recompute area spanned by watchpoints.
12109 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12110 argument. Reimplement.
12111
d0f54f9d
JB
12112 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12113 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12114 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 12115 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
12116 core-regset.o.
12117 * config/s390/s390x.mt: Remove.
12118 * config/s390/tm-s390.h: Remove.
12119 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12120 (TARGET_ELF64): Remove.
12121 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12122 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12123 s390*-*-* case; always set gdb_target to s390.
12124 * regformats/reg-s390.dat: Remove control registers.
12125 * regformats/reg-s390x.dat: Likewise.
12126 * s390-tdep.h: New file.
8a1dac83 12127 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
12128 Include "inferior.h" and "s390-tdep.h".
12129 Remove private definition of offsetof.
12130 (s390_register_u_addr): Remove.
12131 (regmap_gregset, regmap_fpregset): Define.
12132 (supply_gregset, fill_gregset): Reimplement.
12133 (supply_fpregset, fill_fpregset): Likewise.
12134 (s390_inferior_tid): New function.
12135 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12136 (fetch_inferior_registers, store_inferior_registers): Likewise.
12137 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12138 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12139 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12140 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12141 (struct gdbarch_tdep): Define.
12142 (struct s390_register_info): Define.
12143 (s390_register_info): New variable.
12144 (s390_register_name): Reimplement.
12145 (s390_register_type): New function.
12146 (s390_register_raw_size, s390x_register_raw_size): Remove.
12147 (s390_cannot_fetch_register): Remove.
12148 (s390_register_byte): Remove.
12149 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12150 (s390_dwarf_regmap): New variable.
12151 (s390_dwarf_reg_to_regnum): New function.
12152 (s390_stab_reg_to_regnum): Remove.
12153 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12154 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12155 (s390_convert_register_p): Likewise.
12156 (s390_register_to_value, s390_value_to_register): Likewise.
12157 (s390_register_reggroup_p): Likewise.
12158 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12159 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12160 (s390_supply_regset, s390_regset_from_core_section): New functions.
12161 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12162 (S390_FPR_SIZE): Likewise.
12163 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12164 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12165 (S390_NUM_GPRS): Move here from tm-s390.h.
12166 (S390_NUM_FPRS): Likewise.
12167 (s390_in_function_epilogue_p): New function.
12168 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12169 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12170 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12171 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12172 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12173 Remove calls to:
12174 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
12175 set_gdbarch_deprecated_max_register_virtual_size,
12176 set_gdbarch_deprecated_register_byte,
d0f54f9d 12177 set_gdbarch_cannot_fetch_register,
8a1dac83 12178 set_gdbarch_cannot_store_register,
d0f54f9d
JB
12179 set_gdbarch_deprecated_register_size,
12180 set_gdbarch_deprecated_register_raw_size,
12181 set_gdbarch_deprecated_register_virtual_size,
12182 set_gdbarch_deprecated_register_virtual_type,
12183 set_gdbarch_deprecated_register_bytes.
12184 Add calls to:
12185 set_gdbarch_num_pseudo_regs,
12186 set_gdbarch_register_type,
12187 set_gdbarch_convert_register_p,
12188 set_gdbarch_register_to_value,
12189 set_gdbarch_value_to_register,
12190 set_gdbarch_register_reggroup_p,
12191 set_gdbarch_regset_from_core_section,
12192 set_gdbarch_pseudo_register_read,
12193 set_gdbarch_pseudo_register_write,
12194 set_gdbarch_in_function_epilogue_p.
12195 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12196 (s390_tdep_h): New variable.
12197
8cfe231d
JB
121982004-02-17 Jim Blandy <jimb@redhat.com>
12199
4589a601
JB
12200 * findvar.c (value_from_register): If the type has no length, just
12201 return an acceptable value --- don't report an internal error.
12202
8cfe231d
JB
12203 * stabsread.c (read_type): If we find any type numbers that are
12204 forward references, complain if the references aren't resolved by
12205 the time we're finished reading.
12206 (cleanup_undefined_types): Make error message more appropriate for
12207 a complaint.
12208
5bf0017e
EZ
122092004-02-17 Elena Zannoni <ezannoni@redhat.com>
12210
9d62932d
EZ
12211 * Makefile.in (defs_h): Remove dependency on progress_h.
12212 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12213 progress.h.
12214 * main.c (captured_main): Delete use of START_PROGRESS and
12215 END_PROGRESS.
12216
122172004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 12218
5bf0017e
EZ
12219 * objfiles.c (terminate_minimal_symbol_table): Add back
12220 initialization of MSYMBOL_TYPE.
12221
9fc9f5e2
AC
122222004-02-17 David Mosberger <davidm@hpl.hp.com>
12223
12224 Committed by Andrew Cagney.
12225 * Makefile.in (ia64_tdep_h): New macro.
12226 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12227 (ia64-tdep.o): Likewise.
12228 * ia64-tdep.h: New file.
12229 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12230 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12231 (ia64_aix_sigcontext_register_address): Likewise.
12232 (ia64_linux_getunwind_table): Delete declaration.
12233 * ia64-linux-tdep.c: Likewise.
12234
76cd2bd9
CV
122352004-02-17 Corinna Vinschen <vinschen@redhat.com>
12236
12237 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12238 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12239 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12240
634aa483
AC
122412004-02-17 Andrew Cagney <cagney@redhat.com>
12242
12243 * symtab.c (skip_prologue_using_sal): New function.
12244 * symtab.h (skip_prologue_using_sal): Declare.
12245 * frv-tdep.c: Include "symtab.h".
12246 (skip_prologue_using_sal): Delete function.
12247 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12248 * rs6000-tdep.c (refine_prologue_limit): Mention
12249 skip_prologue_using_sal.
12250 * ia64-tdep.c (refine_prologue_limit): Ditto.
12251 * Makefile.in: Update dependencies.
12252
122532004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 12254
39ce7b3f
AC
12255 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12256 START_INFERIOR_TRAPS_EXPECTED.
12257 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12258 START_INFERIOR_TRAPS_EXPECTED.
12259 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12260 Delete macro.
12261 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12262 macro, moved to "nm-osf.h". Update copyright.
12263 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12264 update copyright.
12265
19772a2c
AC
12266 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12267 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12268 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12269 frameless_look_for_prologue.
12270 * frame.h (legacy_frameless_look_for_prologue): Rename
12271 frameless_look_for_prologue.
12272 * gdbarch.h, gdbarch.c: Re-generate.
12273 * sh64-tdep.c (sh64_gdbarch_init): Update.
12274 * sh-tdep.c (sh_gdbarch_init): Update.
12275 * s390-tdep.c (s390_gdbarch_init): Update.
12276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12277 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12278 * m68k-tdep.c (m68k_gdbarch_init): Update.
12279 (delta68_frame_args_address): Update.
12280 * m32r-tdep.c (m32r_gdbarch_init): Update.
12281 * hppa-tdep.c (hppa_gdbarch_init): Update.
12282 * h8300-tdep.c (h8300_gdbarch_init): Update.
12283 * frv-tdep.c (frv_gdbarch_init): Update.
12284 (frv_frameless_function_invocation): Update.
12285 * cris-tdep.c (cris_gdbarch_init): Update.
12286 (cris_frameless_function_invocation): Update.
12287 * avr-tdep.c (avr_gdbarch_init): Update.
12288 * arm-tdep.c (arm_gdbarch_init): Update.
12289 * stack.c (frame_info): Update, call predicate.
12290 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12291 * frame.c (legacy_get_prev_frame): Update, call predicate..
12292 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12293 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12294 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12295 invocation.
12296 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12297 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12298 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
12299
12300 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12301 function.
12302
7dcaac91
DJ
123032004-02-16 Daniel Jacobowitz <drow@mvista.com>
12304
12305 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12306 initializations.
12307
88289b6e
AC
123082004-02-16 Andrew Cagney <cagney@redhat.com>
12309
12310 * tui/tui-windata.c: Include "gdb_string.h".
12311 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12312 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12313 * Makefile.in: Update dependencies.
12314
9f976b41
DJ
123152004-02-16 Daniel Jacobowitz <drow@mvista.com>
12316
12317 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12318 * infrun.c: Include "gdb_assert.h".
12319 (singlestep_ptid, saved_singlestep_ptid)
12320 (stepping_past_singlestep_breakpoint): New variables.
12321 (resume): Set singlestep_ptid. Check for singlestep thread
12322 hop.
12323 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12324 (handle_inferior_event): Handle singlestep thread hop.
12325
c324d747
AC
123262004-02-16 Andrew Cagney <cagney@redhat.com>
12327
f090b9b1
AC
12328 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12329 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12330 (dwarf2_frame_init_reg): Ditto.
12331
fd33e6cb
AC
12332 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12333 suggested by Joshua Neuheisel
12334
c324d747
AC
12335 * configure.in: Always check for curses, including pdcurses.
12336 Warn, instead of error, when no curses are found. Enable TUI when
12337 curses is available.
12338 * configure: Re-generate.
12339
b66ba949
CV
123402004-02-16 Corinna Vinschen <vinschen@redhat.com>
12341
12342 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12343 sh_sh4_register_convert_to_virtual.
12344 (sh_register_convert_to_raw): Rename from
12345 sh_sh4_register_convert_to_raw.
12346 (sh_pseudo_register_read): Accomodate above name change.
12347 (sh_pseudo_register_write): Ditto.
12348
b58cbbf2
CV
123492004-02-16 Corinna Vinschen <vinschen@redhat.com>
12350
12351 * sh-tdep.c (sh_generic_register_name): Remove.
12352 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12353
5929a910
AC
123542004-02-15 Andrew Cagney <cagney@redhat.com>
12355
4566dfcf
AC
12356 * configure.in (build_warnings): Add -Wunused-function.
12357 * configure: Re-generate.
12358
db11ed55
AC
12359 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12360 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12361
46ac7a5d
AC
12362 * procfs.c (procfs_init_inferior): Assume that
12363 START_INFERIOR_TRAPS_EXPECTED is defined.
12364 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12365 * config/ns32k/tm-nbsd.h: Delete file,
12366 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12367
ba801595
AC
12368 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12369 * config/vax/tm-vax.h: Delete file.
12370
5929a910
AC
12371 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12372 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12373 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12374 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12375 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12376 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12377 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12378
8f22cb90
MK
123792004-02-15 Mark Kettenis <kettenis@gnu.org>
12380
12381 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12382 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12383 (struct dwarf2_frame_ops): New.
12384 (dwarf2_frame_default_init_reg): New function, based on
12385 dwarf2_frame_init_reg.
12386 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12387 (dwarf2_frame_init_reg): Call architecture-specific function.
12388 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12389 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12390 instead of dwarf2_frame_data.
12391 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12392 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12393
8132723e
AC
123942004-02-15 Andrew Cagney <cagney@redhat.com>
12395
046a4708
AC
12396 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12397 register_gdbarch_swap.
12398 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12399 * f-lang.c (_initialize_f_language): Update, use
12400 DEPRECATED_REGISTER_GDBARCH_SWAP.
12401 * remote.c (_initialize_remote): Ditto.
12402 * regcache.c (_initialize_regcache): Ditto.
12403 * parse.c (_initialize_parse): Ditto.
12404 * infrun.c (_initialize_infrun): Ditto.
12405 * mi/mi-main.c (_initialize_mi_main): Ditto.
12406 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 12407
549c1eea
AC
12408 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12409 poking .cacheable directly.
12410 * symfile.c (symfile_bfd_open): Ditto.
12411
0c0b39de
AC
12412 * Makefile.in: Update all dependencies.
12413
8132723e
AC
12414 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12415 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12416 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12417 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12418 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 12419
b9d26eb9
AC
124202004-02-14 Andrew Cagney <cagney@redhat.com>
12421
8e1f669a
AC
12422 * arch-utils.c (legacy_convert_register_p): Check
12423 DEPRECATED_REGISTER_CONVERTIBLE_P.
12424 * findvar.c (value_of_register): Ditto.
12425
cd0bfa36
AC
12426 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12427 * gdbarch.h, gdbarch.c: Re-generate.
12428 * arch-utils.c (deprecated_register_convertible_not): Delete.
12429 * arch-utils.h (deprecated_register_convertible_not): Delete.
12430 * mi/mi-main.c (get_register): Update. Update copyright.
12431 * infcmd.c (default_print_registers_info): Update.
12432
b9d26eb9
AC
12433 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12434 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12435 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 12436 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
12437 * frame.c (deprecated_get_next_frame_hack): Delete function.
12438 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12439 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12440 Update.
12441 * infcall.c (call_function_by_hand): Update.
12442
9ab9195f
EZ
124432004-02-14 Elena Zannoni <ezannoni@redhat.com>
12444
12445 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 12446 from here...
9ab9195f
EZ
12447 * objfiles.c (init_entry_point_info, entry_point_address):..to
12448 here.
12449 * symfile.h (init_entry_point_info, entry_point_address): Remove
12450 prototypes.
12451 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 12452 prototypes.
9ab9195f
EZ
12453 * cris-tdep.c: Remove include of symfile.h. Add include of
12454 objfiles.h.
12455 * infcall.c: Ditto.
12456 * mcore-tdep.c: Ditto.
12457 * mn10300-tdep.c: Ditto.
12458 * sh64-tdep.c: Ditto.
12459 * v850-tdep.c: Ditto.
12460 * arm-tdep.c: Remove include of symfile.h.
12461 * blockframe.c: Ditto.
12462 * coffread.c: Ditto.
12463 * dbxread.c: Ditto.
12464 * dwarf2read.c: Ditto.
12465 * dwarfread.c: Ditto.
8a1dac83 12466 * frv-tdep.c: Ditto.
9ab9195f
EZ
12467 * ia64-tdep.c: Ditto.
12468 * mdebugread.c: Ditto.
12469 * mipsread.c: Ditto.
8a1dac83 12470 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
12471 * s390-tdep.c: Ditto.
12472 * sh-tdep.c: Ditto.
8a1dac83 12473 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
12474 * gdbarch.sh: Remove include of symfile.h.
12475 * gdbarch.c: Regenerate.
12476 * solib-irix.c (enable_break): Use entry_point_address().
12477 Add comment about include file.
12478 * xcoffread.c: Add comment about include file.
8a1dac83
RM
12479 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12480 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12481 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12482 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
12483 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12484
c4c5b7ba
AC
124852004-02-13 Andrew Cagney <cagney@redhat.com>
12486
12487 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12488 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12489 copyright.
12490 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12491
3e7879de
FF
124922004-02-12 Fred Fish <fnf@redhat.com>
12493
12494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12495 set_gdbarch_store_return_value.
12496
6a7760b6
AC
124972004-02-12 Andrew Cagney <cagney@redhat.com>
12498
12499 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12500 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12501 (interrupt_query): Ditto.
12502 (ofunc): Delete unused variable.
12503 * cris-tdep.c (cris_abi): Delete unused function.
12504 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12505 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12506 (cris_get_asr_quick_shift_steps): Ditto.
12507 (cris_skip_prologue_frameless_p): Ditto.
12508 * arm-tdep.c (arm_push_return_address): Delete unused function.
12509 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12510 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12511 * s390-tdep.c (s390_function_start): Delete unused function.
12512
31687c3c
AC
125132004-02-12 Andrew Cagney <cagney@redhat.com>
12514
12515 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12516 gdbarch.h, gdbarch.c: Re-generate.
12517 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12518 to generic_prologue_frameless_p.
12519 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12520 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12521
6de918a6
DJ
125222004-02-11 Daniel Jacobowitz <drow@mvista.com>
12523
12524 * mips-linux-tdep.c: Include "frame.h".
12525 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12526 (mips_linux_skip_resolver): New functions.
12527 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12528 and set_gdbarch_in_solib_call_trampoline.
12529 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12530 to after set_gdbarch_in_solib_return_trampoline. Only set the
12531 solib hooks to mips16 functions if the OS ABI is unknown.
12532 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12533 including "config/tm-linux.h".
12534 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12535 * Makefile.in (mips-linux-tdep.o): Update.
12536
87b3ede8
DC
125372004-02-11 David Carlton <carlton@kealia.com>
12538
12539 * linespec.c (decode_compound): Only look for a class symbol when
12540 considering all but the rightmost component.
12541
5979bc46
AC
125422004-02-11 Andrew Cagney <cagney@redhat.com>
12543
12544 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12545 abi code are are separatly grouped.
12546
5867a2fb
AC
125472004-02-11 Andrew Cagney <cagney@redhat.com>
12548
12549 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12550 * gdbarch.h, gdbarch.c: Re-generate.
12551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12552 * v850-tdep.c (v850_gdbarch_init): Update.
12553 * sh64-tdep.c (sh64_gdbarch_init): Update.
12554 * sh-tdep.c (sh_gdbarch_init): Update.
12555 * s390-tdep.c (s390_gdbarch_init): Update.
12556 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12557 * mips-tdep.c (mips_gdbarch_init): Update.
12558 * mcore-tdep.c (mcore_gdbarch_init): Update.
12559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12560 * m32r-tdep.c (m32r_gdbarch_init): Update.
12561 * ia64-tdep.c (ia64_gdbarch_init): Update.
12562 * hppa-tdep.c (hppa_gdbarch_init): Update.
12563 * h8300-tdep.c (h8300_gdbarch_init): Update.
12564 * frv-tdep.c (frv_gdbarch_init): Update.
12565 * d10v-tdep.c (d10v_gdbarch_init): Update.
12566 * cris-tdep.c (cris_gdbarch_init): Update.
12567 * avr-tdep.c (avr_gdbarch_init): Update.
12568 * arm-tdep.c (arm_gdbarch_init): Update.
12569 * alpha-tdep.c (alpha_gdbarch_init): Update.
12570
026a72f8
CV
125712004-02-11 Corinna Vinschen <vinschen@redhat.com>
12572
12573 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12574 comma.
12575 (sh_sh4al_dsp_register_name): Ditto.
12576
3903d437
AC
125772004-02-10 Andrew Cagney <cagney@redhat.com>
12578
12579 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12580 (mips_init_frame_pc_first): Delete function.
12581 (mips_frame_saved_pc): Delete function.
12582 (mips_frame_chain): Delete function.
12583 (mips_init_extra_frame_info): Delete function.
12584 (mips_xfer_register): Delete unused variable "reg".
12585 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12586 (mips_n32n64_return_value): Delete unused variable "reg".
12587 (mips_n32n64_return_value): Delete unused variable "pos".
12588 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12589 (mips_o32_return_value): Delete unused variable "pos".
12590 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12591 (mips_print_fp_register): Delete unused variable "namelen"
12592 (mips_print_fp_register): Delete unused variable "flt2"
12593 (get_frame_pointer): Delete function.
12594 (cached_proc_desc): Delete static variable.
12595 (mips_pop_frame): Delete function.
12596 (mips_find_saved_regs): Delete function.
12597 (mips_get_saved_register): Delete function.
12598 (mips_saved_pc_after_call): Delete function.
12599 (SIGFRAME_BASE): Delete macro.
12600 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12601 (SIGFRAME_PC_OFF): Delete macro.
12602 (SIGFRAME_REGSAVE_OFF): Delete macro.
12603 (mips_dump_tdep): Do not print deleted macro definitions.
12604
b9fb98bd
AC
126052004-02-10 Andrew Cagney <cagney@redhat.com>
12606
12607 * Makefile.in (SFILES): Remove explictly listed tui files.
12608 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12609
78ced177 126102004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12611
78ced177
JJ
12612 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12613 to use paddr functions to format ia64 addresses and long values.
12614 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12615 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12616 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12617 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12618 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12619
6a83354a
AC
126202004-02-10 Andrew Cagney <cagney@redhat.com>
12621
12622 * defs.h: Do not include "tui.h".
12623 * gdb_curses.h: New file.
12624 * tui/tui-hooks.h: New file.
12625 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12626 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12627 (tui_initialize_io): Delete declaration.
12628 (tui_initialize_readline: Delete redundant declaration.
12629 (struct tui_point): Delete definition.
12630 * tui/tui-data.h (struct tui_point): Define.
12631 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12632 * utils.c: Include "tui/tui.h".
12633 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12634 * printcmd.c [TUI]: Include "tui/tui.h".
12635 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12636 * tui/tui-command.c: Include "gdb_curses.h".
12637 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12638 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12639 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12640 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12641 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12642 * Makefile.in: Update all dependencies.
12643 (tui_hooks_h, gdb_curses_h): Define.
12644 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12645
997470ef
EZ
126462004-02-10 Elena Zannoni <ezannoni@redhat.com>
12647
12648 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12649 auxf2. Add comments about some other rarely used fields.
12650
4ff2cc4d
AC
126512004-02-10 Andrew Cagney <cagney@redhat.com>
12652
12653 * Makefile.in (init.c): Fix script removing duplicates. Problem
12654 reported by Peter Schauer.
12655
1ab21617
EZ
126562004-02-09 Elena Zannoni <ezannoni@redhat.com>
12657
12658 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12659 obstack_specify_allocation.
12660 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12661 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12662 (allocate_rt_common_objfile): Ditto.
12663 * symfile.c (reread_symbols): Ditto.
12664 * gdb_obstack.h: Add comment.
12665
17763fd9
EZ
126662004-02-09 Elena Zannoni <ezannoni@redhat.com>
12667
12668 * linespec.c (decode_line_1, locate_first_half)
12669 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12670 commented out code.
12671
ec5cdd75
DJ
126722004-02-09 Daniel Jacobowitz <drow@mvista.com>
12673
12674 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12675 obstack_free.
12676
43b54b88
AC
126772004-02-09 Andrew Cagney <cagney@redhat.com>
12678
12679 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12680 fails, try find_pc_section. Fix PR c++/1267.
12681 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12682 instead of find_pc_mapped_section.
12683 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12684 not default to the section containing PC. Fix PR symtab/1519.
12685
edfae063
AC
126862004-02-09 Andrew Cagney <cagney@redhat.com>
12687
12688 * Makefile.in (mips-tdep.o): Update dependencies.
12689 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12690 "trad-frame.h".
12691 (mips_unwind_pc): Return the pseudo PC register.
12692 (mips_unwind_dummy_id): New function.
12693 (mips16_fetch_instruction): New function.
12694 (mips32_fetch_instruction): New function.
12695 (struct mips_frame_cache): Define.
12696 (mips_mdebug_frame_cache): New function.
12697 (mips_mdebug_frame_this_id): New function.
12698 (mips_mdebug_frame_prev_register): New function.
12699 (mips_mdebug_frame_unwind): Define.
12700 (mips_mdebug_frame_sniffer): New function.
12701 (mips_mdebug_frame_base_address): New function.
12702 (mips_mdebug_frame_base): Define.
12703 (mips_mdebug_frame_base_sniffer): New function.
12704 (mips_gdbarch_init): Append unwind and base sniffers. Set
12705 unwind_dummy_id.
12706
defc864c
AC
127072004-02-08 Andrew Cagney <cagney@redhat.com>
12708
6764ddad
AC
12709 * frame.c: Print both the register number and name.
12710
defc864c
AC
12711 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12712 and a sed into a single sed. Make .c and .o patterns more robust.
12713 (OBS): Delete.
12714 (INIT_FILES): Replace OBS with COMMON_OBS.
12715 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12716
645d6d10
MK
127172004-02-08 Mark Kettenis <kettenis@gnu.org>
12718
12719 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12720 the PT_WCOOKIE request.
12721
23e3c3fc
AC
127222004-02-08 Andrew Cagney <cagney@redhat.com>
12723
58dfe9ff
AC
12724 * mips-tdep.c (mips_unwind_pc): New function.
12725 (mips_gdbarch_init): Set mips_unwind_pc.
12726
1152e35e
AC
12727 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12728 (get_frame_id): Allow the UNKNOWN_FRAME.
12729 (frame_register_unwind, get_frame_type): Ditto.
12730
31b75dbf
AC
12731 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12732 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12733 unwind_dummy_id indicates a legacy frame.
12734
3483b318
AC
12735 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12736 * configure: Re-generate.
12737
23e3c3fc
AC
12738 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12739 methods.
12740
33f8ca73
AC
127412004-02-08 Andrew Cagney <cagney@redhat.com>
12742
12743 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12744 makefile macro.
12745 * configure: Re-generate.
12746 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12747 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12748 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12749 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12750 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12751 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12752 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12753 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12754 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12755 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12756
6ba8e26f 127572004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12758
20d286a5
AC
12759 * Makefile.in: Update all dependencies.
12760
d836ee13
AC
12761 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12762 * configure: Re-generate.
12763 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12764 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12765 (COMMON_OBS): Add "main.o" and "annotate.o".
12766 (ANNOTATE_OBS): Delete.
12767 (OBS): Remove ANNOTATE_OBS.
12768 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12769 CONFIG_INITS.
12770 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12771 against CONFIG_OBS and "main.o".
12772 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12773 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12774
d02c80cd
AC
12775 * tui/tui-command.c: Include "gdb_string.h", delete register
12776 attribute, use ISO-C function signatures.
12777 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12778 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12779 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12780 * tui/tui.c: Ditto.
6ba8e26f
AC
12781
12782 * tui/tui-command.c: Change variable and function names to lower
12783 case.
12784 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12785 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12786 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12787 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12788 * tui/tui-winsource.c, tui/tui.c: Ditto.
12789
4a146b47
EZ
127902004-02-07 Elena Zannoni <ezannoni@redhat.com>
12791
12792 * buildsym.c (free_pending_blocks, finish_block)
12793 (record_pending_block, make_blockvector, end_symtab): Replace
12794 symbol_obstack with objfile_obstack.
8a1dac83 12795 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12796 (coff_read_enum_type): Ditto.
8a1dac83 12797 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12798 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12799 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12800 (dwarf2_symbol_mark_computed): Ditto.
12801 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12802 * elfread.c (elf_symtab_read): Ditto.
12803 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12804 (hpread_read_enum_type, hpread_read_function_type)
12805 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12806 Ditto.
8a1dac83 12807 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12808 (java_link_class_type): Ditto.
8a1dac83 12809 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12810 (new_symbol): Ditto.
12811 * minsyms.c (install_minimal_symbols): Ditto.
12812 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12813 (terminate_minimal_symbol_table): Replace symbol_obstack with
12814 objfile_obstack.
12815 (free_objfile): Remove freeing of symbol_obstack.
12816 * objfiles.h: Remove symbol_obstack field.
12817 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12818 objfile_obstack.
12819 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12820 symbol_obstack.
12821 (solib_add_common_symbols): Replace symbol_obstack with
12822 objfile_obstack.
12823 * somsolib.c (som_solib_add): Ditto.
12824 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12825 (common_block_start, common_block_end): Ditto.
12826 * symfile.c (reread_symbols): Remove freeing and init of
12827 symbol_obstack.
12828 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12829 * symfile.h: Update comment.
12830 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12831 stats printing.
12832 * symtab.c (symbol_set_names): Replace symbol_obstack with
12833 objfile_obstack.
12834 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12835 Update comments.
12836 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12837 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12838 objfile_obstack.
12839
6d012f14
AC
128402004-02-07 Andrew Cagney <cagney@redhat.com>
12841
12842 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12843 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12844 fields and variables.
12845 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12846 (m_beInvisible): Delete macro.
12847 * tui/tui-data.h: Fix case case fields and variables.
12848 (m_genWinPtrIsNull): Delete macro.
12849 (tui_win_list): Rename winList.
12850 (TUI_SRC_WIN): Rename srcWin.
12851 (TUI_DISASM_WIN): Rename disassemWin.
12852 (TUI_DATA_WIN): Rename dataWin.
12853 (TUI_CMD_WIN): Rename cmdWin.
12854 (m_genWinPtrNotNull): Delete macro.
12855 (m_winPtrIsNull): Delete macro.
12856 (m_winPtrNotNull): Delete macro.
12857 (tui_win_is_source_type): Replace m_winIsSourceType
12858 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12859 (tui_win_has_locator): Replace m_hasLocator.
12860 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12861 m_setWinHighlightOff.
12862 * tui/tui-data.c: Update references.
12863 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12864 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12865 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12866 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12867 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12868 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12869 * tui/tui-winsource.c, tui/tui.c: Ditto.
12870
7d34766b
MK
128712004-02-07 Mark Kettenis <kettenis@gnu.org>
12872
1c800673
MK
12873 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12874 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12875 StackGhost.
12876
7d34766b
MK
12877 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12878 variable `i6' to `i7'.
12879 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12880
22940a24
AC
128812004-02-07 Andrew Cagney <cagney@redhat.com>
12882
12883 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12884 (TuiPoint, TuiPointPtr): Ditto.
12885 (TuiStatus, TuiStatusPtr): Ditto.
12886 (TuiWinType, TuiWinTypePtr): Ditto.
12887 (struct tui_point): Rename _TuiPoint.
12888 (tui_get_low_disassembly_address): Rename
12889 tuiGetLowDisassemblyAddress.
12890 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12891 (tuiFree): Delete declaration.
12892 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12893 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12894 * tui/tui.c (tuiFree): Delete function.
12895 * cli/cli-cmds.c (disassemble_command): Update references.
12896 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12897 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12898 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12899 * tui/tui-winsource.c: Ditto.
12900
8b92e4d5
EZ
129012004-02-07 Elena Zannoni <ezannoni@redhat.com>
12902
12903 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12904 coffstab_build_psymtabs, elfstab_build_psymtabs)
12905 (stabsect_build_psymtabs): Replace psymbol_obstack with
12906 objfile_obstack.
12907 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12908 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12909 Ditto.
12910 * dwarfread.c (scan_compilation_units): Ditto.
12911 * elfread.c (elfstab_offset_sections): Ditto.
12912 * hppa-tdep.c (read_unwind_info): Ditto.
12913 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12914 (hpread_end_psymtab): Ditto.
12915 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12916 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12917 Ditto.
12918 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12919 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12920 (build_objfile_section_table): Ditto.
12921 (allocate_objfile): Remove init of psymbol_obstack.
12922 (free_objfile): Remove freeing of psymbol_obstack.
12923 * objfiles.h (struct objfile): Remove field
12924 psymbol_obstack. Update comments.
12925 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12926 psymbol_obstack with objfile_obstack.
12927 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12928 psymbol_obstack.
12929 * somread.c (som_symfile_offsets, init_import_symbols)
12930 (init_export_symbols): Replace psymbol_obstack with
12931 objfile_obstack.
12932 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12933 * symfile.c (default_symfile_offsets, syms_from_objfile)
12934 (reread_symbols): Remove freeing and init of psymbol_obstack.
12935 (cashier_psymtab): Update comment.
12936 * symmisc.c (print_objfile_statistics): Don't report stats for
12937 psymbol obstack.
12938 * symtab.h (struct general_symbol_info, struct partial_symtab):
12939 Update comments.
12940 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12941 (xcoff_symfile_offsets): Replace psymbol_obstack with
12942 objfile_obstack.
12943
b99607ea
EZ
129442004-02-07 Elena Zannoni <ezannoni@redhat.com>
12945
12946 * objfiles.h (struct objfile): Add objfile_obstack field.
12947 Remove type_obstack field.
12948
12949 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12950 read_structure_scope read_enumeration, new_symbol): Replace
12951 type_obstack with objfile_obstack.
12952 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12953 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12954 (lookup_fundamental_type): Ditto.
12955 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12956 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12957 (hpread_read_doc_function_type, hpread_read_struct_type)
12958 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12959 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12960 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12961 (java_link_class_type): Ditto.
12962 * mdebugread.c (parse_type): Ditto.
12963 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12964 * solib-sunos.c (solib_add_common_symbols): Ditto.
12965 * stabsread.c (define_symbol, read_type, read_member_functions,
12966 read_cpp_abbrev, read_one_struct_field): Ditto.
12967 * symfile.c (reread_symbols): Ditto.
12968 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12969
2a8854a7
AC
129702004-02-07 Andrew Cagney <cagney@redhat.com>
12971
12972 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12973 (tui_exec_info_content): Rename TuiExecInfoContent.
12974 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12975 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12976 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12977 (TuiList, TuiListPtr): Ditto.
12978 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12979 (TuiDataType, TuiDataTypePtr): Ditto.
12980 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12981 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12982 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12983 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12984 (TuiDataElement, TuiDataElementPtr): Ditto.
12985 (TuiWinElement, TuiWinElementPtr): Ditto.
12986 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12987 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12988 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12989 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12990 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12991 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12992 * tui/tui-command.c, tui/tui-data.c: Update references.
12993 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12994 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12995 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12996 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12997
05cbe71a
MK
129982004-02-07 Mark Kettenis <kettenis@gnu.org>
12999
13000 * dwarf2-frame.h: Update copyright.
13001 (enum dwarf2_frame_reg_rule): New.
13002 (struct dwarf2_frame_state_reg): New.
13003 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13004 * dwarf2-frame.c: Update copyright.
13005 (enum dwarf2_reg_rule): Remove.
13006 (struct dwarf2_frame_state): Remove defenition of `struct
13007 dwarf2_frame_state_reg'.
13008 (read_reg): Call get_frame_arch to get the architecture instead of
13009 using CURRENT_GDBARCH.
13010 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13011 DWARF2_FRAME_.
13012 (dwarf2_frame_init_reg): New function.
13013 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13014 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13015 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13016 tags with DWARF2_FRAME_.
13017 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13018 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13019 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13020
ec7d9e56
AC
130212004-02-06 Andrew Cagney <cagney@redhat.com>
13022
dd1abb8c
AC
13023 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13024 (enum tui_data_type): Rename _TuiDataType.
13025 (struct tui_layout_def): Rename _TuiLayoutDef.
13026 (struct tui_source_element): Rename _TuiSourceElement.
13027 (struct tui_data_element): Rename _TuiDataElement.
13028 (struct tui_command_element): Rename _TuiCommandElement.
13029 (struct tui_locator_element): Rename _TuiLocatorElement.
13030 (union tui_which_element): Define.
13031 (struct tui_win_element): Rename _TuiWinElement.
13032 (struct tui_data_info): Rename _TuiDataInfo.
13033 (struct tui_source_info): Rename _TuiSourceInfo.
13034 (struct tui_command_info): Rename _TuiCommandInfo.
13035 (tui_initialize_static_data): Rename initializeStaticData.
13036 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13037 (tui_alloc_win_info): Rename allocWinInfo.
13038 (tui_init_generic_part): Rename initGenericPart.
13039 (tui_init_win_info): Rename initWinInfo.
13040 (tui_alloc_content): Rename allocContent.
13041 (tui_add_content_elements): Rename addContentElements.
13042 (tui_init_content_element): Rename initContentElement.
13043 (tui_free_window): Rename freeWindow.
13044 (tui_free_win_content): Rename freeWinContent.
13045 (tui_free_data_content): Rename freeDataContent.
13046 (tui_free_all_source_wins_content): Rename
13047 freeAllSourceWinsContent.
13048 (tui_del_window): Rename tuiDelWindow.
13049 (tui_del_data_windows): Rename tuiDelDataWindows.
13050 (tui_partial_win_by_name): Rename partialWinByName.
13051 (tui_win_name): Rename winName.
13052 (tui_current_layout): Rename currentLayout.
13053 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13054 (tui_term_height): Rename termHeight.
13055 (tui_set_term_height_to): Rename setTermHeightTo.
13056 (tui_term_width): Rename termWidth.
13057 (tui_set_term_width_to): Rename setTermWidthTo.
13058 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13059 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13060 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13061 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13062 (tui_source_windows): Rename sourceWindows.
13063 (tui_clear_source_windows): Rename clearSourceWindows.
13064 (tui_clear_source_windows_detail): Rename
13065 clearSourceWindowsDetail.
13066 (tui_clear_win_detail): Rename clearWinDetail.
13067 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13068 (tui_default_tab_len): Rename tuiDefaultTabLen.
13069 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13070 (tui_win_with_focus): Rename tuiWinWithFocus.
13071 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13072 (tui_layout_def): Rename tuiLayoutDef.
13073 (tui_win_resized): Rename tuiWinResized.
13074 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13075 (tui_next_win): Rename tuiNextWin.
13076 (tui_prev_win): Rename tuiPrevWin.
13077 (tui_add_to_source_windows): Rename addToSourceWindows.
13078 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13079 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13080 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13081 * tui/tui.c, tui/tui-data.c: Ditto.
13082 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13083 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13084
a358af15
AC
13085 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13086 (struct symtab): Declare.
13087 (tui_set_source_content): Rename tuiSetSourceContent.
13088 (tui_show_symtab_source): Rename tuiShowSource.
13089 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13090 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13091 * tui/tui-source.c: Update copyright. Update references.
13092 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13093 * tui/tui-stack.c: Update references.
13094
a21fcd8f
AC
13095 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13096 (struct tui_win_info): Declare.
13097 (tui_scroll_forward): Rename tuiScrollForward.
13098 (tui_scroll_backward): Rename tuiScrollBackward.
13099 (tui_scroll_left): Rename tuiScrollLeft.
13100 (tui_scroll_right): Rename tuiScrollRight.
13101 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13102 (tui_resize_all): Rename tuiResizeAll.
13103 (tui_refresh_all_win): Rename tuiRefreshAll.
13104 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13105 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13106 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13107 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13108
edae1ccf
AC
13109 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13110 (tui_erase_data_content): Rename tuiEraseDataContent.
13111 (tui_display_all_data): Rename tuiDisplayAllData.
13112 (tui_check_data_values): Rename tuiCheckDataValues.
13113 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13114 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13115 (tui_first_data_element_no_in_line): Rename
13116 tuiFirstDataElementNoInLine.
13117 (tui_delete_data_content_windows): Rename
13118 tuiDeleteDataContentWindows.
13119 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13120 (tui_display_data_from): Rename tuiDisplayDataFrom.
13121 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13122 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13123 * tui/tui-win.c, tui/tui-regs.c: Update references.
13124 * tui/tui-layout.c, tui/tui.c: Update references.
13125
ec7d9e56
AC
13126 * tui/tui-wingeneral.h: Update copyright.
13127 (m_allBeVisible): Delete macro.
8a1dac83 13128 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
13129 (struct tui_gen_win_info): Declare.
13130 (struct tui_win_info): Declare.
13131 (tui_unhighlight_win): Rename unhighlightWin.
13132 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13133 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13134 (tui_make_window): Rename makeWindow.
13135 (tui_copy_win): Rename copyWin.
13136 (tui_box_win): Rename boxWin.
13137 (tui_highlight_win): Rename highlightWin.
13138 (tui_check_and_display_highlight_if_needed): Rename
13139 checkAndDisplayHighlightIfNeeded.
13140 (tui_refresh_all): Rename refreshAll.
13141 (tui_delete_win): Rename tuiDelwin.
13142 (tui_refresh_win): Rename tuiRefreshWin.
13143 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13144 (tui_make_visible, tui_make_invisible): New functions.
13145 (tui_make_all_visible, tui_make_all_invisible): New functions.
13146 (make_all_visible): Rename makeAllVisible.
13147 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13148 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13149 * tui/tui-windata.c, tui/tui-win.c: Update references.
13150 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13151 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13152
1e52e2eb
MK
131532004-02-06 Mark Kettenis <kettenis@gnu.org>
13154
13155 * proc-api.c (write_with_trace): Initialize local variable to
13156 silence compiler warning.
13157
f80bda8e
AC
131582004-02-06 Andrew Cagney <cagney@redhat.com>
13159
13160 * tui/tui-source.h: Do not include "defs.h".
13161 (struct tui_win_info): Declare.
13162 (tui_set_source_content_nil): Declare.
13163 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13164 (union tui_line_or_address): Rename _TuiLineOrAddress.
13165 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13166 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13167 (tui_update_source_window_as_is): Rename
13168 tuiUpdateSourceWindowAsIs.
13169 (tui_update_source_windows_with_addr): Rename
13170 tuiUpdateSourceWindowsWithAddr.
13171 (tui_update_source_windows_with_line): Rename
13172 tuiUpdateSourceWindowsWithLine.
13173 (tui_clear_source_content): Rename tuiClearSourceContent.
13174 (tui_erase_source_content): Rename tuiEraseSourceContent.
13175 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13176 (tui_show_source_content): Rename tuiShowSourceContent.
13177 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13178 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13179 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13180 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13181 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13182 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13183 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13184 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13185 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13186 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13187 (struct tui_win_info): Declare.
13188 * tui/tui-stack.c: Update references.
13189 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13190 * tui/tui-win.c, tui/tui-source.c: Ditto.
13191 * tui/tui.c, tui/tui-disasm.c: Ditto.
13192
9fbfb822
MK
131932004-02-06 Mark Kettenis <kettenis@gnu.org>
13194
13195 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13196 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13197
03cebad2
MK
131982004-02-05 Mark Kettenis <kettenis@gnu.org>
13199
13200 * infrun.c (handle_inferior_event): Allow for breakpoint
13201 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13202 and SIGEMT. Update comments.
13203 * NEWS (Revised SPARC target): Mention support for non-executable
13204 stack.
13205
290281b1
MK
132062004-02-04 Mark Kettenis <kettenis@gnu.org>
13207
13208 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13209 * inftarg.c: Update copyright year.
13210 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13211 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13212 (sparc_xfer_wcookie): New function.
13213 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13214 * Makefile.in (sparc-nat.o): Update dependencies.
13215 * config/sparc/nm-nbsd.h: Include "target.h".
13216 (NATIVE_XFER_WCOOKIE): New define.
13217 (sparc_xfer_wcookie): New prototype.
13218
212161df
AC
132192004-02-04 Andrew Cagney <cagney@redhat.com>
13220
13221 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13222 SYSCALL_TRAP function.
13223 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13224
6e4c6c91
DJ
132252004-02-04 Andrew Cagney <cagney@redhat.com>
13226 Daniel Jacobowitz <drow@mvista.com>
13227
13228 * objfiles.h: Delete comments refering to inside_entry_func and
13229 DEPRECATED_FRAME_CHAIN_VALID.
13230 * defs.h (inside_entry_func): Update prototype..
13231 * blockframe.c (inside_entry_func): Rename to
13232 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13233 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13234
cae688ec
JJ
132352004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13236
13237 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13238 outside of #ifdef SOLIB_ADD region.
13239 (do_restore_lang_radix_cleanup): Ditto.
13240 (resolve_pending_breakpoint): Ditto.
13241
19217676
AC
132422004-02-03 Andrew Cagney <cagney@redhat.com>
13243
13244 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13245 (process_note_abi_tag_sections): Delete unused function.
13246 (ia64_read_fp): Delete unused function.
13247 (gdbarch_extract_struct_value_address): Delete declaration.
13248
876753be
AC
132492004-02-02 Andrew Cagney <cagney@redhat.com>
13250
13251 * vax-tdep.c (vax_frame_chain): Delete call to
13252 deprecated_inside_entry_file.
13253 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13254
d4f10bf2
MK
132552004-02-02 Mark Kettenis <kettenis@gnu.org>
13256
13257 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13258 column that's "empty" or "same value" when eliminating REG_RA
13259 rules.
13260
cae688ec
JJ
132612004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13262
13263 * NEWS: Add information about new pending breakpoint support.
13264
0101ce28
JJ
132652004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13266
13267 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13268 and pending fields for pending breakpoint support.
13269 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13270 (condition_command): Only parse condition if not a pending
13271 breakpoint.
13272 (print_one_breakpoint): Add support for pending breakpoints.
13273 (describe_other_breakpoints): Add checks to verify we are not
13274 dealing with pending breakpoints.
13275 (check_duplicates): Don't check pending breakpoints.
13276 (set_raw_breakpoint): Initialize pending flag.
13277 (do_restore_lang_radix_cleanup): New cleanup routine.
13278 (resolve_pending_breakpoint): New function.
13279 (re_enable_breakpoints_in_shlibs): Try and resolve any
13280 pending breakpoints via resolve_pending_breakpoint.
13281 (mention): Add pending breakpoint support.
13282 (parse_breakpoint_sals): Add new parameter to pass to
13283 decode_line_1 to indicate silent errors when files or functions
13284 are not found. Change all callers.
13285 (do_captured_parse_breakpoint): New function.
13286 (break_command_1): Change prototype to return an rc value and to
13287 take an optional pending breakpoint pointer. Support creating
13288 a pending breakpoint if a "not found" form of error occurs when
13289 parsing the breakpoint. Also support resolving an existing pending
13290 breakpoint and be silent if the resolution fails.
13291 (create_breakpoints): Change prototype to take pending breakpoint
13292 pointer. When resolving a pending breakpoint, use the new pointer
13293 to provide a conditional or commands added by the end-user.
13294 (delete_breakpoint): Add appropriate check for pending.
13295 (breakpoint_re_set_one): Ditto.
13296 (do_enable_breakpoint): Ditto.
13297
8d577d32
DC
132982004-02-02 David Carlton <carlton@kealia.com>
13299
13300 * valops.c (enum oload_classification): New.
13301 (find_overload_match): Break implementation into separate
13302 functions; delete #if 0'd code; look for symbols within
13303 namespaces.
13304 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13305 (find_oload_champ,oload_method_static,classify_oload_match): New.
13306 * cp-support.h: Add declaration for cp_func_name; update
13307 declaration for make_symbol_overload_list.
13308 * cp-support.c (cp_func_name): New.
13309 (overload_list_add_symbol): Fix comment, use
13310 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13311 (make_symbol_overload_list): Take a function name and a namespace
13312 instead of a symbol; change implementation.
13313 (make_symbol_overload_list_using): New.
13314 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13315
22e8e3c7
FF
133162004-02-02 Fred Fish <fnf@redhat.com>
13317
13318 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 13319 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
13320 * remote-sim.c (gdb_os_write_stderr): Write output to
13321 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13322 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 13323 gdb_stderr stream and update copyright years.
22e8e3c7 13324
6b753f60
DJ
133252004-02-01 Daniel Jacobowitz <drow@mvista.com>
13326
13327 * Makefile.in (mips-linux-nat.o): Update dependencies.
13328 * mips-linux-nat.c: Include mips-tdep.h.
13329
133302004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
13331
13332 * sol-thread.c (sol_thread_xfer_partial): New function.
13333 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13334 (init_sol_core_ops): Likewise.
13335
13336 * procfs.c (procfs_xfer_partial): New function.
13337 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13338 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13339
13340 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13341 procfs_xfer_auxv function.
13342
13343 * procfs.c (procfs_make_note_section): If we can read
13344 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13345 * linux-proc.c (linux_make_note_section): Likewise.
13346
13347 * auxv.h: New file.
13348 * auxv.c: New file.
13349 * Makefile.in (auxv_h): New variable.
13350 (COMMON_OBS): Add auxv.o here.
13351 (auxv.o): New target.
13352
13353 * corelow.c (core_xfer_partial): New function.
13354 (init_core_ops): Use it for core_ops.to_xfer_partial.
13355
13356 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13357 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13358 macro if that is defined.
13359
fa5281d0
DJ
133602004-02-01 Daniel Jacobowitz <drow@mvista.com>
13361
13362 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13363 and check the specified thread for each breakpoint.
13364 * breakpoint.h (bpstat_stop_status): Update prototype.
13365 * infrun.c (handle_inferior_event): Update calls to
13366 bpstat_stop_status.
13367
26ee262d
DJ
133682004-02-01 Daniel Jacobowitz <drow@mvista.com>
13369
13370 * Makefile.in (cli-cmds.o): Add $(readline_h).
13371
d9b52655
DJ
133722004-02-01 Daniel Jacobowitz <drow@mvista.com>
13373
13374 * cli/cli-cmds.c: Include readline.h.
13375 (complete_command): Pass the start of the last word to
13376 complete_line.
13377
9709f61c
DJ
133782004-01-31 Daniel Jacobowitz <drow@mvista.com>
13379
13380 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13381 argument, and change first argument to a CORE_ADDR.
13382 * breakpoint.h (bpstat_stop_status): Update prototype.
13383 * infrun.c (adjust_pc_after_break): Add a new comment.
13384 (handle_inferior_event): Update calls to bpstat_stop_status.
13385
4f1280bb
DJ
133862004-01-31 Daniel Jacobowitz <drow@mvista.com>
13387
13388 * breakpoint.h: Update copyright years.
13389
4fa8626c
DJ
133902004-01-31 Daniel Jacobowitz <drow@mvista.com>
13391
13392 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13393 (bpstat_stop_status): Don't decrement PC.
13394 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13395 prototype.
13396 * infrun.c (adjust_pc_after_break): New function.
13397 (handle_inferior_event): Call it, early. Remove later references
13398 to DECR_PC_AFTER_BREAK.
13399 (normal_stop): Add commentary.
13400
fad0733a
DJ
134012004-01-31 Daniel Jacobowitz <drow@mvista.com>
13402
13403 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13404 2004-01-27 double-free fix.
13405
42cdca6c
MK
134062004-01-31 Mark Kettenis <kettenis@gnu.org>
13407
13408 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13409 (sparc32_frame_prev_register): Handle StackGhost.
13410 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13411
932d5416
RM
134122004-01-29 Roland McGrath <roland@redhat.com>
13413
13414 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13415 * configure: Regenerated.
13416
13417 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13418 * Makefile.in (procfs.o): Add dep.
13419
47d3492a
AC
134202004-01-28 Andrew Cagney <cagney@redhat.com>
13421
13422 * tui/tui-stack.h: Update copyright.
13423 (struct frame_info): Add opaque declaration.
13424 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13425 (tui_show_locator_content): Rename tuiShowLocatorContent.
13426 (tui_show_frame_info): Rename tuiShowFrameInfo.
13427 * tui/tui-stack.c: Update copyright. Update references.
13428 * tui/tui-winsource.c: Update references.
13429 * tui/tui-win.c: Update references.
13430 * tui/tui-layout.c: Update references.
13431 * tui/tui-hooks.c: Update copyright, update references.
13432 * tui/tui.c: Update copyright, update references.
13433 * tui/tui-disasm.c: Update references.
13434
5d51ca54
DC
134352004-01-28 David Carlton <carlton@kealia.com>
13436
13437 * dwarf2read.c (add_partial_structure): Use demangled name if
13438 namespace equals "".
13439
086ed43d
JB
134402004-01-27 Jim Blandy <jimb@redhat.com>
13441
13442 Clean up misapplied patch:
13443 * dwarf2read.c (determine_prefix): Change one of the two forward
13444 declarations for 'determine_prefix_aux' to a declaration for this.
13445 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13446 argument to 'die_specification'.
13447
2a35147e
JB
13448 * dwarf2read.c (read_func_scope): Re-indent comment.
13449
a355c7de 134502004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 13451
a355c7de
AC
13452 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13453 b->exp to NULL after freeing so that error during re-parsing or
13454 evaluation of expressions associated with breakpoint don't
13455 eventually lead to re-freeing of storage.
13456 Committed by Andrew Cagney.
13457
63ff5125
AC
134582004-01-27 Andrew Cagney <cagney@redhat.com>
13459
13460 * source.c (ambiguous_line_spec): Delete undefined declaration.
13461 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13462 (m32r_set_server_address, m32r_set_download_path): Ditto.
13463 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13464
e142c38c
DJ
134652004-01-27 Daniel Jacobowitz <drow@mvista.com>
13466
13467 * dwarf2read.c: Update calls to changed and renamed functions, and
13468 references to moved variables.
13469
13470 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13471 language, language_defn, list_in_scope, and ftypes members.
13472 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13473 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13474 (baseaddr): Remove globals.
13475
13476 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13477 (set_cu_language, die_is_declaration, die_specification)
13478 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13479 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13480 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13481 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13482
13483 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13484 cu.list_in_scope. Don't initialize cu_header_offset.
13485 (add_partial_symbol): Add local baseaddr.
13486 (psymtab_to_symtab_1): Add local baseaddr. Use
13487 objfile->section_offsets for consistency. Don't initialize
13488 cu_header_offset; do initialize cu.header.offset and
13489 cu.list_in_scope.
13490 (read_file_scope, read_func_scope, read_lexical_block_scope)
13491 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13492
c6e06ede
MC
134932004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13494
fb328ecc 13495 * PROBLEMS: Add gdb/1516.
c6e06ede 13496
48184fd4
AC
134972003-12-29 Robert Millan <robertmh@gnu.org>
13498
13499 Patch committed by Andrw Cagney.
13500 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13501 * configure.tgt: Match knetbsd*-gnu.
13502
c1321b30
AC
135032004-01-26 Andrew Cagney <cagney@redhat.com>
13504
f3699be3
AC
13505 * breakpoint.c (catch_command_1): Delete #ifdef code.
13506 (catch_fork_command_1): Delete #ifdef wrapper.
13507 (catch_exec_command_1): Ditto.
13508 (catch_load_command_1): Ditto.
13509 (catch_unload_command_1): Ditto.
13510
c1321b30
AC
13511 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13512 (catch_breakpoint): Delete #if0ed function.
13513 (disable_catch_breakpoint): Ditto.
13514 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13515 (disable_catch, enable_catch, delete_catch): Ditto.
13516
b4501125
AC
135172004-01-26 Andrew Cagney <cagney@redhat.com>
13518
13519 * remote.c (echo_check, quit_flag): Delete variables.
13520 (cisco_kernel_mode): Delete variable.
13521 (minitelnet_return, tty_input, escape_count): Delete variables.
13522 (remote_cisco_mode): Delete variable.
13523 (remote_cisco_open, remote_cisco_close): Delete function.
13524 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13525 (init_remote_cisco_ops): Delete function.
13526 (_initialize_remote): Do not install "remote cisco" code.
13527 (read_frame): Delete cisco specific code.
13528 (remote_info_process): Delete function.
13529 (remote_wait): Delete cisco specific code.
13530 (remote_cisco_section_offsets): Delete function.
13531 (remote_cisco_objfile_relocate): Delete function.
13532 (remote_async_wait): Delete cisco specific code.
13533 (minitelnet, readtty, readsocket): Delete function.
13534
74055713
AC
135352004-01-26 Andrew Cagney <cagney@redhat.com>
13536
13537 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13538 comments mentioning extract_returned_value_address.
13539 * infcmd.c (print_return_value): Update. Add comments on
13540 extract_returned_value_address.
13541 * stack.c (return_command): Add comments on
13542 extract_returned_value_address.
13543 * values.c: Update comment.
13544 * m32r-tdep.c: Update comment.
13545 * sparc-tdep.c: Update comment.
13546 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13547 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13548 * sh64-tdep.c (sh64_gdbarch_init): Update.
13549 * sh-tdep.c (sh_gdbarch_init): Update.
13550 * s390-tdep.c (s390_gdbarch_init): Update.
13551 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13552 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13553 * m68k-tdep.c (m68k_gdbarch_init): Update.
13554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13555 * m32r-tdep.c (m32r_gdbarch_init): Update.
13556 * ia64-tdep.c (ia64_gdbarch_init): Update.
13557 * h8300-tdep.c (h8300_gdbarch_init): Update.
13558 * frv-tdep.c (frv_gdbarch_init): Update.
13559 * arm-tdep.c (arm_gdbarch_init): Update.
13560 * alpha-tdep.c (alpha_gdbarch_init): Update.
13561
a67af2b9
AC
135622004-01-26 Andrew Cagney <cagney@redhat.com>
13563
13564 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13565 SYMBOL_LOCATION_FUNCS
13566 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13567 "struct symbol_ops".
13568 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13569 type to "struct symbol_ops".
13570 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13571 (struct symbol): Replace ".aux_value.loc.funcs" and
13572 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13573 (SYMBOL_OBJFILE): Delete macro.
13574 (SYMBOL_LOCATION_FUNCS): Delete macro.
13575 (SYMBOL_LOCATION_BATON): Update.
13576 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13577 intead of SYMBOL_LOCATION_FUNCS.
13578 * ax-gdb.c (gen_var_ref): Ditto.
13579 * printcmd.c (address_info): Ditto.
13580 * findvar.c (read_var_value): Ditto.
13581 (symbol_read_needs_frame): Ditto.
13582
c034e007
AC
135832004-01-26 Andrew Cagney <cagney@redhat.com>
13584
13585 * dwarf2read.c (read_func_scope): Document frame-base hack.
13586
bb472c1e
MK
135872004-01-25 Mark Kettenis <kettenis@gnu.org>
13588
13589 * infcmd.c (print_return_value): Plug memory leak; delete
13590 ui_stream object. Rename argument `structure_return' to
13591 `struct_return'.
13592
c8e737d5
MK
135932004-01-25 Mark Kettenis <kettenis@gnu.org>
13594
f941662f
MK
13595 * infcmd.c (print_return_value): Wrap long lines.
13596 (finish_command_continuation, finish_command): Remove unused
13597 variable `funcaddr'. Fix some coding-standards problems.
13598
c558d81a 13599 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13600 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13601 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13602 TDEP->fpregset to zero.
13603
bf1e5861 13604 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13605 floating-point registers for traditional NetBSD core files.
13606 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13607 TDEP->sizeof_fpregset here.
13608
4c72d57a
MK
136092004-01-25 Mark Kettenis <kettenis@gnu.org>
13610
566626fa
MK
13611 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13612 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13613 function with code split out from
13614 sparc32nbsd_sigcontext_frame_cache.
13615 (sparc32nbsd_sigcontext_frame_cache): Use
13616 sparc32nbsd_sigcontext_saved_regs.
13617 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13618 OpenBSD.
13619 * sparcobsd-tdep.c: New file.
13620 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13621 (sparcobsd-tdep.o): New dependency.
13622 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13623 * config/sparc/obsd.mt: New file.
13624
4c72d57a
MK
13625 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13626 TDEP->fpregset to be initialized to enable core file register
13627 sets.
13628
7e5e9f88
MK
136292004-01-24 Mark Kettenis <kettenis@gnu.org>
13630
f0f207fd 13631 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13632 Add opaque declarations.
13633 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13634 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13635 function with code split out from
13636 sparc64nbsd_sigcontext_frame_cache.
13637 (sparc64nbsd_sigcontext_frame_cache): Use
13638 sparc64nbsd_sigcontext_saved_regs.
13639 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13640 OpenBSD.
13641 * sparc64obsd-tdep.c: New file.
13642 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13643 (sparc64obsd-tdep.o): New dependency.
13644 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13645 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13646 * config/sparc/obsd64.mt: New file.
13647
690668cc
MK
13648 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13649 read the instruction at PC.
13650
7e5e9f88
MK
13651 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13652 value of GDB_OSABI_DEFAULT.
13653 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13654 instead of GDB_OSABI_NETBSD_AOUT.
13655
68b6dce9
NR
136562004-01-24 Nick Roberts <nick@nick.uklinux.net>
13657
13658 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13659 copyright.
13660
080ce8c0
AC
136612004-01-23 Andrew Cagney <cagney@redhat.com>
13662
13663 * printcmd.c (display_command): Replace tui_set_display call with
13664 tui_set_layout_for_display_command.
13665 * tui/tui.h (enum tui_win_type): Define.
13666 (tui_set_layout): Delete declaration.
13667 (tui_set_layout_for_display_command): Rename set_tui_layout.
13668 * tui/tui-data.h (enum tui_layout_type): Define.
13669 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13670 "tui.h".
13671 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13672 (tui_default_win_height): Rename tuiDefaultWinHeight.
13673 (tui_default_win_viewport_height): Rename
13674 tuiDefaultWinViewportHeight.
13675 (tui_set_layout): RenametuiSetLayout.
13676 * tui/tui-layout.c: Update references.
13677 * tui/tui.c: Update references.
13678 * tui/tui-disasm.c: Update references.
13679
b368761e
DC
136802004-01-23 David Carlton <carlton@kealia.com>
13681
13682 Partial workaround for PR c++/1511:
13683 * cp-namespace.c: Include frame.h.
13684 (cp_lookup_transparent_type): New
13685 (cp_lookup_transparent_type_loop): New.
13686 * cp-support.h: Declare cp_lookup_transparent_type.
13687 * symtab.c (basic_lookup_transparent_type): Renamed from
13688 lookup_transparent_type.
13689 (lookup_transparent_type): Replace old body by a call to
13690 current_language->la_lookup_transparent_type.
13691 * symtab.h: Update copyright. Declare
13692 basic_lookup_transparent_type.
13693 * language.h: Update copyright.
13694 (struct language_defn): Add la_lookup_transparent_type.
13695 * language.c: Update copyright.
13696 (unknown_language_defn): Add basic_lookup_transparent_type.
13697 (auto_language_defn): Add basic_lookup_transparent_type.
13698 (local_language_defn): Add basic_lookup_transparent_type.
13699 * ada-lang.c: Update copyright.
13700 (ada_language_defn): Add basic_lookup_transparent_type.
13701 * c-lang.c: Update copyright.
13702 (c_language_defn): Add basic_lookup_transparent_type.
13703 (cplus_language_defn): Add basic_lookup_transparent_type.
13704 (asm_language_defn): Add basic_lookup_transparent_type.
13705 (minimal_language_defn): Add basic_lookup_transparent_type.
13706 * f-lang.c: Update copyright.
13707 (f_language_defn): Add basic_lookup_transparent_type.
13708 * jv-lang.c: Update copyright.
13709 (java_language_defn): Add basic_lookup_transparent_type.
13710 * m2-lang.c: Update copyright.
13711 (m2_language_defn): Add basic_lookup_transparent_type.
13712 * objc-lang.c: Update copyright.
13713 (objc_language_defn): Add basic_lookup_transparent_type.
13714 * p-lang.c: Update copyright.
13715 (p_language_defn): Add basic_lookup_transparent_type.
13716 * scm-lang.c: Update copyright.
13717 (scm_language_defn): Add basic_lookup_transparent_type.
13718 * Makefile.in (cp-namespace.o): Depend on frame.h.
13719
fdde2d81
DC
137202004-01-23 David Carlton <carlton@kealia.com>
13721
13722 Patch for PR c++/1520:
13723 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13724 properly if we have a specification die.
13725 (determine_prefix_aux): Rename from determine_prefix.
13726 (determine_prefix): Like the old determine_prefix, but never
13727 returns NULL.
13728
5b828b6b
TR
137292004-01-23 Theodore A. Roth <troth@openavr.org>
13730
13731 * avr-tdep.c: Update copyright.
13732 (avr_iaddr_p): Delete unused function.
13733 (avr_saddr_p): Delete unused function.
13734
a1b8c067
DC
137352004-01-23 David Carlton <carlton@kealia.com>
13736
13737 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13738 Fix for PR symtab/1534.
13739
f2cab569
MK
137402004-01-23 Mark Kettenis <kettenis@gnu.org>
13741
13742 * NEWS (New native configurations): Mention OpenBSD/sparc and
13743 OpenBSD/sparc64.
13744 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13745 * configure.host: Likewise.
13746 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13747 handler for OpenBSD.
13748 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13749
642d8300
MK
137502004-01-22 Mark Kettenis <kettenis@gnu.org>
13751
89aac506
MK
13752 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13753 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13754
36662fde
MK
13755 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13756 * cli/cli-cmds.c (shell_escape): Likewise.
13757
642d8300
MK
13758 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13759 OpenBSD .note.openbsd.ident sections.
13760
fae299cd
DC
137612004-01-22 David Carlton <carlton@kealia.com>
13762
13763 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13764 get_scope_pc_bounds.
13765 (read_file_scope): Ditto.
13766 (get_scope_pc_bounds): New function, produced by extracting code
13767 from the above two functions, consolidating it, and adding support
13768 for DW_TAG_namespace.
13769
a49d618c
MK
137702004-01-22 Mark Kettenis <kettenis@gnu.org>
13771
13772 * osabi.c (MAX_NOTESZ): New define.
13773 (check_note): New function.
13774 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13775 check_note.
13776
fe61caab
RM
137772004-01-21 Roland McGrath <roland@redhat.com>
13778
13779 * MAINTAINERS (write after approval): Add myself.
13780
ec145965
EZ
137812004-01-21 Eli Zaretskii <eliz@gnu.org>
13782
13783 * utils.c (init_page_info): Move declarations of `rows' and
13784 `cols' before the __GO32__-specific code. Move the closing brace
13785 outside the #ifdef __GO32__..#endif block.
13786 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13787
877522db
PB
137882004-01-21 Paul Brook <paul@codesourcery.com>
13789
13790 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13791 BPSTAT_WHAT_CHECK_SHLIBS.
13792
dbf5be1c
PB
137932004-01-21 Paul Brook <paul@codesourcery.com>
13794
13795 * MAINTAINERS: Add myself to write-after-approval.
13796
81f08b92
AC
137972004-01-20 Andrew Cagney <cagney@redhat.com>
13798
5a1efed7
AC
13799 * ax-gdb.c (print_axs_value): Delete unused function.
13800 * jv-lang.c (java_lookup_type): Delete unused function.
13801 * cli/cli-dump.c (dump_filetype): Delete unused function.
13802 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13803 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13804 (mips_getstring): Delete unused function.
13805 (pmon_insert_breakpoint): Delete #if0ed function.
13806 (PMON_MAX_BP): Delete #if0ed MACRO.
13807 (mips_pmon_bp_info): Delete #if0ed variable.
13808 (pmon_remove_breakpoint): Delete #if0ed function.
13809 * monitor.c (monitor_write_even_block): Delete unused function.
13810 (monitor_write_memory_block): Delete #if0ed code.
13811 * dink32-rom.c (dink32_load): Delete unused function.
13812 (_initialize_dink32_rom): Delete #if0ed code.
13813 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13814
b0a30fce
AC
13815 * tui/tui-command.c: Update references.
13816 * tui/tui-io.c: Update references.
13817 * tui/tui-command.h: Update copyright.
13818 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13819
81f08b92
AC
13820 * source.c (ambiguous_line_spec): Delete never-defined function.
13821 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13822 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13823 * cli/cli-cmds.c (validate_comname): Ditto.
13824
65f05602
AC
13825 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13826 "tui-data.h".
13827 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13828 (tui_show_disassem): Rename tuiShowDisassem.
13829 (tui_show_disassem_and_update_source): Rename
13830 tuiVerticalDisassemScroll.
13831 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13832 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13833 * tui/tui.h: Update copyright.
13834 (enum tui_status): Define.
13835 * tui/tui-data.h (enum tui_scroll_direction): Define.
13836 * tui/tui-disasm.c: Update copyright. Update references.
13837 * tui/tui-winsource.c: Update copyright. Update references.
13838 * tui/tui-win.c: Update references.
13839 * tui/tui-layout.c: Update references.
13840
6bb0384f
AC
138412004-01-20 Andrew Cagney <cagney@redhat.com>
13842
13843 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13844 sym2 to start of block.
13845
9175c9a3
MC
138462004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13847
13848 * MAINTAINERS: Delete mmalloc.
13849 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13850 * NEWS: Mention removal of --with-malloc.
13851 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13852 * config.in: Regenerate.
13853 * configure: Regenerate.
6bb0384f
AC
13854 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13855 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13856 * gdbinit.in: Remove mmalloc.
13857 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13858 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13859 * config/i386/go32.mh: Likewise.
13860 * config/i386/interix.mh: Likewise.
13861 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13862
4fcef00a
JJ
138632004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13864
13865 * linespec.c (decode_variable, symtab_from_filename): Call
13866 error_silent with error message instead of throwing an exception
13867 directly.
13868 * defs.h (error_silent, error_output_message): Add prototypes.
13869 (catch_exceptions_with_msg): Ditto.
13870 * utils.c (error_silent, error_output_message): New functions.
13871 * top.c (catch_exceptions_with_msg): New function.
13872
8e94b928
NR
138732004-01-20 Nick Roberts <nick@nick.uklinux.net>
13874
13875 * mi/mi-cmds.h (enum print_values): Add definition.
13876
13877 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13878 type and value for simple data types and just the name and type
13879 for complex ones, if required.
13880
13881 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13882 children, if required.
13883
a02d6af8
KB
138842004-01-19 Kevin Buettner <kevinb@redhat.com>
13885
13886 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13887 unused declarations.
13888
78a4a9b9
AC
138892004-01-19 Andrew Cagney <cagney@redhat.com>
13890
13891 * top.h (mapped_symbol_files): Delete declaration.
13892 * main.c (captured_main): Delete option "m" and "mapped".
13893 * objfiles.c (mapped_symbol_files): Delete variable.
13894 * symfile.c (symbol_file_command): Delete mmap code.
13895 (symbol_file_add_with_addrs_or_offsets): Ditto.
13896 (add_symbol_file_command, reread_separate_symbols): Ditto.
13897 * objfiles.h (OBJF_MAPPED): Delete.
13898 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13899 (free_objfile) [USE_MMALLOC]: Ditto.
13900 (open_existing_mapped_file): Delete function.
13901 (open_mapped_file): Delete function.
13902 (map_to_file): Delete function.
13903
2dbd5e30
KB
139042004-01-19 Kevin Buettner <kevinb@redhat.com>
13905
13906 * infrun.c (step_into_function): Account for possible breakpoint
13907 adjustment when computing ``stop_func_start''.
13908
437b434f
KB
139092004-01-19 Kevin Buettner <kevinb@redhat.com>
13910
13911 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13912 the region size against the size of a pointer, not the size of
13913 a register as given by DEPRECATED_REGISTER_SIZE.
13914
55fb0713
AC
139152004-01-19 Andrew Cagney <cagney@redhat.com>
13916
13917 * tui/tui-regs.h: Include "tui-data.h".
13918 (tuiFirstRegElementNoInLine): Delete declaration.
13919 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13920 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13921 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13922 (tui_calculate_regs_column_count): Rename
13923 tuiCalculateRegsColumnCount.
13924 (tui_check_register_values): Rename tuiCheckRegisterValues.
13925 (tui_show_registers): Rename tuiShowRegisters.
13926 (tui_display_registers_from_line): Rename
13927 tuiDisplayRegistersFromLine.
13928 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13929 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13930 (tui_first_reg_element_no_inline): Rename
13931 tuiFirstRegElementNoInLine.
13932 * tui/tui-data.h: Update copyright.
13933 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13934 * tui/tui-windata.c: Update copyright, update references.
13935 * tui/tui-regs.c: Update copyright, update references.
13936 * tui/tui-win.c: Update copyright, update references.
13937 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13938
cebe9500
AC
139392004-01-18 Andrew Cagney <cagney@redhat.com>
13940
bcdf1568
AC
13941 * tui/tui-io.c: Update copyright.
13942 (key_is_end_sequence, key_is_backspace): New functions.
13943 (key_is_command_char, key_is_start_sequence): New function.
13944 (tui_getc): Update references.
13945 * tui/tui-io.h: Update copyright.
13946 (m_tuiStartNewLine): Delete macro.
13947 (m_isBackspace, m_isDeleteChar): Delete macros.
13948 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13949 (m_isNextPage, m_isPrevPage): Delete macros.
13950 (m_isLeftArrow, m_isRightArrow): Delete macros.
13951 (m_isXdbStyleCommandChar): Delete macro.
13952 (key_is_start_sequence): Declare, replace m_isStartSequence.
13953 (key_is_end_sequence): Declare, replace m_isEndSequence.
13954 (key_is_backspace): Declare ,replace m_isBackspace.
13955 (key_is_command_char): Declare, replace m_isCommandChar.
13956 * tui/tui-command.c: Update copyright.
13957 (tuiDispatchCtrlChar): Update references.
13958
130d87e6
AC
13959 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13960 tuiSourceWin.h.
13961
d7b2e967
AC
13962 * tui/tui-command.c: Rename tui/tuiCommand.c.
13963 * tui/tui-command.h: Rename tui/tuiCommand.h.
13964 * tui/tui-data.c: Rename tui/tuiData.c.
13965 * tui/tui-data.h: Rename tui/tuiData.h.
13966 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13967 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13968 * tui/tui-io.c: Rename tui/tuiIO.c.
13969 * tui/tui-io.h: Rename tui/tuiIO.h.
13970 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13971 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13972 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13973 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13974 * tui/tui-source.c: Rename tui/tuiSource.c.
13975 * tui/tui-source.h: Rename tui/tuiSource.h.
13976 * tui/tui-stack.c: Rename tui/tuiStack.c.
13977 * tui/tui-stack.h: Rename tui/tuiStack.h.
13978 * tui/tui-win.c: Rename tui/tuiWin.c.
13979 * tui/tui-win.h: Rename tui/tuiWin.h.
13980 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13981 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13982 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13983 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13984 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13985 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13986 * tui/tui-file.c: Update includes.
13987 * tui/tui-hooks.c: Update includes.
13988 * tui/tui-interp.c: Update includes.
13989 * tui/tui.c: Update includes.
13990 * Makefile.in: Update all tui/ dependencies.
13991 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13992
b2100910
AC
13993 * Makefile.in: Update copyright. Update dependencies.
13994
cebe9500
AC
13995 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13996 problem.
13997
c6f0559b
AC
139982004-01-18 Andrew Cagney <cagney@redhat.com>
13999
43e9390b
AC
14000 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14001 instead of register_gdbarch_init.
14002
c6f0559b
AC
14003 * remote-sds.c (tohex): Delete unused function. Update copyright.
14004 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14005 * v850-tdep.c (v850_register_virtual_size): Ditto.
14006 * target.c (normal_target_post_startup_inferior): Ditto.
14007 * source.c (ambiguous_line_spec): Ditto.
14008 * remote.c (adapt_remote_get_threadinfo): Ditto.
14009 * mi/mi-out.c (out_field_fmt): Ditto.
14010 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14011 (output_control_change_notification): Ditto.
14012 * m68k-tdep.c (m68k_register_byte): Ditto.
14013 (m68k_remote_breakpoint_from_pc): Ditto.
14014 * ui-out.c (init_ui_out_state): Delete unused declaration.
14015 * stabsread.c (search_value): Ditto.
14016 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14017 * maint.c (print_section_table): Ditto.
14018 * infrun.c (set_follow_fork_mode_command): Ditto.
14019
a8504492
MK
140202004-01-18 Mark Kettenis <kettenis@gnu.org>
14021
14022 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14023 DW_CFA_def_cfa_exporession. Add support for
14024 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14025 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14026
0bd8997e
AC
140272004-01-18 Andrew Cagney <cagney@redhat.com>
14028
14029 * ocd.c: Update copyright.
14030 (bdm_read_register_command): Delete unused function.
14031 (_initialize_remote_ocd): Delete commented out reference.
14032 (get_quoted_char, reset_packet): Delete #if0ed function.
14033 (output_packet, put_quoted_char): Delete #if0ed function.
14034 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14035 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14036 (BDM_BREAKPOINT): Delete #if0ed macro.
14037 (remote_timeout): Delete #if0ed variable.
14038
31bb40e4
MK
140392004-01-18 Mark Kettenis <kettenis@gnu.org>
14040
14041 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14042 (core-sol2.o): Remove dependency.
14043 * core-sol2.c: Remove file.
14044
887432a5
AC
140452004-01-17 Andrew Cagney <cagney@redhat.com>
14046
14047 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14048 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14049 enums.
14050
29182b13
DJ
140512004-01-17 Daniel Jacobowitz <drow@mvista.com>
14052
14053 * remote.c: Update copyright years.
14054
2963ee1d
DJ
140552004-01-17 Daniel Jacobowitz <drow@mvista.com>
14056
14057 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14058
79d45cd4
AC
140592004-01-17 Andrew Cagney <cagney@redhat.com>
14060
ee300cd4
AC
14061 * mdebugread.c: Update copyright.
14062 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14063 (parse_type, parse_procedure): Ditto.
14064 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14065
fcacc9c2
AC
14066 * cris-tdep.c (cris_store_struct_return): Put back accidently
14067 deleted function.
14068
79d45cd4
AC
14069 * gdbarch.sh: Update copyright year.
14070 * gdbarch.h, gdbarch.c: Re-generate.
14071
b263358a
DJ
140722004-01-17 Daniel Jacobowitz <drow@mvista.com>
14073
14074 Suggested by George Anzinger.
14075 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14076 correct stack offset. Include unknown opcode numbers in the error
14077 message.
14078
931aecf5
AC
140792004-01-17 Andrew Cagney <cagney@redhat.com>
14080
14081 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14082 extract_struct_value_address, i386 does not set it.
14083 * sparc64-tdep.c (sparc64_init_abi): Do not set
14084 extract_struct_value_address, never called.
14085 (sparc64_extract_struct_value_address): Delete function.
14086 * m68hc11-tdep.c: Update copyright.
14087 (m68hc11_gdbarch_init): Delete redundant assignment of
14088 extract_struct_value_address.
14089 * i386-tdep.c: Update copyright.
14090 (i386_gdbarch_init): Do not set extract_struct_value_address,
14091 never called.
14092 (i386_extract_struct_value_address): Delete function.
14093 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14094 extract_struct_value_address, never called.
14095 (sparc32_extract_struct_value_address): #if 0 function. Add
14096 comments explaining its future.
14097
756fe439
DJ
140982004-01-17 Daniel Jacobowitz <drow@mvista.com>
14099
14100 * arm-tdep.c (arm_write_pc): New function.
14101 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14102
e74f0f02
DJ
141032004-01-17 Daniel Jacobowitz <drow@mvista.com>
14104
14105 * breakpoint.c (must_shift_inst_regs): Delete.
14106 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14107 and SHIFT_INST_REGS.
14108 * infcmd.c (step_1, step_1_continuation): Delete references to
14109 SHIFT_INST_REGS.
14110 * infrun.c (keep_going): Likewise.
14111 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14112 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14113
b6cb9035
AC
141142004-01-17 Andrew Cagney <cagney@redhat.com>
14115
444a1e2e
AC
14116 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14117 * gdbarch.h, gdbarch.c: Re-generate.
14118 * infcmd.c (print_return_value): Delete reference to
14119 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14120
def7e6ed
AC
14121 * cris-tdep.c (cris_gdbarch_init): Do not set
14122 deprecated_extract_struct_value_address.
14123
07be497a
AC
14124 * xstormy16-tdep.c: Update copyright.
14125 (xstormy16_extract_struct_value_address): Update to current
14126 extract struct value address interface.
14127 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14128 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14129 current extract struct value address interface.
14130 (sh64_gdbarch_init): Set extract_struct_value_address.
14131
6b4d5c91
AC
14132 * cris-tdep.c: Update copyright.
14133 (cris_extract_struct_value_address): Delete function.
14134 (struct_return_address): Delete variable.
14135 (cris_store_struct_return): Do not set struct_return_address.
14136
464e0365
AC
14137 * mcore-tdep.c: Update copyright.
14138 (mcore_extract_struct_value_address): Delete function. Update
14139 comments.
14140 (mcore_gdbarch_init): Update.
14141 * mn10300-tdep.c: Update copyright.
14142 (mn10300_extract_struct_value_address): Delete function.
14143 (mn10300_gdbarch_init): Update.
14144 * v850-tdep.c: Update copyright.
14145 (v850_extract_struct_value_address): Delete.
14146 (v850_gdbarch_init): Update.
14147 * ns32k-tdep.c: Update copyright.
14148 (ns32k_extract_struct_value_address): Delete.
14149 (ns32k_gdbarch_init): Update.
14150 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14151 (hppa_gdbarch_init): Update.
14152 * vax-tdep.c: Update copyright.
14153 (vax_extract_struct_value_address): Delete.
14154 (vax_gdbarch_init): Update.
14155
afb18d0f
AC
14156 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14157 * gdbarch.h, gdbarch.c: Re-generate.
14158 * procfs.c (procfs_fetch_registers): Delete reference to
14159 DEPRECATED_NPC_REGNUM.
14160 (procfs_store_registers): Ditto.
14161 * regcache.c (generic_target_write_pc): Simplify.
14162 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14163
a698f53e
AC
14164 * core-sol2.c (fetch_core_registers): Replace
14165 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14166
adc11376
AC
14167 * hppa-tdep.c: Update copyright year.
14168 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14169 NPC_REGNUM.
14170 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14171
b6cb9035
AC
14172 * mips-tdep.c (mips_write_pc): New function.
14173 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14174 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14175 (mips_find_saved_regs, mips_software_single_step: Ditto.
14176 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14177 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14178
6d82d43b
AC
141792004-01-17 Andrew Cagney <cagney@redhat.com>
14180
14181 * mips-tdep.c: Re-indent. Group functions by ABI.
14182
71bd6bd4
AC
141832004-01-17 Andrew Cagney <cagney@redhat.com>
14184
14185 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14186 * gdbarch.c: Re-generate.
14187 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14188 DECR_PC_AFTER_BREAK to zero.
14189 * vax-tdep.c (vax_gdbarch_init): Ditto.
14190 * v850-tdep.c (v850_gdbarch_init): Ditto.
14191 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14192 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14193 * sh-tdep.c (sh_gdbarch_init): Ditto.
14194 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14195 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14196 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14197 * mips-tdep.c (mips_gdbarch_init): Ditto.
14198 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14200 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14201 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14202 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14203 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14204 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14205 * frv-tdep.c (frv_gdbarch_init): Ditto.
14206 * cris-tdep.c (cris_gdbarch_init): Ditto.
14207 * avr-tdep.c (avr_gdbarch_init): Ditto.
14208 * arm-tdep.c (arm_gdbarch_init): Ditto.
14209 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14210
a02abb62
JB
142112004-01-17 J. Brobecker <brobecker@gnat.com>
14212
14213 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14214 Delete, no longer used.
14215 (read_subrange_type): New function, mostly extracted from
14216 read_array_type().
14217 (read_array_type): Replace extracted code by call to
14218 read_subrange_type().
14219 (dwarf2_get_attr_constant_value): New function.
14220 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14221 (add_partial_symbol): Likewise.
14222 (process_die): Likewise.
14223 (new_symbol): Likewise.
14224 (read_type_die): Likewise.
14225
cf5b2f1b
AC
142262004-01-16 Andrew Cagney <cagney@redhat.com>
14227
14228 * symfile.c: Update copyright year.
14229 (compare_symbols): Delete unused function.
14230 * stabsread.c: Update copyright year.
14231 (lrs_general_complaint): Delete unused function.
14232 (ref_search_value): Ditto.
14233 (get_substring): Delete declaration.
14234 * sh64-tdep.c: Update copyright year.
14235 (sh64_get_gdb_regnum): Delete unused function.
14236 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14237 Delete unused function.
14238
d33b9831
MK
142392004-01-17 Mark Kettenis <kettenis@gnu.org>
14240
14241 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14242 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14243
7aea86e6
AC
142442004-01-16 Andrew Cagney <cagney@redhat.com>
14245
14246 Changes from Peter Schauer.
14247 * rs6000-tdep.c: Update copyright year.
14248 (rs6000_push_dummy_call): Update the stack pointer before
14249 accessing the corresponding stack region.
14250 * rs6000-nat.c: Update copyright year.
14251 (set_host_arch): Set "info.abfd" to "exec_bfd".
14252
26b0da32
MK
142532004-01-15 Mark Kettenis <kettenis@gnu.org>
14254
14255 * blockframe.c: Update copyright year.
14256 (inside_entry_func): Don't treat a zero PC specially.
14257
86fbe6cc
EZ
142582004-01-14 Elena Zannoni <ezannoni@redhat.com>
14259
14260 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14261 variable.
14262 (gcore_create_callback): Ditto. Skip any memory segment that has
14263 no permissions set.
14264
63d06c5c
DC
142652004-01-14 David Carlton <carlton@kealia.com>
14266
14267 Change symbols for C++ nested types to contain the fully qualified
14268 name, if possible. (At least in the DWARF-2 case.) Partial fix
14269 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14270 c++/895.
14271 * c-exp.y (qualified_type): Handle types nested within classes.
14272 * cp-namespace.c: Update comments.
14273 (cp_set_block_scope): Delete #if 0.
14274 (cp_lookup_nested_type): Handle types nested within classes.
14275 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14276 when appropriate.
14277 (add_partial_symbol): Add the name of the enclosing namespace to
14278 types.
14279 (pdi_needs_namespace): New.
14280 (add_partial_namespace): Tweak comment.
14281 (add_partial_structure): New.
14282 (psymtab_to_symtab_1): Initialize processing_current_prefix
14283 here...
14284 (process_die): instead of here.
14285 (read_structure_scope): Try to figure out the name of the class or
14286 namespace that the structure might be defined within.
14287 (read_enumeration): Generate fully-qualified names, if possible.
14288 (read_namespace): Don't set name to NULL.
14289 (die_specification): New.
14290 (new_symbol): Generate fully-qualified names for types.
14291 (read_type_die): Determine appropriate prefix.
14292 (determine_prefix): New.
14293 (typename_concat): New.
14294 (class_name): New.
14295 * valops.c (value_aggregate_elt): Pass NOSIDE to
14296 value_struct_elt_for_reference.
14297 (value_struct_elt_for_reference): Make static, add NOSIDE
14298 parameter, call value_maybe_namespace_elt as a last resort.
14299 (value_namespace_elt): Break out code into
14300 value_maybe_namespace_elt.
14301 (value_maybe_namespace_elt): New.
14302
87783b8b
AC
143032004-01-12 Andrew Cagney <cagney@redhat.com>
14304
14305 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14306 cooked floating-point registers.
14307 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14308 and value_to_register.
14309
6503b91e
AC
143102004-01-13 Andrew Cagney <cagney@redhat.com>
14311
14312 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14313 * gdbarch.c: Re-generate.
14314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14315 FUNCTION_START_OFFSET.
14316 * v850-tdep.c (v850_gdbarch_init): Ditto.
14317 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14318 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14319 * sh-tdep.c (sh_gdbarch_init): Ditto.
14320 * s390-tdep.c (s390_gdbarch_init): Ditto.
14321 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14322 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14323 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14324 * mips-tdep.c (mips_gdbarch_init): Ditto.
14325 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14326 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14328 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14329 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14330 * i386-tdep.c (i386_gdbarch_init): Ditto.
14331 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14332 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14333 * frv-tdep.c (frv_gdbarch_init): Ditto.
14334 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14335 * cris-tdep.c (cris_gdbarch_init): Ditto.
14336 * avr-tdep.c (avr_gdbarch_init): Ditto.
14337 * arm-tdep.c (arm_gdbarch_init): Ditto.
14338 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14339
ea1dd7bc
DJ
143402004-01-13 Daniel Jacobowitz <drow@mvista.com>
14341
14342 * infrun.c (follow_fork_mode_ask): Remove.
14343 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14344 (follow_fork): Simplify and remove internal error for
14345 follow_fork_mode_ask.
14346 (_initialize_infrun): Update "set follow-fork-mode" help text.
14347
0f0cffd2
AC
143482004-01-13 Andrew Cagney <cagney@redhat.com>
14349
14350 * configure.in: Update copyright year.
14351 (build_warnings): Add -Wunused-label.
14352 * configure: Re-generate.
14353
de38af99
AC
143542004-01-12 Andrew Cagney <cagney@redhat.com>
14355
954a7fba
AC
14356 * exec.h (exec_ops): Make "extern".
14357
de38af99
AC
14358 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14359 the function is void.
14360 (mips_pseudo_register_write): Ditto.
14361
1a111ce3
AC
143622004-01-12 Andrew Cagney <cagney@redhat.com>
14363
14364 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14365 call. Never defined.
14366 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14367 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14368 (struct sparc_gregset, struct regcache): Ditto.
14369 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14370
48efe704
AC
143712004-01-12 Andrew Cagney <cagney@redhat.com>
14372
14373 * mi/ChangeLog: Delete file. Renamed to ...
14374 * mi/ChangeLog-1999-2003: New file.
14375 * tui/ChangeLog: Delete file. Renamed to ...
14376 * tui/ChangeLog-1998-2003: New file.
fe61caab 14377
a54124c5
MK
143782004-01-11 Mark Kettenis <kettenis@gnu.org>
14379
2ca62865
MK
14380 * sparc64nbsd-tdep.c: Include "regset.h".
14381 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14382 Remove variables.
14383 (fetch_core_registers): Remove function.
14384 (sparc64nbsd_core_fns): Remove variable.
14385 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14386 functions.
14387 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14388 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14389 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14390
ca9d58e9
MK
14391 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14392 sparc_extract_struct_value_address.
14393 (sparc32_gdbarch_init): Set extract_struct_value_address.
14394 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14395 function.
14396 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14397 return_value_on_stack.
14398
3cc87ec0
MK
14399 * NEWS: Mention that %cs and %ss have been added to the AMD64
14400 configurations
14401
5bf00f29
MK
14402 * frame.c: Update copyright year.
14403 (get_prev_frame): Improve comment.
14404
4f7ec84e
MK
14405 * sparc64fbsd-tdep.c: Include "regset.h".
14406 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14407 Remove variables.
14408 (fetch_core_registers): Remove function.
14409 (sparc64fbsd_core_fns): Remove variable.
14410 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14411 functions.
14412 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14413 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 14414 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 14415
4e7b0cd3
MK
14416 * sparcnbsd-tdep.c: Include "regset.h".
14417 (fetch_core_registers): Remove function.
14418 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14419 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14420 functions.
14421 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14422 TDEP->fpregset.
46b58ce9 14423 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 14424
a54124c5
MK
14425 * sparc-tdep.h (struct regset): Provide opaque declaration.
14426 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14427 fpregset and sizeof_fpregset members.
14428 * sparc-tdep.c (struct regset): Provide opaque declaration.
14429 (sparc_regset_from_core_section): New function.
14430 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14431 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14432 Set regset_from_core_section when appropriate.
14433
29ff87c5
MK
144342004-01-10 Mark Kettenis <kettenis@gnu.org>
14435
79b1ab3d
MK
14436 * x86-64-tdep.c (amd64_non_pod_p): New function.
14437 (amd64_classify_aggregate): Return class memory for non-POD
14438 C++ structure types.
14439
6470d250
MK
14440 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14441 argument. Use it to reserve a register if necessary.
14442 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14443 amd64_push_arguments.
14444
562c50c2
MK
14445 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14446
af233647
MK
14447 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14448 register numbers in comments.
14449 * x86-64-tdep.h: Update copyright year.
14450 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14451 Adjust for addition of %cs and %ss.
14452 * amd64fbsd-nat.c: Update copyright year.
14453 (reg_offset): Add register offsets for %cs and %ss.
14454 * amd64fbsd-tdep.c: Update copyright year.
14455 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14456 (amd64fbsd_sc_reg_offset): Likewise.
14457 * x86-64-linux-nat.c: Update copyright year.
14458 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14459 and %ss.
14460 * amd64nbsd-nat.c: Update copyright year.
14461 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14462 * amd64nbsd-tdep.c: Update copyright year.
14463 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14464 * x86-64-linux-tdep.c: Update copyright year.
14465 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14466 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14467 * regformats/reg-x86-64.dat: Add %cs and %ss.
14468
29ff87c5
MK
14469 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14470 variables to prevent long lines. Update comments to reflect
14471 reality.
14472
38d518c9
EZ
144732004-01-09 David Carlton <carlton@kealia.com>
14474
14475 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14476 * dwarf2read.c (read_namespace): Pull out name-generating code
14477 into namespace_name. Rename previous_namespace to previous_prefix
14478 and processing_current_namespace to processing_current_prefix..
14479 (namespace_name): New function.
14480 (add_partial_symbol): Substitute uses of pdi->name with
14481 actual_name.
14482 * cp-support.h: Rename processing_current_namespace to
14483 processing_current_prefix.
14484 Update copyright year.
14485 * cp-namespace.c: Rename processing_current_namespace to
14486 processing_current_prefix.
14487 Update copyright year.
fe61caab 14488
1e4728e7
AC
144892004-01-09 Andrew Cagney <cagney@redhat.com>
14490
14491 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14492
c77c642a
MK
144932004-01-09 Mark Kettenis <kettenis@gnu.org>
14494
14495 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14496 complaining.
14497 (process_one_symbol): Deal with N_PATCH stabs.
14498
b44e9041
EZ
144992004-01-09 Elena Zannoni <ezannoni@redhat.com>
14500
14501 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14502 ifdeffed code.
14503 Update copyright year.
38d518c9 14504
eccfb640
MC
145052004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14506
14507 * config/pa/tm-hppa.h: Update extern declarations for
14508 hppa32_hpux_frame_saved_pc_in_sigtramp,
14509 hppa32_hpux_frame_base_before_sigtramp, and
14510 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14511
848c5feb
MC
145122004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14513
14514 * config/pa/tm-hppah.h: Update copyright years.
14515
3cc5d663
AC
145162004-01-08 Andrew Cagney <cagney@redhat.com>
14517
14518 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14519 (mips_o32_reg_struct_has_addr): Delete function.
14520 (mips_gdbarch_init): Update.
14521 (mips_extract_struct_value_address): Delete function.
14522
bfec0b41
JJ
145232004-01-08 David Mosberger <davidm@hpl.hp.com>
14524
14525 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14526 reality.
14527
16e109ca
AC
145282004-01-07 Andrew Cagney <cagney@redhat.com>
14529
6214a8a1
AC
14530 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14531 architecture's elf flags (when available).
14532
8d5838b5
AC
14533 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14534 FPU to the start, check the MIPS FPU when looking for an old
14535 architecture.
14536 (set_mipsfpu_single_command): Update the architecture.
14537 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14538
480d3dd2
AC
14539 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14540 (mips_mask_address_p): Add "tdep" parameter.
14541 (show_mask_address, mips_addr_bits_remove): Update.
14542 (mips_dump_tdep): Update.
14543 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14544 (MIPS_STACK_ARGSIZE): Delete macro.
14545 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14546 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14547 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14548 (mips_dump_tdep): Update.
14549 (MIPS_SAVED_REGSIZE): Delete macro.
14550 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14551 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14552 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14553 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14554 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14555 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14556 (mips_pop_frame, return_value_location): Update.
14557 (mips_n32n64_return_value, mips_dump_tdep): Update.
14558
ec03c1ac
AC
14559 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14560 MIPS ABI.
14561
16e109ca
AC
14562 * mips-tdep.c: Update copyright.
14563 (mips_gdbarch_init): Merge two code blocks handling the register
14564 name and number layout.
14565
15255275
MS
145662004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14567
14568 * tracepoint.c (validate_actionline): Fix segv at EOF
14569
9f9057da
MC
145702004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14571
14572 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14573 properly for static fields.
14574
0127c0d3 145752004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14576 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14577
14578 * disasm.c: Update copyright to include 2004.
14579 (do_mixed_source_and_assembly): For uiout asm list
14580 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14581 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14582 the tuple/list. Move check for whether to close off the
fe61caab 14583 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14584 on each loop iteration.
14585
5269965e
AC
145862004-01-05 Andrew Cagney <cagney@redhat.com>
14587
54f1137d
AC
14588 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14589 should be a switch case and not a label.
14590 * mips-tdep.c (mips32_next_pc): Delete unused labels
14591 "greater_equal_branch" and "less_zero_branch".
14592 * jv-valprint.c (java_print_value_fields): Delete unused label
14593 "flush_it".
14594
5269965e
AC
14595 * target.c (unpush_target): Only close a target that is in the
14596 target stack.
14597
dbc22fa1
MK
145982004-01-05 Mark Kettenis <kettenis@gnu.org>
14599
9515395e
MK
14600 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14601 address from [sp + 64] instead of %o2.
14602
dbc22fa1
MK
14603 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14604 fixes PR backtrace/1476.
14605
5439edaa
AC
146062004-01-05 Andrew Cagney <cagney@redhat.com>
14607
14608 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14609 move to start of file.
14610 * i386-tdep.h (struct regcache): Add opaque declaration.
14611 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14612 declaration.
14613 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14614 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14615 * win32-nat.c (fake_create_process): Use ISO C style definition.
14616 * stabsread.c (define_symbol): Delete #ifndef
14617 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14618 stabs_argument_has_addr call, macro never defined.
14619
19061abe
MC
146202004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14621
14622 * op50-rom.c: Delete.
14623 * w89k-rom.c: Delete.
14624 * Makefile.in: Remove references.
14625
e53bef9f
MK
146262004-01-04 Mark Kettenis <kettenis@gnu.org>
14627
14628 * x86-64-tdep.c: Update copyright year.
14629 (struct amd64_register_info): Rename from x86_64_register_info.
14630 (amd64_register_info): Rename from x86_64_register_info.
14631 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14632 (amd64_register_name): Rename from x86_64_register_name.
14633 (amd64_register_type): Rename from x86_64_register_type.
14634 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14635 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14636 (amd64_dwarf_reg_to_regnum): Rename from
14637 x86_64_dwarf_reg_to_regnum.
14638 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14639 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14640 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14641 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14642 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14643 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14644 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14645 (amd64_frame_cache): Rename from x86_64_frame_cache.
14646 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14647 (amd64_frame_prev_register): Rename from
14648 x86_64_frame_prev_register.
14649 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14650 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14651 (amd64_sigtramp_frame_cache): Rename from
14652 x86_64_sigtramp_frame_cache.
14653 (amd64_sigtramp_frame_prev_register): Rename from
14654 x86_64_sigtramp_frame_prev_register.
14655 (amd64_sigtramp_frame_unwind): Rename from
14656 x86_64_sigtramp_frame_unwind.
14657 (amd64_sigtramp_frame_sniffer): Rename from
14658 x86_64_sigtramp_frame_sniffer.
14659 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14660 (amd64_frame_base): Rename from x86_64_frame_base.
14661 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14662 (amd64_frame_align): Rename from x86_64_frame_align.
14663 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14664 (amd64_regset_from_core_section): Rename from
14665 x86_64_regset_from_core_section.
14666 (x86_64_init_abi): Update comments.
14667
fca6aa58
NR
146682004-01-04 Nick Roberts <nick@nick.uklinux.net>
14669
14670 * MAINTAINERS (write after approval): Add myself.
14671
8ada74e3
MK
146722004-01-04 Mark Kettenis <kettenis@gnu.org>
14673
14674 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14675 `float' arguments.
14676
5154b0cd
MK
146772004-01-04 Mark Kettenis <kettenis@gnu.org>
14678
14679 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14680 such that it mentions a specific version of GCC that exhibits this
14681 bug.
14682
fb316966
MK
146832004-01-03 Mark Kettenis <kettenis@gnu.org>
14684
200cc553
MK
14685 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14686 structure that has a single `float' member, store it in %f1 in
14687 addition to %f0.
14688
e226a4a0
MK
14689 * sparc-sol2-nat.c: Add missing '\'.
14690
b9d4c5ed
MK
14691 * sparc-tdep.c (sparc32_return_value): New function.
14692 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14693 Remove functions.
14694 (sparc32_gdbarch_init): Set return_value, don't set
14695 extract_return_value, store_return_value, use_struct_convention
14696 and return_value_on_stack.
14697
fb316966
MK
14698 * sparc-sol2-nat.c: Add missing ')'.
14699
1af510a8
JB
147002004-01-03 J. Brobecker <brobecker@gnat.com>
14701
14702 * infrun.c (handle_step_into_function): New function.
14703 (handle_inferior_event): Extract out some code into the new
14704 function above.
14705
5cf4d23a
JB
147062004-01-03 J. Brobecker <brobecker@gnat.com>
14707
14708 * infrun.c (handle_inferior_event): Move the declaration of
14709 real_stop_pc inside the if blocks where it is used.
14710
60af1db2
MK
147112004-01-03 Mark Kettenis <kettenis@gnu.org>
14712
14713 * sparc64-tdep.c (sparc64_16_byte_align_p)
14714 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14715 Use check_typedef to get subtypes of structures and unions.
14716 (sparc64_store_return_value): Fix calculation of the appropriate
14717 offset into VALBUF when storing a structure or union.
14718 (sparc64_return_value): New function.
14719 (sparc64_use_struct_convention): Remove function.
14720 (sparc64_init_abi): Set return_value, don't set
14721 extract_return_value, store_return_value and
14722 use_struct_convention.
14723
1a901d3f
EZ
147242004-01-03 Eli Zaretskii <eliz@elta.co.il>
14725
14726 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14727 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14728 gdb/config/alpha/xm-alphaosf.h,
14729 gdb/config/powerpc/tm-ppcle-eabi.h,
14730 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14731 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14732 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14733 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14734 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14735 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14736 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14737 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14738 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14739 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14740 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14741 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14742 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14743 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14744 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14745 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14746 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14747 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14748 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14749 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14750 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14751 Remove lines for .cvsignore files.
14752
ef52e463
JB
147532004-01-03 J. Brobecker <brobecker@gnat.com>
14754
14755 * infrun.c: Back out the previous change.
14756
cb1bf9dc
MK
147572004-01-03 Mark Kettenis <kettenis@gnu.org>
14758
f0424ef6
MK
14759 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14760 sparc-*-sunos4* to the list of REMOVED configurations.
14761
cb1bf9dc
MK
14762 * configure.tgt: Add back sparc-*-vxworks*.
14763 * remote-vxsparc.c: Remove all includes except for "defs.h",
14764 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14765 Include "sparc-tdep.h".
14766 (SPARC_R_G1): New define.
14767 (vxsparc_gregset): New variable.
14768 (ext_format_sparc): Remove extern declaration.
14769 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14770 sparc32_supply_fpregset.
14771 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14772 sparc_collect_rwindow and sparc32_collect_fpregset.
14773 * config/sparc/tm-vxworks.h: New file, based on recently removed
14774 tm-vxsparc.h.
14775 * config/sparc/vxworks.mt: New file, based on recently removed
14776 vxworks.mt.
fe61caab 14777
5e938f9f
JB
147782004-01-03 J. Brobecker <brobecker@gnat.com>
14779
14780 * infrun.c (handle_step_into_function): New function.
14781 (handle_inferior_event): Extract out some code into the new
14782 function above.
14783
386c036b
MK
147842004-01-02 Mark Kettenis <kettenis@gnu.org>
14785
14786 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14787 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14788 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14789 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14790 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14791 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14792 (sparc_nat_h): New variable.
14793 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14794 (tm-sun4os4.h): Remove dependency.
14795 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14796 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14797 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14798 sparc-tdep.o): Update dependencies.
14799 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14800 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14801 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14802 dependencies.
14803 * configure.host: Remove existing sparc-*-lynxos*,
14804 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14805 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14806 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14807 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14808 triplets.
14809 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14810 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14811 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14812 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14813 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14814 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14815 sparc64-*-solaris2* and sparc64-*-* triplets.
14816 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14817 "symtab.h" and "objfiles.h".
14818 (BIAS): Remove define.
14819 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14820 (X_DISP19): Remove macros.
14821 (sparc_fetch_instruction): Remove function.
14822 (struct gdbarch_tdep): Remove definition.
14823 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14824 (sparc_breakpoint_from_pc): Remove function.
14825 (struct sparc64_frame_cache): Remove definition.
14826 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14827 sparc64_unwind_pc): Remove functions.
14828 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14829 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14830 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14831 (sparc64_frame_cache): Change return type to `struct
14832 sparc_frame_cache *'. Simply call sparc_frame_cache.
14833 (sparc64_frame_this_id, sparc64_frame_prev_register,
14834 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14835 instead of `struct sparc64_frame_cache.
14836 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14837 sparc_analyze_control_transfer, sparc_software_single_step,
14838 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14839 _initialize_sparc64_tdep): Remove functions.
14840 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14841 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14842 macros.
14843 (sparc64_supply_gregset, sparc64_collect_gregset,
14844 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14845 (sparc64_init_abi): New function.
14846 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14847 inclusion guard. Include "sparc-tdep.h".
14848 (BIAS): Define.
14849 (r_tstate_offset, r_fprs_offset): New defines.
14850 (enum sparc_regnum): Remove defenition.
14851 (enum sparc64_regnum): Reformat.
14852 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14853 (sparc64_init_abi, sparc64_supply_gregset,
14854 sparc64_collect_gregset, sparc64_supply_fpregset,
14855 sparc64_collect_fpregset): New prototypes.
14856 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14857 Add extern declarations.
14858 (sparc64_sol2_init_abi): New prototype.
14859 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14860 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14861 prototypes.
14862 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14863 "sparnbsd-nat.h".
14864 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14865 functions.
14866 (_initialize_sparc64fbsd_nat): Remove initialization of
14867 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14868 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14869 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14870 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14871 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14872 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14873 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14874 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14875 (sparc64fbsd_r_y_offset): Remove variables.
14876 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14877 Make static and const.
14878 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14879 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14880 functions.
14881 (sparc64fbsd_gregset): New variable.
14882 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14883 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14884 and sparc64_supply_fpregset.
14885 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14886 (sparc64fbsd_sigtramp_frame_this_id)
14887 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14888 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14889 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14890 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14891 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14892 * sparcnbsd-tdep.c: Update copyright year. Include
14893 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14894 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14895 "value.h" and "sparcnbsd-tdep.h".
14896 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14897 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14898 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14899 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14900 defines.
14901 (sparcnbsd_gregset): New variable.
14902 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14903 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14904 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14905 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14906 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14907 variables.
14908 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14909 (sparc32nbsd_sigcontext_frame_this_id)
14910 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14911 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14912 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14913 (sparcnbsd_get_longjmp_target_32,
14914 sparcnbsd_get_longjmp_target_64): Remove functions.
14915 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14916 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14917 sparcnbsd_init_elf): Remove.
14918 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14919 (sparcnbsd_elf_init_abi): New functions.
14920 (_initialize_sparcnbsd_tdep): New prototype.
14921 (_initialize_sparnbsd_tdep): Update.
14922 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14923 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14924 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14925 * config/sparc/linux.mh: Update comment.
14926 (XM_FILE, HOST_IPC): Remove variables.
14927 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14928 sparc-linux-nat.o.
14929 * config/sparc/linux.mt: Update comment.
14930 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14931 * config/sparc/nbsd.mt: Reformat.
14932 * config/sparc/nbsd64.mh: Update comment.
14933 (NATDEPFILES): Add sparc-nat.o.
14934 * config/sparc/nbsd64.mt: Update comment.
14935 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14936 (TM_FILE): Set to tm-nbsd.h.
14937 * config/sparc/nbsdelf.mh: Update comment.
14938 (NATDEPFILES): Add sparc-nat.o.
14939 (XM_FILE): Delete.
14940 * config/sparc/nbsdaout.mh: Update comment.
14941 (NATDEPFILES): Add sparc-nat.o
14942 (XM_FILE): Delete.
14943 * config/sparc/nm-linux.h: Update copyright year. Don't include
14944 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14945 inclusion.
14946 (KERNEL_U_SIZE): Remove define.
14947 (kernel_u_size): Remove prototype.
14948 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14949 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14950 "regcache.h".
14951 (CHILD_PREPARE_TO_STORE): Remove define.
14952 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14953 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14954 sparcnbsd-nat.c: Rewrite files.
14955 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14956 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14957 sparcnbsd-tdep.h: Remove files.
14958 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14959 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14960 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14961 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14962 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14963 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14964 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14965 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14966 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14967 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14968 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14969 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14970 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14971 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14972 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14973 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14974 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14975 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14976 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14977
ee84457a
AC
149782004-01-02 Andrew Cagney <cagney@redhat.com>
14979
14980 From 2003-12-18 Kazuhiro Inaoka:
14981 * configure.host: Add m32r-linux target.
14982
0bc2134e
MC
149832004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14984
14985 * top.c (print_gdb_version): Update year to 2004.
14986
89a72f9c
MM
149872004-01-02 Mark Mitchell <mark@codesourcery.com>
14988
14989 * MAINTAINERS: Add myself to the write-after-approval category.
14990
86b013ed
DJ
149912004-01-02 Daniel Jacobowitz <drow@mvista.com>
14992
14993 From Bernardo Innocenti <bernie@develer.com>:
14994 * configure.tgt: Add uClinux target.
14995
e42c9534
AC
149962004-01-02 Andrew Cagney <cagney@redhat.com>
14997
14998 * utils.c (do_my_cleanups): Make static, add forward declaration.
14999 * defs.h (do_my_cleanups): Delete declaration.
15000
162467d3
EZ
150012004-01-02 Eli Zaretskii <eliz@elta.co.il>
15002
15003 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15004 bfd/ChangeLog-0203.
15005
78434e59
MK
150062004-01-02 Mark Kettenis <kettenis@gnu.org>
15007
15008 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15009 in <machine/reg.h>.
15010 * configure, config.in: Regenerate.
15011
48efe704
AC
15012For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15013tui/ChangeLog-1998-2003.
c906108c
SS
15014\f
15015Local Variables:
15016mode: change-log
15017left-margin: 8
15018fill-column: 74
15019version-control: never
15020End:
This page took 1.365021 seconds and 4 git commands to generate.