2004-11-27 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
323e0a4a
AC
12004-11-27 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2
3 Committed by Andrw Cagney.
4 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
5 markup.
6
91a533d4
AC
72004-12-12 Andrew Cagney <cagney@gnu.org>
8
39ee2ff0
AC
9 * frame.c (get_prev_frame): When unwinding normal frames, check
10 that the PC isn't zero.
11 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
12 zero PC.
13
91a533d4
AC
14 * MAINTAINERS: Reword description of what "Target Instruction Set
15 Architectures" covers.
16
0d9b270c
MK
172004-12-12 Mark Kettenis <kettenis@gnu.org>
18
19 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
20
d3322e8a
MK
212004-12-11 Mark Kettenis <kettenis@gnu.org>
22
eeca586f
MK
23 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
24 (hppa_hpux_save_state_offset): New function, replacing variable
25 with the same name.
26 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
27 functions.
28 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
29 Use new hppa_hpux_save_state_offset function. Add special
30 handling for handling 64-bit "flags" register.
31 (hppa_hpux_store_register): Likewise.
32 (hppa_hpux_child_can_run): Tweak comment.
33
7ba0e0c2
MK
34 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
35 (inf_ttrace_attach): Likewise.
36 (inf_ttrace_resume_callback): New function.
37 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
38 lwps and call inf_ttrace_resume_callback instead.
39 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
40
d3322e8a
MK
41 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
42
e02147b1
MS
432004-12-10 Michael Snyder <msnyder@redhat.com>
44
45 * mn10300-tdep.c: New file. This is a re-implementation of
46 the mn10300 target back-end using the new frame api etc.
47 * mn10300-tdep.h: New file.
48 * config/mn10300/mn10300.mt: New file (or replace old file).
49 * configure.tgt: Add mn10300 target.
50
01926a69
MK
512004-12-10 Mark Kettenis <kettenis@gnu.org>
52
c5101575
MK
53 * configure.host (hppa*-*-hpux11*): Remove.
54 * config/pa/hpux11.mh: Remove file.
55
01926a69
MK
56 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
57 typo.
58
d737fd7f
KW
592004-12-10 Kris Warkentin <kewarken@qnx.com>
60
61 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
62 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
63 function and nto_set_target function.
64 (struct nto_target_ops): Put comments inline with struct. Add osabi
65 sniffer hook. Redefine macros to permit testing/assignment. Remove
66 nto_ prefix from members.
67 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
68 dynamically to support arbitrary root paths. Check for basename of
69 lib in search path and then check for absolute.
70 (nto_in_dynsym_resolve_code): New function.
71 (nto_core_sniffer): New function.
72 (regset_core_fns): Register core sniffer.
73 (nto_initialize_signals): New function.
74 (_initialize_nto_tdep): Move signal initialization code to above to
75 avoid initialization race conditions.
76 (nto_set_target): New function.
77 * nto-procfs.c: Minor formatting/indenting changes.
78 (procfs_is_nto_target): New function.
79 (procfs_open): Set nto_is_nto_target.
80 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
81 initialization race conditions.
82 (procfs_create_inferior): Resume inferior after creation.
83 * i386-nto-tdep.c: Declare i386_nto_target.
84 (init_i386nto_ops): Initialize i386_nto_target instead of
85 current_nto_target.
86 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
87 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
58544210
MK
88 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
89 sniffer.
d737fd7f 90
3cd36e7c
MK
912004-12-10 Mark Kettenis <kettenis@gnu.org>
92
93 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
94 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
95 (hppa_hpux_init_abi): Reformat long line.
96
08d53055
MK
972004-12-09 Mark Kettenis <kettenis@gnu.org>
98
99 * hppa-hpux-tdep.c: Include "regset.h".
100 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
101 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
102 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
103 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
104 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
105 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
106 functions.
107 (hppa_hpux_regset): New variable.
108 (hppa_hpux_regset_from_core_section): New function.
109 (hppa_hpux_init_abi): Set regset_from_core_section.
110 (hppa_hpux_core_osabi_sniffer): New function.
111 (_initialize_hppa_hpux_tdep): Register
112 hppa_hpux_core_osabi_sniffer.
113 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
114 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
115
45851e00
RC
1162004-12-09 Randolph Chung <tausq@debian.org>
117
118 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
119 text and data sections.
120 (pa64_current_sos): Also include the dld in the list of current shared
121 objects.
122 (pa64_solib_get_solib_by_pc): Update comments.
123 (pa64_solib_get_text_base): New function.
124 (pa64_solib_select): Set solib_get_text_base method.
125
1bac0d4d
DJ
1262004-12-08 Daniel Jacobowitz <dan@debian.org>
127
128 * linux-thread-db.c (BUILD_THREAD): Delete.
129 (thread_get_info_callback): Include LWP ID in thread ID.
130 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
131 (lwp_from_thread): Use the LWP ID from the thread ID.
132
254ce0a1
RC
1332004-12-07 Randolph Chung <tausq@debian.org>
134
135 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
136 register for both 32- and 64-bit targets.
137
cc9bed83
RC
1382004-12-07 Randolph Chung <tausq@debian.org>
139
140 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
141 are unwinding through a dummy frame.
142
f77a2124
RC
1432004-12-07 Randolph Chung <tausq@debian.org>
144
145 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
146 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
147 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
148 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
149 if defined.
150
f1b38a57
RC
1512004-12-07 Randolph Chung <tausq@debian.org>
152
153 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
154 unwinding from a frame with pc == 0.
155 (hppa_stub_frame_this_id): Likewise.
156 (hppa_stub_frame_prev_register): Only provide real values if the frame
157 cache is not NULL.
158
419b8bfb
RC
1592004-12-07 Randolph Chung <tausq@debian.org>
160
161 * solib-som.c: New file.
162 * solib-som.h: New file.
163 * solib-pa64.c: New file.
164 * solib-pa64.h: New file.
165
6e93c4f7
MK
1662004-12-07 Mark Kettenis <kettenis@gnu.org>
167
168 * Makefile.in (inf-ttrace.o): Fix typo.
169
c273b20f
JB
1702004-12-07 Jim Blandy <jimb@redhat.com>
171
172 * remote.c (remote_threads_info, remote_current_thread): Use
173 strtoul to parse thread ID numbers.
174
cc72850f
MK
1752004-12-07 Mark Kettenis <kettenis@gnu.org>
176
a7be7fa8
MK
177 * inf-ttrace.c: Include "gdbthread.h".
178 (inf_ttrace_num_lwps): New variable.
179 (inf_ttrace_num_lwps_in_syscall): Renamed from
180 inf_ttrace_num_threads_in_syscall.
181 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
182 TTEVT_LWP_TERMINATE events.
183 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
184 zero.
185 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
186 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
187 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
188 events.
189 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
190 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
191 TTEVT_LWP_TERMINATE events.
192 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
193 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
194 * Makefile.in (inf-ttrace.o): Update dependencies.
195
cc72850f
MK
196 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
197 prototypes.
198 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
199 Make global. Remove HP-UX specific code. Use
200 frame_unwind_register_unsigned instead of
201 frame_unwind_register_signed.
202 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
203 Remove HP-UX specific code.
204 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
205 (hppa_frame_prev_register_helper): Set "flags" register to zero
206 for all unwound frames.
207 (hppa_gdbarch_init): Adjust.
208 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
209 (hppa_hpux_read_pc, hppa_hpux_write_pc)
210 (hppa_hpux_unwind_pc): New functions.
211 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
212
f47b1503
AS
2132004-12-07 Andreas Schwab <schwab@suse.de>
214
215 * main.c (long_options): Add entry for "-l".
216 (print_gdb_help): Add line for -l option.
217 * NEWS: Mention it.
218
c1299d67
RC
2192004-12-05 Randolph Chung <tausq@debian.org>
220
221 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
222 DEPRECATED_REGISTER_BYTE.
223
57dac9e1
RC
2242004-12-05 Randolph Chung <tausq@debian.org>
225
226 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
227 records.
228
b1acf338
MK
2292004-12-05 Mark Kettenis <kettenis@gnu.org>
230
a61ce9b4
MK
231 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
232 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
233
b1acf338
MK
234 * hppa-hpux-tdep.c: Update copyright notice and year.
235
fcab3fb5
RE
2362004-12-05 Richard Earnshaw <rearnsha@arm.com>
237
238 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
239 (get_field, put_field): Assert that the format is one we can handle.
240 Simplify logic accordingly.
241 (floatformat_normalize_byteorder): New function.
242 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
243 to normalize and select modified byte order. Pass modified byte order
244 to get_field.
245 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
246 Likewise.
247 (convert_doublest_to_floatformat): Select an appropriate intermediate
248 byte order if necessary. Always convert to the final format before
249 returning.
250
48bb3cce
DJ
2512004-12-04 Daniel Jacobowitz <dan@debian.org>
252
253 PR tui/1703
254 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
255 Suggested by Joshua Neuheisel.
256
fe46cd3a
RC
2572004-12-03 Randolph Chung <tausq@debian.org>
258
259 * gdbarch.sh (instruction_nullified): Delete.
260 * gdbarch.c: Regenerate.
261 * gdbarch.h: Regenerate.
262 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
263 nullified.
264 (hppa_unwind_pc): Likewise.
265 (hppa_instruction_nullified): Delete.
266 (hppa_gdbarch_init): Don't set instruction_nullified method.
267 * infrun.c (infwait_states): Remove infwait_nullified_state.
268 (handle_inferior_event): Remove handling of infwait_nullified_state.
269 Remove handling of nullified instructions.
270
dd515450
MK
2712004-12-03 Mark Kettenis <kettenis@gnu.org>
272
932936f0
MK
273 * inf-ttrace.c: Include <sys/mman.h>.
274 (struct inf_ttrace_page): New.
275 (struct inf_ttrace_page_dict): New.
276 (inf_ttrace_num_threads_in_syscall)
277 (inf_ttrace_reenable_page_protections): New variables.
278 (inf_ttrace_enable_syscall_events)
279 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
280 (inf_ttrace_add_page, inf_ttrace_insert_page)
281 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
282 (inf_ttrace_enable_page_protections)
283 (inf_ttrace_disable_page_protections)
284 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
285 (inf_ttrace_can_use_hw_breakpoint)
286 (inf_ttrace_region_size_ok_for_hw_watchpoint)
287 (inf_ttrace_stopped_by_watchpoint): New functions.
288 (inf_ttrace_him): Remove unsused varaible `tts'.
289 (inf_ttrace_create_inferior): Add assertionts.
290 (inf_ttrace_mourn_inferior): Clear page dictionary.
291 (inf_ttrace_attach): Set initial event mask.
292 (inf_ttrace_detach): Reset number of threads in system call.
293 (inf_ttrace_wait): Deal with system call events.
294 (inf_ttrace_target): Initialize "hardware" watchpoint-related
295 parts of the target vector.
296 (_initialize_inf_ttrace): New prototype and function.
297
dd515450
MK
298 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
299 type of `gp' variable.
300
73fb7068
RS
3012004-12-03 Richard Sandiford <rsandifo@redhat.com>
302
303 * README: Remove config.if from directory listing.
304
515921d7
JB
3052004-12-01 Joel Brobecker <brobecker@gnat.com>
306
307 * alpha-tdep.c (alpha_register_name): Add comment.
308 (alpha_cannot_fetch_register): Exclude registers numbers which
309 are no longer used from the list of registers that can be fetched.
310 (alpha_cannot_store_register): Exclude registers numbers which
311 are no longer used from the list of registers that can be stored.
312 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
313 core_reg_mapping array.
314
1cc759c3
JB
3152004-12-01 Joel Brobecker <brobecker@gnat.com>
316
317 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
318 the register value from the correct frame.
319
b546247c
RC
3202004-11-30 Randolph Chung <tausq@debian.org>
321
322 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
323 (hppa_linux_in_dyncall): Check that we are inside the range of
324 $$dyncall, not necessarily at the first insn.
325 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
326 even if the pc does not point to the first insn of the trampoline.
327
46905982
RC
3282004-11-30 Randolph Chung <tausq@debian.org>
329
330 * breakpoint.c (break_at_finish_command): Delete.
331 (break_at_finish_command_1): Delete.
332 (break_at_finish_at_depth_command): Delete.
333 (break_at_finish_at_depth_command_1): Delete.
334 (tbreak_at_finish_command): Delete.
335 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
336 and bx commands.
337
80b93d6b
AC
3382004-11-30 Andrew Cagney <cagney@gnu.org>
339
a7711b1f
AC
340 * config/nm-gnu.h: Delete file.
341 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
342
80b93d6b
AC
343 * config/nm-sysv4.h: Delete file.
344 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
345 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
346 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
347 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
348 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
349
31ffb221
AC
3502004-11-29 Andrew Cagney <cagney@gnu.org>
351
352 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
353 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
354 as can-commit architecture developers.
91a533d4 355
3919e12c
MK
3562004-11-29 Mark Kettenis <kettenis@gnu.org>
357
075ccec8
MK
358 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
359 (sparc32_skip_prologue): Skip instructions that store arguments in
360 registers into their corresponding stack slots.
361
388e0111
MK
362 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
363 tm-solib.h.
364 * config/m68k/obsd.mh (NAT_FILE): Likewise.
365
19671c2b
MK
366 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
367 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
368 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
369 sparc32nbsd_elf_init_abi. Remove duplicate code.
370
77a7fe6d
MK
371 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
372 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
373 * config/sparc/nm-nbsd.h: Remove file.
374 * config/sparc/nm-nbsdaout.h: Remove file.
375
cbfc58d1
MK
376 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
377 (sparc_xfer_partial): New function.
378 (sparc_target): Save value of to_xfer_partial from ptrace vector.
379 Set to_xfer_partial.
380
3919e12c
MK
381 * fork-child.c (fork_inferior): Fork instead of vfork if
382 PRE_TRACE_FUN is non-null.
383
ebd98106
FF
3842004-11-24 Fred Fish <fnf@specifixinc.com>
385
386 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
387 compiler generated function calls made as part of a prologue.
388
eee22bf8
MK
3892004-11-23 Mark Kettenis <kettenis@gnu.org>
390
391 * inf-ttrace.c: New file.
392 * inf-ttrace.h: New file.
393 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
394 Include "inf-ttrace.h".
395 (ss_mpsfu_high): Define to ss_tlsp if necessary.
396 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
397 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
398 ptrace systems.
399 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
400 instead of inf_ptrace_target.
401 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
402 * Makefile.in (inf_ttrace_h): New variable.
403 (hppa-hpux-nat.o): Update dependency.
404 (inf-ttrace.o): New dependency.
405 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
406
3ca64954
RC
4072004-11-23 Randolph Chung <tausq@debian.org>
408
409 * arch-utils.c (generic_instruction_nullified): New.
410 * arch-utils.h (generic_instruction_nullified): New.
411 * gdbarch.sh (instruction_nullified): New method.
412 * gdbarch.c: Regenerate.
413 * gdbarch.h: Regenerate.
414 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
415 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
416 new gdbarch method.
417 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
418 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
419 static. Rewrite to work directly off the passed regcache.
420 (hppa_gdbarch_init): Set instruction_nullified method.
421
5465445a
JB
4222004-11-23 Joel Brobecker <brobecker@gnat.com>
423
424 * sparc-tdep.c (sparc_is_unimp_insn): New function.
425 (sparc32_frame_cache): For functions where there is no debugging
426 information to help us determine whether it's a struct-return
427 function or not, fallback on checking whether the instruction
428 at the return address is an "unimp" instruction or not.
429
3f6306ec
DA
4302004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
431
871cce51
DA
432 * MAINTAINERS: Add myself to write after approval section.
433
3f6306ec
DA
434 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
435 hpux-thread.c to suppress children from running.
436 (hppa_hpux_child_can_run): New function.
437 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
438 * hpux-thread.c: Include string.h and hppa-tdep.h.
439 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
440 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
441 (hpux_thread_store_registers): Replace deprecated_registers with
442 calls to regcache_raw_read.
443 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
444
f5ccf7a2
MK
4452004-11-21 Mark Kettenis <kettenis@gnu.org>
446
447 * sparc64fbsd-nat.c: Update copyright year.
448 (_initialize_sparc64fbsd_nat): Construct and add target vector.
449 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
450 inftarg.o.
451
8c3900e4
DJ
4522004-11-21 Daniel Jacobowitz <dan@debian.org>
453
454 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
455
b957e937
DJ
4562004-11-21 Daniel Jacobowitz <dan@debian.org>
457
458 * linux-nat.c (my_waitpid): New function.
459 (linux_test_for_tracefork): Make more robust and verbose. Take
460 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
461 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
462 argument. Update calls to linux_test_for_tracefork.
463 (linux_enable_event_reporting, child_follow_fork)
464 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
465 (child_insert_exec_catchpoint): Update calls to
466 linux_supports_tracefork and linux_supports_tracevforkdone.
467
65d3800a
DJ
4682004-11-21 Daniel Jacobowitz <dan@debian.org>
469
470 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
471 (value_subscripted_rvalue): Likewise.
472 * valops.c (search_struct_field, value_slice): Likewise.
473
2c4a536d
MK
4742004-11-21 Mark Kettenis <kettenis@gnu.org>
475
476 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
477 Reorder includes a bit. Fix comment.
478 * Makefile.in (inf-ptrace.o): Update dependencies.
479
fefa1888
AS
4802004-11-21 Andreas Schwab <schwab@suse.de>
481
482 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
483 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
484 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
485 to glibc_skip_solib_resolver.
486 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
487 solib-legacy.o.
488 * Makefile.in (m68klinux-tdep.o): Update dependencies.
489
d564a7d4
DA
4902004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
491
492 * infttrace.h (ttrace_write_reg_64): Add prototype.
493 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
494 expression.
495 (store_inferior_registers): Correct formatting. Replace uses of
496 deprecated_registers with calls to regcache_raw_read,
497 regcache_raw_write_part and regcache_raw_read_part.
498
3f70a5e9
MK
4992004-11-21 Mark Kettenis <kettenis@gnu.org>
500
501 * config/pa/hppahpux.mh: Remove file.
502 * config/pa/hpux1020.mh: Remove file.
503
ced0d73d
AS
5042004-11-20 Andreas Schwab <schwab@suse.de>
505
506 * configure.host: Set host floatformat for m68k.
507
fcf54f50
EZ
5082004-11-20 Eli Zaretskii <eliz@gnu.org>
509
510 * config/djgpp/fnchange.lst: Resolve file-name clash between
511 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
512
a7289609
MK
5132004-11-20 Mark Kettenis <kettenis@gnu.org>
514
eeb8076c
MK
515 * hppa-hpux-nat.c: New file.
516 * config/pa/hpux.mh (NATDEPFILES): New file.
517 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
518 (hppa-hpux-nat.o): New dependency.
519 * configure.host: Remove hppa*-*-hpux10.20.
520 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
521
f6ffd89b
MK
522 * inf-ptrace.c: Fix coding style.
523
f1bc22da
MK
524 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
525 * infptrace.c (call_ptrace): Simply call ptrace with four
526 arguments.
527
e31272c3
MK
528 * dbxread.c (process_one_symbol): Fix a few coding standard
529 issues. Improve code formatting.
530
91f54576
MK
531 * dbxread.c: Include "gdb_string.h".
532 (record_minimal_symbol, read_ofile_symtab): Replace
533 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
534 * Makefile.in (dbxread.o): Update dependencies.
535
a7289609
MK
536 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
537 of bytes read for aligned LEB128 encodings.
538
57ac95b8
MK
5392004-11-19 Mark Kettenis <kettenis@gnu.org>
540
541 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
542 parse_and_eval_address to u_long before converting it to a pointer
543 type.
544 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
545 ps_strings from int to u_long.
546 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
547 u_long instead of CORE_ADDR.
548
ceddaf06
MK
5492004-11-18 Mark Kettenis <kettenis@gnu.org>
550
551 * dbxread.c (process_one_symbol): Do not adjust address of first
552 N_SLINE stab for a function for code generated by non-GCC
553 compilers.
554
915a2d21
KB
5552004-11-18 Kevin Buettner <kevinb@redhat.com>
556
557 * solib-null.c: New file.
558
92790ee7
AC
5592004-11-17 Andrew Cagney <cagney@gnu.org>
560
561 * MAINTAINERS: Drop MIPS and remote.
562
0c16dd26
AC
5632004-11-15 Andrew Cagney <cagney@gnu.org>
564
565 * findvar.c (value_of_register): Set the frame ID.
566 * value.c (value_primitive_field): Copy the frame ID.
567 * valops.c (value_assign): Simplify lval_register case, there's
568 always a frame.
569
2fdf551c
DJ
5702004-11-14 Daniel Jacobowitz <dan@debian.org>
571
572 * Makefile.in (mips-linux-tdep.o): Update dependencies.
573 * mips-linux-tdep.c: Include "regcache.h".
574 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
575
98754800
DJ
5762004-11-14 Daniel Jacobowitz <dan@debian.org>
577
578 * Makefile.in (linux-thread-db.o): Fix typo in last change.
579
ed89d175
DJ
5802004-11-14 Daniel Jacobowitz <dan@debian.org>
581
582 * linux-thread-db.c: New file, renamed from thread-db.c.
583 * thread-db.c: Remove.
584 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
585 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
586 to linux-thread-db.o.
587 * config/arm/linux.mh (NATDEPFILES): Likewise.
588 * config/i386/linux.mh (NATDEPFILES): Likewise.
589 * config/i386/linux64.mh (NATDEPFILES): Likewise.
590 * config/ia64/linux.mh (NATDEPFILES): Likewise.
591 * config/m32r/linux.mh (NATDEPFILES): Likewise.
592 * config/m68k/linux.mh (NATDEPFILES): Likewise.
593 * config/mips/linux.mh (NATDEPFILES): Likewise.
594 * config/pa/linux.mh (NATDEPFILES): Likewise.
595 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
596 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
597 * config/s390/s390.mh (NATDEPFILES): Likewise.
598 * config/sparc/linux.mh (NATDEPFILES): Likewise.
599 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
600
8851ec7a
AC
6012004-11-13 Andrew Cagney <cagney@gnu.org>
602
f97fe8ff
AC
603 * config/i386/i386lynx.mh: Delete file.
604 * config/i386/i386lynx.mt: Delete file.
605 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
606 * i386ly-tdep.c: Delete.
607
5873946b
AC
608 * config/tm-lynx.h: Delete, inline contents ...
609 * config/rs6000/tm-rs6000ly.h: ... here.
610
a69637bd
AC
611 * config/tm-sysv4.h: Delete file, inlining contents.
612 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
613 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
614 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
615
8851ec7a
AC
616 * regcache.h (deprecated_register_valid): Delete.
617 (deprecated_registers): Delete.
618 * regcache.c (deprecated_register_valid): Delete.
619 (deprecated_registers): Delete.
620 (deprecated_read_register_byte, _initialize_regcache)
621 (deprecated_write_register_bytes, build_regcache): Update.
622 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
623 remote-sds.o.
624 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
625 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
626
9445aa30
AC
627 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
628 v850-*-* under removed.
629 * configure.host: Delete ns32k-*-netbsd*.
630 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
631 ns32k-*-netbsd*, and v850*-*-*.
632 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
633 "Deleted"
634 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
635 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
636 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
637 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
638 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
639 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
640 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
641 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
642 * v850-tdep.c: Delete.
643
f6e1bffc
JB
6442004-11-13 Joel Brobecker <brobecker@gnat.com>
645
646 * irix5-nat.c (fetch_core_registers): Replace use of
647 deprecated_registers by equivalent code.
648
44ed547b
JB
6492004-11-13 Joel Brobecker <brobecker@gnat.com>
650
651 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
652 with equivalent code.
653 (fill_fpregset): Likewise.
654
e84ecc99
AC
6552004-11-13 Andrew Cagney <cagney@gnu.org>
656
ca1a823a
AC
657 * MAINTAINERS: Do not list "Deleted" architectures.
658
e84ecc99
AC
659 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
660 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
661 sparc-*-vxworks*.
662 * NEWS: Mention that vxworks was deleted.
663 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
664 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
665 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
666 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
667 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
668 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
669 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
670 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
671 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
672 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
673 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
674 * remote-vxmips.c, remote-vx.c: Delete.
675 * remote-vx68.c: Delete.
676 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
677 * config/m68k/os68k.mt, ada-lang.h: Ditto.
678 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
679 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
680
01e937bc
EZ
6812004-11-13 Eli Zaretskii <eliz@gnu.org>
682
29247324
EZ
683 * config/i386/xm-go32.h: Don't include fopen-bin.h.
684 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
685
686 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
687 branch that doesn't define CRLF_SOURCE_FILES; always use
688 binary-mode open.
689 (print_source_lines_base, forward_search_command)
690 (reverse_search_command): Enable the code that accepts DOS-style
691 CRLF line endings on all platforms (this removes the need for
692 CRLF_SOURCE_FILES).
693
f8f0d88a 694 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 695 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 696
01e937bc
EZ
697 * config/djgpp/fnchange.lst: Group renames for opcode directory
698 together.
699
700 * config/djgpp/djconfig.sh: Replace file names that don't exist
701 anymore with existing files, for checking the unpacked
702 distribution.
703
704 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
705 Export pre-cooked values in configure-* targets that begin with
706 "@test -f stage_last".
707
25ae5d16
AC
7082004-11-12 Andrew Cagney <cagney@gnu.org>
709
710 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
711 * value.h (struct value): Update comment.
712 * valops.c (value_assign): Fold lval_reg_fame_relative into
713 lval_register.
714 * findvar.c (value_from_register, locate_var_value): Ditto.
715
d7318818
RC
7162004-11-12 Randolph Chung <tausq@debian.org>
717
718 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
719 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
720 (write_exp_msymbol): Remove conditional check for symbols starting
721 with $. Update comments.
722
89676665
RC
7232004-11-12 Randolph Chung <tausq@debian.org>
724
725 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
726 so_lib_thread_start_addr.
727 * pa64solib.h (so_list): Forward declare.
728 (pa64_solib_thread_start_addr): Prototype.
729 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
730 (no_shared_libraries): Remove.
731 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
732 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
733 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
734 the elf solib handler to find the start address.
735
736 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
737 files to the target makefile.
738 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
739 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
740 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
741
742 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 743 files for symbol reading and shared library handling here.
89676665 744 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
745 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
746 without bringing in 64-bit support.
89676665 747
df407dfe
AC
7482004-11-12 Andrew Cagney <cagney@gnu.org>
749
4991999e
AC
750 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
751 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
752 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
753 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
754 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
755 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
756 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
757
9ee8fc9d
AC
758 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
759 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
760 (VALUE_REGNUM): Define.
761 (struct value): Delete location.regnum, rename "regno" to
762 "regnum".
763 * value.c, valops.c, valarith.c, findvar.c: Update.
764
df407dfe
AC
765 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
766 (VALUE_BITPOS): Delete.
767 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
768 * value.c (value_type, value_offset, value_bitpos)
769 (value_bitsize): New functions. Update references.
770 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
771 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
772 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
773 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
774 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
775 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
776 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
777 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
778 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
779
61c82a3b
AC
7802004-11-12 Andrew Cagney <cagney@gnu.org>
781
782 * cris-tdep.c (cris_register_offset): Delete, never called.
783 (cris_spec_reg_applicable): Delete cris_ver_sim.
784 * MAINTAINERS: List d10v as OBSOLETE.
785 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
786 FOPEN_WB et.al., defined by "fopen-bin.h".
787
5aac166f
RC
7882004-11-12 Randolph Chung <tausq@debian.org>
789
790 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
791 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
792 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
793 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
794
4fab48b9
MK
7952004-11-12 Mark Kettenis <kettenis@jive.nl>
796
797 * tui/tui-io.c: Don't include "terminal.h".
798 * Makefile.in (tui-io.o): Update dependencies.
799
9b098f24
KI
8002004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
801
802 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
803 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
804 set_gdbarch_regset_from_core_section for core file support.
805 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
806 New functions.
807
a71f8c30
RC
8082004-11-11 Randolph Chung <tausq@debian.org>
809
810 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
811 stop_after_branch parameter and use it to determine if we should look
812 at the delay slot of the first branch insn to find prologue insns.
813 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
814 (hppa_frame_cache): Likewise.
815
50b2f48a
RC
8162004-11-11 Randolph Chung <tausq@debian.org>
817
818 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
819 register so that it can be unwound from anywhere in the prologue.
820
be723e22
MS
8212004-11-10 msnyder <msnyder@redhat.com>
822
823 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
824 must invalidate lr_reg (so we don't try to save it again).
825 Ditto for cr_offset and cr_reg.
826
d6f7abdf
AC
8272004-11-05 Jon Beniston <jon@beniston.com>
828
216c5547 829 Committed by Andrew Cagney.
d6f7abdf
AC
830 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
831 when an unexpected packet is received, as the target stubs
832 continually retransmit the same packet until ACKed.
833
1d225535
RC
8342004-11-10 Randolph Chung <tausq@debian.org>
835
836 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 837 frame's type.
1d225535 838
2315ffec
RC
8392004-11-10 Randolph Chung <tausq@debian.org>
840
841 * blockframe.c (inside_entry_func): Move to .....
842 * frame.c (inside_entry_func): ... here, and make static.
843 (backtrace_past_entry): New flag.
844 (get_prev_frame): Stop backtrace at the entry function if enabled
845 by flag. Update comments.
846 (_initialize_frame): Add command to set backtrace_past_entry flag.
847 * defs.h (inside_entry_func): Remove prototype.
848
917c78fc
MK
8492004-11-10 Mark Kettenis <kettenis@gnu.org>
850
851 * dwarf2read.c: Fix formatting.
852
994b9211
AC
8532004-11-10 Andrew Cagney <cagney@gnu.org>
854
855 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
856 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
857 macros with function declarations.
858 * value.c (coerce_ref, coerce_array, coerce_number)
859 (coerce_enum): New functions.
860 (value_as_long, value_as_address): Update.
861 * ada-lang.c (ada_coerce_ref, ada_value_binop)
862 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
863 * jv-lang.c (evaluate_subexp_java): Update.
864 * valarith.c (value_less, value_neg, value_complement)
865 (value_binop, value_add, value_subscript, value_x_binop)
866 (value_logical_not, value_sub): Update.
867 * valops.c (check_field, value_struct_elt, value_ind)
868 (value_find_oload_method_list, value_cast, value_assign): Update.
869 * eval.c (evaluate_subexp_standard): Update.
870
06987e64
MK
8712004-11-10 Mark Kettenis <kettenis@gnu.org>
872
873 * mips-tdep.c (mips32_relative_offset): Change return type to
874 LONGEST, change argument type to ULONGEST. Fix sign-extension.
875
4a302917
RC
8762004-11-10 Randolph Chung <tausq@debian.org>
877
878 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
879 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
880 (hppa_fetch_pointer_argument): Likewise.
881 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
882 deprecated_read_memory_nobpt.
883 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
884 add_set_cmd sequence with add_setshow_boolean_cmd.
885
390e974f
AC
8862004-11-09 Andrew Cagney <cagney@gnu.org>
887
888 GDB 6.3 released from GDB 6.3 branch.
889
92e023d6
AC
8902004-11-09 Andrew Cagney <cagney@gnu.org>
891
892 * values.c: Rename to ...
893 * value.c: ..., new file.
894 * Makefile.in: Update.
895
d10891d4
DJ
8962004-11-09 Daniel Jacobowitz <dan@debian.org>
897
898 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
899 size.
900
00a4c844
AC
9012004-11-09 Andrew Cagney <cagney@gnu.org>
902
c44523e7
AC
903 * TODO: Delete.
904
00a4c844
AC
905 * value.h (struct value): Delete field bfd_section.
906 (VALUE_BFD_SECTION): Delete macro.
907 (COERCE_REF): Update.
908 (value_at, value_at_lazy): Delete asection parameter.
909 * printcmd.c (print_formatted, x_command): Update.
910 (do_examine): Delete asection parameter.
911 (next_section): Delete variable.
912 * valops.c (value_cast, value_at, value_at_lazy)
913 (value_coerce_function, value_addr, value_ind, value_string)
914 (find_rt_vbase_offset, value_full_object): Update.
915 * hpacc-abi.c (hpacc_virtual_fn_field)
916 (hpacc_value_rtti_type): Update.
917 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
918 (gnuv3_baseclass_offset): Update.
919 * f-valprint.c (f_val_print): Update.
920 * c-valprint.c (c_val_print): Update.
921 * p-valprint.c (pascal_val_print): Update.
922 * jv-valprint.c (java_value_print): Update.
923 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
924 * ada-lang.c (ada_value_primitive_packed_val)
925 (ada_evaluate_subexp): Update.
926 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
927 * expprint.c (print_subexp_standard): Update.
928 * infcall.c (call_function_by_hand): Update.
929 * valarith.c (value_add): Update.
930 * eval.c (evaluate_subexp_standard): Update.
931 * values.c (allocate_value, value_copy, value_static_field): Update.
932 * findvar.c (read_var_value, locate_var_value): Update.
933
5cb2fe25
AC
9342004-11-09 Andrew Cagney <cagney@gnu.org>
935
936 * i386-linux-tdep.c: Include "dwarf2-frame.h".
937 * Makefile.in: Update all dependencies.
938
cbafadeb
AC
9392004-11-08 Andrew Cagney <cagney@gnu.org>
940
941 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
942 (sentinel_frame_unwinder): Add the prev_pc method.
943 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
944 available. Do not handle the sentinel-frame case.
945 * frame-unwind.h (frame_prev_register_ftype): Define.
946 (struct frame_unwind): Add prev_pc;
947
3b78cdbb
DA
9482004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
949
950 * configure.in: Check for ncurses/term.h.
951 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
952 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
953 * tui/tui.c: Don't include term.h.
954 * configure, config.in: Rebuilt.
955
bcfca652
MK
9562004-11-08 Mark Kettenis <kettenis@gnu.org>
957
958 * m68kbsd-nat.c: Include "inf-ptrace.h".
959 (_initialize_m68kbsd_nat): Fix pasto.
960 * Makefile.in (m68kbsd-nat.o): Update dependencies.
961
527159b7
RC
9622004-11-08 Randolph Chung <tausq@debian.org>
963
964 * infrun.c (debug_infrun): New variable.
965 (resume, proceed, wait_for_inferior): Annotate with debug messages.
966 (handle_inferior_event, keep_going): Likewise.
967 (_initialize_infrun): Register "set debug infrun" command.
968
c874c7fc
AS
9692004-11-08 Andreas Schwab <schwab@suse.de>
970
971 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
972 PTRACE_EVENT_VFORKDONE.
973 (child_follow_fork): Adjust.
974
3c8fa307
AC
9752004-11-08 Andrew Cagney <cagney@gnu.org>
976
5c26072a
AC
977 * README: Refer to 6.3, not 6.2, update directory listing droppng
978 references to intl/ and mmalloc/.
979 * PROBLEMS: Refer to 6.3 not 6.2.
980
3c8fa307
AC
981 * PROBLEMS: Delete no-longer applicable problems.
982
12b8a2cb
DJ
9832004-11-07 Andrew Cagney <cagney@redhat.com>
984 Daniel Jacobowitz <dan@debian.org>
985 Roland McGrath <roland@redhat.com>
986
987 * Makefile.in (symfile-mem.o): Update dependencies.
988 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
989 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
990 * inf-ptrace.c (inf_ptrace_attach): Call
991 observer_notify_inferior_created.
992 * inftarg.c (child_attach): Likewise.
993 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
994 (symbol_file_add_from_memory): Take NAME argument. Use it for
995 the new BFD's filename.
996 (add_symbol_file_from_memory_command): Update call to
997 symbol_file_add_from_memory.
998 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
999 (symbol_file_add_from_memory_wrapper): New.
1000 (_initialize_symfile_mem): Register add_vsyscall_page as an
1001 inferior_created observer.
1002
abbc6945
MK
10032004-11-07 Mark Kettenis <kettenis@gnu.org>
1004
1005 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1006 fetch_inferior_registers. Make static.
1007 (m68kbsd_store_inferior_registers): Rename from
1008 store_inferior_registers. Make static.
1009 (_initialize_m68kbsd_nat): Construct and add target vector.
1010 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1011 inftarg.o. Add inf-ptrace.o.
1012 (NAT_FILE): Set to tm-solib.h.
1013 (LOADLIBES): New variable.
1014 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1015 inftarg.o. Add inf-ptrace.o.
1016 (NAT_FILE): Delete variable.
1017 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1018 inftarg.o. Add inf-ptrace.o.
1019 (NAT_FILE): Set to tm-solib.h.
1020 * config/m68k/nm-nbsdaout.h: Remove file.
1021
3ed09a32
DJ
10222004-11-07 Daniel Jacobowitz <dan@debian.org>
1023
1024 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1025 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1026 (dwarf2_signal_frame_unwind): New.
1027 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1028 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1029
8e763687
MK
10302004-11-07 Mark Kettenis <kettenis@gnu.org>
1031
4fb31ed0
MK
1032 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1033
fabe86c8
MK
1034 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1035 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1036 to only include the structure members we actually need.
1037 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1038 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1039 only include the structure members we actually need.
1040 (mipsnbsd_init_abi): Update.
1041
366e93e8
MK
1042 * mips64obsd-nat.c: Include "mips-tdep.h".
1043 (MIPS64OBSD_NUM_REGS): Remove define.
1044 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1045 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1046 floating-point registers correctly.
1047 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1048
8e763687
MK
1049 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1050 "gdb_assert.h".
1051 (mips64obsd_sigframe_init): New function.
1052 (mips64obsd_sigframe): New variable.
1053 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1054 unwinder.
1055 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1056
5f6a2351
JB
10572004-11-06 Joel Brobecker <brobecker@gnat.com>
1058
1059 * alpha-mdebug-tdep.c: #include mdebugread.h.
1060 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1061 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1062
f059bf6f
AC
10632004-11-05 Andrew Cagney <cagney@gnu.org>
1064
1065 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1066 CFI and the init_reg method leave the register unspecified.
1067 Include the register name in the "Incomplete CFI data" complaint.
1068 Supress leading zeros in the address.
1069
1234d960
MK
10702004-11-05 Mark Kettenis <kettenis@gnu.org>
1071
1072 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1073 skipping a personality routine in a CIE augmentation.
1074
d75e3c94
JJ
10752004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1076
1077 * defs.h (fatal, vfatal): New function prototypes.
1078 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1079 via catch_errors.
1080 (backtrace_command): Change to call backtrace_command_stub via
1081 catch_errors instead of calling backtrace_command_1 directly.
1082 (backtrace_full_command): Ditto.
1083 * utils.c (error_stream_1): New static function.
1084 (verror): Change to call error_stream_1 instead of error_stream.
1085 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1086 (vfatal, fatal): New functions.
1087
98f276a0
AC
10882004-11-05 Andrew Cagney <cagney@gnu.org>
1089
1090 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1091 when not using selected frame.
1092
f724bf08
MK
10932004-11-05 Mark Kettenis <kettenis@jive.nl>
1094
1095 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1096 personality routine in a CIE augmentation.
1097
c789492a
FL
10982004-11-05 Felix Lee <felix+log1@specifixinc.com>
1099
1100 * stack.c (set_current_sal_from_frame): New function.
1101 (print_args_stub): Use it.
1102 (print_frame_info): Don't set sal here.
1103
a81b10ae
MK
11042004-11-04 Mark Kettenis <kettenis@gnu.org>
1105
1106 * dwarf2-frame.c (read_encoded_value): Change type of third
1107 argument to `unsigned char *'. Add support for LEB128 encodings.
1108
ad766c0a
JB
11092004-11-04 Jim Blandy <jimb@redhat.com>
1110
1111 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1112 prevent cross-objfile references.
1113 (make_cv_type): Doc fix. Don't create cross-objfile references,
1114 even for stub types.
1115 (replace_type): Add assertion to prevent cross-objfile references.
1116 (check_typedef): Never resolve a stub type by copying over a type
1117 from another file.
1118
c46b0409 11192004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1120
c46b0409
KI
1121 * Makefile.in (m32r-tdep.o): Update dependencies.
1122 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1123 ABI-specific overrides.
1124
9f0b0322 11252004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 1126
9f0b0322
KI
1127 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1128 unnecessary parallel execution bit.
1129 (m32r_memory_remove_breakpoint): Ditto.
1130 (m32r_breakpoint_from_pc): Update.
1131
d5c27f81
RC
11322004-11-03 Randolph Chung <tausq@debian.org>
1133
1134 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 1135 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
1136 (hppa_frame_this_id): Likewise.
1137
4577593c
AC
11382004-11-03 Andrew Cagney <cagney@gnu.org>
1139
1140 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1141 packet, obsolete configurations, end-of-life deprecated_registers.
1142
b04de778
MK
11432004-11-02 Mark Kettenis <kettenis@gnu.org>
1144
1145 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1146 encodings as well as unsigned encodings.
1147
9f2feefc
AC
11482004-11-02 Andrew Cagney <cagney@gnu.org>
1149
1150 * value.h (COERCE_VARYING_ARRAY): Delete.
1151 * valops.c (value_cast, value_slice): Delete use.
1152 * valarith.c (value_subscript, value_concat): Delete use.
1153
117ea3cf
PH
11542004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1155
1156 * NEWS: GDB understands GNAT Ada.
1157
0bbc026e
JM
11582004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1159
1160 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1161 (amd64-sol2-tdep.o): Add dependencies.
1162 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1163 config/i386/sol2-64.mt: New files.
1164 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1165 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1166 (supply_gregset): Correct order of arguments to
1167 amd64_supply_native_gregset.
1168 (fill_gregset): Correct order of arguments to
1169 amd64_collect_native_gregset.
1170 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1171 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1172 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1173 for definition of NEW_PROC_API.
1174 * configure: Regenerate.
1175
3d38a0a5
JM
11762004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1177
1178 * MAINTAINERS (Write After Approval): Add myself.
1179
f81cd1cf
AC
11802004-11-01 Andrew Cagney <cagney@gnu.org>
1181
1182 * configure.tgt: Mark d10v-*-* as obsolete.
1183 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1184
f4e88c8e
PH
11852004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1186
1187 * values.c (modify_field): Correct handling of bit-fields that
1188 don't fit in 32 bits. Use unsigned operations throughout and
1189 simplify the code a bit. Document preconditions.
1190
84674fe1
AC
11912004-10-31 Andrew Cagney <cagney@gnu.org>
1192
96693b3a
AC
1193 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1194 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1195 (in_plt_section): Delete.
1196
6f296f8f
AC
1197 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1198 (mips_gdbarch_init): Do not set same.
1199
618501c0
AC
1200 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1201 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1202
b22e8f02
AC
1203 * gdbarch.sh (in_solib_call_trampoline): Delete.
1204 * gdbarch.h, gdbarch.c: Re-generate.
1205
84674fe1
AC
1206 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1207 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1208 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1209 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1210 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1211
c6d1029f
MK
12122004-10-31 Mark Kettenis <kettenis@gnu.org>
1213
1214 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1215 (mipsnbsd_fetch_inferior_registers): Rename from
1216 fetch_inferior_registers. Make static.
1217 (mipsnbsd_store_inferior_registers): Rename from
1218 store_inferior_registers. Make static.
1219 (_initialize_mipsnbsd_nat): New function and prototype.
1220 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1221 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1222 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1223 inf-ptrace.o.
1224
bd9ca83f
AC
12252004-10-31 Andrew Cagney <cagney@gnu.org>
1226
19d718a3
AC
1227 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1228 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1229 delete corresponding unused function.
1230 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1231 in_solib_call_trampoline.
1232 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1233 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1234 * config/mips/tm-nbsd.h: Ditto.
1235 * config/arm/tm-linux.h: Ditto.
1236 * config/mips/tm-linux.h: Ditto.
1237
e8ce19c0
AC
1238 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1239 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1240 in_solib_call_trampoline, delete corresponding unused function.
1241 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1242 (vaxnbsd_aout_init_abi): Ditto.
1243 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1244 (sparc32nbsd_aout_init_abi): Ditto.
1245 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1246 (ppc_linux_init_abi): Ditto.
1247 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1248 (ns32knbsd_init_abi_aout): Ditto.
1249 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1250 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1251 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1252 (m68kbsd_aout_init_abi): Ditto.
1253 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1254 (i386_cygwin_init_abi): Ditto.
1255 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1256 (i386bsd_init_abi): Ditto.
1257
af380d61
AC
1258 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1259 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1260 isn't used by this architecture.
1261 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1262 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1263 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1264 * s390-tdep.c (s390_gdbarch_init): Ditto.
1265 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1266 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1267 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1268 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1269 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1270 * amd64-tdep.c (amd64_init_abi): Ditto.
1271
0528d9f7
AC
1272 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1273 in_solib_call_trampoline to its default value of
1274 generic_in_solib_call_trampoline.
1275 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1276 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1277 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1278 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1279 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1280 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1281
f9f9eacb
AC
1282 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1283
a4ffd1e7
AC
1284 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1285
82e34d2f
AC
1286 * config/mips/tm-mips.h: Delete file.
1287 * remote-mips.c: Delete tm-mips.h from comment.
1288 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1289 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1290 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1291 * config/mips/tm-linux.h: Don't include tm-mips.h.
1292 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1293 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1294 * config/mips/tm-wince.h: Don't include.
1295
75dec9cf
AC
1296 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1297 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1298 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1299 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1300
bd9ca83f
AC
1301 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1302 * mdebugread.c (ecoff_relocate_efi): Delete function.
1303 * objfiles.c (objfile_relocate): Delete #ifdef
1304 MDEBUG_EFI_SYMBOL_NAME code.
1305
3352ef37
AC
13062004-10-31 Orjan Friberg <organ.friberg@axis.com>
1307 Andrew Cagney <cagney@gnu.org>
1308
1309 * gdbarch.sh (single_step_through_delay): Add.
1310 * gdbarch.h, gdbarch.c: Re-generate.
1311 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1312 (mips_step_skips_delay): Delete.
1313 * mips-tdep.c (mips_single_step_through_delay): Replace
1314 mips_step_skips_delay.
1315 (mips_gdbarch_init): Set single_step_through_delay.
1316 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1317
2440b685
MK
13182004-10-31 Mark Kettenis <kettenis@gnu.org>
1319
1320 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1321 from TRAMP_FRAME frame type.
1322
56a2fed5
AC
13232004-10-31 Andrew Cagney <cagney@gnu.org>
1324
9b792b1d
AC
1325 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1326
0a5e8d98
AC
1327 * mips-tdep.c (mips_ignore_helper): Delete.
1328 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1329 * infrun.c (handle_inferior_event): Delete #ifdef
1330 DEPRECATED_IGNORE_HELPER_CALL code.
1331
56a2fed5
AC
1332 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1333
f69c55b2
MK
13342004-10-31 Mark Kettenis <kettenis@gnu.org>
1335
1336 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1337 (fill_fpregset): Do not compile for 64-bit systems.
1338 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1339 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1340 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1341
d37cca3d
AC
13422004-10-30 Andrew Cagney <cagney@gnu.org>
1343
36b8628e
AC
1344 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1345 (struct mdebug_extra_func_info): Define.
1346 * config/alpha/tm-alpha.h: Delete same.
1347 * config/mips/tm-mips.h: Delete same.
1348 * mdebugread.c: Delete same.
1349 * Makefile.in: Update dependencies.
1350 * mips-mdebug-tdep.c: Include "mdebugread.h".
1351
5b123146
AC
1352 * objfiles.c: Include "mdebugread.h".
1353 * mdebugread.c: Include "mdebugread.h".
1354 (ecoff_relocate_cfi): Delete.
1355 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1356 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1357 * mdebugread.h (ecoff_relocate_efi): New file.
1358 * Makefile.in: Update dependencies.
1359
b9c3a7de
AC
1360 * mips-tdep.c (struct frame_extra_info): Delete.
1361 (temp_proc_desc): Delete.
1362
f92761ec
AC
1363 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1364 MIPS_EFI_SYMBOL_NAME.
1365 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1366 (struct mdebug_extra_func_info): Replace struct
1367 alpha_extra_func_info and alpha_extra_func_info_t.
1368 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1369 MIPS_EFI_SYMBOL_NAME.
1370 (struct mdebug_extra_func_info): Replace struct
1371 alpha_extra_func_info and alpha_extra_func_info_t.
1372 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1373 * mdebugread.c, alpha-mdebug-tdep.c:
1374
0bb57b31
AC
1375 Suggested by Mark Kettenis.
1376 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1377 fields frame_adjust and high_addr.
1378 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1379 (non_heuristic_proc_desc): Delete references.
1380
a5c9623c
AC
1381 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1382 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1383 * mips-tdep.c: Update.
1384
607fc93c
AC
1385 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1386 (MIPS_LAST_EMBED_REGNUM): Add.
1387 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1388 (LAST_EMBED_REGNUM): Delete.
1389 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1390
24e05951
AC
1391 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1392 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1393 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1394 * mips-linux-nat.c: Update.
1395
613e114f
AC
1396 * mips-tdep.h: Add comments on registers.
1397 (MIPS_UNUSED_REGNUM): Define.
1398 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1399 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1400 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1401 * mips-linux-nat.c, remote-mips.c: Update.
1402
d37cca3d
AC
1403 * config/mips/tm-mips.h (t_insn): Delete.
1404 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1405 Replace t_insn with ULONGEST.
1406
ceb41096
MK
14072004-10-30 Mark Kettenis <kettenis@gnu.org>
1408
d1180b0f
MK
1409 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1410 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1411 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1412 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1413 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1414 (mipsnbsd_core_osabi_sniffer): New function.
1415 (mipsnbsd_init_abi): Set regset_from_core_section.
1416 (_initialize_mipsnbsd_tdep): Remove calls to
1417 deprecated_add_core_fns.
1418 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1419 (mipsnbsd_regset_from_core_section): New functions.
1420 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1421 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1422
ceb41096
MK
1423 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1424 Remove optimization for DEPRECATED_FP_REGNUM.
1425
ec4045ea
AC
14262004-10-30 Andrew Cagney <cagney@gnu.org>
1427
cd65c8f6
AC
1428 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1429 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1430 (alpha_setup_arbitrary_frame): Delete.
1431 * mips-tdep.c (setup_arbitrary_frame): Delete.
1432 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1433 (setup_arbitrary_frame): Delete.
1434 * stack.c (parse_frame_specification_1): When specified, call
1435 create_new_frame with two parameters. Delete #ifdef
1436 SETUP_ARBITRARY_FRAME.
1437
95ac2dcf
AC
1438 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1439 (MIPS_INSTLEN): Delete.
1440 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1441 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1442 * remote-mips.c, mips-tdep.c: Update.
1443
1a8da44d
AC
1444 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1445 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1446 * mips-tdep.c (mips_mdebug_frame_cache)
1447 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1448 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1449 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1450 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1451 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1452 (mips_gdbarch_init): Do not append mdebug sniffers.
1453 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1454 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1455 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1456 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1457 * Makefile.in: Update dependencies.
1458
e6bc2e8a
AC
1459 * mips-tdep.h (mips_abi_regsize): Declare.
1460 * mips-tdep.c (mips_abi_regsize): Make non-static.
1461
ec4045ea
AC
1462 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1463 (make_mips16_addr): Delete.
e6bc2e8a 1464
6b16acab
MK
14652004-10-30 Mark Kettenis <kettenis@gnu.org>
1466
1467 * i386-sol2-nat.c: New file.
1468 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1469 i386-sol2-tdep.c.
1470 (i386-sol2-nat.o): Update dependencies.
1471 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1472 i386-sol2-nat.o.
1473
8b622e6a
AC
14742004-10-30 Andrew Cagney <cagney@gnu.org>
1475
1476 Total breakage identified by Joel Brobecker.
1477 * mips-tdep.c (after_prologue): Delete.
1478 (mips_skip_prologue): Use skip_prologue_using_sal.
1479 (heuristic_proc_desc): Delete, unused.
1480
772cf8be
MK
14812004-10-30 Mark Kettenis <kettenis@gnu.org>
1482
1483 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1484 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1485 Cleanup coding style.
1486
9c8fdbfa
AC
14872004-10-30 Andrew Cagney <cagney@gnu.org>
1488
0fe7e7c8
AC
1489 * mips-tdep.h (mips_pc_is_mips16): Declare.
1490 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1491 non-static. Update calls.
1492
1b295c3d
AC
1493 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1494 * command.h (add_setshow_enum_cmd): Declare.
1495 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1496
6bcadd06
AC
1497 * mips-tdep.c (_initialize_mips_tdep): Use
1498 add_setshow_zinteger_cmd.
1499
9c8fdbfa
AC
1500 * mips-tdep.c (mips_eabi_extract_return_value)
1501 (mips_o64_extract_return_value, mips_o64_store_return_value)
1502 (return_value_location, mips_eabi_reg_struct_has_addr)
1503 (mips_eabi_use_struct_convention)
1504 (mips_eabi_store_return_value): Delete.
1505 (mips_eabi_store_return_value): New function.
1506 (mips_eabi_return_value): New function.
1507 (mips_gdbarch_init): For O64 and EABI, delete
1508 extract_return_value, store_return_value, use_struct_convention
1509 and reg_struct_has_addr, add return_value.
1510
1d93fe1a
AC
1511 * mips-tdep.c (read_signed_register): Use
1512 regcache_cooked_read_signed.
1513
303d2914
MK
15142004-10-30 Mark Kettenis <kettenis@gnu.org>
1515
1516 * mipsread.c: Cleanup coding style.
1517 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1518 (mipscoff_symfile_finish): Remove prototypes.
1519
15202004-10-29 Mark Kettenis <kettenis@gnu.org>
1521
1522 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1523 (mips_mdebug_frame_cache, mips16_scan_prologue)
1524 (mips32_scan_prologue, mips_stub_frame_cache)
1525 (heuristic_proc_start, heuristic_proc_desc)
1526 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1527 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1528 (mips_o32_return_value, mips_o64_push_dummy_call)
1529 (mips_step_skips_delay, mips_skip_trampoline_code)
1530 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1531 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1532 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1533 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1534 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1535 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1536 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1537 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1538 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1539 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1540 ZERO_REGNUM.
1541 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1542 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1543 ZERO_REGNUM.
1544 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1545 A0_REGNUM.
1546 * mipsnbsd-nat.c: Include "mips-tdep.h".
1547 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1548 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1549
1c8831c5
AC
15502004-10-29 Andrew Cagney <cagney@gnu.org>
1551
1552 * stack.c (parse_frame_specification_1): New function based on
1553 parse_frame_specification. Add message and selected_frame_p
1554 paramters. Truely always return non-NULL.
1555 (parse_frame_specification): Call parse_frame_specification_1.
1556 (frame_info): Update. Eliminate target_has_stack check.
1557 (select_frame_command): Update.
1558
b04f3ab4
AC
15592004-10-29 Andrew Cagney <cagney@gnu.org>
1560
1561 * frame.h (get_selected_frame): Add message parameter.
1562 * frame.c (get_selected_frame): Add and use message parameter.
1563 * stack.c (current_frame_command, return_command, locals_info)
1564 (catch_info, args_info, up_silently_base, down_silently_base): Use
1565 get_selected_frame with an explicit message.
1566 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1567 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1568 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1569 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1570 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1571 * breakpoint.c: Update.
1572
15732004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1574
1575 * trad-frame.c (trad_frame_get_prev_register): Use
1576 frame_unwind_register instead of frame_register_unwind, do not
1577 recurse the register's location.
1578 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1579 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1580 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1581 * sh-tdep.c (sh_frame_prev_register): Ditto.
1582 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1583 * i386-tdep.c (i386_frame_prev_register): Ditto.
1584 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1585 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1586
7a952542
MK
15872004-10-28 Mark Kettenis <kettenis@jive.nl>
1588
c18c06be
MK
1589 * proc-events.c: Fix several coding-style issues. Consistently
1590 use #ifdef instead of #if defined().
1591 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1592 ARRAY_SIZE.
1593 (_initialize_proc_events): New prototype.
1594
7a952542
MK
1595 * proc-why.c: Fix several coding-style issues.
1596 (proc_prettyfprint_why): Use ARRAY_SIZE.
1597
fcad0fa4
JB
15982004-10-27 Jim Blandy <jimb@redhat.com>
1599
1600 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1601 manner independent of the host byte order.
1602
c163184f
MK
16032004-10-27 Mark Kettenis <kettenis@gnu.org>
1604
1605 * mips-tdep.c (id_delayed): Remove prototype.
1606
9c46b6f0
MK
16072004-10-26 Mark Kettenis <kettenis@gnu.org>
1608
1609 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1610 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1611 to enum with register numbers.
1612 (enum mips_insn_size): New enum.
1613
0d0266c6
AC
16142004-10-26 Andrew Cagney <cagney@gnu.org>
1615
e7d6a6d2
AC
1616 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1617 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1618 (mips_gdbarch_init): Update.
1619 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1620
c5115f39
AC
1621 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1622 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1623 IN_SOLIB_RETURN_TRAMPOLINE.
1624 * mips-tdep.c (mips_dump_tdep): Do not print
1625 IN_SOLIB_RETURN_TRAMPOLINE.
1626 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1627 (mips_gdbarch_init): Update.
1628
0d0266c6
AC
1629 * mips-tdep.h (mips_software_single_step): Move to here ...
1630 * config/mips/tm-mips.h: ... from here.
1631 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1632 (SOFTWARE_SINGLE_STEP): Delete.
1633 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1634
156a53ca
AC
16352004-10-25 Andrew Cagney <cagney@gnu.org>
1636
1637 * NEWS: Add Changes since GDB 6.3 section.
1638
f27cf670
AS
16392004-10-23 Andreas Schwab <schwab@suse.de>
1640
156a53ca
AC
1641 * ada-lang.c (grow_vect): Return the new array instead of
1642 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1643 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1644
121d8485
UW
16452004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1646
1647 * s390-tdep.c (enum pv_boolean): Remove.
1648 (pv_is_array_ref): Remove.
1649 (s390_on_stack): Remove.
1650 (S390_NUM_SPILL_SLOTS): Remove.
1651 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1652 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1653 (s390_store): Track all stores of orginal incoming registers to the
1654 stack constant offsets relative to the CFA, instead of only tracking
1655 stores into specific spill slots.
1656 (s390_load): Likewise.
1657 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1658 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1659 defined as call-saved by the ABI.
1660 (s390_push_dummy_call): Use bottom of dummy call argument save area
1661 as return value, not the top. Do not store to the called function's
1662 register save area.
1663 (s390_unwind_dummy_id): Adapt accordingly.
1664
0a6ddd08
AC
16652004-10-23 Andrew Cagney <cagney@gnu.org>
1666
1667 * objfiles.h (struct objfile): Rename obj_private to
1668 deprecated_obj_private, sym_private to deprecated_sym_private, and
1669 sym_stab_info to deprecated_sym_stab_info.
1670 * gdb-stabs.h: Update.
1671 * elfread.c: Update.
1672 * dbxread.c: Update.
1673 * coffread.c: Update.
1674 * xcoffread.c: Update.
1675 * symfile.c: Update.
1676 * somread.c: Update.
1677 * nlmread.c: Update.
1678 * mdebugread.c: Update.
1679 * hpread.c: Update.
1680 * coffread.c: Update.
1681
abc08782
MK
16822004-10-23 Mark Kettenis <kettenis@gnu.org>
1683
1684 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1685 * configure.host: Add mips64*-*-openbsd*.
1686 * configure.tgt: Add mips64*-*-openbsd*.
1687 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1688 mips64obsd-tdep.c.
1689 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1690 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1691
fc062ac6
JB
16922004-10-21 Joel Brobecker <brobecker@gnat.com>
1693
1694 * symtab.c (symbol_search_name): Minor reformatting.
1695
5bccb4d1
JB
16962004-10-20 Joel Brobecker <brobecker@gnat.com>
1697
1698 * symtab.h: Fix typo in comment.
1699
a738430d
MK
17002004-10-19 Mark Kettenis <kettenis@gnu.org>
1701
1702 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1703 (dwarf_decode_line_header): Likewise.
1704
f2cb65ca
MC
17052004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1706
1707 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1708
09e55376
AC
17092004-10-19 Andrew Cagney <cagney@gnu.org>
1710
1711 GDB 6.3 branch created.
1712 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1713
bc5f45f8
JB
17142004-10-15 Joel Brobecker <brobecker@gnat.com>
1715
1716 * dwarf2read.c (set_cu_language): Set language to Ada for
1717 DW_LANG_Ada83 and DW_LANG_Ada95.
1718
2941da8c
MC
17192004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1720
1721 From Andreas Schwab <schwab@suse.de>:
1722 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1723 for xmalloc and xrealloc.
1724
34a17005
AC
17252004-10-15 Andrew Cagney <cagney@gnu.org>
1726
1727 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1728 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1729 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1730 Update dependencies.
1731
714e53ab
PH
17322004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1733
1734 * ada-lang.c (ada_lookup_symbol): Correct comment.
1735 (ada_evaluate_subexp): Change error message for
1736 OP_FUNCALL case so as not to indicate an internal error.
1737
17382004-10-15 Joel Brobecker <brobecker@gnat.com>
1739
1740 Committed by Paul Hilfinger.
1741 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1742 type sizes in XVE/XVU types, and emit a warning when that happens,
1743 instead of rounding up the size of the resulting type.
1744 Some minor reformatting.
1745 (ada_is_aligner_type): Do not consider a type as an aligner type
1746 if there is a corresponding XVS type as well.
1747 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1748 have several levels of pointer indirection to the array.
1749
17502004-10-15 Jerome Guitton <guitton@gnat.com>
1751
1752 Committed by Paul Hilfinger.
1753 * ada-lang.c (check_size): New function.
1754 (coerce_unspec_val_to_type): call check_size to make sure
1755 that the object size is reasonable.
1756 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1757 Implements the case when we get a reference when we evaluate
1758 the expression of one of the bounds of the slice.
1759 (ada_value_struct_elt): when a packed array field is
1760 a reference, use ada_coerce_ref to dereference it; use
1761 ada_value_ind only if it is a pointer.
1762
29639122
JB
17632004-10-15 Joel Brobecker <brobecker@gnat.com>
1764
1765 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1766 a bit to avoid the necessity of an advance declaration. Remove
1767 declaration.
1768 (set_reg_offset): Move implemenation up.
1769 (mips16_get_imm): Likewise.
1770 (mips16_scan_prologue): Likewise.
1771 (reset_saved_regs): Likewise.
1772 (mips32_scan_prologue): Likewise.
1773
a65bbe44
JB
17742004-10-14 Joel Brobecker <brobecker@gnat.com>
1775
1776 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1777 Remove sp as a parameter, compute it internally instead. Move
1778 prologue scanning limit from heuristic_proc_desc to here.
1779 (mips16_scan_prologue): Likewise.
1780 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1781 by call to mips16_scan_prologue.
1782 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1783 by call to mips32_scan_prologue.
1784 (heuristic_proc_desc): Remove code that's no longer necessary.
1785 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1786 (mips_skip_prologue): Update calls to mips16_scan_prologue
1787 and mips32_scan_prologue.
1788
1c645fec
JB
17892004-10-14 Joel Brobecker <brobecker@gnat.com>
1790
1791 * mips-tdep.c (mips16_scan_prologue): Merge code from
1792 mips16_skip_prologue. Now return the address of the first
1793 instruction past the function prologue.
1794 (mips16_skip_prologue): Remove, no longer necessary.
1795 (mips_skip_prologue): Replace call to mips16_skip_prologue
1796 by call to mips16_scan_prologue.
1797
98b4dd94
JB
17982004-10-14 Joel Brobecker <brobecker@gnat.com>
1799
1800 * mips-tdep.c (mips32_scan_prologue): Merge code from
1801 mips32_skip_prologue. Now return the address of the first
1802 instruction past the function prologue.
1803 (mips32_skip_prologue): Remove. No longer necessary.
1804 (mips16_skip_prologue): Add parameter end_pc instead of
1805 computing it.
1806 (mips_skip_prologue): Compute the upper limit for the
1807 prologue scanning. Update call to mips16_skip_prologue.
1808 Replace call to mips32_skip_prologue by call to
1809 mips32_scan_prologue.
1810
ad4c72d2
MK
18112004-10-14 Mark Kettenis <kettenis@gnu.org>
1812
dfaf8edb
MK
1813 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1814 NetBSD system call stubs that store %rp in the ERP slot of the
1815 stack frame.
1816
3e3a28f1
MK
1817 * source.c: Always define O_BINARY to 0 if not defined already.
1818 (openp): Unconditionally use O_BINARY.
1819
ad4c72d2
MK
1820 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1821 * event-top.c (gdb_readline2): Likewise.
1822
52bd1401
OF
18232004-10-14 Orjan Friberg <orjanf@axis.com>
1824
1825 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1826 deprecated_add_core_fns which was removed by mistake.
1827
e0e25c6c
KB
18282004-10-13 Kevin Buettner <kevinb@redhat.com>
1829
1830 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1831 references to deprecated_registers[] with equivalent code.
1832
9f335945
KB
18332004-10-13 Kevin Buettner <kevinb@redhat.com>
1834
1835 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1836 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1837 instead of explicit test and print statement.
1838
06c2338d
MK
18392004-10-12 Mark Kettenis <kettenis@gnu.org>
1840
1b9445c2
MK
1841 * sparc-nat.c: Include "inf-ptrace.h".
1842 (sparc_target): New function.
1843 * sparc-nat.h: Update copyright year.
1844 (sparc_target): New prototype.
1845 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1846 (_initialize_sparcnbsd_nat): Construct and add target vector.
1847 * sparc64nbsd-nat.c: Include "target.h".
1848 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1849 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1850 Update dependencies.
1851 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1852 inftarg.o, add inf-ptrace.o.
1853 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1854 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1855 (NAT_FILE): Set to nm-bsd.h.
1856 (LOADLIBES): New variable.
1857 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1858 infarg.o, add inf-ptrace.o.
1859 * config/sparc/nm-nbsdaout.h: Remove file.
1860 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1861 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1862 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1863
06c2338d
MK
1864 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1865 "fopen-same.h". Update comment.
1866
3303a276
MK
18672004-10-11 Mark Kettenis <kettenis@gnu.org>
1868
1869 * i386gnu-nat.c: Include "gdb_string.h".
1870 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1871 registers when the floating-point state isn't initialized.
1872 * Makefile.in (i386gnu-nat.o): Update dependencies.
1873
04c663e3
DA
18742004-10-11 David Anderson <davea@sgi.com>
1875
1876 * regcache.c (regcache_raw_read): Comment was missing "to".
1877 Extraneous ' removed.
1878 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1879 comment now describes use.
1880
a5f6c8f5
OF
18812004-10-11 Orjan Friberg <orjanf@axis.com>
1882
1883 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1884 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1885 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1886 (cris_sigtramp_frame_sniffer): New functions.
1887 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1888 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1889 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1890 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1891 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1892 command.
1893 (cris_version_update): Remove, replace with ...
1894 (set_cris_version): New function.
1895 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1896 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1897 (_initialize_cris_tdep): Remove CRIS mode command.
1898 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1899 cris-fpless-backtrace command.
1900 (cris_scan_prologue): Fix prologue scanning limit.
1901 (cris_register_type): Update to reflect actual registers.
1902 (cris_register_bytes_ok) Remove.
1903 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1904 Remove set_gdbarch_deprecated_register_size,
1905 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1906
77109804
AC
19072004-10-10 Andrew Cagney <cagney@gnu.org>
1908
1909 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1910 comment.
1911
25652d4f
JB
19122004-10-10 Joel Brobecker <brobecker@gnat.com>
1913
1914 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1915
1e05a7bf
JB
19162004-10-10 Joel Brobecker <brobecker@gnat.com>
1917
1918 * mips-tdep.c (mips16_scan_prologue): Renames
1919 mips16_heuristic_proc_desc. Update comment.
1920 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1921 (heuristic_proc_desc): Update calls to the 2 functions above.
1922
c68a4142
JB
19232004-10-10 Joel Brobecker <brobecker@gnat.com>
1924
1925 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1926 Update comments. Also immediately return empty cache when the start
1927 address of our function could not be found.
1928 (mips_insn32_frame_cache): Likewise.
1929
0fce0821
JB
19302004-10-10 Joel Brobecker <brobecker@gnat.com>
1931
1932 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1933 (mips_insn16_frame_cache): Pass frame cache in call to
1934 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1935 Remove code that became redundant as a consequence.
1936 (mips32_heuristic_proc_desc): No longer compute a fake
1937 procedure descriptor. Compute the full frame cache instead.
1938 Some minor comment reformatting.
1939
b672553e
JB
19402004-10-10 Jim Blandy <jimb@redhat.com>
1941
1942 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1943 reader, tracing bytecode stuff): Remove self.
1944
9cc52bde
MK
19452004-10-10 Mark Kettenis <kettenis@gnu.org>
1946
cc9784b6
MK
1947 * sparc64-linux-tdep.c: Update copyright year. Don't include
1948 "solib-svr4.h".
1949 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1950 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1951 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1952
ee8aef23
MK
1953 * sparc-linux-tdep.c: Update copyright year.
1954 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1955 to struct frame_info *. Use safe_frame_unwind_memory instead of
1956 deprecated_read_memory_nobpt.
1957 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1958 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1959 changed signature of sparc_linux_sigtramp_start.
1960 (sparc32_linux_pc_in_sigtramp): Remove function.
1961 (sparc32_linux_sigtramp_p): New function.
1962 (sparc32_linux_sigtramp_frame_sniffer): Use
1963 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1964
bc73f8cc
MK
1965 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1966 Remove function.
1967 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1968
a2249542
MK
1969 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1970 (decode_packed_array_type, value_subscript_packed)
1971 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1972 argument in call to lim_warning.
1973
9cc52bde
MK
1974 * configure.in: Really disable the TUI if an enhanced curses
1975 library isn't found.
1976 * configure: Regenerate.
1977
151fc45b
MK
19782004-10-09 Mark Kettenis <kettenis@gnu.org>
1979
1980 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1981 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1982 * config/i386/nm-nbsdaout.h: Remove file.
1983 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1984 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1985 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1986 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1987 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1988 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1989 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1990 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1991 (ldd, ld_un, ld_2): Remove defines.
1992 * config/i386/nm-obsd.h: Likewise.
1993
375c0479
PH
19942004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1995
1996 * ada-lex.l: Remove useless rule whose right-context clause
1997 causes unreferenced static function warning for yyrealloc.
1998 (ada_flex_use): Remove the artificial reference to yyrealloc.
1999
c8e73a31
AC
20002004-10-08 Andrew Cagney <cagney@gnu.org>
2001
2002 * target.h (struct target_ops): Rename to_xfer_memory to
2003 deprecated_xfer_memory.
2004 * target.c: Update.
2005 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2006 * wince.c: Update.
2007 * win32-nat.c: Update.
2008 * v850ice.c: Update.
2009 * uw-thread.c: Update.
2010 * thread-db.c: Update.
2011 * sol-thread.c: Update.
2012 * remote.c: Update.
2013 * remote-vx.c: Update.
2014 * remote-st.c: Update.
2015 * remote-sim.c: Update.
2016 * remote-sds.c: Update.
2017 * remote-rdp.c: Update.
2018 * remote-rdi.c: Update.
2019 * remote-mips.c: Update.
2020 * remote-m32r-sdi.c: Update.
2021 * remote-e7000.c: Update.
2022 * procfs.c: Update.
2023 * ppc-bdm.c: Update.
2024 * nto-procfs.c: Update.
2025 * monitor.c: Update.
2026 * linux-nat.c: Update.
2027 * inftarg.c: Update.
2028 * hpux-thread.c: Update.
2029 * go32-nat.c: Update.
2030 * gnu-nat.c: Update.
2031 * exec.c: Update.
2032 * corelow.c: Update.
2033 * bsd-kvm.c: Update.
2034 * aix-thread.c: Update.
2035
aa869812
AC
20362004-10-08 Andrew Cagney <cagney@gnu.org>
2037
2038 * target.c (debug_target): Move to near start of file.
2039 (target_stopped_data_address_p): Re-org logic, add casts.
2040
8dcef9cf
MK
20412004-10-02 Mark Kettenis <kettenis@gnu.org>
2042
2043 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2044 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2045 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2046 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2047 New defines.
2048
4aa7a7f5
JJ
20492004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2050
2051 * target.h (to_stopped_data_address): Change prototype to
2052 take a CORE_ADDR pointer and return an int.
2053 * target.c (update_current_target): Change to_stopped_data_address
2054 to match new prototype.
2055 (debug_to_stopped_data_address): Change appropriately.
2056 * breakpoint.c (bpstat_stop_status): Change call to
2057 target_stopped_data_address to use new prototype.
2058 * frv-tdep.c (frv_have_stopped_data_address): New function.
2059 (frv_stopped_data_address): Change to new prototype and
2060 functionality.
2061 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2062 prototype and functionality.
2063 (ia64_stopped_by_watchpoint): New function.
2064 * i386-nat.c (i386_stopped_data_address): Change to new
2065 prototype and functionality.
2066 (i386_stopped_by_watchpoint): New function.
2067 * remote.c (remote_stopped_data_address): Change to new prototype
2068 and functionality.
2069 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2070 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2071 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2072 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2073 new i386_stopped_by_watchpoint function.
2074 (i386_stopped_by_watchpoint): New prototype.
2075 (i386_stoppped_data_address): Change to new prototype.
2076 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2077 new ia64_stopped_by_watchpoint function.
2078 (ia64_stopped_by_watchpoint): New prototype.
2079 (ia64_stopped_data_address): Ditto.
2080
61ee279c
PH
20812004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2082
2083 * ada-typeprint.c (ada_print_type): Use int_string for printing
2084 modulus of modular type.
2085 * ada-lang.h (ada_modulus): Change return type to unsigned.
2086 * ada-lang.c (ada_language_arch_info): Correct type of
2087 string_char_type.
2088 (ada_modulus): Return unsigned result.
2089 (ada_lookup_symbol): Remove user disambiguation and modify comment
2090 accordingly.
2091
20922004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2093
2094 Committed by Paul Hilfinger.
2095 * ada-lang.c (decode_packed_array): On big-endian targets,
2096 left-justify the value if it comes with a modular type.
2097
20982004-10-08 Joel Brobecker <brobecker@gnat.com>
2099
2100 Committed by Paul Hilfinger.
2101 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2102 (is_name_suffix): Add support for "___JM" suffixes.
2103 (ada_check_typedef): Renames ada_completed_type.
2104 Update all users of CHECK_TYPEDEF, check_typedef, and
2105 ada_complete_type to call ada_check_typedef.
2106 * ada-typeprint.c: Likewise.
2107 * ada-valprint.c: Likewise.
2108
b6c25a56
CV
21092004-10-08 Corinna Vinschen <vinschen@redhat.com>
2110
2111 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2112
83ca6a46
NR
21132004-10-08 Nick Roberts <nickrob@snap.net.nz>
2114
2115 * MAINTAINERS: Update e-mail address.
2116
1fd8cd20
DJ
21172004-10-07 Daniel Jacobowitz <dan@debian.org>
2118
2119 From Maciej W. Rozycki <macro@mips.com>:
2120 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2121 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2122
cea15572
KI
21232004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2124
2125 * m32r-tdep.c (decode_prologue): Support functions written
2126 in assembler language. Recognize trap instructions as the
2127 end of prologue.
2128 (m32r_frame_unwind_cache): Ditto.
2129 (m32r_skip_prologue): Extend search limit. Quit analyzing
2130 prologue if pc's location is not readable.
2131
23485554
PH
21322004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2133
2134 * Makefile.in (.l.c): Do conversions of names of alloc and free
2135 functions that are done for .y.c files, plus special one
2136 for yy_flex_realloc. Also, correct missing-file tests here.
2137 * ada-lex.l (malloc, free): Remove macros.
2138 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2139 xrealloc.
2140 (ada_flex_use): Dummy definition to remove warnings about unused
2141 functions.
2142 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2143 to suppress warning.
2144
c0409442
CV
21452004-10-06 Corinna Vinschen <vinschen@redhat.com>
2146
2147 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2148 RETURN_VALUE.
2149 (sh_return_value_fpu): Ditto for CPUs with FPU.
2150 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2151 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2152 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2153 RETURN_VALUE functions.
2154
9bed62d7
CV
21552004-10-06 Corinna Vinschen <vinschen@redhat.com>
2156
2157 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2158 (sh_pseudo_register_write): Ditto.
2159
03131d99
CV
21602004-10-06 Corinna Vinschen <vinschen@redhat.com>
2161
2162 * sh-tdep.c (IS_MACL_STS): New define.
2163 (IS_MOVI20): Ditto.
2164 (IS_MACL_LDS): Ditto.
2165 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2166 instructions in prologue.
2167 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2168 instructions in epilogue.
2169
da962468
CV
21702004-10-06 Corinna Vinschen <vinschen@redhat.com>
2171
2172 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2173 (sh_sh_register_name): Add eight empty register names.
2174 (sh_sh3_register_name): Ditto.
2175 (sh_sh3e_register_name): Ditto.
2176 (sh_sh2e_register_name): Ditto.
2177 (sh_sh2a_register_name): New function, defining SH2A register set.
2178 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2179 in nofpu case.
2180 (sh_sh_dsp_register_name): Add eight empty register names.
2181 (sh_sh3_dsp_register_name): Ditto.
2182 (sh_sh4_register_name): Ditto.
2183 (sh_sh4_nofpu_register_name): Ditto.
2184 (sh_sh4al_dsp_register_name): Ditto.
2185 (sh2a_show_regs): New function.
2186 (sh2a_nofpu_show_regs): New function.
2187 (sh_sh2a_register_type): New function.
2188 (do_bank_register_info): New function.
2189 (sh_print_pseudo_register): Call do_bank_register_info.
2190 Call sh_print_pseudo_register for valid "bank" register.
2191 (sh_sh2a_register_sim_regno): New function.
2192 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2193 Increment pseudo register count by one for all sh variants with
2194 pseudo registers to accomodate pseudo bank register.
2195 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2196 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2197 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2198 Increment pseudo register numbers.
2199
1326e61b
CV
22002004-10-06 Corinna Vinschen <vinschen@redhat.com>
2201
2202 * dwarf2read.c (read_subroutine_type): Call make_function_type
2203 instead of lookup_function_type.
2204
146c42e3
JB
22052004-10-05 Jim Blandy <jimb@redhat.com>
2206
2207 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2208 (Previous change missed some uses.)
2209
1df84f13
AC
22102004-10-05 Andrew Cagney <cagney@gnu.org>
2211
2212 * target.h (deprecated_child_ops): Rename child_ops.
2213 * wince.c: Update copyright. Rename child_ops.
2214 * win32-nat.c: Rename child_ops.
2215 * target.c: Rename child_ops.
2216 * rs6000-nat.c: Rename child_ops.
2217 * linux-nat.c: Rename child_ops.
2218 * infttrace.c: Rename child_ops.
2219 * inftarg.c: Rename child_ops.
2220 * infptrace.c: Rename child_ops.
2221 * hppah-nat.c: Update copyright. Rename child_ops.
2222 * hpux-thread.c: Update copyright. Rename child_ops.
2223
21e3b9b9
DJ
22242004-10-05 Daniel Jacobowitz <dan@debian.org>
2225
2226 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2227
de83afe7
AC
22282004-10-05 Andrew Cagney <cagney@gnu.org>
2229
2230 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2231
10b3939b
DJ
22322004-10-05 Daniel Jacobowitz <dan@debian.org>
2233
2234 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2235 (die_ref_table): Remove.
2236 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2237 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2238 the usage of this type.
2239 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2240 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2241 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2242 (dwarf2_create_include_psymtab): Update comment.
2243 (find_partial_die): Remove third argument. Remove unreachable call
2244 to error ().
2245 (dwarf2_find_containing_comp_unit): Update comments. Change one
2246 assertion to an error. Remove an unreachable error.
2247 (dwarf2_find_comp_unit): Update comments.
2248 (type_at_offset): Remove dead code.
2249 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2250 (store_in_ref_table): Add CU argument.
2251 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2252 inter-compilation-unit references.
2253 (load_full_comp_unit, process_full_comp_unit): New functions, based
2254 on psymtab_to_symtab_1.
2255 (psymtab_to_symtab_1): Use them.
2256 (dwarf2_add_dependence): New function.
2257 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2258 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2259 (partial_die_parent_scope, guess_structure_name): Update for changes
2260 to find_partial_die.
2261 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2262 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2263 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2264 (read_die_and_children): Update call to store_in_ref_table.
2265 (do_free_die_list_cleanup): Remove.
2266 (fixup_partial_die): Update for changes to find_partial_die.
2267 (read_full_die): Handle queueing absolute references.
2268 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2269 (dwarf2_attr, die_specification, die_type)
2270 (die_containing_type, dwarf2_extension): Update calls to
2271 follow_die_ref.
2272 (dump_die): Update DW_FORM_ref* handling.
2273 (dwarf2_get_ref_die_offset): Likewise.
2274 (free_one_comp_unit): Release the dies list.
2275 (dwarf2_mark_helper): New function.
2276 (dwarf2_mark): Use it.
2277
998bdd68
MK
22782004-10-05 Mark Kettenis <kettenis@jive.nl>
2279
2280 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2281 when writing to memory.
2282
14588880
KI
22832004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2284
2285 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2286 (m32r_extract_struct_value_address): Delete function.
2287 (m32r_return_value): New function.
2288 (m32r_gdbarch_init): Instead of store_return_value,
2289 extract_return_value, deprecated_extract_struct_value_address
2290 and deprecated_use_struct_convention, set return_value.
2291
dd5e6932
DJ
22922004-10-03 Daniel Jacobowitz <dan@debian.org>
2293
2294 * dwarf2read.c (read_subrange_type): Add comment for variable
2295 sized arrays.
2296
7dc1ef8d
PH
22972004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2298
2299 * Makefile.in (.l.c): Modify rule for compatibility with recent
2300 versions of flex, and remove most command-line options.
2301 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2302 options.
2303
1f8173e6
PH
23042004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2305
2306 Turn on initial Ada support (mainly expression evaluation).
2307
2308 * Makefile.in (SFILES): Remove ada-tasks.c.
2309 (HFILES_NO_SRCDIR): Add ada-lang.h.
2310 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2311 (YYOBJ): Add ada-exp.o.
2312 (rule .l.c): Generalize to not mention ada.
2313 * symtab.c: Include ada-lang.h.
2314 (symbol_natural_name, symbol_demangled_name)
2315 (symbol_search_name): Add Ada case.
2316
cb85a953
AC
23172004-10-01 Andrew Cagney <cagney@gnu.org>
2318
3f3db248
AC
2319 * Makefile.in (COMMON_OBS): Add inf-child.o.
2320 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2321 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2322 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2323 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2324 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2325 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2326 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2327 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2328 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2329 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2330 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2331 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2332 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2333
cb85a953
AC
2334 * target.c (xfer_using_stratum): Change return type to LONGEST.
2335 On each iteration offset, readbuf and writebuf.
2336 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2337 partial_length, and read/modify/write predicate, update comments.
2338 Pass buffer.word to ptrace write.
2339
963a6417
PH
23402004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2341
2342 * symfile.c (init_filename_language_table): Add extensions for
2343 Ada.
2344 * defs.h (enum language): Add language_ada.
2345 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2346 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2347 (add_symbols_from_enclosing_procs): Make a no-op for now.
2348 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2349 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2350 (find_line_in_linetable, find_next_line_in_linetable)
2351 (read_all_symtabs, is_plausible_func_for_line)
2352 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2353 (is_runtime_sym_defined, check_size): Remove declaration.
2354 (function_name_from_pc, ada_translate_error_message)
2355 (ada_lookup_minimal_symbol): Remove definition.
2356 (ada_add_block_symbols): Remove useless label.
2357 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2358 useless declaration.
2359 (ada_is_exception_sym): Likewise.
2360
9b32d526
KI
23612004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2362
2363 Add m32r-linux support.
2364 * configure.tgt: Add m32r*-*-linux*.
2365 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2366 and m32r-linux-tdep.c.
2367 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2368 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2369 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2370 m32r-linux-tdep.c.
2371 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2372 config/m32r/linux.mh, config/m32r/linux.mt,
2373 config/m32r/nm-linux.h: New files.
2374
2de118d3
JB
23752004-09-30 Joel Brobecker <brobecker@gnat.com>
2376
2377 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2378 (mips32_fetch_instruction): Remove, unused.
2379
a9fe69d1
JB
23802004-09-30 Joel Brobecker <brobecker@gnat.com>
2381
2382 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2383 conditions that will always be true.
2384
bc8ffc12
MK
23852004-09-30 Mark Kettenis <kettenis@gnu.org>
2386
ba0cd111
MK
2387 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2388 (vaxbsd_fetch_inferior_registers): Rename from
2389 fetch_inferior_registers. Make static.
2390 (vaxbsd_store_inferior_registers): Rename from
2391 store_inferior_registers. Make static.
2392 (_initialize_vaxbsd_nat): Construct and add target vector.
2393 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2394 inftarg.o. Add inf-child.o and inf-ptrace.o.
2395 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2396 inftarg.o. Add inf-child.o and inf-ptrace.o.
2397 (NAT_FILE): Remove.
2398 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2399 inftarg.o. Add inf-child.o and inf-ptrace.o.
2400 (NAT_FILE): Remove.
2401 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2402
bc8ffc12
MK
2403 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2404 (m88kbsd_fetch_inferior_registers): Rename from
2405 fetch_inferior_registers. Make static.
2406 (m88kbsd_store_inferior_registers): Rename from
2407 store_inferior_registers. Make static.
2408 (_initialize_m88kbsd_nat): New prototype and function.
2409 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2410 inftarg.o. Add inf-child.o and inf-ptrace.o.
2411 (NAT_FILE): Remove.
2412 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2413
27394598
AC
24142004-09-30 Andrew Cagney <cagney@gnu.org>
2415
2416 * target.c (target_xfer_partial): New function.
2417 (target_read_memory_partial, target_write_memory_partial)
2418 (default_xfer_partial, target_read_partial, target_write_partial)
2419 (xfer_using_stratum): Use.
2420 (debug_to_xfer_partial): Delete function.
2421 (setup_target_debug): Do not override to_xfer_partial.
2422
74a4fe32
MK
24232004-09-30 Mark Kettenis <kettenis@chello.nl>
2424
2425 * fork-child.c: Update copyright year. Fix coding style.
2426
982526a1
MK
24272004-09-29 Mark Kettenis <kettenis@gnu.org>
2428
2429 * defs.h (msavestring, mstrsave): Remove prototypes.
2430 * utils.c (msavestring, mstrsave): Remove functions.
2431 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2432 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2433 of mstrsave.
2434 * source.c (find_and_open_source): Use xstrdup instead of
2435 mstrsave.
2436
b8eb5af0
AC
24372004-09-30 Andrew Cagney <cagney@gnu.org>
2438
0779438d
AC
2439 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2440 (inf_ptrace_xfer_memory): Delete.
2441 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2442 (target_read_memory, target_write_memory): Use xfer_using_stratum
2443 when target_xfer_partial_p.
2444 (debug_target): Move to start of file.
2445 (target_read_memory_partial, target_write_memory_partial): Use
2446 to_xfer_partial when target_xfer_partial_p.
2447
f929a579
AC
2448 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2449 inf_ptrace_xfer_memory with equivalent code.
2450 * inftarg.c (child_xfer_partial): When performing a write, pass
2451 writebuf to child_xfer_memory.
2452
b8eb5af0
AC
2453 * target.c (target_read_string): Use target_read_memory instead of
2454 target_xfer_memory.
2455
ee21b650
AC
24562004-09-29 Andrew Cagney <cagney@gnu.org>
2457
d3e05d0d
AC
2458 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2459 the address of status.
2460
ee21b650
AC
2461 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2462 (kill_inferior): Inline ptrace_wait call.
2463 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2464 * inftarg.c (child_wait): Inline ptrace_wait call.
2465
a182eed6
AC
2466 * target.h (struct target_ops): Delete field to_post_wait.
2467 (target_post_wait): Delete macro.
2468 (child_post_wait): Delete declaration.
2469 * target.c (update_current_target, update_current_target)
2470 (debug_to_post_wait, setup_target_debug): Delete functions and
2471 references.
2472 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2473 * inftarg.c (child_post_wait): Delete.
2474 (init_child_ops): Do not set to_post_wait.
2475 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2476 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2477 * inf-child.c (inf_child_post_wait): Delete.
2478 (inf_child_target): Do not set to_post_wait.
2479 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2480 (inf_ptrace_target): Do not set to_post_wait.
2481
ba0c540b
AC
2482 * wince.c (child_ops): Delete.
2483 * win32-nat.c (child_ops): Delete.
2484
81977402
AC
2485 * inftarg.c (inftarg_set_find_memory_regions)
2486 (inftarg_set_make_corefile_notes): Delete functions.
2487 (_initialize_linux_nat): Inline calls.
2488
5ac10fd1
AC
2489 * target.h (child_ops): Declare.
2490 * inftarg.c (child_ops): Move from here ...
2491 * target.c (child_ops): ... to here.
2492 * wince.c (child_ops): Delete extern declaration.
2493 * win32-nat.c (child_ops): Delete extern declaration.
2494 * linux-nat.c (child_ops): Delete extern declaration.
2495 * hpux-thread.c (child_ops): Delete extern declaration.
2496
663408c2 24972004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2498
2499 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2500
0dad8a66
MK
25012004-09-28 Mark Kettenis <kettenis@gnu.org>
2502
2503 * configure.in: Only set host_makefile_frag when building a native
2504 debugger.
2505 * configure: Regenerate.
e8d74ed3
MK
2506
2507 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2508 for OpenBSD ELF.
2509
dba24537
AC
25102004-09-28 Andrew Cagney <cagney@gnu.org>
2511
e979516b
AC
2512 Problem identified by Paul Hilfinger.
2513 * Makefile.in (ada_lex_c): Define.
2514 (ada-lex.o): Delete rule.
2515
dba24537
AC
2516 * linux-proc.c: Delete file.
2517 * Makefile.in: Update.
2518 * config/sparc/linux64.mh (NATDEPFILES):
2519 * config/sparc/linux.mh (NATDEPFILES): Update.
2520 * config/s390/s390.mh (NATDEPFILES): Update.
2521 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2522 * config/powerpc/linux.mh (NATDEPFILES): Update.
2523 * config/pa/linux.mh (NATDEPFILES): Update.
2524 * config/mips/linux.mh (NATDEPFILES): Update.
2525 * config/m68k/linux.mh (NATDEPFILES): Update.
2526 * config/ia64/linux.mh (NATDEPFILES): Update.
2527 * config/i386/linux64.mh (NATDEPFILES): Update.
2528 * config/i386/linux.mh (NATDEPFILES): Update.
2529 * config/arm/linux.mh (NATDEPFILES): Update.
2530 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2531 * linux-nat.c: Update copyright. Include <sys/param.h>,
2532 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2533 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2534 (O_LARGEFILE): Possibly define.
2535 (_initialize_linux_nat, linux_proc_pending_signals)
2536 (add_line_to_sigset, linux_proc_xfer_memory)
2537 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2538 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2539 (struct linux_corefile_thread_data)
2540 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2541 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2542
d6b0e80f
AC
25432004-09-16 Andrew Cagney <cagney@gnu.org>
2544
2545 * lin-lwp.c: Delete file.
2546 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2547 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2548 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2549 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2550 (linux_nat_attach, detach_callback, linux_nat_detach)
2551 (resume_callback, resume_clear_callback, linux_nat_resume)
2552 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2553 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2554 (status_callback, running_callback, count_events_callback)
2555 (select_singlestep_lwp_callback, select_event_lwp_callback)
2556 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2557 (child_wait, stop_and_resume_callback, linux_nat_wait)
2558 (kill_callback, kill_wait_callback, linux_nat_kill)
2559 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2560 (linux_nat_xfer_memory, linux_nat_thread_alive)
2561 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2562 (_initialize_linux_nat): New functions.
2563 * Makefile.in: Update all dependencies.
2564 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2565 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2566 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2567 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2568 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2569 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2570 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2571 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2572 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2573 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2574 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2575 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2576 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2577
5a174d79
MK
25782004-09-27 Mark Kettenis <kettenis@gnu.org>
2579
2f604c28
MK
2580 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2581 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2582
5a174d79
MK
2583 * configure.in: Don't comment out NATDEPFILES in the generated
2584 Makefile if NAT_FILE is unset.
2585 * configure: Regenerate.
2586
b2ed1746
AC
25872004-09-27 Andrew Cagney <cagney@gnu.org>
2588
44cbf7b5
AC
2589 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2590 (insert_step_resume_breakpoint): Delete.
2591 (insert_step_resume_breakpoint_at_frame): New function.
2592 (insert_step_resume_breakpoint_at_sal): New function.
2593 (handle_inferior_event, step_into_function)
2594 (insert_step_resume_breakpoint): Simplify by using same.
2595
b2ed1746
AC
2596 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2597
3691b3be
MK
25982004-09-26 Mark Kettenis <kettenis@gnu.org>
2599
36f391e8
MK
2600 * fbsd-proc.c: Remove file.
2601 * Makefile.in (fbsd-proc.o): Remove dependency.
2602
771e236c
MK
2603 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2604 code together.
2605
3691b3be
MK
2606 * config/i386/nm-fbsd64.h: Remove file.
2607 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2608
6a5c78a3
MK
26092004-09-26 Mark Kettenis <kettenis@gnu.org>
2610
2611 * amd64-nat.h: Update copyright year.
2612 (amd64bsd_target): New prototype.
2613 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2614 (amd64bsd_target): New function.
2615 (amd64bsd_fetch_inferior_registers): Rename from
2616 fetch_inferior_registers. Make static.
2617 (amd64bsd_store_inferior_registers): Rename from
2618 store_inferior_registers. Make static.
2619 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2620 (_initialize_amd64fbsd_nat): Construct and add target vector.
2621 * amd64nbsd-nat.o: Include "target.h".
2622 (_initialize_amd64nbsd_nat): Construct and add target vector.
2623 * amd64obsd-nat.c: Include "target.h".
2624 (_initialize_amd64obsd_nat): Construct and add target vector.
2625 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2626 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2627 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2628 fbsd-nat.o.
2629 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2630 Remove infptrace.o and inftarg.o. Add inf-child.o and
2631 inf-ptrace.o.
2632 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2633 (amd64obsd-nat.o): Update dependencies.
2634
27acbe61
MK
26352004-09-25 Mark Kettenis <kettenis@gnu.org>
2636
509a5e7d
MK
2637 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2638 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2639 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2640 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2641 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2642
6e1e94ea
MK
2643 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2644 Inline attach call.
2645 (inf_ptrace_detach): Inline detach call.
2646
8b9cf735
MK
2647 * configure.in: Check for waddstr instead of mvwaddstr when
2648 searching for curses library. Check for wborder.
2649 * configure, config.in: Regenerate.
2650 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2651 available.
2652
27acbe61
MK
2653 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2654
b96ec7ac
AC
26552004-09-24 Robert Picco <Robert.Picco@hp.com>
2656
2657 Committed by Andrew Cagney.
2658 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2659 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2660 configuration.
2661 (fetch_register_using_p): Implement 'p' packet. Based on code by
2662 Fernando Nasser.
2663 (remote_fetch_registers): Call fetch_register_using_p.
2664 (init_all_packet_configs, show_remote_cmd)
2665 (_initialize_remote): Add p-packet.
2666
62ece330
MK
26672004-09-24 Mark Kettenis <kettenis@gnu.org>
2668
2669 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2670 instead of call_ptrace. Call wait directly instead of
2671 ptrace_wait.
2672 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2673 (inf_ptrace_wait): Inline ptrace_wait call.
2674
00937274
PH
26752004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2676
2677 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2678 rolled back instead.
2679
3f2c7a45
PH
26802004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2681
2682 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2683 the new argument order.
2684
b6fcb393
CV
26852004-09-23 Corinna Vinschen <vinschen@redhat.com>
2686
2687 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2688 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2689 (struct gdbarch_tdep): Remove.
2690 (struct xstormy16_frame_cache): New frame cache structure.
2691 (xstormy16_register_byte, xstormy16_register_raw_size)
2692 (xstormy16_reg_virtual_type, xstormy16_register_type)
2693 (xstormy16_push_arguments, xstormy16_push_return_address)
2694 (xstormy16_pop_frame, xstormy16_store_struct_return)
2695 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2696 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2697 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2698 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2699 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2700 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2701 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2702 (xstormy16_extract_return_value, xstormy16_store_return_value):
2703 Regcachify. Drop useless struct convention handling.
2704 (xstormy16_register_type, xstormy16_return_value)
2705 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2706 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2707 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2708 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2709 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2710 (xstormy16_unwind_dummy_id) : New functions.
2711 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2712 of xstormy16_scan_prologue.
2713 (xstormy16_frame_unwind): New frame_unwind structure.
2714 (xstormy16_frame_base): New frame_base structure.
2715 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2716 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2717
1285b746
MK
27182004-09-22 Mark Kettenis <kettenis@gnu.org>
2719
2720 * language.c (language_gdbarch_post_init): Fix off-by one error.
2721
1c379e20
DJ
27222004-09-21 Daniel Jacobowitz <dan@debian.org>
2723
2724 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2725 (struct dwarf2_offset_and_type): New.
2726 (set_die_type, reset_die_and_siblings_types, get_die_type)
2727 (offset_and_type_hash, offset_and_type_eq): New functions.
2728 (read_structure_type, read_enumeration_type, read_array_type)
2729 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2730 (read_tag_reference_type, read_tag_const_type)
2731 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2732 (read_typedef, read_base_type, read_subrange_type): Use
2733 set_die_type.
2734
ae038cb0
DJ
27352004-09-20 Daniel Jacobowitz <dan@debian.org>
2736
2737 * Makefile.in (dwarf2read.o): Update dependencies.
2738 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2739 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2740 and read_in_chain.
2741 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2742 mark, and has_form_ref_addr.
2743 (struct dwarf2_per_cu_data): New.
2744 (dwarf2_max_cache_age): New.
2745 (dwarf2_build_psymtabs_hard): Free cached compilation units
2746 after loading. Create and manage the list of compilation units.
2747 Remove unnecessary NULL initialization. Fix indentation.
2748 (psymtab_to_symtab_1): Initialize all of CU.
2749 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2750 (find_partial_die): Use dwarf2_find_containing_comp_unit
2751 and load_comp_unit.
2752 (free_stack_comp_unit): Update comments. Clear the per-cu
2753 pointer. Handle aging.
2754 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2755 (age_cached_comp_units, free_one_cached_comp_unit)
2756 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2757 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2758 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2759 (show_dwarf2_cmd): New.
2760 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2761 and "maint show dwarf2 max-cache-age".
2762 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2763 externs.
2764 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2765 global.
2766
987504bb
JJ
27672004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2768
2769 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2770 and dwarf2_cu struct pointer as arguments. Change function to use
2771 obstack if provided and use dwarf2_cu to determine language-specific
2772 separator.
2773 (partial_die_parent_scope): Change comment to include java. Use
2774 new version of typename_concat instead of obconcat.
2775 (partial_die_full_name): Use typename_concat.
2776 (read_namespace): Ditto.
2777 (read_enumeration_type): Use typename_concat instead of obconcat.
2778 (new_symbol): Ditto.
2779 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2780 (guess_structure_name): Ditto.
2781 (read_subroutine_type): Ditto.
2782 (read_structure_type): Ditto.
2783 (is_vtable_name): Add Java support.
2784 (determine_class_name): Switch to new typename_concat call.
2785 (determine_prefix): Switch to new typename_concat call.
2786 * jv-exp.y (FuncStart): New pattern.
2787 (MethodInvocation): Add support for simple function calls. Change
2788 warning message for other forms of inferior call currently not
2789 supported.
2790 * valarith.c (value_subscript): Treat an array with upper-bound
2791 of -1 as unknown size.
2792
d9c8471e
DJ
27932004-09-20 Daniel Jacobowitz <dan@debian.org>
2794
2795 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2796 (lookup_partial_symtab): Use symtab_to_fullname.
2797
d73f140a
JB
27982004-09-19 Jim Blandy <jimb@redhat.com>
2799
2800 * minsyms.c (lookup_minimal_symbol): Doc fix.
2801
adbef1f0
AC
28022004-09-20 Andrew Cagney <cagney@gnu.org>
2803
2804 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2805 CHILD_RESUME.
2806 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2807 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2808 KILL_INFERIOR.
2809 * infptrace.c: Update.
2810
d092d1a2
DJ
28112004-09-19 Daniel Jacobowitz <dan@debian.org>
2812
2813 * symtab.c (output_source_filename): Mark first argument as const.
2814 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2815 for "info sources" output.
2816
86d9e1d7
MK
28172004-09-20 Mark Kettenis <kettenis@gnu.org>
2818
2819 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2820 <machine/vmparam.h>.
2821 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2822 (register_u_addr): Remove prototype.
2823
9a6c8ef4
MK
28242004-09-19 Mark Kettenis <kettenis@gnu.org>
2825
9692934b
MK
2826 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2827 (i386bsd_fetch_inferior_registers): Rename from
2828 fetch_inferior_registers. Make static.
2829 (i386bsd_store_inferior_registers): Rename from
2830 store_inferior_registers. Make static.
2831 (i386bsd_target): New function.
2832 * i386bsd-nat.h: New file.
2833 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2834 "i386bsd-nat.h".
2835 (i386fbsd_resume): Rename from child_resume. Make static.
2836 (_initialize_i386fbsd_nat): Construct and add target vector.
2837 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2838 (_initialize_i386nbsd_nat): Construct and add target vector.
2839 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2840 Remove defines.
2841 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2842 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2843 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2844 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2845 (LOADLIBES): New variable.
2846 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2847 inf-ptrace.o. Remove inftarg.o.
2848 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2849 inf-ptrace.o. Remove inftarg.o.
2850 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2851 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2852 (LOADLIBES): New variable.
2853 * Makefile.in (i386bsd_nat_h): New variable.
2854 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2855 dependencies.
2856
3510d1f2
MK
2857 * sparc64nbsd-tdep.c: Include "objfiles.h".
2858 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2859 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2860 svr4_lp64_fetch_link_map_offsets.
2861 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2862 "nbsd-tdep.h".
2863 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2864 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2865 svr4_lp64_fetch_link_map_offsets.
2866 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2867 dependencies.
2868
578c1c03
MK
2869 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2870 * fbsd-nat.h: New file.
2871 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2872 (fbsd_nat_h): New variable.
2873 (fbsd-nat.o): New dependency.
2874
7a7b73b7
MK
2875 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2876 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2877
9a6c8ef4
MK
2878 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2879 comment.
2880
72d5681a
PH
28812004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2882
2883 * ada-exp.y (type_int): New function to add layer of abstraction
2884 around references to expression types.
2885 (type_long): Ditto.
2886 (type_long_long): Ditto.
2887 (type_float): Ditto.
2888 (type_double): Ditto.
2889 (type_long_double): Ditto.
2890 (type_char): Ditto.
2891 (type_system_address): Ditto.
2892 (simple_exp): Use type_* functions in place of builtin_*
2893 variables.
2894 (exp): Ditto.
2895 (write_var_from_name): Ditto.
2896 (write_object_renaming): Ditto.
2897 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2898 declaration.
2899 (build_ada_types): Remove, replacing with...
2900 (ada_language_arch_info): New function to initialize primitive
2901 type vector in language_arch_info.
2902 (ada_array_length): Remove use of builtin_type_ada_int.
2903 (value_pos_atr): Ditto.
2904 (ada_evaluate_subexp): Ditto.
2905 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2906 builtin_type_ada_long_long, builtin_type_ada_char,
2907 builtin_type_ada_float, builtin_type_ada_double,
2908 builtin_type_ada_long_double, builtin_type_ada_natural,
2909 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2910 (ada_builtin_types): Remove.
2911 (ada_language_defn): Remove entries for la_builtin_type_vector and
2912 string_char_type and use ada_language_arch_info.
2913 (_initialize_ada_language): Do type-vector initialization along
2914 the lines of c-lang.c.
2915 (ada_create_fundamental_type): Break up line.
2916 (ada_dump_symtab): Remove unused function.
2917 (enum ada_primitive_types): Define.
2918 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2919 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2920 builtin_type_ada_float, builtin_type_ada_double,
2921 builtin_type_ada_long_double, builtin_type_ada_natural,
2922 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2923 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2924 (processInt): Ditto.
2925 (processReal): Ditto.
2926 (name_lookup): Ditto.
2927 * ada-typeprint.c (print_range): Use builtin_type_int, not
2928 builtin_type_ada_int.
2929
4f0be353
MK
29302004-09-18 Mark Kettenis <kettenis@gnu.org>
2931
30b0e2d8
MK
2932 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2933
4f0be353
MK
2934 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2935 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2936 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2937 * configure.in: Improve checks for curses library by checking for
2938 mvwaddstr instead of initscr. Drop HP curses in favour of
2939 standard curses on HP-UX.
2940 * configure: Regenerated.
2941
72d5681a 29422004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2943
2944 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2945 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2946 Minor formatting changes.
2947 (empty_array): Slight rewrite for formatting.
2948 (emit_char,parse,ada_language_defn,build_ada_types,
2949 ada_is_exception_sym, _initialize_ada_language): Move
2950 definitions around.
2951 (ada_dump_symtab): Remove unused definition.
2952 (ada_maybe_exception_partial_symbol): Remove unused definition.
2953
1c8c7407
AC
29542004-09-16 Andrew Cagney <cagney@gnu.org>
2955
7681f339
AC
2956 * inf-child.c: Include "gdb_string.h".
2957 (inf_child_core_file_to_sym_file): Delete.
2958 (inf_child_target): Set to_fetch_registers and to_store_registers.
2959 * inf-ptrace.c: Include "gdb_string.h".
2960 * Makefile.in: Update all dependencies.
2961
1c8c7407
AC
2962 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2963 problem.
2964
65596487
JB
29652004-09-14 Joel Brobecker <brobecker@gnat.com>
2966
2967 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2968 call to heuristic_proc_desc. Remove code that became redundant
2969 as a consequence.
2970 (read_next_frame_reg): Remove special case for SP_REGNUM.
2971 (set_reg_offset): Fix small typo.
2972 (reset_saved_regs): New procedure.
2973 (mips32_heuristic_proc_desc): No longer compute a fake
2974 procedure descriptor. Compute the full frame cache instead.
2975 Some minor comment reformatting.
2976
95575b2e
AC
29772004-09-14 Andrew Cagney <cagney@gnu.org>
2978
f200c492
AC
2979 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2980 maintainer.
2981
95575b2e
AC
2982 * thread-db.c (thread_db_new_objfile): Assume that there is a
2983 child process.
2984
69657671
JB
29852004-09-13 Jim Blandy <jimb@redhat.com>
2986
2987 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2988 so that its storage isn't referenced after its lifetime ends.
2989
6c4182dd
JB
2990 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2991 and never assigned to. Delete it, and the 'if (use_buffer)'
2992 clauses. Delete 'raw_buffer', since it is now unused.
2993
ee31a58d
AC
29942004-09-13 Andrew Cagney <cagney@gnu.org>
2995
2c0fc042
AC
2996 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2997 * configure: Re-generate.
2998 * nlm/Makefile.in (TAGS): Update.
2999 * Makefile.in (TAGS): Update.
3000 * config/vax/nbsd.mt (TM_FILE): Update.
3001 * config/sparc/vxworks.mt (TM_FILE): Update.
3002 * config/sparc/sol2.mt (TM_FILE): Update.
3003 * config/sparc/sol2-64.mt (TM_FILE): Update.
3004 * config/sparc/obsd64.mt (TM_FILE): Update.
3005 * config/sparc/obsd.mt (TM_FILE): Update.
3006 * config/sparc/nbsd64.mt (TM_FILE): Update.
3007 * config/sparc/nbsd.mt (TM_FILE): Update.
3008 * config/sparc/linux64.mt (TM_FILE): Update.
3009 * config/sparc/linux.mt (TM_FILE): Update.
3010 * config/sparc/fbsd.mt (TM_FILE): Update.
3011 * config/sh/wince.mt (TM_FILE): Update.
3012 * config/sh/nbsd.mt (TM_FILE): Update.
3013 * config/sh/linux.mt (TM_FILE): Update.
3014 * config/sh/embed.mt (TM_FILE): Update.
3015 * config/s390/s390.mt (TM_FILE): Update.
3016 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3017 * config/rs6000/rs6000.mt (TM_FILE): Update.
3018 * config/rs6000/aix4.mt (TM_FILE): Update.
3019 * config/powerpc/vxworks.mt (TM_FILE): Update.
3020 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3021 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3022 * config/powerpc/obsd.mt (TM_FILE): Update.
3023 * config/powerpc/nbsd.mt (TM_FILE): Update.
3024 * config/powerpc/linux.mt (TM_FILE): Update.
3025 * config/powerpc/aix.mt (TM_FILE): Update.
3026 * config/pa/obsd.mt (TM_FILE): Update.
3027 * config/pa/linux.mt (TM_FILE): Update.
3028 * config/pa/hppahpux.mt (TM_FILE): Update.
3029 * config/pa/hppa64.mt (TM_FILE): Update.
3030 * config/pa/hppa.mt (TM_FILE): Update.
3031 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3032 * config/mips/wince.mt (TM_FILE): Update.
3033 * config/mips/vxmips.mt (TM_FILE): Update.
3034 * config/mips/nbsd.mt (TM_FILE): Update.
3035 * config/mips/linux.mt (TM_FILE): Update.
3036 * config/mips/irix6.mt (TM_FILE): Update.
3037 * config/mips/irix5.mt (TM_FILE): Update.
3038 * config/mips/embed.mt (TM_FILE): Update.
3039 * config/m68k/vxworks68.mt (TM_FILE): Update.
3040 * config/m68k/st2000.mt (TM_FILE): Update.
3041 * config/m68k/os68k.mt (TM_FILE): Update.
3042 * config/m68k/obsd.mt (TM_FILE): Update.
3043 * config/m68k/nbsd.mt (TM_FILE): Update.
3044 * config/m68k/monitor.mt (TM_FILE): Update.
3045 * config/m68k/linux.mt (TM_FILE): Update.
3046 * config/m68k/cisco.mt (TM_FILE): Update.
3047 * config/ia64/linux.mt (TM_FILE): Update.
3048 * config/ia64/aix.mt (TM_FILE): Update.
3049 * config/ia64/ia64.mt (TM_FILE): Update.
3050 * config/i386/vxworks.mt (TM_FILE): Update.
3051 * config/i386/obsd64.mt (TM_FILE): Update.
3052 * config/i386/obsd.mt (TM_FILE): Update.
3053 * config/i386/nto.mt (TM_FILE): Update.
3054 * config/i386/nbsd64.mt (TM_FILE): Update.
3055 * config/i386/nbsd.mt (TM_FILE): Update.
3056 * config/i386/linux64.mt (TM_FILE): Update.
3057 * config/i386/linux.mt (TM_FILE): Update.
3058 * config/i386/i386sol2.mt (TM_FILE): Update.
3059 * config/i386/i386lynx.mt (TM_FILE): Update.
3060 * config/i386/fbsd64.mt (TM_FILE): Update.
3061 * config/i386/fbsd.mt (TM_FILE): Update.
3062 * config/i386/cygwin.mt (TM_FILE): Update.
3063 * config/h8300/h8300.mt (TM_FILE): Update.
3064 * config/frv/frv.mt (TM_FILE): Update.
3065 * config/cris/cris.mt (TM_FILE): Update.
3066 * config/arm/wince.mt (TM_FILE): Update.
3067 * config/arm/nbsd.mt (TM_FILE): Update.
3068 * config/arm/linux.mt (TM_FILE): Update.
3069 * config/arm/embed.mt (TM_FILE): Update.
3070 * config/alpha/nbsd.mt (TM_FILE): Update.
3071 * config/alpha/fbsd.mt (TM_FILE): Update.
3072 * config/alpha/alpha.mt (TM_FILE): Update.
3073 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3074 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3075
362646f5
AC
3076 Eliminate event_loop_p, always has the value 1.
3077 * defs.h (event_loop_p): Delete macro.
3078 * breakpoint.c (until_break_command): Simplify.
3079 * utils.c (prompt_for_continue): Simplify.
3080 * tracepoint.c (read_actions): Simplify.
3081 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3082 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3083 (set_prompt, init_main): Simplify.
3084 (init_signals, disconnect): Delete, unused.
3085 * remote.c (remote_async_resume)
3086 (extended_remote_async_create_inferior): Simplify.
3087 * mi/mi-interp.c (mi_input): Delete, unused.
3088 (mi_interpreter_resume, mi_command_loop): Simplify.
3089 * interps.c (current_interp_command_loop): Simplify.
3090 * infrun.c (proceed): Simplify.
3091 * infcmd.c (run_command, continue_command, step_1, jump_command)
3092 (until_command, advance_command, finish_command)
3093 (interrupt_target_command): Simplify.
3094 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3095
ee31a58d
AC
3096 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3097 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3098 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3099 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3100 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3101 * mips-tdep.c (mips_dump_tdep): Do not print same.
3102
b7ffc4a8
AC
31032004-09-12 Andrew Cagney <cagney@gnu.org>
3104
2bfb72ee
AC
3105 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3106 const.
3107 * Makefile.in (valprint.o): Delete explict rule.
3108
4f17c3c1
AC
3109 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3110 reported by Dave Anderson.
3111
f810308b
AC
3112 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3113
b7ffc4a8
AC
3114 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3115
28b41c52
AC
31162004-09-12 Salvador E. Tropea <set@users.sf.net>
3117 Andrew Cagney <cagney@gnu.org>
3118
3119 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3120 (mi_cmd_data_list_register_values)
3121 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3122 the register number computation.
3123
5bf970f9
AC
31242004-09-12 Andrew Cagney <cagney@gnu.org>
3125
3126 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3127 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3128 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3129 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3130 target.
3131 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3132 inf-ptrace.o and inf-child.o.
3133 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3134 * Makefile.in: Update dependencies.
3135
0759e0bf
AC
31362004-09-11 Andrew Cagney <cagney@gnu.org>
3137
3138 * language.c (hex_string, hex_string_custom): Move from here ...
3139 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3140 (CELLSIZE): Increase to 50.
3141 * language.h (hex_string, hex_string_custom): Move from here ...
3142 * defs.h: ... to here.
3143 * Makefile.in: Update all dependencies.
3144
bb599908
PH
31452004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3146
3147 * language.c (local_hex_format_custom): Remove.
3148 (local_hex_string): Rename to hex_string, use C format, and move to
3149 utils.c
3150 (local_hex_string_custom): Rename to hex_string_custom and change
3151 interface. Now uses C format. Move to utils.c
3152 (local_octal_format_custom): Remove.
3153 (local_decimal_format_custom): Remove.
3154 (unknown_language_defn): Remove language-specific number
3155 formatting entries.
3156 (auto_language_defn): Ditto.
3157 (local_language_defn): Ditto.
3158 * language.h (struct language_format_info): Delete declaration.
3159 (struct language_defn): Remove language_format_info fields
3160 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3161 (local_binary_format): Remove macro.
3162 (local_binary_format_prefix): Remove macro.
3163 (local_binary_format_specifier): Remove macro.
3164 (local_binary_format_suffix): Remove macro.
3165 (local_octal_format): Remove macro.
3166 (local_octal_format_prefix): Remove macro.
3167 (local_octal_format_specifier): Remove macro.
3168 (local_octal_format_suffix): Remove macro.
3169 (local_decimal_format): Remove macro.
3170 (local_decimal_format_prefix): Remove macro.
3171 (local_decimal_format_specifier): Remove macro.
3172 (local_decimal_format_suffix): Remove macro.
3173 (local_hex_format): Remove macro.
3174 (local_hex_format_prefix): Remove macro.
3175 (local_hex_format_specifier): Remove macro.
3176 (local_hex_format_suffix): Remove macro.
3177 (local_decimal_format_custom): Remove.
3178 (local_octal_format_custom): Remove.
3179 (local_hex_format_custom): Remove.
3180 (local_hex_string): Rename to hex_string and move to defs.h.
3181 (local_hex_string_custom): Rename to hex_string_custom, change
3182 interface, and move to defs.h.
3183 * utils.c: (int_string): New function.
3184 (hex_string): New function (from language.c).
3185 (hex_string_custom): New function (from language.c).
3186 (octal2str): New function.
3187 (decimal2str): Add width parameter.
3188 (paddr_u): Use new decimal2str interface.
3189 (paddr_d): Ditto.
3190 * defs.h (hex_string): Declare.
3191 (hex_string_custom): Declare.
3192 (int_string): Declare.
3193 * printcmd.c (print_scalar_formatted): Remove localized binary
3194 formatting.
3195 * valprint.c (print_longest): Use int_string.
3196 (print_floating): Use C hex format.
3197 (print_hex_chars): Ditto.
3198 (print_binary_chars): Remove language-specific formatting.
3199 (print_octal_chars): Use C octal format.
3200 (print_decimal_chars): Delocalize format.
3201 (print_decimal): Remove.
3202 * ada-lang.c (ada_language_defn): Remove language-specific number
3203 formatting entries.
3204 * p-lang.c (pascal_language_defn): Ditto.
3205 * c-lang.c (c_language_defn): Ditto.
3206 (cplus_language_defn): Ditto.
3207 (asm_language_defn): Ditto.
3208 (minimal_language_defn): Ditto.
3209 * f-lang.c (f_language_defn): Ditto.
3210 * jv-lang.c (java_language_defn): Ditto.
3211 * m2-lang.c (m2_language_defn): Ditto.
3212 * scm-lang.c (scm_language_defn): Ditto.
3213 * objc-lang.c (objc_language_defn): Ditto.
3214 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3215 new interface.
3216 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3217 * ui-out.c (ui_out_field_core_addr): Ditto.
3218 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3219 * exec.c (print_section_info): Ditto.
3220 * i387-tdep.c (print_i387_status_word): Ditto.
3221 (print_i387_control_word): Ditto.
3222 (i387_print_float_info): Ditto.
3223 * maint.c (maint_print_section_info): Ditto.
3224 * solib.c (info_sharedlibrary_command): Ditto.
3225 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3226 * symtab.c (print_msymbol_info): Ditto.
3227 * tracepoint.c (tracepoints_info): Ditto.
3228 * solib-frv.c (lm_base): Ditto.
3229 (frv_current_sos): Ditto.
3230 (enable_break2): Ditto.
3231 (enable_break): Ditto.
3232 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3233 (process_one_symbol): Ditto.
3234 * infcmd.c (program_info): Ditto.
3235 * mdebugread.c (parse_partial_symbols): Ditto.
3236 * symfile.c (add_symbol_file_command): Ditto.
3237 * cli/cli-cmds.c (edit_command): Ditto.
3238 (list_command): Ditto.
3239 * infcall.c (call_function_by_hand): Ditto.
3240 * remote-vx.c (vx_run_files_info): Ditto.
3241 (vx_wait): Ditto.
3242 (vx_attach): Ditto.
3243 (vx_detach): Ditto.
3244 (vx_kill): Ditto.
3245 * aix-thread.c (pdc_symbol_addrs): Ditto.
3246 (pdc_read_regs): Ditto.
3247 (pdc_write_regs): Ditto.
3248 (pdc_read_data): Ditto.
3249 (pdc_write_data): Ditto.
3250 * d10v-tdep.c (display_trace): Ditto.
3251 * rs6000-nat.c (find_toc_address): Ditto.
3252 * aix-thread.c: Don't include language.h.
3253 * buildsym.c: Ditto.
3254 * dbxread.c: Ditto.
3255 * mdebugread.c: Ditto.
3256 * rs6000-nat.c: Ditto.
3257 * buildsym.c (make_blockvector): Use renamed hex_string.
3258
33f2d567
JM
32592004-09-10 Jason Molenda (jmolenda@apple.com)
3260
3261 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3262 chars after 'if' or 'while' commands in user-defined commands.
3263
7b90c3f9
JB
32642004-09-08 Jim Blandy <jimb@redhat.com>
3265
3266 Fix bug reported and analyzed by Olivier Crete:
3267 * symfile.c (copy_section_addr_info): New function.
3268 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3269 original set of address arguments, instead of handwritten code
3270 that uses one length to allocate and a different length to
3271 initialize. Use make_cleanup_free_section_addr_info.
3272 * symfile.h (copy_section_addr_info): New declaration.
3273 * utils.c: #include "symfile.h".
3274 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3275 New functions.
3276 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3277 * Makefile.in (utils.o): Update dependencies.
3278
b26a6851
AC
32792004-09-08 Andrew Cagney <cagney@gnu.org>
3280
3281 * thread-db.c (keep_thread_db): Delete.
3282 (thread_db_new_objfile, thread_db_create_inferior)
3283 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3284
be24b061
MK
32852004-09-08 Mark Kettenis <kettenis@gnu.org>
3286
f6792ef4
MK
3287 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3288 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3289 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3290 (i386_frameless_signal_p): Remove prototype.
3291 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3292 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3293 I386_SSE_NUM_REGS.
3294 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3295 instead of FP0_REGNUM.
3296 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3297 of FP0_REGNUM and FPC_REGNUM.
3298
eeefdaa7
MK
3299 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3300 (sunos_solib_create_inferior_hook): Don't call
3301 sunos_relocate_main_executable.
3302
be24b061
MK
3303 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3304 solib_svr4_fetch_link_map_offsets to
3305 svr4_ilp32_fetch_link_map_offsets.
3306 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3307 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3308 svr4_ilp32_fetch_link_map_offsets.
3309 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3310
7c679d16
JB
33112004-09-07 Jim Blandy <jimb@redhat.com>
3312
3313 * frame.h (frame_register): Doc fix.
3314
1f04aa62
AC
33152004-09-07 Andrew Cagney <cagney@gnu.org>
3316
3317 * vx-share/wait.h: Delete #ifdef USG.
3318 * utils.c (request_quit): Ditto.
3319 * tui/tui.c (tui_reset): Ditto.
3320 * remote.c: Ditto.
3321 * remote-sds.c: Ditto.
3322 * remote-rdi.c: Ditto.
3323 * mdebugread.c: Ditto.
3324 * m68klinux-nat.c: Ditto.
3325 * infttrace.c: Ditto.
3326 * infptrace.c: Ditto.
3327 * i386v-nat.c: Ditto.
3328 * exec.c: Ditto.
3329 * dbxread.c: Ditto.
3330 * core-aout.c: Ditto.
3331
90edbfbc
JB
33322004-09-05 Joel Brobecker <brobecker@gnat.com>
3333
3334 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3335 heuristic_proc_desc.
3336 (mips_insn32_frame_cache): Likewise.
3337
01f4bf2b
JB
33382004-09-04 Joel Brobecker <brobecker@gnat.com>
3339
3340 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3341 left behind by error.
3342
8511a048
JB
33432004-09-04 Joel Brobecker <brobecker@gnat.com>
3344
3345 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3346 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3347
649dfe9f
JB
33482004-09-04 Joel Brobecker <brobecker@gnat.com>
3349
3350 * config/rs6000/xm-aix4.h: Remove this file.
3351 * config/rs6000/aix4.mh (XM_FILE): Delete.
3352
6e50f889
JB
33532004-09-04 Joel Brobecker <brobecker@gnat.com>
3354
3355 * config/rs6000/xm-rs6000.h: Remove this file.
3356 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3357
b8c4aece
AC
33582004-09-03 Andrew Cagney <cagney@gnu.org>
3359
fb603883
AC
3360 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3361 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3362 only use.
3363
c9343fd1
AC
3364 * mips-tdep.c (temp_saved_regs): Delete.
3365 (set_reg_offset): Replace saved_regs parameter with this_cache.
3366 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3367 (mips32_heuristic_proc_desc): Add this_cache parameter.
3368 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3369 (after_prologue): Pass a NULL this_cache.
3370
9733cfe1
AC
3371 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3372 non-kernel trap prologues.
3373
0d5febcc
AC
3374 * mips-tdep.c (find_proc_desc): Delete function.
3375 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3376 simplify.
3377 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3378 mips_insn32_frame_cache.
3379
9733cfe1 3380 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
3381 Simplify as NEXT_FRAME is NULL.
3382 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3383
177f84a3
AC
3384 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3385 local variable.
3386 (mips_skip_prologue): Update.
3387
465f7520
AC
3388 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3389 "cur_frame" parameter.
177f84a3
AC
3390 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3391 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 3392
e38b8658
AC
3393 * config/vax/nm-obsd.h: Delete file.
3394 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3395 * config/vax/nm-nbsd.h: Delete file.
3396 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3397 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3398 * config/sh/nm-nbsd.h: Delete file.
3399 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3400 * config/rs6000/nm-rs6000ly.h: Delete file.
3401 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3402 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3403 * config/powerpc/nm-obsd.h: Delete file.
3404 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3405 * config/powerpc/nm-nbsd.h: Delete file.
3406 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3407 * config/pa/nm-obsd.h: Delete file.
3408 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3409 * config/mips/nm-nbsd.h: Delete file.
3410 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3411 * config/m88k/nm-obsd.h: Delete file.
3412 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3413 * config/m68k/nm-nbsd.h: Delete file.
3414 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3415 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3416 * config/i386/nm-nbsd.h: Delete file.
3417 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3418 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3419 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3420 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3421 * config/i386/nm-i386lynx.h: Delete file.
3422 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3423 * config/arm/nm-nbsd.h: Delete file.
3424 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3425 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3426
be1ed680
AC
3427 * config/i386/tm-fbsd.h: Delete file.
3428 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3429 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3430
4b392b26
AC
3431 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3432 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3433 * config/rs6000/aix4.mt (TM_FILE): Set to
3434 config/rs6000/tm-rs6000.h.
3435 * config/powerpc/tm-ppc-aix.h: Delete file.
3436 * config/powerpc/aix.mt (TM_FILE): Set to
3437 config/rs6000/tm-rs6000.h.
3438 * config/m68k/tm-linux.h: Delete file.
3439 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3440 * config/i386/tm-linux64.h: Delete file.
3441 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3442 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3443
f3219c75
AC
3444 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3445 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3446 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3447 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3448 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3449 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3450 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3451 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3452 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3453
b8c4aece
AC
3454 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3455 gdb_host_cpu.
3456
8ac2e020
JB
34572004-09-02 Joel Brobecker <brobecker@gnat.com>
3458
3459 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3460 Minor reformatting. Some code factoring.
3461
c185a355
AC
34622004-09-02 Andrew Cagney <cagney@gnu.org>
3463
63f22f0d
AC
3464 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3465 * config/vax/tm-nbsd.h: Delete file.
3466 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3467 * config/sparc/tm-vxworks.h: Delete file.
3468 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3469 * config/sparc/tm-nbsd.h: Delete file.
3470 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3471 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3472 * config/sparc/tm-linux.h: Delete file.
3473 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3474 * config/s390/tm-linux.h: Delete file.
3475 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3476 * config/pa/tm-bsd.h: Delete file.
3477 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3478 * config/m68k/tm-obsd.h: Delete file.
3479 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3480 * config/m68k/tm-nbsd.h: Delete file.
3481 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3482 * config/i386/tm-vxworks.h: Delete file.
3483 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3484 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3485 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3486 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3487 * config/i386/tm-nbsd.h: Delete file.
3488 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3489 * config/i386/tm-i386lynx.h: Delete file.
3490 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3491 * config/cris/tm-cris.h: Delete file.
3492
0f475e27
AC
3493 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3494 * configure: Re-generate.
3495 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3496 * config/arm/tm-nbsd.h: Delete file.
3497
458ed000
AC
3498 * config/powerpc/tm-ppcle-sim.h: Delete.
3499 * config/powerpc/tm-ppcle-eabi.h: Delete.
3500 * config/powerpc/tm-nbsd.h: Delete.
3501 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3502 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3503 tm-ppcle-eabi.h.
3504
f14375f3
AC
3505 * config/i386/nto.mh (NAT_FILE): Delete.
3506 * config/i386/nm-nto.h: Delete.
3507
c34d127c
AC
3508 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3509 * config/m68k/tm-os68k.h: Ditto.
3510 * config/m68k/tm-monitor.h: Ditto.
3511 * config/m68k/tm-cisco.h: Ditto.
3512 * config/m68k/st2000.mt (TM_FILE): Delete.
3513 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3514 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3515 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3516 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3517
f7f0fe03
AC
3518 * config/m68k/tm-st2000.h: Delete.
3519 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3520 * config/sparc/fbsd.mt (TM_FILE): Delete.
3521 * config/sparc/tm-fbsd.h: Delete.
3522
a2558533
AC
3523 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3524 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3525 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3526
b78960be
AC
3527 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3528 GDB_TM_FILE and GDB_XM_FILE.
3529 * gdbarch.c: Re-generate.
3530 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3531 quotes in macro definition.
3532 * configure.in: Re-generate.
3533
4d60522e
AC
3534 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3535 validating architecture methods.
3536 * gdbarch.c: Re-generate.
3537
5010d38b
AC
3538 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3539 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3540 GDB_MULTI_ARCH_PARTIAL.
3541 * gdbarch.h: Re-generate.
3542
c185a355
AC
3543 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3544 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3545 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3546 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3547 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3548 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3549 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3550 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3551 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3552 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3553 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3554 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3555
14aaa6ab
AC
35562004-09-01 Andrew Cagney <cagney@gnu.org>
3557
3558 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3559 and main_func_highpc.
3560 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3561 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3562 * nlmread.c (nlm_symfile_read): Update.
3563
a343eb3c
JB
35642004-09-01 Joel Brobecker <brobecker@gnat.com>
3565
3566 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3567 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3568 (find_proc_desc): Remove dead code.
3569
4fbbbd07
JB
35702004-09-01 Joel Brobecker <brobecker@gnat.com>
3571
3572 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3573
84acb35a
JJ
35742004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3575
3576 * observer.sh: Add struct so_list declaration.
3577 * Makefile.in: Add dependencies on observer.h for solib.c and
3578 breakpoint.c.
3579 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3580 function.
3581 (_initialize_breakpoint): Register
3582 disable_breakpoints_in_unloaded_shlib as an observer of the
3583 "solib unloaded" observation event.
3584 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3585 call decode_line_1 so unfound breakpoint errors are silent.
3586 * solib.c (update_solib_list): When a solib is discovered to have
3587 been unloaded by the program, notify all observers of the
3588 "solib unloaded" observation event.
3589
c8cd9f6c
AC
35902004-09-01 Andrew Cagney <cagney@gnu.org>
3591
3592 * frame.c: Include "objfiles.h".
3593 (inside_main_func): New function.
3594 (get_prev_frame): Use new inside_main_func.
3595 * Makefile.in (frame.o): Update dependencies.
3596 * defs.h (inside_main_func): Delete declaration.
3597 * blockframe.c (inside_main_func): Delete function.
3598
1168df01
JB
35992004-08-31 Jim Blandy <jimb@redhat.com>
3600
3601 * dwarf2read.c (is_vtable_name): New function, based on logic from
3602 read_structure_type, but passing the correct length to strncmp,
3603 and using 'sizeof' instead of 'strlen'.
3604 (read_structure_type): Call it.
3605
f14f9744
JB
36062004-08-31 Joel Brobecker <brobecker@gnat.com>
3607
3608 * config/powerpc/aix.mh: Add comment.
3609
386d4518
PG
36102004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3611
3612 * MAINTAINERS: Add self to Write-After-Approval.
3613
7d97d5e2
MI
36142004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3615
3616 * MAINTAINERS: Add self to Write-After-Approval.
3617
68f53502
AC
36182004-08-30 Andrew Cagney <cagney@gnu.org>
3619
3620 Fix PR breakpoints/1757.
3621 * infrun.c (struct execution_control_state): Replace
3622 remove_breakpoints_on_following_step with
3623 step_after_step_resume_breakpoint.
3624 (init_execution_control_state): Update.
3625 (handle_inferior_event): For signals, when stepping off a
3626 breakpoint, set step_after_step_resume_breakpoint. When
3627 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3628 (keep_going): Delete code handling
3629 remove_breakpoints_on_following_step.
3630
7ca2d3a3
DL
36312004-08-29 David Lecomber <david@streamline-computing.com>
3632
3633 Fix PR gdb/648
3634 * language.h (enum array_ordering): New enum.
3635 * language.h (struct language_defn): New la_array_ordering
3636 attribute.
3637 * language.c (unknown_language_defn, auto_language_defn)
3638 (local_language_defn): Ditto.
3639 * ada-lang.c (ada_language_defn): Ditto.
3640 * c-lang.c (c_language_defn, cplus_language_defn)
3641 (asm_language_defn, minimal_language_defn): Ditto.
3642 * f-lang.c (f_language_defn): Ditto.
3643 * jv-lang.c (java_language_defn): Ditto.
3644 * m2-lang.c (f_language_defn): Ditto.
3645 * objc-lang.c (objc_language_defn): Ditto.
3646 * p-lang.c (pascal_language_defn): Ditto.
3647 * scm-lang.c (scm_language_defn): Ditto.
3648 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3649 oriented large to small in type structure.
3650 * dwarf2read.c (read_array_order): New function.
3651 (read_array_type): Use read_array_order to check row/column
3652 major ordering.
3653
e354df01
NW
36542004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3655
3656 * target.c (target_resize_to_sections): Check
3657 current_target.to_sections for an old value when updating.
3658
9185ddce
JB
36592004-08-27 Joel Brobecker <brobecker@gnat.com>
3660
3661 * procfs.c (dbx_link_bpt_addr): New static global variable.
3662 (dbx_link_shadow_contents): New static global variable.
3663 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3664 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3665 if we just hit it.
3666 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3667 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3668 from run to run.
3669 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3670 after the inferior has been forked.
3671 (remove_dbx_link_breakpoint): New function.
3672 (dbx_link_addr): New function.
3673 (insert_dbx_link_bpt_in_file): New function.
3674 (insert_dbx_link_bpt_in_region): New function.
3675 (insert_dbx_link_breakpoint): New function.
3676 (proc_trace_syscalls_1): New function, extracted from
3677 proc_trace_syscalls.
3678 (proc_trace_syscalls): Replace extract code by call to
3679 proc_trace_syscalls_1.
3680 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3681 is no longer valid.
3682
e6742ace
JB
36832004-08-25 Jim Blandy <jimb@redhat.com>
3684
3685 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3686
8fb3e588
AC
36872004-08-25 Andrew Cagney <cagney@gnu.org>
3688
629a41ee
AC
3689 * infrun.c (struct execution_control_state): Delete field
3690 "stepping_through_sigtramp".
3691 (init_execution_control_state): Do not set same.
3692 (context_switch): Do not pass same to save_infrun_state and
3693 load_infrun_state.
3694 * gdbthread.h (struct thread_info): Delete field
3695 stepping_through_sigtramp.
3696 (save_infrun_state, load_infrun_state): Delete parameter
3697 stepping_through_sigtramp.
3698 * thread.c (load_infrun_state, save_infrun_state): Update.
3699
8fb3e588
AC
3700 * infrun.c: Re-indent. Move expression operators to the beginning
3701 of the line. Remove long disabled #if 0 code.
3702
49c54768
AC
37032004-08-24 Andrew Cagney <cagney@gnu.org>
3704
3705 * doublest.h (floatformat_ieee_quad): Rename
3706 floatformat_ia64_quad.
3707 * doublest.c (floatformat_ieee_quad): Rename
3708 floatformat_ia64_quad.
3709 (_initialize_doublest): Update.
3710
5ca2e327
JB
37112004-08-24 Jim Blandy <jimb@redhat.com>
3712
87808bd6
JB
3713 * dwarf2expr.h (struct dwarf_expr_context): New members
3714 'num_pieces' and 'pieces', for returning the result of an
3715 expression that uses DW_OP_piece.
3716 (struct dwarf_expr_piece): New struct type.
3717 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3718 pieces.
3719 (free_dwarf_expr_context): Free pieces, if any.
3720 (add_piece): New function.
3721 (execute_stack_op): Implement DW_OP_piece.
3722 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3723 expression is a list of pieces, print an error message.
3724 (dwarf2_loc_desc_needs_frame): If the expression yields
3725 pieces, and any piece is in a register, then we need a frame.
3726
5ca2e327
JB
3727 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3728 the stack until we've decided what sort of result the evaluation
3729 has produced. Use separate variables, with more specific names.
3730
2afeb6b8
RE
37312004-08-23 Richard Earnshaw <rearnsha@arm.com>
3732
3733 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3734 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3735 (arm_netbsd_init_abi_common): Register them.
3736
5885ab49
MK
37372004-08-22 Mark Kettenis <kettenis@gnu.org>
3738
fda820a6
MK
3739 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3740
1c5bf419
MK
3741 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3742 safe_frame_unwind_memory instead of target_read_memory.
3743
8cbba7c8
MK
3744 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3745 Reorder includes.
3746 (fetch_register, store_register): Remove prototypes.
3747 (child_resume): Reorganize code and comments such that it is
3748 grouped a bit more logically.
3749 (attach): Explicitly compare errno against 0.
3750 (detach): Likewise. Use perror_with_name instead of
3751 print_sys_errmsg.
3752 * Makefile.in (infptrace.o): Update dependencies.
3753
c5fa4245
MK
3754 * ia64-linux-nat.c: Update copyright year.
3755 (fetch_debug_register, store_debug_register)
3756 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3757 PTRACE_TYPE_ARG3.
3758 * config/ia64/nm-linux.h: Update copyright year.
3759 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3760
387c058c
MK
3761 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3762 from CORE_ADDR to struct frame_info *. Use
3763 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3764 (amd64_linux_sigtramp_p): Adjust for changed signature of
3765 and64_linux_sigtramp_start
3766
277215a6
MK
3767 * gdb_ptrace.h: GNU/Linux.
3768
25f6178e
MK
3769 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3770 Remove defines.
3771
652fc137
MK
3772 * infptrace.c: Include "gdb_assert.h".
3773 (PTRACE_XFER_TYPE): Remove define.
3774 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3775 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3776 Tweak comment.
3777 (fetch_inferior_registers, store_inferior_registers): Remove
3778 redundant culry braces. Tweak comment. s/regno/regnum.
3779 * Makefile.in (infptrace.o): Update dependencies.
3780
5885ab49
MK
3781 * configure.in: Change test for return type of ptrace to default
3782 to `long' instead of `int'.
3783 * configure: Regenerate.
3784
11003ae3
MK
37852004-08-21 Mark Kettenis <kettenis@gnu.org>
3786
6b95110c
MK
3787 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3788
bcb3dc3d
MK
3789 * configure.in: Check for ttrace function.
3790 * configure, config.in: Regenerate.
3791
11003ae3
MK
3792 * gdb_ptrace.h: New file.
3793 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3794 <sys/ptrace.h>.
3795 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3796 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3797 (attach): Don't define PT_ATTACH.
3798 (detach): Don't define PT_DETACH.
3799 * Makefile.in (gdb_ptrace_h): New variable.
3800 (infptrace.o): Update dependencies.
3801
f8707cac
MK
38022004-08-16 Mark Kettenis <kettenis@gnu.org>
3803
3804 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3805 instead of `int' if not already defined.
3806 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3807 PTRACE_TYPE_ARG3.
3808 * infptrace.c (call_ptrace): Revert change that replaced
3809 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3810
655c5466
MK
38112004-08-15 Mark Kettenis <kettenis@gnu.org>
3812
156e5ba7
MK
3813 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3814 Remove defines.
3815
de9a9e51
MK
3816 * linux-nat.c (kill_inferior): Add missing third and fourth
3817 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3818
88800403
MK
3819 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3820 PTRACE_TYPE_RET.
3821
849a1d7c
MK
3822 * proc-why.c (proc_prettyfprint_why): Fix format string.
3823
61ad16d1
MK
3824 * solib-osf.c (osf_current_sos): Remove unsused label.
3825
a6ed5501
MK
3826 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3827 curses headers.
3828 * configure, config.in: Regenerate.
3829 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3830 <ncurses/ncurses.h>.
3831
016ddeca
MK
3832 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3833 * config/nm-nbsd.h: Update copyright year.
3834 (PTRACE_ARG3_TYPE): Remove define.
3835
49ec097f
MK
3836 * sparc-nat.c (fetch_inferior_registers)
3837 (store_inferior_registers, sparc_xfer_wcookie):
3838 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3839
9f8e0089
MK
3840 * alphabsd-nat.c (fetch_inferior_registers):
3841 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3842 PTRACE_TYPE_ARG3.
3843 * amd64bsd-nat.c (fetch_inferior_registers)
3844 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3845 PTRACE_TYPE_ARG3.
3846 * armnbsd-nat.c: Update copyright year.
3847 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3848 (store_register, store_regs, store_fp_register, store_fp_regs):
3849 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3850 * hppabsd-nat.c (fetch_inferior_registers)
3851 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3852 PTRACE_TYPE_ARG3.
3853 * i386bsd-nat.c (fetch_inferior_registers)
3854 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3855 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3856 * m68kbsd-nat.c (fetch_inferior_registers)
3857 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3858 PTRACE_TYPE_ARG3.
3859 * m88kbsd-nat.c (fetch_inferior_registers)
3860 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3861 PTRACE_TYPE_ARG3.
3862 * mipsnbsd-nat.c: Update copyright year.
3863 (fetch_inferior_registers, store_inferior_registers):
3864 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3865 * ns32knbsd-nat.c: Update copyright year.
3866 (fetch_inferior_registers, store_inferior_registers):
3867 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3868 * ppcnbsd-nat.c (fetch_inferior_registers):
3869 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3870 PTRACE_TYPE_ARG3.
3871 * ppcobsd-nat.c (fetch_inferior_registers):
3872 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3873 PTRACE_TYPE_ARG3.
3874 * shnbsd-nat.c: Update copyright year.
3875 (fetch_inferior_registers, store_inferior_registers):
3876 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3877 * vaxbsd-nat.c (fetch_inferior_registers)
3878 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3879 PTRACE_TYPE_ARG3.
3880
655c5466
MK
3881 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3882 PTRACE_TYPE_ARG3.
3883 * infptrace.c (call_ptrace, child_resume, attach, detach)
3884 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3885 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3886 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3887 PTRACE_TYPE_ARG3.
3888
c40d0d10
MK
38892004-08-14 Mark Kettenis <kettenis@gnu.org>
3890
5cb0ff31
MK
3891 * defs.h: Remove out-of-date comment.
3892 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3893 [!GETENV_PROVIDED] (getenv): Remove prototype.
3894
5f0f34cb
MK
3895 * standalone.c: Remove file.
3896 * Makefile.in (standalone.o): Remove dependency.
3897
7532965f
MK
3898 * i386-linux-nat.c (dummy_sse_values): Remove function and
3899 prototype.
3900 (i386_linux_dr_get): Fix typo in comment.
3901 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3902
1bdc6c53
MK
3903 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3904
c40d0d10
MK
3905 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3906 from declaration.
3907 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3908 from definition.
3909
64218d3e
MK
39102004-08-13 Mark Kettenis <kettenis@gnu.org>
3911
3912 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3913 parenthesis in definition.
3914 * configure: Regenerated.
3915
926c94e7
MC
39162004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3917
3918 * PROBLEMS: Mention build/1411.
3919
69489883
NN
39202004-08-09 Robert Millan <robertmh@gnu.org>
3921
3922 Committed by Nathanael Nerode.
3923 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3924 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3925
ebb7c577
AC
39262004-08-12 Andrew Cagney <cagney@gnu.org>
3927
3928 * NEWS: Mention fixes in GDB 6.2.1.
3929 * PROBLEMS: Remove mention of mips-irix.
3930
232d697c
JB
39312004-08-11 Joel Brobecker <brobecker@gnat.com>
3932
3933 * config/powerpc/xm-aix.h: Delete.
3934 * config/powerpc/aix.mh (MH_FILE): Remove.
3935 * config/powerpc/aix432.mh (MH_FILE): Remove.
3936
72f4e82b
JB
39372004-08-11 Joel Brobecker <brobecker@gnat.com>
3938
3939 * config/powerpc/aix.mh: Remove obsolete comment.
3940 * config/powerpc/aix432.mh: Likewise.
3941
0687ccb2
JB
39422004-08-11 Joel Brobecker <brobecker@gnat.com>
3943
3944 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3945
dbf3ada7
JB
39462004-08-11 Joel Brobecker <brobecker@gnat.com>
3947
e08e1886
JB
3948 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3949 this file is now empty.
3950 * config/xm-aix4.h: Remove, this file is no longer included
3951 anywhere.
3952
39532004-08-11 Joel Brobecker <brobecker@gnat.com>
3954
3955 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3956 that file is now empty.
dbf3ada7
JB
3957 (termdef): Remove prototype, function no longer used.
3958
4c525ef6
JB
39592004-08-11 Joel Brobecker <brobecker@gnat.com>
3960
3961 * doc/gdbint.texinfo (Host Definition): Remove documentation
3962 for USE_O_NOCTTY, no longer used.
3963 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3964 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3965
82e0b968
JB
39662004-08-11 Joel Brobecker <brobecker@gnat.com>
3967
3968 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3969 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3970 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3971
f2acbe1c
MK
39722004-08-11 Mark Kettenis <kettenis@gnu.org>
3973
daa98270
MK
3974 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3975 instead of FIVE_ARG_PTRACE.
3976
f2acbe1c
MK
3977 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3978 (new_tty): Use O_NOCTTY unconditionally.
3979
cc377e6b
MK
39802004-08-10 Mark Kettenis <kettenis@gnu.org>
3981
3982 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3983 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3984 fflush on stdout.
3985
3bcc18fa
JB
39862004-08-10 Joel Brobecker <brobecker@gnat.com>
3987
3988 * xcoff_symfile_finish: Replace last call to xmfree by call
3989 to xfree.
3990
7936743b
AC
39912004-08-10 Andrew Cagney <cagney@gnu.org>
3992
cc503c8a
AC
3993 * main.c (captured_main): Delete call to init_malloc.
3994 * defs.h (init_malloc): Delete declaration.
3995 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3996 (init_malloc): Delete functions.
3997
2dc74dc1
AC
3998 * defs.h (xmfree): Delete.
3999 * utils.c (xmfree): Delete function.
4000 (xfree): Inline calls to xmfree and mfree.
4001 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4002 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4003 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4004 * somread.c (som_symfile_finish): Ditto.
4005 * objfiles.c (allocate_objfile, free_objfile):
4006 * nlmread.c (nlm_symfile_finish): Ditto.
4007 * hpread.c (hpread_symfile_finish): Ditto.
4008 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4009 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4010 * coffread.c (coff_symfile_finish): Ditto.
4011
aa2ee5f6
AC
4012 * defs.h (xmcalloc): Delete declaration.
4013 * utils.c (xmcalloc): Delete.
4014 (xcalloc): Inline calls to xmcalloc and mcalloc.
4015 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4016 xcalloc and xfree.
4017 * symtab.c (create_demangled_names_hash): Ditto.
4018
0efffb96
AC
4019 * defs.h (xmrealloc): Delete.
4020 * utils.c (xmrealloc): Delete.
4021 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4022 * symmisc.c (extend_psymbol_list): Use xrealloc.
4023 * source.c (find_source_lines): Ditto.
4024 * hpread.c (hpread_lookup_type): Ditto.
4025 * dbxread.c (add_bincl_to_list): Ditto.
4026
7936743b
AC
4027 * utils.c (xmmalloc): Delete.
4028 (xmalloc): Inline xmmalloc and mmalloc calls.
4029 (msavestring): Use xmalloc.
4030 * defs.h (xmmalloc): Delete declaration.
4031 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4032 xmmalloc.
4033 * symmisc.c (extend_psymbol_list): Ditto.
4034 * symfile.c (init_psymbol_list): Ditto.
4035 * source.c (find_source_lines): Ditto.
4036 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4037 * elfread.c (elf_symtab_read): Ditto.
4038 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4039 * coffread.c (coff_symfile_init): Ditto.
4040
252ab814
DC
40412004-08-10 David Carlton <carlton@bactrian.org>
4042
4043 * MAINTAINERS: Remove David Carlton from c++ testsuite
4044 maintainers.
4045
8f5ba92b
JG
40462004-08-10 Jerome Guitton <guitton@gnat.com>
4047
4048 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4049 print a line feed before the prompt.
4050
21749010
MK
40512004-08-10 Mark Kettenis <kettenis@gnu.org>
4052
4053 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4054
1f011ce2
JB
40552004-08-09 Joel Brobecker <brobecker@gnat.com>
4056
4057 General cleanup of the AIX xm include file:
4058 * config/xm-aix4.h (fd_set): Remove undefine.
4059 Remove include of <sys/select.h>.
4060 (HAVE_TERMIO): Remove define.
4061 (USG): Likewise.
4062 (NULL): Remove redefine.
4063 (alloca): Remove #pragma.
4064 (vfork): Remove define.
4065 (termdef): Remove.
4066 (SIGWINCH_HANDLER): Remove.
4067 (SIGWINCH_HANDLER_BODY): Remove.
4068
cf4e7692
MK
40692004-08-09 Mark Kettenis <kettenis@gnu.org>
4070
4071 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4072 GDB_OSABI_OPENBSD_ELF.
4073
ac5754fa
MK
40742004-08-07 Robert Millan <robertmh@gnu.org>
4075
4076 * bsd-kvm.c: Check for nlist.h before including it.
4077
086ec9eb
MK
40782004-08-09 Mark Kettenis <kettenis@gnu.org>
4079
bbe06c74
MK
4080 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4081 sigcontext' offset consistency checks for ancient BSD.
4082
3aa7b3b3
MK
4083 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4084
086ec9eb
MK
4085 * configure.in: Check for <sys/types.h>. Check return and
4086 argument types of ptrace.
4087 * configure, config.in: Regenerate.
4088
09991fa0
JB
40892004-08-09 Jim Blandy <jimb@redhat.com>
4090
4091 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4092 rs6000_register_sim_regno): Doc fixes.
4093
fed7ba43
JB
40942004-08-08 Joel Brobecker <brobecker@gnat.com>
4095
4096 * mips-tdep.c: Include "floatformat.h".
4097 (n32n64_floatformat_always_valid): New function.
4098 (floatformat_n32n64_long_double_big): New constant.
4099 (mips_gdbarch_init): Set size and format of long double
4100 for N32 and N64 ABIs.
4101 * Makefile.in (mips-tdep.o): Update dependencies.
4102
456fcf94
AC
41032004-08-08 Andrew Cagney <cagney@gnu.org>
4104
2f9b146e
AC
4105 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4106 print. Improve script's error messages.
4107 * gdbarch.h: Re-generate.
4108
456fcf94
AC
4109 * gdbarch.sh (pformat): New function.
4110 (float_format, double_format, long_double_format): List with bit
4111 members. Use pformat when printing.
4112 * gdbarch.c, gdbarch.h: Re-generate.
4113
69e9e646
NW
41142004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4115
4116 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4117 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4118 (ppcnbsd_supply_pcb): New function.
4119 (_initialize_ppcnbsd_nat): New prototype and function.
4120 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4121 (LOADLIBES): New variable.
4122 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4123
5ef2d0aa
AC
41242004-08-08 Andrew Cagney <cagney@gnu.org>
4125
4126 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4127 (builtin_type_ieee_double, builtin_type_ia64_quad)
4128 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4129 BE/LE floating-point types.
4130 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4131 (builtin_type_ieee_double, builtin_type_ia64_quad)
4132 (builtin_type_ia64_spill): Declare.
4133 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4134 (floatformat_ieee_double, floatformat_arm_ext)
4135 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4136 of LE/BE floatformats.
4137 * doublest.h: (struct floatformat, floatformat_ieee_single)
4138 (floatformat_ieee_double, floatformat_arm_ext)
4139 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4140
5c7f2947
MK
41412004-08-08 Mark Kettenis <kettenis@gnu.org>
4142
ecac404d
MK
4143 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4144
9b8607ce
MK
4145 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4146 instead of regcache_raw_supply when storing the registers.
4147
f6052080
MK
4148 * i386gnu-nat.c: Update copyright year.
4149 (gnu_store_registers): Don't use deprecated_registers and
4150 deprecated_registers_valid. Use regcache_valid_p and
4151 regcache_raw_supply instead.
4152
17777823
MK
4153 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4154 frame_pc_unwind.
4155
5240ceac
MK
4156 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4157 variables. Incapitalized "process".
4158
5c7f2947
MK
4159 * configure.in: Add cursesX to the list of possible curses libs.
4160 Add cursesX.h to the list of possible curses headers.
4161 * configure, config.in: Regenerate.
4162
da7d81e3
NW
41632004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4164
4165 * configure.in: Test for struct lwp in <sys/lwp.h>.
4166 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4167 the offset of l_addr in struct lwp.
4168
7f245d65
NW
41692004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4170
4171 * bsd-kvm.c: Include "gdbcore.h"
4172 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4173
47b3f456
AC
41742004-08-07 Andrew Cagney <cagney@gnu.org>
4175
70bd8e24
AC
4176 * gdbtypes.c (build_flt, build_complex): New functions.
4177 (gdbtypes_post_init): Use.
4178
9b0dea39
AC
4179 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4180
5cf7abac
AC
4181 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4182 through to builtin_type_uint128.
4183
64d2b26d
AC
4184 * c-exp.y: Use builtin_type function to obtain builtin types.
4185
7ad6570d
AC
4186 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4187 builtin_uint128.
4188 * gdbtypes.c (gdbtypes_post_init): Update.
4189 (build_gdbtypes): Move initialization of builtin_type_int0
4190 through to builtin_type_uint128 from here ...
4191 (_initialize_gdbtypes): ... to here.
4192 * d10v-tdep.c (d10v_register_type): Update.
4193
47b3f456
AC
4194 * doublest.c: Update copyright.
4195 (floatformat_from_length): Call error when floatformat is NULL.
4196 (extract_floating_by_length): Remove NULL fmt check.
4197 (store_floating_by_length): Ditto.
4198
0a8146bf
AC
41992004-08-07 Andrew Cagney <cagney@gnu.org>
4200
4201 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4202 that the register is valid.
4203
c0ccb908
MK
42042004-08-05 Mark Kettenis <kettenis@chello.nl>
4205
8e6bed05
MK
4206 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4207 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4208 struct frame_info *. Use safe_frame_unwind_memory instead of
4209 deprecated_read_memory_nobpt.
4210 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4211 changed signature of i386_linux_sigtramp_start and
4212 i386_linux_rt_sigtramp_start.
4213
24f9f5e3
MK
4214 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4215 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4216 instead of deprecated_read_memory_nobpt.
4217 (i386nbsd_sigtramp_p): Adjust for changed signature of
4218 i386nbsd_sigtramp_offset.
4219
c822af0c
MK
4220 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4221 safe_frame_unwind_memory instead of target_read_memory.
4222
c0ccb908
MK
4223 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4224 !NO_SYS_FILE.
4225 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4226 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4227 (_initialize_kernel_u_addr): Remove prototype and function.
4228 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4229 !NO_SYS_FILE.
4230 * xcoffread.c: Likewise.
4231
b9e1c0d6
MK
42322004-08-06 Mark Kettenis <kettenis@gnu.org>
4233
4234 * vax-nat.c: New file.
4235 * vaxbsd-nat.c: Tweak comment.
4236 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4237 vaxnbsd-tdep.c.
4238 (vax-nat.o): New dependency.
4239 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4240 (vax-*-ultrix2*): Remove.
4241 * config/vax/vax.mh: New file.
4242 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4243 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4244 (vax_register_u_addr): New prototype.
4245 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4246 * config/vax/vaxult2.mh: Remove file.
4247 * config/vax/vaxult.mh: Remove file.
4248 * config/vax/vaxbsd.mh: Remove file.
4249 * config/vax/vax.mt (TM_FILE): Remove.
4250 * config/vax/tm-vaxbsd.h: Remove file.
4251
9ad7bec7
JB
42522004-08-06 Joel Brobecker <brobecker@gnat.com>
4253
4254 * aix-thread.c (get_signaled_thread): New function.
4255 (iter_trap): Delete, no longer used.
4256 (iter_tid): New function.
4257 (pd_update): Find the thread that received the SIGTRAP signal
4258 by first locating the kernel thread, and then finding its
4259 associated thread.
4260
bf0d233d
UW
42612004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4262
4263 * lin-lwp.c (child_wait): Continue inferior after processing
4264 PTRACE_EVENT_CLONE event.
4265
d0f853e1
NN
42662004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4267
4268 * MAINTAINERS: Add self to Write-After-Approval.
4269
ab14aeb0
JJ
42702004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4271
4272 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4273 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4274
9c8dbfa9
AC
42752004-08-05 Andrew Cagney <cagney@gnu.org>
4276
c8f3ca46
AC
4277 * config/xm-sysv4.h: Delete file.
4278 * config/mips/xm-irix5.h: Delete file.
4279 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4280 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4281 * config/ia64/xm-aix.h: Delete file.
4282 * config/ia64/aix.mh (XM_FILE): Delete.
4283 * config/pa/xm-hppah.h: Delete file.
4284 * config/pa/hpux11w.mh (XM_FILE): Delete.
4285 * config/pa/hpux11.mh (XM_FILE): Delete.
4286 * config/pa/hpux1020.mh (XM_FILE): Delete.
4287 * config/pa/hppahpux.mh (XM_FILE): Delete.
4288
5f7daaff
AC
4289 * config/alpha/xm-alphalinux.h: Delete file.
4290 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4291 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4292 * config/alpha/xm-alphaosf.h: Delete file.
4293 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4294 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4295 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4296 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4297
69babf95
AC
4298 * config/i386/xm-i386v.h: Delete file.
4299 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4300 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4301 * config/i386/xm-i386sco.h: Delete file.
4302 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4303 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4304 * config/i386/xm-i386v4.h: Delete file.
4305 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4306 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4307 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4308 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4309
6f009c8a
AC
4310 * config/vax/xm-vax.h: Delete file.
4311 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4312 * config/vax/xm-vaxult2.h: Delete file.
4313 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4314 * config/vax/vaxult2.mh (XM_FILE): Delete.
4315 * config/vax/xm-vaxult.h: Delete file.
4316 * config/vax/vaxult.mh (XM_FILE): Delete.
4317 * config/vax/xm-vaxbsd.h: Delete file.
4318 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4319
9c8dbfa9
AC
4320 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4321 * gdbarch.h, gdbarch.c: Re-generate.
4322 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4323 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4324 * frame.h: Delete deprecated_read_fp from comments.
4325 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4326 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4327
84367a3e
MK
43282004-08-04 Mark Kettenis <kettenis@gnu.org>
4329
9c8e3411
MK
4330 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4331 trampoline in OpenBSD 3.5-current.
4332
b87bc0d8
MK
4333 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4334 SSE registers.
4335
84367a3e
MK
4336 * Makefile.in: Remove embedded page breaks.
4337
a44bddec
JB
43382004-08-04 Jim Blandy <jimb@redhat.com>
4339
7ab3286f
JB
4340 * regcache.c (regcache_raw_read): Assert that, after calling
4341 target_fetch_registers, the register we're reading is cached.
4342
a44bddec
JB
4343 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4344 a call to 'internal_error', with a more helpful error message.
4345 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 4346 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 4347
35124113
AC
43482004-08-04 Andrew Cagney <cagney@gnu.org>
4349
4350 * Makefile.in: Update dependencies.
4351
9f643768
JB
43522004-08-04 Jim Blandy <jimb@redhat.com>
4353
6ced10dd
JB
4354 Change the layout of the PowerPC E500 raw register cache to allow
4355 the lower 32-bit halves of the GPRS to be their own raw registers,
4356 not pseudoregisters.
4357 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4358 add ppc_ev0_upper_regnum flag.
4359 * rs6000-tdep.c: #include "reggroups.h".
4360 (spe_register_p): Recognize the ev upper half registers as SPE
4361 registers.
4362 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4363 registers.
4364 (e500_move_ev_register): New function.
4365 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4366 vector registers are the pseudo-registers now, formed by splicing
4367 together the gprs and the upper-half registers.
4368 (e500_register_reggroup_p): New function.
4369 (P): Macro deleted.
4370 (P8, A4): New macro.
4371 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4372 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4373 macros.
4374 (registers_e500): Rearrange register set so that the raw register
4375 set contains 32-bit GPRs and upper-half registers, and the SPE
4376 vector registers become pseudo-registers.
4377 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4378 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4379 register numbers are now the same for the E500 as they are for
4380 other PowerPC variants. Register e500_register_reggroup_p as the
4381 register group function for the E500.
4382 * Makefile.in (rs6000-tdep.o): Update dependencies.
4383
4384 Adapt PPC E500 native support to the new raw regcache layout.
4385 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4386 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4387 (fetch_spe_register, store_spe_register): Handle fetching/storing
4388 all the SPE registers at once, if regno == -1. These now take
4389 over the job of fetch_spe_registers and store_spe_registers.
4390 (fetch_spe_registers, store_spe_registers): Deleted.
4391 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4392 unconditionally; they're always raw. Fetch/store SPE upper half
4393 registers, if present, instead of ev registers.
4394 (fetch_register, store_register): Remove sanity checks: gprs are
4395 never pseudo-registers now, so we never need to even mention any
4396 registers that are ever pseudoregisters.
4397
9f643768
JB
4398 Use a fixed register numbering when communicating with the PowerPC
4399 simulator.
4400 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4401 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4402 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4403 New functions.
4404 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4405 init_sim_regno_table.
4406 * Makefile.in (gdb_sim_ppc_h): New variable.
4407 (rs6000-tdep.o): Update dependencies.
4408
1e2279c8
AC
44092004-08-02 Andrew Cagney <cagney@gnu.org>
4410
1d94326f
AC
4411 * cris-tdep.c (cris_register_size): Restore function, still used
4412 locally.
4413
331ae7ed
AC
4414 * gdbarch.sh (deprecated_target_read_fp)
4415 (deprecated_frame_locals_address, deprecated_frame_args_address)
4416 (deprecated_frame_chain_valid, deprecated_frame_chain)
4417 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4418 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4419 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4420 * gdbarch.h, gdbarch.c: Re-generate.
4421 * regcache.c (deprecated_read_fp): Do not call
4422 DEPRECATED_TARGET_READ_FP_P.
4423 * infcmd.c (default_print_registers_info): Do not call
4424 DEPRECATED_DO_REGISTERS_INFO.
4425 * frame-base.c (default_frame_locals_address): Do not call
4426 DEPRECATED_FRAME_LOCALS_ADDRESS.
4427 (default_frame_args_address): Do not call
4428 DEPRECATED_FRAME_ARGS_ADDRESS.
4429
1e2279c8
AC
4430 * gdbarch.sh (deprecated_register_raw_size)
4431 (deprecated_register_virtual_size:int): Delete.
4432 * gdbarch.h, gdbarch.c: Re-generate.
4433 * cris-tdep.c (cris_register_size): Delete.
4434 (cris_gdbarch_init): Update.
4435 * alpha-tdep.c (alpha_register_raw_size)
4436 (alpha_register_virtual_size): Delete.
4437 (alpha_gdbarch_init): Update.
4438
a90c06b4
AC
4439 * gdbarch.sh (deprecated_register_virtual_type)
4440 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4441 (deprecated_dummy_write_sp): Delete.
4442 * gdbarch.h, gdbarch.c: Re-generate.
4443
f42accbe
AC
4444 * gdbarch.sh (deprecated_register_bytes): Delete.
4445 * gdbarch.h, gdbarch.c: Re-generate.
4446 * regcache.c (deprecated_register_bytes): New function.
4447 * regcache.h (deprecated_register_bytes): Declare.
4448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4449 * v850-tdep.c (v850_gdbarch_init): Update.
4450 * sh64-tdep.c (sh64_gdbarch_init): Update.
4451 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4452 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4453 * mcore-tdep.c (mcore_gdbarch_init): Update.
4454 * cris-tdep.c (cris_gdbarch_init): Update.
4455 * arm-tdep.c (arm_gdbarch_init): Update.
4456 * remote.c (init_remote_state): Update.
4457 * remote-vx.c (vx_prepare_to_store): Update.
4458 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4459 * irix5-nat.c (fetch_core_registers): Update.
4460 * cris-tdep.c (cris_register_bytes_ok): Update.
4461 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4462
45c9dd44
AC
4463 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4464 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4465 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4466 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4467 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4468 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4469 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4470 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4471 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4472 with mips_insn16 and mips_insn32.
4473
3acba339
AC
4474 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4475 * rs6000-tdep.c (rs6000_push_dummy_call)
4476 (rs6000_extract_return_value): Use register_size.
4477 * xstormy16-tdep.c (xstormy16_get_saved_register)
4478 (xstormy16_extract_return_value): Ditto.
4479 * valops.c (value_assign): Ditto.
4480 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4481 * v850-tdep.c (v850_extract_return_value): Ditto.
4482 * tracepoint.c (collect_symbol): Ditto.
4483 * target.c (debug_print_register): Ditto.
4484 * stack.c (frame_info): Ditto.
4485 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4486 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4487 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4488 (store_register_using_P): Ditto.
4489 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4490 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4491 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4492 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4493 * regcache.c (deprecated_read_register_bytes)
4494 (deprecated_write_register_bytes, read_register)
4495 (write_register): Ditto.
4496 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4497 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4498 * monitor.c (monitor_supply_register, monitor_fetch_register)
4499 (monitor_store_register): Ditto.
4500 * mn10300-tdep.c (mn10300_pop_frame_regular)
4501 (mn10300_print_register): Ditto.
4502 * mipsv4-nat.c (fill_fpregset): Ditto.
4503 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4504 (mips64_fill_fpregset): Ditto.
4505 * mi/mi-main.c (register_changed_p, get_register)
4506 (mi_cmd_data_write_register_values): Ditto.
4507 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4508 * irix5-nat.c (fill_gregset, fetch_core_registers):
4509 * infrun.c (write_inferior_status_register): Ditto.
4510 * infptrace.c (fetch_register, store_register): Ditto.
4511 * infcmd.c (default_print_registers_info): Ditto.
4512 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4513 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4514 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4515 * hpux-thread.c (hpux_thread_fetch_registers)
4516 (hpux_thread_store_registers): Ditto.
4517 * hppah-nat.c (store_inferior_registers, fetch_register):
4518 * findvar.c (value_from_register): Ditto.
4519 * dve3900-rom.c (fetch_bitmapped_register):
4520 * cris-tdep.c (cris_gdbarch_init): Ditto.
4521 * alpha-tdep.h: Ditto.
4522 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4523
01e1877c
AC
4524 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4525 DEPRECATED_REGISTER_RAW_SIZE from comments.
4526 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4527 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4528 DEPRECATED_REGISTER_RAW_SIZE.
4529 * findvar.c (value_of_register): Simplify by assuming that the
4530 registers raw and virtual sizes are identical.
4531 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4532 comment.
4533 * arch-utils.c (generic_register_size): Simplify by assuming
4534 register_type.
4535
73f458fb
AC
4536 * regcache.c (legacy_read_register_gen, real_register)
4537 (legacy_write_register_gen): Delete, not used.
4538
336a3131
AC
4539 * regcache.c (struct regcache_descr): Delete legacy_p.
4540 (init_legacy_regcache_descr): Delete function.
4541 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4542 Do not use deprecated register functions.
4543 (regcache_raw_read, deprecated_write_register_gen):
4544 (deprecated_read_register_gen, regcache_raw_write): Delete code
4545 predicated on legacy_p.
4546 (register_size): Delete check against register raw size.
4547
c1d546cd
AC
4548 * cris-tdep.c (cris_register_type): Replace
4549 cris_register_virtual_type.
4550 (cris_gdbarch_init): Update, set register_type.
4551
48c2c0a6
AC
4552 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4553 * gdbarch.h, gdbarch.c: Re-generate.
4554 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4555 (arm_gdbarch_init) Do not set frameless function invocation.
4556 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4557 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4558 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4559 (frv_gdbarch_init): Do not set frameless function invocation.
4560 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4561 * sh-tdep.c (sh_gdbarch_init): Ditto.
4562 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4563 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4564 * avr-tdep.c (avr_gdbarch_init): Ditto.
4565
474093a6
AC
4566 * blockframe.c (legacy_frame_chain_valid): Delete function.
4567
3c109c8b
AC
4568 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4569 and pc. Update comments.
4570 (pc_in_dummy_frame): Delete function.
4571 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4572 use the "id".
4573 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4574 call_hi, top and pc, use the id.
4575 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4576
96860204
AC
4577 * dummy-frame.c: Include "gdb_string.h".
4578 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4579 (generic_save_dummy_frame_tos): Delete.
4580 (dummy_frame_push): New function, replaces above.
4581 * dummy-frame.h: Update copyright.
4582 (dummy_frame_push): Declare.
4583 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4584 (generic_save_call_dummy_addr): Delete declarations.
4585 * infcall.c: Include "dummy-frame.h".
4586 (call_function_by_hand): Add locals caller_regcache,
4587 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4588 with call to frame_save_as_regcache plus cleanup. Delete calls to
4589 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4590 Move clear_proceed_status to just before the resume, add call to
4591 dummy_frame_push (discard cleanup).
4592 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4593 (dummy-frame.o): Add $(gdb_string_h).
4594
d67ec5db
AC
45952004-08-01 Andrew Cagney <cagney@gnu.org>
4596
4597 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4598 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4599 * dummy-frame.c (find_dummy_frame): Delete.
4600 (struct dummy_frame_cache, dummy_frame_sniffer)
4601 (dummy_frame_prev_register, dummy_frame_this_id)
4602 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4603 frame unwinder using a dummy_frame_cache.
4604
a81dcb05
AC
46052004-08-01 Andrew Cagney <cagney@gnu.org>
4606
4607 * frame.h (frame_save_as_regcache): Declare.
4608 * frame.c (frame_save_as_regcache): New function.
4609 (do_frame_read_register): Replace do_frame_unwind_register.
4610 (frame_pop): Use frame_save_as_regcache.
4611 * dummy-frame.c (generic_push_dummy_frame): Use
4612 frame_save_as_regcache.
4613
aa495d11
JB
46142004-08-01 Joel Brobecker <brobecker@gnat.com>
4615
4616 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4617 file as included until we record the first line in the linetable.
4618
ff65ac78
AC
46192004-08-01 Andrew Cagney <cagney@gnu.org>
4620
4621 * frame.h (deprecated_pop_dummy_frame)
4622 (deprecated_read_register_dummy)
4623 (deprecated_generic_find_dummy_frame): Delete.
4624 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4625 (deprecated_read_register_dummy)
4626 (deprecated_find_dummy_frame_regcache)
4627 (discard_innermost_dummy)
4628 (deprecated_pop_dummy_frame): Delete.
4629 (dummy_frame_this_id): Simplify.
4630 (struct dummy_frame): Delete "fp" and "sp".
4631 (find_dummy_frame): Simplify.
4632 (generic_push_dummy_frame): Do not set "fp" or "sp".
4633 (fprint_dummy_frames): Do not print "fp" and "sp"
4634
37bdc87e
MK
46352004-08-01 Mark Kettenis <kettenis@gnu.org>
4636
4637 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4638 (struct i386_insn): New structure.
4639 (i386_match_insn): New function.
4640 (i386_frame_setup_skip_insns): New variable.
4641 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4642 array i386_frame_setup_insns of instructions that should be
4643 skipped inside the frame setup sequence.
4644
8241eaa6
AC
46452004-08-01 Andrew Cagney <cagney@gnu.org>
4646
5bc602c7
AC
4647 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4648 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4649 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4650 * stack.c (frame_info): Delete references to
4651 DEPRECATED_FRAME_INIT_SAVED_REGS and
4652 deprecated_get_frame_saved_regs.
4653 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4654 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4655 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4656 (frame_unwind_register_signed)
4657 (frame_unwind_register_unsigned)
4658 (frame_unwind_unsigned_register): Use register_size.
4659 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4660 (deprecated_frame_xmalloc_with_cleanup)
4661 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4662 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4663
03d363a1
AC
4664 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4665 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4666 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4667 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4668
8241eaa6
AC
4669 * infcall.c (call_function_by_hand): Do not use
4670 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4671 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4672 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4673 DEPRECATED_STACK_ALIGN.
4674
f00df8b7
AC
46752004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4676
4677 Committed by Andrew Cagney.
4678 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4679
eec63939
AC
46802004-08-01 Andrew Cagney <cagney@gnu.org>
4681
4682 * mips-tdep.c (mips16_frame_cache)
4683 (mips16_frame_this_id, mips16_frame_prev_register)
4684 (mips16_frame_unwind, mips16_frame_sniffer)
4685 (mips16_frame_base_address, mips16_frame_base)
4686 (mips16_frame_base_sniffer, mips32_frame_cache)
4687 (mips32_frame_this_id, mips32_frame_prev_register)
4688 (mips32_frame_unwind, mips32_frame_sniffer)
4689 (mips32_frame_base_address, mips32_frame_base)
4690 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4691 separate heuristic mips16 and mips32 unwinders.
4692 (mips_stub_frame_cache, mips_stub_frame_this_id)
4693 (mips_stub_frame_prev_register)
4694 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4695 (mips_stub_frame_base_address, mips_stub_frame_base)
4696 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4697 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4698 match true mdebug frames.
4699 (non_heuristic_proc_desc): Add forward declaration.
4700
e66299b3
AC
47012004-08-01 Andrew Cagney <cagney@gnu.org>
4702
83cbbf3e
AC
4703 * config/mips/tm-irix6.h: Delete file.
4704 * config/mips/tm-irix5.h: Delete file.
4705 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4706 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4707
22d41b37
AC
4708 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4709 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4710 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4711 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4712 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4713 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4714 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4715 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4716 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4717 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4718 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4719 (TARGET_SIGNAL_RAW_VALUES): Delete.
4720 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4721 Delete.
4722 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4723 (TARGET_HW_WATCH_LIMIT): Delete.
4724 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4725 * minimon.h: Delete file.
4726
e66299b3
AC
4727 * trad-frame.c (trad_frame_get_this_base)
4728 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4729 functions.
4730 * trad-frame.h (trad_frame_set_this_base)
4731 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4732
1f67027d
AC
47332004-07-31 Andrew Cagney <cagney@gnu.org>
4734
4735 * trad-frame.c (trad_frame_get_prev_register): Rename
4736 trad_frame_get_prev_register.
4737 * vax-tdep.c (vax_frame_prev_register): Update.
4738 * trad-frame.h: Update.
4739 * trad-frame.c (trad_frame_get_register): Update.
4740 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4741 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4742 Update.
4743 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4744 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4745 Update.
4746 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4747 Update.
4748 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4749 Update.
4750 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4751 Update.
4752 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4753 Update.
4754 * s390-tdep.c (s390_frame_prev_register)
4755 (s390_stub_frame_prev_register)
4756 (s390_sigtramp_frame_prev_register): Update.
4757 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4758 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4759 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4760 * m88k-tdep.c (m88k_frame_prev_register)
4761 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4762 * m32r-tdep.c (m32r_frame_prev_register): Update.
4763 * hppa-tdep.c (hppa_frame_prev_register_helper)
4764 * frv-tdep.c (frv_frame_prev_register): Update.
4765 * d10v-tdep.c (d10v_frame_prev_register): Update.
4766 * cris-tdep.c (cris_frame_prev_register): Update.
4767 * avr-tdep.c (avr_frame_prev_register): Update.
4768 * arm-tdep.c (arm_prologue_prev_register)
4769 (arm_sigtramp_prev_register): Update.
4770
c1bf6f65
AC
47712004-07-31 Andrew Cagney <cagney@gnu.org>
4772
4773 * frame.h (legacy_saved_regs_unwind)
4774 (legacy_frame_chain_valid, legacy_frame_p)
4775 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4776 * dummy-frame.c (dummy_frame_this_id): Simplify.
4777 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4778 * frame.c (struct frame_info): Delete the field "type".
4779 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4780 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4781 (legacy_saved_regs_unwind, legacy_frame_p)
4782 (frame_type_from_pc): Delete.
4783 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4784 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4785
dc856692
MK
47862004-07-31 Mark Kettenis <kettenis@gnu.org>
4787
5a5effe1
MK
4788 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4789 indentation.
4790
d4fd50a6
MK
4791 * mips-nat.c: Remove file.
4792 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4793 (mips-nat.o): Remove dependency.
4794
2689df5a
MK
4795 * infptrace.c: Update copyright year.
4796 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4797 explicitly setting the buffer to all zeroes.
4798
dc856692
MK
4799 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4800 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4801
763910e0
AC
48022004-07-30 Andrew Cagney <cagney@gnu.org>
4803
4804 * GDB 6.2 released from gdb_6_2-branch.
4805
0b66e38c
EZ
48062004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4807
4808 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4809
4810 * exec.c (exec_file_attach):
4811 * nto-tdep.c (nto_find_and_open_solib):
4812 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4813 * solib.c (solib_open):
4814 * somsolib.c (som_solib_sizeof_symbol_table):
4815 * source.c (is_regular_file, openp, open_source_file):
4816 * symfile.c (symfile_bfd_open):
4817 * wince.c (upload_to_device): Differentiate between the search for
4818 binary and source files.
4819
be7d7357
AC
48202004-07-30 Andrew Cagney <cagney@gnu.org>
4821
4822 * complaints.c (_initialize_complaints): Pass NULL to
4823 add_setshow_zinteger_cmd for help_doc.
4824 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4825
ddc9cd0f
AC
48262004-07-30 Andrew Cagney <cagney@gnu.org>
4827
4828 Fix PR i18n/761.
4829 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4830 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4831 $(PACKAGE).pot and update-po.
4832 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4833 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4834 (update-po): New rules.
4835 (localedir): Define using autoconf.
4836 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4837 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4838 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4839 * configure.in: Generate CATALOGS and LINGUAS from contents of
4840 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4841 * configure: Re-generate.
4842 * po/gdbtext: New file
4843
e92f3704
JG
48442004-07-30 Jerome Guitton <guitton@gnat.com>
4845
4846 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4847 order.
4848
b0f35d58
DL
48492004-07-30 David Lecomber <dsl@sources.redhat.com>
4850
4851 * dwarf2read.c (read_file_scope): Set producer if attribute
4852 present.
4853 (struct dwarf2_cu): Added new member producer.
4854
ce7d4522
JG
48552004-07-30 Jerome Guitton <guitton@gnat.com>
4856
4857 * inflow.c (kill_command): release file handles in BFD.
4858 * exec.c (exec_file_attach): Ditto.
4859 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4860
05ee07c7
AC
48612004-07-29 Andrew Cagney <cagney@gnu.org>
4862
4863 * PROBLEMS (mips-irix): Note that it is broken.
4864
62eceb47
AC
48652004-07-29 Andrew Cagney <cagney@gnu.org>
4866
e57b8d41
AC
4867 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4868 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4869
d334389b
AC
4870 * config/xm-nbsd.h: Delete file.
4871 * config/arm/xm-nbsd.h: Delete file.
4872 * config/i386/xm-nbsd.h: Delete file.
4873 * config/ns32k/xm-nbsd.h: Delete file.
4874 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4875 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4876 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4877 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4878 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4879
e910f676
AC
4880 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4881 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4882 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4883 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4884 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4885 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4886
6fa856b9
AC
4887 * config/powerpc/xm-linux.h: Delete empty file.
4888 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4889 * config/powerpc/linux.mh (XM_FILE): Delete.
4890 * config/m68k/xm-linux.h: Delete empty file.
4891 * config/m68k/linux.mh (XM_FILE): Delete.
4892 * config/ia64/xm-linux.h: Delete empty file.
4893 * config/ia64/linux.mh (XM_FILE): Delete.
4894 * config/arm/xm-linux.h: Delete empty file.
4895 * config/arm/linux.mh (XM_FILE): Delete.
4896
471ae5ae
AC
4897 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4898 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4899 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4900 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4901 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4902 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4903 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4904 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4905
62eceb47
AC
4906 * config/m68k/xm-m68k.h: Delete file.
4907 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4908 copyright.
4909 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4910 * config/pa/xm-linux.h: Delete empty file.
4911 * config/pa/linux.mh (XM_FILE): Delete.
4912 * config/i386/xm-i386.h: Delete empty file.
4913 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4914 "i386/xm-i386.h".
4915 * config/i386/obsdaout.mh (XM_FILE): Delete.
4916 * config/i386/obsd64.mh (XM_FILE): Delete.
4917 * config/i386/fbsd64.mh (XM_FILE): Delete.
4918 * config/i386/nto.mh (XM_FILE): Delete.
4919 * config/i386/obsd.mh (XM_FILE): Delete.
4920 * config/i386/linux64.mh (XM_FILE): Delete.
4921 * config/i386/linux.mh (XM_FILE): Delete.
4922 * config/i386/i386sol2.mh (XM_FILE): Delete.
4923 * config/i386/i386gnu.mh (XM_FILE): Delete.
4924 * config/i386/fbsd.mh (XM_FILE): Delete.
4925 * config/i386/nbsd64.mh (XM_FILE): Delete.
4926
c35f4ffc
AC
49272004-07-29 Andrew Cagney <cagney@gnu.org>
4928
4929 * config/pa/xm-linux.h: Do not include "floatformat.h".
4930 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4931 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4932 * config/i386/xm-i386.h: Do not include "floatformat.h".
4933 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4934 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4935 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4936 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4937 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4938 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4939 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4940 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4941 * configure, config.in: Regenerate.
4942 * configure.host (gdb_host_float_format, gdb_host_double_format)
4943 (gdb_host_long_double_format): Set according to the host.
4944
624a44a3
AC
49452004-07-29 Andrew Cagney <cagney@gnu.org>
4946
4947 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4948
0dea2468
AC
49492004-07-28 Andrew Cagney <cagney@gnu.org>
4950
4951 * PROBLEMS: Mention threads/1650.
4952 * NEWS: Mention the NPTL fix.
4953
b3f42336
AC
49542004-07-28 Andrew Cagney <cagney@gnu.org>
4955
4956 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4957 (add_setshow_cmd_full): Make static.
4958 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4959 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4960 * cli/cli-decode.c (add_setshow_filename_cmd)
4961 (add_setshow_string_cmd): New functions.
4962 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4963 * mips-tdep.c (_initialize_mips_tdep): Update.
4964 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4965 * cli/cli-logging.c (_initialize_cli_logging): Update.
4966 * complaints.c (_initialize_complaints): Update.
4967 * remote.c (_initialize_remote): Update.
4968
3b64bf98
AC
49692004-07-28 Andrew Cagney <cagney@gnu.org>
4970
4971 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4972 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4973 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4974 print parameters. Make string parameters constant.
4975 * command.h: Update. Update copyright.
4976 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4977 * observer.c (_initialize_observer): Ditto.
4978 * frame.c (_initialize_frame): Ditto.
4979 * complaints.c (_initialize_complaints): Ditto.
4980 * maint.c (_initialize_maint_cmds): Ditto.
4981 * target.c (initialize_targets): Ditto.
4982 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4983 * infcall.c (_initialize_infcall): Ditto.
4984 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4985 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4986 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4987 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4988 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4989
e9667a65
AC
49902004-07-28 Andrew Cagney <cagney@gnu.org>
4991
54a5b07d
AC
4992 * gdbtypes.c (lookup_primitive_typename): Delete function.
4993 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4994 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4995 * gdbtypes.c (lookup_typename): Ditto.
4996 * f-exp.y (yylex): Ditto.
4997 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4998
e9667a65
AC
4999 * scm-lang.c (c_builtin_types): Delete extern declaration.
5000 (scm_language_defn): Replace
5001 string_char_type and primitive_type_vector with
5002 la_language_arch_info.
5003 * jv-lang.c (java_language_defn): Replace
5004 string_char_type and primitive_type_vector with
5005 la_language_arch_info.
5006 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5007 c_builtin_types in comment.
5008 * c-lang.h (struct language_arch_info): Declare opaque.
5009 (c_language_arch_info): Declare.
5010 (c_builtin_types): Delete declaration.
5011 * c-lang.c (c_language_arch_info): Set string_char_type to
5012 builtin_char, not builtin_true_char. Make global.
5013 (c_builtin_types): Delete array.
5014 (asm_language_defn, minimal_language_defn): Replace
5015 string_char_type and primitive_type_vector with
5016 la_language_arch_info.
5017
685419e2
AC
50182004-07-28 Andrew Cagney <cagney@gnu.org>
5019
5020 * gdbtypes.h (struct builtin_type): Rename true_char to
5021 builtin_true_char.
5022 * gdbtypes.c (gdbtypes_post_init): Update.
5023 * c-lang.c (arch_info): New function.
5024 (enum c_primitive_types): New enum.
5025 (c_language_defn): Instead of string_char_type and
5026 primitive_type_vector set la_language_arch_info.
5027
5a44ea29
AC
50282004-07-28 Andrew Cagney <cagney@gnu.org>
5029
5030 * language.h (struct language_arch_info): Fix typo
5031 s/primative/primitive/.
5032 * gdbtypes.c (lookup_primitive_typename): Ditto.
5033 * language.c (language_lookup_primitive_type_by_name)
5034 (unknown_language_arch_info): Ditto.
5035
f290d38e
AC
50362004-07-27 Andrew Cagney <cagney@gnu.org>
5037
5038 * defs.h (enum language): Add nr_languages.
5039 * language.h (struct language_arch_info): Define.
5040 (struct language_defn): Add la_language_arch_info.
5041 (language_lookup_primative_type_by_name): Declare.
5042 (language_string_char_type): Declare.
5043 * language.c (_initialize_language, language_gdbarch_post_init)
5044 (struct language_gdbarch, language_gdbarch_data): Implement
5045 per-architecture language information.
5046 (unknown_language_arch_info, language_string_char_type)
5047 (language_lookup_primative_type_by_name): New functions.
5048 (unknown_language_defn, auto_language_defn)
5049 (local_language_defn): Set la_language_arch_info to
5050 unknown_language_arch_info.
5051 (unknown_builtin_types): Delete.
5052 * gdbtypes.c (lookup_primitive_typename): Use
5053 language_lookup_primative_type_by_name.
5054 (create_string_type): Use language_string_char_type.
5055 * values.c (value_from_string): Use language_string_char_type.
5056 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5057 * p-lang.c (pascal_language_defn): Ditto.
5058 * m2-lang.c (m2_language_defn): Ditto.
5059 * jv-lang.c (java_language_defn): Ditto.
5060 * objc-lang.c (objc_language_defn): Ditto.
5061 * f-lang.c (f_language_defn): Ditto.
5062 * c-lang.c (c_language_defn, cplus_language_defn)
5063 (asm_language_defn, minimal_language_defn): Ditto.
5064
000177f0
AC
50652004-07-27 Andrew Cagney <cagney@gnu.org>
5066
5067 * gdbtypes.h (struct builtin_type): Declare.
5068 (builtin_type): Declare.
5069 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5070 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5071 (gdbtypes_post_init): New function.
5072 (builtin_type): New function.
5073
e22f895c
KI
50742004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5075
5076 * remote-m32r-sdi.c: Fix breakpoint bug.
5077 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5078 recv_char_data, recv_long_data): New functions to replace communication
5079 sequences.
5080
536517dd
MC
50812004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5082
5083 Document PR threads/1650.
5084 * PROBLEMS (Threads): Document problem with many threads
5085
a0a44d18
AC
50862004-07-26 Andrew Cagney <cagney@gnu.org>
5087
5088 * gdb-mi.el: Move from here ...
5089 * mi/gdb-mi.el: ... to here.
5090
7ac4ac06
AC
50912004-07-26 Andrew Cagney <cagney@gnu.org>
5092
5093 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5094 * main.c (captured_main): When in batch mode always detach.
5095
a1b461bf
AC
50962004-07-26 Andrew Cagney <cagney@gnu.org>
5097
5098 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5099 and h8300 as broken.
5100 * NEWS: END-OF-LIFE frame compatibility module.
5101 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5102 specific comments.
5103
cb1a6d5f
AC
51042004-07-26 Andrew Cagney <cagney@gnu.org>
5105
5106 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5107 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5108 * wince.c (_initialize_wince): Update.
5109 * win32-nat.c (_initialize_win32_nat): Update.
5110 * varobj.c (_initialize_varobj): Update.
5111 * valops.c (_initialize_valops): Update.
5112 * utils.c (initialize_utils, initialize_utils): Update.
5113 * tui/tui-win.c (_initialize_tui_win): Update.
5114 * top.c (init_main): Update.
5115 * symfile.c (_initialize_symfile): Update.
5116 * source.c (_initialize_source): Update.
5117 * somsolib.c (_initialize_som_solib): Update.
5118 * solib.c (_initialize_solib): Update.
5119 * solib-frv.c (_initialize_frv_solib): Update.
5120 * serial.c (_initialize_serial): Update.
5121 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5122 * remote.c (_initialize_remote, _initialize_remote): Update.
5123 * remote-vx.c (_initialize_vx): Update.
5124 * remote-utils.c (_initialize_sr_support): Update.
5125 * remote-sds.c (_initialize_remote_sds): Update.
5126 * remote-mips.c (_initialize_remote_mips): Update.
5127 * remote-e7000.c (_initialize_remote_e7000): Update.
5128 * proc-api.c (_initialize_proc_api): Update.
5129 * printcmd.c: Update.
5130 * parse.c (_initialize_parse): Update.
5131 * pa64solib.c (_initialize_pa64_solib): Update.
5132 * p-valprint.c (_initialize_pascal_valprint): Update.
5133 * monitor.c (_initialize_remote_monitors): Update.
5134 * mips-tdep.c (_initialize_mips_tdep): Update.
5135 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5136 * maint.c (_initialize_maint_cmds): Update.
5137 * lin-lwp.c (_initialize_lin_lwp): Update.
5138 * language.c (_initialize_language): Update.
5139 * kod.c (_initialize_kod): Update.
5140 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5141 * i386-tdep.c (_initialize_i386_tdep): Update.
5142 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5143 * gdbarch.sh: Update.
5144 * gdbarch.c: Re-generate.
5145 * gdb-events.sh: Update.
5146 * gdb-events.c: Re-generate.
5147 * frame.c (_initialize_frame): Update.
5148 * exec.c: Update.
5149 * demangle.c (_initialize_demangler): Update.
5150 * dcache.c (_initialize_dcache): Update.
5151 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5152 * cp-valprint.c (_initialize_cp_valprint): Update.
5153 * corefile.c (_initialize_core): Update.
5154 * command.h: Update.
5155 * cli/cli-decode.h: Update.
5156 * cli/cli-cmds.c (init_cli_cmds): Update.
5157 * charset.c (_initialize_charset): Update.
5158 * breakpoint.c (_initialize_breakpoint): Update.
5159 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5160 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5161 * aix-thread.c (_initialize_aix_thread): Update.
5162
b4632131
MK
51632004-07-24 Mark Kettenis <kettenis@gnu.org>
5164
5165 Partial fix for PR backtrace/1718.
5166 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5167 that GCC migrates into the prolugue. Don't handle any
5168 instructions that clobber %ebx.
5169
822c9732
AC
51702004-07-23 Andrew Cagney <cagney@gnu.org>
5171
5172 Use regcache_raw_collect instead of regcache_collect.
5173 * regcache.h (regcache_collect): Delete declaration.
5174 * regcache.c (regcache_colect): Delete function.
5175 * win32-nat.c (do_child_store_inferior_registers): Update.
5176 * sol-thread.c (sol_thread_store_registers): Update.
5177 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5178 * rs6000-nat.c (store_register): Update.
5179 * remote.c (store_register_using_P, remote_store_registers): Update.
5180 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5181 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5182 (fill_vrregset, store_spe_registers, fill_gregset)
5183 (fill_gregset): Update.
5184 * nto-procfs.c (procfs_store_registers): Update.
5185 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5186 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5187 * m68klinux-nat.c (store_register, fill_gregset): Update.
5188 * m68k-tdep.c (fill_gregset): Update.
5189 * infptrace.c (store_register): Update.
5190 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5191 * i386-linux-nat.c (store_register, fill_gregset): Update.
5192 * hppa-linux-nat.c (fill_gregset): Update.
5193 * go32-nat.c (store_register): Update.
5194 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5195 (store_fp_regs): Update.
5196 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5197 (store_nwfpe_extended, store_fpregister, store_fpregs)
5198 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5199 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5200 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5201 (store_regs_user_thread, store_regs_kernel_thread): Update.
5202
32b05c07
MK
52032004-07-24 Mark Kettenis <kettenis@gnu.org>
5204
5205 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5206 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5207 encoding.
5208 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5209 member of `struct comp_unit'.
5210
8567c30f
AC
52112004-07-23 Andrew Cagney <cagney@gnu.org>
5212
5213 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5214 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5215
f6da8dd8
MH
52162004-07-23 Martin Hunt <hunt@redhat.com>
5217 Kevin Buettner <kevinb@redhat.com>
5218
5219 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5220 alignment was being added to the offset instead of multiplied.
5221
bd921882
MK
52222004-07-23 Mark Kettenis <kettenis@gnu.org>
5223
24f033e8
MK
5224 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5225 changed signal trampoline in OpenBSD 3.5-current.
5226
90f3cecd
MK
5227 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5228 <machine/pcb.h> and "bsd-kvm.h".
5229 (sparc64nbsd_supply_pcb): New function.
5230 (_initialize_sparc64nbsd_nat): Renamed from
5231 _initialize_sparcnbsd_nat. Enable libkvm interface.
5232 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5233 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5234 (LOADLIBES): New variable.
5235
a4954a62
MK
5236 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5237
bd921882
MK
5238 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5239
23a6d369
AC
52402004-07-21 Andrew Cagney <cagney@gnu.org>
5241
5242 Use regcache_raw_supply instead of supply_register.
5243 * regcache.h (supply_register): Delete declaration.
5244 * regcache.c (supply_register): Delete function.
5245 * wince.c (do_child_fetch_inferior_registers): Update.
5246 * win32-nat.c (do_child_fetch_inferior_registers)
5247 (fetch_elf_core_registers): Update.
5248 * v850ice.c (v850ice_fetch_registers): Update.
5249 * thread-db.c (thread_db_store_registers): Update.
5250 * sol-thread.c (sol_thread_store_registers): Update.
5251 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5252 * rs6000-nat.c (fetch_register): Update.
5253 * rom68k-rom.c (rom68k_supply_one_register): Update.
5254 * remote.c (remote_wait, remote_async_wait): Update.
5255 * remote-st.c (get_hex_regs): Update.
5256 * remote-sim.c (gdbsim_fetch_register): Update.
5257 * remote-sds.c (sds_fetch_registers): Update.
5258 * remote-rdp.c (remote_rdp_fetch_register): Update.
5259 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5260 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5261 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5262 * remote-hms.c (init_hms_cmds): Update.
5263 * remote-est.c (init_est_cmds): Update.
5264 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5265 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5266 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5267 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5268 (fetch_register, supply_vrregset, supply_vrregset)
5269 (fetch_spe_registers): Update.
5270 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5271 * monitor.c (monitor_supply_register): Update.
5272 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5273 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5274 (mipsnbsd_supply_fpreg): Update.
5275 * mips-nat.c (fetch_inferior_registers)
5276 (fetch_core_registers): Update.
5277 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5278 (supply_fpregset, mips64_supply_gregset)
5279 (mips64_supply_fpregset): Update.
5280 * m68klinux-nat.c (fetch_register, supply_gregset)
5281 (supply_fpregset): Update.
5282 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5283 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5284 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5285 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5286 * infptrace.c (fetch_register): Update.
5287 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5288 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5289 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5290 (gnu_fetch_registers, gnu_store_registers): Update.
5291 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5292 * i386-linux-nat.c (fetch_register, supply_gregset)
5293 (dummy_sse_values): Update.
5294 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5295 * hppah-nat.c (fetch_register): Update.
5296 * hppa-linux-nat.c (fetch_register, supply_gregset)
5297 (supply_fpregset): Update.
5298 * go32-nat.c (fetch_register): Update.
5299 * dve3900-rom.c (fetch_bitmapped_register)
5300 (_initialize_r3900_rom): Update.
5301 * cris-tdep.c (supply_gregset): Update.
5302 * abug-rom.c (init_abug_cmds): Update.
5303 * core-aout.c (fetch_core_registers): Update.
5304 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5305 (fetch_register, fetch_fp_register): Update.
5306 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5307 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5308 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5309 * alphanbsd-tdep.c (fetch_core_registers): Update.
5310 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5311 * alpha-nat.c (fetch_osf_core_registers)
5312 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5313 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5314 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5315
73cc75f3
AC
53162004-07-21 Andrew Cagney <cagney@gnu.org>
5317
5318 * PROBLEMS: Mention breakpoints/1702.
5319 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5320 that is known to work.
5321
a53c66de
AC
53222004-07-21 Andrew Cagney <cagney@gnu.org>
5323
5324 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5325 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5326 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5327 (handle_inferior_event): Wrap call to deprecated
5328 IGNORE_HELPER_CALL in #ifdef.
5329 * config/mips/tm-nbsd.h: Update.
5330
708ff411
JB
53312004-07-20 Jim Blandy <jimb@redhat.com>
5332
412b3060
JB
5333 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5334 bfd_mach_ppc has no segment registers.
5335
13ac140c
JB
5336 Include PowerPC SPR numbers for special-purpose registers.
5337 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5338 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5339 new member in initializer.
5340 (S, S4, SN4, S64): New macros for defining special-purpose
5341 registers.
5342 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5343 registers_403, registers_403GC, registers_505, registers_860,
5344 registers_601, registers_602, registers_603, registers_604,
5345 registers_750, registers_e500): Use them.
5346
708ff411
JB
5347 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5348 replace references with expression used to initialize variable.
5349
1f602b35
AC
53502004-07-20 Andrew Cagney <cagney@gnu.org>
5351
5352 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5353 read_memory_nobpt.
5354 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5355 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5356 (s390_sigtramp_frame_sniffer): Update.
5357 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5358 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5359 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5360 (mips32_fetch_instruction): Update.
5361 * mcore-tdep.c (get_insn): Update.
5362 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5363 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5364 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5365 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5366 (i386_linux_rt_sigtramp_start): Update.
5367 * i386-linux-nat.c (child_resume): Update.
5368 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5369 * hppa-linux-tdep.c (insns_match_pattern): Update.
5370 * gdbcore.h: Update.
5371 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5372 * frame.c (safe_frame_unwind_memory): Update.
5373 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5374 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5375 * alpha-tdep.c (alpha_read_insn): Update.
5376
2cd8546d
AC
53772004-07-20 Andrew Cagney <cagney@gnu.org>
5378
5379 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5380 containing both bytes and mask. Add "frame_type".
5381 * tramp-frame.c (tramp_frame_start): Update.
5382 (tramp_frame_prepend_unwinder): Update.
5383 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5384 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5385 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5386 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5387
f928dd62
EZ
53882004-07-19 Eli Zaretskii <eliz@gnu.org>
5389
5390 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5391 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5392 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5393 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5394
d5c560f7
AC
53952004-07-17 Andrew Cagney <cagney@gnu.org>
5396
860660cb
AC
5397 * NEWS, PROBLEMS: Update for 6.2.
5398
8c266f54
AC
5399 * README: Update to 6.2.
5400
a552edd9
AC
5401 * utils.c (xvasprintf): Call xstrvprintf.
5402
c4a172b5
AC
5403 * parse.c: Update copyright.
5404 (null_post_parser): Eliminate ARGSUSED.
5405
da745b36
AC
5406 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5407 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5408 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5409
9cbc6ef0
AC
5410 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5411 * ppc-linux-nat.c: Use "Linux kernel".
5412 * hppa-linux-tdep.c: Use GNU/Linux.
5413 * hppa-linux-nat.c: Use GNU/Linux.
5414 * dwarfread.c: Add [sic] to use of Linux.
5415
1b89295f
AC
5416 * hppa-linux-nat.c: Do not include <string.h>.
5417 (supply_fpregset): Remove "register" attribute.
5418
d5c560f7
AC
5419 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5420
7ddd7709
MK
54212004-07-17 Mark Kettenis <kettenis@gnu.org>
5422
b1d19a62
MK
5423 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5424 * configure, config.in: Regenerated.
5425
7ddd7709
MK
5426 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5427 "bsd-kvm.h".
5428 (vaxbsd_supply_pcb): New function.
5429 (_initialize_vaxbsd_nat): New prototype and function.
5430 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5431 solib-sunos.o.
5432 (LOADLIBES): New variable.
5433 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5434 (LOADLIBES): New variable.
5435 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5436 (LOADLIBES): New variable.
5437 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5438
2c07db7a
AC
54392004-07-16 Andrew Cagney <cagney@gnu.org>
5440
5441 * defs.h (event_loop_p): Replace variable declaration with macro,
5442 always 1.
5443 * main.c (captured_main): Delete options "-async" and "-noasync".
5444 (event_loop_p): Delete variable.
5445 * NEWS: Mention that "-async" and "-noasync" were removed.
5446
717eb1cf
AC
54472004-07-16 Andrew Cagney <cagney@gnu.org>
5448
5449 * remote-m32r-sdi.c: Re-indent.
5450
c101bc14
JB
54512004-07-16 Jim Blandy <jimb@redhat.com>
5452
5109a438
JB
5453 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5454 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5455 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5456 missing MPC823 SPRs.
5457 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5458 incorrect. (This was corrected in GDB's register name tables on
5459 2004-07-14.)
5460
c101bc14
JB
5461 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5462 should be "esasrr" ("ESA Save and Restore Register").
5463
7ce450bd
AC
54642004-07-16 Andrew Cagney <cagney@gnu.org>
5465
5466 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5467 calls, no longer applicable. Update comments and rename parameter
5468 "step_frame" to "return_frame".
5469
ca73dd9d
AC
54702004-07-16 Andrew Cagney <cagney@gnu.org>
5471
5472 * frame.c (fprint_field): New function.
5473 (fprint_frame_id): Use fprint_field.
5474
31941f6d
JB
54752004-07-15 Joel Brobecker <brobecker@gnat.com>
5476
5477 * ada-lang.c (ada_language_defn): Remove commented out code.
5478
f86a7158
JB
54792004-07-15 Jim Blandy <jimb@redhat.com>
5480
5481 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5482 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5483
c24791ec
JB
54842004-07-14 Jim Blandy <jimb@redhat.com>
5485
29bb1356
JB
5486 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5487
cc98b5cc
JB
5488 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5489
8f088af7
JB
5490 * ppc-tdep.h (ppc_num_srs): New enum constant.
5491
0ea0ec5f
JB
5492 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5493 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5494 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5495 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5496 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5497 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5498 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5499 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5500 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5501 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5502 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5503 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5504 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5505 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5506 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5507 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5508 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5509 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5510 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5511 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5512 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5513 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5514 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5515 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5516 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5517 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5518 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5519 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5520 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5521 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5522 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5523 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5524 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5525 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5526 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5527 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5528 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5529 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5530 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5531 special-purpose register numbers.
5532
c24791ec
JB
5533 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5534 manual mentions 'md_twb', but many mention 'm_twb', and at that
5535 point in the register list.)
5536
d833db3b
AC
55372004-07-14 Andrew Cagney <cagney@gnu.org>
5538
5539 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5540 instead of "internal-error".
5541
080228b2
JB
55422004-07-10 Joel Brobecker <brobecker@gnat.com>
5543
5544 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5545 that was inserted inside a comment.
5546
c268433a
RC
55472004-07-10 Randolph Chung <tausq@debian.org>
5548
5549 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5550 function.
5551 (hppa_hpux_push_dummy_code): New function.
5552 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5553 Set find_global_pointer method.
5554
71009278
MK
55552004-07-10 Mark Kettenis <kettenis@gnu.org>
5556
5557 * NEWS: Mention BSD libkvm interface.
5558
b2fa5097
MS
55592004-07-10 Michael Snyder <msnyder@redhat.com>
5560
5561 * symfile.c (generic_load): Comment typo.
5562 * stack.c (get_selected_block): Ditto.
5563 * regcache.c (regcache_cooked_read): Ditto.
5564 * monitor.c (monitor_debug): Ditto.
5565 * mips-tdep.c (mips_read_pc): Ditto.
5566 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5567 * gdb_mbuild.sh: Ditto.
5568 * gdbarch.sh: Ditto.
5569 * gdbarch.h: Ditto.
5570
c3e5cd34
PH
55712004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5572
8a2225b2
PH
5573 * ada-tasks.c: Remove file.
5574
c3e5cd34
PH
5575 Remove ARI problems:
5576
5577 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5578 beginning of line.
5579
5580 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5581 Add comment.
5582 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5583 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5584 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5585 (UMIN_OF_SIZE): Remove.
5586 (max_of_type): New function to replace orphan macro in gdbtypes.h
5587 (min_of_type): Ditto.
5588 (discrete_type_high_bound): Use max_of_type.
5589 (discrete_type_low_bound): Use min_of_type.
5590 (possible_user_operator_p): Move operator to beginning of line.
5591 (ada_is_variant_part): Ditto.
5592 (ensure_lval): Rewrite to avoid deprecated operations.
5593 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5594 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5595 (ada_enum_name): Remove assignments in 'if' statements.
5596 (build_ada_types): Add gdbarch parameter.
5597 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5598 with gdbarch_data_register_post_init.
5599 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5600 add_show_from_set.
5601
5602 * ada-valprint.c (inspect_it): Remove declaration.
5603 (repeat_count_threshold): Remove declaration.
5604 (ada_print_floating): Remove assignments in 'if' statements.
5605 (print_str): Move operator to beginning of line.
5606
61ce229a
JB
56072004-07-08 Jim Blandy <jimb@redhat.com>
5608
5609 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5610
09bcec80
BR
56112004-07-08 Bob Rossi <bob@brasko.net>
5612
5613 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5614
31c27f77
JJ
56152004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5616
5617 * language.h (struct_language_defn): Add new function pointer:
5618 la_class_name_from_physname. Also add new prototype for
5619 language_class_name_from_physname.
5620 * language.c (language_class_name_from_physname): New function.
5621 (unk_lang_class_name): Ditto.
5622 (unknown_language_defn, auto_language_defn): Change
5623 to add unk_lang_class_name function pointer for
5624 la_class_name_from_physname.
5625 (local_language_defn): Ditto.
5626 * dwarf2read.c (guess_structure_name): Change to call
5627 language_class_name_from_physname.
5628 (determine_class_name): Ditto.
5629 * cp-support.c (class_name_from_physname): Renamed.
5630 (cp_class_name_from_physname): New name of function.
5631 * cp-support.h: Ditto.
5632 * c-lang.c (c_language_defn): Change to add NULL
5633 for class_name_from_physname function pointer.
5634 (cplus_language_defn): Change to add cp_class_name_from_physname.
5635 * jv-lang.c (java_class_name_physname): New function.
5636 (java_find_last_component): New static routine.
5637 (java_language_defn): Add java_class_name_from_physname pointer.
5638 * ada-lang.c (ada_language_defn): Change to add NULL
5639 for class_name_from_physname function pointer.
5640 * f-lang.c (f_language_defn): Ditto.
5641 * m2-lang.c (m2_language_defn): Ditto.
5642 * objc-lang.c (objc_language_defn): Ditto.
5643 * p-lang.c (pascal_language_defn): Ditto.
5644 * scm-lang.c (scm_language_defn): Ditto.
5645
ee28ca0f
AC
56462004-07-06 Andrew Cagney <cagney@gnu.org>
5647
5648 Patch from Bart Robinson.
5649 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5650 (O_LARGEFILE): Define to 0, if not defined.
5651
fdb1bf9d
MK
56522004-07-03 Mark Kettenis <kettenis@gnu.org>
5653
cb162ff6
MK
5654 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5655 <machine/pcb.h> and "bsd-kvm.h".
5656 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5657 (m68kbsd_supply_pcb): New function.
5658 (_initialize_m68kbsd_nat): New prototype and function.
5659 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5660 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5661 (LOADLIBES): New variable.
5662 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5663 (LOADLIBES): New variable.
5664
fdb1bf9d
MK
5665 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5666
963c4174
MK
56672004-07-03 Mark Kettenis <kettenis@gnu.org>
5668
5669 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5670 <sys/proc.h>.
5671 (bsd_kvm_cmdlist): New variable.
5672 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5673 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5674 command and "kvm proc" command.
5675 * Makefile.in (bsd-kvm.o): Update dependencies.
5676
533f1d8f
MK
56772004-07-02 Mark Kettenis <kettenis@gnu.org>
5678
5679 * osabi.c: Update copyright year.
5680 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5681 notes if EI_OSABI is set to ELFOSABI_HPUX.
5682
6780dcde
MS
56832004-07-01 Michael Snyder <msnyder@redhat.com>
5684
5685 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5686 that seems to have gotten whacked out of line.
5687
67bebe79
MK
56882004-07-01 Mark Kettenis <kettenis@gnu.org>
5689
5690 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5691 code.
5692
0b5d8877
PH
56932004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5694
5695 * ada-lang.c (decode_packed_array): Minor change to comment.
5696 (ada_value_slice_ptr): New function.
5697 (ada_value_slice): New function.
5698 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5699 test. Don't know why it is there.
5700 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5701 to avoid dereferencing huge arrays from which one is slicing.
5702 (empty_array): Correct to return an array rather than
5703 a subrange value.
5704 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5705 on empty arrays (let'em use 'FIRST instead).
5706
19c1ef65
PH
57072004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5708
5709 Address complaints from gdb_ari.sh:
5710
5711 * ada-exp.y: Include gdb_string.h rather than string.h.
5712 (convert_char_literal): Reformat declaration.
5713 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5714 * ada-lex.l: Change use of free to xfree (the macro would do so
5715 anyway, but this is harmless).
5716 Include gdb_string.h rather than string.h.
5717 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5718
5719 * ada-lang.c (parse): Remove K&Rism in parameter list.
5720 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5721
d81cbc94
MK
57222004-06-30 Mark Kettenis <kettenis@gnu.org>
5723
5724 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5725 dead code.
5726
07681759
MK
57272004-06-30 Mark Kettenis <kettenis@gnu.org>
5728
5729 * alphabsd-nat.c: Update copyright year.
5730 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5731
f7948b5f
JB
57322004-06-29 Joel Brobecker <brobecker@gnat.com>
5733
6e0cdd28 5734 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5735 (i386_cygwin_in_solib_call_trampoline): New function.
5736 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5737 and skip_trampoline_code gdbarch methods.
5738
8f113c9a
JB
57392004-06-29 Jim Blandy <jimb@redhat.com>
5740
5741 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5742 name actually used in the dependency lists.
5743
97dc871c
RC
57442004-06-29 Randolph Chung <tausq@debian.org>
5745
5746 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5747
47216e51
CV
57482004-06-29 Corinna Vinschen <vinschen@redhat.com>
5749
5750 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5751 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5752 functionality.
5753
e623b504
AC
57542004-06-28 Andrew Cagney <cagney@gnu.org>
5755
5756 * defs.h (xstrvprintf): Declare.
5757 * utils.c (xstrvprintf): New function.
5758 (internal_vproblem, xstrprintf, xasprintf)
5759 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5760 * serial.c (serial_printf): Ditto.
5761 * complaints.c (vcomplaint): Ditto.
5762
79acc9b3
CV
57632004-06-29 Corinna Vinschen <vinschen@redhat.com>
5764
5765 * infcmd.c (attach_command): Move call to target_terminal_inferior
5766 behind loading symbol table.
5767
1daf35d9
AC
57682004-06-28 Andrew Cagney <cagney@gnu.org>
5769
5770 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5771 change - add back extern deprecated_ui_loop_hook declaration.
5772
b435e160
AC
57732004-06-28 Andrew Cagney <cagney@gnu.org>
5774
5775 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5776 xstrprintf.
5777 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5778 (c_value_of_variable): Ditto.
5779 * utils.c (internal_vproblem): Ditto.
5780 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5781 * remote.c (add_packet_config_cmd): Ditto.
5782 * remote-rdp.c (rdp_set_command_line): Ditto.
5783 * regcache.c (regcache_dump): Ditto.
5784 * frv-tdep.c (new_variant, new_variant): Ditto.
5785 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5786 (fbsd_find_memory_regions): Ditto.
5787 * breakpoint.c (create_thread_event_breakpoint)
5788 (create_breakpoints): Ditto.
5789 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5790 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5791
06d5cf63
JB
57922004-06-28 Joel Brobecker <brobecker@gnat.com>
5793
5794 * ada-lang.c: Re-indent file, with some massaging to help indent
5795 a bit when the result is otherwise really too ugly.
5796
35809fad
UW
57972004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5798
5799 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5800 code_addr_p and special_addr_p to 'unsigned int'.
5801
40e20472
MK
58022004-06-27 Mark Kettenis <kettenis@gnu.org>
5803
5804 * i386v4-nat.c: Update copyright year and tweak comment.
5805 (regmap): Remove trailing comma.
5806 (supply_gregset): Rename local variable i to regnum. Call
5807 regcache_raw_supply instead of supply_register.
5808 (fill_gregset): Rename argument regno to regnum. Call
5809 regcache_raw_collect instead of regcache_collect.
5810
12b0b6de
UW
58112004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5812
5813 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5814 and special_addr_p.
5815 (frame_id_build, frame_id_build_special): Update comments.
5816 (frame_id_build_wild): New prototype.
5817 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5818 struct frame_id fields.
5819 (frame_id_build_wild): New function.
5820 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5821
47b42a3e
MK
58222004-06-27 Mark Kettenis <kettenis@gnu.org>
5823
5824 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5825 hppabsd-tdep.c.
5826
1265e4aa
JB
58272004-06-27 Joel Brobecker <brobecker@gnat.com>
5828
5829 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5830
76a01679
JB
58312004-06-27 Joel Brobecker <brobecker@gnat.com>
5832
5833 * ada-lang.c: Re-indent file.
5834
7aca490a
JB
58352004-06-27 Joel Brobecker <brobecker@gnat.com>
5836
5837 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5838 (no_symtab_msg): Likewise.
5839
5e987968
AS
58402004-06-27 Andreas Schwab <schwab@suse.de>
5841
5842 * source.c: Fix whitespace.
5843
315c4276
MK
58442004-06-27 Mark Kettenis <kettenis@gnu.org>
5845
d15be926
MK
5846 * configure.in: Include <sys/param.h> for td_pcb test.
5847 * configure: Regenerated.
5848
9062529b
MK
5849 * i386nbsd-nat.c: New file.
5850 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5851 i386obsd-nat.c and i386obsd-tdep.c.
5852 (i386nbsd-nat.o): New dependency.
5853 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5854 bsd-kvm.o.
5855 (LOADLIBES): New variable.
5856 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5857 bsd-kvm.o.
5858 (LOADLIBES): New variable.
5859
8010310e
MK
5860 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5861 (LOADLIBES): New variable.
5862
efe1d7b9
MK
5863 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5864 fetching from BSD_KVM_PADDR. Correctly lookup address for
5865 "_thread0".
5866
315c4276
MK
5867 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5868 "bsd-kvm.h".
5869 (amd64fbsd_supply_pcb): New funcion.
5870 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5871
399cfac6
DL
58722004-06-27 <david@streamline-computing.com>
5873
5874 Partial fix for PR cli/1056.
5875 * valarith.c: Check for zero in division and remainder
5876 evaluation.
5877
6235f9c8
MK
58782004-06-27 Mark Kettenis <kettenis@gnu.org>
5879
5880 * i387-tdep.c: Remove excessive whitespace.
5881
2726dafc
AC
58822004-06-26 Andrew Cagney <cagney@gnu.org>
5883
5884 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5885 * gdb-events.h, gdb-events.c: Re-generate.
5886 * tui/tui-hooks.c (tui_install_hooks): Update.
5887 (tui_remove_hooks): Update.
5888 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5889
0e56aeaf
MK
58902004-06-26 Mark Kettenis <kettenis@gnu.org>
5891
cb461069
MK
5892 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5893 (gregset_t, fpregset_t): Remove typedefs.
5894 (REG_OFFSET): Rename argument.
5895 (amd64bsd_r_reg_offset): Rename from reg_offset.
5896 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5897 Remove functions.
5898 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5899 of reg_offset.
5900 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5901
ecba89de
MK
5902 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5903
4cd80476
MK
5904 * vax-tdep.c: Tweak comment.
5905
0e56aeaf
MK
5906 Add OpenBSD/hppa support.
5907 * NEWS (New native configurations): Mention OpenBSD/hppa.
5908 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5909 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5910 files.
5911 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5912 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5913 * configure.host: Add hppa*-*-openbsd*.
5914 * configure.tgt: Add hppa*-*-openbsd*.
5915
98bbd631
AC
59162004-06-25 Andrew Cagney <cagney@gnu.org>
5917
5918 * defs.h (deprecated_ui_loop_hook): Deprecated.
5919 * wince.c (child_wait): Update.
5920 * win32-nat.c (child_wait): Update.
5921 * v850ice.c (v850ice_wait): Update.
5922 * top.c (deprecated_ui_loop_hook): Update.
5923 * serial.h: Update.
5924 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5925 (do_unix_readchar): Update.
5926 * ser-tcp.c (net_open): Update.
5927 * remote-sim.c (gdb_os_poll_quit): Update.
5928 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5929
769d7dc4
AC
59302004-06-24 Andrew Cagney <cagney@gnu.org>
5931
5932 * defs.h (deprecated_pre_add_symbol_hook)
5933 (deprecated_post_add_symbol_hook): Deprecated.
5934 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5935 (symbol_file_add_with_addrs_or_offsets): Update references.
5936
11c949aa
AC
59372004-06-24 Andrew Cagney <cagney@gnu.org>
5938
5939 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5940 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5941 * wince.c (ui_loop_hook): Delete extern declaration.
5942 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5943 * v850ice.c (ui_loop_hook): Delete extern declaration..
5944 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5945 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5946 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5947 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5948 ui_loop_hook declaration.
5949
eedc19af
AC
59502004-06-24 Andrew Cagney <cagney@gnu.org>
5951
5952 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5953 entry_func_highpc fields.
5954 * objfiles.c (init_entry_point_info): Do not clear
5955 entry_func_lowpc and entry_func_highpc.
5956 (objfile_relocate): Do not relocate entry_func_lowpc and
5957 entry_func_highpc.
5958 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5959 entry_func_highpc.
5960 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5961 entry_func_highpc.
5962 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5963 entry_func_lowpc and entry_func_highpc with call to
5964 inside_entry_func.
5965
d47079be
MK
59662004-06-24 Mark Kettenis <kettenis@gnu.org>
5967
5968 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5969 quad-precision floating point arguments in registers.
5970
2107e348
MK
59712004-06-24 Mark Kettenis <kettenis@gnu.org>
5972
5973 From Michael Mueller <m.mueller99@kay-mueller.de>:
5974 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5975 account.
5976
46587c42
JJ
59772004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5978
5979 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5980 to -1.
5981 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5982 untriggered watchpoints to a separate if clause. Update function
5983 comment regarding STOPPED_BY_WATCHPOINT argument.
5984
226f5cf4
JB
59852004-06-22 Jim Blandy <jimb@redhat.com>
5986
5987 * gdbarch.sh: Doc fix.
5988
f10683bb
MH
59892004-06-21 Martin Hunt <hunt@redhat.com>
5990 Kevin Buettner <kevinb@redhat.com>
5991
5992 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5993 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5994 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5995 to set_gdbarch_sp_regnum(). Use cooked register number.
5996 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5997
412d5987
AC
59982004-06-21 Andrew Cagney <cagney@gnu.org>
5999
6000 * gdbarch.sh: When the macro field is empty, do not generate a
6001 macro definition. When the macro field is "=", generate the macro
6002 name from the upper-case function name.
6003 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6004 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6005 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6006 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6007 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6008 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6009 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6010 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6011 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6012 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6013 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6014 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6015 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6016 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6017 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6018 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6019 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6020 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6021 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6022 (DEPRECATED_USE_STRUCT_CONVENTION)
6023 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6024 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6025 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6026 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6027 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6028 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6029 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6030 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6031 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6032 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6033 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6034 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6035 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6036 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6037 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6038 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6039 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6040 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6041
68908a3e
AC
60422004-06-21 Andrew Cagney <cagney@gnu.org>
6043
48f7351b
AC
6044 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6045 macro name, and the function rather than macro value. Only wrap
6046 macro print statements in #ifdef. Move format logic to where it
6047 is needed.
6048 * gdbarch.c: Re-generate.
6049
283354d8
AC
6050 * gdbarch.sh (read): Delete "print_p" and "description", add
6051 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6052 Delete references to print_p.
6053 (TARGET_ARCHITECTURE): Delete print predicate.
6054 * gdbarch.c: Re-generate.
6055
68908a3e
AC
6056 * gdbarch.sh: Check that multi-arch methods do not provide a
6057 macro.
6058 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6059 (print_registers_info, print_float_info, print_vector_info)
6060 (adjust_breakpoint_address, remote_translate_xfer_address)
6061 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6062 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6063 name from the multi-arch definition.
6064
a2428dbe
AC
60652004-06-20 Andrew Cagney <cagney@gnu.org>
6066
6067 * gdbarch.sh: Sort by the function, instead of macro name.
6068 * gdbarch.c: Re-generate.
6069
750eb019
AC
60702004-06-20 Andrew Cagney <cagney@gnu.org>
6071
66d659b1
AC
6072 * gdbarch.sh: Use the function, instead of macro name in
6073 errors and the log file.
6074 (return_value): Remove stray ":" in spec.
6075
750eb019
AC
6076 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6077 * gdbarch.h, gdbarch.c: Re-generate.
6078 * Makefile.in (arch-utils.o): Update dependencies.
6079 * values.c (using_struct_return): Move code calling
6080 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6081 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6082 to legacy_return_value, simplify.
6083 * infcmd.c (print_return_value): Move code calling
6084 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6085 to legacy_return_value, simplify.
6086 * infcall.c (call_function_by_hand): Move code calling
6087 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6088 * arch-utils.c: Update copyright. Include "gdbcore.h".
6089 (legacy_return_value): New function.
6090 * arch-utils.h: Update copyright.
6091 (legacy_return_value): Declare.
6092
b5622e8d
AC
60932004-06-20 Andrew Cagney <cagney@gnu.org>
6094
6095 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6096 * gdbarch.h, gdbarch.c: Re-generate.
6097 * values.c (using_struct_return): Update call.
6098 * mcore-tdep.c: Update comment.
6099 * infcall.c (call_function_by_hand): Update comment.
6100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6101 * arch-utils.h (always_use_struct_convention): Update.
6102 * v850-tdep.c (v850_gdbarch_init): Update.
6103 * sh64-tdep.c (sh64_gdbarch_init): Update.
6104 * sh-tdep.c (sh_gdbarch_init): Update.
6105 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6106 * mips-tdep.c (mips_gdbarch_init): Update.
6107 * mcore-tdep.c (mcore_gdbarch_init): Update.
6108 * m32r-tdep.c (m32r_gdbarch_init): Update.
6109 * ia64-tdep.c (ia64_gdbarch_init): Update.
6110 * h8300-tdep.c (h8300_gdbarch_init): Update.
6111 * frv-tdep.c (frv_gdbarch_init): Update.
6112 * cris-tdep.c (cris_gdbarch_init): Update.
6113 * arm-tdep.c (arm_gdbarch_init): Update.
6114 * alpha-tdep.c (alpha_gdbarch_init): Update.
6115
5191de37
MC
61162004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6117
6118 * PROBLEMS: Add more specific information, and a work-around,
6119 for PR gdb/1458.
6120
782263ab
AC
61212004-06-18 Andrew Cagney <cagney@gnu.org>
6122
6123 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6124 * gdbarch.h, gdbarch.c: Re-generate.
6125 * ada-lang.c (ada_finish_decode_line_1): Update.
6126 * infrun.c (handle_inferior_event): Update.
6127 * infcall.c (find_function_addr): Update.
6128 * linespec.c (minsym_found): Update.
6129 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6130 Update.
6131 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6132 * cli/cli-cmds.c (disassemble_command): Update.
6133 * vax-tdep.c (vax_gdbarch_init): Update.
6134
2f305df1
MK
61352004-06-18 Mark Kettenis <kettenis@gnu.org>
6136
6137 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6138
e5fe55f7
AC
61392004-06-17 Andrew Cagney <cagney@gnu.org>
6140
6141 GDB 6.1.1 released from the GDB 6.1 branch.
6142 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6143 * PROBLEMS: Ditto.
6144
473b7be6
DJ
61452004-06-16 Daniel Jacobowitz <dan@debian.org>
6146
6147 PR gdb/1658
6148 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6149 operation as a uleb128. Found by Michael Coulter.
6150
96d887e8
PH
61512004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6152
6153 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6154 make it non-static.
6155 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6156 to ada-lang.h; this is needed to be able to implement the kill command
6157 in multi-task mode.
6158 (task_ptid): Ditto.
6159 (task_entry): Ditto.
6160 (task_list): Ditto.
6161 (ada_build_task_list): Ditto.
6162
6163 * ada-lang.c: Conditionalize routines and data structures related
6164 to breakpoints, exceptions, completion, and symbol caching on
6165 GNAT_GDB, since these are not yet used in the submitted public sources.
6166 (ada_main_name): Editorial: Move definition out of exception-related
6167 code.
6168
31eef181
AC
61692004-06-15 Andrew Cagney <cagney@gnu.org>
6170
6171 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6172 deprecated_pc_in_call_dummy.
6173
2c500098
AM
61742004-06-15 Alan Modra <amodra@bigpond.net.au>
6175
6176 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6177 bfd_get_section_size_before_reloc or _raw_size.
6178 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6179 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6180 (dwarf2_read_section): Likewise.
6181 * elfread.c (elf_locate_sections): Likewise.
6182 * gcore.c (derive_heap_segment): Likewise.
6183 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6184 * remote-e7000.c (e7000_load): Likewise.
6185 * remote-m32r-sdi.c (m32r_load): Likewise.
6186 * remote-mips.c (mips_load_srec): Likewise.
6187 (pmon_load_fast): Likewise.
6188 * remote.c (compare_sections_command): Likewise.
6189 * symfile.c (add_section_size_callback): Likewise.
6190 (load_section_callback): Likewise.
6191 (pc_in_unmapped_range): Likewise.
6192 (pc_in_mapped_range): Likewise.
6193 (sections_overlap): Likewise.
6194 (list_overlays_command): Likewise.
6195 (simple_overlay_update_1): Likewise.
6196 (simple_overlay_update): Likewise.
6197 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6198 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6199
90f943f1
RC
62002004-06-14 Randolph Chung <tausq@debian.org>
6201
6202 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6203 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6204 static.
6205 (hppa_hpux_inferior_created): New function.
6206 (hppa_hpux_init_abi): Register observer.
6207 * symfile.c (hp_cxx_exception_support_initialized)
6208 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6209 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6210
700c15aa
RC
62112004-06-14 Randolph Chung <tausq@debian.org>
6212
3973a7d3
AC
6213 * MAINTAINERS (Write After Approval): Alphabetize my entry
6214 correctly.
700c15aa 6215
cea4838c
AC
62162004-06-14 Andrew Cagney <cagney@gnu.org>
6217
6218 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6219 testsuite maintainer.
6220
97092415
AC
62212004-06-13 Andrew Cagney <cagney@gnu.org>
6222
e8c3165b
AC
6223 * infcmd.c (print_return_value): Fix logic, allow
6224 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6225
bceabdd8
AC
6226 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6227 defining any macros.
6228 * gdbarch.h: Re-generate.
6229
57010b1c
AC
6230 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6231 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6232 * gdbarch.h: Re-generate.
6233
bc87dfa0
AC
6234 * values.c (generic_use_struct_convention): Don't check gcc_p.
6235
15ac804d
AC
6236 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6237 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6238 * gdbarch.h, gdbarch.c: Regenerate.
6239 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6240 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6242 deprecated_max_register_raw_size and
6243 deprecated_max_register_virtual_size.
6244 * v850-tdep.c (v850_gdbarch_init): Ditto.
6245 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6246 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6247 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6248 * cris-tdep.c (cris_gdbarch_init): Ditto.
6249
97092415
AC
6250 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6251 * gdbarch.h, gdbarch.c: Re-generate.
6252 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6253 (m68hc11_use_struct_convention): Delete function.
6254 (m68hc11_extract_struct_value_address): Delete function.
6255 (m68hc11_return_value): New function.
6256 (m68hc11_gdbarch_init): Instead of store_return_value,
6257 extract_return_value, return_value_on_stack,
6258 deprecated_extract_struct_value_address and use_struct_convention,
6259 set return_value.
6260 * values.c (using_struct_return): Do not call
6261 RETURN_VALUE_ON_STACK.
6262 * arch-utils.h (generic_return_value_on_stack_not): Delete
6263 declaration.
6264 * arch-utils.c (generic_return_value_on_stack_not): Delete
6265 function.
6266
44e5158b
AC
62672004-06-12 Andrew Cagney <cagney@gnu.org>
6268
6269 * values.c (register_value_being_returned): Delete function.
6270 * infcmd.c (legacy_return_value): Delete function.
6271 * infcall.c (call_function_by_hand): Inline
6272 "register_value_being_returned", simplify.
6273 * values.c (using_struct_return): Update comment, refer to
6274 print_return_value instead of register_value_being_returned.
6275 * infcmd.c (print_return_value): Inline calls to
6276 register_value_being_returned and legacy_return_value. Simplify.
6277
b887c273
RC
62782004-06-11 Randolph Chung <tausq@debian.org>
6279
6280 * somread.c (som_symtab_read): Exclude gcc local symbols.
6281
1b2bfbb9
RC
62822004-06-11 Randolph Chung <tausq@debian.org>
6283
3973a7d3
AC
6284 * infrun.c (handle_inferior_event): Handle the case when a
6285 trampoline ends up in the runtime resolver, and if the trampoline
6286 has no name. Rearrange the code so that all the trampoline
6287 processing happens before other step-out-of-range handling.
1b2bfbb9 6288
a9d61c86
MH
62892004-06-11 Martin Hunt <hunt@redhat.com>
6290
6291 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6292 has no fpu.
6293
2c87cf5a
AC
62942004-06-10 Andrew Cagney <cagney@gnu.org>
6295
6296 * blockframe.c (legacy_inside_entry_func): Delete.
6297 (legacy_frame_chain_valid): Inline call to
6298 legacy_inside_entry_func, simplify.
6299
0b67b468 63002004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
6301
6302 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
6303 * dwarf2read.c (partial_die_info): Add dirname field.
6304 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6305 (read_partial_die): Save away DW_AT_comp_dir.
6306 * defs.h (symtab_to_filename): Removed.
6307 * source.c (find_and_open_source): Added.
57c22c6c 6308 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
6309 (symtab_to_filename): Removed.
6310 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
6311 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6312 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6313 symtab_to_filename.
6314 * symtab.h (partial_symtab): Add dirname field.
6315 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
6316 (mi_cmd_file_list_exec_source_file): Call new function
6317 symtab_to_fullname to find fullname.
57c22c6c 6318 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 6319 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
6320 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6321
9a1dd1ad
AC
63222004-06-10 Andrew Cagney <cagney@gnu.org>
6323
239ae8c7
AC
6324 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6325 to generic_use_struct_convention, the default value.
6326
fc720350
AC
6327 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6328 of abort.
6329
9a1dd1ad
AC
6330 * ns32k-tdep.c (ns32k_push_arguments): New function.
6331 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6332 * infcall.c (call_function_by_hand): Call error instead of
6333 legacy_push_arguments.
6334 * value.h (legacy_push_arguments): Delete declaration.
6335 * valops.c (legacy_push_arguments): Delete function.
6336 (value_push): Delete function.
6337
fea25152
BF
63382004-06-10 Brian Ford <ford@vss.fsi.com>
6339
6340 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6341 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6342 info.
6343 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6344
30a4a8e0
AC
63452004-06-10 Andrew Cagney <cagney@gnu.org>
6346
6347 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6348 * gdbarch.h, gdbarch.c: Re-generate.
6349 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6350 parameters.
6351 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6352 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6353 deprecated_pc_in_call_dummy instead of
6354 DEPRECATED_PC_IN_CALL_DUMMY.
6355 (arm_skip_prologue): Ditto.
6356 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6357 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6358 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6359 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6360 Ditto.
6361 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6362 (sh64_init_extra_frame_info, sh64_get_saved_register)
6363 (sh64_pop_frame): Ditto.
6364 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6365 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6366 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6367 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6368 (h8300_pop_frame): Ditto.
6369 * blockframe.c (legacy_inside_entry_func)
6370 (legacy_frame_chain_valid): Ditto.
6371 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6372 to deprecated_pc_in_call_dummy.
6373
81cfbe54
AC
63742004-06-09 Andrew Cagney <cagney@gnu.org>
6375
a1f4a1b6
AC
6376 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6377 provide a default value.
6378 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6379 * gdbarch.h, gdbarch.c: Re-generate.
6380 * arch-utils.c (generic_convert_register_p): Rename
6381 legacy_convert_register_p
6382 (legacy_register_to_value, legacy_value_to_register): Delete
6383 functions.
6384 * arch-utils.h (generic_convert_register_p): Rename
6385 legacy_convert_register_p.
6386 (legacy_register_to_value, legacy_value_to_register): Delete
6387 declarations.
6388
9730f241
AC
6389 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6390 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6391 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6392 * gdbarch.h, gdbarch.c: Re-generate.
6393 * infcmd.c (default_print_registers_info): Simplify.
6394 * findvar.c (value_of_register): Simplify.
6395 * mi/mi-main.c (get_register): Simplify.
6396 * arch-utils.c (legacy_convert_register_p): Always return 0.
6397 (legacy_register_to_value, legacy_value_to_register): Always call
6398 internal_error.
6399
8a1bf479
AC
6400 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6401 #ifdef CLEAR_INSN_CACHE code.
6402 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6403 Delete #ifdef CLEAR_DEFERRED_STORES code.
6404
4b38d6f1
AC
6405 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6406
2d62ecc7
AC
6407 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6408 copyright.
6409 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6410
be4f7469
AC
6411 * config/mips/mipsv4.mh: Delete file.
6412
81cfbe54
AC
6413 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6414 unreferenced macro.
6415 (hpread_adjust_stack_address): Delete declaration.
6416
d966f0cb
AC
64172004-06-08 Andrew Cagney <cagney@gnu.org>
6418
6419 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6420 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6421 PTRACE_ATTACH / PTRACE_DETACH available call error.
6422 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6423 * infttrace.c (update_thread_state_after_attach, attach, detach):
6424 Remove #ifdef wrappers.
6425 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6426 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6427 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6428 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6429 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6430 * config/nm-linux.h (ATTACH_DETACH): Delete.
6431 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6432 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6433 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6434 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6435 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6436
d91670b9
CV
64372004-06-08 Corinna Vinschen <vinschen@redhat.com>
6438
6439 * configure.in: Set $configdir to the right OS specific value.
6440 Use value when setting $tcldir and $tkdir.
6441 * configure: Regenerate.
6442
28ba0b33
PB
64432004-06-06 Paul Brook <paul@codesourcery.com>
6444
6445 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6446 records.
6447
f26caa11
PH
64482004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6449
6450 * ada-lang.c (lookup_symbol_in_language): New function to allow
6451 re-use of another language's symbol lookup code. (Placed here
6452 temporarily while Ada support is being integrated into the public
6453 tree).
6454 (restore_language): New auxiliary function for
6455 lookup_symbol_in_language.
6456 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6457 temporarily while Ada support is being integrated into the public
6458 tree).
6459
d560a54b
AO
64602004-06-08 Alexandre Oliva <aoliva@redhat.com>
6461
e75d110c
AO
6462 * Makefile.in (check//%): New.
6463
d560a54b
AO
6464 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6465 (mn10300_store_return_value): Rewrite.
6466 (mn10300_type_align): New.
6467 (mn10300_use_struct_convention): Rewrite.
6468 (mn10300_return_value): New, using all of the above.
6469 (mn10300_pop_frame_regular): Add saved_regs_size.
6470 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6471
a72fbdb7
AO
6472 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6473 regs if PC is on movm.
6474
01904826
JB
64752004-06-07 Jim Blandy <jimb@redhat.com>
6476
6477 Add native Linux support for the PowerPC E500.
6478 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6479 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6480 all architectures except the E500.
6481 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6482 #definitions.
6483 (struct gdb_evrregset_t): New type.
6484 (have_ptrace_getsetevrregs): New variable.
6485 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6486 fetch_spe_registers): New functions.
6487 (fetch_register): Call fetch_spe_register as appropriate.
6488 Assert that we're only passed raw register numbers.
6489 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6490 Don't fetch gprs if they're pseudoregisters.
6491 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6492 store_spe_registers): New functions.
6493 (store_register): Call store_spe_register as appropriate.
6494 Assert that we're only passed raw register numbers.
6495 (store_ppc_registers): Call store_spe_registers as appropriate.
6496 Don't store gprs if they're pseudoregisters.
6497
f90ef764
JJ
64982004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6499
6500 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6501 struct if one exists, even if we are dealing with a zombie thread.
6502
45b75230
AC
65032004-06-07 Andrew Cagney <cagney@gnu.org>
6504
6505 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6506 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6507 Rename PC_REQUIRES_RUN_BEFORE_USE.
6508 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6509 #ifdef.
6510
1658da49
RC
65112004-06-07 Randolph Chung <tausq@debian.org>
6512
6513 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6514 unwinding after sp has been saved to the stack but before the end
6515 of the prologue, and after the fp has been modified but before it has
6516 been saved to the stack.
6517 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6518 Remove superfluous definitions.
6519 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6520
9a727a3c
RC
65212004-06-07 Guy Martin <gmsoft@gentoo.org>
6522
6523 Committed by Randolph Chung.
6524 * hppa-linux-nat.c: Include the correct version of the header file
6525 depending on the kernel version.
6526
9e500012
RC
65272004-06-06 Randolph Chung <tausq@debian.org>
6528
6529 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6530 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6531
3388d7ff
RC
65322004-06-06 Randolph Chung <tausq@debian.org>
6533
6534 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6535 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6536 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6537 * hppa-tdep.c (hppa_symbol_address): New function definition.
6538 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6539
d49771ef
RC
65402004-06-06 Randolph Chung <tausq@debian.org>
6541
6542 * hppa-tdep.h (struct value): Forward declaration.
6543 (gdbarch_tdep): Define tdep find_global_pointer method.
6544 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6545 associated with the function we are trying to call, and write it
6546 to the gp register.
6547 (hppa32_convert_from_funct_ptr_addr): New function.
6548 (hppa_find_global_pointer): New function.
6549 (hppa_gdbarch_init): Set default find_global_pointer method; set
6550 convert_from_func_ptr_addr method.
6551 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6552 (hppa_linux_init_abi): Set find_global_pointer method.
6553 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6554
7d9b040b
RC
65552004-06-06 Randolph Chung <tausq@debian.org>
6556
6557 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6558 to struct value *function.
6559 * gdbarch.c: Regenerate.
6560 * gdbarch.h: Likewise.
6561 * infcall.c (call_function_by_hand): Pass entire function value
6562 to push_dummy_call.
6563
6564 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6565 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6566 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6567 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6568 * arm-tdep.c (arm_push_dummy_call): Likewise.
6569 * avr-tdep.c (avr_push_dummy_call): Likewise.
6570 * cris-tdep.c (cris_push_dummy_call): Likewise.
6571 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6572 * frv-tdep.c (frv_push_dummy_call): Likewise.
6573 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6574 * hppa-tdep.c (hppa32_push_dummy_call)
6575 (hppa64_push_dummy_call): Likewise.
6576 * i386-tdep.c (i386_push_dummy_call): Likewise.
6577 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6578 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6579 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6580 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6581 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6582 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6583 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6584 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6585 (ppc64_sysv_abi_push_dummy_call): Likewise.
6586 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6587 (ppc64_sysv_abi_push_dummy_call): Likewise.
6588 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6589 * s390-tdep.c (s390_push_dummy_call): Likewise.
6590 * sh-tdep.c (sh_push_dummy_call_fpu)
6591 (sh_push_dummy_call_nofpu): Likewise.
6592 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6593 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6594 * vax-tdep.c (vax_push_dummy_call): Likewise.
6595
4a19ea35
JB
65962004-06-04 Jim Blandy <jimb@redhat.com>
6597
8327ccee
JB
6598 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6599 gdbarch argument to register_size.
6600
a3c001ce
JB
6601 * rs6000-tdep.c (rs6000_store_return_value): Use
6602 regcache_cooked_write_part instead of
6603 deprecated_write_register_bytes.
6604 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6605 not gdbarch_deprecated_store_return_value.
6606
4a19ea35
JB
6607 * ppc-linux-nat.c (store_register, fetch_register): Remove
6608 incorrect assertions. Simplify and generalize handling of
6609 transfers whose sizes are not multiples of, or less than, sizeof
6610 (PTRACE_XFER_TYPE).
6611
b9b5d7ea
JJ
66122004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6613
6614 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6615 as a new thread event.
720c7d64 6616 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6617 zombie, return TD_THR_ZOMBIE.
720c7d64 6618 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6619 TD_THR_ZOMBIE, check if the thread is still on the thread list
6620 and return a -1 ptid if not found.
6621 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6622 change the status to TARGET_WAITKIND_SPURIOUS.
6623
c8a3b559
CV
66242004-06-03 Corinna Vinschen <vinschen@redhat.com>
6625
6626 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6627 double values in little endian mode.
6628
20605361
AC
66292004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6630
6631 Committed by Andrew Cagney.
6632 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6633 after last enum constant to avoid error from IBM C
6634 compiler.
6635
bc97b3ba
JB
66362004-06-02 Jim Blandy <jimb@redhat.com>
6637
6638 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6639 to 'message', and make it local to the lone block that uses it.
6640
1da28ab0
JB
6641 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6642
4c4b4cd2
PH
66432004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6644
8a2225b2
PH
6645 * ada-exp.y: Update copyright notice.
6646 Include block.h.
6647
6648 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6649 SPECIAL_VARIABLE and unify the treatment of these cases.
6650
6651 (write_attribute_call0): Remove.
6652 (write_attribute_call1): Remove.
6653 (write_attribute_calln): Remove.
6654 (save_qualifier): Add missing semicolon.
6655
6656 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6657 temporarily disabled to allow compilation with FSF head version.
6658
6659 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6660 use individual operators (OP_*) for all attributes.
6661 (exp syntax): Use write_int.
6662 Handle STRING literals with OP_STRING.
6663 (variable syntax): Add limit parameter to calls to
6664 write_object_renaming.
6665
6666 (temp_parse_space): New definition to hold entities that need
6667 only live until the next call to ada_parse.
6668 (string_to_operator): Rename fields of ada_opname_table entries.
6669
6670 (write_var_from_sym): Record block.
6671 (write_var_from_name): Minor reformatting.
6672 Make sure saved name is properly encoded in the case of multiple
6673 matches, and set its language to Ada.
6674 Update comment.
6675 Modify to indicate unresolved name as symbol in the UNRESOLVED
6676 namespace, allocated in temp_parse_space.
6677 (write_int): New function.
6678
6679 (write_object_renaming): Add max_depth parameter to limit
6680 chains of object renamings.
6681 Handle case where root of renaming expression is itself a renaming.
6682 Use temp_parse_space for temporary name buffer.
6683 Handle renamings to dereferenced pointers (___XEXA suffices).
6684
6685 (ada_parse, yyerror, string_to_operator,
6686 write_var_from_sym, write_var_from_name, write_attribute_call0,
6687 write_attribute_call1, write_attribute_calln,
6688 write_object_renaming): Protoize.
6689
6690 (_initialize_ada_exp): New function.
6691
6692 * ada-lang.c: Update copyright notice.
6693 General terminology change to conform to GNAT compiler usage:
6694 mangle => encode, demangle => decode
6695 Include gdb_obstack.h.
6696 Include gdb_regex.h
6697 Include frame.h
6698 Include hashtab.h
6699 Include completer.h
6700 Include gdb_stat.h
6701 Include block.h
6702 Include infcall.h
6703
6704 (ADA_RETAIN_DOTS): Make sure this is defined.
6705 (TRUNCATION_TOWARDS_ZERO): Define.
6706 (struct string_vector): Define.
6707 (unresolved_names): Remove definition.
6708 (xnew_string_vector): New function.
6709 (string_vector_append): New function.
6710 (extract_string): Make static.
6711 (ada_unqualified_name): New function.
6712 (add_angle_brackets): New function.
6713 (function_name_from_pc): New function.
6714 (place_on_stack): Rename to ensure_lval.
6715
6716 (ensure_lval): Renamed from place_on_stack.
6717 Make identity on lvals.
6718 Update comment.
6719 (is_nonfunction): New interface.
6720 Only symbols in LOC_CONST class can be enumerals.
6721 (fill_in_ada_prototype): Remove; now independent of language.
6722 (add_defn_to_vec): Add obstack and symtab arguments.
6723 Use obstack to hold collected definitions.
6724 (num_defns_collected): New function.
6725 (defns_collected): New function.
6726 (ada_resolve_subexp): Rename to resolve_subexp.
6727 (resolve_subexp): Renamed from ada_resolve_subexp.
6728 (ada_op_name): Return non-const result.
6729 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6730 other purposes.
6731
6732 (to_fixed_array_type): Add declaration.
6733 (coerce_unspec_val_to_type): Remove offset parameter.
6734 (find_sal_from_funcs_and_line): New interface.
6735 (find_line_in_linetable): Ditto.
6736
6737 (all_sals_for_line): Rename to ada_sals_for_line and make
6738 global.
6739 Add new parameter. When set, do not ask the user to choose the
6740 instance, but use the first one found instead.
6741 Use given line number in returned sals.
6742 Fix comment.
6743 Skip the prologue if funfirstline is set.
6744 Correct for memory leak when 0 lines found.
6745
6746 (value_pos_atr): Use pos_atr.
6747 (pos_atr): New function.
6748 (standard_lookup): Add block parameter.
6749
6750 (makeTimeStart): Remove declaration and uses.
6751 (makeTimeStop): Remove declaration and uses.
6752
6753 (ada_completer_word_break_characters): Allow for VMS.
6754 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6755 (raise_sym_name): New constant.
6756 (raise_unhandled_sym_name): New constant.
6757 (raise_assert_sym_name): New constant.
6758 (process_raise_exception_name): New constant.
6759 (longest_exception_template): New constant.
6760 (warning_limit): New variable to limit warnings during expression
6761 evaluation.
6762 (warnings_issued): New variable to keep track of warnings issued.
6763 (known_runtime_file_name_patterns): New constant.
6764 (known_auxiliary_function_name_patterns): New constant.
6765 (symbol_list_obstack): New variable.
6766
6767 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6768 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6769 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6770 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6771 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6772 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6773 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6774 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6775 and strcmp.
6776
6777 (ada_get_field_index): New function.
6778 (lim_warning): New function.
6779 (ada_translate_error_message): New function.
6780 (MAX_OF_SIZE): New function.
6781 (MIN_OF_SIZE): New function.
6782 (UMAX_OF_SIZE): New function.
6783 (UMIN_OF_SIZE): New function.
6784 (discrete_type_high_bound): New function.
6785 (discrete_type_low_bound): New function.
6786 (base_type): New function.
6787 (do_command): Remove.
6788
6789 (ada_update_initial_language): Use language_ada, not language_unknown.
6790 (ada_encode): Renamed from ada_mangle.
6791 Obey ADA_RETAIN_DOTS.
6792 (ada_decode): Renamed from ada_demangle.
6793 Update coding conventions.
6794 (decoded_names_store): New hash table.
6795 (ada_decode_symbol): New function.
6796 (ada_la_decode): New function.
6797
6798 (modify_general_field): Correct computations of offset and bit
6799 position.
6800 (desc_base_type): Handle ref types, too.
6801 (ada_is_direct_array_type): New function.
6802
6803 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6804 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6805 (ada_is_bogus_array_descriptor,ada_type_of_array,
6806 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6807 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6808 ada_is_array_descriptor_type.
6809
6810 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6811 (ada_is_packed_array_type): Handle pointers or
6812 references to packed arrays as well.
6813 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6814 (decode_packed_array_type): Search for the packed array type
6815 symbol in the currently selected block and associated
6816 superblocks too.
6817 Use lookup_symbol again.
6818
6819 (decode_packed_array): Handle pointers and references.
6820 Update call to coerce_unspec_val_to_type.
6821 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6822 (ada_value_primitive_packed_val): Improve comment.
6823
6824 (ada_index_type): Substitute int type for "undefined".
6825 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6826 ada_array_langth, ada_is_string_type): Use renamed
6827 ada_is_simple_array_type.
6828 (empty_array): New function.
6829
6830 (ada_resolve): Rename to resolve.
6831 (resolve): Make static.
6832 Call renamed resolve_subexp.
6833 Update comment.
6834 (ada_resolve_subexp): Rename to resolve_subexp.
6835 (resolve_subexp): Update comment.
6836 Decomment disabled code.
6837 Add LOC_COMPUTED* cases.
6838 Modify to use temporary struct symbols (marked as being in
6839 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6840 OP_UNRESOLVED_VALUE.
6841 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6842 Add OP_STRING case.
6843 Remove OP_ARRAY.
6844 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6845 Use new ada_lookup_symbol_list interface.
6846 Use new ada_resolve_function interface.
6847 Remove OP_TYPE case.
6848
6849 (ada_args_match): Idiot proof against null actuals.
6850 Use intermediate variables to clarify.
6851 (ada_resolve_function): Update comment and interface.
6852 (mangled_ordered_before): Rename to encoded_ordered_before and
6853 update comment.
6854 (sort_choices): Update comment and interface.
6855 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6856 (user_select_syms): New interface.
6857 Use new sort_choices interface.
6858 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6859 (possible_user_operator_p): Idiot-proof against null values.
6860 (ada_simple_renamed_entity): Don't make cleanup; rely on
6861 caller to free result string.
6862 Remove const from return type.
6863 (make_array_descriptor): Rename uses of place_on_stack to
6864 ensure_lval.
6865 Make sure that arrays are on stack.
6866
6867 (HASH_SIZE): Define.
6868 (struct cache_entry): Define.
6869 (cache_space): Define.
6870 (cache): Define.
6871 (clear_ada_sym_cache): New function.
6872 (find_entry): New function.
6873 (lookup_cached_symbol): New function.
6874 (defn_vector_size): Define.
6875 (cache_symbol): New function.
6876 (defn_symbols): Remove.
6877
6878 (standard_lookup): Use lookup_symbol_in_language to get effect of
6879 C lookup.
6880 Cache results.
6881
6882 (symbol_completion_match): New function.
6883 (symbol_completion_add): New function.
6884 (ada_make_symbol_completion_list): New function.
6885
6886 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6887 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6888 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6889 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6890
6891 (ada_lookup_simple_minsym): New function.
6892 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6893
6894 (add_symbols_from_enclosing_procs): New interface.
6895 Conditionalize more helpfully.
6896 Don't bother if program isn't running.
6897 Use new interface to get_frame_block.
6898 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6899
6900 (remove_extra_symbols): New interface.
6901 (xget_renaming_scope): New function.
6902 (is_package_name): New function.
6903 (renaming_is_visible): New function.
6904 (remove_out_of_scope_renamings): New function.
6905
6906 (ada_lookup_symbol_list): New interface.
6907 Properly reinitialize the symbol list obstack.
6908 Don't call add_symbols_from_enclosing_procs if we start from a
6909 static or global block.
6910 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6911 add_symbols_from_enclosing_procs.
6912 Add symtab data to cached entries.
6913 Handle symbols prefixed with
6914 "standard__" specially; strip prefix and don't look in local symbols.
6915 Do not include out of scope renaming symbols in list of
6916 symbols returned.
6917 Add const to block parameter.
6918 Move check for non-local, non-global symbols earlier.
6919 Remove timing stuff.
6920 (ada_lookup_symbol): New interface.
6921 Find symtab as well.
6922 (ada_lookup_symbol_nonlocal): New function.
6923
6924 (is_name_suffix): Enhance suffix detection to recognize
6925 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6926 (is_dot_digits_suffix): New function.
6927 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6928
6929 (ada_add_block_symbols): New interface. Use obstack to return results
6930 in a vector of struct ada_symbol_infos. Add symtab argument.
6931 Use new interface to add_defn_to_vec.
6932 Remove calls to fill_in_ada_prototype.
6933 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6934
6935 (ada_finish_decode_line_1): Add const qualification to local to fix
6936 warning.
6937 Start looking in static block for functions to avoid attempts
6938 to search frame chain for up-level variables.
6939 Adapt to new ada_sals_for_line interface.
6940 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6941 Handle quoting of the function name inside the spec string.
6942 Skip prologue when funfirstline is set and update the
6943 function documentation to that effect.
6944
6945 (debug_print_lines, debug_print_block, debug_print_blocks,
6946 debug_print_symtab): Remove.
6947
6948 (ada_main_name): New function.
6949 (ada_exception_breakpoint_type): New function.
6950 (is_known_support_routine): New function.
6951 (ada_find_printable_frame): Renamed from find_printable_frame and made
6952 global.
6953 Remove level parameter.
6954 Use new interface to select_frame.
6955
6956 (begin_command): Remove.
6957 (ada_adjust_exception_stop): New function.
6958 (ada_print_exception_stop): New function.
6959 (exception_name_from_cond): New function.
6960 (ada_report_exception_break): Replace disabled code with
6961 conditionalization on GNAT_GDB.
6962 Get the exception name from the condition string.
6963 Remove and move functionality into new functions
6964 ada_print_exception_breakpoint_task and
6965 ada_print_exception_breakpoint_nontask.
6966 (error_breakpoint_runtime_sym_not_found): New function.
6967 (is_runtime_sym_defined): New function.
6968 (ada_breakpoint_rewrite): Uncomment suppressed code.
6969 Use symbolic error-message and runtime-symbol names.
6970 Surround runtime symbol names in quotes.
6971 Allow non-specific breakpoints on exceptions and assertions before
6972 program starts.
6973
6974 (ada_is_tagged_type): Add parameter.
6975 (ada_is_tag_type): New function.
6976 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6977 (ada_variant_discrim_type): Ditto.
6978 (value_tag_from_contents_and_address): New function.
6979 (type_from_tag): New function.
6980 (struct tag_args): New structure used to communicate with
6981 ada_tag_name_1.
6982 (ada_tag_name_1): New function.
6983 (ada_tag_name): New function.
6984
6985 (ada_scan_number): Update comment.
6986 (find_struct_field): New function.
6987 (ada_search_struct_field): Make static.
6988 (ada_value_struct_elt): New version that returns references when
6989 given pointers or references to structs.
6990 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6991 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6992 interface.
6993 (ada_value_ind): Use new ada_to_fixed_value interface.
6994 (ada_coerce_ref): Ditto.
6995 (field_offset): Remove.
6996
6997 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6998 (ada_find_renaming_symbol): New function.
6999 (ada_prefer_type): Prefer named types over unnamed ones.
7000 (variant_field_index): New function.
7001 (contains_variant_part): Removed: subsumed by variant_field_index.
7002 (ada_template_to_fixed_record_type): New function, mostly from
7003 template_to_fixed_record_type.
7004 (template_to_fixed_record_type):
7005 Do not scan the type fields beyond the last one; prevents a
7006 potential SEGV.
7007 Handle case where variant field is listed BEFORE discriminant it
7008 depends on.
7009 Fix calculation of record length when bit length is
7010 not evenly divisible by char length.
7011 Move code to ada_template_to_fixed_record_type and call it.
7012
7013 (template_to_static_fixed_type): Revise comment.
7014 Modify to work on ordinary record types as well as templates,
7015 so as to handle fields that use ___XVE or ___XVU encodings.
7016 (to_record_with_fixed_variant_part): Fill out comment.
7017 Initialize C++ stuff in right type.
7018 Allow case where DVAL is null.
7019 Handle case where variant field is not last.
7020 Fix typo concerning record length.
7021 (to_fixed_record_type): Decomment disabled code.
7022 (to_fixed_record_type): Use variant_field_index instead of
7023 contains_variant_part.
7024 (to_fixed_variant_branch_type): Ditto.
7025 (to_fixed_array_type): Decomment disabled code.
7026 (ada_to_fixed_type): Convert tagged types to the specific type.
7027 Deactivate the size-check for array types in order to avoid
7028 some false size alarms.
7029 (to_static_fixed_type): Decomment disabled code.
7030 Modify to call template_to_static_fixed_type
7031 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7032 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7033 Remove valaddr argument, as it is never really used.
7034 (ada_to_fixed_value): Change interface to act on single struct value*
7035 operand.
7036 (adjust_pc_past_prologue): New function.
7037 (ada_attribute_name): Modify to take enum exp_opcode argument.
7038
7039 (ada_enum_name): Recognize new homonym-distinguishing convention.
7040 Adjust local variable's type to remove compiler warning.
7041 Fix a small problem in the part that unqualifies the enumeration name.
7042 (ada_value_binop): New function.
7043 (ada_value_equal): New function.
7044
7045 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7046 Don't give error message when not doing normal evaluation
7047 and a tagged type doesn't seem to contain a structure member.
7048 Give error message for packed arrays.
7049 For indexing arrays, handle pointers to packed arrays correctly.
7050 Handle case of 'first and 'last attributes of bare integral type
7051 without encoded subtype info.
7052 Remove some unnecessary casts.
7053 Fix uninitialized value of type in computing 'first, 'last, or 'length
7054 of array object.
7055 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7056 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7057 calls.
7058 Attributes are now exp_opcode values.
7059 Correct treatment of 'modulus.
7060 Better error message for taking 'length of wrong kind of type;
7061 improve comment.
7062 Change EVAL_NORMAL to noside for consistency.
7063 Use ada_value_binop for DIV, MOD, REM.
7064 Make special case out of array of length 0, since an argument
7065 of 0 upsets some platforms' malloc.
7066 Use OP_STRING instead of OP_ARRAY.
7067 For slice, add check that we have an array type before extracting
7068 a slice out of it. Avoids a SEGV.
7069 When evaluating an array slice, if the array type is a reference to
7070 an aligner type, then replace the aligner type by the actual type.
7071 Decomment disabled code.
7072 Remove some dead code.
7073 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7074 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7075 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7076 and UNOP_MBR to UNOP_IN_RANGE.
7077 If an array type has a parallel ___XVE type, then use it.
7078 Turn arrays into pointers for lvalue arrays.
7079 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7080 bounds error and handle 0-length slices.
7081 Use lim_warning.
7082 When selecting fields, apply ada_to_fixed_value (because the fields
7083 might have ___XVU or ___XVE encodings even if not dynamic.)
7084 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7085 (ada_is_system_address_type): New function.
7086
7087 (get_var_value): Use new interface to ada_lookup_symbol_list.
7088 (get_int_var_value): New interface.
7089 (to_fixed_range_type): Allow unknown bound, with warning.
7090 (ada_is_modular_type): Decomment disabled code.
7091 (ADA_OPERATORS): New definition.
7092 (ada_operator_length): New function.
7093 (ada_expr_op_name): New function.
7094 (ada_forward_operator_length): New function.
7095 (ada_dump_subexp_body): New function.
7096 (ada_print_subexp): New function.
7097 (ada_exp_descriptor): New constant.
7098 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7099 (ada_language_defn): Add ada_exp_descriptor entry.
7100 Change ada_parse => parse.
7101 Add post-parser entry.
7102 Use ada-specific non-local symbol lookup.
7103 Don't use C-style arrays.
7104 String lower-bound is 1.
7105 Decomment disabled code.
7106 (parse): New function.
7107 New fields ada_translate_error_message, ada_lookup_symbol,
7108 ada_lookup_minimal_symbol.
7109
7110 * ada-lang.h: Update copyright dates.
7111 Replace the mangle/demangle terminology throughout by the
7112 more appropriate encode/decode one.
7113 Include breakpoint.h.
7114 Forward declare struct partial_symbol, struct block.
7115 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7116 (EXTRACT_ADDRESS): Remove.
7117 (EXTRACT_INT): Remove.
7118 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7119 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7120 (MAX_RENAMING_CHAIN_LENGTH): Define.
7121 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7122
7123 (enum task_states): Remove.
7124 ada_task_states: Remove.
7125 (fat_string): Remove.
7126 (struct entry_call): Remove.
7127 (struct task_fields): Remove.
7128 (struct task_entry): Remove.
7129
7130 (struct ada_symbol_info): Define.
7131 (enum ada_attribute): Remove.
7132 (enum ada_operator): Define.
7133
7134 (ada_get_field_index): Declare.
7135 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7136 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7137 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7138 (ada_lookup_symbol_list): New interface.
7139 (ada_decode_symbol): Declare.
7140 (ada_decode): Declare.
7141 (ada_lookup_symbol): New interface.
7142 (ada_update_initial_language): Declare.
7143 (ada_lookup_simple_minsym): Declare.
7144 (user_select_syms): New interface.
7145 (ada_sals_for_line): Declare.
7146 (ada_is_tagged_type): New interface.
7147 (ada_tag_name): Declare.
7148 (ada_lookup_struct_elt_type): Remove declaration.
7149 (ada_search_struct_field): Remove declaration.
7150 (ada_attribute_name): New interface.
7151 (ada_is_system_address_type): Declare.
7152 (ada_to_fixed_value): Remove declaration.
7153 (ada_template_to_fixed_record_type_1): Declare.
7154 (get_int_var_value): New interface.
7155 (ada_find_any_symbol): Declare.
7156 (ada_find_renaming_symbol): Declare.
7157 (ada_mangle): Rename to ada_encode.
7158 (ada_simple_renamed_entity): Remove const.
7159 (ada_main_name): Declare.
7160 (get_current_task): Rename to ada_get_current_task.
7161 (get_entry_number): Remove declaration.
7162 (ada_report_exception_break): Remove declaration.
7163 (ada_print_exception_breakpoint_nontask): Declare.
7164 (ada_print_exception_breakpoint_task): Declare.
7165 (ada_find_printable_frame): Declare.
7166
7167 * ada-lex.l: Update copyright notices.
7168 Use xmalloc and xfree instead of malloc and free.
7169 Use new interface to name_lookup.
7170 Use new interface to
7171 ada_mangle=>ada_encode.
7172 Redo handling of '$...' variable to parallel current treatment
7173 in c-exp.y.
7174 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7175 digit_to_int, strtoulst, processInt, processReal, processId,
7176 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7177 yywrap): Protoize.
7178
7179 (processInt): Use cast to remove harmless warning.
7180 (processReal): Modify to get rid of compiler warning on scan formats.
7181
7182 (processId): Replace xmalloc with obstack_alloc for name and remove
7183 call to ada_name_string_cleanup.
7184 Remove obsolete disabled code.
7185 (name_lookup): Ditto.
7186 New interface.
7187 Use obsavestring on temp_parse_space instead of savestring
7188 on name, and remove call to ada_name_string_cleanup.
7189 Free string returned from ada_simple_renamed_entity.
7190 Use new interface to ada_lookup_symbol_list.
7191 Decomment disabled code.
7192 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7193 not types.
7194 When a type name lookup succeeds as a result of
7195 lookup_primitive_typename, check for regular type entry that has not
7196 yet been read in.
7197 Limit length of chain of renamed symbols we are willing to follow.
7198 Do not break names beginning with "standard__" into segments.
7199 (block_lookup): Use new interface to ada_lookup_symbol_list.
7200
7201 * ada-typeprint.c: Update copyright notice.
7202 (demangled_type_name): Rename to decoded_type_name.
7203 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7204 (print_range_bound): Correct handling of negative
7205 bounds that make the index type looked unsigned under STABS.
7206 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7207 (print_range_type_named): Use the builtin int type if no type
7208 corresponding to the given type name could be found.
7209 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7210 Add some bullet-proofing.
7211 (print_variant_clauses): Allow for variant branches with ___XVU
7212 encodings that are not dynamic fields.
7213 Use new interface to ada_is_tagged_type.
7214 (print_record_type): Allow for fields with ___XVE encodings that
7215 are not dynamic fields.
7216 Use new interface to ada_is_tagged_type.
7217 (ada_print_type): ada_is_array_descriptor =>
7218 ada_is_array_descriptor_type.
7219
7220 * ada-valprint.c: Update copyright notice.
7221 Include gdb_string.h
7222 Include infcall.h
7223 (ui_memcpy): New function.
7224 (ada_print_floating): New function.
7225 (ada_print_str): Order arguments correctly.
7226 Correct handling of empty arrays and arrays of 0-length items.
7227 ada_is_array_descriptor => ada_is_array_descriptor_type
7228 Print values of type System.Address in hexadecimal format.
7229 Use ada_print_floating to print floating-point numbers in Ada format.
7230 Print class tag values with type names.
7231 No longer print the address of reference values. Avoids
7232 a potential confusion.
7233 (ada_value_print): Stop printing the object type for reference
7234 values, but preserve that behavior for access types. Avoids
7235 a potential confusion.
7236 Simplify one conditional expression, as the first part is now
7237 necessarily true.
7238 ada_is_array_descriptor => ada_is_array_descriptor_type
7239 Add check for arrays for null records, and print them by hand.
4c4b4cd2 7240
f65f91b5
JB
72412004-06-01 Jim Blandy <jimb@redhat.com>
7242
7243 * ppc-tdep.h: Delete unused 'regoff' member.
7244 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7245
d4687fa0
MC
72462004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7247
7248 Fix PR symtab/1661.
7249 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7250 (hpread_read_struct_type): Likewise.
7251
de169ec9
AC
72522004-06-01 Andrew Cagney <cagney@gnu.org>
7253
c6902d46
AC
7254 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7255 instead of xasprintf.
7256 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7257 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7258 (mi_cmd_data_list_register_names)
7259 (mi_cmd_data_list_changed_registers)
7260 (mi_cmd_data_list_register_values)
7261 (get_register, mi_cmd_data_write_register_values)
7262 (mi_cmd_data_write_register_values)
7263 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7264 (mi_cmd_target_download, mi_cmd_target_select)
7265 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7266 (mi_execute_cli_command, mi_execute_async_cli_command)
7267 (mi_execute_async_cli_command): Ditto.
7268 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7269 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7270
6085fc2d
AC
7271 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7272 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7273 error_last_message instead of mi_error_last_message.
7274 * mi/mi-main.c (mi_error_last_message): Delete function.
7275
de169ec9
AC
7276 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7277 "invalid number of columns" error. Delete redundant "out of
7278 memory" check.
7279
1fc7d519
MK
72802004-05-31 Mark Kettenis <kettenis@gnu.org>
7281
6cfb2041
MK
7282 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7283 (gregset_t, fpregset_t): Remove typedefs.
7284 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7285 (REG_OFFSET): Rename argument.
7286 (i386bsd_r_reg_offset): Rename from reg_offset.
7287 (REG_ADDR): Remove macro.
7288 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7289 functions.
7290 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7291 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7292 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7293 instead of supply_gregset.
7294 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7295 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7296 instead of fill_gregset.
7297 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7298
1fc7d519
MK
7299 * i386bsd-nat.c: Don't include "gregset.h".
7300 (supply_gregset, fill_gregset): Make static.
7301 (supply_fpregset, fill_fpregset): Remove.
7302 * Makefile.in (i386bsd-nat.o): Update dependencies.
7303
2c34abbe
MK
73042004-05-30 Mark Kettenis <kettenis@gnu.org>
7305
448724fb
MK
7306 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7307 "gdb_assert.h". Con't include "gregset.h".
7308 (fbsd_make_corefile_notes): Use regset-based core file support
7309 instead off fill_gregset and fill_fpregset.
7310 * Makefile.in (fbsd-proc.o): Update dependencies.
7311
5ca8ca7c
MK
7312 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7313 instructions.
7314 (m88k_frame_prev_register): Simplify code a bit.
7315
593adc23
MK
7316 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7317 (amd64_collect_fpregset): New function.
7318 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7319
8d1b517b
MK
7320 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7321
7fdafb5a
MK
7322 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7323 (i386_collect_gregset): New function.
7324 (i386_supply_fpregset): Adjust comment.
7325 (i386_collect_fpregset): New function.
7326 (i386_regset_from_core_section): Use i386_collect_gregset and
7327 i386_collect_fpregset.
7328
8693c419
MK
7329 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7330 handle VALUEP being null.
7331
2c34abbe
MK
7332 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7333
45d134d8
MK
73342004-05-29 Mark Kettenis <kettenis@gnu.org>
7335
1698f4e7
MK
7336 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7337
45d134d8
MK
7338 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7339 assembler in OpenBSD 3.5-current.
7340 (amd64obsd_sigcontext_addr): Likewise.
7341
691d145a
JB
73422004-05-28 Jim Blandy <jimb@redhat.com>
7343
7344 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7345 register set, so our regcache isn't declared "legacy" and our E500
7346 pseudoregister read and write functions aren't ignored.
7347 (rs6000_register_byte, rs6000_register_raw_size,
7348 rs6000_register_virtual_type, rs6000_register_convertible,
7349 rs6000_register_convert_to_virtual,
7350 rs6000_register_convert_to_raw): Deleted.
7351 (rs6000_register_type, rs6000_convert_register_p,
7352 rs6000_register_to_value, rs6000_value_to_register): New
7353 functions.
7354 (rs6000_gdbarch_init): Don't register
7355 gdbarch_deprecated_register_size,
7356 gdbarch_deprecated_register_bytes,
7357 gdbarch_deprecated_register_byte,
7358 gdbarch_deprecated_register_raw_size,
7359 gdbarch_deprecated_register_virtual_type,
7360 gdbarch_deprecated_register_convertible,
7361 gdbarch_deprecated_register_convert_to_virtual, or
7362 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7363 register gdbarch_register_type, gdbarch_convert_register_p,
7364 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7365
18ed0c4e
JB
73662004-05-26 Jim Blandy <jimb@redhat.com>
7367
7368 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7369 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7370 functions, updated to match the register numberings used in GCC.
7371 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7372 rs6000_dwarf2_reg_to_regnum as register number conversions
7373 functions for STABS and Dwarf2.
7374
779af9e3
RC
73752004-05-26 Randolph Chung <tausq@debian.org>
7376
7377 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7378 in header file.
7379
c23968a2
JB
73802004-05-25 Joel Brobecker <brobecker@gnat.com>
7381
7382 * NEWS: Document new "start" command.
7383
3a7d1c27
RC
73842004-05-25 Randolph Chung <tausq@debian.org>
7385
7386 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7387 hppa-linux.
7388
43613416
RC
73892004-05-25 Randolph Chung <tausq@debian.org>
7390
7391 * hppa-hpux-tdep.c (offsetof): Define.
7392 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7393 (hppa32_hpux_frame_base_before_sigtramp)
7394 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7395 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7396 (hppa64_hpux_frame_base_before_sigtramp)
7397 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7398 functions.
7399 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7400 (hppa_hpux_sigtramp_frame_unwind_cache)
7401 (hppa_hpux_sigtramp_frame_this_id)
7402 (hppa_hpux_sigtramp_frame_prev_register)
7403 (hppa_hpux_sigtramp_frame_unwind)
7404 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7405 (hppa_hpux_init_abi): Register sigtramp unwinder.
7406 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7407
6d1be3f1
RC
74082004-05-25 Randolph Chung <tausq@debian.org>
7409
7410 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7411 and multiple stack unwinds.
7412 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7413
97c34f65
AC
74142004-05-25 Andrew Cagney <cagney@gnu.org>
7415
7416 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7417 * symfile-mem.h: Delete file.
7418 * symfile-mem.c: Do not include "symfile-mem.h".
7419 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7420 "struct bfd_section". When an error do not bother returning NULL.
7421 (add_symbol_file_from_memory_command): Use "struct bfd" and
7422 "struct bfd_section".
7423 * Makefile.in (symfile_mem_h): Delete.
7424 (symfile-mem.o): Update dependencies.
7425
e23cbd82
NR
74262004-05-25 Nick Roberts <nickrob@gnu.org>
7427
7428 * gdb-mi.el: New file.
7429
20d2ca3e
AC
74302004-05-25 Andrew Cagney <cagney@gnu.org>
7431
7432 * inftarg.c: Include "observer.h".
7433 (child_attach, child_create_inferior): Notify inferior_created.
7434 * corelow.c: Include "observer.h".
7435 (core_open): Notify inferior_created.
7436 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7437
c27cda74
AC
74382004-05-25 Andrew Cagney <cagney@gnu.org>
7439
7440 * target.h (struct target_ops): Add from_tty to
7441 to_create_inferior.
7442 (target_create_inferior, find_default_create_inferior): Update.
7443 * infcmd.c (run_command): Update.
7444 * wince.c (child_create_inferior): Update.
7445 * win32-nat.c (child_create_inferior): Update.
7446 * uw-thread.c (uw_thread_create_inferior): Update.
7447 * thread-db.c (thread_db_create_inferior): Update.
7448 * target.c (debug_to_create_inferior)
7449 (find_default_create_inferior): Update.
7450 (maybe_kill_then_create_inferior): Update.
7451 * sol-thread.c (sol_thread_create_inferior): Update.
7452 * remote.c (extended_remote_async_create_inferior)
7453 (extended_remote_create_inferior): Update.
7454 * remote-vx.c (vx_create_inferior): Update.
7455 * remote-st.c (st2000_create_inferior): Update.
7456 * remote-sim.c (gdbsim_create_inferior): Update.
7457 * remote-sds.c (sds_create_inferior): Update.
7458 * remote-rdp.c (remote_rdp_create_inferior): Update.
7459 * remote-rdi.c (arm_rdi_create_inferior): Update.
7460 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7461 * remote-e7000.c (e7000_create_inferior): Update.
7462 * procfs.c (procfs_create_inferior): Update.
7463 * ocd.c (ocd_create_inferior): Update.
7464 * ocd.h (ocd_create_inferior): Update.
7465 * nto-procfs.c (procfs_create_inferior): Update.
7466 * monitor.c (monitor_create_inferior): Update.
7467 * lin-lwp.c (lin_lwp_create_inferior): Update.
7468 * inftarg.c (child_create_inferior): Update.
7469 * hpux-thread.c (hpux_thread_create_inferior): Update.
7470 * gnu-nat.c (gnu_create_inferior): Update.
7471
1db2a798
AC
74722004-05-25 Andrew Cagney <cagney@gnu.com>
7473
7474 * MAINTAINERS: Update e-mail address.
7475
007d08bb
RC
74762004-05-24 Randolph Chung <tausq@debian.org>
7477
7478 * thread.c (info_threads_command, thread_apply_all_command)
7479 (thread_apply_command, thread_command, do_captured_thread_select):
7480 Remove HPUXHPPA-specific code.
7481
69e7b95e
RC
74822004-05-24 Randolph Chung <tausq@debian.org>
7483
7484 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7485 unused symbols.
7486 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7487 references.
7488
a4d5f2e0
JB
74892004-05-24 Joel Brobecker <brobecker@gnat.com>
7490
7491 * infcmd.c (kill_if_already_running): New function, extracted
7492 from run_command().
7493 (run_command): Replace extracted code by call to
7494 kill_if_already_running().
7495 (start_command): New function.
7496 (_initialize_infcmd): Add "start" command.
7497
bf2ca189
MK
74982004-05-24 Mark Kettenis <kettenis@gnu.org>
7499
7500 Add OpenBSD/m88k support.
7501 * NEWS (New native configurations): Mention OpenBSD/m88k.
7502 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7503 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7504 * Makefile.in (m88k_tdep_h): New variable.
7505 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7506 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7507 * configure.host: Add m88*-*-openbsd*.
7508 * configure.tgt: Add m88*-*-openbsd*.
7509
80fadb11
JB
75102004-05-24 Jim Blandy <jimb@redhat.com>
7511
7512 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7513 to approve changes.
7514
19e2d14b
KB
75152004-05-24 Kevin Buettner <kevinb@redhat.com>
7516
7517 * symtab.c (fixup_section): Search section table when lookup by
7518 name fails.
7519
1b07b470
RC
75202004-05-24 Randolph Chung <tausq@debian.org>
7521
7522 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7523 be "small_struct".
7524
368702b1
MK
75252004-05-24 Mark Kettenis <kettenis@gnu.org>
7526
5df97fde
MK
7527 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7528 register number in regcache_raw_collect call.
7529 (m68kbsd_collect_fpregset): Likewise.
7530 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7531
368702b1
MK
7532 * regset.h (struct regset): Add back `regset' member.
7533
a770d4ec
MK
75342004-05-23 Mark Kettenis <kettenis@gnu.org>
7535
70f9f479
MK
7536 * configure.in: Check for td_pcb in `struct thread'.
7537 * configure, config.in: Regenerated.
7538
2e16d79e
MK
7539 * dpx2-nat.c: Remove file.
7540 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7541 (dpx2-nat.o): Remove dependencies.
7542
492cf391
MK
7543 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7544 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7545 (amd64obsd_supply_pcb): New function.
7546 (_initialize_amd64obsd_nat): Enable libkvm interface.
7547 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7548 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7549 (LOADLIBES): New variable.
7550
a770d4ec
MK
7551 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7552 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7553 (sparc32nbsd_supply_pcb): New function.
7554 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7555 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7556 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7557 (LOADLIBES): New variable.
7558
9ea75c57
MK
75592004-05-22 Mark Kettenis <kettenis@gnu.org>
7560
2e0c3539
MK
7561 * bsd-kvm.c, bsd-kvm.h: New files.
7562 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7563 "bsd-kvm.h".
7564 (i386fbsd_supply_pcb): New function.
7565 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7566 (i386fbsd-nat.o): Update dependencies.
7567 (bsd_kvm_h): New variable.
7568 (bsd-kvm.o): New dependency.
7569 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7570 (LOADLIBES): New variable.
7571
9ea75c57
MK
7572 * regset.c: Tweak comment.
7573 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7574 macro.
7575 * regset.h: Update copyright year.
7576 (struct regset): Remove `descr' member, add `gdbarch' member.
7577 (regset_alloc): Adjust prototype and comment.
7578 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7579 (i386_supply_fpregset): Likewise.
7580 (i386_regset_from_core_section): Update call to regset_alloc.
7581 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7582 REGSET->arch.
7583 (i386obsd_aout_regset_from_core_section): Update call to
7584 regset_alloc.
7585 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7586 REGSET->arch.
7587 (i386nbsd_aout_regset_from_core_section): Update call to
7588 regset_alloc.
7589 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7590 REGSET->arch.
7591 (amd64_regset_from_core_section): Update call to regset_alloc.
7592 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7593 REGSET->arch.
7594 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7595 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7596 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7597 (sparc32nbsd_init_abi): Update call to regset_alloc.
7598 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7599 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7600 (sparc64obsd_init_abi): Update call to regset_alloc.
7601 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7602 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7603 (sparc64nbsd_init_abi): Update call to regset_alloc.
7604 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7605 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7606 (sparc64fbsd_init_abi): Update call to regset_alloc.
7607
867e2dc5
JB
76082004-05-22 Jim Blandy <jimb@redhat.com>
7609
7610 * ppc-tdep.h (spe_register_p): New declaration.
7611 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7612 ppc_spefscr_regnum.
7613 * rs6000-tdep.c (spe_register_p): New function.
7614 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7615 spefscr.
7616 (rs6000_gdbarch_init): Initialize the new members of the tdep
7617 structure.
7618
617a4cba
JB
76192004-05-21 Jim Blandy <jimb@redhat.com>
7620
0397dee1
JB
7621 * ppc-linux-nat.c (fetch_register): Move code back to be next
7622 to the comment that describes it. (Moved code, instead of
7623 comment, for symmetry with store_register.)
7624
617a4cba
JB
7625 Allocate regset structures in the gdbarch's obstack, not using
7626 xmalloc.
7627 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7628 Add 'arch' argument. Allocate the regset on arch's obstack, not
7629 using xmalloc.
7630 * regset.h (regset_alloc): Update declaration.
7631 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7632 gdbarch argument.
7633 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7634 * i386-tdep.c (i386_regset_from_core_section): Same.
7635 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7636 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7637 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7638 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7639 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7640 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7641
9aa3914d
JB
76422004-05-21 Joel Brobecker <brobecker@gnat.com>
7643
7644 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7645
99c87dab
JB
76462004-05-21 Jim Blandy <jimb@redhat.com>
7647
7648 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7649 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7650
c2b6b4aa
JB
76512004-05-20 Jim Blandy <jimb@redhat.com>
7652
7653 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7654
144529d0
MK
76552004-05-20 Mark Kettenis <kettenis@gnu.org>
7656
7657 * regset.h: Make prototype const-correct.
7658 * regset.c (regset_xmalloc): Make const-correct.
7659
4725b721
PH
76602004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7661
7662 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7663 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7664 (symbol_search_name): Declare.
7665
7666 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7667 (iter_name_next_hashed): Ditto.
7668 (iter_name_next_linear): Ditto.
7669 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7670
7671 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7672 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7673 (symbol_search_name): New function.
7674
7675 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7676
7677 * minsyms.c (build_minimal_symbol_hash_tables): Change
7678 test for adding to demangled hash table to check for difference
7679 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7680
be07a590
JB
76812004-05-19 Jim Blandy <jimb@redhat.com>
7682
7683 Use a constructor function to create regset structures.
7684 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7685 (struct regset): Use supply_regset_ftype. Add new
7686 'collect_regset' member.
7687 (regset_xmalloc): New declaration.
7688 * regset.c: New file.
7689 * am64-tdep.c (amd64_regset_from_core_section): Use
7690 regset_xmalloc to construct regset structures.
7691 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7692 * i386-tdep.c (i386_regset_from_core_section): Same.
7693 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7694 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7695 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7696 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7697 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7698 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7699 * Makefile.in (COMMON_OBS): Add regset.o.
7700 (regset.o): New rule.
7701
604368f5
JB
77022004-05-19 Joel Brobecker <brobecker@gnat.com>
7703
7704 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7705 and pthread_cond_wait.c.
7706
82d69f8b
JB
77072004-05-18 Jim Blandy <jimb@redhat.com>
7708
7709 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7710 before the mach-specific switch, and then let the individual cases
7711 override the defaults, rather than leaving them uninitialized
7712 until the switch and then setting them in each case.
7713
5859efe5
RC
77142004-05-18 Randolph Chung <tausq@debian.org>
7715
7716 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7717 millicode functions.
7718
9ca80cf8
RC
77192004-05-18 Randolph Chung <tausq@debian.org>
7720
7721 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7722 references to dld_flags_buffer consistent.
7723
ed70ba00
RC
77242004-05-18 Randolph Chung <tausq@debian.org>
7725
7726 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7727 it for unwinding the stack.
7728
63100632
RC
77292004-05-18 Randolph Chung <tausq@debian.org>
7730
7731 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7732 Undefine these so we can overide them using gdbarch.
7733
090ccbb7
RC
77342004-05-18 Randolph Chung <tausq@debian.org>
7735
7736 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7737 handling for 64-bit HPUX (elf).
7738
594706e6
DJ
77392004-05-18 Daniel Jacobowitz <dan@debian.org>
7740
7741 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7742 constants.
7743 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7744 * ia64-tdep.c (examine_prologue): Likewise.
7745 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7746 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7747
e5483145
MK
77482004-05-18 Mark Kettenis <kettenis@gnu.org>
7749
7750 * vax-tdep.c (vax_return_value): Implement
7751 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7752
caed1a45
MK
77532004-05-17 Mark Kettenis <kettenis@gnu.org>
7754
7755 * vax-tdep.c (vax_return_value): Fix typo.
7756
3c0b7db2
AC
77572004-05-17 Andrew Cagney <cagney@redhat.com>
7758
5aae53e5
AC
7759 * MAINTAINERS: Mark Salter was also responsible for
7760 testsuite/config/
7761
3c0b7db2
AC
7762 * NEWS: Mention signal fixes.
7763
22b0923d
RC
77642004-05-17 Randolph Chung <tausq@debian.org>
7765
7766 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7767 check to see if we are unwinding an export stub. Export stubs clobber
7768 the %rp in the call path and stores the original rp in a stack slot.
7769
22f2b2f3
JB
77702004-05-17 Jim Blandy <jimb@redhat.com>
7771
7772 * MAINTAINERS: Update address for J.T. Conklin.
7773
cea96d64
RC
77742004-05-17 Randolph Chung <tausq@debian.org>
7775
7776 * hppa-tdep.c: Remove superfluous #include's.
7777 * Makefile.in (hppa-tdep.o): Update dependencies.
7778
f08f6a4a
RC
77792004-05-17 Randolph Chung <tausq@debian.org>
7780
7781 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7782 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7783 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7784 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7785 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7786 Remove static function declarations.
7787
51da707a
MK
77882004-05-17 Mark Kettenis <kettenis@gnu.org>
7789
caed1a45
MK
7790 * alphabsd-nat.c: Update copyright year.
7791 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7792
c0c2b0db
MK
7793 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7794 and M68K_A2_REGNUM.
7795
51da707a
MK
7796 * m68k-tdep.c (m68k_svr4_return_value): Implement
7797 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7798
8d027a04
MK
77992004-05-16 Mark Kettenis <kettenis@gnu.org>
7800
7801 * sol-thread.c Update copyright year. Fix various coding
7802 standards violations. Tweak a few comments.
7803 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7804 Delete prototypes.
7805
0d99fdb9
RC
78062004-05-15 Randolph Chung <tausq@debian.org>
7807
7808 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7809 as pointer instead of array reference since HPUX compiler does
7810 not accept unsized array arguments.
7811 * somsolib.c (dld_flags_buffer): Use constant array size.
7812
f7e3843a
MK
78132004-05-15 Mark Kettenis <kettenis@gnu.org>
7814
0fe85704
MK
7815 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7816 offset with decimal offset.
7817 (amd64obsd_sigcontext_addr): Return correct address for entire
7818 signal trampoline.
7819
a54f9a00
MK
7820 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7821 instead of get_frame_base.
7822
feae6502
MK
7823 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7824 (fill_gregset): Use regcache_raw_collect.
7825
0382d099
MK
7826 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7827 ppcobsd-tdep.c.
7828
f7e3843a
MK
7829 * config/sparc/tm-nbsd64.h: Remove file.
7830 * config/tm-sunos.h: Remove file.
7831
773df3e5
JB
78322004-05-15 Joel Brobecker <brobecker@gnat.com>
7833
7834 * rs6000-tdep.c (store_param_on_stack_p): New function,
7835 an improved version of some code extracted from skip_prologue().
7836 (skip_prologue): Use store_param_on_stack_p() to detect
7837 instructions saving a parameter on the stack. Detect when r0
7838 is used to save a parameter.
7839 Do not mark "li rx, SIMM" instructions as part of the prologue,
7840 unless the following instruction is also part of the prologue.
7841
95918acb
AC
78422004-05-14 Andrew Cagney <cagney@redhat.com>
7843
06f32659
AC
7844 * infrun.c (handle_inferior_event): Simplify
7845 STEP_OVER_UNDEBUGGABLE.
7846
95918acb
AC
7847 * infrun.c (handle_step_into_function): Delete function.
7848 (handle_inferior_event): Inline calls to
7849 handle_step_into_function.
7850
40711ff1 78512004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7852
7853 * rs6000-nat.c: Fix a comment.
7854
02f60eae
JB
78552004-05-12 David Anderson <davea@sgi.com>
7856
7857 Committed by Jim Blandy <jimb@redhat.com>:
7858 * regcache.c (struct regcache_descr): fix comment spelling.
7859
552e377b
JB
78602004-05-13 J. Brobecker <brobecker@gnat.com>
7861
7862 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7863 Fixes a link link failure.
7864
349766b2
JB
78652004-05-13 J. Brobecker <brobecker@gnat.com>
7866
7867 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7868 error that was causing the build to fail.
7869
0d4d5484
JB
78702004-05-13 J. Brobecker <brobecker@gnat.com>
7871
7872 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7873 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7874
0b30808c
AC
78752004-05-13 Andrew Cagney <cagney@redhat.com>
7876
7877 * infrun.c (handle_inferior_event): Check for
7878 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7879 calls. Update comments.
7880
cdf2c5f5
JB
78812004-05-13 Jim Blandy <jimb@redhat.com>
7882
063715bf
JB
7883 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7884 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7885 (store_regs_user_thread, store_regs_kernel_thread): Use
7886 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7887 * ppc-linux-nat.c (fill_gregset): Same.
7888 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7889 (ppc_linux_sigtramp_cache): Same.
7890 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7891 (ppcnbsd_sigtramp_cache_init): Same.
7892 * rs6000-nat.c (fetch_core_registers): Same.
7893 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7894 (rs6000_frame_cache): Same.
7895
cdf2c5f5
JB
7896 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7897 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7898 of assuming that the gprs are numbered starting with zero.
7899 * ppc-linux-nat.c (fill_gregset): Same.
7900 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7901 * ppcnbsd-nat.c (getregs_supplies): Same.
7902 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7903 * rs6000-nat.c (fetch_core_registers): Same.
7904 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7905
450bd37b
MS
79062004-05-07 Michael Snyder <msnyder@redhat.com>
7907
7908 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7909 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7910
4a72a2a6
AC
79112004-05-13 Andrew Cagney <cagney@redhat.com>
7912
7913 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7914
8edfa926
BM
79152004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7916
7917 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7918 base_address for shared libraries.
7919
723e0e3d
BM
79202004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7921
7922 * MAINTAINERS (write after approval): Add myself.
7923
00d4360e
UW
79242004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7925
7926 * breakpoint.c (bpstat_stop_status): Add new argument
7927 STOPPED_BY_WATCHPOINT. Use it instead of testing
7928 target_stopped_data_address agaist 0 to check whether
7929 or not we stopped due to a hardware watchpoint.
7930 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7931 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7932 with new argument.
7933
ec76baa5
JB
79342004-05-12 Jim Blandy <jimb@redhat.com>
7935
7936 * configure.in: When checking whether we should use the -bbigtoc
7937 option, don't forget to restore the original value of LDFLAGS.
7938 * configure: Regenerated.
7939
f2c9ca08
AC
79402004-05-12 Andrew Cagney <cagney@redhat.com>
7941
7942 * thread.c (load_infrun_state): Delete step_sp.
7943 * infrun.c (context_switch): Ditto.
7944 * inferior.h (step_sp): Ditto.
7945 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7946 * gdbthread.h (struct thread_info, save_infrun_state)
7947 (restore_infrun_state): Ditto.
7948
090ddb2a
UW
79492004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7950
7951 * MAINTAINERS (write after approval): Add myself.
7952
8aad930b
AC
79532004-05-12 Andrew Cagney <cagney@redhat.com>
7954
7955 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7956 eliminate reference to step_sp.
7957 (struct execution_control_state, init_execution_control_state)
7958 (handle_inferior_event, keep_going): Delete update_step_sp and
7959 step_sp.
7960 * infcmd.c (step_sp): Note that variable is unused.
7961
922d5ae0
AC
79622004-05-11 Andrew Cagney <cagney@redhat.com>
7963
7964 * infrun.c (step_over_function): Delete function.
7965 (handle_step_into_function): Use insert_step_resume_breakpoint.
7966 (insert_step_resume_breakpoint): Fix assertion.
7967
017c5ca5
NR
79682004-05-11 Nick Roberts <nickrob@gnu.org>
7969
7970 * utils.c (defaulted_query): Just use the normal query input type
7971 when printing the annotations.
7972
42edda50
AC
79732004-05-11 Andrew Cagney <cagney@redhat.com>
7974
7975 * infrun.c (handle_inferior_event): Simplify code handling
7976 step-into or return-from a signal trampoline.
7977
d28b44a7
AC
79782004-05-11 Andrew Cagney <cagney@redhat.com>
7979
7980 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7981 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7982
383f0f5b
JB
79832004-05-10 Jim Blandy <jimb@redhat.com>
7984
d0b57c3a
JB
7985 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7986 with a call to internal_error.
7987
383f0f5b
JB
7988 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7989 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7990 processor variant lacks those registers.
7991 (ppc_floating_point_unit_p): Change description to make it clear
7992 that this returns info about the ISA, not the ABI.
7993 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7994 return true or false by checking tdep->ppc_fp0_regnum and
7995 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7996 arch/mach switching done in rs6000_gdbarch_init; it's better to
7997 keep that logic there, and just check the results here.
7998 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7999 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8000 floating-point registers.
8001 (ppc_supply_fpregset, ppc_collect_fpregset)
8002 (rs6000_push_dummy_call, rs6000_extract_return_value)
8003 (rs6000_store_return_value): Assert that we have floating-point
8004 registers.
8005 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8006 (rs6000_frame_cache): Don't note the locations at which
8007 floating-point registers were saved if we have no fprs.
8008 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8009 registers.
8010 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8011 (store_regs_user_thread, store_regs_kernel_thread): Only call
8012 supply_fprs / fill_fprs if we actually have floating-point
8013 registers.
8014 (special_register_p): Check ppc_fpscr_regnum before matching
8015 against it.
8016 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8017 supply / collect fpscr if we don't have it.
8018 * ppc-bdm.c: #include "gdb_assert.h".
8019 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8020 have floating-point registers, since I can't test this code on
8021 FP-free systems to adapt it.
8022 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8023 fpscr and floating point register numbers if they don't exist.
8024 (fetch_register): Assert that we have floating-point registers
8025 before we reach the code that handles them.
8026 (store_register): Same. And use tdep instead of calling
8027 gdbarch_tdep again.
8028 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8029 don't have them.
8030 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8031 fprs and fpscr if we don't have them.
8032 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8033 don't have them.
8034 * ppcnbsd-nat.c: #include "gdb_assert.h".
8035 (getfpregs_supplies): Assert that we have floating-point registers.
8036 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8037 * ppcobsd-tdep.c: #include "gdb_assert.h".
8038 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8039 have floating-point registers.
8040 * rs6000-nat.c (regmap): Don't match against the fpscr and
8041 floating point register numbers if they don't exist.
8042 (fetch_inferior_registers, store_inferior_registers,
8043 fetch_core_registers): Only fetch / store / supply the
8044 floating-point registers and the fpscr if we have them.
8045 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8046 (ppcobsd-tdep.o): Update dependencies.
8047
15960608
AC
80482004-05-10 Andrew Cagney <cagney@redhat.com>
8049
8050 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8051 (context_switch): Do not switch through_sigtramp_breakpoint.
8052 * gdbthread.h (save_infrun_state, load_infrun_state)
8053 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8054 and structure member.
8055 * thread.c (load_infrun_state, save_infrun_state): Update.
8056
5ab5aa0f
MK
80572004-05-10 Mark Kettenis <kettenis@gnu.org>
8058
8059 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8060
da78b0e7
DJ
80612004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8062
8063 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8064 throughout.
8065 * aclocal.m4: Regenerate.
8066
cca0d3b0
NW
80672004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8068
8069 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8070
d303a6c7
AC
80712004-05-10 Andrew Cagney <cagney@redhat.com>
8072
8073 * infrun.c (check_sigtramp2): Delete function.
8074 (handle_inferior_event): When single stepping, and taking a
8075 signal, set a breakpoint at the signal return address. Delete
8076 redundant calls to check_sigtramp2.
8077 (insert_step_resume_breakpoint): New function.
8078 (through_sigtramp_breakpoint, handle_inferior_event)
8079 (follow_exec, wait_for_inferior, fetch_inferior_event)
8080 (currently_stepping, keep_going): Delete most uses of
8081 through_sigtramp_breakpoint, not that it should be deleted.
8082 (delete_breakpoint_current_contents): Delete function.
8083
03f4cc20
RC
80842004-05-10 Randolph Chung <tausq@debian.org>
8085
8086 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8087 target.
8088 * config/pa/tm-linux.h: New file.
8089
37fc812e
DJ
80902004-05-10 Daniel Jacobowitz <drow@mvista.com>
8091
8092 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8093 of prefixes. Don't print the prefix twice in the CLI.
8094
26c0b942
JB
80952004-05-10 Jim Blandy <jimb@redhat.com>
8096
2e56e9c1
JB
8097 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8098 collect all the gprs.
8099
26c0b942
JB
8100 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8101 loop collecting gprs.
8102
dc497459
AC
81032004-05-09 Andrew Cagney <cagney@redhat.com>
8104
8105 * remote-vx.c (net_step): Delete step-range code.
8106 * remote.c (remote_resume, init_all_packet_configs)
8107 (set_remote_protocol_E_packet_cmd)
8108 (show_remote_protocol_E_packet_cmd)
8109 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8110 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8111 (show_remote_protocol_e_packet_cmd): Ditto.
8112
0543f387
MK
81132004-05-09 Mark Kettenis <kettenis@gnu.org>
8114
c481d1ca
MK
8115 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8116
f626a069
MK
8117 * hppa-tdep.h: Update copyright year.
8118 (struct trad_frame_saved_reg): Add opaque declaration.
8119
6fa57a7d
MK
8120 * amd64-tdep.c (amd64_return_value): Implement
8121 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8122
e47577ab
MK
8123 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8124 (m68k_value_to_register): New functions.
8125 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8126 value_to_register.
8127
31db7b6c
MK
8128 * defs.h (enum return_value_convention): Add
8129 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8130 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8131 * infcmd.c (legacy_return_value): New function.
8132 (print_return_value): Rwerite to implement
8133 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8134 * values.c (using_struct_return): Check for inequality to
8135 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8136 RETURN_VALUE_STRUCT_CONVENTION.
8137 * i386-tdep.c (i386_return_value): Implement
8138 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8139
0543f387
MK
8140 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8141 include "symtab.h", "opcode/vax.h" and "inferior.h".
8142 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8143 to read_memory_unsigned_integer.
8144 (vax_gdbarch_init): Reorder.
8145 (_initialize_vax_tdep): Spell out prototype.
8146 * Makefile.in (vax-tdep.o): Update dependencies.
8147
0c93b7b6
AC
81482004-05-08 Andrew Cagney <cagney@redhat.com>
8149
e6b55ae2
AC
8150 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8151 * target.c (target_detach, target_disconnect): Ditto.
8152
1ac839b8
AC
8153 * infcall.c (call_function_by_hand): When no
8154 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8155 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8156 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8157 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8158 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8159
28954179
AC
8160 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8161 * gdbarch.h, gdbarch.c: Re-generate.
8162 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8163 deprecated_fix_call_dummy.
8164 * v850-tdep.c (v850_gdbarch_init): Ditto.
8165 * infcall.c (call_function_by_hand): Do not call
8166 DEPRECATED_FIX_CALL_DUMMY.
8167
434b87dd
AC
8168 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8169 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8170 * gdbarch.h, gdbarch.c: Re-generate.
8171 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8172 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8173 deprecated_sizeof_call_dummy_words.
8174 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8176 * v850-tdep.c (v850_gdbarch_init): Ditto.
8177 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8178 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8179 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8180 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8181 * arch-utils.h (legacy_call_dummy_words)
8182 (legacy_sizeof_call_dummy_words): Delete declarations.
8183 * arch-utils.c (legacy_call_dummy_words)
8184 (legacy_sizeof_call_dummy_words): Delete variables.
8185
58d28df8
AC
8186 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8187 * gdbarch.h, gdbarch.c: Re-generate.
8188 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8189 * infcall.c (call_function_by_hand): Eliminate call to
8190 DEPRECATED_PUSH_DUMMY_FRAME.
8191 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8192 push_dummy_frame.
8193 (ns32k_push_dummy_frame): Delete function.
8194
e4a2df64
AC
8195 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8196 deprecated_call_dummy_breakpoint_offset or
8197 deprecated_call_dummy_start_offset.
8198 * dummy-frame.c, arm-tdep.c: Update comments.
8199 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8200 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8201 * gdbarch.h, gdbarch.c: Re-generate.
8202
d3712828
AC
8203 * infcall.c (legacy_push_dummy_code): Delete function.
8204 (push_dummy_code): Delete call.
8205
7a882905
AC
8206 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8207 * gdbarch.h, gdbarch.c: Re-generate.
8208 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8209 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8210 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8211 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8212
0ec5872b
AC
8213 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8214 (struct frame_info): Delete opaque declaration.
8215 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8216 * frame.c (get_frame_type): Delete call.
8217
0c93b7b6
AC
8218 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8219 pc_in_call_dummy.
8220 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8221 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8222
75536971
MK
82232004-05-08 Mark Kettenis <kettenis@gnu.org>
8224
527ca6bb
MK
8225 * alphanbsd-tdep.c: Include "gdb_string.h".
8226 * armnbsd-tdep.c: Update copyright year.
8227 Include "gdb_string.h".
8228 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8229 dependencies.
8230
d39fdc61
MK
8231 * delta68-nat.c: Remove file.
8232 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8233 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8234 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8235 (delta68-nat.o): Remove dependency.
8236
75536971
MK
8237 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8238 function.
8239 (m68k_gdbarch_init): Don't set
8240 deprecated_frameless_function_invocation.
8241
f4ca1d1f
RC
82422004-05-07 Randolph Chung <tausq@debian.org>
8243
8244 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8245 read_memory_nobpt for code reading when doing frame unwinding.
8246 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8247
2f0e8c7a
RC
82482004-05-07 Randolph Chung <tausq@debian.org>
8249
8250 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8251 instead of sp, handle sigaltstack case.
8252 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8253 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8254 signal handler and not that of the caller.
8255 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8256 hppa_linux_sigtramp_find_sigcontext.
8257
959464ff
RC
82582004-05-07 Randolph Chung <tausq@debian.org>
8259
8260 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8261 hppa-linux-nat.c.
8262 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8263 * hppa-linux-nat.c (fetch_register, store_register): Define.
8264 (fetch_inferior_registers, store_inferior_registers): Define.
8265 (supply_gregset): Add comment and clean up some unneeded code.
8266 (fill_gregset): Add comment and fix so that it saves registers in
8267 the right place in the gregset.
8268 (fill_fpregset): Fix buffer overrun problem.
8269 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8270
0da28f8a
RC
82712004-05-07 Randolph Chung <tausq@debian.org>
8272
8273 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8274 do common handling of the pcoqt register.
8275 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8276 to use helper function.
8277 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8278 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8279 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8280 generic fallback unwinder when all else fails.
8281 (hppa_gdbarch_init): Add fallback sniffer.
8282 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8283 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8284 to use helper function.
8285
b9ec757a
JB
82862004-05-08 Joel Brobecker <brobecker@gnat.com>
8287
8288 * config/djgpp/fnchange.lst: Add translation rules for
8289 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8290
756e95f1
MK
82912004-05-08 Mark Kettenis <kettenis@gnu.org>
8292
8293 * frame.c (get_prev_frame_1): Work around GCC bug.
8294 * frame.h: Add comment about GCC bug.
8295
2b4855ab
AC
82962004-05-07 Andrew Cagney <cagney@redhat.com>
8297
8298 * observer.c: Include "commands.h" and "gdbcmd.h".
8299 (observer_debug, _initialize_observer): Add the
8300 command "set/show debug observer".
8301 * observer.sh: When observer debugging, log notify calls.
8302 * Makefile.in (observer.o): Update dependencies.
8303
ba3e8e46
JM
83042004-05-07 Jason Molenda (jmolenda@apple.com)
8305
8306 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8307
16796152
JB
83082004-05-07 Jim Blandy <jimb@redhat.com>
8309
daf6dc85
JB
8310 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8311 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8312 to recognize gpr regnums, instead of assuming that
8313 tdep->ppc_fp0_regnum marks the end of the general-purpose
8314 registers.
8315
16796152
JB
8316 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8317 the given architecture has floating-point registers.
8318
c69b8bfc
AC
83192004-05-07 Andrew Cagney <cagney@redhat.com>
8320
8321 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8322 macro defined to 1.
8323 * gdbarch.h, gdbarch.c: Re-generate.
8324 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8325 deprecated_use_generic_dummy_frames.
8326
7243600a
BF
83272004-05-07 Brian Ford <ford@vss.fsi.com>
8328
8329 * NEWS: Mention Cygwin DWARF 2 support.
8330
73c1e0a1
AC
83312004-05-07 Andrew Cagney <cagney@redhat.com>
8332
8333 * objfiles.h (struct entry_info): Delete unused fields
8334 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8335 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8336 * mipsread.c (mipscoff_symfile_read): Update.
8337 * mdebugread.c (parse_partial_symbols): Update.
8338 * dwarfread.c (read_file_scope): Update.
8339 * dwarf2read.c (read_file_scope): Update.
8340 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8341 * coffread.c (complete_symtab): Update.
8342
1d3056ac
MK
83432004-05-07 Mark Kettenis <kettenis@gnu.org>
8344
8345 * infcall.c (_initialize_infcall): Fix typo.
8346
15170568
AC
83472004-05-07 Andrew Cagney <cagney@redhat.com>
8348
8349 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8350 * command.h (add_setshow_zinteger_cmd): Declare.
8351
34f75cc1
RC
83522004-05-06 Randolph Chung <tausq@debian.org>
8353
8354 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8355 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8356 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8357 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8358 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8359 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8360 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8361 definitions ...
8362 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8363 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8364 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8365 (hppa64_hpux_frame_find_saved_regs_in_sig)
8366 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8367 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8368 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8369 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8370 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8371 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8372 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8373 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8374 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8375 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8376 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8377 (hppa32_register_type, hppa_cannot_store_register)
8378 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8379 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8380 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8381 * pa64solib.c (pa64_solib_have_load_event)
8382 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8383 (pa64_solib_unloaded_library_pathname): Likewise.
8384 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8385 (som_solib_library_pathname): Likewise.
8386
0a5e7efe
JI
83872004-05-05 Jim Ingham <jingham@apple.com>
8388
8389 * breakpoint.c (create_breakpoints): Copy the ignore count and
8390 thread id over from the pended breakpoint to the actual
8391 breakpoint.
8392
10a4b113
AC
83932004-05-05 Andrew Cagney <cagney@redhat.com>
8394
8395 * gdbarch.sh (PARM_BOUNDARY): Delete.
8396 gdbarch.h, gdbarch.c: Re-generate.
8397 * valops.c (PARM_BOUNDARY): Delete macro.
8398 (value_push): Delete PARM_BOUNDARY code.
8399 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8400
366f009f
JB
84012004-05-04 Jim Blandy <jimb@redhat.com>
8402
32b99774
JB
8403 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8404 Don't assume that the gprs, fprs, and UISA sprs are
8405 contiguous, start at register number zero, and end with fpscr.
8406 Instead, use the numbers from the tdep structure.
8407
366f009f
JB
8408 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8409 should no longer be used in code specific to the RS6000 and its
8410 derivatives.
8411 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8412 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8413 tdep->ppc_fp0_regnum.
8414 (ppc_supply_fpregset, ppc_collect_fpregset)
8415 (rs6000_push_dummy_call, rs6000_extract_return_value)
8416 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8417 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8418 FP0_REGNUM.
8419 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8420 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8421 Same.
8422 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8423 bdm_ppc_store_registers): Same.
8424 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8425 (store_register, fill_fpregset): Same.
8426 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8427 (ppc_linux_supply_fpregset): Same.
8428 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8429 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8430 Same.
8431 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8432 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8433 ppc64_sysv_abi_return_value): Same.
8434 * rs6000-nat.c (regmap, fetch_inferior_registers)
8435 (store_inferior_registers, fetch_core_registers): Same.
8436
827f338d
MK
84372004-05-01 Mark Kettenis <kettenis@gnu.org>
8438
8439 * m68knbsd-nat.c: Remove file.
8440 * m68knbsd-tdep.c: Remove file.
8441 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8442 dependencies.
8443 * configure.host: Add m68k-*-netbsdelf*.
8444 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8445 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8446 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8447 (XM_FILE): Remove.
8448 * config/m68k/nbsdelf.mh: New file.
8449 * config/m68k/nbsd.mt: New file.
8450 * config/m68k/nbsdaout.mt: Remove file.
8451 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8452 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8453 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8454 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8455 (use_struct_convention): Remove prototype.
8456 (USE_STRUCT_CONVENTION): Remove define.
8457 * config/m68k/xm-nbsd.h: Remove file.
8458
66894781
MS
84592004-05-04 Michael Snyder <msnyder@redhat.com>
8460
8461 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8462 reg_struct_return method (as gcc usually does for cross targets).
8463
f0f63663
AC
84642004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8465
8466 Committed by Andrew Cagney.
8467 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8468 alignment padding when accessing ucontext struct members.
8469
edf61169
JB
84702004-05-04 Jim Blandy <jimb@redhat.com>
8471
8bf659e8
JB
8472 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8473 'ppc_gplast_regnum' member.
8474 (ppc_num_gprs): New enum constant.
8475 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8476 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8477 * rs6000-nat.c (regmap, fetch_inferior_registers,
8478 store_inferior_registers): Same.
8479 * rs6000-tdep.c (e500_pseudo_register_read)
8480 (e500_pseudo_register_write): Same.
8481 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8482
b967e06f
JB
8483 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8484 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8485 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8486 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8487 FPLAST_REGNUM.
8488 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8489 Same.
8490 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8491 * rs6000-nat.c (regmap, fetch_inferior_registers)
8492 (store_inferior_registers): Same.
8493
edf61169
JB
8494 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8495 with FPLAST_REGNUM.
8496
58a9656e
JB
84972004-05-03 Joel Brobecker <brobecker@gnat.com>
8498
8499 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8500 failure detected by recent versions of GCC.
8501 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8502 to be consistent with the usage in dwarf2_create_include_psymtab.
8503
dc305454
MS
85042004-05-03 Michael Snyder <msnyder@redhat.com>
8505
8506 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8507 (heuristic_proc_start): Whitespace cleanup.
8508
29972665
MK
85092004-05-04 Mark Kettenis <kettenis@gnu.org>
8510
6b57680d
MK
8511 * sun3-nat.c: Remove file.
8512 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8513 dependencies.
8514 (ALLDEPFILES): Remove sun3-nat.c.
8515 (sun3-nat.o): Remove dependencies.
8516
29972665
MK
8517 * i386-interix-nat.c, i386-interix-tdep.c,
8518 config/i386/nm-interix.h, config/i386/interix.mh,
8519 config/i386/interix.mt: Remove files.
8520 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8521 dependencies.
8522
f595cb19
MK
85232004-05-03 Mark Kettenis <kettenis@gnu.org>
8524
8525 * m68k-tdep.h (struct gdbarch_tdep): Add member
8526 struct_value_regnum.
8527 (m68k_svr4_init_abi): New prototype.
8528 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8529 different calling conventions.
8530 (m68k_extract_return_value): Remove code dealing with single-field
8531 structs.
8532 (m68k_store_return_value): Remove code dealing with single-field
8533 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8534 (m68k_extract_struct_value_address): Remove function.
8535 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8536 (m68k_reg_struct_return_p, m68k_return_value)
8537 (m68k_svr4_return_value): New functions.
8538 (m68k_use_struct_convention): Remove function.
8539 (m68k_push_dummy_call): Use new struct_value_regnum member of
8540 `struct gdbarch_tdep' instead of hardcoded register number to
8541 store STRUCT_ADDR.
8542 (m68k_svr4_init_abi): New function.
8543 (m68k_gdbarch_init): Don't set extract_return_value,
8544 store_return_values, deprecated_extract_struct_value_address and
8545 use_struct_convention. Set return_value instead. Initialize new
8546 struct_value_regnum member of `struct gdbarch_tdep'.
8547 * m68klinux-tdep.c: Update copyright year.
8548 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8549 (m68k_linux_extract_struct_value_address): Remove function.
8550 (m68k_linux_init_abi): Don't set extract_return_value,
8551 store_return_values, deprecated_extract_struct_value_address and
8552 use_struct_convention. Call m68k_svr4_init_abi but override the
8553 new struct_value_regnum member of `struct gdbarch_tdep'.
8554 * Makefile.in (m68k-tdep.o): Update dependencies.
8555
aaa75496
JB
85562004-05-03 J. Brobecker <brobecker@gnat.com>
8557
8558 * dwarf2read.c (line_header): Add new included_p field in
8559 field file_names.
8560 (partial_die_info): New field has_stmt_list. New field line_offset.
8561 (dwarf2_create_include_psymtab): New function.
8562 (dwarf2_build_include_psymtabs): New function.
8563 (add_file_name): Add forward declaration. Initialize new field.
8564 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8565 to be able to determine the list of files included by the
8566 given unit, and build their associated psymtabs.
8567 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8568 files as well.
8569 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8570 (read_file_scope): Update call to dwarf_decode_lines.
8571 (read_partial_die): Handle DW_AT_stmt_list attributes.
8572
c848556f
MC
85732004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8574
8575 Unfix PR gdb/1626.
8576 * configure.in: Revert special case for osf5.*.
8577 * configure: Regenerate.
8578
eb4556d7
JB
85792004-05-02 Jim Blandy <jimb@redhat.com>
8580
8581 Move the symbol-file-from-memory functions into their own file.
8582 * symfile-mem.c, symfile-mem.h: New files.
8583 * symfile.c (symbol_file_add_from_bfd): New function.
8584 (symbol_file_add): Call symbol_file_add_from_bfd.
8585 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8586 Moved to symfile-mem.c.
8587 (_initialize_symfile): Move definition of
8588 add-symbol-file-from-memory command to symfile-mem.c.
8589 * symfile.h (symbol_file_add_from_bfd): New declaration.
8590 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8591 * config/powerpc/linux.mt (TDEPFILES): Same.
8592 * Makefile.in (SFILES): Add symfile-mem.c.
8593 (symfile_mem_h): New variable.
8594 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8595 (symfile-mem.o): New rule.
8596
80bb239e
AC
85972004-05-01 Andrew Cagney <cagney@redhat.com>
8598
7789d0fa
AC
8599 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8600 frame_find_by_id instead of frame_relative_level.
8601 (do_enable_breakpoint): Ditto.
8602 * thread.c: Update copyright.
8603 (info_threads_command): Ditto, simplify.
8604
80bb239e
AC
8605 * frame.c (deprecated_generic_get_saved_register): Delete
8606 function, moved to "xstormy16-tdep.c".
8607 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8608 deprecated_generic_get_saved_register from "frame.c".
8609 (xstormy16_frame_saved_register): Call
8610 xstormy16_get_saved_register.
8611 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8612 static.
8613 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8614 * frame.h (deprecated_generic_get_saved_register): Delete.
8615
b2a871dd
MC
86162004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8617
8618 * dwarfread.c: Update documentation on the state of dwarf-1.
8619
0e100dab
AC
86202004-05-01 Andrew Cagney <cagney@redhat.com>
8621
acd8056e
AC
8622 * stack.c (select_frame_command): Delete call to
8623 frame_relative_level.
8624 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8625 Delete #if0 code.
8626 (frame_info): Do not print FRAMELESS.
8627 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8628 (catch_info): Delete #if0 code.
8629
0e100dab
AC
8630 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8631 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8632 of frame_relative_level.
8633 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8634 to SENTINEL_FRAME.
8635 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8636 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8637 frame_relative_level.
8638
55699d59
AC
8639 * frame.h (deprecated_set_frame_type): Delete declaration.
8640 * frame.c (deprecated_set_frame_type): Delete function, update
8641 comments.
8642
fcf70625
AC
8643 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8644 * gdbarch.h, gdbarch.c: Re-generate.
8645 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8646 (shnbsd_pc_in_sigtramp): Delete.
8647 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8648 pc_in_sigtramp.
8649 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8650 pc_in_sigtramp.
8651 * frame.h: Update comments.
8652 * ppc-linux-tdep.c: Update comments.
8653 * breakpoint.c (bpstat_what): Update comments.
8654
ac5eccb7
AC
8655 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8656 m68klinux-tdep.o's dependencies, were previously added to
8657 m68klinux-nat.o.
8658
f2524b93
AC
8659 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8660 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8661 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8662 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8663 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8664
17e20bce
AC
8665 * Makefile.in (m68klinux-nat.o): Update dependencies.
8666 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8667 (m68k_linux_sigtramp_frame_cache)
8668 (m68k_linux_sigtramp_frame_this_id)
8669 (m68k_linux_sigtramp_frame_prev_register)
8670 (m68k_linux_sigtramp_frame_unwind)
8671 (m68k_linux_sigtramp_frame_sniffer)
8672 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8673 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8674 names, use trad-frame.h.
8675 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8676 (struct m68k_sigtramp_info): Delete.
8677 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8678 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8679 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8680 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8681 "m68klinux-tdep.c".
8682
c8864fa2
AC
8683 * infrun.c (check_sigtramp2): Delete check for
8684 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8685
511dd2cd
MK
86862004-05-01 Mark Kettenis <kettenis@gnu.org>
8687
8688 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8689
8c6b0e06
AC
86902004-05-01 Andrew Cagney <cagney@redhat.com>
8691
9df0bb3f
AC
8692 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8693 (frv_linux_sigtramp_frame_cache)
8694 (frv_linux_sigtramp_frame_this_id)
8695 (frv_linux_sigtramp_frame_prev_register)
8696 (frv_linux_sigtramp_frame_unwind)
8697 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8698 include "linux" in function and variable names, directly call
8699 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8700 the latest trad-frame code.
8701 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8702 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8703 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8704 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8705 * frv-tdep.c (frv_sigtramp_frame_cache)
8706 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8707 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8708 frv-linux-tdep.c.
8709 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8710 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8711 (frv_set_sigcontext_reg_addr): Delete function.
8712
8c6b0e06
AC
8713 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8714 (DEPRECATED_SIGTRAMP_END): Delete.
8715 * gdbarch.h, gdbarch.c: Re-generate.
8716 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8717 * config/vax/tm-vaxbsd.h: Update copyright.
8718 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8719 (DEPRECATED_IN_SIGTRAMP): Define.
8720 * config/m68k/tm-nbsd.h: Update copyright.
8721 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8722 (DEPRECATED_IN_SIGTRAMP): Define.
8723
50ea7769
MK
87242004-05-01 Mark Kettenis <kettenis@gnu.org>
8725
03ac2a74
MK
8726 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8727 encondings. Fixes PR gdb/1628.
8728
50ea7769
MK
8729 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8730 DW_CFA_restore state without a matching DW_CFA_remember_state
8731 instead of aborting. Fixes PR backtrace/1589.
8732
9a5d7be1
JB
87332004-04-30 Joel Brobecker <brobecker@gnat.com>
8734
8735 * MAINTAINERS: Add self as AIX maintainer.
8736 Update my e-mail address in write-after-approval section.
8737
2593d1cd
AC
87382004-04-30 Andrew Cagney <cagney@redhat.com>
8739
ce12bbf9
AC
8740 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8741 (legacy_get_prev_frame): Ditto.
8742
36710c63
AC
8743 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8744 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8745 * mipsread.c (sigtramp_address): Delete extern variable.
8746 (mipscoff_new_init): Delete reference.
8747 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8748 (fixup_sigtramp): Delete function.
8749 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8750 (fixup_sigtramp): Delete declarations.
8751
2593d1cd
AC
8752 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8753 deprecated_pc_in_sigtramp.
8754 (ppcnbsd_pc_in_sigtramp): Delete function.
8755
2a25f91c
MK
87562004-05-01 Mark Kettenis <kettenis@gnu.org>
8757
8758 * config/m68k/nm-nbsd.h: Tweak comments.
8759 * config/m68k/nm-nbsdaout.h: Likewise.
8760
0b281939
AC
87612004-04-30 Andrew Cagney <cagney@redhat.com>
8762
8763 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8764 legacy_pc_in_sigtramp.
8765 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8766
8f2d3ea0
MK
87672004-05-01 Mark Kettenis <kettenis@gnu.org>
8768
8769 Add OpenBSD/m68k support.
8770 * NEWS (New native configurations): Mention OpenBSD/m68k.
8771 * m68kbsd-tdep.c: New file.
8772 * m68kbsd-nat.c: New file.
8773 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8774 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8775 * configure.host: Add m68k-*-openbsd.
8776 * configure.tgt: Add m68k-*-openbsd.
8777 * config/m68k/tm-obsd.h: New file.
8778 * config/m68k/obsd.mt: New file.
8779 * config/m68k/obsd.mh: New file.
8780 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8781 m68kbsd-tdep.c.
8782
c40f49a4
AC
87832004-04-30 Andrew Cagney <cagney@redhat.com>
8784
8785 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8786 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8787
e81554cd
MK
87882004-04-30 Mark Kettenis <kettenis@gnu.org>
8789
8790 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8791 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8792
d4dc1a91
BF
87932004-04-30 Brian Ford <ford@vss.fsi.com>
8794
8795 Revert 2004-04-16 change.
8796 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8797 (i386_coff_init_abi): Remove.
8798 * i386-tdep.h (i386_coff_init_abi): Remove.
8799 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8800
2f72f850
AC
88012004-04-30 Andrew Cagney <cagney@redhat.com>
8802
e492f9d6
AC
8803 * blockframe.c (find_pc_partial_function): Delete use of
8804 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8805 DEPRECATED_SIGTRAMP_END.
8806
7b7adad0
AC
8807 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8808 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8809 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8810 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8811 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8812
2f72f850
AC
8813 * defs.h (deprecated_inside_entry_file): Delete declaration.
8814 * blockframe.c (deprecated_inside_entry_file): Delete function.
8815 (legacy_frame_chain_valid): Delete call.
8816 * sh64-tdep.c (sh64_frame_chain): Delete call.
8817 * objfiles.h: Update comments.
8818 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8819 call.
8820 * frame.c (get_prev_frame): Delete call, update comments.
8821
283f90a7
BF
88222004-04-30 Brian Ford <ford@vss.fsi.com>
8823
8824 * MAINTAINERS (Write After Approval): Add myself.
8825
8ee56bcf
AC
88262004-04-30 Andrew Cagney <cagney@redhat.com>
8827
8828 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8829 * gdbarch.h, gdbarch.c: Re-generate.
8830 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8831 code.
8832
ee27e1b6
AC
88332004-04-30 Andrew Cagney <cagney@redhat.com>
8834
8835 * gdb-events.sh (selected_thread_changed)
8836 (selected_frame_level_changed, target_changed): Delete.
8837 * gdb-events.h, gdb-events.c: Re-generate.
8838 * valops.c (value_assign): Update.
8839 * stack.c (select_frame_command, up_silently_base)
8840 (down_silently_base): Update.
8841
d5ac5a39
AC
88422004-04-29 Andrew Cagney <cagney@redhat.com>
8843
8844 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8845 registers correctly.
8846 (print_gp_register_row, mips32_heuristic_proc_desc)
8847 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8848 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8849 references to mips_isa_regsize.
8850
ceae6e75
AC
88512004-04-29 Andrew Cagney <cagney@redhat.com>
8852
8853 * mips-tdep.c (struct gdbarch_tdep): Delete
8854 mips_fp_register_double.
8855 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8856 mips_abi_regsize.
8857 (mips_gdbarch_init): Do not set mips_fp_register_double.
8858 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8859
a587af0b
AC
88602004-04-29 Joel Brobecker <brobecker@gnat.com>
8861
8862 Committed by Andrew Cagney.
8863 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8864 function calls.
8865
13326b4e
AC
88662004-04-29 Andrew Cagney <cagney@redhat.com>
8867
8868 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8869 gdbarch, use mips_abi, update callers.
8870 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8871 mips_abi_regsize, update callers.
8872 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8873 mips_default_abi_regsize.
8874 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8875 mips_default_abi_regsize.
8876
711cc5cd
AC
88772004-04-29 Andrew Cagney <cagney@redhat.com>
8878
1b13c4f6
AC
8879 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8880 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8881 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8882 mips_default_abi_regsize.
8883 (mips_isa_regsize): Rename mips_regisze.
8884 * mipsnbsd-tdep.c: Update.
8885 * mips-linux-tdep.c: Update.
8886 * irix5-nat.c: Update.
8887 * mips-tdep.h (mips_isa_regsize): Update.
8888
711cc5cd
AC
8889 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8890 Delete all disabled code.
8891 * gdb-events.h, gdb-events.c: Re-generate.
8892
e63bbc88
MK
88932004-04-19 Jerome Guitton <guitton@gnat.com>
8894 Mark Kettenis <kettenis@gnu.org>
8895
8896 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8897 the function begins with a branch instruction.
8898
fd35795f
MK
88992004-04-29 Mark Kettenis <kettenis@gnu.org>
8900
8901 * i386-tdep.c: Fix spelling mistakes.
8902
c960c18f
AC
89032004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8904 Andrew Cagney <cagney@redhat.com>
8905
8906 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8907 <sys/proc.h>.
8908 * acconfig.h: Provide default _KMEMUSER value.
8909 * config.in, configure: Re-generate.
8910 * NEWS: Mention fix.
8911
50306a9d
RC
89122004-04-24 Randolph Chung <tausq@debian.org>
8913
8914 * configure.host (hppa*-*-linux*): New target.
8915 * configure.tgt (hppa*-*-linux*): Likewise.
8916 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8917 gdbarch_init_osabi() call earlier so that osabi-specific frame
8918 unwinders can be registered first.
8919 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8920 hppa-linux-nat.c.
8921 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8922 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8923 * config/pa/linux.mh: New file.
8924 * config/pa/linux.mt: New file.
8925 * config/pa/nm-linux.h: New file.
8926 * config/pa/xm-linux.h: New file.
8927 * hppa-linux-nat.c: New file.
8928 * hppa-linux-tdep.c: New file.
8929
2a6228ef
RC
89302004-04-28 Randolph Chung <tausq@debian.org>
8931
8932 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8933 return values.
8934 (hppa32_push_dummy_call): Fix small struct and floating point argument
8935 passing, and make sure the stack frame is properly aligned.
8936
82c10df6
AC
89372004-04-28 Andrew Cagney <cagney@redhat.com>
8938
d762c46a
AC
8939 * stack.c (print_stack_frame): Fix description.
8940
82c10df6
AC
8941 * NEWS: Mention gdb/gdbserver/configure execute permission
8942 changed. PR server/519.
8943
0faf0076
AC
89442004-04-28 Andrew Cagney <cagney@redhat.com>
8945
8946 * stack.c (print_stack_frame_stub): Delete declaration.
8947 (struct print_stack_frame_args, print_stack_frame)
8948 (print_frame_info, print_frame): Replace "source" with print what.
8949 Replace "print" with "print_level". Replace "args" with
8950 "print_args".
8951 * frame.h (show_and_print_stack_frame, print_stack_frame)
8952 (print_frame_info): Update declarations.
8953 * stack.c (select_and_print_frame, frame_command)
8954 (current_frame_command, up_command, down_command): Update calls -
8955 use get_selected_frame, pass "enum print_what" for source, do not
8956 call frame_relative_level.
8957 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8958 * remote-rdp.c (remote_rdp_open): Ditto.
8959 * remote-mips.c (common_open): Ditto.
8960 * remote-e7000.c (e7000_start_remote): Ditto.
8961 * ocd.c (ocd_start_remote): Ditto.
8962 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8963 * infrun.c (normal_stop): Ditto.
8964 * inflow.c (kill_command): Ditto.
8965 * infcmd.c (finish_command): Ditto.
8966 * corelow.c (core_open): Ditto.
8967 * tracepoint.c (finish_tfind_command): Ditto.
8968 * thread.c (info_threads_command, info_threads_command)
8969 (restore_current_thread, do_captured_thread_select): Ditto.
8970 * ada-tasks.c (task_command): Ditto.
8971
f4c5303c
OF
89722004-04-26 Orjan Friberg <orjanf@axis.com>
8973
8974 * frame.c: Include "observer.h".
8975 (frame_observer_target_changed): New function.
8976 (_initialize_frame): Attach target_changed observer.
8977 * regcache.c: Include "observer.h".
8978 (regcache_observer_target_changed): New function.
8979 (_initialize_regcache): Attach target_changed observer.
8980 * valops.c: Include "observer.h".
8981 (value_assign): Notify target_changed event when modifying register.
8982 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8983
7270d8f2
OF
89842004-04-26 Orjan Friberg <orjanf@axis.com>
8985
8986 From Paul Koning <pkoning@equallogic.com>:
8987 * breakpoint.c (free_valchain): New function.
8988 (insert_bp_location, delete_breakpoint): Use free_valchain.
8989 (remove_breakpoint): Do not remove the valchain.
8990 (bpstat_stop_status): If not stopped by watchpoint, skip
8991 watchpoints when generating stop status list.
8992 * infrun.c (handle_inferior_event): Make
8993 stepped_after_stopped_by_watchpoint a global variable.
8994 * remote.c (remote_stopped_data_address): Return watch data
8995 address rather than zero if stepped_after_stopped_by_watchpoint is
8996 set.
8997
02d62932
MC
89982004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8999
9000 Fix PR gdb/1626.
9001 * configure.in: Check for curses after termcap.
9002 On osf5.*, do not check for ncurses.
9003 * configure: Regenerate.
9004
3e9a183c
MK
90052004-04-25 Mark Kettenis <kettenis@gnu.org>
9006
c79ac407
MK
9007 * ppcobsd-nat.c: Include "ppc-tdep.h".
9008 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9009
3e9a183c
MK
9010 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9011 Fixes PR tdep/1623 and PR tdep/1624.
9012
38cc9c28
MC
90132004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9014
9015 * xmodem.h, xmodem.c: Remove files.
9016 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9017
7f07c5b6
RC
90182004-04-23 Randolph Chung <tausq@debian.org>
9019
9020 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9021 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9022 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9023 for handling stackless frames.
9024 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9025
9f7194c3
RC
90262004-04-23 Randolph Chung <tausq@debian.org>
9027
9028 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9029 starts at a pc before the frame is created.
9030
dcff6009
JB
90312004-04-23 Joel Brobecker <brobecker@gnat.com>
9032
9033 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9034
40711ff1 90352004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
9036
9037 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9038 use convert_typed_floating to get the appropriate format.
9039
abc485a1
RC
90402004-04-22 Randolph Chung <tausq@debian.org>
9041
9042 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9043 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9044 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9045 (hppa_sign_extend): Add prototype.
9046 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9047 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9048 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9049 hppa targets will also use these functions.
9050 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9051 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9052 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9053 (hppa_gdbarch_init): Remove gdbarch setting of
9054 skip_trampoline_code, in_solib_call_trampoline and
9055 in_solib_return_trampoline.
9056 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9057 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9058 hppa_in_solib_call_trampoline.
9059 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9060 Moved from hppa-tdep.c.
9061 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9062 in_solib_call_trampoline and in_solib_return_trampoline.
9063
369aa520
RC
90642004-04-22 Randolph Chung <tausq@debian.org>
9065
9066 * hppa-tdep.c (hppa_debug): New variable.
9067 (find_unwind_entry, hppa_frame_cache): Add debug output.
9068 (_initialize_hppa_tdep): Add command to set debug flag.
9069
476be15e
AC
90702004-04-22 Andrew Cagney <cagney@redhat.com>
9071
9072 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9073 "trad-frame.h".
9074 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9075 signal trampoline unwinder.
9076 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9077
d195bc9f
MK
90782004-04-22 Mark Kettenis <kettenis@gnu.org>
9079
9080 Add OpenBSD/powerpc support.
9081 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9082 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9083 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9084 (ppc_collect_fpregset): New prototypes.
9085 * ppcobsd-nat.c: New file.
9086 * ppcobsd-tdep.c: New file.
9087 * ppcobsd-tdep.h: New file.
9088 * rs6000-tdep.c: Include "regset.h".
9089 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9090 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9091 New functions.
9092 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9093 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9094 (rs6000-tdep.o): Update dependencies.
9095 * configure.host: Add powerpc-*-openbsd.
9096 * configure.tgt: Add powerpc-*-openbsd.
9097 * config/powerpc/obsd.mh: New file.
9098 * config/powerpc/nm-obsd.h: New file.
9099 * config/powerpc/obsd.mt: New file.
9100
6f14cc33
AC
91012004-04-22 Andrew Cagney <cagney@redhat.com>
9102
fcf29e5f
AC
9103 * frame.h (show_frame_info): Delete declaration.
9104
6f14cc33
AC
9105 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9106 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9107 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9108 * frv-tdep.c (frv_frame_this_id): Ditto.
9109 * avr-tdep.c (avr_frame_this_id): Ditto.
9110
e5786a5c
EZ
91112004-04-22 Elena Zannoni <ezannoni@redhat.com>
9112
9113 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9114
26e75e5c
JB
91152004-04-22 Jim Blandy <jimb@redhat.com>
9116
9117 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9118 register number zero.
9119
d8d65dd3
MS
91202004-04-21 Michael Snyder <msnyder@redhat.com>
9121
9122 * mips-tdep.c (heuristic_proc_start):
9123 Warning() already prefixes "Warning: ".
9124
9a4105ab
AC
91252004-04-21 Andrew Cagney <cagney@redhat.com>
9126
9127 * annotate.h (deprecated_annotate_starting_hook)
9128 (deprecated_annotate_stopped_hook)
9129 (deprecated_annotate_exited_hook)
9130 (deprecated_annotate_signal_hook)
9131 (deprecated_annotate_signalled_hook): Deprecate.
9132 * tracepoint.h (deprecated_create_tracepoint_hook)
9133 (deprecated_delete_tracepoint_hook)
9134 (deprecated_modify_tracepoint_hook)
9135 (deprecated_trace_find_hook)
9136 (deprecated_trace_start_stop_hook): Deprecate.
9137 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9138 * remote.h (deprecated_target_resume_hook)
9139 (deprecated_target_wait_loop_hook): Deprecate.
9140 * gdbcore.h (deprecated_exec_file_display_hook)
9141 (deprecated_file_changed_hook): Deprecate.
9142 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9143 * defs.h (deprecated_modify_breakpoint_hook)
9144 (deprecated_command_loop_hook, deprecated_show_load_progress)
9145 (deprecated_print_frame_info_listing_hook)
9146 (deprecated_query_hook, deprecated_warning_hook)
9147 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9148 (deprecated_delete_breakpoint_hook)
9149 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9150 (deprecated_readline_begin_hook, deprecated_readline_hook)
9151 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9152 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9153 (deprecated_context_hook, deprecated_target_wait_hook)
9154 (deprecated_attach_hook, deprecated_detach_hook)
9155 (deprecated_call_command_hook, deprecated_set_hook)
9156 (deprecated_error_hook, deprecated_error_begin_hook)
9157 (deprecated_ui_load_progress_hook): Deprecate.
9158 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9159 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9160 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9161 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9162 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9163 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9164 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9165 * annotate.c, aix-thread.c: Update.
9166
62cf13cc
AC
91672004-04-21 Andrew Cagney <cagney@redhat.com>
9168
b2e31a62
AC
9169 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9170 * vaxnbsd-tdep.c: Include "gdb_string.h".
9171
62cf13cc
AC
9172 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9173 (add_symbol_file_from_memory_command): #if 0 function body, call
9174 error instead.
9175
00e32a35
AC
91762004-04-21 Andrew Cagney <cagney@redhat.com>
9177
9178 * gdbcore.h: Update copyright.
9179 (deprecated_add_core_fns): Rename add_core_fns.
9180 * win32-nat.c (_initialize_core_win32): Update.
9181 * sun3-nat.c (_initialize_core_sun3): Update.
9182 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9183 * rs6000-nat.c (_initialize_core_rs6000): Update.
9184 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9185 * nto-tdep.c (_initialize_nto_tdep): Update.
9186 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9187 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9188 * mips-nat.c (_initialize_core_mips): Update.
9189 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9190 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9191 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9192 * lynx-nat.c (_initialize_core_lynx): Update.
9193 * irix5-nat.c (_initialize_core_irix5): Update.
9194 * i386-interix-nat.c (_initialize_core_interix): Update.
9195 * cris-tdep.c (_initialize_cris_tdep): Update.
9196 * corelow.c (deprecated_add_core_fns): Update.
9197 * core-regset.c (_initialize_core_regset): Update.
9198 * core-aout.c (_initialize_core_aout): Update.
9199 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9200 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9201 * alpha-nat.c (_initialize_core_alpha): Update.
9202
13c7b1ca
JB
92032004-04-21 Jim Blandy <jimb@redhat.com>
9204
9205 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9206
7b5a2f43
DJ
92072004-04-19 Daniel Jacobowitz <drow@mvista.com>
9208
9209 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9210 Delete.
9211 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9212 (read_attribute_value): Update calls to dwarf_alloc_block.
9213 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9214 dwarf2_tmp_obstack.
9215 (psymtab_to_symtab_1): Likewise. Clean up using
9216 free_stack_comp_unit.
9217 (add_to_cu_func_list): Use the comp_unit_obstack.
9218
05cf31d1
JB
92192004-04-19 Joel Brobecker <brobecker@gnat.com>
9220
9221 * dwarf2read.c (dwarf2_flag_true_p): New function.
9222 (die_is_declaration): Use the function above. Add some comments.
9223
adf93a2f
MK
92242004-04-19 Mark Kettenis <kettenis@gnu.org>
9225
9226 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9227 architecture when registering sparcnbsd_core_osabi_sniffer.
9228 Adjust comment.
9229
748894bf
MK
92302004-04-18 Mark Kettenis <kettenis@gnu.org>
9231
f622ad42
MK
9232 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9233 return value.
9234
c4fc7f1b
MK
9235 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9236 * i386-tdep.c: Correct register numbering scheme comments
9237 throughout.
9238 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9239 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9240 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9241 (i386_gdb_arch_init): Likewise.
9242
b4ead1bd
MK
9243 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9244 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9245 ppcnbsd-tdep.o.
9246
748894bf
MK
9247 * m68k-tdep.h: Tweak comments.
9248 * m68k-tdep.c: Tweak comment.
9249
fdd72f95
RC
92502004-04-17 Randolph Chung <tausq@debian.org>
9251
9252 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9253 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9254 (hppa_hpux_som_init_abi): Set is_elf to 0.
9255 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9256 * hppa-tdep.c (low_text_segment_address): Remove global.
9257 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9258 section offset to calculate segment address.
9259 (internalize_unwinds): Define low_text_segment_address as local and
9260 pass to record_text_segment_lowaddr for ELF targets.
9261 (hppa_gdbarch_init): Zero fill tdep structure.
9262 (hppa_dump_tdep): Print tdep structure.
9263 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9264
0f8d9d59
RC
92652004-04-17 Randolph Chung <tausq@debian.org>
9266
9267 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9268 (hppa_gdbarch_init): Set pseudo_register_read.
9269 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9270 * regcache.c (supply_register): Remove check for
9271 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9272
7c46b9fb
RC
92732004-04-17 Randolph Chung <tausq@debian.org>
9274
9275 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9276 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9277 (hpread_adjust_stack_address): Move to hpread.c.
9278 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9279 obj_private_struct): Move from tm-hppa.h.
9280 * hpread.c (hppa-tdep.h): Include.
9281 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9282 (hpread_read_function_type, hpread_read_doc_function_type)
9283 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9284 directly.
9285 * pa64solib.c (hppa-tdep.h): Include.
9286 * somsolib.c (hppa-tdep.h): Include.
9287 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9288 inferior_status): Remove unused forward declarations.
9289 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9290 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9291 obj_private_struct): Move to hppa-tdep.h.
9292 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9293
8d153463
RC
92942004-04-17 Randolph Chung <tausq@debian.org>
9295
9296 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9297 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9298 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9299 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9300 Remove forward declaration and make static.
9301 (hppa_reg_struct_has_addr): Remove.
9302
350c2e5b
JB
93032004-04-16 Joel Brobecker <brobecker@gnat.com>
9304
9305 * observer.sh: Move comments in sed command to first column.
9306
bbde78fa
JM
93072004-04-16 Jason Molenda (jmolenda@apple.com)
9308
9309 * frame.c: Minor typeo corrections in comments.
9310
e0270fd9
JB
93112004-04-16 Joel Brobecker <brobecker@gnat.com>
9312
9313 * observer.c (observer_test_first_notification_function): Update
9314 function profile.
9315 (observer_test_second_notification_function): Likewise.
9316 (observer_test_third_notification_function): Likewise.
9317
3d049254
MK
93182004-04-16 Mark Kettenis <kettenis@gnu.org>
9319
9320 From Brian Ford <ford@vss.fsi.com>:
9321 * i386-tdep.c (i386_coff_init_abi): New function.
9322 * i386-tdep.h (i386_coff_init_abi): New prototype.
9323 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9324 register number translation functions for DWARF and DWARF 2.
9325
7867684d
JB
93262004-04-16 Joel Brobecker <brobecker@gnat.com>
9327
9328 * dwarf2read.c: Back out my previous change, it was incorrect.
9329
72bf9492
DJ
93302004-04-16 Daniel Jacobowitz <drow@mvista.com>
9331
9332 * dwarf2read.c: Include "hashtab.h".
9333 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9334 has_namespace_info.
9335 (struct partial_die_info): Add comments. Use bitfields to reduce
9336 memory footprint. Add scope, scope_set, has_specification,
9337 spec_offset, die_parent, die_child, and die_sibling.
9338 (peek_die_abbrev): Add prototype.
9339 (partial_read_comp_unit_head): New function, broken out from
9340 dwarf2_build_psymtabs_hard.
9341 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9342 Use partial_read_comp_unit_head. Initialize the CU and
9343 comp_unit_obstack. Update calls to read_partial_die and
9344 scan_partial_symbols. Use free_stack_comp_unit and
9345 load_partial_dies.
9346 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9347 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9348 Update calls to helper functions. Remove NAMESPACE argument.
9349 Update comments.
9350 (partial_die_parent_scope, partial_die_full_name): New functions.
9351 (add_partial_symbol): Remove namespace argument. Update call to
9352 pdi_needs_namespace. Use partial_die_full_name. Handle
9353 DW_TAG_namespace. Check has_namespace_info flag.
9354 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9355 tag. Handle namespaces.
9356 (add_partial_namespace, add_partial_enumeration): Simplify.
9357 (guess_structure_name): New function, derived from
9358 add_partial_structure.
9359 (add_partial_structure): Remove.
9360 (determine_class_name): Update comment.
9361 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9362 (is_type_tag_for_partial, load_partial_dies): New functions.
9363 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9364 Record specifications instead of following them immediately.
9365 (find_partial_die_in_comp_unit, find_partial_die)
9366 (fixup_partial_die, free_stack_comp_unit)
9367 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9368 (partial_die_hash, partial_die_eq): New functions.
9369 * Makefile.in (hashtab_h): Define.
9370 (dwarf2read.o): Update dependencies.
9371 (observer_inc, observer_h): Move to the correct section.
9372
fdc860a3
JB
93732004-04-15 Joel Brobecker <brobecker@gnat.com>
9374
9375 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9376 (die_is_declaration): Use the function above. Add comment.
9377
dc718098
JB
93782004-04-15 Joel Brobecker <brobecker@gnat.com>
9379
9380 * dwarf2read.c (read_structure_scope): Identify stub types
9381 using die_is_declaration() only.
9382
8718a420
RM
93832004-04-15 Roland McGrath <roland@redhat.com>
9384
9385 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9386 argument instead of NAME.
9387 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9388 in call to symbol_file_add_with_addrs_or_offsets.
9389 (build_addr_info): New function, helper for ...
9390 (symbol_file_add_from_memory): New function.
9391 (add_symbol_file_from_memory_command): New function using that.
9392 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9393 (pre_add_symbol_hook): Add const to argument type.
9394 * symfile.h (symbol_file_add_from_memory): Declare it.
9395
8b910bab
MK
93962004-04-15 Mark Kettenis <kettenis@gnu.org>
9397
9f076e7a
MK
9398 * NEWS (New native configurations): Mention OpenBSD/vax.
9399 * configure.host: Add vax-*-openbsd*.
9400 * config/vax/obsd.mh: New file.
9401 * config/vax/nm-obsd.h: New file.
9402
8b910bab
MK
9403 * vax-tdep.c: Include "regset.h".
9404 (vax_supply_gregset): New function.
9405 (vax_gregset): New variable.
9406 (vax_regset_from_core_section): New function.
9407 (vax_gdbarch_init): Set regset_from_core_section.
9408 * Makefile.in (vax-tdep.o): Update dependencies.
9409
7a464420
AC
94102004-04-15 Andrew Cagney <cagney@redhat.com>
9411
9412 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9413 (observer_normal_stop_notification_stub)
9414 (observer_attach_normal_stop, observer_detach_normal_stop):
9415 Delete, replaced by #include "observer.inc".
9416 * infrun.c (normal_stop): Pass "stop_bpstat" to
9417 observer_notify_normal_stop.
9418 * Makefile.in (observer_inc): Define.
9419 (observer.o): Update dependencies.
9420 (observer.h, observer.inc): New rules.
9421 * observer.h: Delete file.
9422 * observer.sh: New file.
9423
e36ad527
MK
94242004-04-15 Mark Kettenis <kettenis@gnu.org>
9425
9426 * vax-tdep.c (vax_frame_cache): Fix typo.
9427
67b441e1
MK
94282004-04-14 Mark Kettenis <kettenis@gnu.org>
9429
6f606e1c
MK
9430 * NEWS (New native configurations): Mention NetBSD/vax.
9431 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9432 * config/vax/nbsdelf.mh: New file.
9433 * config/vax/nbsdaout.mh: New file.
9434 * config/vax/nm-nbsd.h: New file.
9435 * config/vax/nm-nbsdaout.h: New file.
9436
9c5519a5
MK
9437 * vaxnbsd-tdep.c: New file.
9438 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9439 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9440 * config/vax/nbsd.mt: New file.
9441 * config/vax/tm-nbsd.h: New file.
9442
4844a614
MK
9443 * Makefile.in (vaxbsd-nat.o): New dependency.
9444
67b441e1
MK
9445 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9446 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9447 struct_addr arguments. Don't push return value address.
9448 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9449 arguments to vax_store_arguments. Store return value address in
9450 R1.
9451 (vax_store_struct_return, vax_extract_return_value)
9452 (vax_store_return_value): Remove functions.
9453 (vax_return_value): New function.
9454 (vax_gdbarch_init): Set return value. Don't set
9455 deprecated_store_struct_return, deprecated_extract_struct_return
9456 and deprecated_store_return_value.
9457
6672f2ae
AS
94582004-04-14 Andreas Schwab <schwab@suse.de>
9459
9460 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9461 value buffer.
9462 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9463
7346c184
MK
94642004-04-14 Mark Kettenis <kettenis@gnu.org>
9465
9466 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9467 (vax_unwind_dummy_id): New functions.
9468 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9469 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9470 variables.
9471 (vax_fix_call_dummy): Remove function.
9472 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9473 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9474 call_dummy_location, deprecated_call_dummy_words,
9475 deprecated_sizeof_call_dummy_words,
9476 deprecated_call_dummy_breakpoint_offset,
9477 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9478 and deprecated_dummy_write_sp.
9479
58e23df4
DC
94802004-04-13 David Carlton <carlton@kealia.com>
9481
9482 * MAINTAINERS: Move myself to "paper trail" section.
9483
5e6b39ff
MK
94842004-04-12 Mark Kettenis <kettenis@gnu.org>
9485
7def7fef
MK
9486 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9487 "trad-frame.h".
9488 (vax_frame_init_saved_regs): Remove function.
9489 (vax_sigtramp_saved_pc): Remove function.
9490 (vax_frame_saved_pc): Remove function.
9491 (vax_frame_args_address): Remove function.
9492 (vax_frame_num_args): Rewrite.
9493 (vax_frame_chain): Remove function.
9494 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9495 VAX_FP_REGNUM.
9496 (vax_pop_frame): Likewise.
9497 (vax_saved_pc_after_call): Remove function.
9498 (struct vax_frame_cache): New structure.
9499 (vax_frame_cache): New function.
9500 (vax_frame_this_id): New function.
9501 (vax_frame_prev_register): New function.
9502 (vax_frame_unwind): New variable.
9503 (vax_frame_sniffer): New function.
9504 (vax_frame_base_address): New function.
9505 (vax_frame_args_address): New function.
9506 (vax_frame_base): New variable.
9507 (vax_unwind_pc): New function.
9508 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9509 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9510 deprecated_frame_chain, deprecated_frame_saved_pc,
9511 deprecated_frame_args_address and
9512 deprecated_frame_init_saved_regs.
9513 * Makefile.in (vax-tdep.o): Update dependencies.
9514
53284fc1
MK
9515 * vaxbsd-nat.c: New file.
9516
5e6b39ff
MK
9517 * vax-tdep.h: Update copyright year. Adjust comments.
9518 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9519 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9520 (vax_regnum): New enum. Replacing...
9521 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9522 (VAX_PS_REGNUM): ... these removed macros.
9523 * vax-tdep.c (vax_register_name): Remove prototype.
9524 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9525 (vax_register_byte, vax_register_raw_size,
9526 vax_register_virtual_size, vax_register_virtual_type): Remove
9527 functions.
9528 (vax_register_type): New function.
9529 (vax_breakpoint_from_pc): Reorganize.
9530 (vax_gdbarch_init): Set register_type. Don't set
9531 deprecated_register_size, deprecated_register_bytes,
9532 deprecated_register_byte, deprecated_register_raw_size,
9533 deprecated_max_register_raw_size,
9534 deprecated_register_virtual_size,
9535 deprecated_max_register_virtual_size and
9536 deprecated_register_virtual_type. Add comment on stack direction.
9537
e9c71e9f
MK
95382004-04-11 Mark Kettenis <kettenis@gnu.org>
9539
9540 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9541 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9542 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9543
d46f1176 95442004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9545
d46f1176
RC
9546 * MAINTAINERS (write after approval): Add myself.
9547
a2a84a72
RC
95482004-04-07 Randolph Chung <tausq@debian.org>
9549
9550 * hppa-tdep.c (hppa_inner_than): Remove.
9551 (is_pa_2): Remove unused static variable.
8718a420 9552 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9553
e85c3284
PH
95542004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9555
9556 * language.h (language_defn): Add new la_post_parser field.
9557 * parser-defs.h (null_post_parser): New declaration (default for
9558 la_post_parser).
8718a420 9559
e85c3284
PH
9560 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9561 insert call to that function.
9562 (parse_exp_in_context): New function, including code formerly in
8718a420 9563 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9564 prefixification.
9565 (parse_expression_in_context): New exported function.
9566 (null_post_parser): New definition.
9567 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9568
e85c3284
PH
9569 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9570 * c-lang.c (c_language_defn): Ditto.
9571 (cplus_language_defn): Ditto.
9572 (asm_language_defn): Ditto.
9573 (minimal_language_defn): Ditto.
9574 * f-lang.c (f_language_defn): Ditto.
9575 * jv-lang.c (java_language_defn): Ditto.
9576 * language.c (unknown_language_defn): Ditto.
9577 (auto_language_defn): Ditto.
9578 (local_language_defn): Ditto.
9579 * m2-lang.c (m2_language_defn): Ditto.
9580 * scm-lang.c (scm_language_defn): Ditto.
9581 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9582
d9f8c85b
MK
95832004-04-10 Mark Kettenis <kettenis@gnu.org>
9584
fa34704a
MK
9585 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9586 (amd64nbsd_mcontext_addr): New function.
9587 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9588 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9589 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9590
403e1656
MK
9591 * corelow.c (core_xfer_partial): Fix coding standards violation.
9592 Add support for TARGET_OBJECT_WCOOKIE.
9593
a57e5a95
MK
9594 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9595 deprecated_pc_in_sigtramp.
9596 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9597 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9598 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9599 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9600 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9601 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9602 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9603
377d9ebd
MK
9604 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9605 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9606 Fix typo.
9607
f0ef85a5
MK
9608 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9609 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9610 (amd64_collect_fxsave): Likewise.
9611
d9f8c85b
MK
9612 * i386-sol2-tdep.c: Include "gdb_string.h".
9613 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9614 name.
9615 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9616
75f501b5
MK
96172004-04-10 Mark Kettenis <kettenis@gnu.org>
9618
9619 * i386-sol2-tdep.c: Include "solib-svr4.h".
9620 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9621 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9622 * config/i386/tm-i386sol2.h: Include :solib.h".
9623 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9624 solib-svr4.o and solib-legacy.o.
9625 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9626 solib-svr4.o.
9627
b31bc724
MK
96282004-04-09 Mark Kettenis <kettenis@gnu.org>
9629
18bbbd9e
MK
9630 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9631 whether a register is supplied by PTRACE_GETFPREGS.
9632 (store_inferior_registers): Likewise.
9633 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9634 whether a register is supplied by PT_GETFPREGS.
9635 (store_inferior_registers): Likewise.
9636
3c30bf1b
MK
9637 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9638 * config/i386/linux64.mt (TDEPFILES): Likewise.
9639
a4194092
MK
9640 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9641
911bc6ee
MK
9642 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9643 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9644 the program counter is in the range specified by `struct
9645 gdbarch_tdep'.
9646 * amd64-linux-tdep.c: Include "symtab.h".
9647 (amd64_linux_pc_in_sigtramp): Remove function.
9648 (amd64_linux_sigtramp_p): New function.
9649 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9650 deprecated_pc_in_sigtramp.
9651 * amd64nbsd-tdep.c: Include "symtab.h".
9652 (amd64nbsd_sigtramp_p): New function.
9653 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9654 deprecated_pc_in_sigtramp.
9655 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9656 few comments.
9657 (amd64obsd_pc_in_sigtramp): Remove function.
9658 (amd64obsd_sigtramp_p): New function.
9659 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9660 deprecated_pc_in_sigtramp.
9661 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9662 (i386bsd_pc_ins_sigtramp): Remove prototype.
9663 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9664 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9665 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9666 the program counter is in the range specified by `struct
9667 gdbarch_tdep'.
9668 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9669 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9670 (i386_go32_pc_in_sigtramp): Remove function.
9671 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9672 Initialize TDEP->sigtramp_p.
9673 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9674 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9675 deprecated_pc_in_sigtramp.
9676 * i386-linux-tdep.c: Adjust comments.
9677 (i386_linux_pc_in_sigtramp): Remove function.
9678 (i386_linux_sigtramp_p): New function.
9679 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9680 deprecated_pc_in_sigtramp.
9681 * i386-nto-tdep.c: Update copyright year.
9682 (i386nto_pc_in_sigtramp): Remove function.
9683 (i386nto_sigtramp_p): New function.
9684 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9685 SP_REGNUM.
9686 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9687 deprecated_pc_in_sigtramp.
9688 * i386-sol2-tdep.c: Update copyright year.
9689 (i386_sol2_pc_in_sigtramp): Remove function.
9690 (i386_sol2_sigtramp_p): New function.
9691 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9692 deprecated_pc_in_sigtramp.
9693 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9694 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9695 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9696 deprecated_sigtramp_start and deprecated_sigtramp_end.
9697 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9698 (i386nbsd_pc_in_sigtramp): Remove function.
9699 (i386nbsd_sigtramp_p): New function.
9700 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9701 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9702 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9703 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9704 (i386obsd_pc_in_sigtramp): Remove function.
9705 (i386obsd_sigtramp_p): New function.
9706 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9707 functions.
9708 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9709 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9710 TDEP->sigtramp_p.
9711 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9712 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9713 dependencies.
9714
e083e6ec
MK
9715 * config/i386/i386aout.mt: Remove file.
9716
bd153b94
MK
9717 * configure.tgt: Remove i[34567]86-*-go32*,
9718 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9719 and i[34567]86-*-isc*. Set gdb_target to i386 for
9720 i[34567]86-*-netware* and i[34567]86-*-*.
9721 * config/i386/i386.mt: New file.
9722 * config/i386/embed.mt: Remove file.
9723 * config/i386/go32.mt: Remove file.
9724 * config/i386/i386nw.mt: Remove file.
9725 * config/i386/i386v.mt: Remove file.
9726 * config/i386/tm-go32.h: Remove file.
9727
4a1bcc8c
MK
9728 * tui/tui-hooks.c: Include "readline/readline.h" after
9729 "gdb_curses.h" instead of before.
9730 * tui/tui-io.c: Likewise.
9731
f9a79064
MK
9732 * tui/tui.c: Fix typo in comment.
9733
b31bc724
MK
9734 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9735
f83f82bc
AC
97362004-04-08 Andrew Cagney <cagney@redhat.com>
9737
9738 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9739 (deprecated_exception_support_initialized): Declare.
8718a420 9740 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9741 (initialize_hp_cxx_exception_support)
9742 (child_enable_exception_callback): Update.
9743 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9744 (deprecated_exception_support_initialized): Rename
9745 deprecated_exception_catchpoints_are_fragile and
9746 deprecated_exception_support_initialized.
9747 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9748
9749 * symtab.c (deprecated_hp_som_som_object_present): Rename
9750 hp_som_som_object_present.
9751 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9752 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9753 Update. Delete extern declaration.
9754 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9755 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9756 (parse_nested_classes_for_hpacc): Ditto.
9757 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9758 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9759 (initialize_hp_cxx_exception_support): Ditto.
9760 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9761 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9762 (cp_print_class_method): Ditto.
8718a420 9763 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9764 (c_type_print_base): Ditto.
9765 * c-exp.y (hp_som_som_object_present): Ditto.
9766
fb2be677
AC
97672004-04-08 Andrew Cagney <cagney@redhat.com>
9768
9769 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9770 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9771 (frame_unwind_find_by_frame): Re-implement the unwind code so
9772 that it can both prepend and append sniffers. Replace
9773 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9774 * tramp-frame.c (tramp_frame_append): Use
9775 frame_unwind_prepend_unwinder.
9776 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9777 frame_unwind_register_unwinder.
9778 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9779 tramp_frame_append.
9780 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9781 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9782 (mips_linux_init_abi): Update.
9783
67faf007
KB
97842004-04-08 Kevin Buettner <kevinb@redhat.com>
9785
9786 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9787 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9788 file support.
9789
8973ff21
KB
97902004-04-07 Kevin Buettner <kevinb@redhat.com>
9791
9792 * ia64-tdep.c (elf.h): Don't include.
9793 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9794
4a0e2f88
JM
97952004-04-07 Jason Molenda (jmolenda@apple.com)
9796
9797 * frame.h: Typeo corrections in comments.
9798
9872ad24
JB
97992004-04-07 Jim Blandy <jimb@redhat.com>
9800
9801 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9802 %esp and %ebp
9803
70b216c8
MK
98042004-04-07 Mark Kettenis <kettenis@gnu.org>
9805
11d5789c
MK
9806 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9807 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9808 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9809 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9810 and solib-legacy.o.
9811 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9812 solib-svr4.o.
9813 * config/sparc/tm-sol2.h: Update copyright year. Include
9814 "solib.h".
9815
70b216c8
MK
9816 * sparc-sol2-tdep.c: Update copyright year. Include
9817 "solib-svr4.h".
9818 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9819 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9820 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9821 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9822 dependencies.
9823
6339dc9e
AC
98242004-04-06 Andrew Cagney <cagney@redhat.com>
9825
9826 * infttrace.c: Include "infttrace.h".
9827 * infttrace.h: Include "target.h".
9828 * Makefile.in (infttrace_h): Update.
9829 (infttrace.o): Update.
8718a420 9830
93449403
AC
98312004-04-06 Andrew Cagney <cagney@redhat.com>
9832
6d518969
AC
9833 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9834 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9835 move extern declarations from here ...
9836 * infttrace.h: ... to here.
9837 * Makefile.in (hppah-nat.o): Update dependencies.
9838
85f4f2d8
AC
9839 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9840 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9841 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9842 (hppa_breakpoint_from_pc): Delete.
9843
93449403
AC
9844 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9845
71456ec6
AC
98462004-04-05 Andrew Cagney <cagney@redhat.com>
9847
9848 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9849 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9850 <sys/file.h>.
8718a420 9851
4c02c60c
AC
98522004-04-06 Randolph Chung <tausq@debian.org>
9853
9854 Committed by Andrew Cagney (mechanical change).
9855 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9856 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9857 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9858 child_enable_exception_callback, current_ex_event,
9859 null_symtab_and_line, child_get_current_exception_event,
9860 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9861 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9862 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9863 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9864 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9865 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9866 Move hpux-specific definitions ...
9867 * hppa-hpux-tdep.c: ... to here.
9868
3a515653
AC
98692004-04-05 Andrew Cagney <cagney@redhat.com>
9870
9871 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9872 skip_prologue_using_sal.
9873
c1730d02
AC
98742004-04-05 Andrew Cagney <cagney@redhat.com>
9875
9876 * config/i386/tm-i386.h: Delete file.
9877 * config/i386/tm-vxworks.h: Update copyright, do not include
9878 "tm-i386.h".
9879 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9880 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9881 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9882 * config/i386/ncr3000.mt (TM_FILE): Delete.
9883 * config/i386/interix.mt (TM_FILE): Delete.
9884 * config/i386/i386v.mt (TM_FILE): Delete.
9885 * config/i386/i386nw.mt (TM_FILE): Delete.
9886 * config/i386/i386gnu.mt (TM_FILE): Delete.
9887 * config/i386/i386aout.mt (TM_FILE): Delete.
9888 * config/i386/embed.mt (TM_FILE): Delete.
9889
8b67aa36
KB
98902004-04-05 Kevin Buettner <kevinb@redhat.com>
9891
9892 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9893 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9894 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9895 (accg7_regnum): New constants.
9896 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9897 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9898 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9899 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9900 for accg registers.
9901 (frv_register_sim_regno): Update spr_map[].
9902
3c7012f5
AC
99032004-04-04 Andrew Cagney <cagney@redhat.com>
9904
9905 * config/mips/xm-riscos.h: Delete.
9906 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9907 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9908 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9909 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9910 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9911 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9912 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9913 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9914 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9915 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9916 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9917 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9918 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9919 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9920 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9921 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9922 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9923 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9924 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9925 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9926 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9927 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9928 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9929 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9930 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9931 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9932
3c7012f5
AC
9933 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9934 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9935 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9936 * configure.host: Remove m680[01]0-sun-sunos3*,
9937 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9938 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9939 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9940 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9941 mips-*-riscos*.
9942 * NEWS: Mention removed systems.
9943
99d16a21
AC
99442004-04-04 Andrew Cagney <cagney@redhat.com>
9945
9946 GDB 6.1 release created from 6.1 branch.
9947
6cdf9d98
AC
99482004-04-04 Andrew Cagney <cagney@redhat.com>
9949
98d346c3
AC
9950 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9951 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9952 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9953
6cdf9d98
AC
9954 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9955 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9956 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9957
859a326d
JB
99582004-04-03 Jim Blandy <jimb@redhat.com>
9959
9960 * MAINTAINERS: Chris Faylor has changed employers; add him to
9961 "paper trail" section, and update his E-mail address.
9962
b87178c3
AC
99632004-04-03 Andrew Cagney <cagney@redhat.com>
9964
4ea2acf0
AC
9965 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9966 generic dummy frames.
9967 * dummy-frame.c: Update copyright.
9968 (dummy_frame_sniffer): Delete check for generic dummy frames.
9969
d0bd2d18 9970 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9971 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9972 (REG_PARM_STACK_SPACE): Delete.
9973 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9974 Inline reference to REG_PARM_STACK_SPACE.
9975
b87178c3
AC
9976 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9977 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9978 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9979 (FRAME_BASE_BEFORE_SIGTRAMP)
9980 (hppa32_hpux_frame_base_before_sigtramp)
9981 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9982 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9983 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9984 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9985 (FRAME_BASE_BEFORE_SIGTRAMP)
9986 (hppa64_hpux_frame_base_before_sigtramp)
9987 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9988
43e2e1a0
AC
99892004-04-03 Andrew Cagney <cagney@redhat.com>
9990
9991 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9992
ddc135a4
AC
99932004-04-02 Andrew Cagney <cagney@redhat.com>
9994
9995 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9996 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9997 * dummy-frame.h: Delete out-of-date comments.
9998 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9999 * gdbarch.h, gdbarch.c: Re-generate.
10000
d15bfd3a 100012004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 10002
d15bfd3a
AC
10003 Committed by Andrew Cagney <cagney@redhat.com>.
10004 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10005 into account an instruction saving a register if we have already
10006 seen an earlier instruction saving that same register.
10007
f04ceafa
AC
100082004-04-02 Andrew Cagney <cagney@redhat.com>
10009
08be3abd
AC
10010 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10011 * gdbarch.h, gdbarch.c: Re-generate.
10012 * frame.c (legacy_get_prev_frame): Delete references to
10013 DEPRECATED_INIT_FRAME_PC_FIRST.
10014
f04ceafa
AC
10015 * infrun.c (pc_in_sigtramp): Delete function.
10016 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10017 get_frame_type.
10018
08e69816
AC
100192004-04-02 Andrew Cagney <cagney@redhat.com>
10020
10021 * infrun.c (handle_step_into_function): Delete code conditional on
10022 legacy_frame_p.
10023 (handle_inferior_event, step_over_function): Ditto.
10024
adb54772
AC
100252004-04-02 Andrew Cagney <cagney@redhat.com>
10026
10027 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10028 "previous frame inner to this frame" test.
10029
304396fb
AC
100302004-04-02 Andrew Cagney <cagney@redhat.com>
10031
10032 * frame.c (safe_frame_unwind_memory): New function.
10033 * frame.h (safe_frame_unwind_memory): Declare. Update description
10034 of /safe_/ methods.
10035 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10036 "next_frame". Use safe_frame_unwind_memory.
10037 (tramp_frame_sniffer): Update call to tramp_frame_start.
10038
6502dd73
DJ
100392004-04-01 Daniel Jacobowitz <drow@mvista.com>
10040
10041 * dwarf2read.c (dwarf2_objfile_data_key): New.
10042 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10043 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10044 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10045 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10046 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10047 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10048 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10049 Remove variables.
10050 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10051 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10052 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10053 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10054 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10055 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10056 Remove macros.
10057 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10058 data.
10059 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10060 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10061 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10062 (read_partial_die, read_full_die, read_indirect_string)
10063 (dwarf_decode_line_header, dwarf_decode_macros)
10064 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10065 Update uses of removed variables.
10066 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10067 of removed macros.
10068 (_initialize_dwarf2_read): New function.
10069 * symfile.h (dwarf2_has_info): Update prototype.
10070 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10071 * elfread.c (elf_symfile_read): Likewise.
10072
408752b0
JB
100732004-04-01 Jim Blandy <jimb@redhat.com>
10074
9f744501
JB
10075 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10076 function for register numbers on all the rs6000-derived targets.
10077 (rs6000_gdbarch_init): Don't register a separate
10078 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10079 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10080 variants.
10081
408752b0
JB
10082 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10083 numbering.
10084
2de41bce
PH
100852004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10086
10087 * valarith.c: Update copyright notice.
10088 (value_add): Handle range types.
10089 (value_sub): Ditto.
10090 (value_equal): Ditto.
10091 (value_less): Ditto.
10092 (value_neg): Ditto.
10093 (value_complement): Ditto.
8718a420 10094 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 10095 eliminiating unnecessary COERCE_ENUMs.
8718a420 10096
5613d8d3
AC
100972004-03-31 Andrew Cagney <cagney@redhat.com>
10098
10099 * frame.h (frame_unwind_id): Declare.
10100 * frame.c (frame_unwind_id): New function.
10101 (get_prev_frame_1): New function.
10102 (frame_debug_got_null_frame): New function.
10103 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10104 code proper to prev_frame, update description.
10105 * infrun.c (step_over_function): Use frame_unwind_id.
10106
c4557624
JB
101072004-04-31 J. Brobecker <brobecker@gnat.com>
10108
10109 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10110 (hppa64_push_dummy_call): Likewise.
10111
3e6bb910
JB
101122004-03-30 Jim Blandy <jimb@redhat.com>
10113
10114 From Ulrich Weigand:
10115 * utils.c (query): Do not use a va_list variable multiple times.
10116
a2f23071
DJ
101172004-03-29 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * Makefile.in (linux_nat_h): Update dependencies.
10120 * configure.in: Check for <gnu/libc-version.h>.
10121 * configure: Regenerate.
10122 * config.in: Regenerate.
10123 * linux-nat.h: Include "target.h". Add waitstatus field to
10124 struct lwp_info.
10125 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10126 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10127 to.
10128 (lin_lwp_handle_extended): New function. Handle clone events.
10129 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10130 thread exit events.
10131 (child_wait): Handle clone events.
10132 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10133 * linux-nat.c (linux_enable_event_reporting): Turn on
10134 PTRACE_O_TRACECLONE.
10135 (linux_handle_extended_wait): Handle clone events.
10136 * thread-db.c: Include <gnu/libc-version.h>.
10137 (struct private_thread_info): Add dying flag.
10138 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10139 higher.
10140 (attach_thread): Update comments. Handle dying threads.
10141 (detach_thread): Set the dying flag.
10142 (check_event): Always call attach_thread.
10143
8d5f9dcb
DJ
101442004-03-29 Daniel Jacobowitz <drow@mvista.com>
10145
10146 * mips-tdep.c (mips_pdr_data): New.
10147 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10148 (_initialize_mips_tdep): Initialize mips_pdr_data.
10149
66337bb1
CV
101502004-03-29 Corinna Vinschen <vinschen@redhat.com>
10151
10152 * minsyms.c (install_minimal_symbols): Move dropping leading
10153 char from linkage name from here...
10154 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10155 test for "__gnu_compiled*" symbols.
10156
e802b915
JB
101572004-03-28 Jim Blandy <jimb@redhat.com>
10158
10159 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10160 registers to temp register r0 and byte stores as prologue
10161 instructions.
10162
72b56458
AC
101632004-03-28 Andrew Cagney <cagney@redhat.com>
10164
10165 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10166 arm*-*-*.
10167
0bfbda3b
SC
101682004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10169
10170 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10171 and switch the layout to force a display of register window.
10172
5a7225ed
JB
101732004-02-26 J. Brobecker <brobecker@gnat.com>
10174
10175 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10176 of the INTEGER class.
10177
81a07a45
JB
101782004-03-26 Jim Blandy <jimb@redhat.com>
10179
10180 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10181 bytes long on PPC GNU/Linux.
10182
8c691c7a
DC
101832004-03-26 David Carlton <carlton@kealia.com>
10184
10185 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10186
103a0089
AC
101872004-03-25 Andrew Cagney <cagney@redhat.com>
10188
10189 * PROBLEMS: Add general section titles, remove references to
10190 specific releases.
10191
7a5ea0d4
DJ
101922004-03-25 Daniel Jacobowitz <drow@mvista.com>
10193
10194 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10195 INT_REGISTER_SIZE.
10196 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10197 FP_REGISTER_VIRTUAL_SIZE.
10198 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10199 of DEPRECATED_REGISTER_RAW_SIZE.
10200 (arm_register_type): Add gdbarch argument.
10201 (arm_register_raw_size, arm_register_virtual_size): Delete.
10202 (arm_register_byte, arm_extract_return_value)
10203 (arm_store_return_value, arm_get_longjmp_target): Update references
10204 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10205 (arm_gdbarch_init): Likewise. Don't set
10206 deprecated_register_raw_size, deprecated_register_virtual_size,
10207 deprecated_max_register_raw_size,
10208 deprecated_max_register_virtual_size, or
10209 deprecated_max_register_virtual_type. Do set register_type.
10210 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10211 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10212 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10213 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10214 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10215 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10216 INT_REGISTER_SIZE.
10217 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10218 (remote_rdp_store_register): Likewise.
10219
5792a79b
DJ
102202004-03-24 Daniel Jacobowitz <drow@mvista.com>
10221
10222 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10223 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10224 to after osabi initialization.
10225 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10226 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10227 functions.
10228 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10229 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10230 variables.
10231 (mips_linux_init_abi): Append signal trampoline unwinders.
10232
1196bfda
AC
102332004-03-24 Andrew Cagney <cagney@redhat.com>
10234
10235 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10236 * tramp-frame.c: Include "gdb_assert.h".
10237 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10238 correct sizeof.
10239 (tramp_frame_append): Validate the tramp frame's instructions.
10240 * Makefile.in (tramp-frame.o): Update dependencies.
10241
4be282b4
AC
102422004-03-23 Andrew Cagney <cagney@redhat.com>
10243
10244 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10245
69aec09b
AC
102462004-03-23 Andrew Cagney <cagney@redhat.com>
10247
10248 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10249 Nasser as past testsuite/lib/ (and other) maintainers.
10250
63ed89b4
DJ
102512004-03-23 Daniel Jacobowitz <drow@mvista.com>
10252
10253 * infcmd.c (attach_command): Reread symbols if we already have
10254 an exec file.
10255
f3b36427
AC
102562004-03-23 Andrew Cagney <cagney@redhat.com>
10257
10258 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10259
aa2a3f87
AC
102602004-03-23 Andrew Cagney <cagney@redhat.com>
10261
10262 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10263 * gdbarch.h, gdbarch.c: Re-generate.
10264 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10265 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10266 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 10267 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 10268 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 10269 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
10270 (DEPRECATED_SIGTRAMP_START): Update.
10271 * blockframe.c (find_pc_sect_partial_function): Update.
10272 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10273
00cac895
DJ
102742004-03-23 Daniel Jacobowitz <drow@mvista.com>
10275
10276 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10277 if necessary.
10278
f561f026
AC
102792004-03-23 Andrew Cagney <cagney@redhat.com>
10280
10281 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10282 predicate, deprecate.
10283 * gdbarch.h, gdbarch.c: Re-generate.
10284 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10285 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10286 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10287 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10288 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10289 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10290 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10291 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10292 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10293 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10294 * blockframe.c (find_pc_partial_function): Update.
10295 * breakpoint.c (bpstat_what): Update.
10296 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10297 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10298 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10299 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10300 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10301 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10302 * i386-nto-tdep.c (i386nto_init_abi): Update.
10303 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10304 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10305 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10306 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10307 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10308 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10309 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10310 * infrun.c (pc_in_sigtramp): Update.
10311 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10312 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10313 * mips-tdep.c (mips_gdbarch_init): Update.
10314 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10315 * ppc-linux-tdep.c: Update comment.
10316 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10317 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10318 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10319 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10320 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10321 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10322 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10323 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10324 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10325 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 10326
8050c72f
AC
103272004-03-23 Andrew Cagney <cagney@redhat.com>
10328
d2259dd3
AC
10329 * tramp-frame.h, tramp-frame.h: New files.
10330 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10331 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10332
8050c72f
AC
10333 * Makefile.in: Update all dependencies.
10334
0db9b4b7
AC
103352004-03-23 Andrew Cagney <cagney@redhat.com>
10336
10337 * Makefile.in (trad_frame_h): Add $(frame_h).
10338 * trad-frame.h: Update copyright. Include "frame.h".
10339 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10340 (trad_frame_set_id, trad_frame_get_id): Declare.
10341 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10342 * trad-frame.c: Update copyright.
10343 (struct trad_frame_cache): Define.
10344 (trad_frame_cache_zalloc): New function.
10345 (trad_frame_set_id, trad_frame_get_id): New functions.
10346 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 10347
8e645ae7
AC
103482004-03-22 Andrew Cagney <cagney@redhat.com>
10349
10350 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10351 s390_pltstub_unwind_cache.
10352 (s390_stub_frame_unwind_cache): Rename
10353 s390_pltstub_frame_unwind_cache.
10354 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10355 (s390_stub_frame_prev_register): Rename
10356 s390_pltstub_frame_prev_register.
10357 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10358 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10359
10360 From Ulrich Weigand:
10361 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10362 pointer calls like PLT calls.
10363
34fcf120
DJ
103642004-03-22 Daniel Jacobowitz <drow@mvista.com>
10365
10366 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10367 PC rather than the partial function start address. Use the start
10368 address to sanity check the found PDR.
10369
5b917078
DJ
103702004-03-22 Daniel Jacobowitz <drow@mvista.com>
10371
10372 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10373 linux_handle_extended_wait.
10374
8adf9e78
AC
103752004-03-22 Andrew Cagney <cagney@redhat.com>
10376
c3122434
AC
10377 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10378 function.
10379
8adf9e78
AC
10380 * frame.h (generic_pop_current_frame): Delete declaration.
10381 (deprecate_pop_dummy_frame): Deprecate
10382 generic_pop_dummy_frame.
10383 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10384 (generic_pop_current_frame): Delete function.
10385 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10386 generic_pop_current_frame.
10387 * v850-tdep.c (v850_pop_frame): Update.
10388 * mcore-tdep.c (mcore_pop_frame): Update.
10389 * sh64-tdep.c (sh64_pop_frame): Update.
10390 * h8300-tdep.c (h8300_pop_frame): Update.
10391
90ba813f
AC
103922004-03-22 Andrew Cagney <cagney@redhat.com>
10393
10394 * frame.h (deprecated_pc_in_call_dummy): Rename
10395 generic_pc_in_call_dummy.
10396 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10397 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10398 generic_pc_in_call_dummy.
10399 (pc_in_dummy_frame): Make static.
10400 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10401 * gdbarch.h, gdbarch.c: Re-generate.
10402 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10403 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10404 (legacy_get_prev_frame): Ditto.
10405 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10406 comment.
8718a420 10407
ca4bb888
AC
104082004-03-21 Andrew Cagney <cagney@redhat.com>
10409
244675f9
AC
10410 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10411 declaration and out-of-date comment.
10412 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10413 Delete function.
10414 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10415 deprecated_pc_in_call_dummy.
10416
ca4bb888
AC
10417 * infrun.c (handle_inferior_event): For non legacy frames, use the
10418 frame ID and frame type to identify a signal trampoline. Update
10419 comments.
10420
1777c7b4
NW
104212004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10422
10423 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10424 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10425
82417da5
AC
104262004-03-21 Andrew Cagney <cagney@redhat.com>
10427
10428 * frame-unwind.h: Update copyright.
10429 (struct frame_data): Add opaque declaration.
10430 (frame_sniffer_ftype): Declare.
10431 (struct frame_unwind): Add "unwind_data" and "sniffer".
10432 (frame_unwind_register_unwinder): Declare.
10433 (frame_unwind_find_by_frame): Add parameter "this_cache".
10434 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10435 (legacy_get_prev_frame, legacy_get_prev_frame)
10436 (get_frame_type): Pass the prologue_cache to
10437 frame_unwind_find_by_frame.
10438 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10439 "unwinder".
10440 (frame_unwind_register_unwinder): New function.
10441 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10442
b2ba182e
PH
104432004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10444
10445 * bcache.c (print_percentage): Use floating point to avoid
10446 incorrect results when portion*100 overflows.
10447
81332287
KB
104482004-03-19 Kevin Buettner <kevinb@redhat.com>
10449
10450 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10451 (ppc_linux_init_extra_frame_info)
10452 (ppc_linux_frameless_function_invocation)
10453 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10454 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10455 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10456 (rs6000_frame_chain): Delete declarations.
10457 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10458 (ppc_linux_init_extra_frame_info)
10459 (ppc_linux_frameless_function_invocation)
10460 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10461 (ppc_linux_init_abi): Remove registration of above deleted functions.
10462 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10463 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10464 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10465 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10466 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10467 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10468 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10469 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10470 frame management for all OSABIs.
10471
61a65099
KB
104722004-03-19 Andrew Cagney <cagney@redhat.com>
10473
10474 Committed by Kevin Buettner <kevinb@redhat.com>.
10475
10476 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10477 Update copyright.
10478 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10479 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10480 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10481 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10482 unwinders. #ifdef legacy frame code.
10483 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10484 "frame-base.h".
10485 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10486 (struct rs6000_frame_cache, rs6000_frame_cache)
10487 (rs6000_frame_this_id, rs6000_frame_prev_register)
10488 (rs6000_frame_sniffer, rs6000_frame_unwind)
10489 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10490 (rs6000_frame_base): Implement a traditional frame unwinder.
10491 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10492 frame unwinder.
10493
88f7da05
KB
104942004-03-19 Kevin Buettner <kevinb@redhat.com>
10495
10496 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10497 breakpoint address for watchpoints or the catch eventpoints.
10498 Add new paramter ``bptype''. Adjust all callers.
10499
f826dce1
AC
105002004-03-19 Andrew Cagney <cagney@redhat.com>
10501
33cb8b0f
AC
10502 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10503
f826dce1
AC
10504 * PROBLEMS: Delete note that ARM does not use frame code, problem
10505 fixed.
10506
43b1ab88
AC
105072004-03-18 Andrew Cagney <cagney@redhat.com>
10508
292ab034
AC
10509 * stack.c (return_command): Delete code wrapped in #ifdef
10510 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10511
43b1ab88
AC
10512 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10513
dbfe4626
AC
105142004-03-18 Andrew Cagney <cagney@redhat.com>
10515
10516 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10517 DEPRECATED_IN_SIGTRAMP.
10518 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10519 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10520 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10521 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10522 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10523 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10524 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10525 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10526 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10527 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10528
0cad6aec
AC
105292004-03-18 Andrew Cagney <cagney@redhat.com>
10530
10531 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10532 (struct frame_base_table_entry): Define.
10533 (struct frame_base_table): Re-implement as a linked list.
10534 (frame_base_init): Re-implement.
10535 (frame_base_table): Delete function.
10536 (append_predicate): Delete function.
10537 (frame_base_append_sniffer): Update.
10538 (frame_base_set_default): Update.
10539 (frame_base_find_by_frame): Update.
10540 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10541 * Makefile.in (frame-base.o): Update dependencies.
10542
9982c2e7
AC
105432004-03-17 Andrew Cagney <cagney@redhat.com>
10544
10545 * frame.c (legacy_get_prev_frame): Pass correct frame to
10546 frame_unwind_find_by_frame.
10547
8dfe8985
DC
105482004-03-17 David Carlton <carlton@kealia.com>
10549
10550 * NEWS: Mention C++ nested types and namespaces
10551
ed47347a
MC
105522004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10553
10554 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10555 and "Regressions since gdb 5.3.". Add known regressions since
10556 gdb 6.0.
10557
90aeadfc
DC
105582004-03-16 David Carlton <carlton@kealia.com>
10559
10560 * dwarf2read.c (process_structure_scope): Process children even
10561 when we're a declaration.
10562
73912b9b
AC
105632004-03-16 Andrew Cagney <cagney@redhat.com>
10564
10565 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10566 * blockframe.c (find_pc_partial_function)
10567 (find_pc_sect_partial_function): Merge into a single
10568 find_pc_partial_function.
10569
283accbc
MK
105702004-03-16 Mark Kettenis <kettenis@gnu.org>
10571
10572 * i386bsd-nat.c: s/regno/regnum/g.
10573 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10574 FP0_REGNUM.
10575 (store_inferior_registers): Likewise.
10576
f5b1afdf
MK
105772004-03-16 Mark Kettenis <kettenis@gnu.org>
10578
10579 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10580 of i387_fill_fsave.
10581 (store_inferior_registers): Call i387_collect_fsave and
10582 i387_collect_fxsave instead of i387_fill_fsave and
10583 i387_fill_fxsave.
10584
41fe5eb3
AC
105852004-03-15 Andrew Cagney <cagney@redhat.com>
10586
10587 * Makefile.in (frame-unwind.o): Update dependencies.
10588 * frame-unwind.c: Include "gdb_obstack.h".
10589 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10590 parameter.
10591 (append_predicate): Delete function.
10592 (struct frame_unwind_table_entry): New structure.
10593 (struct frame_unwind_table): Replace "sniffer" with "head" and
10594 "tail".
10595 (frame_unwind_append_sniffer): Update.
10596 (frame_unwind_find_by_frame): Update.
10597 (_initialize_frame_unwind): Registe frame_unwind_init using
10598 gdbarch_data_register_pre_init.
10599
3f63813d
MK
106002004-03-15 Mark Kettenis <kettenis@gnu.org>
10601
10602 * i386bsd-nat.c: Update copyright year.
10603 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10604 define unconditionally.
10605
3248c325 106062004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10607
10608 * i387-tdep.h (i387_collect_fsave): New prototype.
10609 * i387-tdep.c (i387_collect_fsave): New function containing most
10610 of the code from i387_fill_fsave.
3248c325 10611 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10612
871fbe6a
MK
106132004-03-15 Mark Kettenis <kettenis@gnu.org>
10614
10615 * i386-linux-tdep.c: Update copyright year.
10616 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10617 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10618 svr4_ilp32_link_map_offsets instead of
10619 i386_linux_svr4_fetch_link_map_offsets.
10620
8176b9b8
DC
106212004-03-15 David Carlton <carlton@kealia.com>
10622
10623 Fix for PR c++/1553:
10624 * dwarf2read.c (read_structure_type): Determine type name by
10625 calling determine_class_name.
10626 (determine_class_name): New.
10627 (determine_prefix): Look at TYPE_TAG_NAME and call
10628 determine_class_name when appropriate.
10629 (determine_prefix_aux, class_name): Delete.
9d58e29d 10630 (read_namespace): Set die->type.
8176b9b8 10631
fe8bf7d7
KB
106322004-03-15 Kevin Buettner <kevinb@redhat.com>
10633
10634 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10635 unused macro definition. The definition in target.h (or perhaps
10636 elsewhere) takes precedence.
10637
ed6edd9b
AC
106382004-03-15 Andrew Cagney <cagney@redhat.com>
10639
f9be684a
AC
10640 * ppc-tdep.h: Update copyright.
10641 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10642 function signatures to match "regsets.h".
10643 * ppc-linux-tdep.c: Include "regset.h".
10644 (ELF_GREGSET_SIZE): Delete.
10645 (right_supply_register): New function.
10646 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10647 using right_supply_register.
10648 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10649 functions.
10650 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10651 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10652 (_initialize_ppc_linux_tdep): Do not register
10653 ppc_linux_regset_core_fns.
10654 (ppc_linux_regset_from_core_section): Replace
10655 fetch_core_registers.
10656 (ppc_linux_regset_core_fns): Delete.
10657 * ppc-linux-nat.c: (right_fill_reg): New function.
10658 (supply_gregset): Update call to ppc_linux_supply_gregset.
10659 (fill_gregset): Clear the register set, use right_fill_reg.
10660 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10661 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10662
ed6edd9b
AC
10663 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10664 unsigned.
10665
030f20e1
AC
106662004-03-15 Andrew Cagney <cagney@redhat.com>
10667
10668 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10669 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10670 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10671 and register_gdbarch_data.
10672 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10673 (struct gdbarch_data): Replace "init" by "pre_init" and
10674 "post_init".
10675 * gdbarch.h, gdbarch.c: Re-generate.
10676 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10677 with"obstack", use OBSTACK_ZALLOC.
10678 (dwarf2_frame_ops): Delete.
10679 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10680 (dwarf2_frame_init_reg): Use gdbarch_data.
10681 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10682 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10683 (_initialize_svr4_solib): Update.
10684 * user-regs.c (_initialize_user_regs): Update.
10685 * reggroups.c (_initialize_reggroup): Update.
10686 * regcache.c (_initialize_regcache): Update.
10687 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10688 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10689 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10690 * frame-unwind.c (_initialize_frame_unwind): Update.
10691 * frame-base.c (_initialize_frame_base): Update.
10692 * user-regs.c (user_reg_add): Update.
10693 * reggroups.c (reggroup_add): Update.
10694 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10695 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10696 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10697 * frame-base.c (frame_base_table): Update.
10698 * remote.c (_initialize_remote): Update.
10699 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10700
3111a3fc
AC
107012004-03-15 Andrew Cagney <cagney@redhat.com>
10702
10703 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10704
5ecb7103
KB
107052004-03-15 Kevin Buettner <kevinb@redhat.com>
10706
10707 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10708 * frv-linux-tdep.c: New file.
10709 * frv-tdep.c (struct gdbarch_tdep): Add new field
10710 ``sigcontext_reg_addr''.
10711 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10712 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10713 (frv_sigramp_frame_sniffer): New functions.
10714 (frv_sigtramp_frame_unwind): New static global.
10715 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10716 sniffers.
10717 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10718 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10719
1ccda5e9
KB
107202004-03-15 Kevin Buettner <kevinb@redhat.com>
10721
10722 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10723 but not via a call to error(), when unable to read memory.
10724
b375a0a5
KB
107252004-03-15 Kevin Buettner <kevinb@redhat.com>
10726
10727 * frv-tdep.c (frv_call_dummy_words): Delete.
10728 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10729
4fdf6121
AC
107302004-03-15 Andrew Cagney <cagney@redhat.com>
10731
10732 * infrun.c (handle_step_into_function, step_over_function): Only
10733 update and use STEP_FRAME_ID when the system is using legacy
10734 frames. Update comments.
10735
34021503
MK
107362004-03-14 Mark Kettenis <kettenis@gnu.org>
10737
187e21d1
MK
10738 * amd64-linux-tdep.h: Remove file.
10739 * amd64-linux-tdep.c: Don't include "inferior.h" and
10740 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10741 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10742 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10743 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10744 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10745 macros.
10746 (user_to_gdb_regmap): Remove variable.
10747 (amd64_linux_gregset_reg_offset): New variable.
10748 (amd64_core_fns): Remove variable.
10749 (fetch_core_registers): Remove function.
10750 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10751 functions.
10752 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10753 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10754 * Makefile.in (amd64_linux_tdep_h): Remove.
10755 (amd64-linux-nat.o): Update dependencies.
10756 (amd64-linux-tdep.o): Update dependencies.
10757
99679982
MK
10758 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10759 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10760 functions.
10761 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10762
34021503
MK
10763 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10764 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10765
134d01f1
DJ
107662004-03-14 Daniel Jacobowitz <drow@mvista.com>
10767
10768 * dwarf2read.c (read_structure_type): Rename from
8718a420 10769 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10770 Return immediately if die->type is set. Call read_type_die before
10771 dwarf2_add_member_fn.
10772 (process_structure_scope): New function.
10773 (read_enumeration_type, process_enumeration_scope): New functions,
10774 broken out from read_enumeration. Don't create the enumeration
10775 type if it has already been created.
10776 (read_enumeration): Removed.
10777 (process_die): Call read_structure_type, process_structure_scope,
10778 read_enumeration_type, and process_enumeration_scope. Just call
10779 new_symbol for base and subrange types. Add a comment about other
10780 type dies.
10781 (read_type_die): Call read_enumeration_type.
10782 (add_partial_structure, new_symbol): Update comments.
10783
65760afb
SC
107842004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10785
10786 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10787
10f59415
SC
107882004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10789
10790 * tui/tui-win.h (tui_get_cmd_list): Declare.
10791 * tui/tui-win.c (tui_command): New function.
10792 (tui_get_cmd_list): New function.
10793 (_initialize_tui_win): Moved initialization of tui command in
10794 tui_get_cmd_list.
10795
10796 * tui/tui-data.c (init_content_element): Setup new data members.
10797 (init_win_info): Likewise.
10798 (free_content_elements): Free it.
10799 * tui/tui-data.h (struct tui_data_element): Store the register
10800 content to print.
10801 (struct tui_data_info): Keep the current register group.
10802
10803 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10804
10805 * tui/tui-regs.h (tui_show_registers): Update prototype.
10806 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10807 (tui_resize_all): No need to calculate anything for register window.
10808 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10809 (tui_set_register_element, tui_set_general_regs_content): Remove.
10810 (tui_set_special_regs_content): Remove.
10811 (tui_set_general_and_special_regs_content): Remove.
10812 (tui_set_float_regs_content): Remove.
10813 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10814 (tui_set_regs_content): Remove.
10815 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10816 (tui_v_show_registers_command_support): Remove.
10817 (tui_show_registers): Use a reggroup to specify the registers to show.
10818 (tui_show_register_group): New function.
10819 (tui_display_registers_from): Compute the layout of register window
10820 and refresh with new API; be sure to delete old register windows.
10821 (tui_check_register_values): Update to use tui_get_register and
10822 tui_display_data.
10823 (tui_display_register): Just refresh the register window part.
10824 (tui_register_format): Format registers and save in tui_data_element.
10825 (tui_get_register): New to combine tui_reg_value_has_changed and
10826 tui_get_register_raw_value; fix to use the new gdb API.
10827 (tui_show_float_command): Renamed tui_reg_float_command.
10828 (tui_show_general_command): Renamed tui_reg_general_command.
10829 (tui_show_special_command): Renamed tui_reg_system_command.
10830 (_initialize_tui_regs): Remove unused commands.
10831
c3364ea4
MK
108322004-03-13 Mark Kettenis <kettenis@gnu.org>
10833
27d1e716
MK
10834 * NEWS (New native configurations): Mention OpenBSD/amd64.
10835
c3364ea4
MK
10836 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10837 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10838 Remove defines.
10839 * config/i386/nm-fbsd64.h: Likewise.
10840 * config/i386/nm-obsd.h: Likewise.
10841 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10842 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10843
b2d6d697
KB
108442004-03-12 Kevin Buettner <kevinb@redhat.com>
10845
10846 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10847 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10848 New constants.
10849
76e43199
KB
10850 From Richard Sandiford <rsandifo@redhat.com>:
10851 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10852
34ce532e
KB
108532004-03-12 Kevin Buettner <kevinb@redhat.com>
10854
10855 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10856 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10857 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10858 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10859 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10860 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10861 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10862 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10863 definitions from frv-tdep.c to frv-tdep.h.
10864
c4d10515
KB
108652004-03-12 Kevin Buettner <kevinb@redhat.com>
10866
10867 Add shared library support for FR-V FDPIC ABI:
10868 * Makefile.in (solib-frv.o): Add dependencies.
10869 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10870 New functions.
10871 (frv_push_dummy_call): Add support for FDPIC ABI.
10872 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10873 for FDPIC ABI.
10874 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10875 (frv_fdpic_find_canonical_descriptor): Declare.
10876 * solib-frv.c: New file.
10877 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10878 * config/frv/tm-frv.h (solib.h): Include.
10879
ed1bd989
KB
108802004-03-12 Kevin Buettner <kevinb@redhat.com>
10881
10882 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10883 (frv-tdep.o): Update dependencies.
10884 * frv-tdep.h: New file.
10885 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10886 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10887 constants.
10888 (struct gdbarch_tdep): Add new member ``frv_abi''.
10889 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10890 functions.
10891 (new_variant): Set ``frv_abi'' field.
10892 (gdb_arch_init): Detect FDPIC executables.
10893
82b38f72
MK
108942004-03-12 Mark Kettenis <kettenis@gnu.org>
10895
10896 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10897 wrapper.
10898
db1ea9ba
AC
108992004-03-11 Andrew Cagney <cagney@redhat.com>
10900
10901 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10902
f8766ec1
KB
109032004-03-11 Kevin Buettner <kevinb@redhat.com>
10904
10905 * solist.h (master_so_list): New function.
10906 * solib.c (master_so_list): Likewise.
10907 * solib-svr4.c (enable_break): Iterate over so_list entries
10908 obtained from master list instead of entries obtained directly
10909 via svr4_current_sos().
10910
523f6a27
BE
109112004-03-10 Ben Elliston <bje@gnu.org>
10912
10913 * MAINTAINERS: Update my mail address.
10914
37814c18
KI
109152004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10916
10917 * remote-m32r-sdi.c: Support hardware watchpoint.
10918
8b9740d8
DJ
109192004-03-09 Daniel Jacobowitz <drow@mvista.com>
10920
10921 * user-regs.c: Update copyright years.
10922 (struct user_regs): Rename to gdb_user_regs.
10923 (append_user_reg, builtin_user_regs, user_regs_init)
10924 (user_reg_add, user_reg_map_name_to_regnum)
10925 (usernum_to_user_reg): Update.
10926
4bb7a0a7
DJ
109272004-03-09 Daniel Jacobowitz <drow@mvista.com>
10928
10929 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10930 (skip_children): New functions.
10931 (locate_pdi_sibling): Call skip_children.
10932
44e1a9eb
DJ
109332004-03-09 Daniel Jacobowitz <drow@mvista.com>
10934
10935 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10936 * gdbtypes.c (check_typedef): Update comments.
10937
f3dd6933
DJ
109382004-03-09 Daniel Jacobowitz <drow@mvista.com>
10939
10940 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10941 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10942 pointer. Update comment about comp_unit_head.
10943 (struct abbrev_info): Shorten two int flags.
10944 (dwarf_alloc_abbrev): Take a CU argument.
10945 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10946 each time through the loop. Update cleanup argument.
10947 (psymtab_to_symtab_1): Update cleanup call.
10948 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10949 abbrev_obstack.
10950 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10951 Just call obstack_free and clear the pointer.
10952
b40c7d58
DJ
109532004-03-09 Daniel Jacobowitz <drow@mvista.com>
10954
10955 * infrun.c (handle_inferior_event): Remove short-circuit code for
10956 events in a different thread.
10957
333dabeb
DJ
109582004-03-09 Daniel Jacobowitz <drow@mvista.com>
10959
10960 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10961 print the whole transfer.
10962 (initialize_targets): Update description of "set debug target".
10963
aa17d93e
DJ
109642004-03-09 Daniel Jacobowitz <drow@mvista.com>
10965
10966 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10967
0b71f08f
NW
109682004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10969
10970 * MAINTAINERS (write after approval): Add myself.
10971
3930f270
CV
109722004-03-08 Corinna Vinschen <vinschen@redhat.com>
10973
10974 * sh-tdep.c (sh_print_registers_info): Use for loop.
10975 Don't skip multiple registers when a float register is encountered.
10976
a2b4a96c
CV
109772004-03-08 Corinna Vinschen <vinschen@redhat.com>
10978
10979 Fix PR tdep/1291.
10980 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10981 to official SH documentation.
10982
f15a4bc0
AC
109832004-03-07 Andrew Cagney <cagney@redhat.com>
10984
10985 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10986 unused function.
10987
9498281f
DJ
109882004-03-07 Daniel Jacobowitz <drow@mvista.com>
10989
10990 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10991 (arm_get_next_pc): Handle BX and BLX.
10992
449e1137
AC
109932004-03-07 Andrew Cagney <cagney@redhat.com>
10994
eded0a31
AC
10995 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10996 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10997 HPPA_SP_REGNUM.
10998 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10999 (hppa_target_read_fp): Delete.
11000 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11001 register_virtual_size, max_register_raw_size,
11002 max_register_virtual_size, register_byte, register_size,
11003 target_read_fp, fp_regnum, and register_bytes. Set register_type
11004 instead of register_virtual_type.
11005 (hppa32_register_type, hppa64_register_type): Replace
11006 hppa32_register_virtual_type and hppa64_register_virtual_type.
11007 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11008 (HPPA_FP_REGNUM): Define.
11009
f5f907e2
AC
11010 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11011
69b4bbe4
AC
11012 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11013 (pa_do_registers_info): Delete.
11014 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 11015 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 11016 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 11017
78161e48
AC
11018 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11019 GDB_TARGET_IS_HPPA code.
11020 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 11021 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
11022 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11023 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
11024 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11025 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11026 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 11027 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
11028 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11029 (hppa_frameless_function_invocation, hppa64_store_return_value)
11030 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 11031 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 11032 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 11033 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
11034 (find_proc_framesize, deposit_21, restore_pc_queue)
11035 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 11036 (rp_saved, pc_in_linker_stub): Delete.
78161e48 11037
782eae8b
AC
11038 Unconditionally enable 64-bit frame and ABI code.
11039 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11040 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11041 push_dummy_frame, fix_call_dummy, push_arguments,
11042 call_dummy_location, extract_return_value, use_struct_convention,
11043 store_return_value, store_struct_return, saved_pc_after_call,
11044 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11045 frame_chain, frame_chain_valid, frameless_function_invocation,
11046 frame_saved_pc, and pop_frame.
78161e48 11047
449e1137
AC
11048 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11049 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11050 (hppa_gdbarch_init): Do not set PC_REGNUM.
11051
12507572
MK
110522004-03-06 Mark Kettenis <kettenis@gnu.org>
11053
11054 * config/alpha/tm-fbsd.h: Remove file.
11055 * config/alpha/fbsd.mt: Tweak comment.
11056 (TM_FILE): Set to tm-alpha.h.
11057
c107cc1b
AC
110582004-03-05 Andrew Cagney <cagney@redhat.com>
11059
11060 * infrun.c (step_over_function): When non-legacy code, and no
11061 step_frame_id, use the unwinder to get the caller's frame ID.
11062
f2e7c15d
MK
110632004-03-05 Mark Kettenis <kettenis@gnu.org>
11064
8b0c3633
MK
11065 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11066 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11067 bfd_arch_unknown. Adjust comment.
11068
f2e7c15d
MK
11069 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11070 * i386obsd-tdep.c: Correct spelling in comment.
11071 * i386nbsd-tdep.c: Correct spelling in comment.
11072 * sparc-tdep.c: Correct spelling in comments.
11073
1198ecbe
DC
110742004-03-05 David Carlton <carlton@kealia.com>
11075
11076 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11077 bug.
11078
9eb42ed1
MK
110792004-03-05 Mark Kettenis <kettenis@gnu.org>
11080
11081 * sparc-tdep.c: Fix typo in comment.
11082
52b5e991
JB
110832004-03-04 J. Brobecker <brobecker@gnat.com>
11084
11085 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11086
d8151005
DJ
110872004-03-04 Daniel Jacobowitz <drow@mvista.com>
11088
11089 * dwarf2read.c: Add comment describing memory lifetimes.
11090 (struct dwarf2_pinfo): Update comment.
11091 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11092 (read_enumeration, new_symbol): Don't use obsavestring.
11093
cbeae229
MK
110942004-03-04 Mark Kettenis <kettenis@gnu.org>
11095
722d18c2
MK
11096 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11097 instead of amd64_fill_fxsave.
11098 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11099 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11100
cbeae229
MK
11101 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11102 Reorganize code a bit.
11103
b4206d25
OF
111042004-03-04 Orjan Friberg <orjanf@axis.com>
11105
11106 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
11107 when the frame pointer is pushed. Don't set the frame pointer's
11108 address on the stack unless it's actually located there.
b4206d25
OF
11109 Set the SRP's address on the stack correctly when the PC is still in
11110 the prologue.
11111 (cris_return_value): New function.
11112 (cris_gdbarch_init): Clear deprecated store_return_value,
11113 extract_return_value.
11114
49b0b195
JB
111152004-03-02 Jim Blandy <jimb@redhat.com>
11116
11117 * stabsread.c (reg_value_complaint): The maximum register number
11118 is one less than the number of registers.
11119
e9ff708b
AC
111202004-03-02 Andrew Cagney <cagney@redhat.com>
11121
11122 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11123 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11124 trailing comma and redundant assignment of I386_ST0_REGNUM.
11125 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11126 32-bit segment registers.
11127
d4715e41
AC
111282004-03-01 Andrew Cagney <cagney@redhat.com>
11129
11130 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11131 use frame_relative_level and get_next_frame.
11132
3ce2bf18
AC
111332004-02-29 Andrew Cagney <cagney@redhat.com>
11134
11135 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11136 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11137 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11138 Delete macro.
11139
2da6aac3
DJ
111402004-02-29 Daniel Jacobowitz <drow@mvista.com>
11141
11142 * inflow.c (terminal_inferior): Don't give up the terminal if we
11143 previously couldn't get the inferior's terminal state.
11144
6ba34a8d
DJ
111452004-02-29 Daniel Jacobowitz <drow@mvista.com>
11146
11147 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11148 PC_REGNUM.
11149
faae5abe
AC
111502004-02-28 Andrew Cagney <cagney@redhat.com>
11151
11152 * NEWS: Refer to GDB 6.1.
11153 * README: Refer to GDB 6.1.
11154 * PROBLEMS: Refer to GDB 6.1.
11155
2227a3c5
DJ
111562004-02-28 Daniel Jacobowitz <drow@mvista.com>
11157
11158 * thread-db.c (disable_thread_signals): Remove unused function.
11159
80571bff
MK
111602004-02-28 Mark Kettenis <kettenis@gnu.org>
11161
041bd74b
MK
11162 * amd64-nat.c: Include "gdb_string.h".
11163 (amd64_collect_native_gregset): Zero-extend the 32-bit
11164 general-purpose registers and %eip.
11165
3c017e40
MK
11166 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11167 * amd64-tdep.c (amd64_collect_fxsave): New function.
11168 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11169
80571bff
MK
11170 * i387-tdep.h: Update copyright year.
11171 (i387_collect_fxsave): New prototype.
11172 * i387-tdep.c: Update copyright year.
11173 (i387_collect_fxsave): New function containing most of the code
11174 from i387_fill_fxsave.
11175 (i387_fill_fxsave): Call i387_collect_fxsave.
11176
50d71875
AC
111772004-02-28 Andrew Cagney <cagney@redhat.com>
11178
11179 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11180 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11181
4a28816e
MK
111822004-02-28 Mark Kettenis <kettenis@gnu.org>
11183
11184 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11185
dbda9972
AC
111862004-02-28 Andrew Cagney <cagney@redhat.com>
11187
11188 * utils.c: Use "", instead of <>, to include readline.
11189 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11190 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11191 * source.c, solib.c, exec.c, event-top.c: Ditto.
11192 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11193 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11194 * Makefile.in: Update all dependencies.
11195 (readline_tilde_h, readline_history_h): Define.
11196 (readline_headers): Delete.
11197
83277a99
MK
111982004-02-28 Mark Kettenis <kettenis@gnu.org>
11199
91ae4303
MK
11200 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11201 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11202 "config/i386/tm-lx64.h".
11203
83277a99
MK
11204 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11205 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11206 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11207
6e1d7d6c
AC
112082004-02-28 Andrew Cagney <cagney@redhat.com>
11209
ecc9ac84
AC
11210 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11211
6e1d7d6c
AC
11212 * breakpoint.c (_initialize_breakpoint): Use
11213 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11214 Add help to show command.
11215
9671aeef
MK
112162004-02-28 Mark Kettenis <kettenis@gnu.org>
11217
7fa2737c
MK
11218 * i386-nat.c: Reformat to be closer to coding standards.
11219 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11220 `retval'. Make variables `align' and `size' local to while-loop.
11221 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11222 (_initialize_i386_nat): New prototype.
11223
9671aeef
MK
11224 * tui/tui.c: Include <readline/readline.h> instead of
11225 "readline/readline.h". Include it after <term.h> and
11226 "gdb_curses.h".
11227
fca7aa43
AC
112282004-02-27 Andrew Cagney <cagney@redhat.com>
11229
412275d5
AC
11230 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11231 the new frame unwind code.
11232 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11233 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11234 PCOQ_HEAD_REGNUM.
11235
fca7aa43
AC
11236 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11237 "return_value" and "push_dummy_call".
11238 (hppa32_use_struct_convention): Delete unused function.
11239 (hppa32_store_return_value): Delete unused function.
11240 (hppa32_extract_return_value): Delete unused function.
11241 (hppa32_stack_align): Delete function.
11242
e6a8a7d2
EZ
112432004-02-27 Eli Zaretskii <eliz@elta.co.il>
11244
11245 * coffread.c (enter_linenos): Don't let rawptr reference memory
11246 outside linetab[]'s limits.
11247
1797a8f6
AC
112482004-02-27 Andrew Cagney <cagney@redhat.com>
11249
11250 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11251 inferior stack space - the stack needs to grow upwards.
11252 (hppa32_frame_align): New function.
11253 (hppa64_frame_align): Replace hppa_frame_align.
11254 (hppa_gdbarch_init): Update.
11255
2e4b5889
OF
112562004-02-26 Orjan Friberg <orjanf@axis.com>
11257
11258 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11259 (dwarf2-frame.h): Include.
11260 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11261 Remove static variables related to ABI setting.
11262 (struct gdbarch_tdep): Remove cris_abi member.
11263 (struct frame_extra_info): Remove.
11264 (cris_unwind_cache, stack_item): New structs.
11265 (cris_frame_unwind, cris_frame_base): New variables.
11266 (push_stack_item, pop_stack_item)
11267 (cris_frame_unwind_cache, cris_frame_this_id)
11268 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11269 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11270 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11271 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11272 (cris_reg_struct_has_addr): New functions.
11273 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 11274 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
11275 (cris_store_struct_return, cris_frameless_function_invocation)
11276 (cris_pop_frame, cris_skip_prologue_main)
11277 (cris_abi_original_store_return_value)
11278 (cris_abi_v2_store_return_value)
11279 (cris_abi_original_extract_return_value)
11280 (cris_abi_v2_extract_return_value)
11281 (cris_abi_original_reg_struct_has_addr)
11282 (cris_abi_v2_reg_struct_has_addr)
11283 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11284 (cris_push_return_address, cris_abi_update): Remove.
11285 (_initialize_cris_tdep): Remove ABI command.
11286 (cris_dump_tdep): Ditto.
8718a420 11287 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
11288 Set store_return_value, extract_return_value, push_dummy_code,
11289 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11290 frame_unwind_append_sniffer, frame_base_set_default.
11291 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11292 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11293 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 11294 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
11295 init_extra_frame_info, frameless_function_invocation, frame_chain,
11296 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11297 dummy_write_sp.
8718a420 11298
6b9acc27
JJ
112992004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11300
11301 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11302 * valprint.c (print_hex_chars): Change from static to external.
11303 (print_char_chars): New function.
11304 * printcmd.c (print_scalar_formatted): For integer and enum types
11305 that are longer than LONGEST, perform processing via appropriate
11306 print_*_chars routines.
11307
a431654a
AC
113082004-02-26 Andrew Cagney <cagney@redhat.com>
11309
11310 * Makefile.in: Update dependencies.
11311 Changes from Ulrich Weigand,
11312 * s390-tdep.c: Include "dwarf2-frame.h".
11313 (s390_dwarf2_frame_init_reg): New function.
11314 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11315 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11316
fa8d40ab
JJ
113172004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11318
11319 * breakpoint.c (pending_break_support): New setting variable.
11320 (break_command_1): Account for pending_break_support setting
11321 when creating pending breakpoints.
11322 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11323 (_initialize_breakpoint): Add "set breakpoint pending" and
11324 "show breakpoint pending" commands.
11325
0dcd613f
AC
113262004-02-26 Andrew Cagney <cagney@redhat.com>
11327
11328 Fix PR i18n/1570.
11329 * charset.c (backslashable, backslashed, represented): Remove 'e'
11330 from list of escaped characters, not part of ISO-C.
11331
479272a3
JB
113322004-02-25 J. Brobecker <brobecker@gnat.com>
11333
11334 From Peter Schauer <schauer@pdf.de>:
11335 * tui/tui.c: Move system header includes after local includes.
11336 Fixes a build failure on solaris systems.
11337
7613d933
JB
113382004-02-25 J. Brobecker <brobecker@gnat.com>
11339
11340 * configure.in: Refine the previous change.
11341 * configure: Regenerate.
11342
9c1488cb
MK
113432004-02-25 Mark Kettenis <kettenis@gnu.org>
11344
11345 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11346 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11347 "amd64-tdep.h" instead of "x86-64-tdep.h".
11348 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11349 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11350 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11351 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11352 and "x86-64-tdep.c".
11353 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11354 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11355 and "x86-64-tdep.c".
11356 * amd64bsd-nat.c: Update copyright year.
11357 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11358 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11359 "x86-64-tdep.h".
11360 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11361 "x86-64-tdep.h".
11362 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11363 "x86-64-tdep.h".
11364 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11365 "x86-64-tdep.h".
11366 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11367 "x86-64-tdep.h".
11368 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11369 "x86-64-tdep.h".
8718a420 11370 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
11371 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11372 * Makefile.in (amd64_linux_tdep_h): Renamed from
11373 x86_64_linux_tdep_h.
11374 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11375 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11376 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11377 (amd64obsd-tdep.o): Update dependencies.
11378 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11379 dependencies.
11380 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11381 dependencies.
11382 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11383 amd64-linux-nat.c amd64-linux-tdep.c.
11384 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11385 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11386 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11387 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11388 amd64-tdep.o and amd64-linux-tdep.o.
11389 (TM_FILE): Set to tm-linux64.h.
11390 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11391 (NAT_FILE): Set to nm-linux64.h.
11392 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11393 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11394 amd64-tdep.o.
11395 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11396 amd64-tdep.o.
11397 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11398 amd64-tdep.o.
11399
4b8dad4a
RM
114002004-02-25 Roland McGrath <roland@redhat.com>
11401
11402 * remote.c (remote_protocol_qPart_auxv): New variable.
11403 (init_all_packet_configs): Initialize it.
11404 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11405 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11406 (show_remote_cmd): Call it.
11407 (_initialize_remote): Initialize commands.
11408 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11409 service TARGET_OBJECT_AUXV requests.
11410
66745969
JB
114112004-02-25 J. Brobecker <brobecker@gnat.com>
11412
11413 * configure.in: Make sure that the wborder function is available.
11414 Otherwise, search for it in the cur_colr library.
11415 * configure: Regenerate.
11416
79508e1e
AC
114172004-02-25 Andrew Cagney <cagney@redhat.com>
11418
11419 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11420
571ee600
MK
114212004-02-25 Mark Kettenis <kettenis@gnu.org>
11422
11423 * config/i386/tm-x86-64linux.h: Tweak comments.
11424
2b1b322f 114252004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
11426
11427 * MAINTAINERS: Add self to write-after-approval list.
11428
4d2acc65
AC
114292004-02-25 Andrew Cagney <cagney@redhat.com>
11430
4b8dad4a 11431 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
11432 * cli/cli-script.c (execute_control_command): Unconditionally
11433 install a cleanup. Default "ret" to "invalid_control". Use
11434 "break" instead of "return" to escape from the switch.
11435
4cfcaf21
JB
114362004-02-24 J. Brobecker <brobecker@gnat.com>
11437
11438 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11439 with the lines macro defined in term.h on AiX.
11440 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11441 a collision with the label_width macro defined in term.h on AiX.
11442
54a5c8d8
KB
114432004-02-23 David Mosberger <davidm@hpl.hp.com>
11444
11445 Committed by Kevin Buettner <kevinb@redhat.com>.
11446
11447 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11448 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11449 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11450 instead of ia64_write_pc().
11451 * ia64-linux-tdep.c (regcache.h): Include.
11452 (ia64_linux_write_pc): New function.
4b8dad4a 11453
8a1dac83
RM
114542004-02-23 Roland McGrath <roland@redhat.com>
11455
11456 * auxv.c (info_auxv_command): Fix typos in error messages.
11457
90f90721
MK
114582004-02-23 Mark Kettenis <kettenis@gnu.org>
11459
8a1dac83 11460 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11461 (enum amd64_regnum): New.
11462 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11463 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11464 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11465 (X86_64_XMM1_REGNUM): Removed.
11466 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11467 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11468 prototypes for renamed functions.
11469 * x86-64-tdep.c: Fix typo.
11470 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11471 register numbers.
11472 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11473 Use constants from `enum amd64_regnum' for register numbers.
11474 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11475 (amd64_analyze_prologue, amd64_frame_cache,
11476 amd64_sigtramp_frame_cache): Use constants from `enum
11477 amd64_regnum' for register numbers.
11478 (amd64_supply_fpregset): Adjust for renamed functions.
11479 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11480 `enum amd64_regnum' for register numbers.
11481 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11482 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11483 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11484 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11485 (amd64_linux_fill_gregset): Adjust for renamed macros.
11486 (fetch_core_registers): Adjust for renamed functions.
11487 (amd64_linux_init_abi): Adjust for renamed functions.
11488 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11489 renamed functions.
11490 * amd64-nat.c: Adjust for renamed macros.
11491 * amd64bsd-nat.c (fetch_inferior_registers)
11492 (store_inferior_registers): Use constants from `enum amd64_regnum'
11493 for register numbers. Adjust for renamed variables.
11494 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11495 renamed variables.
11496 (_initialize_amd64fbsd_nat): Use constants from `enum
11497 amd64_regnum' for register numbers.
11498 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11499 `enum amd64_regnum' for register numbers.
11500 (amd64fbsd_init_abi): Adjust for renamed functions.
11501 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11502 `enum amd64_regnum' for register numbers.
11503 (amd64nbsd_init_abi): Adjust for renamed functions.
11504 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11505 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11506 `enum amd64_regnum' for register numbers.
11507 (amd64obsd_init_abi): Adjust for renamed functions.
11508 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11509
d5479188
JJ
115102004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11511
11512 * breakpoint.c (print_one_breakpoint): Do not output spaces
11513 after printing <PENDING> for a pending breakpoint.
11514
81cb7cc9
JJ
115152004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11516
11517 * printcmd.c (print_scalar_formatted): Initialize val_long
11518 to remove compiler warning message.
11519
cbdeadca
JJ
115202004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11521
11522 * defs.h (nquery, yquery): New prototypes.
11523 * breakpoint.c (break_command_1): Use new nquery interface.
11524 * utils.c (defaulted_query, nquery, yquery): New functions.
11525
da6bab63
AC
115262004-02-23 Andrew Cagney <cagney@redhat.com>
11527
2f690297
AC
11528 * hppa-tdep.c (hppa_frame_align): New function.
11529 (hppa32_push_dummy_call): New function.
11530 (hppa64_push_dummy_call): New function.
11531 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11532 disabled.
8a1dac83 11533
da6bab63
AC
11534 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11535 FIX_CALL_DUMMY when push_dummy_call is available.
11536 (call_function_by_hand, push_dummy_code): Ditto.
11537
abf9b42d
AC
115382004-02-22 Andrew Cagney <cagney@redhat.com>
11539
11540 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11541 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11542 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11543 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11544 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11545 call_dummy_location to ON_STACK.
11546
10fc94a4
MK
115472004-02-22 Mark Kettenis <kettenis@gnu.org>
11548
51433e4b
MK
11549 * x86-64-linux-tdep.c: Tweak comment.
11550 (amd64_linux_supply_gregset): Renamed from
11551 x86_64_linux_supply_gresget.
11552 (amd64_linux_fill_gregset): Renamed from
11553 x86_64_linux_fill_gregset.
11554 (fetch_core_registers): Adjust for renamed functions.
11555 (amd64_core_fns): Renamed from x86_64_core_fns.
11556 (amd64_linux_sigtramp_start): Renamed from
11557 x86_64_linux_sigtramp_start.
11558 (amd64_linux_pc_in_sigtramp): Renamed from
11559 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11560 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11561 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11562 (amd64_linux_sigcontext_addr): Renamed from
11563 x86_64_linux_sigcontext_addr.
11564 (amd64_linux_sc_reg_offset): Renamed from
11565 x86_64_linux_sc_reg_offset.
11566 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11567 Adjust for renamed functions and variables.
11568 (_initialize_amd64_linux_tdep): Renamed from
11569 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11570 variables.
11571 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11572 Adjust for renamed functions.
11573
430eaf2e
MK
11574 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11575 from x86_64_linux_gregset64_reg_offset.
11576 (amd64_linux_gregset32_reg_offset): Rename from
11577 x86_64_linux_gregset64_reg_offset.
11578 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11579 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11580 (amd64_linux_dr_set_control): Renamed from
11581 x86_64_linux_dr_set_control. Adjust for renamed functions.
11582 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11583 Adjust for renamed functions.
11584 (amd64_linux_dr_reset_addr): Renamed from
11585 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11586 (amd64_linux_dr_get_status): Renamed from
11587 x86_64_linux_dr_get_status. Adjust for renamed functions.
11588 (_initialize_amd64_linux_nat): Renamed from
11589 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11590 functions.
11591 * config/i386/nm-x86-64linux.h: Update copyright year.
11592 Adjust for renamed functions.
11593
10fc94a4
MK
11594 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11595 amd64fbsd_sigtramp_start.
11596 (amd64fbsd_sigtramp_end_addr): Renamed from
11597 amd64fbsd_sigtramp_end.
11598 (amd64fbsd_init_abi): Adjust for renamed variables.
11599 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11600 variables.
11601 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11602 amd64fbsd_sigtramp_start.
11603 (amd64fbsd_sigtramp_end_addr): Renamed from
11604 amd64fbsd_sigtramp_end.
11605
343af405
AC
116062004-02-22 Andrew Cagney <cagney@redhat.com>
11607
537987fc
AC
11608 * hppa-tdep.c (hppa32_return_value): New function.
11609 (hppa64_return_value): New function.
11610 (hppa_gdbarch_init): Set return_value; keep disabled.
11611
fad850b2
AC
11612 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11613 struct-return and inferior function call methods.
11614
26d08f08
AC
11615 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11616 "frame-base.h".
11617 (struct hppa_frame_cache): Define.
11618 (hppa_frame_cache, hppa_frame_this_id): New functions.
11619 (hppa_frame_prev_register): New function.
11620 (hppa_frame_unwind, hppa_frame_base): New variables.
11621 (hppa_frame_unwind_sniffer): New function.
11622 (hppa_frame_base_address, hppa_unwind_pc): New function.
11623 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11624 sniffer, and frame base sniffer; keep disabled.
11625 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11626 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11627
e7d7bd65
AC
11628 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11629 to predicates for "seriously old code".
11630
e963316f
AC
11631 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11632 runtime if(0).
11633
56132691
AC
11634 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11635 unsigned.
11636 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11637
343af405
AC
11638 * config/pa/tm-hppa.h: Update copyright.
11639 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11640 (deprecated_init_frame_pc_default): Delete declaration.
11641 (hppa_frame_init_saved_regs): Delete declaration.
11642 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11643 * hppa-tdep.c: Include "arch-utils.h".
11644 (hppa_gdbarch_init): Set deprecated init_frame_pc
11645 and deprecated frame_init_saved_regs.
11646 (hppa_frame_init_saved_regs): Make static.
11647
f5859b4d
MK
116482004-02-22 Mark Kettenis <kettenis@gnu.org>
11649
86f6f8e7 11650 Remove old 386BSD support.
cf7c5c23 11651 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11652 * configure.host: Remove i[34567]86-*-bsd*.
11653 * configure.tgt: Remove i[34567]86-*-bsd*.
11654 * i386b-nat.c: Removed.
11655 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11656 (i386b-nat.o): Remove dependencies.
11657
86f6f8e7
MK
11658 * config/i386/i386bsd.mh: Removed.
11659 * config/i386/i386bsd.mt: Removed.
11660 * config/i386/nm-i386bsd.h: Removed.
11661 * config/i386/tm-i386bsd.h: Removed.
11662 * config/i386/xm-i386bsd.h: Removed.
11663
971218cd
MK
11664 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11665
7e654c37
MK
11666 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11667 (amd64fbsd_init_abi): Set link map offsets.
11668 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11669 (amd64nbsd_init_abi): Set link map offsets.
11670 * amd64obsd-tdep.c: Include "solib-svr4.h".
11671 (amd64obsd_init_abi): Set link map offsets.
11672 * i386fbsd-tdep.c: Include "solib-svr4.h".
11673 (i386fbsd_init_abi): Set link map offsets.
11674 * i386nbsd-tdep.c: Include "solib-svr4.h".
11675 (i386nbsdelf_init_abi): Set link map offsets.
11676 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11677 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11678 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11679 solib-legacy.o and core-aout.o. Reformat.
11680 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11681 solib-svr4.o, solib-legacy.o. Reformat.
11682 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11683 * config/i386/nbsdelf.mh: Reformat.
11684 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11685 solib-svr4.o, solib-legacy.o and corelow.o.
11686 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11687 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11688 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11689 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11690 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11691 (TM_FILE): Set to tm-fbsd.h.
11692 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11693 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11694 solib-svr4.o.
11695 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11696 solib-svr4.o.
11697 (TM_FILE): Set to nm-nbsd.h.
11698 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11699 Simplify shared library support. Don't include "elf/common.h".
11700 (SVR4_SHARED_LIBS): Don't define.
11701 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11702 "solib.h".
11703 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11704 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11705 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11706 Don't include "i386/tm-i386.h". Include "solib.h".
11707 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11708 Don't include "i386/tm-i386.h".
11709 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11710 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11711 Include "i386/xm-i386.h".
11712 (HOST_LONG_DOUBLE_FORMAT): Remove.
11713
5d93ae8c
MK
11714 Fix OpenBSD/i386 sigtramp recognition.
11715 * i386-tdep.h: Update copyright year.
11716 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11717 (i386bsd_sigtramp_end): New prototypes.
11718 (i386fbsd_sigtramp_start_addr): Renamed from
11719 i386fbsd_sigtramp_start.
11720 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11721 (i386obsd_sigtramp_start_addr): Renamed from
11722 i386obsd_sigtramp_start.
11723 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11724 * i386bsd-tdep.c: Update copyright year.
11725 (i386bsd_pc_in_sigtramp): Make public.
11726 * i386fbsd-nat.c: Update copyright year.
11727 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11728 * i386fbsd-tdep.c: Update copyright year.
11729 (i386fbsd_sigtramp_start_addr): Renamed from
11730 i386fbsd_sigtramp_start.
11731 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11732 (i386fbsdaout_init_abi): Adjust for renamed variables.
11733 * i386obsd-nat.c: Update copyright year.
11734 (_initialize_i386obsd_nat): Adjust for renamed variables.
11735 * i386obsd-tdep.c: Include "target.h".
11736 (i386obsd_page_size): New variable.
11737 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11738 (i386obsd_sigtramp_end): New functions.
11739 (i386obsd_sigtramp_start_addr): Renamed from
11740 i386obsd_sigtramp_start.
11741 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11742 (i386obsd_init_abi): Adjust for renamed variables. Set
11743 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11744 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11745
84d04465
MK
11746 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11747 trampoline change in OpenBSD kernel.
11748
b053aceb
MK
11749 * amd64-nat.c: Update copyright year.
11750 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11751 architecture from REGCACHE.
11752
f5859b4d
MK
11753 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11754 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11755
e4bbbda8
MK
117562004-02-21 Mark Kettenis <kettenis@gnu.org>
11757
ba361932
MK
11758 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11759 i[34567]86-*-openbsd3.[0-3].
11760 * config/i386/obsdaout.mh: New file.
11761
d3e48264
MK
11762 * config/i386/obsd.mh (MH_FLAGS): Remove.
11763
60a6eeb6
MK
11764 Fix PR build/1549.
11765 * i386obsd-tdep.c: Update copyright years. Include
11766 "solib-svr4.h".
11767 (i386obsd_init_abi): Don't set regset_from_core_section here.
11768 (i386obsd_aout_init_abi): New function. Set
11769 regset_from_core_section here.
11770 (i386obsd_elf_init_abi): New function.
11771 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11772 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11773 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11774 (TM_FILE): Set to tm-nbsd.h.
11775
11776 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11777 solib-sunos.o.
11778
e4bbbda8
MK
11779 * solib-svr4.h: Update copyright year.
11780 (svr4_ilp32_fetch_link_map_offsets)
11781 (svr4_lp64_fetch_link_map_offsets): New prototype.
11782 * solib-svr4.c: Update copyright year.
11783 (svr4_ilp32_fetch_link_map_offsets)
11784 (svr4_lp64_fetch_link_map_offsets): New function.
11785
f6fe98ef
DJ
117862004-02-20 Daniel Jacobowitz <drow@mvista.com>
11787
11788 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11789 to the partial symbol table.
11790
589ca796
JB
117912004-02-20 J. brobecker <brobecker@gnat.com>
11792
11793 * PROBLEMS: Add description of problem documented under gdb/1560.
11794
2031c21a
MK
117952004-02-20 Mark Kettenis <kettenis@gnu.org>
11796
30b344b1
MK
11797 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11798 comments.
11799 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11800 functions.
11801 (amd64obsd_init_abi): Reorder initializations. Use
11802 amd64obsd_r_reg_offset to initialize the general-purpose register
11803 set details. Set regset_from_core_section.
11804 (_initialize_amd64obsd_tdep): Rename from
11805 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11806 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11807 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11808
2031c21a
MK
11809 * NEWS (New native configurations): Mention OpenBSD/alpha.
11810 * configure.tgt: Add alpha*-*-openbsd*.
11811 * configure.host: Add alpha*-*-openbsd*.
11812 * alphanbsd-tdep.c: Update copyright year.
11813 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11814
42471775
AC
118152004-02-20 Andrew Cagney <cagney@redhat.com>
11816
11817 Fix PR tdep/1372.
11818 * configure.tgt: Delete target "none-*-*".
11819 * configure.host: Delete host "none-*-*".
11820 * config/none/none.mh: Delete file.
11821 * config/none/none.mt: Delete file.
11822 * config/none/xm-none.h: Delete file.
11823 * config/none/tm-none.h: Delete file.
11824 * config/none/nm-none.h: Delete file.
11825
960ccd7d
FF
118262004-02-19 Fred Fish <fnf@redhat.com>
11827
11828 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11829 cache->uses_fp prior to setting it.
11830
5f883edd
FF
118312004-02-19 Fred Fish <fnf@redhat.com>
11832
11833 Fix for PR breakpoint/1558.
11834 * sh-tdep.c (IS_JSR): New macro.
11835 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11836
f98c22d5
JB
118372004-02-19 Jim Blandy <jimb@redhat.com>
11838
11839 * findvar.c (value_from_register): Doc fix.
11840
95051d27
JJ
118412004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11842
11843 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11844 type being greater than sizeof of host's LONGEST. Always use
11845 unpack_long() unless format 'f' chosen.
11846
ccefbec3
EZ
118472004-02-19 Joel Brobecker <brobecker@gnat.com>
11848
11849 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11850
ccefbec3
EZ
11851 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11852 contains a symbol wich is the best, non-exact match for the given
11853 pc. Update comments.
11854
118552004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11856
2ede629f
EZ
11857 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11858 macro, which was part of the now removed Mach 3 port.
11859 * utils.c (request_quit): Ditto.
11860
567ee972
MK
118612004-02-18 Mark Kettenis <kettenis@gnu.org>
11862
11863 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11864 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11865
50cca7bb
MK
118662004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11867
11868 Committed by Mark Kettenis <kettenis@gnu.org>.
11869
11870 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11871 Define.
11872
226361c4
AC
118732004-02-18 Andrew Cagney <cagney@redhat.com>
11874
11875 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11876 CONFIG_INSTALL and CONFIG_UNINSTALL.
11877 * configure: Re-generate.
11878 * interps.h (INTERP_TUI): Define.
11879 * Makefile.in: Update dependencies.
11880 (TUI): New macro.
11881 (tui-main.o): Specify dependencies.
11882 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11883 * tui/tui-main.c: New file.
11884
49cfa46f
MK
118852004-02-18 Mark Kettenis <kettenis@gnu.org>
11886
e2879ccb
MK
11887 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11888 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11889 dependencies.
11890 * configure.host: Add x86_64-*-openbsd*.
11891 * configure.tgt: Add x86_64-*-openbsd*.
11892 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11893
c43f4bec
MK
11894 * tui/tui.c: Don't include <malloc.h>.
11895
09ae75b6
MK
11896 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11897 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11898 amd64nbsd-tdep.c.
11899
49cfa46f 11900 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11901 static. Remove extraneous whitespace.
49cfa46f
MK
11902 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11903 static.
11904
05957fdb
JB
119052004-02-17 Jim Blandy <jimb@redhat.com>
11906
11907 * findvar.c (value_from_register): Doc fix.
11908
d0f54f9d
JB
119092004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11910
11911 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11912
8a1dac83 11913 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11914 CORE_ADDR as type for selectors. Correct types for GNU run time
11915 message lookup function to use double indirection.
11916 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11917 * objc-lang.h (lookup_child_selector): Adapt prototype.
11918
9cbd5950
JB
11919 * s390-nat.c (SUBOFF): New macro.
11920 (supply_gregset, fill_gregset): Use it to handle debugging
11921 of 32-bit exectuables running under a 64-bit kernel.
11922 * s390-tdep.c: Include "solib-svr4.h".
11923 (s390_svr4_fetch_link_map_offset): New function.
11924 (s390x_svr_fetch_link_map_offset): Likewise.
11925 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11926 * Makefile.in (s390-tdep.o): Update dependencies.
11927
a8c99f38
JB
11928 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11929 "frame-unwind.h".
11930 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11931 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11932 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11933 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11934 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11935 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11936 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11937 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11938 (struct frame_extra_info): Remove.
11939 (s390_memset_extra_info): Remove.
f73b1eff
JB
11940 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11941 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11942 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11943 (is_rse): Renamed to ...
11944 (is_rsy): ... this. Support long displacements.
11945 (is_rxe): Renamed to ...
11946 (is_rxy): ... this. Support long displacements.
11947 (compute_x_addr): Support long displacements.
11948 (struct s390_prologue_data): New data type.
11949 (s390_on_stack): Change API to use struct s390_prologue_data.
11950 (s390_store): Reimplement.
11951 (s390_load): New function.
11952 (s390_get_signal_frame_info): Remove.
11953 (s390_get_frame_info): Remove, replace by ...
11954 (s390_analyze_prolog): ... this new function.
11955 (s390_check_function_end): Remove.
11956 (s390_function_start): Remove.
11957 (s390_frameless_function_invokation): Remove.
11958 (s390_is_sigreturn): Remove.
11959 (s390_init_frame_pc_first): Remove.
11960 (s390_init_frame_extra_info): Remove.
11961 (s390_frame_init_saved_regs): Remove.
11962 (s390_frame_saved_pc_nofix): Remove.
11963 (s390_frame_saved_pc): Remove.
11964 (s390_frame_chain): Remove.
11965 (s390_fp_regnum, s390_read_fp): Remove.
11966 (s390_pop_frame_regular, s390_pop_frame): Remove.
11967 (s390_saved_pc_after_call): Remove.
11968 (s390_skip_prologue): Reimplement.
11969 (s390_in_function_epilogue_p): Support long displacements.
11970 (struct s390_unwind_cache): New data structure.
11971 (s390_frame_unwind_cache): New function.
11972 (s390_prologue_frame_unwind_cache): Likewise.
11973 (s390_backchain_frame_unwind_cache): Likewise.
11974 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11975 (s390_frame_unwind): Define.
11976 (s390_frame_sniffer): New function.
11977 (struct s390_pltstub_unwind_cache): New data structure.
11978 (s390_pltstub_frame_unwind_cache): New function.
11979 (s390_pltstub_frame_this_id): Likewise.
11980 (s390_pltstub_frame_prev_register): Likewise.
11981 (s390_pltstub_frame_unwind): Define.
11982 (s390_pltstub_frame_sniffer): New function.
11983 (struct s390_sigtramp_unwind_cache): New data structure.
11984 (s390_sigtramp_frame_unwind_cache): New function.
11985 (s390_sigtramp_frame_this_id): Likewise.
11986 (s390_sigtramp_frame_prev_register): Likewise.
11987 (s390_sigtramp_frame_unwind): Define.
11988 (s390_sigtramp_frame_sniffer): New function.
11989 (s390_frame_base_address, s390_local_base_address): New functions.
11990 (s390_frame_base): Define.
11991 (s390_unwind_pc, s390_unwind_sp): New function.
11992 (s390_push_dummy_call): Use new frame base location.
11993 (s390_unwind_dummy_id): Likewise.
11994 (s390_gdbarch_init): Remove calls to:
11995 set_gdbarch_frameless_function_invocation,
11996 set_gdbarch_deprecated_init_frame_pc,
11997 set_gdbarch_deprecated_frame_chain,
11998 set_gdbarch_deprecated_frame_init_saved_regs,
11999 set_gdbarch_deprecated_pop_frame,
12000 set_gdbarch_deprecated_init_extra_frame_info,
12001 set_gdbarch_deprecated_init_frame_pc_first,
12002 set_gdbarch_deprecated_target_read_fp,
12003 set_gdbarch_deprecated_frame_saved_pc,
12004 set_gdbarch_deprecated_saved_pc_after_call,
12005 set_gdbarch_deprecated_fp_regnum.
12006 Add calls to:
12007 set_gdbarch_in_solib_call_trampoline,
12008 frame_unwind_append_sniffer,
12009 frame_base_set_default,
12010 set_gdbarch_unwind_pc,
12011 set_gdbarch_unwind_sp.
12012 * Makefile.in (s390-tdep.o): Update dependencies.
12013
b0cf273e
JB
12014 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12015 (S390_STACK_FRAME_OVERHEAD): Remove.
12016 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12017 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12018 (s390_promote_integer_argument): Remove.
12019 (s390_cannot_extract_struct_value_address): Remove.
12020 (s390_use_struct_convention, s390_store_struct_return): Remove.
12021 (s390_extract_return_value, s390_store_return_value): Remove.
12022 (s390_return_value_convention, s390_return_value): New functions.
12023 (is_float_singleton): Handle typedefs.
8a1dac83 12024 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
12025 Remove, replace by ...
12026 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12027 s390_function_arg_integer): ... these new functions.
12028 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12029 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12030 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12031 Fill in tdep->abi.
12032 Remove calls to:
12033 set_gdbarch_deprecated_store_struct_return,
12034 set_gdbarch_deprecated_extract_return_value,
12035 set_gdbarch_deprecated_store_return_value,
12036 set_gdbarch_use_struct_convention,
12037 set_gdbarch_extract_struct_value_address,
12038 set_gdbarch_deprecated_pc_in_call_dummy,
12039 set_gdbarch_deprecated_push_arguments,
12040 set_gdbarch_deprecated_save_dummy_frame_tos,
12041 set_gdbarch_deprecated_push_return_address,
12042 set_gdbarch_deprecated_sizeof_call_dummy_words,
12043 set_gdbarch_deprecated_call_dummy_words,
12044 set_gdbarch_deprecated_dummy_write_sp.
12045 Add calls to:
12046 set_gdbarch_push_dummy_call,
12047 set_gdbarch_unwind_dummy_id,
12048 set_gdbarch_return_value.
8a1dac83 12049
e1457d83
JB
12050 * config/s390/nm-linux.h: Update comments.
12051 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12052 (STOPPED_BY_WATCHPOINT): Redefine.
12053 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12054 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12055 (s390_stopped_by_watchpoint): Likewise.
12056 (watch_area_cnt): Remove.
12057 * s390-nat.c: Update comments.
12058 (watch_area): Remove typedef.
12059 Global replace watch_area by struct watch_area.
12060 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 12061 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
12062 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12063 (s390_fix_watch_points): Remove pid argument,
12064 use s390_inferior_tid. Recompute area spanned by watchpoints.
12065 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12066 argument. Reimplement.
12067
d0f54f9d
JB
12068 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12069 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12070 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 12071 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
12072 core-regset.o.
12073 * config/s390/s390x.mt: Remove.
12074 * config/s390/tm-s390.h: Remove.
12075 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12076 (TARGET_ELF64): Remove.
12077 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12078 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12079 s390*-*-* case; always set gdb_target to s390.
12080 * regformats/reg-s390.dat: Remove control registers.
12081 * regformats/reg-s390x.dat: Likewise.
12082 * s390-tdep.h: New file.
8a1dac83 12083 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
12084 Include "inferior.h" and "s390-tdep.h".
12085 Remove private definition of offsetof.
12086 (s390_register_u_addr): Remove.
12087 (regmap_gregset, regmap_fpregset): Define.
12088 (supply_gregset, fill_gregset): Reimplement.
12089 (supply_fpregset, fill_fpregset): Likewise.
12090 (s390_inferior_tid): New function.
12091 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12092 (fetch_inferior_registers, store_inferior_registers): Likewise.
12093 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12094 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12095 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12096 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12097 (struct gdbarch_tdep): Define.
12098 (struct s390_register_info): Define.
12099 (s390_register_info): New variable.
12100 (s390_register_name): Reimplement.
12101 (s390_register_type): New function.
12102 (s390_register_raw_size, s390x_register_raw_size): Remove.
12103 (s390_cannot_fetch_register): Remove.
12104 (s390_register_byte): Remove.
12105 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12106 (s390_dwarf_regmap): New variable.
12107 (s390_dwarf_reg_to_regnum): New function.
12108 (s390_stab_reg_to_regnum): Remove.
12109 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12110 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12111 (s390_convert_register_p): Likewise.
12112 (s390_register_to_value, s390_value_to_register): Likewise.
12113 (s390_register_reggroup_p): Likewise.
12114 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12115 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12116 (s390_supply_regset, s390_regset_from_core_section): New functions.
12117 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12118 (S390_FPR_SIZE): Likewise.
12119 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12120 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12121 (S390_NUM_GPRS): Move here from tm-s390.h.
12122 (S390_NUM_FPRS): Likewise.
12123 (s390_in_function_epilogue_p): New function.
12124 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12125 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12126 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12127 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12128 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12129 Remove calls to:
12130 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
12131 set_gdbarch_deprecated_max_register_virtual_size,
12132 set_gdbarch_deprecated_register_byte,
d0f54f9d 12133 set_gdbarch_cannot_fetch_register,
8a1dac83 12134 set_gdbarch_cannot_store_register,
d0f54f9d
JB
12135 set_gdbarch_deprecated_register_size,
12136 set_gdbarch_deprecated_register_raw_size,
12137 set_gdbarch_deprecated_register_virtual_size,
12138 set_gdbarch_deprecated_register_virtual_type,
12139 set_gdbarch_deprecated_register_bytes.
12140 Add calls to:
12141 set_gdbarch_num_pseudo_regs,
12142 set_gdbarch_register_type,
12143 set_gdbarch_convert_register_p,
12144 set_gdbarch_register_to_value,
12145 set_gdbarch_value_to_register,
12146 set_gdbarch_register_reggroup_p,
12147 set_gdbarch_regset_from_core_section,
12148 set_gdbarch_pseudo_register_read,
12149 set_gdbarch_pseudo_register_write,
12150 set_gdbarch_in_function_epilogue_p.
12151 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12152 (s390_tdep_h): New variable.
12153
8cfe231d
JB
121542004-02-17 Jim Blandy <jimb@redhat.com>
12155
4589a601
JB
12156 * findvar.c (value_from_register): If the type has no length, just
12157 return an acceptable value --- don't report an internal error.
12158
8cfe231d
JB
12159 * stabsread.c (read_type): If we find any type numbers that are
12160 forward references, complain if the references aren't resolved by
12161 the time we're finished reading.
12162 (cleanup_undefined_types): Make error message more appropriate for
12163 a complaint.
12164
5bf0017e
EZ
121652004-02-17 Elena Zannoni <ezannoni@redhat.com>
12166
9d62932d
EZ
12167 * Makefile.in (defs_h): Remove dependency on progress_h.
12168 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12169 progress.h.
12170 * main.c (captured_main): Delete use of START_PROGRESS and
12171 END_PROGRESS.
12172
121732004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 12174
5bf0017e
EZ
12175 * objfiles.c (terminate_minimal_symbol_table): Add back
12176 initialization of MSYMBOL_TYPE.
12177
9fc9f5e2
AC
121782004-02-17 David Mosberger <davidm@hpl.hp.com>
12179
12180 Committed by Andrew Cagney.
12181 * Makefile.in (ia64_tdep_h): New macro.
12182 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12183 (ia64-tdep.o): Likewise.
12184 * ia64-tdep.h: New file.
12185 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12186 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12187 (ia64_aix_sigcontext_register_address): Likewise.
12188 (ia64_linux_getunwind_table): Delete declaration.
12189 * ia64-linux-tdep.c: Likewise.
12190
76cd2bd9
CV
121912004-02-17 Corinna Vinschen <vinschen@redhat.com>
12192
12193 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12194 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12195 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12196
634aa483
AC
121972004-02-17 Andrew Cagney <cagney@redhat.com>
12198
12199 * symtab.c (skip_prologue_using_sal): New function.
12200 * symtab.h (skip_prologue_using_sal): Declare.
12201 * frv-tdep.c: Include "symtab.h".
12202 (skip_prologue_using_sal): Delete function.
12203 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12204 * rs6000-tdep.c (refine_prologue_limit): Mention
12205 skip_prologue_using_sal.
12206 * ia64-tdep.c (refine_prologue_limit): Ditto.
12207 * Makefile.in: Update dependencies.
12208
122092004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 12210
39ce7b3f
AC
12211 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12212 START_INFERIOR_TRAPS_EXPECTED.
12213 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12214 START_INFERIOR_TRAPS_EXPECTED.
12215 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12216 Delete macro.
12217 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12218 macro, moved to "nm-osf.h". Update copyright.
12219 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12220 update copyright.
12221
19772a2c
AC
12222 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12223 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12224 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12225 frameless_look_for_prologue.
12226 * frame.h (legacy_frameless_look_for_prologue): Rename
12227 frameless_look_for_prologue.
12228 * gdbarch.h, gdbarch.c: Re-generate.
12229 * sh64-tdep.c (sh64_gdbarch_init): Update.
12230 * sh-tdep.c (sh_gdbarch_init): Update.
12231 * s390-tdep.c (s390_gdbarch_init): Update.
12232 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12233 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12234 * m68k-tdep.c (m68k_gdbarch_init): Update.
12235 (delta68_frame_args_address): Update.
12236 * m32r-tdep.c (m32r_gdbarch_init): Update.
12237 * hppa-tdep.c (hppa_gdbarch_init): Update.
12238 * h8300-tdep.c (h8300_gdbarch_init): Update.
12239 * frv-tdep.c (frv_gdbarch_init): Update.
12240 (frv_frameless_function_invocation): Update.
12241 * cris-tdep.c (cris_gdbarch_init): Update.
12242 (cris_frameless_function_invocation): Update.
12243 * avr-tdep.c (avr_gdbarch_init): Update.
12244 * arm-tdep.c (arm_gdbarch_init): Update.
12245 * stack.c (frame_info): Update, call predicate.
12246 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12247 * frame.c (legacy_get_prev_frame): Update, call predicate..
12248 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12249 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12250 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12251 invocation.
12252 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12253 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12254 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
12255
12256 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12257 function.
12258
7dcaac91
DJ
122592004-02-16 Daniel Jacobowitz <drow@mvista.com>
12260
12261 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12262 initializations.
12263
88289b6e
AC
122642004-02-16 Andrew Cagney <cagney@redhat.com>
12265
12266 * tui/tui-windata.c: Include "gdb_string.h".
12267 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12268 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12269 * Makefile.in: Update dependencies.
12270
9f976b41
DJ
122712004-02-16 Daniel Jacobowitz <drow@mvista.com>
12272
12273 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12274 * infrun.c: Include "gdb_assert.h".
12275 (singlestep_ptid, saved_singlestep_ptid)
12276 (stepping_past_singlestep_breakpoint): New variables.
12277 (resume): Set singlestep_ptid. Check for singlestep thread
12278 hop.
12279 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12280 (handle_inferior_event): Handle singlestep thread hop.
12281
c324d747
AC
122822004-02-16 Andrew Cagney <cagney@redhat.com>
12283
f090b9b1
AC
12284 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12285 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12286 (dwarf2_frame_init_reg): Ditto.
12287
fd33e6cb
AC
12288 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12289 suggested by Joshua Neuheisel
12290
c324d747
AC
12291 * configure.in: Always check for curses, including pdcurses.
12292 Warn, instead of error, when no curses are found. Enable TUI when
12293 curses is available.
12294 * configure: Re-generate.
12295
b66ba949
CV
122962004-02-16 Corinna Vinschen <vinschen@redhat.com>
12297
12298 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12299 sh_sh4_register_convert_to_virtual.
12300 (sh_register_convert_to_raw): Rename from
12301 sh_sh4_register_convert_to_raw.
12302 (sh_pseudo_register_read): Accomodate above name change.
12303 (sh_pseudo_register_write): Ditto.
12304
b58cbbf2
CV
123052004-02-16 Corinna Vinschen <vinschen@redhat.com>
12306
12307 * sh-tdep.c (sh_generic_register_name): Remove.
12308 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12309
5929a910
AC
123102004-02-15 Andrew Cagney <cagney@redhat.com>
12311
4566dfcf
AC
12312 * configure.in (build_warnings): Add -Wunused-function.
12313 * configure: Re-generate.
12314
db11ed55
AC
12315 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12316 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12317
46ac7a5d
AC
12318 * procfs.c (procfs_init_inferior): Assume that
12319 START_INFERIOR_TRAPS_EXPECTED is defined.
12320 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12321 * config/ns32k/tm-nbsd.h: Delete file,
12322 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12323
ba801595
AC
12324 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12325 * config/vax/tm-vax.h: Delete file.
12326
5929a910
AC
12327 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12328 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12329 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12330 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12331 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12332 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12333 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12334
8f22cb90
MK
123352004-02-15 Mark Kettenis <kettenis@gnu.org>
12336
12337 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12338 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12339 (struct dwarf2_frame_ops): New.
12340 (dwarf2_frame_default_init_reg): New function, based on
12341 dwarf2_frame_init_reg.
12342 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12343 (dwarf2_frame_init_reg): Call architecture-specific function.
12344 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12345 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12346 instead of dwarf2_frame_data.
12347 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12348 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12349
8132723e
AC
123502004-02-15 Andrew Cagney <cagney@redhat.com>
12351
046a4708
AC
12352 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12353 register_gdbarch_swap.
12354 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12355 * f-lang.c (_initialize_f_language): Update, use
12356 DEPRECATED_REGISTER_GDBARCH_SWAP.
12357 * remote.c (_initialize_remote): Ditto.
12358 * regcache.c (_initialize_regcache): Ditto.
12359 * parse.c (_initialize_parse): Ditto.
12360 * infrun.c (_initialize_infrun): Ditto.
12361 * mi/mi-main.c (_initialize_mi_main): Ditto.
12362 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 12363
549c1eea
AC
12364 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12365 poking .cacheable directly.
12366 * symfile.c (symfile_bfd_open): Ditto.
12367
0c0b39de
AC
12368 * Makefile.in: Update all dependencies.
12369
8132723e
AC
12370 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12371 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12372 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12373 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12374 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 12375
b9d26eb9
AC
123762004-02-14 Andrew Cagney <cagney@redhat.com>
12377
8e1f669a
AC
12378 * arch-utils.c (legacy_convert_register_p): Check
12379 DEPRECATED_REGISTER_CONVERTIBLE_P.
12380 * findvar.c (value_of_register): Ditto.
12381
cd0bfa36
AC
12382 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12383 * gdbarch.h, gdbarch.c: Re-generate.
12384 * arch-utils.c (deprecated_register_convertible_not): Delete.
12385 * arch-utils.h (deprecated_register_convertible_not): Delete.
12386 * mi/mi-main.c (get_register): Update. Update copyright.
12387 * infcmd.c (default_print_registers_info): Update.
12388
b9d26eb9
AC
12389 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12390 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12391 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 12392 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
12393 * frame.c (deprecated_get_next_frame_hack): Delete function.
12394 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12395 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12396 Update.
12397 * infcall.c (call_function_by_hand): Update.
12398
9ab9195f
EZ
123992004-02-14 Elena Zannoni <ezannoni@redhat.com>
12400
12401 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 12402 from here...
9ab9195f
EZ
12403 * objfiles.c (init_entry_point_info, entry_point_address):..to
12404 here.
12405 * symfile.h (init_entry_point_info, entry_point_address): Remove
12406 prototypes.
12407 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 12408 prototypes.
9ab9195f
EZ
12409 * cris-tdep.c: Remove include of symfile.h. Add include of
12410 objfiles.h.
12411 * infcall.c: Ditto.
12412 * mcore-tdep.c: Ditto.
12413 * mn10300-tdep.c: Ditto.
12414 * sh64-tdep.c: Ditto.
12415 * v850-tdep.c: Ditto.
12416 * arm-tdep.c: Remove include of symfile.h.
12417 * blockframe.c: Ditto.
12418 * coffread.c: Ditto.
12419 * dbxread.c: Ditto.
12420 * dwarf2read.c: Ditto.
12421 * dwarfread.c: Ditto.
8a1dac83 12422 * frv-tdep.c: Ditto.
9ab9195f
EZ
12423 * ia64-tdep.c: Ditto.
12424 * mdebugread.c: Ditto.
12425 * mipsread.c: Ditto.
8a1dac83 12426 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
12427 * s390-tdep.c: Ditto.
12428 * sh-tdep.c: Ditto.
8a1dac83 12429 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
12430 * gdbarch.sh: Remove include of symfile.h.
12431 * gdbarch.c: Regenerate.
12432 * solib-irix.c (enable_break): Use entry_point_address().
12433 Add comment about include file.
12434 * xcoffread.c: Add comment about include file.
8a1dac83
RM
12435 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12436 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12437 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12438 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
12439 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12440
c4c5b7ba
AC
124412004-02-13 Andrew Cagney <cagney@redhat.com>
12442
12443 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12444 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12445 copyright.
12446 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12447
3e7879de
FF
124482004-02-12 Fred Fish <fnf@redhat.com>
12449
12450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12451 set_gdbarch_store_return_value.
12452
6a7760b6
AC
124532004-02-12 Andrew Cagney <cagney@redhat.com>
12454
12455 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12456 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12457 (interrupt_query): Ditto.
12458 (ofunc): Delete unused variable.
12459 * cris-tdep.c (cris_abi): Delete unused function.
12460 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12461 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12462 (cris_get_asr_quick_shift_steps): Ditto.
12463 (cris_skip_prologue_frameless_p): Ditto.
12464 * arm-tdep.c (arm_push_return_address): Delete unused function.
12465 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12466 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12467 * s390-tdep.c (s390_function_start): Delete unused function.
12468
31687c3c
AC
124692004-02-12 Andrew Cagney <cagney@redhat.com>
12470
12471 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12472 gdbarch.h, gdbarch.c: Re-generate.
12473 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12474 to generic_prologue_frameless_p.
12475 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12476 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12477
6de918a6
DJ
124782004-02-11 Daniel Jacobowitz <drow@mvista.com>
12479
12480 * mips-linux-tdep.c: Include "frame.h".
12481 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12482 (mips_linux_skip_resolver): New functions.
12483 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12484 and set_gdbarch_in_solib_call_trampoline.
12485 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12486 to after set_gdbarch_in_solib_return_trampoline. Only set the
12487 solib hooks to mips16 functions if the OS ABI is unknown.
12488 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12489 including "config/tm-linux.h".
12490 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12491 * Makefile.in (mips-linux-tdep.o): Update.
12492
87b3ede8
DC
124932004-02-11 David Carlton <carlton@kealia.com>
12494
12495 * linespec.c (decode_compound): Only look for a class symbol when
12496 considering all but the rightmost component.
12497
5979bc46
AC
124982004-02-11 Andrew Cagney <cagney@redhat.com>
12499
12500 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12501 abi code are are separatly grouped.
12502
5867a2fb
AC
125032004-02-11 Andrew Cagney <cagney@redhat.com>
12504
12505 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12506 * gdbarch.h, gdbarch.c: Re-generate.
12507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12508 * v850-tdep.c (v850_gdbarch_init): Update.
12509 * sh64-tdep.c (sh64_gdbarch_init): Update.
12510 * sh-tdep.c (sh_gdbarch_init): Update.
12511 * s390-tdep.c (s390_gdbarch_init): Update.
12512 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12513 * mips-tdep.c (mips_gdbarch_init): Update.
12514 * mcore-tdep.c (mcore_gdbarch_init): Update.
12515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12516 * m32r-tdep.c (m32r_gdbarch_init): Update.
12517 * ia64-tdep.c (ia64_gdbarch_init): Update.
12518 * hppa-tdep.c (hppa_gdbarch_init): Update.
12519 * h8300-tdep.c (h8300_gdbarch_init): Update.
12520 * frv-tdep.c (frv_gdbarch_init): Update.
12521 * d10v-tdep.c (d10v_gdbarch_init): Update.
12522 * cris-tdep.c (cris_gdbarch_init): Update.
12523 * avr-tdep.c (avr_gdbarch_init): Update.
12524 * arm-tdep.c (arm_gdbarch_init): Update.
12525 * alpha-tdep.c (alpha_gdbarch_init): Update.
12526
026a72f8
CV
125272004-02-11 Corinna Vinschen <vinschen@redhat.com>
12528
12529 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12530 comma.
12531 (sh_sh4al_dsp_register_name): Ditto.
12532
3903d437
AC
125332004-02-10 Andrew Cagney <cagney@redhat.com>
12534
12535 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12536 (mips_init_frame_pc_first): Delete function.
12537 (mips_frame_saved_pc): Delete function.
12538 (mips_frame_chain): Delete function.
12539 (mips_init_extra_frame_info): Delete function.
12540 (mips_xfer_register): Delete unused variable "reg".
12541 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12542 (mips_n32n64_return_value): Delete unused variable "reg".
12543 (mips_n32n64_return_value): Delete unused variable "pos".
12544 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12545 (mips_o32_return_value): Delete unused variable "pos".
12546 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12547 (mips_print_fp_register): Delete unused variable "namelen"
12548 (mips_print_fp_register): Delete unused variable "flt2"
12549 (get_frame_pointer): Delete function.
12550 (cached_proc_desc): Delete static variable.
12551 (mips_pop_frame): Delete function.
12552 (mips_find_saved_regs): Delete function.
12553 (mips_get_saved_register): Delete function.
12554 (mips_saved_pc_after_call): Delete function.
12555 (SIGFRAME_BASE): Delete macro.
12556 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12557 (SIGFRAME_PC_OFF): Delete macro.
12558 (SIGFRAME_REGSAVE_OFF): Delete macro.
12559 (mips_dump_tdep): Do not print deleted macro definitions.
12560
b9fb98bd
AC
125612004-02-10 Andrew Cagney <cagney@redhat.com>
12562
12563 * Makefile.in (SFILES): Remove explictly listed tui files.
12564 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12565
78ced177 125662004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12567
78ced177
JJ
12568 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12569 to use paddr functions to format ia64 addresses and long values.
12570 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12571 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12572 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12573 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12574 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12575
6a83354a
AC
125762004-02-10 Andrew Cagney <cagney@redhat.com>
12577
12578 * defs.h: Do not include "tui.h".
12579 * gdb_curses.h: New file.
12580 * tui/tui-hooks.h: New file.
12581 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12582 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12583 (tui_initialize_io): Delete declaration.
12584 (tui_initialize_readline: Delete redundant declaration.
12585 (struct tui_point): Delete definition.
12586 * tui/tui-data.h (struct tui_point): Define.
12587 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12588 * utils.c: Include "tui/tui.h".
12589 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12590 * printcmd.c [TUI]: Include "tui/tui.h".
12591 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12592 * tui/tui-command.c: Include "gdb_curses.h".
12593 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12594 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12595 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12596 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12597 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12598 * Makefile.in: Update all dependencies.
12599 (tui_hooks_h, gdb_curses_h): Define.
12600 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12601
997470ef
EZ
126022004-02-10 Elena Zannoni <ezannoni@redhat.com>
12603
12604 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12605 auxf2. Add comments about some other rarely used fields.
12606
4ff2cc4d
AC
126072004-02-10 Andrew Cagney <cagney@redhat.com>
12608
12609 * Makefile.in (init.c): Fix script removing duplicates. Problem
12610 reported by Peter Schauer.
12611
1ab21617
EZ
126122004-02-09 Elena Zannoni <ezannoni@redhat.com>
12613
12614 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12615 obstack_specify_allocation.
12616 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12617 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12618 (allocate_rt_common_objfile): Ditto.
12619 * symfile.c (reread_symbols): Ditto.
12620 * gdb_obstack.h: Add comment.
12621
17763fd9
EZ
126222004-02-09 Elena Zannoni <ezannoni@redhat.com>
12623
12624 * linespec.c (decode_line_1, locate_first_half)
12625 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12626 commented out code.
12627
ec5cdd75
DJ
126282004-02-09 Daniel Jacobowitz <drow@mvista.com>
12629
12630 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12631 obstack_free.
12632
43b54b88
AC
126332004-02-09 Andrew Cagney <cagney@redhat.com>
12634
12635 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12636 fails, try find_pc_section. Fix PR c++/1267.
12637 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12638 instead of find_pc_mapped_section.
12639 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12640 not default to the section containing PC. Fix PR symtab/1519.
12641
edfae063
AC
126422004-02-09 Andrew Cagney <cagney@redhat.com>
12643
12644 * Makefile.in (mips-tdep.o): Update dependencies.
12645 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12646 "trad-frame.h".
12647 (mips_unwind_pc): Return the pseudo PC register.
12648 (mips_unwind_dummy_id): New function.
12649 (mips16_fetch_instruction): New function.
12650 (mips32_fetch_instruction): New function.
12651 (struct mips_frame_cache): Define.
12652 (mips_mdebug_frame_cache): New function.
12653 (mips_mdebug_frame_this_id): New function.
12654 (mips_mdebug_frame_prev_register): New function.
12655 (mips_mdebug_frame_unwind): Define.
12656 (mips_mdebug_frame_sniffer): New function.
12657 (mips_mdebug_frame_base_address): New function.
12658 (mips_mdebug_frame_base): Define.
12659 (mips_mdebug_frame_base_sniffer): New function.
12660 (mips_gdbarch_init): Append unwind and base sniffers. Set
12661 unwind_dummy_id.
12662
defc864c
AC
126632004-02-08 Andrew Cagney <cagney@redhat.com>
12664
6764ddad
AC
12665 * frame.c: Print both the register number and name.
12666
defc864c
AC
12667 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12668 and a sed into a single sed. Make .c and .o patterns more robust.
12669 (OBS): Delete.
12670 (INIT_FILES): Replace OBS with COMMON_OBS.
12671 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12672
645d6d10
MK
126732004-02-08 Mark Kettenis <kettenis@gnu.org>
12674
12675 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12676 the PT_WCOOKIE request.
12677
23e3c3fc
AC
126782004-02-08 Andrew Cagney <cagney@redhat.com>
12679
58dfe9ff
AC
12680 * mips-tdep.c (mips_unwind_pc): New function.
12681 (mips_gdbarch_init): Set mips_unwind_pc.
12682
1152e35e
AC
12683 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12684 (get_frame_id): Allow the UNKNOWN_FRAME.
12685 (frame_register_unwind, get_frame_type): Ditto.
12686
31b75dbf
AC
12687 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12688 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12689 unwind_dummy_id indicates a legacy frame.
12690
3483b318
AC
12691 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12692 * configure: Re-generate.
12693
23e3c3fc
AC
12694 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12695 methods.
12696
33f8ca73
AC
126972004-02-08 Andrew Cagney <cagney@redhat.com>
12698
12699 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12700 makefile macro.
12701 * configure: Re-generate.
12702 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12703 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12704 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12705 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12706 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12707 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12708 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12709 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12710 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12711 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12712
6ba8e26f 127132004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12714
20d286a5
AC
12715 * Makefile.in: Update all dependencies.
12716
d836ee13
AC
12717 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12718 * configure: Re-generate.
12719 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12720 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12721 (COMMON_OBS): Add "main.o" and "annotate.o".
12722 (ANNOTATE_OBS): Delete.
12723 (OBS): Remove ANNOTATE_OBS.
12724 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12725 CONFIG_INITS.
12726 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12727 against CONFIG_OBS and "main.o".
12728 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12729 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12730
d02c80cd
AC
12731 * tui/tui-command.c: Include "gdb_string.h", delete register
12732 attribute, use ISO-C function signatures.
12733 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12734 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12735 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12736 * tui/tui.c: Ditto.
6ba8e26f
AC
12737
12738 * tui/tui-command.c: Change variable and function names to lower
12739 case.
12740 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12741 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12742 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12743 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12744 * tui/tui-winsource.c, tui/tui.c: Ditto.
12745
4a146b47
EZ
127462004-02-07 Elena Zannoni <ezannoni@redhat.com>
12747
12748 * buildsym.c (free_pending_blocks, finish_block)
12749 (record_pending_block, make_blockvector, end_symtab): Replace
12750 symbol_obstack with objfile_obstack.
8a1dac83 12751 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12752 (coff_read_enum_type): Ditto.
8a1dac83 12753 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12754 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12755 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12756 (dwarf2_symbol_mark_computed): Ditto.
12757 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12758 * elfread.c (elf_symtab_read): Ditto.
12759 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12760 (hpread_read_enum_type, hpread_read_function_type)
12761 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12762 Ditto.
8a1dac83 12763 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12764 (java_link_class_type): Ditto.
8a1dac83 12765 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12766 (new_symbol): Ditto.
12767 * minsyms.c (install_minimal_symbols): Ditto.
12768 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12769 (terminate_minimal_symbol_table): Replace symbol_obstack with
12770 objfile_obstack.
12771 (free_objfile): Remove freeing of symbol_obstack.
12772 * objfiles.h: Remove symbol_obstack field.
12773 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12774 objfile_obstack.
12775 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12776 symbol_obstack.
12777 (solib_add_common_symbols): Replace symbol_obstack with
12778 objfile_obstack.
12779 * somsolib.c (som_solib_add): Ditto.
12780 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12781 (common_block_start, common_block_end): Ditto.
12782 * symfile.c (reread_symbols): Remove freeing and init of
12783 symbol_obstack.
12784 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12785 * symfile.h: Update comment.
12786 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12787 stats printing.
12788 * symtab.c (symbol_set_names): Replace symbol_obstack with
12789 objfile_obstack.
12790 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12791 Update comments.
12792 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12793 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12794 objfile_obstack.
12795
6d012f14
AC
127962004-02-07 Andrew Cagney <cagney@redhat.com>
12797
12798 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12799 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12800 fields and variables.
12801 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12802 (m_beInvisible): Delete macro.
12803 * tui/tui-data.h: Fix case case fields and variables.
12804 (m_genWinPtrIsNull): Delete macro.
12805 (tui_win_list): Rename winList.
12806 (TUI_SRC_WIN): Rename srcWin.
12807 (TUI_DISASM_WIN): Rename disassemWin.
12808 (TUI_DATA_WIN): Rename dataWin.
12809 (TUI_CMD_WIN): Rename cmdWin.
12810 (m_genWinPtrNotNull): Delete macro.
12811 (m_winPtrIsNull): Delete macro.
12812 (m_winPtrNotNull): Delete macro.
12813 (tui_win_is_source_type): Replace m_winIsSourceType
12814 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12815 (tui_win_has_locator): Replace m_hasLocator.
12816 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12817 m_setWinHighlightOff.
12818 * tui/tui-data.c: Update references.
12819 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12820 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12821 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12822 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12823 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12824 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12825 * tui/tui-winsource.c, tui/tui.c: Ditto.
12826
7d34766b
MK
128272004-02-07 Mark Kettenis <kettenis@gnu.org>
12828
1c800673
MK
12829 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12830 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12831 StackGhost.
12832
7d34766b
MK
12833 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12834 variable `i6' to `i7'.
12835 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12836
22940a24
AC
128372004-02-07 Andrew Cagney <cagney@redhat.com>
12838
12839 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12840 (TuiPoint, TuiPointPtr): Ditto.
12841 (TuiStatus, TuiStatusPtr): Ditto.
12842 (TuiWinType, TuiWinTypePtr): Ditto.
12843 (struct tui_point): Rename _TuiPoint.
12844 (tui_get_low_disassembly_address): Rename
12845 tuiGetLowDisassemblyAddress.
12846 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12847 (tuiFree): Delete declaration.
12848 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12849 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12850 * tui/tui.c (tuiFree): Delete function.
12851 * cli/cli-cmds.c (disassemble_command): Update references.
12852 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12853 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12854 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12855 * tui/tui-winsource.c: Ditto.
12856
8b92e4d5
EZ
128572004-02-07 Elena Zannoni <ezannoni@redhat.com>
12858
12859 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12860 coffstab_build_psymtabs, elfstab_build_psymtabs)
12861 (stabsect_build_psymtabs): Replace psymbol_obstack with
12862 objfile_obstack.
12863 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12864 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12865 Ditto.
12866 * dwarfread.c (scan_compilation_units): Ditto.
12867 * elfread.c (elfstab_offset_sections): Ditto.
12868 * hppa-tdep.c (read_unwind_info): Ditto.
12869 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12870 (hpread_end_psymtab): Ditto.
12871 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12872 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12873 Ditto.
12874 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12875 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12876 (build_objfile_section_table): Ditto.
12877 (allocate_objfile): Remove init of psymbol_obstack.
12878 (free_objfile): Remove freeing of psymbol_obstack.
12879 * objfiles.h (struct objfile): Remove field
12880 psymbol_obstack. Update comments.
12881 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12882 psymbol_obstack with objfile_obstack.
12883 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12884 psymbol_obstack.
12885 * somread.c (som_symfile_offsets, init_import_symbols)
12886 (init_export_symbols): Replace psymbol_obstack with
12887 objfile_obstack.
12888 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12889 * symfile.c (default_symfile_offsets, syms_from_objfile)
12890 (reread_symbols): Remove freeing and init of psymbol_obstack.
12891 (cashier_psymtab): Update comment.
12892 * symmisc.c (print_objfile_statistics): Don't report stats for
12893 psymbol obstack.
12894 * symtab.h (struct general_symbol_info, struct partial_symtab):
12895 Update comments.
12896 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12897 (xcoff_symfile_offsets): Replace psymbol_obstack with
12898 objfile_obstack.
12899
b99607ea
EZ
129002004-02-07 Elena Zannoni <ezannoni@redhat.com>
12901
12902 * objfiles.h (struct objfile): Add objfile_obstack field.
12903 Remove type_obstack field.
12904
12905 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12906 read_structure_scope read_enumeration, new_symbol): Replace
12907 type_obstack with objfile_obstack.
12908 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12909 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12910 (lookup_fundamental_type): Ditto.
12911 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12912 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12913 (hpread_read_doc_function_type, hpread_read_struct_type)
12914 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12915 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12916 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12917 (java_link_class_type): Ditto.
12918 * mdebugread.c (parse_type): Ditto.
12919 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12920 * solib-sunos.c (solib_add_common_symbols): Ditto.
12921 * stabsread.c (define_symbol, read_type, read_member_functions,
12922 read_cpp_abbrev, read_one_struct_field): Ditto.
12923 * symfile.c (reread_symbols): Ditto.
12924 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12925
2a8854a7
AC
129262004-02-07 Andrew Cagney <cagney@redhat.com>
12927
12928 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12929 (tui_exec_info_content): Rename TuiExecInfoContent.
12930 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12931 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12932 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12933 (TuiList, TuiListPtr): Ditto.
12934 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12935 (TuiDataType, TuiDataTypePtr): Ditto.
12936 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12937 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12938 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12939 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12940 (TuiDataElement, TuiDataElementPtr): Ditto.
12941 (TuiWinElement, TuiWinElementPtr): Ditto.
12942 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12943 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12944 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12945 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12946 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12947 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12948 * tui/tui-command.c, tui/tui-data.c: Update references.
12949 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12950 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12951 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12952 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12953
05cbe71a
MK
129542004-02-07 Mark Kettenis <kettenis@gnu.org>
12955
12956 * dwarf2-frame.h: Update copyright.
12957 (enum dwarf2_frame_reg_rule): New.
12958 (struct dwarf2_frame_state_reg): New.
12959 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12960 * dwarf2-frame.c: Update copyright.
12961 (enum dwarf2_reg_rule): Remove.
12962 (struct dwarf2_frame_state): Remove defenition of `struct
12963 dwarf2_frame_state_reg'.
12964 (read_reg): Call get_frame_arch to get the architecture instead of
12965 using CURRENT_GDBARCH.
12966 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12967 DWARF2_FRAME_.
12968 (dwarf2_frame_init_reg): New function.
12969 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12970 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12971 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12972 tags with DWARF2_FRAME_.
12973 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12974 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12975 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12976
ec7d9e56
AC
129772004-02-06 Andrew Cagney <cagney@redhat.com>
12978
dd1abb8c
AC
12979 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12980 (enum tui_data_type): Rename _TuiDataType.
12981 (struct tui_layout_def): Rename _TuiLayoutDef.
12982 (struct tui_source_element): Rename _TuiSourceElement.
12983 (struct tui_data_element): Rename _TuiDataElement.
12984 (struct tui_command_element): Rename _TuiCommandElement.
12985 (struct tui_locator_element): Rename _TuiLocatorElement.
12986 (union tui_which_element): Define.
12987 (struct tui_win_element): Rename _TuiWinElement.
12988 (struct tui_data_info): Rename _TuiDataInfo.
12989 (struct tui_source_info): Rename _TuiSourceInfo.
12990 (struct tui_command_info): Rename _TuiCommandInfo.
12991 (tui_initialize_static_data): Rename initializeStaticData.
12992 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12993 (tui_alloc_win_info): Rename allocWinInfo.
12994 (tui_init_generic_part): Rename initGenericPart.
12995 (tui_init_win_info): Rename initWinInfo.
12996 (tui_alloc_content): Rename allocContent.
12997 (tui_add_content_elements): Rename addContentElements.
12998 (tui_init_content_element): Rename initContentElement.
12999 (tui_free_window): Rename freeWindow.
13000 (tui_free_win_content): Rename freeWinContent.
13001 (tui_free_data_content): Rename freeDataContent.
13002 (tui_free_all_source_wins_content): Rename
13003 freeAllSourceWinsContent.
13004 (tui_del_window): Rename tuiDelWindow.
13005 (tui_del_data_windows): Rename tuiDelDataWindows.
13006 (tui_partial_win_by_name): Rename partialWinByName.
13007 (tui_win_name): Rename winName.
13008 (tui_current_layout): Rename currentLayout.
13009 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13010 (tui_term_height): Rename termHeight.
13011 (tui_set_term_height_to): Rename setTermHeightTo.
13012 (tui_term_width): Rename termWidth.
13013 (tui_set_term_width_to): Rename setTermWidthTo.
13014 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13015 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13016 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13017 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13018 (tui_source_windows): Rename sourceWindows.
13019 (tui_clear_source_windows): Rename clearSourceWindows.
13020 (tui_clear_source_windows_detail): Rename
13021 clearSourceWindowsDetail.
13022 (tui_clear_win_detail): Rename clearWinDetail.
13023 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13024 (tui_default_tab_len): Rename tuiDefaultTabLen.
13025 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13026 (tui_win_with_focus): Rename tuiWinWithFocus.
13027 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13028 (tui_layout_def): Rename tuiLayoutDef.
13029 (tui_win_resized): Rename tuiWinResized.
13030 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13031 (tui_next_win): Rename tuiNextWin.
13032 (tui_prev_win): Rename tuiPrevWin.
13033 (tui_add_to_source_windows): Rename addToSourceWindows.
13034 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13035 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13036 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13037 * tui/tui.c, tui/tui-data.c: Ditto.
13038 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13039 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13040
a358af15
AC
13041 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13042 (struct symtab): Declare.
13043 (tui_set_source_content): Rename tuiSetSourceContent.
13044 (tui_show_symtab_source): Rename tuiShowSource.
13045 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13046 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13047 * tui/tui-source.c: Update copyright. Update references.
13048 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13049 * tui/tui-stack.c: Update references.
13050
a21fcd8f
AC
13051 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13052 (struct tui_win_info): Declare.
13053 (tui_scroll_forward): Rename tuiScrollForward.
13054 (tui_scroll_backward): Rename tuiScrollBackward.
13055 (tui_scroll_left): Rename tuiScrollLeft.
13056 (tui_scroll_right): Rename tuiScrollRight.
13057 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13058 (tui_resize_all): Rename tuiResizeAll.
13059 (tui_refresh_all_win): Rename tuiRefreshAll.
13060 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13061 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13062 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13063 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13064
edae1ccf
AC
13065 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13066 (tui_erase_data_content): Rename tuiEraseDataContent.
13067 (tui_display_all_data): Rename tuiDisplayAllData.
13068 (tui_check_data_values): Rename tuiCheckDataValues.
13069 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13070 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13071 (tui_first_data_element_no_in_line): Rename
13072 tuiFirstDataElementNoInLine.
13073 (tui_delete_data_content_windows): Rename
13074 tuiDeleteDataContentWindows.
13075 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13076 (tui_display_data_from): Rename tuiDisplayDataFrom.
13077 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13078 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13079 * tui/tui-win.c, tui/tui-regs.c: Update references.
13080 * tui/tui-layout.c, tui/tui.c: Update references.
13081
ec7d9e56
AC
13082 * tui/tui-wingeneral.h: Update copyright.
13083 (m_allBeVisible): Delete macro.
8a1dac83 13084 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
13085 (struct tui_gen_win_info): Declare.
13086 (struct tui_win_info): Declare.
13087 (tui_unhighlight_win): Rename unhighlightWin.
13088 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13089 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13090 (tui_make_window): Rename makeWindow.
13091 (tui_copy_win): Rename copyWin.
13092 (tui_box_win): Rename boxWin.
13093 (tui_highlight_win): Rename highlightWin.
13094 (tui_check_and_display_highlight_if_needed): Rename
13095 checkAndDisplayHighlightIfNeeded.
13096 (tui_refresh_all): Rename refreshAll.
13097 (tui_delete_win): Rename tuiDelwin.
13098 (tui_refresh_win): Rename tuiRefreshWin.
13099 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13100 (tui_make_visible, tui_make_invisible): New functions.
13101 (tui_make_all_visible, tui_make_all_invisible): New functions.
13102 (make_all_visible): Rename makeAllVisible.
13103 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13104 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13105 * tui/tui-windata.c, tui/tui-win.c: Update references.
13106 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13107 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13108
1e52e2eb
MK
131092004-02-06 Mark Kettenis <kettenis@gnu.org>
13110
13111 * proc-api.c (write_with_trace): Initialize local variable to
13112 silence compiler warning.
13113
f80bda8e
AC
131142004-02-06 Andrew Cagney <cagney@redhat.com>
13115
13116 * tui/tui-source.h: Do not include "defs.h".
13117 (struct tui_win_info): Declare.
13118 (tui_set_source_content_nil): Declare.
13119 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13120 (union tui_line_or_address): Rename _TuiLineOrAddress.
13121 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13122 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13123 (tui_update_source_window_as_is): Rename
13124 tuiUpdateSourceWindowAsIs.
13125 (tui_update_source_windows_with_addr): Rename
13126 tuiUpdateSourceWindowsWithAddr.
13127 (tui_update_source_windows_with_line): Rename
13128 tuiUpdateSourceWindowsWithLine.
13129 (tui_clear_source_content): Rename tuiClearSourceContent.
13130 (tui_erase_source_content): Rename tuiEraseSourceContent.
13131 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13132 (tui_show_source_content): Rename tuiShowSourceContent.
13133 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13134 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13135 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13136 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13137 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13138 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13139 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13140 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13141 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13142 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13143 (struct tui_win_info): Declare.
13144 * tui/tui-stack.c: Update references.
13145 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13146 * tui/tui-win.c, tui/tui-source.c: Ditto.
13147 * tui/tui.c, tui/tui-disasm.c: Ditto.
13148
9fbfb822
MK
131492004-02-06 Mark Kettenis <kettenis@gnu.org>
13150
13151 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13152 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13153
03cebad2
MK
131542004-02-05 Mark Kettenis <kettenis@gnu.org>
13155
13156 * infrun.c (handle_inferior_event): Allow for breakpoint
13157 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13158 and SIGEMT. Update comments.
13159 * NEWS (Revised SPARC target): Mention support for non-executable
13160 stack.
13161
290281b1
MK
131622004-02-04 Mark Kettenis <kettenis@gnu.org>
13163
13164 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13165 * inftarg.c: Update copyright year.
13166 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13167 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13168 (sparc_xfer_wcookie): New function.
13169 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13170 * Makefile.in (sparc-nat.o): Update dependencies.
13171 * config/sparc/nm-nbsd.h: Include "target.h".
13172 (NATIVE_XFER_WCOOKIE): New define.
13173 (sparc_xfer_wcookie): New prototype.
13174
212161df
AC
131752004-02-04 Andrew Cagney <cagney@redhat.com>
13176
13177 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13178 SYSCALL_TRAP function.
13179 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13180
6e4c6c91
DJ
131812004-02-04 Andrew Cagney <cagney@redhat.com>
13182 Daniel Jacobowitz <drow@mvista.com>
13183
13184 * objfiles.h: Delete comments refering to inside_entry_func and
13185 DEPRECATED_FRAME_CHAIN_VALID.
13186 * defs.h (inside_entry_func): Update prototype..
13187 * blockframe.c (inside_entry_func): Rename to
13188 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13189 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13190
cae688ec
JJ
131912004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13192
13193 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13194 outside of #ifdef SOLIB_ADD region.
13195 (do_restore_lang_radix_cleanup): Ditto.
13196 (resolve_pending_breakpoint): Ditto.
13197
19217676
AC
131982004-02-03 Andrew Cagney <cagney@redhat.com>
13199
13200 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13201 (process_note_abi_tag_sections): Delete unused function.
13202 (ia64_read_fp): Delete unused function.
13203 (gdbarch_extract_struct_value_address): Delete declaration.
13204
876753be
AC
132052004-02-02 Andrew Cagney <cagney@redhat.com>
13206
13207 * vax-tdep.c (vax_frame_chain): Delete call to
13208 deprecated_inside_entry_file.
13209 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13210
d4f10bf2
MK
132112004-02-02 Mark Kettenis <kettenis@gnu.org>
13212
13213 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13214 column that's "empty" or "same value" when eliminating REG_RA
13215 rules.
13216
cae688ec
JJ
132172004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13218
13219 * NEWS: Add information about new pending breakpoint support.
13220
0101ce28
JJ
132212004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13222
13223 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13224 and pending fields for pending breakpoint support.
13225 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13226 (condition_command): Only parse condition if not a pending
13227 breakpoint.
13228 (print_one_breakpoint): Add support for pending breakpoints.
13229 (describe_other_breakpoints): Add checks to verify we are not
13230 dealing with pending breakpoints.
13231 (check_duplicates): Don't check pending breakpoints.
13232 (set_raw_breakpoint): Initialize pending flag.
13233 (do_restore_lang_radix_cleanup): New cleanup routine.
13234 (resolve_pending_breakpoint): New function.
13235 (re_enable_breakpoints_in_shlibs): Try and resolve any
13236 pending breakpoints via resolve_pending_breakpoint.
13237 (mention): Add pending breakpoint support.
13238 (parse_breakpoint_sals): Add new parameter to pass to
13239 decode_line_1 to indicate silent errors when files or functions
13240 are not found. Change all callers.
13241 (do_captured_parse_breakpoint): New function.
13242 (break_command_1): Change prototype to return an rc value and to
13243 take an optional pending breakpoint pointer. Support creating
13244 a pending breakpoint if a "not found" form of error occurs when
13245 parsing the breakpoint. Also support resolving an existing pending
13246 breakpoint and be silent if the resolution fails.
13247 (create_breakpoints): Change prototype to take pending breakpoint
13248 pointer. When resolving a pending breakpoint, use the new pointer
13249 to provide a conditional or commands added by the end-user.
13250 (delete_breakpoint): Add appropriate check for pending.
13251 (breakpoint_re_set_one): Ditto.
13252 (do_enable_breakpoint): Ditto.
13253
8d577d32
DC
132542004-02-02 David Carlton <carlton@kealia.com>
13255
13256 * valops.c (enum oload_classification): New.
13257 (find_overload_match): Break implementation into separate
13258 functions; delete #if 0'd code; look for symbols within
13259 namespaces.
13260 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13261 (find_oload_champ,oload_method_static,classify_oload_match): New.
13262 * cp-support.h: Add declaration for cp_func_name; update
13263 declaration for make_symbol_overload_list.
13264 * cp-support.c (cp_func_name): New.
13265 (overload_list_add_symbol): Fix comment, use
13266 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13267 (make_symbol_overload_list): Take a function name and a namespace
13268 instead of a symbol; change implementation.
13269 (make_symbol_overload_list_using): New.
13270 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13271
22e8e3c7
FF
132722004-02-02 Fred Fish <fnf@redhat.com>
13273
13274 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 13275 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
13276 * remote-sim.c (gdb_os_write_stderr): Write output to
13277 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13278 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 13279 gdb_stderr stream and update copyright years.
22e8e3c7 13280
6b753f60
DJ
132812004-02-01 Daniel Jacobowitz <drow@mvista.com>
13282
13283 * Makefile.in (mips-linux-nat.o): Update dependencies.
13284 * mips-linux-nat.c: Include mips-tdep.h.
13285
132862004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
13287
13288 * sol-thread.c (sol_thread_xfer_partial): New function.
13289 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13290 (init_sol_core_ops): Likewise.
13291
13292 * procfs.c (procfs_xfer_partial): New function.
13293 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13294 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13295
13296 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13297 procfs_xfer_auxv function.
13298
13299 * procfs.c (procfs_make_note_section): If we can read
13300 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13301 * linux-proc.c (linux_make_note_section): Likewise.
13302
13303 * auxv.h: New file.
13304 * auxv.c: New file.
13305 * Makefile.in (auxv_h): New variable.
13306 (COMMON_OBS): Add auxv.o here.
13307 (auxv.o): New target.
13308
13309 * corelow.c (core_xfer_partial): New function.
13310 (init_core_ops): Use it for core_ops.to_xfer_partial.
13311
13312 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13313 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13314 macro if that is defined.
13315
fa5281d0
DJ
133162004-02-01 Daniel Jacobowitz <drow@mvista.com>
13317
13318 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13319 and check the specified thread for each breakpoint.
13320 * breakpoint.h (bpstat_stop_status): Update prototype.
13321 * infrun.c (handle_inferior_event): Update calls to
13322 bpstat_stop_status.
13323
26ee262d
DJ
133242004-02-01 Daniel Jacobowitz <drow@mvista.com>
13325
13326 * Makefile.in (cli-cmds.o): Add $(readline_h).
13327
d9b52655
DJ
133282004-02-01 Daniel Jacobowitz <drow@mvista.com>
13329
13330 * cli/cli-cmds.c: Include readline.h.
13331 (complete_command): Pass the start of the last word to
13332 complete_line.
13333
9709f61c
DJ
133342004-01-31 Daniel Jacobowitz <drow@mvista.com>
13335
13336 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13337 argument, and change first argument to a CORE_ADDR.
13338 * breakpoint.h (bpstat_stop_status): Update prototype.
13339 * infrun.c (adjust_pc_after_break): Add a new comment.
13340 (handle_inferior_event): Update calls to bpstat_stop_status.
13341
4f1280bb
DJ
133422004-01-31 Daniel Jacobowitz <drow@mvista.com>
13343
13344 * breakpoint.h: Update copyright years.
13345
4fa8626c
DJ
133462004-01-31 Daniel Jacobowitz <drow@mvista.com>
13347
13348 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13349 (bpstat_stop_status): Don't decrement PC.
13350 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13351 prototype.
13352 * infrun.c (adjust_pc_after_break): New function.
13353 (handle_inferior_event): Call it, early. Remove later references
13354 to DECR_PC_AFTER_BREAK.
13355 (normal_stop): Add commentary.
13356
fad0733a
DJ
133572004-01-31 Daniel Jacobowitz <drow@mvista.com>
13358
13359 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13360 2004-01-27 double-free fix.
13361
42cdca6c
MK
133622004-01-31 Mark Kettenis <kettenis@gnu.org>
13363
13364 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13365 (sparc32_frame_prev_register): Handle StackGhost.
13366 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13367
932d5416
RM
133682004-01-29 Roland McGrath <roland@redhat.com>
13369
13370 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13371 * configure: Regenerated.
13372
13373 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13374 * Makefile.in (procfs.o): Add dep.
13375
47d3492a
AC
133762004-01-28 Andrew Cagney <cagney@redhat.com>
13377
13378 * tui/tui-stack.h: Update copyright.
13379 (struct frame_info): Add opaque declaration.
13380 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13381 (tui_show_locator_content): Rename tuiShowLocatorContent.
13382 (tui_show_frame_info): Rename tuiShowFrameInfo.
13383 * tui/tui-stack.c: Update copyright. Update references.
13384 * tui/tui-winsource.c: Update references.
13385 * tui/tui-win.c: Update references.
13386 * tui/tui-layout.c: Update references.
13387 * tui/tui-hooks.c: Update copyright, update references.
13388 * tui/tui.c: Update copyright, update references.
13389 * tui/tui-disasm.c: Update references.
13390
5d51ca54
DC
133912004-01-28 David Carlton <carlton@kealia.com>
13392
13393 * dwarf2read.c (add_partial_structure): Use demangled name if
13394 namespace equals "".
13395
086ed43d
JB
133962004-01-27 Jim Blandy <jimb@redhat.com>
13397
13398 Clean up misapplied patch:
13399 * dwarf2read.c (determine_prefix): Change one of the two forward
13400 declarations for 'determine_prefix_aux' to a declaration for this.
13401 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13402 argument to 'die_specification'.
13403
2a35147e
JB
13404 * dwarf2read.c (read_func_scope): Re-indent comment.
13405
a355c7de 134062004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 13407
a355c7de
AC
13408 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13409 b->exp to NULL after freeing so that error during re-parsing or
13410 evaluation of expressions associated with breakpoint don't
13411 eventually lead to re-freeing of storage.
13412 Committed by Andrew Cagney.
13413
63ff5125
AC
134142004-01-27 Andrew Cagney <cagney@redhat.com>
13415
13416 * source.c (ambiguous_line_spec): Delete undefined declaration.
13417 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13418 (m32r_set_server_address, m32r_set_download_path): Ditto.
13419 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13420
e142c38c
DJ
134212004-01-27 Daniel Jacobowitz <drow@mvista.com>
13422
13423 * dwarf2read.c: Update calls to changed and renamed functions, and
13424 references to moved variables.
13425
13426 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13427 language, language_defn, list_in_scope, and ftypes members.
13428 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13429 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13430 (baseaddr): Remove globals.
13431
13432 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13433 (set_cu_language, die_is_declaration, die_specification)
13434 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13435 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13436 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13437 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13438
13439 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13440 cu.list_in_scope. Don't initialize cu_header_offset.
13441 (add_partial_symbol): Add local baseaddr.
13442 (psymtab_to_symtab_1): Add local baseaddr. Use
13443 objfile->section_offsets for consistency. Don't initialize
13444 cu_header_offset; do initialize cu.header.offset and
13445 cu.list_in_scope.
13446 (read_file_scope, read_func_scope, read_lexical_block_scope)
13447 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13448
c6e06ede
MC
134492004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13450
fb328ecc 13451 * PROBLEMS: Add gdb/1516.
c6e06ede 13452
48184fd4
AC
134532003-12-29 Robert Millan <robertmh@gnu.org>
13454
13455 Patch committed by Andrw Cagney.
13456 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13457 * configure.tgt: Match knetbsd*-gnu.
13458
c1321b30
AC
134592004-01-26 Andrew Cagney <cagney@redhat.com>
13460
f3699be3
AC
13461 * breakpoint.c (catch_command_1): Delete #ifdef code.
13462 (catch_fork_command_1): Delete #ifdef wrapper.
13463 (catch_exec_command_1): Ditto.
13464 (catch_load_command_1): Ditto.
13465 (catch_unload_command_1): Ditto.
13466
c1321b30
AC
13467 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13468 (catch_breakpoint): Delete #if0ed function.
13469 (disable_catch_breakpoint): Ditto.
13470 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13471 (disable_catch, enable_catch, delete_catch): Ditto.
13472
b4501125
AC
134732004-01-26 Andrew Cagney <cagney@redhat.com>
13474
13475 * remote.c (echo_check, quit_flag): Delete variables.
13476 (cisco_kernel_mode): Delete variable.
13477 (minitelnet_return, tty_input, escape_count): Delete variables.
13478 (remote_cisco_mode): Delete variable.
13479 (remote_cisco_open, remote_cisco_close): Delete function.
13480 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13481 (init_remote_cisco_ops): Delete function.
13482 (_initialize_remote): Do not install "remote cisco" code.
13483 (read_frame): Delete cisco specific code.
13484 (remote_info_process): Delete function.
13485 (remote_wait): Delete cisco specific code.
13486 (remote_cisco_section_offsets): Delete function.
13487 (remote_cisco_objfile_relocate): Delete function.
13488 (remote_async_wait): Delete cisco specific code.
13489 (minitelnet, readtty, readsocket): Delete function.
13490
74055713
AC
134912004-01-26 Andrew Cagney <cagney@redhat.com>
13492
13493 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13494 comments mentioning extract_returned_value_address.
13495 * infcmd.c (print_return_value): Update. Add comments on
13496 extract_returned_value_address.
13497 * stack.c (return_command): Add comments on
13498 extract_returned_value_address.
13499 * values.c: Update comment.
13500 * m32r-tdep.c: Update comment.
13501 * sparc-tdep.c: Update comment.
13502 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13504 * sh64-tdep.c (sh64_gdbarch_init): Update.
13505 * sh-tdep.c (sh_gdbarch_init): Update.
13506 * s390-tdep.c (s390_gdbarch_init): Update.
13507 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13508 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13509 * m68k-tdep.c (m68k_gdbarch_init): Update.
13510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13511 * m32r-tdep.c (m32r_gdbarch_init): Update.
13512 * ia64-tdep.c (ia64_gdbarch_init): Update.
13513 * h8300-tdep.c (h8300_gdbarch_init): Update.
13514 * frv-tdep.c (frv_gdbarch_init): Update.
13515 * arm-tdep.c (arm_gdbarch_init): Update.
13516 * alpha-tdep.c (alpha_gdbarch_init): Update.
13517
a67af2b9
AC
135182004-01-26 Andrew Cagney <cagney@redhat.com>
13519
13520 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13521 SYMBOL_LOCATION_FUNCS
13522 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13523 "struct symbol_ops".
13524 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13525 type to "struct symbol_ops".
13526 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13527 (struct symbol): Replace ".aux_value.loc.funcs" and
13528 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13529 (SYMBOL_OBJFILE): Delete macro.
13530 (SYMBOL_LOCATION_FUNCS): Delete macro.
13531 (SYMBOL_LOCATION_BATON): Update.
13532 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13533 intead of SYMBOL_LOCATION_FUNCS.
13534 * ax-gdb.c (gen_var_ref): Ditto.
13535 * printcmd.c (address_info): Ditto.
13536 * findvar.c (read_var_value): Ditto.
13537 (symbol_read_needs_frame): Ditto.
13538
c034e007
AC
135392004-01-26 Andrew Cagney <cagney@redhat.com>
13540
13541 * dwarf2read.c (read_func_scope): Document frame-base hack.
13542
bb472c1e
MK
135432004-01-25 Mark Kettenis <kettenis@gnu.org>
13544
13545 * infcmd.c (print_return_value): Plug memory leak; delete
13546 ui_stream object. Rename argument `structure_return' to
13547 `struct_return'.
13548
c8e737d5
MK
135492004-01-25 Mark Kettenis <kettenis@gnu.org>
13550
f941662f
MK
13551 * infcmd.c (print_return_value): Wrap long lines.
13552 (finish_command_continuation, finish_command): Remove unused
13553 variable `funcaddr'. Fix some coding-standards problems.
13554
c558d81a 13555 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13556 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13557 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13558 TDEP->fpregset to zero.
13559
bf1e5861 13560 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13561 floating-point registers for traditional NetBSD core files.
13562 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13563 TDEP->sizeof_fpregset here.
13564
4c72d57a
MK
135652004-01-25 Mark Kettenis <kettenis@gnu.org>
13566
566626fa
MK
13567 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13568 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13569 function with code split out from
13570 sparc32nbsd_sigcontext_frame_cache.
13571 (sparc32nbsd_sigcontext_frame_cache): Use
13572 sparc32nbsd_sigcontext_saved_regs.
13573 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13574 OpenBSD.
13575 * sparcobsd-tdep.c: New file.
13576 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13577 (sparcobsd-tdep.o): New dependency.
13578 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13579 * config/sparc/obsd.mt: New file.
13580
4c72d57a
MK
13581 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13582 TDEP->fpregset to be initialized to enable core file register
13583 sets.
13584
7e5e9f88
MK
135852004-01-24 Mark Kettenis <kettenis@gnu.org>
13586
f0f207fd 13587 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13588 Add opaque declarations.
13589 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13590 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13591 function with code split out from
13592 sparc64nbsd_sigcontext_frame_cache.
13593 (sparc64nbsd_sigcontext_frame_cache): Use
13594 sparc64nbsd_sigcontext_saved_regs.
13595 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13596 OpenBSD.
13597 * sparc64obsd-tdep.c: New file.
13598 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13599 (sparc64obsd-tdep.o): New dependency.
13600 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13601 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13602 * config/sparc/obsd64.mt: New file.
13603
690668cc
MK
13604 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13605 read the instruction at PC.
13606
7e5e9f88
MK
13607 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13608 value of GDB_OSABI_DEFAULT.
13609 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13610 instead of GDB_OSABI_NETBSD_AOUT.
13611
68b6dce9
NR
136122004-01-24 Nick Roberts <nick@nick.uklinux.net>
13613
13614 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13615 copyright.
13616
080ce8c0
AC
136172004-01-23 Andrew Cagney <cagney@redhat.com>
13618
13619 * printcmd.c (display_command): Replace tui_set_display call with
13620 tui_set_layout_for_display_command.
13621 * tui/tui.h (enum tui_win_type): Define.
13622 (tui_set_layout): Delete declaration.
13623 (tui_set_layout_for_display_command): Rename set_tui_layout.
13624 * tui/tui-data.h (enum tui_layout_type): Define.
13625 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13626 "tui.h".
13627 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13628 (tui_default_win_height): Rename tuiDefaultWinHeight.
13629 (tui_default_win_viewport_height): Rename
13630 tuiDefaultWinViewportHeight.
13631 (tui_set_layout): RenametuiSetLayout.
13632 * tui/tui-layout.c: Update references.
13633 * tui/tui.c: Update references.
13634 * tui/tui-disasm.c: Update references.
13635
b368761e
DC
136362004-01-23 David Carlton <carlton@kealia.com>
13637
13638 Partial workaround for PR c++/1511:
13639 * cp-namespace.c: Include frame.h.
13640 (cp_lookup_transparent_type): New
13641 (cp_lookup_transparent_type_loop): New.
13642 * cp-support.h: Declare cp_lookup_transparent_type.
13643 * symtab.c (basic_lookup_transparent_type): Renamed from
13644 lookup_transparent_type.
13645 (lookup_transparent_type): Replace old body by a call to
13646 current_language->la_lookup_transparent_type.
13647 * symtab.h: Update copyright. Declare
13648 basic_lookup_transparent_type.
13649 * language.h: Update copyright.
13650 (struct language_defn): Add la_lookup_transparent_type.
13651 * language.c: Update copyright.
13652 (unknown_language_defn): Add basic_lookup_transparent_type.
13653 (auto_language_defn): Add basic_lookup_transparent_type.
13654 (local_language_defn): Add basic_lookup_transparent_type.
13655 * ada-lang.c: Update copyright.
13656 (ada_language_defn): Add basic_lookup_transparent_type.
13657 * c-lang.c: Update copyright.
13658 (c_language_defn): Add basic_lookup_transparent_type.
13659 (cplus_language_defn): Add basic_lookup_transparent_type.
13660 (asm_language_defn): Add basic_lookup_transparent_type.
13661 (minimal_language_defn): Add basic_lookup_transparent_type.
13662 * f-lang.c: Update copyright.
13663 (f_language_defn): Add basic_lookup_transparent_type.
13664 * jv-lang.c: Update copyright.
13665 (java_language_defn): Add basic_lookup_transparent_type.
13666 * m2-lang.c: Update copyright.
13667 (m2_language_defn): Add basic_lookup_transparent_type.
13668 * objc-lang.c: Update copyright.
13669 (objc_language_defn): Add basic_lookup_transparent_type.
13670 * p-lang.c: Update copyright.
13671 (p_language_defn): Add basic_lookup_transparent_type.
13672 * scm-lang.c: Update copyright.
13673 (scm_language_defn): Add basic_lookup_transparent_type.
13674 * Makefile.in (cp-namespace.o): Depend on frame.h.
13675
fdde2d81
DC
136762004-01-23 David Carlton <carlton@kealia.com>
13677
13678 Patch for PR c++/1520:
13679 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13680 properly if we have a specification die.
13681 (determine_prefix_aux): Rename from determine_prefix.
13682 (determine_prefix): Like the old determine_prefix, but never
13683 returns NULL.
13684
5b828b6b
TR
136852004-01-23 Theodore A. Roth <troth@openavr.org>
13686
13687 * avr-tdep.c: Update copyright.
13688 (avr_iaddr_p): Delete unused function.
13689 (avr_saddr_p): Delete unused function.
13690
a1b8c067
DC
136912004-01-23 David Carlton <carlton@kealia.com>
13692
13693 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13694 Fix for PR symtab/1534.
13695
f2cab569
MK
136962004-01-23 Mark Kettenis <kettenis@gnu.org>
13697
13698 * NEWS (New native configurations): Mention OpenBSD/sparc and
13699 OpenBSD/sparc64.
13700 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13701 * configure.host: Likewise.
13702 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13703 handler for OpenBSD.
13704 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13705
642d8300
MK
137062004-01-22 Mark Kettenis <kettenis@gnu.org>
13707
89aac506
MK
13708 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13709 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13710
36662fde
MK
13711 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13712 * cli/cli-cmds.c (shell_escape): Likewise.
13713
642d8300
MK
13714 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13715 OpenBSD .note.openbsd.ident sections.
13716
fae299cd
DC
137172004-01-22 David Carlton <carlton@kealia.com>
13718
13719 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13720 get_scope_pc_bounds.
13721 (read_file_scope): Ditto.
13722 (get_scope_pc_bounds): New function, produced by extracting code
13723 from the above two functions, consolidating it, and adding support
13724 for DW_TAG_namespace.
13725
a49d618c
MK
137262004-01-22 Mark Kettenis <kettenis@gnu.org>
13727
13728 * osabi.c (MAX_NOTESZ): New define.
13729 (check_note): New function.
13730 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13731 check_note.
13732
fe61caab
RM
137332004-01-21 Roland McGrath <roland@redhat.com>
13734
13735 * MAINTAINERS (write after approval): Add myself.
13736
ec145965
EZ
137372004-01-21 Eli Zaretskii <eliz@gnu.org>
13738
13739 * utils.c (init_page_info): Move declarations of `rows' and
13740 `cols' before the __GO32__-specific code. Move the closing brace
13741 outside the #ifdef __GO32__..#endif block.
13742 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13743
877522db
PB
137442004-01-21 Paul Brook <paul@codesourcery.com>
13745
13746 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13747 BPSTAT_WHAT_CHECK_SHLIBS.
13748
dbf5be1c
PB
137492004-01-21 Paul Brook <paul@codesourcery.com>
13750
13751 * MAINTAINERS: Add myself to write-after-approval.
13752
81f08b92
AC
137532004-01-20 Andrew Cagney <cagney@redhat.com>
13754
5a1efed7
AC
13755 * ax-gdb.c (print_axs_value): Delete unused function.
13756 * jv-lang.c (java_lookup_type): Delete unused function.
13757 * cli/cli-dump.c (dump_filetype): Delete unused function.
13758 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13759 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13760 (mips_getstring): Delete unused function.
13761 (pmon_insert_breakpoint): Delete #if0ed function.
13762 (PMON_MAX_BP): Delete #if0ed MACRO.
13763 (mips_pmon_bp_info): Delete #if0ed variable.
13764 (pmon_remove_breakpoint): Delete #if0ed function.
13765 * monitor.c (monitor_write_even_block): Delete unused function.
13766 (monitor_write_memory_block): Delete #if0ed code.
13767 * dink32-rom.c (dink32_load): Delete unused function.
13768 (_initialize_dink32_rom): Delete #if0ed code.
13769 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13770
b0a30fce
AC
13771 * tui/tui-command.c: Update references.
13772 * tui/tui-io.c: Update references.
13773 * tui/tui-command.h: Update copyright.
13774 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13775
81f08b92
AC
13776 * source.c (ambiguous_line_spec): Delete never-defined function.
13777 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13778 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13779 * cli/cli-cmds.c (validate_comname): Ditto.
13780
65f05602
AC
13781 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13782 "tui-data.h".
13783 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13784 (tui_show_disassem): Rename tuiShowDisassem.
13785 (tui_show_disassem_and_update_source): Rename
13786 tuiVerticalDisassemScroll.
13787 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13788 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13789 * tui/tui.h: Update copyright.
13790 (enum tui_status): Define.
13791 * tui/tui-data.h (enum tui_scroll_direction): Define.
13792 * tui/tui-disasm.c: Update copyright. Update references.
13793 * tui/tui-winsource.c: Update copyright. Update references.
13794 * tui/tui-win.c: Update references.
13795 * tui/tui-layout.c: Update references.
13796
6bb0384f
AC
137972004-01-20 Andrew Cagney <cagney@redhat.com>
13798
13799 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13800 sym2 to start of block.
13801
9175c9a3
MC
138022004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13803
13804 * MAINTAINERS: Delete mmalloc.
13805 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13806 * NEWS: Mention removal of --with-malloc.
13807 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13808 * config.in: Regenerate.
13809 * configure: Regenerate.
6bb0384f
AC
13810 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13811 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13812 * gdbinit.in: Remove mmalloc.
13813 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13814 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13815 * config/i386/go32.mh: Likewise.
13816 * config/i386/interix.mh: Likewise.
13817 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13818
4fcef00a
JJ
138192004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13820
13821 * linespec.c (decode_variable, symtab_from_filename): Call
13822 error_silent with error message instead of throwing an exception
13823 directly.
13824 * defs.h (error_silent, error_output_message): Add prototypes.
13825 (catch_exceptions_with_msg): Ditto.
13826 * utils.c (error_silent, error_output_message): New functions.
13827 * top.c (catch_exceptions_with_msg): New function.
13828
8e94b928
NR
138292004-01-20 Nick Roberts <nick@nick.uklinux.net>
13830
13831 * mi/mi-cmds.h (enum print_values): Add definition.
13832
13833 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13834 type and value for simple data types and just the name and type
13835 for complex ones, if required.
13836
13837 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13838 children, if required.
13839
a02d6af8
KB
138402004-01-19 Kevin Buettner <kevinb@redhat.com>
13841
13842 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13843 unused declarations.
13844
78a4a9b9
AC
138452004-01-19 Andrew Cagney <cagney@redhat.com>
13846
13847 * top.h (mapped_symbol_files): Delete declaration.
13848 * main.c (captured_main): Delete option "m" and "mapped".
13849 * objfiles.c (mapped_symbol_files): Delete variable.
13850 * symfile.c (symbol_file_command): Delete mmap code.
13851 (symbol_file_add_with_addrs_or_offsets): Ditto.
13852 (add_symbol_file_command, reread_separate_symbols): Ditto.
13853 * objfiles.h (OBJF_MAPPED): Delete.
13854 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13855 (free_objfile) [USE_MMALLOC]: Ditto.
13856 (open_existing_mapped_file): Delete function.
13857 (open_mapped_file): Delete function.
13858 (map_to_file): Delete function.
13859
2dbd5e30
KB
138602004-01-19 Kevin Buettner <kevinb@redhat.com>
13861
13862 * infrun.c (step_into_function): Account for possible breakpoint
13863 adjustment when computing ``stop_func_start''.
13864
437b434f
KB
138652004-01-19 Kevin Buettner <kevinb@redhat.com>
13866
13867 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13868 the region size against the size of a pointer, not the size of
13869 a register as given by DEPRECATED_REGISTER_SIZE.
13870
55fb0713
AC
138712004-01-19 Andrew Cagney <cagney@redhat.com>
13872
13873 * tui/tui-regs.h: Include "tui-data.h".
13874 (tuiFirstRegElementNoInLine): Delete declaration.
13875 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13876 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13877 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13878 (tui_calculate_regs_column_count): Rename
13879 tuiCalculateRegsColumnCount.
13880 (tui_check_register_values): Rename tuiCheckRegisterValues.
13881 (tui_show_registers): Rename tuiShowRegisters.
13882 (tui_display_registers_from_line): Rename
13883 tuiDisplayRegistersFromLine.
13884 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13885 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13886 (tui_first_reg_element_no_inline): Rename
13887 tuiFirstRegElementNoInLine.
13888 * tui/tui-data.h: Update copyright.
13889 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13890 * tui/tui-windata.c: Update copyright, update references.
13891 * tui/tui-regs.c: Update copyright, update references.
13892 * tui/tui-win.c: Update copyright, update references.
13893 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13894
cebe9500
AC
138952004-01-18 Andrew Cagney <cagney@redhat.com>
13896
bcdf1568
AC
13897 * tui/tui-io.c: Update copyright.
13898 (key_is_end_sequence, key_is_backspace): New functions.
13899 (key_is_command_char, key_is_start_sequence): New function.
13900 (tui_getc): Update references.
13901 * tui/tui-io.h: Update copyright.
13902 (m_tuiStartNewLine): Delete macro.
13903 (m_isBackspace, m_isDeleteChar): Delete macros.
13904 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13905 (m_isNextPage, m_isPrevPage): Delete macros.
13906 (m_isLeftArrow, m_isRightArrow): Delete macros.
13907 (m_isXdbStyleCommandChar): Delete macro.
13908 (key_is_start_sequence): Declare, replace m_isStartSequence.
13909 (key_is_end_sequence): Declare, replace m_isEndSequence.
13910 (key_is_backspace): Declare ,replace m_isBackspace.
13911 (key_is_command_char): Declare, replace m_isCommandChar.
13912 * tui/tui-command.c: Update copyright.
13913 (tuiDispatchCtrlChar): Update references.
13914
130d87e6
AC
13915 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13916 tuiSourceWin.h.
13917
d7b2e967
AC
13918 * tui/tui-command.c: Rename tui/tuiCommand.c.
13919 * tui/tui-command.h: Rename tui/tuiCommand.h.
13920 * tui/tui-data.c: Rename tui/tuiData.c.
13921 * tui/tui-data.h: Rename tui/tuiData.h.
13922 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13923 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13924 * tui/tui-io.c: Rename tui/tuiIO.c.
13925 * tui/tui-io.h: Rename tui/tuiIO.h.
13926 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13927 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13928 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13929 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13930 * tui/tui-source.c: Rename tui/tuiSource.c.
13931 * tui/tui-source.h: Rename tui/tuiSource.h.
13932 * tui/tui-stack.c: Rename tui/tuiStack.c.
13933 * tui/tui-stack.h: Rename tui/tuiStack.h.
13934 * tui/tui-win.c: Rename tui/tuiWin.c.
13935 * tui/tui-win.h: Rename tui/tuiWin.h.
13936 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13937 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13938 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13939 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13940 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13941 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13942 * tui/tui-file.c: Update includes.
13943 * tui/tui-hooks.c: Update includes.
13944 * tui/tui-interp.c: Update includes.
13945 * tui/tui.c: Update includes.
13946 * Makefile.in: Update all tui/ dependencies.
13947 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13948
b2100910
AC
13949 * Makefile.in: Update copyright. Update dependencies.
13950
cebe9500
AC
13951 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13952 problem.
13953
c6f0559b
AC
139542004-01-18 Andrew Cagney <cagney@redhat.com>
13955
43e9390b
AC
13956 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13957 instead of register_gdbarch_init.
13958
c6f0559b
AC
13959 * remote-sds.c (tohex): Delete unused function. Update copyright.
13960 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13961 * v850-tdep.c (v850_register_virtual_size): Ditto.
13962 * target.c (normal_target_post_startup_inferior): Ditto.
13963 * source.c (ambiguous_line_spec): Ditto.
13964 * remote.c (adapt_remote_get_threadinfo): Ditto.
13965 * mi/mi-out.c (out_field_fmt): Ditto.
13966 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13967 (output_control_change_notification): Ditto.
13968 * m68k-tdep.c (m68k_register_byte): Ditto.
13969 (m68k_remote_breakpoint_from_pc): Ditto.
13970 * ui-out.c (init_ui_out_state): Delete unused declaration.
13971 * stabsread.c (search_value): Ditto.
13972 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13973 * maint.c (print_section_table): Ditto.
13974 * infrun.c (set_follow_fork_mode_command): Ditto.
13975
a8504492
MK
139762004-01-18 Mark Kettenis <kettenis@gnu.org>
13977
13978 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13979 DW_CFA_def_cfa_exporession. Add support for
13980 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13981 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13982
0bd8997e
AC
139832004-01-18 Andrew Cagney <cagney@redhat.com>
13984
13985 * ocd.c: Update copyright.
13986 (bdm_read_register_command): Delete unused function.
13987 (_initialize_remote_ocd): Delete commented out reference.
13988 (get_quoted_char, reset_packet): Delete #if0ed function.
13989 (output_packet, put_quoted_char): Delete #if0ed function.
13990 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13991 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13992 (BDM_BREAKPOINT): Delete #if0ed macro.
13993 (remote_timeout): Delete #if0ed variable.
13994
31bb40e4
MK
139952004-01-18 Mark Kettenis <kettenis@gnu.org>
13996
13997 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13998 (core-sol2.o): Remove dependency.
13999 * core-sol2.c: Remove file.
14000
887432a5
AC
140012004-01-17 Andrew Cagney <cagney@redhat.com>
14002
14003 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14004 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14005 enums.
14006
29182b13
DJ
140072004-01-17 Daniel Jacobowitz <drow@mvista.com>
14008
14009 * remote.c: Update copyright years.
14010
2963ee1d
DJ
140112004-01-17 Daniel Jacobowitz <drow@mvista.com>
14012
14013 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14014
79d45cd4
AC
140152004-01-17 Andrew Cagney <cagney@redhat.com>
14016
ee300cd4
AC
14017 * mdebugread.c: Update copyright.
14018 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14019 (parse_type, parse_procedure): Ditto.
14020 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14021
fcacc9c2
AC
14022 * cris-tdep.c (cris_store_struct_return): Put back accidently
14023 deleted function.
14024
79d45cd4
AC
14025 * gdbarch.sh: Update copyright year.
14026 * gdbarch.h, gdbarch.c: Re-generate.
14027
b263358a
DJ
140282004-01-17 Daniel Jacobowitz <drow@mvista.com>
14029
14030 Suggested by George Anzinger.
14031 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14032 correct stack offset. Include unknown opcode numbers in the error
14033 message.
14034
931aecf5
AC
140352004-01-17 Andrew Cagney <cagney@redhat.com>
14036
14037 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14038 extract_struct_value_address, i386 does not set it.
14039 * sparc64-tdep.c (sparc64_init_abi): Do not set
14040 extract_struct_value_address, never called.
14041 (sparc64_extract_struct_value_address): Delete function.
14042 * m68hc11-tdep.c: Update copyright.
14043 (m68hc11_gdbarch_init): Delete redundant assignment of
14044 extract_struct_value_address.
14045 * i386-tdep.c: Update copyright.
14046 (i386_gdbarch_init): Do not set extract_struct_value_address,
14047 never called.
14048 (i386_extract_struct_value_address): Delete function.
14049 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14050 extract_struct_value_address, never called.
14051 (sparc32_extract_struct_value_address): #if 0 function. Add
14052 comments explaining its future.
14053
756fe439
DJ
140542004-01-17 Daniel Jacobowitz <drow@mvista.com>
14055
14056 * arm-tdep.c (arm_write_pc): New function.
14057 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14058
e74f0f02
DJ
140592004-01-17 Daniel Jacobowitz <drow@mvista.com>
14060
14061 * breakpoint.c (must_shift_inst_regs): Delete.
14062 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14063 and SHIFT_INST_REGS.
14064 * infcmd.c (step_1, step_1_continuation): Delete references to
14065 SHIFT_INST_REGS.
14066 * infrun.c (keep_going): Likewise.
14067 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14068 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14069
b6cb9035
AC
140702004-01-17 Andrew Cagney <cagney@redhat.com>
14071
444a1e2e
AC
14072 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14073 * gdbarch.h, gdbarch.c: Re-generate.
14074 * infcmd.c (print_return_value): Delete reference to
14075 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14076
def7e6ed
AC
14077 * cris-tdep.c (cris_gdbarch_init): Do not set
14078 deprecated_extract_struct_value_address.
14079
07be497a
AC
14080 * xstormy16-tdep.c: Update copyright.
14081 (xstormy16_extract_struct_value_address): Update to current
14082 extract struct value address interface.
14083 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14084 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14085 current extract struct value address interface.
14086 (sh64_gdbarch_init): Set extract_struct_value_address.
14087
6b4d5c91
AC
14088 * cris-tdep.c: Update copyright.
14089 (cris_extract_struct_value_address): Delete function.
14090 (struct_return_address): Delete variable.
14091 (cris_store_struct_return): Do not set struct_return_address.
14092
464e0365
AC
14093 * mcore-tdep.c: Update copyright.
14094 (mcore_extract_struct_value_address): Delete function. Update
14095 comments.
14096 (mcore_gdbarch_init): Update.
14097 * mn10300-tdep.c: Update copyright.
14098 (mn10300_extract_struct_value_address): Delete function.
14099 (mn10300_gdbarch_init): Update.
14100 * v850-tdep.c: Update copyright.
14101 (v850_extract_struct_value_address): Delete.
14102 (v850_gdbarch_init): Update.
14103 * ns32k-tdep.c: Update copyright.
14104 (ns32k_extract_struct_value_address): Delete.
14105 (ns32k_gdbarch_init): Update.
14106 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14107 (hppa_gdbarch_init): Update.
14108 * vax-tdep.c: Update copyright.
14109 (vax_extract_struct_value_address): Delete.
14110 (vax_gdbarch_init): Update.
14111
afb18d0f
AC
14112 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14113 * gdbarch.h, gdbarch.c: Re-generate.
14114 * procfs.c (procfs_fetch_registers): Delete reference to
14115 DEPRECATED_NPC_REGNUM.
14116 (procfs_store_registers): Ditto.
14117 * regcache.c (generic_target_write_pc): Simplify.
14118 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14119
a698f53e
AC
14120 * core-sol2.c (fetch_core_registers): Replace
14121 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14122
adc11376
AC
14123 * hppa-tdep.c: Update copyright year.
14124 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14125 NPC_REGNUM.
14126 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14127
b6cb9035
AC
14128 * mips-tdep.c (mips_write_pc): New function.
14129 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14130 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14131 (mips_find_saved_regs, mips_software_single_step: Ditto.
14132 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14133 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14134
6d82d43b
AC
141352004-01-17 Andrew Cagney <cagney@redhat.com>
14136
14137 * mips-tdep.c: Re-indent. Group functions by ABI.
14138
71bd6bd4
AC
141392004-01-17 Andrew Cagney <cagney@redhat.com>
14140
14141 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14142 * gdbarch.c: Re-generate.
14143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14144 DECR_PC_AFTER_BREAK to zero.
14145 * vax-tdep.c (vax_gdbarch_init): Ditto.
14146 * v850-tdep.c (v850_gdbarch_init): Ditto.
14147 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14148 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14149 * sh-tdep.c (sh_gdbarch_init): Ditto.
14150 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14151 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14152 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14153 * mips-tdep.c (mips_gdbarch_init): Ditto.
14154 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14156 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14157 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14158 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14159 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14160 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14161 * frv-tdep.c (frv_gdbarch_init): Ditto.
14162 * cris-tdep.c (cris_gdbarch_init): Ditto.
14163 * avr-tdep.c (avr_gdbarch_init): Ditto.
14164 * arm-tdep.c (arm_gdbarch_init): Ditto.
14165 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14166
a02abb62
JB
141672004-01-17 J. Brobecker <brobecker@gnat.com>
14168
14169 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14170 Delete, no longer used.
14171 (read_subrange_type): New function, mostly extracted from
14172 read_array_type().
14173 (read_array_type): Replace extracted code by call to
14174 read_subrange_type().
14175 (dwarf2_get_attr_constant_value): New function.
14176 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14177 (add_partial_symbol): Likewise.
14178 (process_die): Likewise.
14179 (new_symbol): Likewise.
14180 (read_type_die): Likewise.
14181
cf5b2f1b
AC
141822004-01-16 Andrew Cagney <cagney@redhat.com>
14183
14184 * symfile.c: Update copyright year.
14185 (compare_symbols): Delete unused function.
14186 * stabsread.c: Update copyright year.
14187 (lrs_general_complaint): Delete unused function.
14188 (ref_search_value): Ditto.
14189 (get_substring): Delete declaration.
14190 * sh64-tdep.c: Update copyright year.
14191 (sh64_get_gdb_regnum): Delete unused function.
14192 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14193 Delete unused function.
14194
d33b9831
MK
141952004-01-17 Mark Kettenis <kettenis@gnu.org>
14196
14197 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14198 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14199
7aea86e6
AC
142002004-01-16 Andrew Cagney <cagney@redhat.com>
14201
14202 Changes from Peter Schauer.
14203 * rs6000-tdep.c: Update copyright year.
14204 (rs6000_push_dummy_call): Update the stack pointer before
14205 accessing the corresponding stack region.
14206 * rs6000-nat.c: Update copyright year.
14207 (set_host_arch): Set "info.abfd" to "exec_bfd".
14208
26b0da32
MK
142092004-01-15 Mark Kettenis <kettenis@gnu.org>
14210
14211 * blockframe.c: Update copyright year.
14212 (inside_entry_func): Don't treat a zero PC specially.
14213
86fbe6cc
EZ
142142004-01-14 Elena Zannoni <ezannoni@redhat.com>
14215
14216 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14217 variable.
14218 (gcore_create_callback): Ditto. Skip any memory segment that has
14219 no permissions set.
14220
63d06c5c
DC
142212004-01-14 David Carlton <carlton@kealia.com>
14222
14223 Change symbols for C++ nested types to contain the fully qualified
14224 name, if possible. (At least in the DWARF-2 case.) Partial fix
14225 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14226 c++/895.
14227 * c-exp.y (qualified_type): Handle types nested within classes.
14228 * cp-namespace.c: Update comments.
14229 (cp_set_block_scope): Delete #if 0.
14230 (cp_lookup_nested_type): Handle types nested within classes.
14231 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14232 when appropriate.
14233 (add_partial_symbol): Add the name of the enclosing namespace to
14234 types.
14235 (pdi_needs_namespace): New.
14236 (add_partial_namespace): Tweak comment.
14237 (add_partial_structure): New.
14238 (psymtab_to_symtab_1): Initialize processing_current_prefix
14239 here...
14240 (process_die): instead of here.
14241 (read_structure_scope): Try to figure out the name of the class or
14242 namespace that the structure might be defined within.
14243 (read_enumeration): Generate fully-qualified names, if possible.
14244 (read_namespace): Don't set name to NULL.
14245 (die_specification): New.
14246 (new_symbol): Generate fully-qualified names for types.
14247 (read_type_die): Determine appropriate prefix.
14248 (determine_prefix): New.
14249 (typename_concat): New.
14250 (class_name): New.
14251 * valops.c (value_aggregate_elt): Pass NOSIDE to
14252 value_struct_elt_for_reference.
14253 (value_struct_elt_for_reference): Make static, add NOSIDE
14254 parameter, call value_maybe_namespace_elt as a last resort.
14255 (value_namespace_elt): Break out code into
14256 value_maybe_namespace_elt.
14257 (value_maybe_namespace_elt): New.
14258
87783b8b
AC
142592004-01-12 Andrew Cagney <cagney@redhat.com>
14260
14261 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14262 cooked floating-point registers.
14263 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14264 and value_to_register.
14265
6503b91e
AC
142662004-01-13 Andrew Cagney <cagney@redhat.com>
14267
14268 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14269 * gdbarch.c: Re-generate.
14270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14271 FUNCTION_START_OFFSET.
14272 * v850-tdep.c (v850_gdbarch_init): Ditto.
14273 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14274 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14275 * sh-tdep.c (sh_gdbarch_init): Ditto.
14276 * s390-tdep.c (s390_gdbarch_init): Ditto.
14277 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14278 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14279 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14280 * mips-tdep.c (mips_gdbarch_init): Ditto.
14281 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14282 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14284 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14285 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14286 * i386-tdep.c (i386_gdbarch_init): Ditto.
14287 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14288 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14289 * frv-tdep.c (frv_gdbarch_init): Ditto.
14290 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14291 * cris-tdep.c (cris_gdbarch_init): Ditto.
14292 * avr-tdep.c (avr_gdbarch_init): Ditto.
14293 * arm-tdep.c (arm_gdbarch_init): Ditto.
14294 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14295
ea1dd7bc
DJ
142962004-01-13 Daniel Jacobowitz <drow@mvista.com>
14297
14298 * infrun.c (follow_fork_mode_ask): Remove.
14299 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14300 (follow_fork): Simplify and remove internal error for
14301 follow_fork_mode_ask.
14302 (_initialize_infrun): Update "set follow-fork-mode" help text.
14303
0f0cffd2
AC
143042004-01-13 Andrew Cagney <cagney@redhat.com>
14305
14306 * configure.in: Update copyright year.
14307 (build_warnings): Add -Wunused-label.
14308 * configure: Re-generate.
14309
de38af99
AC
143102004-01-12 Andrew Cagney <cagney@redhat.com>
14311
954a7fba
AC
14312 * exec.h (exec_ops): Make "extern".
14313
de38af99
AC
14314 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14315 the function is void.
14316 (mips_pseudo_register_write): Ditto.
14317
1a111ce3
AC
143182004-01-12 Andrew Cagney <cagney@redhat.com>
14319
14320 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14321 call. Never defined.
14322 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14323 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14324 (struct sparc_gregset, struct regcache): Ditto.
14325 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14326
48efe704
AC
143272004-01-12 Andrew Cagney <cagney@redhat.com>
14328
14329 * mi/ChangeLog: Delete file. Renamed to ...
14330 * mi/ChangeLog-1999-2003: New file.
14331 * tui/ChangeLog: Delete file. Renamed to ...
14332 * tui/ChangeLog-1998-2003: New file.
fe61caab 14333
a54124c5
MK
143342004-01-11 Mark Kettenis <kettenis@gnu.org>
14335
2ca62865
MK
14336 * sparc64nbsd-tdep.c: Include "regset.h".
14337 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14338 Remove variables.
14339 (fetch_core_registers): Remove function.
14340 (sparc64nbsd_core_fns): Remove variable.
14341 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14342 functions.
14343 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14344 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14345 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14346
ca9d58e9
MK
14347 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14348 sparc_extract_struct_value_address.
14349 (sparc32_gdbarch_init): Set extract_struct_value_address.
14350 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14351 function.
14352 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14353 return_value_on_stack.
14354
3cc87ec0
MK
14355 * NEWS: Mention that %cs and %ss have been added to the AMD64
14356 configurations
14357
5bf00f29
MK
14358 * frame.c: Update copyright year.
14359 (get_prev_frame): Improve comment.
14360
4f7ec84e
MK
14361 * sparc64fbsd-tdep.c: Include "regset.h".
14362 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14363 Remove variables.
14364 (fetch_core_registers): Remove function.
14365 (sparc64fbsd_core_fns): Remove variable.
14366 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14367 functions.
14368 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14369 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 14370 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 14371
4e7b0cd3
MK
14372 * sparcnbsd-tdep.c: Include "regset.h".
14373 (fetch_core_registers): Remove function.
14374 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14375 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14376 functions.
14377 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14378 TDEP->fpregset.
46b58ce9 14379 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 14380
a54124c5
MK
14381 * sparc-tdep.h (struct regset): Provide opaque declaration.
14382 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14383 fpregset and sizeof_fpregset members.
14384 * sparc-tdep.c (struct regset): Provide opaque declaration.
14385 (sparc_regset_from_core_section): New function.
14386 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14387 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14388 Set regset_from_core_section when appropriate.
14389
29ff87c5
MK
143902004-01-10 Mark Kettenis <kettenis@gnu.org>
14391
79b1ab3d
MK
14392 * x86-64-tdep.c (amd64_non_pod_p): New function.
14393 (amd64_classify_aggregate): Return class memory for non-POD
14394 C++ structure types.
14395
6470d250
MK
14396 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14397 argument. Use it to reserve a register if necessary.
14398 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14399 amd64_push_arguments.
14400
562c50c2
MK
14401 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14402
af233647
MK
14403 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14404 register numbers in comments.
14405 * x86-64-tdep.h: Update copyright year.
14406 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14407 Adjust for addition of %cs and %ss.
14408 * amd64fbsd-nat.c: Update copyright year.
14409 (reg_offset): Add register offsets for %cs and %ss.
14410 * amd64fbsd-tdep.c: Update copyright year.
14411 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14412 (amd64fbsd_sc_reg_offset): Likewise.
14413 * x86-64-linux-nat.c: Update copyright year.
14414 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14415 and %ss.
14416 * amd64nbsd-nat.c: Update copyright year.
14417 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14418 * amd64nbsd-tdep.c: Update copyright year.
14419 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14420 * x86-64-linux-tdep.c: Update copyright year.
14421 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14422 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14423 * regformats/reg-x86-64.dat: Add %cs and %ss.
14424
29ff87c5
MK
14425 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14426 variables to prevent long lines. Update comments to reflect
14427 reality.
14428
38d518c9
EZ
144292004-01-09 David Carlton <carlton@kealia.com>
14430
14431 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14432 * dwarf2read.c (read_namespace): Pull out name-generating code
14433 into namespace_name. Rename previous_namespace to previous_prefix
14434 and processing_current_namespace to processing_current_prefix..
14435 (namespace_name): New function.
14436 (add_partial_symbol): Substitute uses of pdi->name with
14437 actual_name.
14438 * cp-support.h: Rename processing_current_namespace to
14439 processing_current_prefix.
14440 Update copyright year.
14441 * cp-namespace.c: Rename processing_current_namespace to
14442 processing_current_prefix.
14443 Update copyright year.
fe61caab 14444
1e4728e7
AC
144452004-01-09 Andrew Cagney <cagney@redhat.com>
14446
14447 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14448
c77c642a
MK
144492004-01-09 Mark Kettenis <kettenis@gnu.org>
14450
14451 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14452 complaining.
14453 (process_one_symbol): Deal with N_PATCH stabs.
14454
b44e9041
EZ
144552004-01-09 Elena Zannoni <ezannoni@redhat.com>
14456
14457 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14458 ifdeffed code.
14459 Update copyright year.
38d518c9 14460
eccfb640
MC
144612004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14462
14463 * config/pa/tm-hppa.h: Update extern declarations for
14464 hppa32_hpux_frame_saved_pc_in_sigtramp,
14465 hppa32_hpux_frame_base_before_sigtramp, and
14466 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14467
848c5feb
MC
144682004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14469
14470 * config/pa/tm-hppah.h: Update copyright years.
14471
3cc5d663
AC
144722004-01-08 Andrew Cagney <cagney@redhat.com>
14473
14474 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14475 (mips_o32_reg_struct_has_addr): Delete function.
14476 (mips_gdbarch_init): Update.
14477 (mips_extract_struct_value_address): Delete function.
14478
bfec0b41
JJ
144792004-01-08 David Mosberger <davidm@hpl.hp.com>
14480
14481 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14482 reality.
14483
16e109ca
AC
144842004-01-07 Andrew Cagney <cagney@redhat.com>
14485
6214a8a1
AC
14486 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14487 architecture's elf flags (when available).
14488
8d5838b5
AC
14489 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14490 FPU to the start, check the MIPS FPU when looking for an old
14491 architecture.
14492 (set_mipsfpu_single_command): Update the architecture.
14493 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14494
480d3dd2
AC
14495 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14496 (mips_mask_address_p): Add "tdep" parameter.
14497 (show_mask_address, mips_addr_bits_remove): Update.
14498 (mips_dump_tdep): Update.
14499 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14500 (MIPS_STACK_ARGSIZE): Delete macro.
14501 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14502 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14503 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14504 (mips_dump_tdep): Update.
14505 (MIPS_SAVED_REGSIZE): Delete macro.
14506 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14507 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14508 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14509 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14510 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14511 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14512 (mips_pop_frame, return_value_location): Update.
14513 (mips_n32n64_return_value, mips_dump_tdep): Update.
14514
ec03c1ac
AC
14515 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14516 MIPS ABI.
14517
16e109ca
AC
14518 * mips-tdep.c: Update copyright.
14519 (mips_gdbarch_init): Merge two code blocks handling the register
14520 name and number layout.
14521
15255275
MS
145222004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14523
14524 * tracepoint.c (validate_actionline): Fix segv at EOF
14525
9f9057da
MC
145262004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14527
14528 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14529 properly for static fields.
14530
0127c0d3 145312004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14532 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14533
14534 * disasm.c: Update copyright to include 2004.
14535 (do_mixed_source_and_assembly): For uiout asm list
14536 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14537 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14538 the tuple/list. Move check for whether to close off the
fe61caab 14539 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14540 on each loop iteration.
14541
5269965e
AC
145422004-01-05 Andrew Cagney <cagney@redhat.com>
14543
54f1137d
AC
14544 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14545 should be a switch case and not a label.
14546 * mips-tdep.c (mips32_next_pc): Delete unused labels
14547 "greater_equal_branch" and "less_zero_branch".
14548 * jv-valprint.c (java_print_value_fields): Delete unused label
14549 "flush_it".
14550
5269965e
AC
14551 * target.c (unpush_target): Only close a target that is in the
14552 target stack.
14553
dbc22fa1
MK
145542004-01-05 Mark Kettenis <kettenis@gnu.org>
14555
9515395e
MK
14556 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14557 address from [sp + 64] instead of %o2.
14558
dbc22fa1
MK
14559 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14560 fixes PR backtrace/1476.
14561
5439edaa
AC
145622004-01-05 Andrew Cagney <cagney@redhat.com>
14563
14564 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14565 move to start of file.
14566 * i386-tdep.h (struct regcache): Add opaque declaration.
14567 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14568 declaration.
14569 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14570 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14571 * win32-nat.c (fake_create_process): Use ISO C style definition.
14572 * stabsread.c (define_symbol): Delete #ifndef
14573 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14574 stabs_argument_has_addr call, macro never defined.
14575
19061abe
MC
145762004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14577
14578 * op50-rom.c: Delete.
14579 * w89k-rom.c: Delete.
14580 * Makefile.in: Remove references.
14581
e53bef9f
MK
145822004-01-04 Mark Kettenis <kettenis@gnu.org>
14583
14584 * x86-64-tdep.c: Update copyright year.
14585 (struct amd64_register_info): Rename from x86_64_register_info.
14586 (amd64_register_info): Rename from x86_64_register_info.
14587 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14588 (amd64_register_name): Rename from x86_64_register_name.
14589 (amd64_register_type): Rename from x86_64_register_type.
14590 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14591 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14592 (amd64_dwarf_reg_to_regnum): Rename from
14593 x86_64_dwarf_reg_to_regnum.
14594 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14595 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14596 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14597 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14598 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14599 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14600 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14601 (amd64_frame_cache): Rename from x86_64_frame_cache.
14602 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14603 (amd64_frame_prev_register): Rename from
14604 x86_64_frame_prev_register.
14605 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14606 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14607 (amd64_sigtramp_frame_cache): Rename from
14608 x86_64_sigtramp_frame_cache.
14609 (amd64_sigtramp_frame_prev_register): Rename from
14610 x86_64_sigtramp_frame_prev_register.
14611 (amd64_sigtramp_frame_unwind): Rename from
14612 x86_64_sigtramp_frame_unwind.
14613 (amd64_sigtramp_frame_sniffer): Rename from
14614 x86_64_sigtramp_frame_sniffer.
14615 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14616 (amd64_frame_base): Rename from x86_64_frame_base.
14617 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14618 (amd64_frame_align): Rename from x86_64_frame_align.
14619 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14620 (amd64_regset_from_core_section): Rename from
14621 x86_64_regset_from_core_section.
14622 (x86_64_init_abi): Update comments.
14623
fca6aa58
NR
146242004-01-04 Nick Roberts <nick@nick.uklinux.net>
14625
14626 * MAINTAINERS (write after approval): Add myself.
14627
8ada74e3
MK
146282004-01-04 Mark Kettenis <kettenis@gnu.org>
14629
14630 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14631 `float' arguments.
14632
5154b0cd
MK
146332004-01-04 Mark Kettenis <kettenis@gnu.org>
14634
14635 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14636 such that it mentions a specific version of GCC that exhibits this
14637 bug.
14638
fb316966
MK
146392004-01-03 Mark Kettenis <kettenis@gnu.org>
14640
200cc553
MK
14641 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14642 structure that has a single `float' member, store it in %f1 in
14643 addition to %f0.
14644
e226a4a0
MK
14645 * sparc-sol2-nat.c: Add missing '\'.
14646
b9d4c5ed
MK
14647 * sparc-tdep.c (sparc32_return_value): New function.
14648 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14649 Remove functions.
14650 (sparc32_gdbarch_init): Set return_value, don't set
14651 extract_return_value, store_return_value, use_struct_convention
14652 and return_value_on_stack.
14653
fb316966
MK
14654 * sparc-sol2-nat.c: Add missing ')'.
14655
1af510a8
JB
146562004-01-03 J. Brobecker <brobecker@gnat.com>
14657
14658 * infrun.c (handle_step_into_function): New function.
14659 (handle_inferior_event): Extract out some code into the new
14660 function above.
14661
5cf4d23a
JB
146622004-01-03 J. Brobecker <brobecker@gnat.com>
14663
14664 * infrun.c (handle_inferior_event): Move the declaration of
14665 real_stop_pc inside the if blocks where it is used.
14666
60af1db2
MK
146672004-01-03 Mark Kettenis <kettenis@gnu.org>
14668
14669 * sparc64-tdep.c (sparc64_16_byte_align_p)
14670 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14671 Use check_typedef to get subtypes of structures and unions.
14672 (sparc64_store_return_value): Fix calculation of the appropriate
14673 offset into VALBUF when storing a structure or union.
14674 (sparc64_return_value): New function.
14675 (sparc64_use_struct_convention): Remove function.
14676 (sparc64_init_abi): Set return_value, don't set
14677 extract_return_value, store_return_value and
14678 use_struct_convention.
14679
1a901d3f
EZ
146802004-01-03 Eli Zaretskii <eliz@elta.co.il>
14681
14682 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14683 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14684 gdb/config/alpha/xm-alphaosf.h,
14685 gdb/config/powerpc/tm-ppcle-eabi.h,
14686 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14687 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14688 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14689 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14690 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14691 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14692 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14693 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14694 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14695 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14696 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14697 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14698 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14699 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14700 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14701 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14702 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14703 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14704 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14705 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14706 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14707 Remove lines for .cvsignore files.
14708
ef52e463
JB
147092004-01-03 J. Brobecker <brobecker@gnat.com>
14710
14711 * infrun.c: Back out the previous change.
14712
cb1bf9dc
MK
147132004-01-03 Mark Kettenis <kettenis@gnu.org>
14714
f0424ef6
MK
14715 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14716 sparc-*-sunos4* to the list of REMOVED configurations.
14717
cb1bf9dc
MK
14718 * configure.tgt: Add back sparc-*-vxworks*.
14719 * remote-vxsparc.c: Remove all includes except for "defs.h",
14720 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14721 Include "sparc-tdep.h".
14722 (SPARC_R_G1): New define.
14723 (vxsparc_gregset): New variable.
14724 (ext_format_sparc): Remove extern declaration.
14725 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14726 sparc32_supply_fpregset.
14727 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14728 sparc_collect_rwindow and sparc32_collect_fpregset.
14729 * config/sparc/tm-vxworks.h: New file, based on recently removed
14730 tm-vxsparc.h.
14731 * config/sparc/vxworks.mt: New file, based on recently removed
14732 vxworks.mt.
fe61caab 14733
5e938f9f
JB
147342004-01-03 J. Brobecker <brobecker@gnat.com>
14735
14736 * infrun.c (handle_step_into_function): New function.
14737 (handle_inferior_event): Extract out some code into the new
14738 function above.
14739
386c036b
MK
147402004-01-02 Mark Kettenis <kettenis@gnu.org>
14741
14742 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14743 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14744 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14745 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14746 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14747 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14748 (sparc_nat_h): New variable.
14749 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14750 (tm-sun4os4.h): Remove dependency.
14751 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14752 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14753 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14754 sparc-tdep.o): Update dependencies.
14755 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14756 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14757 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14758 dependencies.
14759 * configure.host: Remove existing sparc-*-lynxos*,
14760 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14761 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14762 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14763 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14764 triplets.
14765 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14766 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14767 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14768 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14769 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14770 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14771 sparc64-*-solaris2* and sparc64-*-* triplets.
14772 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14773 "symtab.h" and "objfiles.h".
14774 (BIAS): Remove define.
14775 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14776 (X_DISP19): Remove macros.
14777 (sparc_fetch_instruction): Remove function.
14778 (struct gdbarch_tdep): Remove definition.
14779 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14780 (sparc_breakpoint_from_pc): Remove function.
14781 (struct sparc64_frame_cache): Remove definition.
14782 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14783 sparc64_unwind_pc): Remove functions.
14784 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14785 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14786 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14787 (sparc64_frame_cache): Change return type to `struct
14788 sparc_frame_cache *'. Simply call sparc_frame_cache.
14789 (sparc64_frame_this_id, sparc64_frame_prev_register,
14790 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14791 instead of `struct sparc64_frame_cache.
14792 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14793 sparc_analyze_control_transfer, sparc_software_single_step,
14794 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14795 _initialize_sparc64_tdep): Remove functions.
14796 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14797 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14798 macros.
14799 (sparc64_supply_gregset, sparc64_collect_gregset,
14800 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14801 (sparc64_init_abi): New function.
14802 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14803 inclusion guard. Include "sparc-tdep.h".
14804 (BIAS): Define.
14805 (r_tstate_offset, r_fprs_offset): New defines.
14806 (enum sparc_regnum): Remove defenition.
14807 (enum sparc64_regnum): Reformat.
14808 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14809 (sparc64_init_abi, sparc64_supply_gregset,
14810 sparc64_collect_gregset, sparc64_supply_fpregset,
14811 sparc64_collect_fpregset): New prototypes.
14812 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14813 Add extern declarations.
14814 (sparc64_sol2_init_abi): New prototype.
14815 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14816 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14817 prototypes.
14818 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14819 "sparnbsd-nat.h".
14820 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14821 functions.
14822 (_initialize_sparc64fbsd_nat): Remove initialization of
14823 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14824 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14825 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14826 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14827 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14828 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14829 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14830 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14831 (sparc64fbsd_r_y_offset): Remove variables.
14832 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14833 Make static and const.
14834 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14835 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14836 functions.
14837 (sparc64fbsd_gregset): New variable.
14838 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14839 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14840 and sparc64_supply_fpregset.
14841 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14842 (sparc64fbsd_sigtramp_frame_this_id)
14843 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14844 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14845 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14846 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14847 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14848 * sparcnbsd-tdep.c: Update copyright year. Include
14849 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14850 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14851 "value.h" and "sparcnbsd-tdep.h".
14852 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14853 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14854 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14855 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14856 defines.
14857 (sparcnbsd_gregset): New variable.
14858 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14859 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14860 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14861 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14862 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14863 variables.
14864 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14865 (sparc32nbsd_sigcontext_frame_this_id)
14866 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14867 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14868 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14869 (sparcnbsd_get_longjmp_target_32,
14870 sparcnbsd_get_longjmp_target_64): Remove functions.
14871 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14872 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14873 sparcnbsd_init_elf): Remove.
14874 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14875 (sparcnbsd_elf_init_abi): New functions.
14876 (_initialize_sparcnbsd_tdep): New prototype.
14877 (_initialize_sparnbsd_tdep): Update.
14878 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14879 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14880 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14881 * config/sparc/linux.mh: Update comment.
14882 (XM_FILE, HOST_IPC): Remove variables.
14883 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14884 sparc-linux-nat.o.
14885 * config/sparc/linux.mt: Update comment.
14886 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14887 * config/sparc/nbsd.mt: Reformat.
14888 * config/sparc/nbsd64.mh: Update comment.
14889 (NATDEPFILES): Add sparc-nat.o.
14890 * config/sparc/nbsd64.mt: Update comment.
14891 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14892 (TM_FILE): Set to tm-nbsd.h.
14893 * config/sparc/nbsdelf.mh: Update comment.
14894 (NATDEPFILES): Add sparc-nat.o.
14895 (XM_FILE): Delete.
14896 * config/sparc/nbsdaout.mh: Update comment.
14897 (NATDEPFILES): Add sparc-nat.o
14898 (XM_FILE): Delete.
14899 * config/sparc/nm-linux.h: Update copyright year. Don't include
14900 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14901 inclusion.
14902 (KERNEL_U_SIZE): Remove define.
14903 (kernel_u_size): Remove prototype.
14904 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14905 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14906 "regcache.h".
14907 (CHILD_PREPARE_TO_STORE): Remove define.
14908 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14909 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14910 sparcnbsd-nat.c: Rewrite files.
14911 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14912 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14913 sparcnbsd-tdep.h: Remove files.
14914 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14915 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14916 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14917 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14918 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14919 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14920 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14921 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14922 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14923 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14924 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14925 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14926 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14927 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14928 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14929 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14930 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14931 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14932 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14933
ee84457a
AC
149342004-01-02 Andrew Cagney <cagney@redhat.com>
14935
14936 From 2003-12-18 Kazuhiro Inaoka:
14937 * configure.host: Add m32r-linux target.
14938
0bc2134e
MC
149392004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14940
14941 * top.c (print_gdb_version): Update year to 2004.
14942
89a72f9c
MM
149432004-01-02 Mark Mitchell <mark@codesourcery.com>
14944
14945 * MAINTAINERS: Add myself to the write-after-approval category.
14946
86b013ed
DJ
149472004-01-02 Daniel Jacobowitz <drow@mvista.com>
14948
14949 From Bernardo Innocenti <bernie@develer.com>:
14950 * configure.tgt: Add uClinux target.
14951
e42c9534
AC
149522004-01-02 Andrew Cagney <cagney@redhat.com>
14953
14954 * utils.c (do_my_cleanups): Make static, add forward declaration.
14955 * defs.h (do_my_cleanups): Delete declaration.
14956
162467d3
EZ
149572004-01-02 Eli Zaretskii <eliz@elta.co.il>
14958
14959 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14960 bfd/ChangeLog-0203.
14961
78434e59
MK
149622004-01-02 Mark Kettenis <kettenis@gnu.org>
14963
14964 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14965 in <machine/reg.h>.
14966 * configure, config.in: Regenerate.
14967
48efe704
AC
14968For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14969tui/ChangeLog-1998-2003.
c906108c
SS
14970\f
14971Local Variables:
14972mode: change-log
14973left-margin: 8
14974fill-column: 74
14975version-control: never
14976End:
This page took 1.314719 seconds and 4 git commands to generate.