2004-05-26 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
779af9e3
RC
12004-05-26 Randolph Chung <tausq@debian.org>
2
3 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4 in header file.
5
c23968a2
JB
62004-05-25 Joel Brobecker <brobecker@gnat.com>
7
8 * NEWS: Document new "start" command.
9
3a7d1c27
RC
102004-05-25 Randolph Chung <tausq@debian.org>
11
12 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
13 hppa-linux.
14
43613416
RC
152004-05-25 Randolph Chung <tausq@debian.org>
16
17 * hppa-hpux-tdep.c (offsetof): Define.
18 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
19 (hppa32_hpux_frame_base_before_sigtramp)
20 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
21 (hppa64_hpux_frame_saved_pc_in_sigtramp)
22 (hppa64_hpux_frame_base_before_sigtramp)
23 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
24 functions.
25 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
26 (hppa_hpux_sigtramp_frame_unwind_cache)
27 (hppa_hpux_sigtramp_frame_this_id)
28 (hppa_hpux_sigtramp_frame_prev_register)
29 (hppa_hpux_sigtramp_frame_unwind)
30 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
31 (hppa_hpux_init_abi): Register sigtramp unwinder.
32 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
33
6d1be3f1
RC
342004-05-25 Randolph Chung <tausq@debian.org>
35
36 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
37 and multiple stack unwinds.
38 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
39
97c34f65
AC
402004-05-25 Andrew Cagney <cagney@gnu.org>
41
42 * symfile.h (symbol_file_add_from_memory): Delete declaration.
43 * symfile-mem.h: Delete file.
44 * symfile-mem.c: Do not include "symfile-mem.h".
45 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
46 "struct bfd_section". When an error do not bother returning NULL.
47 (add_symbol_file_from_memory_command): Use "struct bfd" and
48 "struct bfd_section".
49 * Makefile.in (symfile_mem_h): Delete.
50 (symfile-mem.o): Update dependencies.
51
e23cbd82
NR
522004-05-25 Nick Roberts <nickrob@gnu.org>
53
54 * gdb-mi.el: New file.
55
20d2ca3e
AC
562004-05-25 Andrew Cagney <cagney@gnu.org>
57
58 * inftarg.c: Include "observer.h".
59 (child_attach, child_create_inferior): Notify inferior_created.
60 * corelow.c: Include "observer.h".
61 (core_open): Notify inferior_created.
62 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
63
c27cda74
AC
642004-05-25 Andrew Cagney <cagney@gnu.org>
65
66 * target.h (struct target_ops): Add from_tty to
67 to_create_inferior.
68 (target_create_inferior, find_default_create_inferior): Update.
69 * infcmd.c (run_command): Update.
70 * wince.c (child_create_inferior): Update.
71 * win32-nat.c (child_create_inferior): Update.
72 * uw-thread.c (uw_thread_create_inferior): Update.
73 * thread-db.c (thread_db_create_inferior): Update.
74 * target.c (debug_to_create_inferior)
75 (find_default_create_inferior): Update.
76 (maybe_kill_then_create_inferior): Update.
77 * sol-thread.c (sol_thread_create_inferior): Update.
78 * remote.c (extended_remote_async_create_inferior)
79 (extended_remote_create_inferior): Update.
80 * remote-vx.c (vx_create_inferior): Update.
81 * remote-st.c (st2000_create_inferior): Update.
82 * remote-sim.c (gdbsim_create_inferior): Update.
83 * remote-sds.c (sds_create_inferior): Update.
84 * remote-rdp.c (remote_rdp_create_inferior): Update.
85 * remote-rdi.c (arm_rdi_create_inferior): Update.
86 * remote-m32r-sdi.c (m32r_create_inferior): Update.
87 * remote-e7000.c (e7000_create_inferior): Update.
88 * procfs.c (procfs_create_inferior): Update.
89 * ocd.c (ocd_create_inferior): Update.
90 * ocd.h (ocd_create_inferior): Update.
91 * nto-procfs.c (procfs_create_inferior): Update.
92 * monitor.c (monitor_create_inferior): Update.
93 * lin-lwp.c (lin_lwp_create_inferior): Update.
94 * inftarg.c (child_create_inferior): Update.
95 * hpux-thread.c (hpux_thread_create_inferior): Update.
96 * gnu-nat.c (gnu_create_inferior): Update.
97
1db2a798
AC
982004-05-25 Andrew Cagney <cagney@gnu.com>
99
100 * MAINTAINERS: Update e-mail address.
101
007d08bb
RC
1022004-05-24 Randolph Chung <tausq@debian.org>
103
104 * thread.c (info_threads_command, thread_apply_all_command)
105 (thread_apply_command, thread_command, do_captured_thread_select):
106 Remove HPUXHPPA-specific code.
107
69e7b95e
RC
1082004-05-24 Randolph Chung <tausq@debian.org>
109
110 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
111 unused symbols.
112 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
113 references.
114
a4d5f2e0
JB
1152004-05-24 Joel Brobecker <brobecker@gnat.com>
116
117 * infcmd.c (kill_if_already_running): New function, extracted
118 from run_command().
119 (run_command): Replace extracted code by call to
120 kill_if_already_running().
121 (start_command): New function.
122 (_initialize_infcmd): Add "start" command.
123
bf2ca189
MK
1242004-05-24 Mark Kettenis <kettenis@gnu.org>
125
126 Add OpenBSD/m88k support.
127 * NEWS (New native configurations): Mention OpenBSD/m88k.
128 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
129 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
130 * Makefile.in (m88k_tdep_h): New variable.
131 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
132 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
133 * configure.host: Add m88*-*-openbsd*.
134 * configure.tgt: Add m88*-*-openbsd*.
135
80fadb11
JB
1362004-05-24 Jim Blandy <jimb@redhat.com>
137
138 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
139 to approve changes.
140
19e2d14b
KB
1412004-05-24 Kevin Buettner <kevinb@redhat.com>
142
143 * symtab.c (fixup_section): Search section table when lookup by
144 name fails.
145
1b07b470
RC
1462004-05-24 Randolph Chung <tausq@debian.org>
147
148 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
149 be "small_struct".
150
368702b1
MK
1512004-05-24 Mark Kettenis <kettenis@gnu.org>
152
5df97fde
MK
153 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
154 register number in regcache_raw_collect call.
155 (m68kbsd_collect_fpregset): Likewise.
156 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
157
368702b1
MK
158 * regset.h (struct regset): Add back `regset' member.
159
a770d4ec
MK
1602004-05-23 Mark Kettenis <kettenis@gnu.org>
161
70f9f479
MK
162 * configure.in: Check for td_pcb in `struct thread'.
163 * configure, config.in: Regenerated.
164
2e16d79e
MK
165 * dpx2-nat.c: Remove file.
166 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
167 (dpx2-nat.o): Remove dependencies.
168
492cf391
MK
169 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
170 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
171 (amd64obsd_supply_pcb): New function.
172 (_initialize_amd64obsd_nat): Enable libkvm interface.
173 * Makefile.in (amd64obsd-nat.o): Update dependencies.
174 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
175 (LOADLIBES): New variable.
176
a770d4ec
MK
177 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
178 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
179 (sparc32nbsd_supply_pcb): New function.
180 (_initialize_sparcnbsd_nat): Enable libkvm interface.
181 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
182 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
183 (LOADLIBES): New variable.
184
9ea75c57
MK
1852004-05-22 Mark Kettenis <kettenis@gnu.org>
186
2e0c3539
MK
187 * bsd-kvm.c, bsd-kvm.h: New files.
188 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
189 "bsd-kvm.h".
190 (i386fbsd_supply_pcb): New function.
191 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
192 (i386fbsd-nat.o): Update dependencies.
193 (bsd_kvm_h): New variable.
194 (bsd-kvm.o): New dependency.
195 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
196 (LOADLIBES): New variable.
197
9ea75c57
MK
198 * regset.c: Tweak comment.
199 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
200 macro.
201 * regset.h: Update copyright year.
202 (struct regset): Remove `descr' member, add `gdbarch' member.
203 (regset_alloc): Adjust prototype and comment.
204 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
205 (i386_supply_fpregset): Likewise.
206 (i386_regset_from_core_section): Update call to regset_alloc.
207 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
208 REGSET->arch.
209 (i386obsd_aout_regset_from_core_section): Update call to
210 regset_alloc.
211 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
212 REGSET->arch.
213 (i386nbsd_aout_regset_from_core_section): Update call to
214 regset_alloc.
215 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
216 REGSET->arch.
217 (amd64_regset_from_core_section): Update call to regset_alloc.
218 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
219 REGSET->arch.
220 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
221 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
222 &sparc32nbsd_gregset in sparc32_supply_gregset call.
223 (sparc32nbsd_init_abi): Update call to regset_alloc.
224 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
225 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
226 (sparc64obsd_init_abi): Update call to regset_alloc.
227 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
228 &sparc64nbsd_gregset in sparc64_supply_gregset call.
229 (sparc64nbsd_init_abi): Update call to regset_alloc.
230 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
231 &sparc64fbsd_gregset in sparc64_supply_gregset call.
232 (sparc64fbsd_init_abi): Update call to regset_alloc.
233
867e2dc5
JB
2342004-05-22 Jim Blandy <jimb@redhat.com>
235
236 * ppc-tdep.h (spe_register_p): New declaration.
237 (struct gdbarch_tdep): New members: ppc_acc_regnum and
238 ppc_spefscr_regnum.
239 * rs6000-tdep.c (spe_register_p): New function.
240 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
241 spefscr.
242 (rs6000_gdbarch_init): Initialize the new members of the tdep
243 structure.
244
617a4cba
JB
2452004-05-21 Jim Blandy <jimb@redhat.com>
246
0397dee1
JB
247 * ppc-linux-nat.c (fetch_register): Move code back to be next
248 to the comment that describes it. (Moved code, instead of
249 comment, for symmetry with store_register.)
250
617a4cba
JB
251 Allocate regset structures in the gdbarch's obstack, not using
252 xmalloc.
253 * regset.c (regset_alloc): Renamed from regset_xmalloc.
254 Add 'arch' argument. Allocate the regset on arch's obstack, not
255 using xmalloc.
256 * regset.h (regset_alloc): Update declaration.
257 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
258 gdbarch argument.
259 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
260 * i386-tdep.c (i386_regset_from_core_section): Same.
261 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
262 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
263 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
264 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
265 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
266 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
267
9aa3914d
JB
2682004-05-21 Joel Brobecker <brobecker@gnat.com>
269
270 * config/djgpp/fnchange.lst: Undo previous change, was useless.
271
99c87dab
JB
2722004-05-21 Jim Blandy <jimb@redhat.com>
273
274 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
275 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
276
c2b6b4aa
JB
2772004-05-20 Jim Blandy <jimb@redhat.com>
278
279 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
280
144529d0
MK
2812004-05-20 Mark Kettenis <kettenis@gnu.org>
282
283 * regset.h: Make prototype const-correct.
284 * regset.c (regset_xmalloc): Make const-correct.
285
4725b721
PH
2862004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
287
288 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
289 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
290 (symbol_search_name): Declare.
291
292 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
293 (iter_name_next_hashed): Ditto.
294 (iter_name_next_linear): Ditto.
295 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
296
297 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
298 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
299 (symbol_search_name): New function.
300
301 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
302
303 * minsyms.c (build_minimal_symbol_hash_tables): Change
304 test for adding to demangled hash table to check for difference
305 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
306
be07a590
JB
3072004-05-19 Jim Blandy <jimb@redhat.com>
308
309 Use a constructor function to create regset structures.
310 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
311 (struct regset): Use supply_regset_ftype. Add new
312 'collect_regset' member.
313 (regset_xmalloc): New declaration.
314 * regset.c: New file.
315 * am64-tdep.c (amd64_regset_from_core_section): Use
316 regset_xmalloc to construct regset structures.
317 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
318 * i386-tdep.c (i386_regset_from_core_section): Same.
319 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
320 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
321 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
322 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
323 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
324 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
325 * Makefile.in (COMMON_OBS): Add regset.o.
326 (regset.o): New rule.
327
604368f5
JB
3282004-05-19 Joel Brobecker <brobecker@gnat.com>
329
330 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
331 and pthread_cond_wait.c.
332
82d69f8b
JB
3332004-05-18 Jim Blandy <jimb@redhat.com>
334
335 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
336 before the mach-specific switch, and then let the individual cases
337 override the defaults, rather than leaving them uninitialized
338 until the switch and then setting them in each case.
339
5859efe5
RC
3402004-05-18 Randolph Chung <tausq@debian.org>
341
342 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
343 millicode functions.
344
9ca80cf8
RC
3452004-05-18 Randolph Chung <tausq@debian.org>
346
347 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
348 references to dld_flags_buffer consistent.
349
ed70ba00
RC
3502004-05-18 Randolph Chung <tausq@debian.org>
351
352 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
353 it for unwinding the stack.
354
63100632
RC
3552004-05-18 Randolph Chung <tausq@debian.org>
356
357 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
358 Undefine these so we can overide them using gdbarch.
359
090ccbb7
RC
3602004-05-18 Randolph Chung <tausq@debian.org>
361
362 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
363 handling for 64-bit HPUX (elf).
364
594706e6
DJ
3652004-05-18 Daniel Jacobowitz <dan@debian.org>
366
367 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
368 constants.
369 * amd64-tdep.c (amd64_skip_prologue): Likewise.
370 * ia64-tdep.c (examine_prologue): Likewise.
371 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
372 * v850-tdep.c (v850_fix_call_dummy): Likewise.
373
e5483145
MK
3742004-05-18 Mark Kettenis <kettenis@gnu.org>
375
376 * vax-tdep.c (vax_return_value): Implement
377 RETURN_VALUE_ABI_RETURNS_ADDRESS.
378
caed1a45
MK
3792004-05-17 Mark Kettenis <kettenis@gnu.org>
380
381 * vax-tdep.c (vax_return_value): Fix typo.
382
3c0b7db2
AC
3832004-05-17 Andrew Cagney <cagney@redhat.com>
384
5aae53e5
AC
385 * MAINTAINERS: Mark Salter was also responsible for
386 testsuite/config/
387
3c0b7db2
AC
388 * NEWS: Mention signal fixes.
389
22b0923d
RC
3902004-05-17 Randolph Chung <tausq@debian.org>
391
392 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
393 check to see if we are unwinding an export stub. Export stubs clobber
394 the %rp in the call path and stores the original rp in a stack slot.
395
22f2b2f3
JB
3962004-05-17 Jim Blandy <jimb@redhat.com>
397
398 * MAINTAINERS: Update address for J.T. Conklin.
399
cea96d64
RC
4002004-05-17 Randolph Chung <tausq@debian.org>
401
402 * hppa-tdep.c: Remove superfluous #include's.
403 * Makefile.in (hppa-tdep.o): Update dependencies.
404
f08f6a4a
RC
4052004-05-17 Randolph Chung <tausq@debian.org>
406
407 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
408 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
409 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
410 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
411 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
412 Remove static function declarations.
413
51da707a
MK
4142004-05-17 Mark Kettenis <kettenis@gnu.org>
415
caed1a45
MK
416 * alphabsd-nat.c: Update copyright year.
417 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
418
c0c2b0db
MK
419 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
420 and M68K_A2_REGNUM.
421
51da707a
MK
422 * m68k-tdep.c (m68k_svr4_return_value): Implement
423 RETURN_VALUE_ABI_RETURNS_ADDRESS.
424
8d027a04
MK
4252004-05-16 Mark Kettenis <kettenis@gnu.org>
426
427 * sol-thread.c Update copyright year. Fix various coding
428 standards violations. Tweak a few comments.
429 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
430 Delete prototypes.
431
0d99fdb9
RC
4322004-05-15 Randolph Chung <tausq@debian.org>
433
434 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
435 as pointer instead of array reference since HPUX compiler does
436 not accept unsized array arguments.
437 * somsolib.c (dld_flags_buffer): Use constant array size.
438
f7e3843a
MK
4392004-05-15 Mark Kettenis <kettenis@gnu.org>
440
0fe85704
MK
441 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
442 offset with decimal offset.
443 (amd64obsd_sigcontext_addr): Return correct address for entire
444 signal trampoline.
445
a54f9a00
MK
446 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
447 instead of get_frame_base.
448
feae6502
MK
449 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
450 (fill_gregset): Use regcache_raw_collect.
451
0382d099
MK
452 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
453 ppcobsd-tdep.c.
454
f7e3843a
MK
455 * config/sparc/tm-nbsd64.h: Remove file.
456 * config/tm-sunos.h: Remove file.
457
773df3e5
JB
4582004-05-15 Joel Brobecker <brobecker@gnat.com>
459
460 * rs6000-tdep.c (store_param_on_stack_p): New function,
461 an improved version of some code extracted from skip_prologue().
462 (skip_prologue): Use store_param_on_stack_p() to detect
463 instructions saving a parameter on the stack. Detect when r0
464 is used to save a parameter.
465 Do not mark "li rx, SIMM" instructions as part of the prologue,
466 unless the following instruction is also part of the prologue.
467
95918acb
AC
4682004-05-14 Andrew Cagney <cagney@redhat.com>
469
06f32659
AC
470 * infrun.c (handle_inferior_event): Simplify
471 STEP_OVER_UNDEBUGGABLE.
472
95918acb
AC
473 * infrun.c (handle_step_into_function): Delete function.
474 (handle_inferior_event): Inline calls to
475 handle_step_into_function.
476
42203e46
JG
4772004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
478
479 * rs6000-nat.c: Fix a comment.
480
02f60eae
JB
4812004-05-12 David Anderson <davea@sgi.com>
482
483 Committed by Jim Blandy <jimb@redhat.com>:
484 * regcache.c (struct regcache_descr): fix comment spelling.
485
552e377b
JB
4862004-05-13 J. Brobecker <brobecker@gnat.com>
487
488 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
489 Fixes a link link failure.
490
349766b2
JB
4912004-05-13 J. Brobecker <brobecker@gnat.com>
492
493 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
494 error that was causing the build to fail.
495
0d4d5484
JB
4962004-05-13 J. Brobecker <brobecker@gnat.com>
497
498 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
499 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
500
0b30808c
AC
5012004-05-13 Andrew Cagney <cagney@redhat.com>
502
503 * infrun.c (handle_inferior_event): Check for
504 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
505 calls. Update comments.
506
cdf2c5f5
JB
5072004-05-13 Jim Blandy <jimb@redhat.com>
508
063715bf
JB
509 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
510 (fetch_regs_user_thread, fetch_regs_kernel_thread)
511 (store_regs_user_thread, store_regs_kernel_thread): Use
512 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
513 * ppc-linux-nat.c (fill_gregset): Same.
514 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
515 (ppc_linux_sigtramp_cache): Same.
516 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
517 (ppcnbsd_sigtramp_cache_init): Same.
518 * rs6000-nat.c (fetch_core_registers): Same.
519 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
520 (rs6000_frame_cache): Same.
521
cdf2c5f5
JB
522 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
523 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
524 of assuming that the gprs are numbered starting with zero.
525 * ppc-linux-nat.c (fill_gregset): Same.
526 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
527 * ppcnbsd-nat.c (getregs_supplies): Same.
528 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
529 * rs6000-nat.c (fetch_core_registers): Same.
530 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
531
450bd37b
MS
5322004-05-07 Michael Snyder <msnyder@redhat.com>
533
534 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
535 LOC_COMPUTED_ARG, and LOC_INDIRECT.
536
4a72a2a6
AC
5372004-05-13 Andrew Cagney <cagney@redhat.com>
538
539 * infrun.c (handle_inferior_event): Use frame_unwind_id.
540
8edfa926
BM
5412004-05-13 Bryce McKinlay <mckinlay@redhat.com>
542
543 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
544 base_address for shared libraries.
545
723e0e3d
BM
5462004-05-13 Bryce McKinlay <mckinlay@redhat.com>
547
548 * MAINTAINERS (write after approval): Add myself.
549
00d4360e
UW
5502004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
551
552 * breakpoint.c (bpstat_stop_status): Add new argument
553 STOPPED_BY_WATCHPOINT. Use it instead of testing
554 target_stopped_data_address agaist 0 to check whether
555 or not we stopped due to a hardware watchpoint.
556 * breakpoint.h (bpstat_stop_status): Adapt prototype.
557 * infrun.c (handle_inferior_event): Call bpstat_stop_status
558 with new argument.
559
ec76baa5
JB
5602004-05-12 Jim Blandy <jimb@redhat.com>
561
562 * configure.in: When checking whether we should use the -bbigtoc
563 option, don't forget to restore the original value of LDFLAGS.
564 * configure: Regenerated.
565
f2c9ca08
AC
5662004-05-12 Andrew Cagney <cagney@redhat.com>
567
568 * thread.c (load_infrun_state): Delete step_sp.
569 * infrun.c (context_switch): Ditto.
570 * inferior.h (step_sp): Ditto.
571 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
572 * gdbthread.h (struct thread_info, save_infrun_state)
573 (restore_infrun_state): Ditto.
574
090ddb2a
UW
5752004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
576
577 * MAINTAINERS (write after approval): Add myself.
578
8aad930b
AC
5792004-05-12 Andrew Cagney <cagney@redhat.com>
580
581 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
582 eliminate reference to step_sp.
583 (struct execution_control_state, init_execution_control_state)
584 (handle_inferior_event, keep_going): Delete update_step_sp and
585 step_sp.
586 * infcmd.c (step_sp): Note that variable is unused.
587
922d5ae0
AC
5882004-05-11 Andrew Cagney <cagney@redhat.com>
589
590 * infrun.c (step_over_function): Delete function.
591 (handle_step_into_function): Use insert_step_resume_breakpoint.
592 (insert_step_resume_breakpoint): Fix assertion.
593
017c5ca5
NR
5942004-05-11 Nick Roberts <nickrob@gnu.org>
595
596 * utils.c (defaulted_query): Just use the normal query input type
597 when printing the annotations.
598
42edda50
AC
5992004-05-11 Andrew Cagney <cagney@redhat.com>
600
601 * infrun.c (handle_inferior_event): Simplify code handling
602 step-into or return-from a signal trampoline.
603
d28b44a7
AC
6042004-05-11 Andrew Cagney <cagney@redhat.com>
605
606 * ppcnbsd-tdep.c: Include "gdb_assert.h".
607 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
608
383f0f5b
JB
6092004-05-10 Jim Blandy <jimb@redhat.com>
610
d0b57c3a
JB
611 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
612 with a call to internal_error.
613
383f0f5b
JB
614 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
615 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
616 processor variant lacks those registers.
617 (ppc_floating_point_unit_p): Change description to make it clear
618 that this returns info about the ISA, not the ABI.
619 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
620 return true or false by checking tdep->ppc_fp0_regnum and
621 tdep->ppc_fpscr_regnum. The original code replicated the BFD
622 arch/mach switching done in rs6000_gdbarch_init; it's better to
623 keep that logic there, and just check the results here.
624 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
625 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
626 floating-point registers.
627 (ppc_supply_fpregset, ppc_collect_fpregset)
628 (rs6000_push_dummy_call, rs6000_extract_return_value)
629 (rs6000_store_return_value): Assert that we have floating-point
630 registers.
631 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
632 (rs6000_frame_cache): Don't note the locations at which
633 floating-point registers were saved if we have no fprs.
634 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
635 registers.
636 (fetch_regs_user_thread, fetch_regs_kernel_thread)
637 (store_regs_user_thread, store_regs_kernel_thread): Only call
638 supply_fprs / fill_fprs if we actually have floating-point
639 registers.
640 (special_register_p): Check ppc_fpscr_regnum before matching
641 against it.
642 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
643 supply / collect fpscr if we don't have it.
644 * ppc-bdm.c: #include "gdb_assert.h".
645 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
646 have floating-point registers, since I can't test this code on
647 FP-free systems to adapt it.
648 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
649 fpscr and floating point register numbers if they don't exist.
650 (fetch_register): Assert that we have floating-point registers
651 before we reach the code that handles them.
652 (store_register): Same. And use tdep instead of calling
653 gdbarch_tdep again.
654 (fill_fpregset): Don't try to collect FP registers and fpscr if we
655 don't have them.
656 (ppc_linux_sigtramp_cache): Don't record the saved locations of
657 fprs and fpscr if we don't have them.
658 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
659 don't have them.
660 * ppcnbsd-nat.c: #include "gdb_assert.h".
661 (getfpregs_supplies): Assert that we have floating-point registers.
662 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
663 * ppcobsd-tdep.c: #include "gdb_assert.h".
664 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
665 have floating-point registers.
666 * rs6000-nat.c (regmap): Don't match against the fpscr and
667 floating point register numbers if they don't exist.
668 (fetch_inferior_registers, store_inferior_registers,
669 fetch_core_registers): Only fetch / store / supply the
670 floating-point registers and the fpscr if we have them.
671 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
672 (ppcobsd-tdep.o): Update dependencies.
673
15960608
AC
6742004-05-10 Andrew Cagney <cagney@redhat.com>
675
676 * infrun.c (through_sigtramp_breakpoint): Delete variable.
677 (context_switch): Do not switch through_sigtramp_breakpoint.
678 * gdbthread.h (save_infrun_state, load_infrun_state)
679 (struct thread_info): Delete through_sigtramp_breakpoint parameter
680 and structure member.
681 * thread.c (load_infrun_state, save_infrun_state): Update.
682
5ab5aa0f
MK
6832004-05-10 Mark Kettenis <kettenis@gnu.org>
684
685 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
686
da78b0e7
DJ
6872004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
688
689 * acinclude.m4: Quote macro names being defined by AC_DEFUN
690 throughout.
691 * aclocal.m4: Regenerate.
692
cca0d3b0
NW
6932004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
694
695 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
696
d303a6c7
AC
6972004-05-10 Andrew Cagney <cagney@redhat.com>
698
699 * infrun.c (check_sigtramp2): Delete function.
700 (handle_inferior_event): When single stepping, and taking a
701 signal, set a breakpoint at the signal return address. Delete
702 redundant calls to check_sigtramp2.
703 (insert_step_resume_breakpoint): New function.
704 (through_sigtramp_breakpoint, handle_inferior_event)
705 (follow_exec, wait_for_inferior, fetch_inferior_event)
706 (currently_stepping, keep_going): Delete most uses of
707 through_sigtramp_breakpoint, not that it should be deleted.
708 (delete_breakpoint_current_contents): Delete function.
709
03f4cc20
RC
7102004-05-10 Randolph Chung <tausq@debian.org>
711
712 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
713 target.
714 * config/pa/tm-linux.h: New file.
715
37fc812e
DJ
7162004-05-10 Daniel Jacobowitz <drow@mvista.com>
717
718 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
719 of prefixes. Don't print the prefix twice in the CLI.
720
26c0b942
JB
7212004-05-10 Jim Blandy <jimb@redhat.com>
722
2e56e9c1
JB
723 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
724 collect all the gprs.
725
26c0b942
JB
726 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
727 loop collecting gprs.
728
dc497459
AC
7292004-05-09 Andrew Cagney <cagney@redhat.com>
730
731 * remote-vx.c (net_step): Delete step-range code.
732 * remote.c (remote_resume, init_all_packet_configs)
733 (set_remote_protocol_E_packet_cmd)
734 (show_remote_protocol_E_packet_cmd)
735 (remote_protocol_E, show_remote_cmd, _initialize_remote)
736 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
737 (show_remote_protocol_e_packet_cmd): Ditto.
738
0543f387
MK
7392004-05-09 Mark Kettenis <kettenis@gnu.org>
740
c481d1ca
MK
741 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
742
f626a069
MK
743 * hppa-tdep.h: Update copyright year.
744 (struct trad_frame_saved_reg): Add opaque declaration.
745
6fa57a7d
MK
746 * amd64-tdep.c (amd64_return_value): Implement
747 RETURN_VALUE_ABI_RETURNS_ADDRESS.
748
e47577ab
MK
749 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
750 (m68k_value_to_register): New functions.
751 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
752 value_to_register.
753
31db7b6c
MK
754 * defs.h (enum return_value_convention): Add
755 RETURN_VALUE_ABI_RETURNS_ADDRESS and
756 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
757 * infcmd.c (legacy_return_value): New function.
758 (print_return_value): Rwerite to implement
759 RETURN_VALUE_ABI_RETURNS_ADDRESS.
760 * values.c (using_struct_return): Check for inequality to
761 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
762 RETURN_VALUE_STRUCT_CONVENTION.
763 * i386-tdep.c (i386_return_value): Implement
764 RETURN_VALUE_ABI_RETURNS_ADDRESS.
765
0543f387
MK
766 * vax-tdep.c: Tweak comments. Reorder include files. Don't
767 include "symtab.h", "opcode/vax.h" and "inferior.h".
768 (vax_skip_prologue): Replace calls to read_memory_integer by calls
769 to read_memory_unsigned_integer.
770 (vax_gdbarch_init): Reorder.
771 (_initialize_vax_tdep): Spell out prototype.
772 * Makefile.in (vax-tdep.o): Update dependencies.
773
0c93b7b6
AC
7742004-05-08 Andrew Cagney <cagney@redhat.com>
775
e6b55ae2
AC
776 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
777 * target.c (target_detach, target_disconnect): Ditto.
778
1ac839b8
AC
779 * infcall.c (call_function_by_hand): When no
780 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
781 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
782 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
783 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
784 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
785
28954179
AC
786 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
787 * gdbarch.h, gdbarch.c: Re-generate.
788 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
789 deprecated_fix_call_dummy.
790 * v850-tdep.c (v850_gdbarch_init): Ditto.
791 * infcall.c (call_function_by_hand): Do not call
792 DEPRECATED_FIX_CALL_DUMMY.
793
434b87dd
AC
794 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
795 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
796 * gdbarch.h, gdbarch.c: Re-generate.
797 * arm-linux-tdep.c (arm_linux_call_dummy_words)
798 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
799 deprecated_sizeof_call_dummy_words.
800 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
802 * v850-tdep.c (v850_gdbarch_init): Ditto.
803 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
804 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
805 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
806 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
807 * arch-utils.h (legacy_call_dummy_words)
808 (legacy_sizeof_call_dummy_words): Delete declarations.
809 * arch-utils.c (legacy_call_dummy_words)
810 (legacy_sizeof_call_dummy_words): Delete variables.
811
58d28df8
AC
812 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
813 * gdbarch.h, gdbarch.c: Re-generate.
814 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
815 * infcall.c (call_function_by_hand): Eliminate call to
816 DEPRECATED_PUSH_DUMMY_FRAME.
817 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
818 push_dummy_frame.
819 (ns32k_push_dummy_frame): Delete function.
820
e4a2df64
AC
821 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
822 deprecated_call_dummy_breakpoint_offset or
823 deprecated_call_dummy_start_offset.
824 * dummy-frame.c, arm-tdep.c: Update comments.
825 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
826 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
827 * gdbarch.h, gdbarch.c: Re-generate.
828
d3712828
AC
829 * infcall.c (legacy_push_dummy_code): Delete function.
830 (push_dummy_code): Delete call.
831
7a882905
AC
832 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
833 * gdbarch.h, gdbarch.c: Re-generate.
834 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
835 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
836 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
837 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
838
0ec5872b
AC
839 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
840 (struct frame_info): Delete opaque declaration.
841 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
842 * frame.c (get_frame_type): Delete call.
843
0c93b7b6
AC
844 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
845 pc_in_call_dummy.
846 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
847 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
848
75536971
MK
8492004-05-08 Mark Kettenis <kettenis@gnu.org>
850
527ca6bb
MK
851 * alphanbsd-tdep.c: Include "gdb_string.h".
852 * armnbsd-tdep.c: Update copyright year.
853 Include "gdb_string.h".
854 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
855 dependencies.
856
d39fdc61
MK
857 * delta68-nat.c: Remove file.
858 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
859 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
860 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
861 (delta68-nat.o): Remove dependency.
862
75536971
MK
863 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
864 function.
865 (m68k_gdbarch_init): Don't set
866 deprecated_frameless_function_invocation.
867
f4ca1d1f
RC
8682004-05-07 Randolph Chung <tausq@debian.org>
869
870 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
871 read_memory_nobpt for code reading when doing frame unwinding.
872 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
873
2f0e8c7a
RC
8742004-05-07 Randolph Chung <tausq@debian.org>
875
876 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
877 instead of sp, handle sigaltstack case.
878 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
879 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
880 signal handler and not that of the caller.
881 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
882 hppa_linux_sigtramp_find_sigcontext.
883
959464ff
RC
8842004-05-07 Randolph Chung <tausq@debian.org>
885
886 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
887 hppa-linux-nat.c.
888 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
889 * hppa-linux-nat.c (fetch_register, store_register): Define.
890 (fetch_inferior_registers, store_inferior_registers): Define.
891 (supply_gregset): Add comment and clean up some unneeded code.
892 (fill_gregset): Add comment and fix so that it saves registers in
893 the right place in the gregset.
894 (fill_fpregset): Fix buffer overrun problem.
895 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
896
0da28f8a
RC
8972004-05-07 Randolph Chung <tausq@debian.org>
898
899 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
900 do common handling of the pcoqt register.
901 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
902 to use helper function.
903 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
904 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
905 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
906 generic fallback unwinder when all else fails.
907 (hppa_gdbarch_init): Add fallback sniffer.
908 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
909 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
910 to use helper function.
911
b9ec757a
JB
9122004-05-08 Joel Brobecker <brobecker@gnat.com>
913
914 * config/djgpp/fnchange.lst: Add translation rules for
915 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
916
756e95f1
MK
9172004-05-08 Mark Kettenis <kettenis@gnu.org>
918
919 * frame.c (get_prev_frame_1): Work around GCC bug.
920 * frame.h: Add comment about GCC bug.
921
2b4855ab
AC
9222004-05-07 Andrew Cagney <cagney@redhat.com>
923
924 * observer.c: Include "commands.h" and "gdbcmd.h".
925 (observer_debug, _initialize_observer): Add the
926 command "set/show debug observer".
927 * observer.sh: When observer debugging, log notify calls.
928 * Makefile.in (observer.o): Update dependencies.
929
ba3e8e46
JM
9302004-05-07 Jason Molenda (jmolenda@apple.com)
931
932 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
933
16796152
JB
9342004-05-07 Jim Blandy <jimb@redhat.com>
935
daf6dc85
JB
936 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
937 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
938 to recognize gpr regnums, instead of assuming that
939 tdep->ppc_fp0_regnum marks the end of the general-purpose
940 registers.
941
16796152
JB
942 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
943 the given architecture has floating-point registers.
944
c69b8bfc
AC
9452004-05-07 Andrew Cagney <cagney@redhat.com>
946
947 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
948 macro defined to 1.
949 * gdbarch.h, gdbarch.c: Re-generate.
950 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
951 deprecated_use_generic_dummy_frames.
952
7243600a
BF
9532004-05-07 Brian Ford <ford@vss.fsi.com>
954
955 * NEWS: Mention Cygwin DWARF 2 support.
956
73c1e0a1
AC
9572004-05-07 Andrew Cagney <cagney@redhat.com>
958
959 * objfiles.h (struct entry_info): Delete unused fields
960 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
961 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
962 * mipsread.c (mipscoff_symfile_read): Update.
963 * mdebugread.c (parse_partial_symbols): Update.
964 * dwarfread.c (read_file_scope): Update.
965 * dwarf2read.c (read_file_scope): Update.
966 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
967 * coffread.c (complete_symtab): Update.
968
1d3056ac
MK
9692004-05-07 Mark Kettenis <kettenis@gnu.org>
970
971 * infcall.c (_initialize_infcall): Fix typo.
972
15170568
AC
9732004-05-07 Andrew Cagney <cagney@redhat.com>
974
975 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
976 * command.h (add_setshow_zinteger_cmd): Declare.
977
34f75cc1
RC
9782004-05-06 Randolph Chung <tausq@debian.org>
979
980 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
981 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
982 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
983 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
984 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
985 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
986 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
987 definitions ...
988 * hppa-tdep.h: ... to here, with HPPA_ prefix.
989 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
990 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
991 (hppa64_hpux_frame_find_saved_regs_in_sig)
992 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
993 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
994 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
995 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
996 (hppa_linux_sigtramp_frame_prev_register): Likewise.
997 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
998 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
999 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
1000 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
1001 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
1002 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
1003 (hppa32_register_type, hppa_cannot_store_register)
1004 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
1005 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
1006 * hpread.c (hpread_process_one_debug_symbol): Likewise.
1007 * pa64solib.c (pa64_solib_have_load_event)
1008 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
1009 (pa64_solib_unloaded_library_pathname): Likewise.
1010 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
1011 (som_solib_library_pathname): Likewise.
1012
0a5e7efe
JI
10132004-05-05 Jim Ingham <jingham@apple.com>
1014
1015 * breakpoint.c (create_breakpoints): Copy the ignore count and
1016 thread id over from the pended breakpoint to the actual
1017 breakpoint.
1018
10a4b113
AC
10192004-05-05 Andrew Cagney <cagney@redhat.com>
1020
1021 * gdbarch.sh (PARM_BOUNDARY): Delete.
1022 gdbarch.h, gdbarch.c: Re-generate.
1023 * valops.c (PARM_BOUNDARY): Delete macro.
1024 (value_push): Delete PARM_BOUNDARY code.
1025 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
1026
366f009f
JB
10272004-05-04 Jim Blandy <jimb@redhat.com>
1028
32b99774
JB
1029 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
1030 Don't assume that the gprs, fprs, and UISA sprs are
1031 contiguous, start at register number zero, and end with fpscr.
1032 Instead, use the numbers from the tdep structure.
1033
366f009f
JB
1034 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
1035 should no longer be used in code specific to the RS6000 and its
1036 derivatives.
1037 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
1038 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
1039 tdep->ppc_fp0_regnum.
1040 (ppc_supply_fpregset, ppc_collect_fpregset)
1041 (rs6000_push_dummy_call, rs6000_extract_return_value)
1042 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
1043 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
1044 FP0_REGNUM.
1045 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
1046 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
1047 Same.
1048 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
1049 bdm_ppc_store_registers): Same.
1050 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
1051 (store_register, fill_fpregset): Same.
1052 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
1053 (ppc_linux_supply_fpregset): Same.
1054 * ppcnbsd-nat.c (getfpregs_supplies): Same.
1055 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
1056 Same.
1057 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
1058 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
1059 ppc64_sysv_abi_return_value): Same.
1060 * rs6000-nat.c (regmap, fetch_inferior_registers)
1061 (store_inferior_registers, fetch_core_registers): Same.
1062
827f338d
MK
10632004-05-01 Mark Kettenis <kettenis@gnu.org>
1064
1065 * m68knbsd-nat.c: Remove file.
1066 * m68knbsd-tdep.c: Remove file.
1067 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
1068 dependencies.
1069 * configure.host: Add m68k-*-netbsdelf*.
1070 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
1071 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
1072 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
1073 (XM_FILE): Remove.
1074 * config/m68k/nbsdelf.mh: New file.
1075 * config/m68k/nbsd.mt: New file.
1076 * config/m68k/nbsdaout.mt: Remove file.
1077 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
1078 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
1079 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
1080 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
1081 (use_struct_convention): Remove prototype.
1082 (USE_STRUCT_CONVENTION): Remove define.
1083 * config/m68k/xm-nbsd.h: Remove file.
1084
66894781
MS
10852004-05-04 Michael Snyder <msnyder@redhat.com>
1086
1087 * m68k-tdep.c (m68k_gdbarch_init): Default to using
1088 reg_struct_return method (as gcc usually does for cross targets).
1089
f0f63663
AC
10902004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1091
1092 Committed by Andrew Cagney.
1093 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
1094 alignment padding when accessing ucontext struct members.
1095
edf61169
JB
10962004-05-04 Jim Blandy <jimb@redhat.com>
1097
8bf659e8
JB
1098 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
1099 'ppc_gplast_regnum' member.
1100 (ppc_num_gprs): New enum constant.
1101 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
1102 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
1103 * rs6000-nat.c (regmap, fetch_inferior_registers,
1104 store_inferior_registers): Same.
1105 * rs6000-tdep.c (e500_pseudo_register_read)
1106 (e500_pseudo_register_write): Same.
1107 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
1108
b967e06f
JB
1109 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
1110 * ppc-tdep.h (ppc_num_fprs): New enum constant.
1111 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
1112 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
1113 FPLAST_REGNUM.
1114 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1115 Same.
1116 * ppc-linux-nat.c (ppc_register_u_addr): Same.
1117 * rs6000-nat.c (regmap, fetch_inferior_registers)
1118 (store_inferior_registers): Same.
1119
edf61169
JB
1120 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
1121 with FPLAST_REGNUM.
1122
58a9656e
JB
11232004-05-03 Joel Brobecker <brobecker@gnat.com>
1124
1125 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
1126 failure detected by recent versions of GCC.
1127 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
1128 to be consistent with the usage in dwarf2_create_include_psymtab.
1129
dc305454
MS
11302004-05-03 Michael Snyder <msnyder@redhat.com>
1131
1132 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
1133 (heuristic_proc_start): Whitespace cleanup.
1134
29972665
MK
11352004-05-04 Mark Kettenis <kettenis@gnu.org>
1136
6b57680d
MK
1137 * sun3-nat.c: Remove file.
1138 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
1139 dependencies.
1140 (ALLDEPFILES): Remove sun3-nat.c.
1141 (sun3-nat.o): Remove dependencies.
1142
29972665
MK
1143 * i386-interix-nat.c, i386-interix-tdep.c,
1144 config/i386/nm-interix.h, config/i386/interix.mh,
1145 config/i386/interix.mt: Remove files.
1146 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
1147 dependencies.
1148
f595cb19
MK
11492004-05-03 Mark Kettenis <kettenis@gnu.org>
1150
1151 * m68k-tdep.h (struct gdbarch_tdep): Add member
1152 struct_value_regnum.
1153 (m68k_svr4_init_abi): New prototype.
1154 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
1155 different calling conventions.
1156 (m68k_extract_return_value): Remove code dealing with single-field
1157 structs.
1158 (m68k_store_return_value): Remove code dealing with single-field
1159 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
1160 (m68k_extract_struct_value_address): Remove function.
1161 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
1162 (m68k_reg_struct_return_p, m68k_return_value)
1163 (m68k_svr4_return_value): New functions.
1164 (m68k_use_struct_convention): Remove function.
1165 (m68k_push_dummy_call): Use new struct_value_regnum member of
1166 `struct gdbarch_tdep' instead of hardcoded register number to
1167 store STRUCT_ADDR.
1168 (m68k_svr4_init_abi): New function.
1169 (m68k_gdbarch_init): Don't set extract_return_value,
1170 store_return_values, deprecated_extract_struct_value_address and
1171 use_struct_convention. Set return_value instead. Initialize new
1172 struct_value_regnum member of `struct gdbarch_tdep'.
1173 * m68klinux-tdep.c: Update copyright year.
1174 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
1175 (m68k_linux_extract_struct_value_address): Remove function.
1176 (m68k_linux_init_abi): Don't set extract_return_value,
1177 store_return_values, deprecated_extract_struct_value_address and
1178 use_struct_convention. Call m68k_svr4_init_abi but override the
1179 new struct_value_regnum member of `struct gdbarch_tdep'.
1180 * Makefile.in (m68k-tdep.o): Update dependencies.
1181
aaa75496
JB
11822004-05-03 J. Brobecker <brobecker@gnat.com>
1183
1184 * dwarf2read.c (line_header): Add new included_p field in
1185 field file_names.
1186 (partial_die_info): New field has_stmt_list. New field line_offset.
1187 (dwarf2_create_include_psymtab): New function.
1188 (dwarf2_build_include_psymtabs): New function.
1189 (add_file_name): Add forward declaration. Initialize new field.
1190 (dwarf_decode_lines): Add new parameter. Enhance this procedure
1191 to be able to determine the list of files included by the
1192 given unit, and build their associated psymtabs.
1193 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
1194 files as well.
1195 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
1196 (read_file_scope): Update call to dwarf_decode_lines.
1197 (read_partial_die): Handle DW_AT_stmt_list attributes.
1198
c848556f
MC
11992004-05-02 Michael Chastain <mec.gnu@mindspring.com>
1200
1201 Unfix PR gdb/1626.
1202 * configure.in: Revert special case for osf5.*.
1203 * configure: Regenerate.
1204
eb4556d7
JB
12052004-05-02 Jim Blandy <jimb@redhat.com>
1206
1207 Move the symbol-file-from-memory functions into their own file.
1208 * symfile-mem.c, symfile-mem.h: New files.
1209 * symfile.c (symbol_file_add_from_bfd): New function.
1210 (symbol_file_add): Call symbol_file_add_from_bfd.
1211 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
1212 Moved to symfile-mem.c.
1213 (_initialize_symfile): Move definition of
1214 add-symbol-file-from-memory command to symfile-mem.c.
1215 * symfile.h (symbol_file_add_from_bfd): New declaration.
1216 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
1217 * config/powerpc/linux.mt (TDEPFILES): Same.
1218 * Makefile.in (SFILES): Add symfile-mem.c.
1219 (symfile_mem_h): New variable.
1220 (HFILES_NO_SRCDIR): Add symfile-mem.h.
1221 (symfile-mem.o): New rule.
1222
80bb239e
AC
12232004-05-01 Andrew Cagney <cagney@redhat.com>
1224
7789d0fa
AC
1225 * breakpoint.c (insert_bp_location): Use get_frame_id, and
1226 frame_find_by_id instead of frame_relative_level.
1227 (do_enable_breakpoint): Ditto.
1228 * thread.c: Update copyright.
1229 (info_threads_command): Ditto, simplify.
1230
80bb239e
AC
1231 * frame.c (deprecated_generic_get_saved_register): Delete
1232 function, moved to "xstormy16-tdep.c".
1233 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
1234 deprecated_generic_get_saved_register from "frame.c".
1235 (xstormy16_frame_saved_register): Call
1236 xstormy16_get_saved_register.
1237 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
1238 static.
1239 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
1240 * frame.h (deprecated_generic_get_saved_register): Delete.
1241
b2a871dd
MC
12422004-05-01 Michael Chastain <mec.gnu@mindspring.com>
1243
1244 * dwarfread.c: Update documentation on the state of dwarf-1.
1245
0e100dab
AC
12462004-05-01 Andrew Cagney <cagney@redhat.com>
1247
acd8056e
AC
1248 * stack.c (select_frame_command): Delete call to
1249 frame_relative_level.
1250 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
1251 Delete #if0 code.
1252 (frame_info): Do not print FRAMELESS.
1253 (print_block_frame_labels): Replace DEPRECATED_STREQ.
1254 (catch_info): Delete #if0 code.
1255
0e100dab
AC
1256 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
1257 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
1258 of frame_relative_level.
1259 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
1260 to SENTINEL_FRAME.
1261 * frame.h (enum frame_type): Add SENTINEL_FRAME.
1262 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
1263 frame_relative_level.
1264
55699d59
AC
1265 * frame.h (deprecated_set_frame_type): Delete declaration.
1266 * frame.c (deprecated_set_frame_type): Delete function, update
1267 comments.
1268
fcf70625
AC
1269 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
1270 * gdbarch.h, gdbarch.c: Re-generate.
1271 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
1272 (shnbsd_pc_in_sigtramp): Delete.
1273 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
1274 pc_in_sigtramp.
1275 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
1276 pc_in_sigtramp.
1277 * frame.h: Update comments.
1278 * ppc-linux-tdep.c: Update comments.
1279 * breakpoint.c (bpstat_what): Update comments.
1280
ac5eccb7
AC
1281 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
1282 m68klinux-tdep.o's dependencies, were previously added to
1283 m68klinux-nat.o.
1284
f2524b93
AC
1285 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
1286 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
1287 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
1288 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
1289 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
1290
17e20bce
AC
1291 * Makefile.in (m68klinux-nat.o): Update dependencies.
1292 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1293 (m68k_linux_sigtramp_frame_cache)
1294 (m68k_linux_sigtramp_frame_this_id)
1295 (m68k_linux_sigtramp_frame_prev_register)
1296 (m68k_linux_sigtramp_frame_unwind)
1297 (m68k_linux_sigtramp_frame_sniffer)
1298 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
1299 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
1300 names, use trad-frame.h.
1301 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
1302 (struct m68k_sigtramp_info): Delete.
1303 * m68k-tdep.c (m68k_sigtramp_frame_cache)
1304 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
1305 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
1306 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
1307 "m68klinux-tdep.c".
1308
c8864fa2
AC
1309 * infrun.c (check_sigtramp2): Delete check for
1310 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
1311
511dd2cd
MK
13122004-05-01 Mark Kettenis <kettenis@gnu.org>
1313
1314 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
1315
8c6b0e06
AC
13162004-05-01 Andrew Cagney <cagney@redhat.com>
1317
9df0bb3f
AC
1318 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1319 (frv_linux_sigtramp_frame_cache)
1320 (frv_linux_sigtramp_frame_this_id)
1321 (frv_linux_sigtramp_frame_prev_register)
1322 (frv_linux_sigtramp_frame_unwind)
1323 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
1324 include "linux" in function and variable names, directly call
1325 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
1326 the latest trad-frame code.
1327 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
1328 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
1329 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1330 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
1331 * frv-tdep.c (frv_sigtramp_frame_cache)
1332 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
1333 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
1334 frv-linux-tdep.c.
1335 (frv_gdbarch_init): Do not append a sigtramp sniffer.
1336 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
1337 (frv_set_sigcontext_reg_addr): Delete function.
1338
8c6b0e06
AC
1339 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
1340 (DEPRECATED_SIGTRAMP_END): Delete.
1341 * gdbarch.h, gdbarch.c: Re-generate.
1342 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
1343 * config/vax/tm-vaxbsd.h: Update copyright.
1344 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1345 (DEPRECATED_IN_SIGTRAMP): Define.
1346 * config/m68k/tm-nbsd.h: Update copyright.
1347 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1348 (DEPRECATED_IN_SIGTRAMP): Define.
1349
50ea7769
MK
13502004-05-01 Mark Kettenis <kettenis@gnu.org>
1351
03ac2a74
MK
1352 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
1353 encondings. Fixes PR gdb/1628.
1354
50ea7769
MK
1355 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
1356 DW_CFA_restore state without a matching DW_CFA_remember_state
1357 instead of aborting. Fixes PR backtrace/1589.
1358
9a5d7be1
JB
13592004-04-30 Joel Brobecker <brobecker@gnat.com>
1360
1361 * MAINTAINERS: Add self as AIX maintainer.
1362 Update my e-mail address in write-after-approval section.
1363
2593d1cd
AC
13642004-04-30 Andrew Cagney <cagney@redhat.com>
1365
ce12bbf9
AC
1366 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
1367 (legacy_get_prev_frame): Ditto.
1368
36710c63
AC
1369 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
1370 (mips_gdbarch_init): Do not set pc_in_sigtramp.
1371 * mipsread.c (sigtramp_address): Delete extern variable.
1372 (mipscoff_new_init): Delete reference.
1373 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
1374 (fixup_sigtramp): Delete function.
1375 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
1376 (fixup_sigtramp): Delete declarations.
1377
2593d1cd
AC
1378 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
1379 deprecated_pc_in_sigtramp.
1380 (ppcnbsd_pc_in_sigtramp): Delete function.
1381
2a25f91c
MK
13822004-05-01 Mark Kettenis <kettenis@gnu.org>
1383
1384 * config/m68k/nm-nbsd.h: Tweak comments.
1385 * config/m68k/nm-nbsdaout.h: Likewise.
1386
0b281939
AC
13872004-04-30 Andrew Cagney <cagney@redhat.com>
1388
1389 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
1390 legacy_pc_in_sigtramp.
1391 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
1392
8f2d3ea0
MK
13932004-05-01 Mark Kettenis <kettenis@gnu.org>
1394
1395 Add OpenBSD/m68k support.
1396 * NEWS (New native configurations): Mention OpenBSD/m68k.
1397 * m68kbsd-tdep.c: New file.
1398 * m68kbsd-nat.c: New file.
1399 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
1400 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
1401 * configure.host: Add m68k-*-openbsd.
1402 * configure.tgt: Add m68k-*-openbsd.
1403 * config/m68k/tm-obsd.h: New file.
1404 * config/m68k/obsd.mt: New file.
1405 * config/m68k/obsd.mh: New file.
1406 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
1407 m68kbsd-tdep.c.
1408
c40f49a4
AC
14092004-04-30 Andrew Cagney <cagney@redhat.com>
1410
1411 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
1412 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
1413
e81554cd
MK
14142004-04-30 Mark Kettenis <kettenis@gnu.org>
1415
1416 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
1417 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
1418
d4dc1a91
BF
14192004-04-30 Brian Ford <ford@vss.fsi.com>
1420
1421 Revert 2004-04-16 change.
1422 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
1423 (i386_coff_init_abi): Remove.
1424 * i386-tdep.h (i386_coff_init_abi): Remove.
1425 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
1426
2f72f850
AC
14272004-04-30 Andrew Cagney <cagney@redhat.com>
1428
e492f9d6
AC
1429 * blockframe.c (find_pc_partial_function): Delete use of
1430 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
1431 DEPRECATED_SIGTRAMP_END.
1432
7b7adad0
AC
1433 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
1434 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
1435 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
1436 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
1437 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
1438
2f72f850
AC
1439 * defs.h (deprecated_inside_entry_file): Delete declaration.
1440 * blockframe.c (deprecated_inside_entry_file): Delete function.
1441 (legacy_frame_chain_valid): Delete call.
1442 * sh64-tdep.c (sh64_frame_chain): Delete call.
1443 * objfiles.h: Update comments.
1444 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
1445 call.
1446 * frame.c (get_prev_frame): Delete call, update comments.
1447
283f90a7
BF
14482004-04-30 Brian Ford <ford@vss.fsi.com>
1449
1450 * MAINTAINERS (Write After Approval): Add myself.
1451
8ee56bcf
AC
14522004-04-30 Andrew Cagney <cagney@redhat.com>
1453
1454 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
1455 * gdbarch.h, gdbarch.c: Re-generate.
1456 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
1457 code.
1458
ee27e1b6
AC
14592004-04-30 Andrew Cagney <cagney@redhat.com>
1460
1461 * gdb-events.sh (selected_thread_changed)
1462 (selected_frame_level_changed, target_changed): Delete.
1463 * gdb-events.h, gdb-events.c: Re-generate.
1464 * valops.c (value_assign): Update.
1465 * stack.c (select_frame_command, up_silently_base)
1466 (down_silently_base): Update.
1467
d5ac5a39
AC
14682004-04-29 Andrew Cagney <cagney@redhat.com>
1469
1470 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
1471 registers correctly.
1472 (print_gp_register_row, mips32_heuristic_proc_desc)
1473 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1474 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
1475 references to mips_isa_regsize.
1476
ceae6e75
AC
14772004-04-29 Andrew Cagney <cagney@redhat.com>
1478
1479 * mips-tdep.c (struct gdbarch_tdep): Delete
1480 mips_fp_register_double.
1481 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
1482 mips_abi_regsize.
1483 (mips_gdbarch_init): Do not set mips_fp_register_double.
1484 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
1485
a587af0b
AC
14862004-04-29 Joel Brobecker <brobecker@gnat.com>
1487
1488 Committed by Andrew Cagney.
1489 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
1490 function calls.
1491
13326b4e
AC
14922004-04-29 Andrew Cagney <cagney@redhat.com>
1493
1494 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
1495 gdbarch, use mips_abi, update callers.
1496 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
1497 mips_abi_regsize, update callers.
1498 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
1499 mips_default_abi_regsize.
1500 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
1501 mips_default_abi_regsize.
1502
711cc5cd
AC
15032004-04-29 Andrew Cagney <cagney@redhat.com>
1504
1b13c4f6
AC
1505 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
1506 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
1507 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
1508 mips_default_abi_regsize.
1509 (mips_isa_regsize): Rename mips_regisze.
1510 * mipsnbsd-tdep.c: Update.
1511 * mips-linux-tdep.c: Update.
1512 * irix5-nat.c: Update.
1513 * mips-tdep.h (mips_isa_regsize): Update.
1514
711cc5cd
AC
1515 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
1516 Delete all disabled code.
1517 * gdb-events.h, gdb-events.c: Re-generate.
1518
e63bbc88
MK
15192004-04-19 Jerome Guitton <guitton@gnat.com>
1520 Mark Kettenis <kettenis@gnu.org>
1521
1522 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
1523 the function begins with a branch instruction.
1524
fd35795f
MK
15252004-04-29 Mark Kettenis <kettenis@gnu.org>
1526
1527 * i386-tdep.c: Fix spelling mistakes.
1528
c960c18f
AC
15292004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1530 Andrew Cagney <cagney@redhat.com>
1531
1532 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
1533 <sys/proc.h>.
1534 * acconfig.h: Provide default _KMEMUSER value.
1535 * config.in, configure: Re-generate.
1536 * NEWS: Mention fix.
1537
50306a9d
RC
15382004-04-24 Randolph Chung <tausq@debian.org>
1539
1540 * configure.host (hppa*-*-linux*): New target.
1541 * configure.tgt (hppa*-*-linux*): Likewise.
1542 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
1543 gdbarch_init_osabi() call earlier so that osabi-specific frame
1544 unwinders can be registered first.
1545 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
1546 hppa-linux-nat.c.
1547 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
1548 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
1549 * config/pa/linux.mh: New file.
1550 * config/pa/linux.mt: New file.
1551 * config/pa/nm-linux.h: New file.
1552 * config/pa/xm-linux.h: New file.
1553 * hppa-linux-nat.c: New file.
1554 * hppa-linux-tdep.c: New file.
1555
2a6228ef
RC
15562004-04-28 Randolph Chung <tausq@debian.org>
1557
1558 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
1559 return values.
1560 (hppa32_push_dummy_call): Fix small struct and floating point argument
1561 passing, and make sure the stack frame is properly aligned.
1562
82c10df6
AC
15632004-04-28 Andrew Cagney <cagney@redhat.com>
1564
d762c46a
AC
1565 * stack.c (print_stack_frame): Fix description.
1566
82c10df6
AC
1567 * NEWS: Mention gdb/gdbserver/configure execute permission
1568 changed. PR server/519.
1569
0faf0076
AC
15702004-04-28 Andrew Cagney <cagney@redhat.com>
1571
1572 * stack.c (print_stack_frame_stub): Delete declaration.
1573 (struct print_stack_frame_args, print_stack_frame)
1574 (print_frame_info, print_frame): Replace "source" with print what.
1575 Replace "print" with "print_level". Replace "args" with
1576 "print_args".
1577 * frame.h (show_and_print_stack_frame, print_stack_frame)
1578 (print_frame_info): Update declarations.
1579 * stack.c (select_and_print_frame, frame_command)
1580 (current_frame_command, up_command, down_command): Update calls -
1581 use get_selected_frame, pass "enum print_what" for source, do not
1582 call frame_relative_level.
1583 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
1584 * remote-rdp.c (remote_rdp_open): Ditto.
1585 * remote-mips.c (common_open): Ditto.
1586 * remote-e7000.c (e7000_start_remote): Ditto.
1587 * ocd.c (ocd_start_remote): Ditto.
1588 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
1589 * infrun.c (normal_stop): Ditto.
1590 * inflow.c (kill_command): Ditto.
1591 * infcmd.c (finish_command): Ditto.
1592 * corelow.c (core_open): Ditto.
1593 * tracepoint.c (finish_tfind_command): Ditto.
1594 * thread.c (info_threads_command, info_threads_command)
1595 (restore_current_thread, do_captured_thread_select): Ditto.
1596 * ada-tasks.c (task_command): Ditto.
1597
f4c5303c
OF
15982004-04-26 Orjan Friberg <orjanf@axis.com>
1599
1600 * frame.c: Include "observer.h".
1601 (frame_observer_target_changed): New function.
1602 (_initialize_frame): Attach target_changed observer.
1603 * regcache.c: Include "observer.h".
1604 (regcache_observer_target_changed): New function.
1605 (_initialize_regcache): Attach target_changed observer.
1606 * valops.c: Include "observer.h".
1607 (value_assign): Notify target_changed event when modifying register.
1608 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
1609
7270d8f2
OF
16102004-04-26 Orjan Friberg <orjanf@axis.com>
1611
1612 From Paul Koning <pkoning@equallogic.com>:
1613 * breakpoint.c (free_valchain): New function.
1614 (insert_bp_location, delete_breakpoint): Use free_valchain.
1615 (remove_breakpoint): Do not remove the valchain.
1616 (bpstat_stop_status): If not stopped by watchpoint, skip
1617 watchpoints when generating stop status list.
1618 * infrun.c (handle_inferior_event): Make
1619 stepped_after_stopped_by_watchpoint a global variable.
1620 * remote.c (remote_stopped_data_address): Return watch data
1621 address rather than zero if stepped_after_stopped_by_watchpoint is
1622 set.
1623
02d62932
MC
16242004-04-25 Michael Chastain <mec.gnu@mindspring.com>
1625
1626 Fix PR gdb/1626.
1627 * configure.in: Check for curses after termcap.
1628 On osf5.*, do not check for ncurses.
1629 * configure: Regenerate.
1630
3e9a183c
MK
16312004-04-25 Mark Kettenis <kettenis@gnu.org>
1632
c79ac407
MK
1633 * ppcobsd-nat.c: Include "ppc-tdep.h".
1634 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1635
3e9a183c
MK
1636 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
1637 Fixes PR tdep/1623 and PR tdep/1624.
1638
38cc9c28
MC
16392004-04-24 Michael Chastain <mec.gnu@mindspring.com>
1640
1641 * xmodem.h, xmodem.c: Remove files.
1642 * Makefile.in: Remove references to xmodem.h, xmodem.c.
1643
7f07c5b6
RC
16442004-04-23 Randolph Chung <tausq@debian.org>
1645
1646 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
1647 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
1648 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
1649 for handling stackless frames.
1650 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
1651
9f7194c3
RC
16522004-04-23 Randolph Chung <tausq@debian.org>
1653
1654 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
1655 starts at a pc before the frame is created.
1656
dcff6009
JB
16572004-04-23 Joel Brobecker <brobecker@gnat.com>
1658
1659 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
1660
65951cd9
JG
16612004-04-23 Jerome Guitton <guitton@gnat.fr>
1662
1663 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
1664 use convert_typed_floating to get the appropriate format.
1665
abc485a1
RC
16662004-04-22 Randolph Chung <tausq@debian.org>
1667
1668 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
1669 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
1670 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
1671 (hppa_sign_extend): Add prototype.
1672 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
1673 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
1674 (sign_extend): Rename with hppa_ prefix and make non-static. Other
1675 hppa targets will also use these functions.
1676 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
1677 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
1678 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
1679 (hppa_gdbarch_init): Remove gdbarch setting of
1680 skip_trampoline_code, in_solib_call_trampoline and
1681 in_solib_return_trampoline.
1682 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1683 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
1684 hppa_in_solib_call_trampoline.
1685 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
1686 Moved from hppa-tdep.c.
1687 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
1688 in_solib_call_trampoline and in_solib_return_trampoline.
1689
369aa520
RC
16902004-04-22 Randolph Chung <tausq@debian.org>
1691
1692 * hppa-tdep.c (hppa_debug): New variable.
1693 (find_unwind_entry, hppa_frame_cache): Add debug output.
1694 (_initialize_hppa_tdep): Add command to set debug flag.
1695
476be15e
AC
16962004-04-22 Andrew Cagney <cagney@redhat.com>
1697
1698 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
1699 "trad-frame.h".
1700 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
1701 signal trampoline unwinder.
1702 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
1703
d195bc9f
MK
17042004-04-22 Mark Kettenis <kettenis@gnu.org>
1705
1706 Add OpenBSD/powerpc support.
1707 * NEWS (New native configurations): Mention OpenBSD/powerpc.
1708 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
1709 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
1710 (ppc_collect_fpregset): New prototypes.
1711 * ppcobsd-nat.c: New file.
1712 * ppcobsd-tdep.c: New file.
1713 * ppcobsd-tdep.h: New file.
1714 * rs6000-tdep.c: Include "regset.h".
1715 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
1716 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
1717 New functions.
1718 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
1719 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
1720 (rs6000-tdep.o): Update dependencies.
1721 * configure.host: Add powerpc-*-openbsd.
1722 * configure.tgt: Add powerpc-*-openbsd.
1723 * config/powerpc/obsd.mh: New file.
1724 * config/powerpc/nm-obsd.h: New file.
1725 * config/powerpc/obsd.mt: New file.
1726
6f14cc33
AC
17272004-04-22 Andrew Cagney <cagney@redhat.com>
1728
fcf29e5f
AC
1729 * frame.h (show_frame_info): Delete declaration.
1730
6f14cc33
AC
1731 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
1732 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1733 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1734 * frv-tdep.c (frv_frame_this_id): Ditto.
1735 * avr-tdep.c (avr_frame_this_id): Ditto.
1736
e5786a5c
EZ
17372004-04-22 Elena Zannoni <ezannoni@redhat.com>
1738
1739 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
1740
26e75e5c
JB
17412004-04-22 Jim Blandy <jimb@redhat.com>
1742
1743 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
1744 register number zero.
1745
d8d65dd3
MS
17462004-04-21 Michael Snyder <msnyder@redhat.com>
1747
1748 * mips-tdep.c (heuristic_proc_start):
1749 Warning() already prefixes "Warning: ".
1750
9a4105ab
AC
17512004-04-21 Andrew Cagney <cagney@redhat.com>
1752
1753 * annotate.h (deprecated_annotate_starting_hook)
1754 (deprecated_annotate_stopped_hook)
1755 (deprecated_annotate_exited_hook)
1756 (deprecated_annotate_signal_hook)
1757 (deprecated_annotate_signalled_hook): Deprecate.
1758 * tracepoint.h (deprecated_create_tracepoint_hook)
1759 (deprecated_delete_tracepoint_hook)
1760 (deprecated_modify_tracepoint_hook)
1761 (deprecated_trace_find_hook)
1762 (deprecated_trace_start_stop_hook): Deprecate.
1763 * target.h (deprecated_target_new_objfile_hook): Deprecate.
1764 * remote.h (deprecated_target_resume_hook)
1765 (deprecated_target_wait_loop_hook): Deprecate.
1766 * gdbcore.h (deprecated_exec_file_display_hook)
1767 (deprecated_file_changed_hook): Deprecate.
1768 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
1769 * defs.h (deprecated_modify_breakpoint_hook)
1770 (deprecated_command_loop_hook, deprecated_show_load_progress)
1771 (deprecated_print_frame_info_listing_hook)
1772 (deprecated_query_hook, deprecated_warning_hook)
1773 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
1774 (deprecated_delete_breakpoint_hook)
1775 (deprecated_interactive_hook, deprecated_registers_changed_hook)
1776 (deprecated_readline_begin_hook, deprecated_readline_hook)
1777 (deprecated_readline_end_hook, deprecated_register_changed_hook)
1778 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
1779 (deprecated_context_hook, deprecated_target_wait_hook)
1780 (deprecated_attach_hook, deprecated_detach_hook)
1781 (deprecated_call_command_hook, deprecated_set_hook)
1782 (deprecated_error_hook, deprecated_error_begin_hook)
1783 (deprecated_ui_load_progress_hook): Deprecate.
1784 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
1785 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
1786 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
1787 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
1788 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
1789 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
1790 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
1791 * annotate.c, aix-thread.c: Update.
1792
62cf13cc
AC
17932004-04-21 Andrew Cagney <cagney@redhat.com>
1794
b2e31a62
AC
1795 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
1796 * vaxnbsd-tdep.c: Include "gdb_string.h".
1797
62cf13cc
AC
1798 * symfile.c (symbol_file_add_from_memory): #if 0 function.
1799 (add_symbol_file_from_memory_command): #if 0 function body, call
1800 error instead.
1801
00e32a35
AC
18022004-04-21 Andrew Cagney <cagney@redhat.com>
1803
1804 * gdbcore.h: Update copyright.
1805 (deprecated_add_core_fns): Rename add_core_fns.
1806 * win32-nat.c (_initialize_core_win32): Update.
1807 * sun3-nat.c (_initialize_core_sun3): Update.
1808 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
1809 * rs6000-nat.c (_initialize_core_rs6000): Update.
1810 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
1811 * nto-tdep.c (_initialize_nto_tdep): Update.
1812 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
1813 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
1814 * mips-nat.c (_initialize_core_mips): Update.
1815 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
1816 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
1817 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
1818 * lynx-nat.c (_initialize_core_lynx): Update.
1819 * irix5-nat.c (_initialize_core_irix5): Update.
1820 * i386-interix-nat.c (_initialize_core_interix): Update.
1821 * cris-tdep.c (_initialize_cris_tdep): Update.
1822 * corelow.c (deprecated_add_core_fns): Update.
1823 * core-regset.c (_initialize_core_regset): Update.
1824 * core-aout.c (_initialize_core_aout): Update.
1825 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
1826 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
1827 * alpha-nat.c (_initialize_core_alpha): Update.
1828
13c7b1ca
JB
18292004-04-21 Jim Blandy <jimb@redhat.com>
1830
1831 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
1832
7b5a2f43
DJ
18332004-04-19 Daniel Jacobowitz <drow@mvista.com>
1834
1835 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
1836 Delete.
1837 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
1838 (read_attribute_value): Update calls to dwarf_alloc_block.
1839 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
1840 dwarf2_tmp_obstack.
1841 (psymtab_to_symtab_1): Likewise. Clean up using
1842 free_stack_comp_unit.
1843 (add_to_cu_func_list): Use the comp_unit_obstack.
1844
05cf31d1
JB
18452004-04-19 Joel Brobecker <brobecker@gnat.com>
1846
1847 * dwarf2read.c (dwarf2_flag_true_p): New function.
1848 (die_is_declaration): Use the function above. Add some comments.
1849
adf93a2f
MK
18502004-04-19 Mark Kettenis <kettenis@gnu.org>
1851
1852 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
1853 architecture when registering sparcnbsd_core_osabi_sniffer.
1854 Adjust comment.
1855
748894bf
MK
18562004-04-18 Mark Kettenis <kettenis@gnu.org>
1857
f622ad42
MK
1858 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
1859 return value.
1860
c4fc7f1b
MK
1861 Based on a patch from Brian Ford <ford@vss.fsi.com>:
1862 * i386-tdep.c: Correct register numbering scheme comments
1863 throughout.
1864 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
1865 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
1866 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
1867 (i386_gdb_arch_init): Likewise.
1868
b4ead1bd
MK
1869 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
1870 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
1871 ppcnbsd-tdep.o.
1872
748894bf
MK
1873 * m68k-tdep.h: Tweak comments.
1874 * m68k-tdep.c: Tweak comment.
1875
fdd72f95
RC
18762004-04-17 Randolph Chung <tausq@debian.org>
1877
1878 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
1879 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
1880 (hppa_hpux_som_init_abi): Set is_elf to 0.
1881 (hppa_hpux_elf_init_abi): Set is_elf to 1.
1882 * hppa-tdep.c (low_text_segment_address): Remove global.
1883 (record_text_segment_lowaddr): Pass in low address as parameter. Use
1884 section offset to calculate segment address.
1885 (internalize_unwinds): Define low_text_segment_address as local and
1886 pass to record_text_segment_lowaddr for ELF targets.
1887 (hppa_gdbarch_init): Zero fill tdep structure.
1888 (hppa_dump_tdep): Print tdep structure.
1889 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
1890
0f8d9d59
RC
18912004-04-17 Randolph Chung <tausq@debian.org>
1892
1893 * hppa-tdep.c (hppa_pseudo_register_read): Define.
1894 (hppa_gdbarch_init): Set pseudo_register_read.
1895 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
1896 * regcache.c (supply_register): Remove check for
1897 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
1898
7c46b9fb
RC
18992004-04-17 Randolph Chung <tausq@debian.org>
1900
1901 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
1902 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
1903 (hpread_adjust_stack_address): Move to hpread.c.
1904 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
1905 obj_private_struct): Move from tm-hppa.h.
1906 * hpread.c (hppa-tdep.h): Include.
1907 (hpread_adjust_stack_address): Move from hppa-tdep.c.
1908 (hpread_read_function_type, hpread_read_doc_function_type)
1909 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
1910 directly.
1911 * pa64solib.c (hppa-tdep.h): Include.
1912 * somsolib.c (hppa-tdep.h): Include.
1913 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
1914 inferior_status): Remove unused forward declarations.
1915 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
1916 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
1917 obj_private_struct): Move to hppa-tdep.h.
1918 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
1919
8d153463
RC
19202004-04-17 Randolph Chung <tausq@debian.org>
1921
1922 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
1923 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
1924 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
1925 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
1926 Remove forward declaration and make static.
1927 (hppa_reg_struct_has_addr): Remove.
1928
350c2e5b
JB
19292004-04-16 Joel Brobecker <brobecker@gnat.com>
1930
1931 * observer.sh: Move comments in sed command to first column.
1932
bbde78fa
JM
19332004-04-16 Jason Molenda (jmolenda@apple.com)
1934
1935 * frame.c: Minor typeo corrections in comments.
1936
e0270fd9
JB
19372004-04-16 Joel Brobecker <brobecker@gnat.com>
1938
1939 * observer.c (observer_test_first_notification_function): Update
1940 function profile.
1941 (observer_test_second_notification_function): Likewise.
1942 (observer_test_third_notification_function): Likewise.
1943
3d049254
MK
19442004-04-16 Mark Kettenis <kettenis@gnu.org>
1945
1946 From Brian Ford <ford@vss.fsi.com>:
1947 * i386-tdep.c (i386_coff_init_abi): New function.
1948 * i386-tdep.h (i386_coff_init_abi): New prototype.
1949 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
1950 register number translation functions for DWARF and DWARF 2.
1951
7867684d
JB
19522004-04-16 Joel Brobecker <brobecker@gnat.com>
1953
1954 * dwarf2read.c: Back out my previous change, it was incorrect.
1955
72bf9492
DJ
19562004-04-16 Daniel Jacobowitz <drow@mvista.com>
1957
1958 * dwarf2read.c: Include "hashtab.h".
1959 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
1960 has_namespace_info.
1961 (struct partial_die_info): Add comments. Use bitfields to reduce
1962 memory footprint. Add scope, scope_set, has_specification,
1963 spec_offset, die_parent, die_child, and die_sibling.
1964 (peek_die_abbrev): Add prototype.
1965 (partial_read_comp_unit_head): New function, broken out from
1966 dwarf2_build_psymtabs_hard.
1967 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
1968 Use partial_read_comp_unit_head. Initialize the CU and
1969 comp_unit_obstack. Update calls to read_partial_die and
1970 scan_partial_symbols. Use free_stack_comp_unit and
1971 load_partial_dies.
1972 (scan_partial_symbols): Change PDI to a pointer. Use the child and
1973 sibling pointers to walk partial DIEs. Call fixup_partial_die.
1974 Update calls to helper functions. Remove NAMESPACE argument.
1975 Update comments.
1976 (partial_die_parent_scope, partial_die_full_name): New functions.
1977 (add_partial_symbol): Remove namespace argument. Update call to
1978 pdi_needs_namespace. Use partial_die_full_name. Handle
1979 DW_TAG_namespace. Check has_namespace_info flag.
1980 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
1981 tag. Handle namespaces.
1982 (add_partial_namespace, add_partial_enumeration): Simplify.
1983 (guess_structure_name): New function, derived from
1984 add_partial_structure.
1985 (add_partial_structure): Remove.
1986 (determine_class_name): Update comment.
1987 (dwarf2_read_abbrevs): Set has_namespace_info flag.
1988 (is_type_tag_for_partial, load_partial_dies): New functions.
1989 (read_partial_die): Pass abbrev and abbrev_len as arguments.
1990 Record specifications instead of following them immediately.
1991 (find_partial_die_in_comp_unit, find_partial_die)
1992 (fixup_partial_die, free_stack_comp_unit)
1993 (hashtab_obstack_allocate, dummy_obstack_deallocate)
1994 (partial_die_hash, partial_die_eq): New functions.
1995 * Makefile.in (hashtab_h): Define.
1996 (dwarf2read.o): Update dependencies.
1997 (observer_inc, observer_h): Move to the correct section.
1998
fdc860a3
JB
19992004-04-15 Joel Brobecker <brobecker@gnat.com>
2000
2001 * dwarf2read.c (dwarf2_attribute_true_p): New function.
2002 (die_is_declaration): Use the function above. Add comment.
2003
dc718098
JB
20042004-04-15 Joel Brobecker <brobecker@gnat.com>
2005
2006 * dwarf2read.c (read_structure_scope): Identify stub types
2007 using die_is_declaration() only.
2008
8718a420
RM
20092004-04-15 Roland McGrath <roland@redhat.com>
2010
2011 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
2012 argument instead of NAME.
2013 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
2014 in call to symbol_file_add_with_addrs_or_offsets.
2015 (build_addr_info): New function, helper for ...
2016 (symbol_file_add_from_memory): New function.
2017 (add_symbol_file_from_memory_command): New function using that.
2018 (_initialize_symfile): Register it for add-symbol-file-from-memory.
2019 (pre_add_symbol_hook): Add const to argument type.
2020 * symfile.h (symbol_file_add_from_memory): Declare it.
2021
8b910bab
MK
20222004-04-15 Mark Kettenis <kettenis@gnu.org>
2023
9f076e7a
MK
2024 * NEWS (New native configurations): Mention OpenBSD/vax.
2025 * configure.host: Add vax-*-openbsd*.
2026 * config/vax/obsd.mh: New file.
2027 * config/vax/nm-obsd.h: New file.
2028
8b910bab
MK
2029 * vax-tdep.c: Include "regset.h".
2030 (vax_supply_gregset): New function.
2031 (vax_gregset): New variable.
2032 (vax_regset_from_core_section): New function.
2033 (vax_gdbarch_init): Set regset_from_core_section.
2034 * Makefile.in (vax-tdep.o): Update dependencies.
2035
7a464420
AC
20362004-04-15 Andrew Cagney <cagney@redhat.com>
2037
2038 * observer.c (normal_stop_subject, observer_notify_normal_stop)
2039 (observer_normal_stop_notification_stub)
2040 (observer_attach_normal_stop, observer_detach_normal_stop):
2041 Delete, replaced by #include "observer.inc".
2042 * infrun.c (normal_stop): Pass "stop_bpstat" to
2043 observer_notify_normal_stop.
2044 * Makefile.in (observer_inc): Define.
2045 (observer.o): Update dependencies.
2046 (observer.h, observer.inc): New rules.
2047 * observer.h: Delete file.
2048 * observer.sh: New file.
2049
e36ad527
MK
20502004-04-15 Mark Kettenis <kettenis@gnu.org>
2051
2052 * vax-tdep.c (vax_frame_cache): Fix typo.
2053
67b441e1
MK
20542004-04-14 Mark Kettenis <kettenis@gnu.org>
2055
6f606e1c
MK
2056 * NEWS (New native configurations): Mention NetBSD/vax.
2057 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
2058 * config/vax/nbsdelf.mh: New file.
2059 * config/vax/nbsdaout.mh: New file.
2060 * config/vax/nm-nbsd.h: New file.
2061 * config/vax/nm-nbsdaout.h: New file.
2062
9c5519a5
MK
2063 * vaxnbsd-tdep.c: New file.
2064 * Makefile.in (vaxnbsd-tdep.o): New dependency.
2065 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
2066 * config/vax/nbsd.mt: New file.
2067 * config/vax/tm-nbsd.h: New file.
2068
4844a614
MK
2069 * Makefile.in (vaxbsd-nat.o): New dependency.
2070
67b441e1
MK
2071 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
2072 * vax-tdep.c (vax_store_arguments): Remove struct_return and
2073 struct_addr arguments. Don't push return value address.
2074 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
2075 arguments to vax_store_arguments. Store return value address in
2076 R1.
2077 (vax_store_struct_return, vax_extract_return_value)
2078 (vax_store_return_value): Remove functions.
2079 (vax_return_value): New function.
2080 (vax_gdbarch_init): Set return value. Don't set
2081 deprecated_store_struct_return, deprecated_extract_struct_return
2082 and deprecated_store_return_value.
2083
6672f2ae
AS
20842004-04-14 Andreas Schwab <schwab@suse.de>
2085
2086 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
2087 value buffer.
2088 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
2089
7346c184
MK
20902004-04-14 Mark Kettenis <kettenis@gnu.org>
2091
2092 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
2093 (vax_unwind_dummy_id): New functions.
2094 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
2095 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
2096 variables.
2097 (vax_fix_call_dummy): Remove function.
2098 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
2099 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
2100 call_dummy_location, deprecated_call_dummy_words,
2101 deprecated_sizeof_call_dummy_words,
2102 deprecated_call_dummy_breakpoint_offset,
2103 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
2104 and deprecated_dummy_write_sp.
2105
58e23df4
DC
21062004-04-13 David Carlton <carlton@kealia.com>
2107
2108 * MAINTAINERS: Move myself to "paper trail" section.
2109
5e6b39ff
MK
21102004-04-12 Mark Kettenis <kettenis@gnu.org>
2111
7def7fef
MK
2112 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
2113 "trad-frame.h".
2114 (vax_frame_init_saved_regs): Remove function.
2115 (vax_sigtramp_saved_pc): Remove function.
2116 (vax_frame_saved_pc): Remove function.
2117 (vax_frame_args_address): Remove function.
2118 (vax_frame_num_args): Rewrite.
2119 (vax_frame_chain): Remove function.
2120 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
2121 VAX_FP_REGNUM.
2122 (vax_pop_frame): Likewise.
2123 (vax_saved_pc_after_call): Remove function.
2124 (struct vax_frame_cache): New structure.
2125 (vax_frame_cache): New function.
2126 (vax_frame_this_id): New function.
2127 (vax_frame_prev_register): New function.
2128 (vax_frame_unwind): New variable.
2129 (vax_frame_sniffer): New function.
2130 (vax_frame_base_address): New function.
2131 (vax_frame_args_address): New function.
2132 (vax_frame_base): New variable.
2133 (vax_unwind_pc): New function.
2134 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
2135 deprecated_fp_regnum, deprecated_saved_pc_after_call,
2136 deprecated_frame_chain, deprecated_frame_saved_pc,
2137 deprecated_frame_args_address and
2138 deprecated_frame_init_saved_regs.
2139 * Makefile.in (vax-tdep.o): Update dependencies.
2140
53284fc1
MK
2141 * vaxbsd-nat.c: New file.
2142
5e6b39ff
MK
2143 * vax-tdep.h: Update copyright year. Adjust comments.
2144 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
2145 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
2146 (vax_regnum): New enum. Replacing...
2147 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
2148 (VAX_PS_REGNUM): ... these removed macros.
2149 * vax-tdep.c (vax_register_name): Remove prototype.
2150 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
2151 (vax_register_byte, vax_register_raw_size,
2152 vax_register_virtual_size, vax_register_virtual_type): Remove
2153 functions.
2154 (vax_register_type): New function.
2155 (vax_breakpoint_from_pc): Reorganize.
2156 (vax_gdbarch_init): Set register_type. Don't set
2157 deprecated_register_size, deprecated_register_bytes,
2158 deprecated_register_byte, deprecated_register_raw_size,
2159 deprecated_max_register_raw_size,
2160 deprecated_register_virtual_size,
2161 deprecated_max_register_virtual_size and
2162 deprecated_register_virtual_type. Add comment on stack direction.
2163
e9c71e9f
MK
21642004-04-11 Mark Kettenis <kettenis@gnu.org>
2165
2166 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
2167 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 2168 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 2169
d46f1176 21702004-04-10 Randolph Chung <tausq@debian.org>
8718a420 2171
d46f1176
RC
2172 * MAINTAINERS (write after approval): Add myself.
2173
a2a84a72
RC
21742004-04-07 Randolph Chung <tausq@debian.org>
2175
2176 * hppa-tdep.c (hppa_inner_than): Remove.
2177 (is_pa_2): Remove unused static variable.
8718a420 2178 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 2179
e85c3284
PH
21802004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
2181
2182 * language.h (language_defn): Add new la_post_parser field.
2183 * parser-defs.h (null_post_parser): New declaration (default for
2184 la_post_parser).
8718a420 2185
e85c3284
PH
2186 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
2187 insert call to that function.
2188 (parse_exp_in_context): New function, including code formerly in
8718a420 2189 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
2190 prefixification.
2191 (parse_expression_in_context): New exported function.
2192 (null_post_parser): New definition.
2193 * expression.h (parse_expression_in_context): Add declaration.
8718a420 2194
e85c3284
PH
2195 * p-lang.c (pascal_language_defn): Add trivial post-parser.
2196 * c-lang.c (c_language_defn): Ditto.
2197 (cplus_language_defn): Ditto.
2198 (asm_language_defn): Ditto.
2199 (minimal_language_defn): Ditto.
2200 * f-lang.c (f_language_defn): Ditto.
2201 * jv-lang.c (java_language_defn): Ditto.
2202 * language.c (unknown_language_defn): Ditto.
2203 (auto_language_defn): Ditto.
2204 (local_language_defn): Ditto.
2205 * m2-lang.c (m2_language_defn): Ditto.
2206 * scm-lang.c (scm_language_defn): Ditto.
2207 * obj-lang.c (objc_language_defn): Ditto.
8718a420 2208
d9f8c85b
MK
22092004-04-10 Mark Kettenis <kettenis@gnu.org>
2210
fa34704a
MK
2211 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
2212 (amd64nbsd_mcontext_addr): New function.
2213 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
2214 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
2215 with amd64nbsd_r_reg_offset, instead of building it on the fly.
2216
403e1656
MK
2217 * corelow.c (core_xfer_partial): Fix coding standards violation.
2218 Add support for TARGET_OBJECT_WCOOKIE.
2219
a57e5a95
MK
2220 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
2221 deprecated_pc_in_sigtramp.
2222 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2223 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2224 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
2225 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
2226 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
2227 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
2228 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
2229
377d9ebd
MK
2230 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
2231 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
2232 Fix typo.
2233
f0ef85a5
MK
2234 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
2235 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
2236 (amd64_collect_fxsave): Likewise.
2237
d9f8c85b
MK
2238 * i386-sol2-tdep.c: Include "gdb_string.h".
2239 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
2240 name.
2241 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2242
75f501b5
MK
22432004-04-10 Mark Kettenis <kettenis@gnu.org>
2244
2245 * i386-sol2-tdep.c: Include "solib-svr4.h".
2246 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2247 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2248 * config/i386/tm-i386sol2.h: Include :solib.h".
2249 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
2250 solib-svr4.o and solib-legacy.o.
2251 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
2252 solib-svr4.o.
2253
b31bc724
MK
22542004-04-09 Mark Kettenis <kettenis@gnu.org>
2255
18bbbd9e
MK
2256 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
2257 whether a register is supplied by PTRACE_GETFPREGS.
2258 (store_inferior_registers): Likewise.
2259 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
2260 whether a register is supplied by PT_GETFPREGS.
2261 (store_inferior_registers): Likewise.
2262
3c30bf1b
MK
2263 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
2264 * config/i386/linux64.mt (TDEPFILES): Likewise.
2265
a4194092
MK
2266 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
2267
911bc6ee
MK
2268 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
2269 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2270 the program counter is in the range specified by `struct
2271 gdbarch_tdep'.
2272 * amd64-linux-tdep.c: Include "symtab.h".
2273 (amd64_linux_pc_in_sigtramp): Remove function.
2274 (amd64_linux_sigtramp_p): New function.
2275 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2276 deprecated_pc_in_sigtramp.
2277 * amd64nbsd-tdep.c: Include "symtab.h".
2278 (amd64nbsd_sigtramp_p): New function.
2279 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2280 deprecated_pc_in_sigtramp.
2281 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
2282 few comments.
2283 (amd64obsd_pc_in_sigtramp): Remove function.
2284 (amd64obsd_sigtramp_p): New function.
2285 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2286 deprecated_pc_in_sigtramp.
2287 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
2288 (i386bsd_pc_ins_sigtramp): Remove prototype.
2289 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
2290 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
2291 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2292 the program counter is in the range specified by `struct
2293 gdbarch_tdep'.
2294 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
2295 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
2296 (i386_go32_pc_in_sigtramp): Remove function.
2297 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
2298 Initialize TDEP->sigtramp_p.
2299 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
2300 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
2301 deprecated_pc_in_sigtramp.
2302 * i386-linux-tdep.c: Adjust comments.
2303 (i386_linux_pc_in_sigtramp): Remove function.
2304 (i386_linux_sigtramp_p): New function.
2305 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2306 deprecated_pc_in_sigtramp.
2307 * i386-nto-tdep.c: Update copyright year.
2308 (i386nto_pc_in_sigtramp): Remove function.
2309 (i386nto_sigtramp_p): New function.
2310 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
2311 SP_REGNUM.
2312 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
2313 deprecated_pc_in_sigtramp.
2314 * i386-sol2-tdep.c: Update copyright year.
2315 (i386_sol2_pc_in_sigtramp): Remove function.
2316 (i386_sol2_sigtramp_p): New function.
2317 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
2318 deprecated_pc_in_sigtramp.
2319 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
2320 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
2321 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2322 deprecated_sigtramp_start and deprecated_sigtramp_end.
2323 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
2324 (i386nbsd_pc_in_sigtramp): Remove function.
2325 (i386nbsd_sigtramp_p): New function.
2326 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2327 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2328 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
2329 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
2330 (i386obsd_pc_in_sigtramp): Remove function.
2331 (i386obsd_sigtramp_p): New function.
2332 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
2333 functions.
2334 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2335 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2336 TDEP->sigtramp_p.
2337 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
2338 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
2339 dependencies.
2340
e083e6ec
MK
2341 * config/i386/i386aout.mt: Remove file.
2342
bd153b94
MK
2343 * configure.tgt: Remove i[34567]86-*-go32*,
2344 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
2345 and i[34567]86-*-isc*. Set gdb_target to i386 for
2346 i[34567]86-*-netware* and i[34567]86-*-*.
2347 * config/i386/i386.mt: New file.
2348 * config/i386/embed.mt: Remove file.
2349 * config/i386/go32.mt: Remove file.
2350 * config/i386/i386nw.mt: Remove file.
2351 * config/i386/i386v.mt: Remove file.
2352 * config/i386/tm-go32.h: Remove file.
2353
4a1bcc8c
MK
2354 * tui/tui-hooks.c: Include "readline/readline.h" after
2355 "gdb_curses.h" instead of before.
2356 * tui/tui-io.c: Likewise.
2357
f9a79064
MK
2358 * tui/tui.c: Fix typo in comment.
2359
b31bc724
MK
2360 * sparc64-tdep.c (sparc_address_from_register): Remove function.
2361
f83f82bc
AC
23622004-04-08 Andrew Cagney <cagney@redhat.com>
2363
2364 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
2365 (deprecated_exception_support_initialized): Declare.
8718a420 2366 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
2367 (initialize_hp_cxx_exception_support)
2368 (child_enable_exception_callback): Update.
2369 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
2370 (deprecated_exception_support_initialized): Rename
2371 deprecated_exception_catchpoints_are_fragile and
2372 deprecated_exception_support_initialized.
2373 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
2374
2375 * symtab.c (deprecated_hp_som_som_object_present): Rename
2376 hp_som_som_object_present.
2377 * symtab.h (deprecated_hp_som_som_object_present): Declare.
2378 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
2379 Update. Delete extern declaration.
2380 * valops.c (hp_som_som_object_present): Ditto.
8718a420 2381 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
2382 (parse_nested_classes_for_hpacc): Ditto.
2383 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 2384 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
2385 (initialize_hp_cxx_exception_support): Ditto.
2386 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 2387 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 2388 (cp_print_class_method): Ditto.
8718a420 2389 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
2390 (c_type_print_base): Ditto.
2391 * c-exp.y (hp_som_som_object_present): Ditto.
2392
fb2be677
AC
23932004-04-08 Andrew Cagney <cagney@redhat.com>
2394
2395 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
2396 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
2397 (frame_unwind_find_by_frame): Re-implement the unwind code so
2398 that it can both prepend and append sniffers. Replace
2399 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
2400 * tramp-frame.c (tramp_frame_append): Use
2401 frame_unwind_prepend_unwinder.
2402 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
2403 frame_unwind_register_unwinder.
2404 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
2405 tramp_frame_append.
2406 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 2407 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
2408 (mips_linux_init_abi): Update.
2409
67faf007
KB
24102004-04-08 Kevin Buettner <kevinb@redhat.com>
2411
2412 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
2413 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
2414 file support.
2415
8973ff21
KB
24162004-04-07 Kevin Buettner <kevinb@redhat.com>
2417
2418 * ia64-tdep.c (elf.h): Don't include.
2419 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
2420
4a0e2f88
JM
24212004-04-07 Jason Molenda (jmolenda@apple.com)
2422
2423 * frame.h: Typeo corrections in comments.
2424
9872ad24
JB
24252004-04-07 Jim Blandy <jimb@redhat.com>
2426
2427 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
2428 %esp and %ebp
2429
70b216c8
MK
24302004-04-07 Mark Kettenis <kettenis@gnu.org>
2431
11d5789c
MK
2432 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
2433 * config/sparc/linux64.mt (TDEPFILES): Likewise.
2434 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2435 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2436 and solib-legacy.o.
2437 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
2438 solib-svr4.o.
2439 * config/sparc/tm-sol2.h: Update copyright year. Include
2440 "solib.h".
2441
70b216c8
MK
2442 * sparc-sol2-tdep.c: Update copyright year. Include
2443 "solib-svr4.h".
2444 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2445 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
2446 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 2447 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
2448 dependencies.
2449
6339dc9e
AC
24502004-04-06 Andrew Cagney <cagney@redhat.com>
2451
2452 * infttrace.c: Include "infttrace.h".
2453 * infttrace.h: Include "target.h".
2454 * Makefile.in (infttrace_h): Update.
2455 (infttrace.o): Update.
8718a420 2456
93449403
AC
24572004-04-06 Andrew Cagney <cagney@redhat.com>
2458
6d518969
AC
2459 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
2460 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
2461 move extern declarations from here ...
2462 * infttrace.h: ... to here.
2463 * Makefile.in (hppah-nat.o): Update dependencies.
2464
85f4f2d8
AC
2465 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
2466 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 2467 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
2468 (hppa_breakpoint_from_pc): Delete.
2469
93449403
AC
2470 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
2471
71456ec6
AC
24722004-04-05 Andrew Cagney <cagney@redhat.com>
2473
2474 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
2475 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
2476 <sys/file.h>.
8718a420 2477
4c02c60c
AC
24782004-04-06 Randolph Chung <tausq@debian.org>
2479
2480 Committed by Andrew Cagney (mechanical change).
2481 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
2482 exception_catchpoints_are_fragile, find_stub_with_shl_get,
2483 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
2484 child_enable_exception_callback, current_ex_event,
2485 null_symtab_and_line, child_get_current_exception_event,
2486 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
2487 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
2488 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
2489 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
2490 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
2491 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
2492 Move hpux-specific definitions ...
2493 * hppa-hpux-tdep.c: ... to here.
2494
3a515653
AC
24952004-04-05 Andrew Cagney <cagney@redhat.com>
2496
2497 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
2498 skip_prologue_using_sal.
2499
c1730d02
AC
25002004-04-05 Andrew Cagney <cagney@redhat.com>
2501
2502 * config/i386/tm-i386.h: Delete file.
2503 * config/i386/tm-vxworks.h: Update copyright, do not include
2504 "tm-i386.h".
2505 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
2506 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
2507 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
2508 * config/i386/ncr3000.mt (TM_FILE): Delete.
2509 * config/i386/interix.mt (TM_FILE): Delete.
2510 * config/i386/i386v.mt (TM_FILE): Delete.
2511 * config/i386/i386nw.mt (TM_FILE): Delete.
2512 * config/i386/i386gnu.mt (TM_FILE): Delete.
2513 * config/i386/i386aout.mt (TM_FILE): Delete.
2514 * config/i386/embed.mt (TM_FILE): Delete.
2515
8b67aa36
KB
25162004-04-05 Kevin Buettner <kevinb@redhat.com>
2517
2518 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
2519 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
2520 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
2521 (accg7_regnum): New constants.
2522 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
2523 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
2524 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
2525 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
2526 for accg registers.
2527 (frv_register_sim_regno): Update spr_map[].
2528
3c7012f5
AC
25292004-04-04 Andrew Cagney <cagney@redhat.com>
2530
2531 * config/mips/xm-riscos.h: Delete.
2532 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
2533 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
2534 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
2535 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
2536 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
2537 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
2538 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
2539 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
2540 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
2541 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
2542 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
2543 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
2544 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
2545 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
2546 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
2547 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
2548 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
2549 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
2550 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
2551 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
2552 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
2553 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
2554 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
2555 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
2556 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
2557 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 2558
3c7012f5
AC
2559 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
2560 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
2561 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
2562 * configure.host: Remove m680[01]0-sun-sunos3*,
2563 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
2564 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
2565 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
2566 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
2567 mips-*-riscos*.
2568 * NEWS: Mention removed systems.
2569
99d16a21
AC
25702004-04-04 Andrew Cagney <cagney@redhat.com>
2571
2572 GDB 6.1 release created from 6.1 branch.
2573
6cdf9d98
AC
25742004-04-04 Andrew Cagney <cagney@redhat.com>
2575
98d346c3
AC
2576 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
2577 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2578 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
2579
6cdf9d98
AC
2580 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
2581 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
2582 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
2583
859a326d
JB
25842004-04-03 Jim Blandy <jimb@redhat.com>
2585
2586 * MAINTAINERS: Chris Faylor has changed employers; add him to
2587 "paper trail" section, and update his E-mail address.
2588
b87178c3
AC
25892004-04-03 Andrew Cagney <cagney@redhat.com>
2590
4ea2acf0
AC
2591 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
2592 generic dummy frames.
2593 * dummy-frame.c: Update copyright.
2594 (dummy_frame_sniffer): Delete check for generic dummy frames.
2595
d0bd2d18 2596 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 2597 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
2598 (REG_PARM_STACK_SPACE): Delete.
2599 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
2600 Inline reference to REG_PARM_STACK_SPACE.
2601
b87178c3
AC
2602 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
2603 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2604 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2605 (FRAME_BASE_BEFORE_SIGTRAMP)
2606 (hppa32_hpux_frame_base_before_sigtramp)
2607 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
2608 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
2609 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
2610 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2611 (FRAME_BASE_BEFORE_SIGTRAMP)
2612 (hppa64_hpux_frame_base_before_sigtramp)
2613 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
2614
43e2e1a0
AC
26152004-04-03 Andrew Cagney <cagney@redhat.com>
2616
2617 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
2618
ddc135a4
AC
26192004-04-02 Andrew Cagney <cagney@redhat.com>
2620
2621 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
2622 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
2623 * dummy-frame.h: Delete out-of-date comments.
2624 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
2625 * gdbarch.h, gdbarch.c: Re-generate.
2626
d15bfd3a 26272004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 2628
d15bfd3a
AC
2629 Committed by Andrew Cagney <cagney@redhat.com>.
2630 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
2631 into account an instruction saving a register if we have already
2632 seen an earlier instruction saving that same register.
2633
f04ceafa
AC
26342004-04-02 Andrew Cagney <cagney@redhat.com>
2635
08be3abd
AC
2636 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
2637 * gdbarch.h, gdbarch.c: Re-generate.
2638 * frame.c (legacy_get_prev_frame): Delete references to
2639 DEPRECATED_INIT_FRAME_PC_FIRST.
2640
f04ceafa
AC
2641 * infrun.c (pc_in_sigtramp): Delete function.
2642 (check_sigtramp2): Inline call to pc_in_sigtramp, use
2643 get_frame_type.
2644
08e69816
AC
26452004-04-02 Andrew Cagney <cagney@redhat.com>
2646
2647 * infrun.c (handle_step_into_function): Delete code conditional on
2648 legacy_frame_p.
2649 (handle_inferior_event, step_over_function): Ditto.
2650
adb54772
AC
26512004-04-02 Andrew Cagney <cagney@redhat.com>
2652
2653 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
2654 "previous frame inner to this frame" test.
2655
304396fb
AC
26562004-04-02 Andrew Cagney <cagney@redhat.com>
2657
2658 * frame.c (safe_frame_unwind_memory): New function.
2659 * frame.h (safe_frame_unwind_memory): Declare. Update description
2660 of /safe_/ methods.
2661 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
2662 "next_frame". Use safe_frame_unwind_memory.
2663 (tramp_frame_sniffer): Update call to tramp_frame_start.
2664
6502dd73
DJ
26652004-04-01 Daniel Jacobowitz <drow@mvista.com>
2666
2667 * dwarf2read.c (dwarf2_objfile_data_key): New.
2668 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
2669 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
2670 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
2671 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
2672 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
2673 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
2674 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
2675 Remove variables.
2676 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
2677 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
2678 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
2679 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
2680 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
2681 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
2682 Remove macros.
2683 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
2684 data.
2685 (dwarf2_locate_sections, dwarf2_build_psymtabs)
2686 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
2687 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
2688 (read_partial_die, read_full_die, read_indirect_string)
2689 (dwarf_decode_line_header, dwarf_decode_macros)
2690 (dwarf2_symbol_mark_computed): Remove use of removed macros.
2691 Update uses of removed variables.
2692 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
2693 of removed macros.
2694 (_initialize_dwarf2_read): New function.
2695 * symfile.h (dwarf2_has_info): Update prototype.
2696 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
2697 * elfread.c (elf_symfile_read): Likewise.
2698
408752b0
JB
26992004-04-01 Jim Blandy <jimb@redhat.com>
2700
9f744501
JB
2701 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
2702 function for register numbers on all the rs6000-derived targets.
2703 (rs6000_gdbarch_init): Don't register a separate
2704 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
2705 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
2706 variants.
2707
408752b0
JB
2708 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
2709 numbering.
2710
2de41bce
PH
27112004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2712
2713 * valarith.c: Update copyright notice.
2714 (value_add): Handle range types.
2715 (value_sub): Ditto.
2716 (value_equal): Ditto.
2717 (value_less): Ditto.
2718 (value_neg): Ditto.
2719 (value_complement): Ditto.
8718a420 2720 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 2721 eliminiating unnecessary COERCE_ENUMs.
8718a420 2722
5613d8d3
AC
27232004-03-31 Andrew Cagney <cagney@redhat.com>
2724
2725 * frame.h (frame_unwind_id): Declare.
2726 * frame.c (frame_unwind_id): New function.
2727 (get_prev_frame_1): New function.
2728 (frame_debug_got_null_frame): New function.
2729 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
2730 code proper to prev_frame, update description.
2731 * infrun.c (step_over_function): Use frame_unwind_id.
2732
c4557624
JB
27332004-04-31 J. Brobecker <brobecker@gnat.com>
2734
2735 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
2736 (hppa64_push_dummy_call): Likewise.
2737
3e6bb910
JB
27382004-03-30 Jim Blandy <jimb@redhat.com>
2739
2740 From Ulrich Weigand:
2741 * utils.c (query): Do not use a va_list variable multiple times.
2742
a2f23071
DJ
27432004-03-29 Daniel Jacobowitz <drow@mvista.com>
2744
2745 * Makefile.in (linux_nat_h): Update dependencies.
2746 * configure.in: Check for <gnu/libc-version.h>.
2747 * configure: Regenerate.
2748 * config.in: Regenerate.
2749 * linux-nat.h: Include "target.h". Add waitstatus field to
2750 struct lwp_info.
2751 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
2752 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
2753 to.
2754 (lin_lwp_handle_extended): New function. Handle clone events.
2755 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
2756 thread exit events.
2757 (child_wait): Handle clone events.
2758 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
2759 * linux-nat.c (linux_enable_event_reporting): Turn on
2760 PTRACE_O_TRACECLONE.
2761 (linux_handle_extended_wait): Handle clone events.
2762 * thread-db.c: Include <gnu/libc-version.h>.
2763 (struct private_thread_info): Add dying flag.
2764 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
2765 higher.
2766 (attach_thread): Update comments. Handle dying threads.
2767 (detach_thread): Set the dying flag.
2768 (check_event): Always call attach_thread.
2769
8d5f9dcb
DJ
27702004-03-29 Daniel Jacobowitz <drow@mvista.com>
2771
2772 * mips-tdep.c (mips_pdr_data): New.
2773 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
2774 (_initialize_mips_tdep): Initialize mips_pdr_data.
2775
66337bb1
CV
27762004-03-29 Corinna Vinschen <vinschen@redhat.com>
2777
2778 * minsyms.c (install_minimal_symbols): Move dropping leading
2779 char from linkage name from here...
2780 (prim_record_minimal_symbol_and_info): ...to here. Simplify
2781 test for "__gnu_compiled*" symbols.
2782
e802b915
JB
27832004-03-28 Jim Blandy <jimb@redhat.com>
2784
2785 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
2786 registers to temp register r0 and byte stores as prologue
2787 instructions.
2788
72b56458
AC
27892004-03-28 Andrew Cagney <cagney@redhat.com>
2790
2791 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
2792 arm*-*-*.
2793
0bfbda3b
SC
27942004-03-28 Stephane Carrez <stcarrez@nerim.fr>
2795
2796 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
2797 and switch the layout to force a display of register window.
2798
5a7225ed
JB
27992004-02-26 J. Brobecker <brobecker@gnat.com>
2800
2801 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
2802 of the INTEGER class.
2803
81a07a45
JB
28042004-03-26 Jim Blandy <jimb@redhat.com>
2805
2806 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
2807 bytes long on PPC GNU/Linux.
2808
8c691c7a
DC
28092004-03-26 David Carlton <carlton@kealia.com>
2810
2811 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
2812
103a0089
AC
28132004-03-25 Andrew Cagney <cagney@redhat.com>
2814
2815 * PROBLEMS: Add general section titles, remove references to
2816 specific releases.
2817
7a5ea0d4
DJ
28182004-03-25 Daniel Jacobowitz <drow@mvista.com>
2819
2820 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
2821 INT_REGISTER_SIZE.
2822 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
2823 FP_REGISTER_VIRTUAL_SIZE.
2824 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
2825 of DEPRECATED_REGISTER_RAW_SIZE.
2826 (arm_register_type): Add gdbarch argument.
2827 (arm_register_raw_size, arm_register_virtual_size): Delete.
2828 (arm_register_byte, arm_extract_return_value)
2829 (arm_store_return_value, arm_get_longjmp_target): Update references
2830 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
2831 (arm_gdbarch_init): Likewise. Don't set
2832 deprecated_register_raw_size, deprecated_register_virtual_size,
2833 deprecated_max_register_raw_size,
2834 deprecated_max_register_virtual_size, or
2835 deprecated_max_register_virtual_type. Do set register_type.
2836 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
2837 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
2838 (FP_REGISTER_VIRTUAL_SIZE): Delete.
2839 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
2840 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
2841 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
2842 INT_REGISTER_SIZE.
2843 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
2844 (remote_rdp_store_register): Likewise.
2845
5792a79b
DJ
28462004-03-24 Daniel Jacobowitz <drow@mvista.com>
2847
2848 * Makefile.in (mips-linux-tdep.o): Update dependencies.
2849 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
2850 to after osabi initialization.
2851 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
2852 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
2853 functions.
2854 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
2855 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
2856 variables.
2857 (mips_linux_init_abi): Append signal trampoline unwinders.
2858
1196bfda
AC
28592004-03-24 Andrew Cagney <cagney@redhat.com>
2860
2861 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
2862 * tramp-frame.c: Include "gdb_assert.h".
2863 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
2864 correct sizeof.
2865 (tramp_frame_append): Validate the tramp frame's instructions.
2866 * Makefile.in (tramp-frame.o): Update dependencies.
2867
4be282b4
AC
28682004-03-23 Andrew Cagney <cagney@redhat.com>
2869
2870 * trad-frame.h (trad_frame_set_reg_addr): Declare.
2871
69aec09b
AC
28722004-03-23 Andrew Cagney <cagney@redhat.com>
2873
2874 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
2875 Nasser as past testsuite/lib/ (and other) maintainers.
2876
63ed89b4
DJ
28772004-03-23 Daniel Jacobowitz <drow@mvista.com>
2878
2879 * infcmd.c (attach_command): Reread symbols if we already have
2880 an exec file.
2881
f3b36427
AC
28822004-03-23 Andrew Cagney <cagney@redhat.com>
2883
2884 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
2885
aa2a3f87
AC
28862004-03-23 Andrew Cagney <cagney@redhat.com>
2887
2888 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
2889 * gdbarch.h, gdbarch.c: Re-generate.
2890 * i386obsd-tdep.c (i386obsd_init_abi): Update.
2891 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
2892 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 2893 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 2894 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 2895 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
2896 (DEPRECATED_SIGTRAMP_START): Update.
2897 * blockframe.c (find_pc_sect_partial_function): Update.
2898 * arch-utils.c (legacy_pc_in_sigtramp): Update.
2899
00cac895
DJ
29002004-03-23 Daniel Jacobowitz <drow@mvista.com>
2901
2902 * remote.c (remote_open_1): Reopen the exec file and reread symbols
2903 if necessary.
2904
f561f026
AC
29052004-03-23 Andrew Cagney <cagney@redhat.com>
2906
2907 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
2908 predicate, deprecate.
2909 * gdbarch.h, gdbarch.c: Re-generate.
2910 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2911 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2912 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
2913 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2914 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
2915 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
2916 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
2917 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
2918 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
2919 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
2920 * blockframe.c (find_pc_partial_function): Update.
2921 * breakpoint.c (bpstat_what): Update.
2922 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
2923 * frv-linux-tdep.c (frv_linux_init_abi): Update.
2924 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
2925 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
2926 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2927 * i386-linux-tdep.c (i386_linux_init_abi): Update.
2928 * i386-nto-tdep.c (i386nto_init_abi): Update.
2929 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
2930 * i386-tdep.c (i386_sigtramp_frame_sniffer)
2931 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
2932 * i386bsd-tdep.c (i386bsd_init_abi): Update.
2933 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
2934 * i386obsd-tdep.c (i386obsd_init_abi): Update.
2935 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
2936 * infrun.c (pc_in_sigtramp): Update.
2937 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
2938 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
2939 * mips-tdep.c (mips_gdbarch_init): Update.
2940 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
2941 * ppc-linux-tdep.c: Update comment.
2942 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
2943 * shnbsd-tdep.c (shnbsd_init_abi): Update.
2944 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
2945 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
2946 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
2947 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
2948 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
2949 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
2950 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
2951 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 2952
8050c72f
AC
29532004-03-23 Andrew Cagney <cagney@redhat.com>
2954
d2259dd3
AC
2955 * tramp-frame.h, tramp-frame.h: New files.
2956 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
2957 Update rules to include "tramp-frame.h" and "tramp-frame.c".
2958
8050c72f
AC
2959 * Makefile.in: Update all dependencies.
2960
0db9b4b7
AC
29612004-03-23 Andrew Cagney <cagney@redhat.com>
2962
2963 * Makefile.in (trad_frame_h): Add $(frame_h).
2964 * trad-frame.h: Update copyright. Include "frame.h".
2965 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
2966 (trad_frame_set_id, trad_frame_get_id): Declare.
2967 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
2968 * trad-frame.c: Update copyright.
2969 (struct trad_frame_cache): Define.
2970 (trad_frame_cache_zalloc): New function.
2971 (trad_frame_set_id, trad_frame_get_id): New functions.
2972 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 2973
8e645ae7
AC
29742004-03-22 Andrew Cagney <cagney@redhat.com>
2975
2976 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
2977 s390_pltstub_unwind_cache.
2978 (s390_stub_frame_unwind_cache): Rename
2979 s390_pltstub_frame_unwind_cache.
2980 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
2981 (s390_stub_frame_prev_register): Rename
2982 s390_pltstub_frame_prev_register.
2983 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
2984 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
2985
2986 From Ulrich Weigand:
2987 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
2988 pointer calls like PLT calls.
2989
34fcf120
DJ
29902004-03-22 Daniel Jacobowitz <drow@mvista.com>
2991
2992 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
2993 PC rather than the partial function start address. Use the start
2994 address to sanity check the found PDR.
2995
5b917078
DJ
29962004-03-22 Daniel Jacobowitz <drow@mvista.com>
2997
2998 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
2999 linux_handle_extended_wait.
3000
8adf9e78
AC
30012004-03-22 Andrew Cagney <cagney@redhat.com>
3002
c3122434
AC
3003 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
3004 function.
3005
8adf9e78
AC
3006 * frame.h (generic_pop_current_frame): Delete declaration.
3007 (deprecate_pop_dummy_frame): Deprecate
3008 generic_pop_dummy_frame.
3009 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
3010 (generic_pop_current_frame): Delete function.
3011 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
3012 generic_pop_current_frame.
3013 * v850-tdep.c (v850_pop_frame): Update.
3014 * mcore-tdep.c (mcore_pop_frame): Update.
3015 * sh64-tdep.c (sh64_pop_frame): Update.
3016 * h8300-tdep.c (h8300_pop_frame): Update.
3017
90ba813f
AC
30182004-03-22 Andrew Cagney <cagney@redhat.com>
3019
3020 * frame.h (deprecated_pc_in_call_dummy): Rename
3021 generic_pc_in_call_dummy.
3022 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
3023 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
3024 generic_pc_in_call_dummy.
3025 (pc_in_dummy_frame): Make static.
3026 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
3027 * gdbarch.h, gdbarch.c: Re-generate.
3028 * dummy-frame.c (dummy_frame_sniffer): Simplify.
3029 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
3030 (legacy_get_prev_frame): Ditto.
3031 * inferior.h: Delete reference to generic_pc_in_call_dummy in
3032 comment.
8718a420 3033
ca4bb888
AC
30342004-03-21 Andrew Cagney <cagney@redhat.com>
3035
244675f9
AC
3036 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
3037 declaration and out-of-date comment.
3038 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3039 Delete function.
3040 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3041 deprecated_pc_in_call_dummy.
3042
ca4bb888
AC
3043 * infrun.c (handle_inferior_event): For non legacy frames, use the
3044 frame ID and frame type to identify a signal trampoline. Update
3045 comments.
3046
1777c7b4
NW
30472004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
3048
3049 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
3050 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
3051
82417da5
AC
30522004-03-21 Andrew Cagney <cagney@redhat.com>
3053
3054 * frame-unwind.h: Update copyright.
3055 (struct frame_data): Add opaque declaration.
3056 (frame_sniffer_ftype): Declare.
3057 (struct frame_unwind): Add "unwind_data" and "sniffer".
3058 (frame_unwind_register_unwinder): Declare.
3059 (frame_unwind_find_by_frame): Add parameter "this_cache".
3060 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
3061 (legacy_get_prev_frame, legacy_get_prev_frame)
3062 (get_frame_type): Pass the prologue_cache to
3063 frame_unwind_find_by_frame.
3064 * frame-unwind.c (struct frame_unwind_table_entry): Add field
3065 "unwinder".
3066 (frame_unwind_register_unwinder): New function.
3067 (frame_unwind_find_by_frame): Handle an unwind sniffer.
3068
b2ba182e
PH
30692004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
3070
3071 * bcache.c (print_percentage): Use floating point to avoid
3072 incorrect results when portion*100 overflows.
3073
81332287
KB
30742004-03-19 Kevin Buettner <kevinb@redhat.com>
3075
3076 * ppc_tdep.h (ppc_linux_frame_saved_pc)
3077 (ppc_linux_init_extra_frame_info)
3078 (ppc_linux_frameless_function_invocation)
3079 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
3080 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
3081 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
3082 (rs6000_frame_chain): Delete declarations.
3083 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
3084 (ppc_linux_init_extra_frame_info)
3085 (ppc_linux_frameless_function_invocation)
3086 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
3087 (ppc_linux_init_abi): Remove registration of above deleted functions.
3088 * rs6000-tdep.c (rs6000_init_extra_frame_info)
3089 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
3090 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
3091 (rs6000_pop_frame, rs6000_frameless_function_invocation)
3092 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
3093 (rs6000_gdbarch_init): Remove registration of above deleted functions.
3094 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
3095 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
3096 frame management for all OSABIs.
3097
61a65099
KB
30982004-03-19 Andrew Cagney <cagney@redhat.com>
3099
3100 Committed by Kevin Buettner <kevinb@redhat.com>.
3101
3102 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
3103 Update copyright.
3104 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
3105 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
3106 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
3107 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
3108 unwinders. #ifdef legacy frame code.
3109 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
3110 "frame-base.h".
3111 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
3112 (struct rs6000_frame_cache, rs6000_frame_cache)
3113 (rs6000_frame_this_id, rs6000_frame_prev_register)
3114 (rs6000_frame_sniffer, rs6000_frame_unwind)
3115 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
3116 (rs6000_frame_base): Implement a traditional frame unwinder.
3117 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
3118 frame unwinder.
3119
88f7da05
KB
31202004-03-19 Kevin Buettner <kevinb@redhat.com>
3121
3122 * breakpoint.c (adjust_breakpoint_address): Don't adjust
3123 breakpoint address for watchpoints or the catch eventpoints.
3124 Add new paramter ``bptype''. Adjust all callers.
3125
f826dce1
AC
31262004-03-19 Andrew Cagney <cagney@redhat.com>
3127
33cb8b0f
AC
3128 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
3129
f826dce1
AC
3130 * PROBLEMS: Delete note that ARM does not use frame code, problem
3131 fixed.
3132
43b1ab88
AC
31332004-03-18 Andrew Cagney <cagney@redhat.com>
3134
292ab034
AC
3135 * stack.c (return_command): Delete code wrapped in #ifdef
3136 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
3137
43b1ab88
AC
3138 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
3139
dbfe4626
AC
31402004-03-18 Andrew Cagney <cagney@redhat.com>
3141
3142 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
3143 DEPRECATED_IN_SIGTRAMP.
3144 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3145 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
3146 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3147 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3148 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3149 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3150 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3151 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3152 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
3153 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
3154
0cad6aec
AC
31552004-03-18 Andrew Cagney <cagney@redhat.com>
3156
3157 * frame-base.c: Update copyright. Include "gdb_obstack.h".
3158 (struct frame_base_table_entry): Define.
3159 (struct frame_base_table): Re-implement as a linked list.
3160 (frame_base_init): Re-implement.
3161 (frame_base_table): Delete function.
3162 (append_predicate): Delete function.
3163 (frame_base_append_sniffer): Update.
3164 (frame_base_set_default): Update.
3165 (frame_base_find_by_frame): Update.
3166 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
3167 * Makefile.in (frame-base.o): Update dependencies.
3168
9982c2e7
AC
31692004-03-17 Andrew Cagney <cagney@redhat.com>
3170
3171 * frame.c (legacy_get_prev_frame): Pass correct frame to
3172 frame_unwind_find_by_frame.
3173
8dfe8985
DC
31742004-03-17 David Carlton <carlton@kealia.com>
3175
3176 * NEWS: Mention C++ nested types and namespaces
3177
ed47347a
MC
31782004-03-16 Michael Chastain <mec.gnu@mindspring.com>
3179
3180 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
3181 and "Regressions since gdb 5.3.". Add known regressions since
3182 gdb 6.0.
3183
90aeadfc
DC
31842004-03-16 David Carlton <carlton@kealia.com>
3185
3186 * dwarf2read.c (process_structure_scope): Process children even
3187 when we're a declaration.
3188
73912b9b
AC
31892004-03-16 Andrew Cagney <cagney@redhat.com>
3190
3191 * symtab.h (find_pc_sect_partial_function): Delete declaration.
3192 * blockframe.c (find_pc_partial_function)
3193 (find_pc_sect_partial_function): Merge into a single
3194 find_pc_partial_function.
3195
283accbc
MK
31962004-03-16 Mark Kettenis <kettenis@gnu.org>
3197
3198 * i386bsd-nat.c: s/regno/regnum/g.
3199 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
3200 FP0_REGNUM.
3201 (store_inferior_registers): Likewise.
3202
f5b1afdf
MK
32032004-03-16 Mark Kettenis <kettenis@gnu.org>
3204
3205 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
3206 of i387_fill_fsave.
3207 (store_inferior_registers): Call i387_collect_fsave and
3208 i387_collect_fxsave instead of i387_fill_fsave and
3209 i387_fill_fxsave.
3210
41fe5eb3
AC
32112004-03-15 Andrew Cagney <cagney@redhat.com>
3212
3213 * Makefile.in (frame-unwind.o): Update dependencies.
3214 * frame-unwind.c: Include "gdb_obstack.h".
3215 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
3216 parameter.
3217 (append_predicate): Delete function.
3218 (struct frame_unwind_table_entry): New structure.
3219 (struct frame_unwind_table): Replace "sniffer" with "head" and
3220 "tail".
3221 (frame_unwind_append_sniffer): Update.
3222 (frame_unwind_find_by_frame): Update.
3223 (_initialize_frame_unwind): Registe frame_unwind_init using
3224 gdbarch_data_register_pre_init.
3225
3f63813d
MK
32262004-03-15 Mark Kettenis <kettenis@gnu.org>
3227
3228 * i386bsd-nat.c: Update copyright year.
3229 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
3230 define unconditionally.
3231
3248c325 32322004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
3233
3234 * i387-tdep.h (i387_collect_fsave): New prototype.
3235 * i387-tdep.c (i387_collect_fsave): New function containing most
3236 of the code from i387_fill_fsave.
3248c325 3237 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 3238
871fbe6a
MK
32392004-03-15 Mark Kettenis <kettenis@gnu.org>
3240
3241 * i386-linux-tdep.c: Update copyright year.
3242 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
3243 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
3244 svr4_ilp32_link_map_offsets instead of
3245 i386_linux_svr4_fetch_link_map_offsets.
3246
8176b9b8
DC
32472004-03-15 David Carlton <carlton@kealia.com>
3248
3249 Fix for PR c++/1553:
3250 * dwarf2read.c (read_structure_type): Determine type name by
3251 calling determine_class_name.
3252 (determine_class_name): New.
3253 (determine_prefix): Look at TYPE_TAG_NAME and call
3254 determine_class_name when appropriate.
3255 (determine_prefix_aux, class_name): Delete.
9d58e29d 3256 (read_namespace): Set die->type.
8176b9b8 3257
fe8bf7d7
KB
32582004-03-15 Kevin Buettner <kevinb@redhat.com>
3259
3260 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
3261 unused macro definition. The definition in target.h (or perhaps
3262 elsewhere) takes precedence.
3263
ed6edd9b
AC
32642004-03-15 Andrew Cagney <cagney@redhat.com>
3265
f9be684a
AC
3266 * ppc-tdep.h: Update copyright.
3267 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
3268 function signatures to match "regsets.h".
3269 * ppc-linux-tdep.c: Include "regset.h".
3270 (ELF_GREGSET_SIZE): Delete.
3271 (right_supply_register): New function.
3272 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
3273 using right_supply_register.
3274 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
3275 functions.
3276 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
3277 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
3278 (_initialize_ppc_linux_tdep): Do not register
3279 ppc_linux_regset_core_fns.
3280 (ppc_linux_regset_from_core_section): Replace
3281 fetch_core_registers.
3282 (ppc_linux_regset_core_fns): Delete.
3283 * ppc-linux-nat.c: (right_fill_reg): New function.
3284 (supply_gregset): Update call to ppc_linux_supply_gregset.
3285 (fill_gregset): Clear the register set, use right_fill_reg.
3286 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
3287 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
3288
ed6edd9b
AC
3289 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
3290 unsigned.
3291
030f20e1
AC
32922004-03-15 Andrew Cagney <cagney@redhat.com>
3293
3294 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
3295 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
3296 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
3297 and register_gdbarch_data.
3298 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
3299 (struct gdbarch_data): Replace "init" by "pre_init" and
3300 "post_init".
3301 * gdbarch.h, gdbarch.c: Re-generate.
3302 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
3303 with"obstack", use OBSTACK_ZALLOC.
3304 (dwarf2_frame_ops): Delete.
3305 (dwarf2_frame_set_init_reg): Use gdbarch_data.
3306 (dwarf2_frame_init_reg): Use gdbarch_data.
3307 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 3308 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
3309 (_initialize_svr4_solib): Update.
3310 * user-regs.c (_initialize_user_regs): Update.
3311 * reggroups.c (_initialize_reggroup): Update.
3312 * regcache.c (_initialize_regcache): Update.
3313 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
3314 * libunwind-frame.c (_initialize_libunwind_frame): Update.
3315 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3316 * frame-unwind.c (_initialize_frame_unwind): Update.
3317 * frame-base.c (_initialize_frame_base): Update.
3318 * user-regs.c (user_reg_add): Update.
3319 * reggroups.c (reggroup_add): Update.
3320 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
3321 * libunwind-frame.c (libunwind_frame_set_descr): Update.
3322 * frame-unwind.c (frame_unwind_append_sniffer): Update.
3323 * frame-base.c (frame_base_table): Update.
3324 * remote.c (_initialize_remote): Update.
3325 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 3326
3111a3fc
AC
33272004-03-15 Andrew Cagney <cagney@redhat.com>
3328
3329 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
3330
5ecb7103
KB
33312004-03-15 Kevin Buettner <kevinb@redhat.com>
3332
3333 * Makefile.in (frv-linux-tdep.o): Add dependencies.
3334 * frv-linux-tdep.c: New file.
3335 * frv-tdep.c (struct gdbarch_tdep): Add new field
3336 ``sigcontext_reg_addr''.
3337 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
3338 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
3339 (frv_sigramp_frame_sniffer): New functions.
3340 (frv_sigtramp_frame_unwind): New static global.
3341 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
3342 sniffers.
3343 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
3344 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
3345
1ccda5e9
KB
33462004-03-15 Kevin Buettner <kevinb@redhat.com>
3347
3348 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
3349 but not via a call to error(), when unable to read memory.
3350
b375a0a5
KB
33512004-03-15 Kevin Buettner <kevinb@redhat.com>
3352
3353 * frv-tdep.c (frv_call_dummy_words): Delete.
3354 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
3355
4fdf6121
AC
33562004-03-15 Andrew Cagney <cagney@redhat.com>
3357
3358 * infrun.c (handle_step_into_function, step_over_function): Only
3359 update and use STEP_FRAME_ID when the system is using legacy
3360 frames. Update comments.
3361
34021503
MK
33622004-03-14 Mark Kettenis <kettenis@gnu.org>
3363
187e21d1
MK
3364 * amd64-linux-tdep.h: Remove file.
3365 * amd64-linux-tdep.c: Don't include "inferior.h" and
3366 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
3367 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
3368 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
3369 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
3370 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
3371 macros.
3372 (user_to_gdb_regmap): Remove variable.
3373 (amd64_linux_gregset_reg_offset): New variable.
3374 (amd64_core_fns): Remove variable.
3375 (fetch_core_registers): Remove function.
3376 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
3377 functions.
3378 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
3379 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
3380 * Makefile.in (amd64_linux_tdep_h): Remove.
3381 (amd64-linux-nat.o): Update dependencies.
3382 (amd64-linux-tdep.o): Update dependencies.
3383
99679982
MK
3384 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3385 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
3386 functions.
3387 (fetch_inferior_registers, store_inferior_registers): Rewrite.
3388
34021503
MK
3389 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
3390 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
3391
134d01f1
DJ
33922004-03-14 Daniel Jacobowitz <drow@mvista.com>
3393
3394 * dwarf2read.c (read_structure_type): Rename from
8718a420 3395 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
3396 Return immediately if die->type is set. Call read_type_die before
3397 dwarf2_add_member_fn.
3398 (process_structure_scope): New function.
3399 (read_enumeration_type, process_enumeration_scope): New functions,
3400 broken out from read_enumeration. Don't create the enumeration
3401 type if it has already been created.
3402 (read_enumeration): Removed.
3403 (process_die): Call read_structure_type, process_structure_scope,
3404 read_enumeration_type, and process_enumeration_scope. Just call
3405 new_symbol for base and subrange types. Add a comment about other
3406 type dies.
3407 (read_type_die): Call read_enumeration_type.
3408 (add_partial_structure, new_symbol): Update comments.
3409
65760afb
SC
34102004-03-13 Stephane Carrez <stcarrez@nerim.fr>
3411
3412 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
3413
10f59415
SC
34142004-03-13 Stephane Carrez <stcarrez@nerim.fr>
3415
3416 * tui/tui-win.h (tui_get_cmd_list): Declare.
3417 * tui/tui-win.c (tui_command): New function.
3418 (tui_get_cmd_list): New function.
3419 (_initialize_tui_win): Moved initialization of tui command in
3420 tui_get_cmd_list.
3421
3422 * tui/tui-data.c (init_content_element): Setup new data members.
3423 (init_win_info): Likewise.
3424 (free_content_elements): Free it.
3425 * tui/tui-data.h (struct tui_data_element): Store the register
3426 content to print.
3427 (struct tui_data_info): Keep the current register group.
3428
3429 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
3430
3431 * tui/tui-regs.h (tui_show_registers): Update prototype.
3432 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
3433 (tui_resize_all): No need to calculate anything for register window.
3434 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
3435 (tui_set_register_element, tui_set_general_regs_content): Remove.
3436 (tui_set_special_regs_content): Remove.
3437 (tui_set_general_and_special_regs_content): Remove.
3438 (tui_set_float_regs_content): Remove.
3439 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
3440 (tui_set_regs_content): Remove.
3441 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
3442 (tui_v_show_registers_command_support): Remove.
3443 (tui_show_registers): Use a reggroup to specify the registers to show.
3444 (tui_show_register_group): New function.
3445 (tui_display_registers_from): Compute the layout of register window
3446 and refresh with new API; be sure to delete old register windows.
3447 (tui_check_register_values): Update to use tui_get_register and
3448 tui_display_data.
3449 (tui_display_register): Just refresh the register window part.
3450 (tui_register_format): Format registers and save in tui_data_element.
3451 (tui_get_register): New to combine tui_reg_value_has_changed and
3452 tui_get_register_raw_value; fix to use the new gdb API.
3453 (tui_show_float_command): Renamed tui_reg_float_command.
3454 (tui_show_general_command): Renamed tui_reg_general_command.
3455 (tui_show_special_command): Renamed tui_reg_system_command.
3456 (_initialize_tui_regs): Remove unused commands.
3457
c3364ea4
MK
34582004-03-13 Mark Kettenis <kettenis@gnu.org>
3459
27d1e716
MK
3460 * NEWS (New native configurations): Mention OpenBSD/amd64.
3461
c3364ea4
MK
3462 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
3463 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
3464 Remove defines.
3465 * config/i386/nm-fbsd64.h: Likewise.
3466 * config/i386/nm-obsd.h: Likewise.
3467 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
3468 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
3469
b2d6d697
KB
34702004-03-12 Kevin Buettner <kevinb@redhat.com>
3471
3472 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
3473 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
3474 New constants.
3475
76e43199
KB
3476 From Richard Sandiford <rsandifo@redhat.com>:
3477 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
3478
34ce532e
KB
34792004-03-12 Kevin Buettner <kevinb@redhat.com>
3480
3481 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
3482 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
3483 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
3484 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
3485 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
3486 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
3487 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
3488 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
3489 definitions from frv-tdep.c to frv-tdep.h.
3490
c4d10515
KB
34912004-03-12 Kevin Buettner <kevinb@redhat.com>
3492
3493 Add shared library support for FR-V FDPIC ABI:
3494 * Makefile.in (solib-frv.o): Add dependencies.
3495 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
3496 New functions.
3497 (frv_push_dummy_call): Add support for FDPIC ABI.
3498 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
3499 for FDPIC ABI.
3500 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
3501 (frv_fdpic_find_canonical_descriptor): Declare.
3502 * solib-frv.c: New file.
3503 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
3504 * config/frv/tm-frv.h (solib.h): Include.
3505
ed1bd989
KB
35062004-03-12 Kevin Buettner <kevinb@redhat.com>
3507
3508 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
3509 (frv-tdep.o): Update dependencies.
3510 * frv-tdep.h: New file.
3511 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
3512 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
3513 constants.
3514 (struct gdbarch_tdep): Add new member ``frv_abi''.
3515 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
3516 functions.
3517 (new_variant): Set ``frv_abi'' field.
3518 (gdb_arch_init): Detect FDPIC executables.
3519
82b38f72
MK
35202004-03-12 Mark Kettenis <kettenis@gnu.org>
3521
3522 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
3523 wrapper.
3524
db1ea9ba
AC
35252004-03-11 Andrew Cagney <cagney@redhat.com>
3526
3527 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
3528
f8766ec1
KB
35292004-03-11 Kevin Buettner <kevinb@redhat.com>
3530
3531 * solist.h (master_so_list): New function.
3532 * solib.c (master_so_list): Likewise.
3533 * solib-svr4.c (enable_break): Iterate over so_list entries
3534 obtained from master list instead of entries obtained directly
3535 via svr4_current_sos().
3536
523f6a27
BE
35372004-03-10 Ben Elliston <bje@gnu.org>
3538
3539 * MAINTAINERS: Update my mail address.
3540
37814c18
KI
35412004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
3542
3543 * remote-m32r-sdi.c: Support hardware watchpoint.
3544
8b9740d8
DJ
35452004-03-09 Daniel Jacobowitz <drow@mvista.com>
3546
3547 * user-regs.c: Update copyright years.
3548 (struct user_regs): Rename to gdb_user_regs.
3549 (append_user_reg, builtin_user_regs, user_regs_init)
3550 (user_reg_add, user_reg_map_name_to_regnum)
3551 (usernum_to_user_reg): Update.
3552
4bb7a0a7
DJ
35532004-03-09 Daniel Jacobowitz <drow@mvista.com>
3554
3555 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
3556 (skip_children): New functions.
3557 (locate_pdi_sibling): Call skip_children.
3558
44e1a9eb
DJ
35592004-03-09 Daniel Jacobowitz <drow@mvista.com>
3560
3561 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
3562 * gdbtypes.c (check_typedef): Update comments.
3563
f3dd6933
DJ
35642004-03-09 Daniel Jacobowitz <drow@mvista.com>
3565
3566 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
3567 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
3568 pointer. Update comment about comp_unit_head.
3569 (struct abbrev_info): Shorten two int flags.
3570 (dwarf_alloc_abbrev): Take a CU argument.
3571 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
3572 each time through the loop. Update cleanup argument.
3573 (psymtab_to_symtab_1): Update cleanup call.
3574 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
3575 abbrev_obstack.
3576 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
3577 Just call obstack_free and clear the pointer.
3578
b40c7d58
DJ
35792004-03-09 Daniel Jacobowitz <drow@mvista.com>
3580
3581 * infrun.c (handle_inferior_event): Remove short-circuit code for
3582 events in a different thread.
3583
333dabeb
DJ
35842004-03-09 Daniel Jacobowitz <drow@mvista.com>
3585
3586 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
3587 print the whole transfer.
3588 (initialize_targets): Update description of "set debug target".
3589
aa17d93e
DJ
35902004-03-09 Daniel Jacobowitz <drow@mvista.com>
3591
3592 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
3593
0b71f08f
NW
35942004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
3595
3596 * MAINTAINERS (write after approval): Add myself.
3597
3930f270
CV
35982004-03-08 Corinna Vinschen <vinschen@redhat.com>
3599
3600 * sh-tdep.c (sh_print_registers_info): Use for loop.
3601 Don't skip multiple registers when a float register is encountered.
3602
a2b4a96c
CV
36032004-03-08 Corinna Vinschen <vinschen@redhat.com>
3604
3605 Fix PR tdep/1291.
3606 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
3607 to official SH documentation.
3608
f15a4bc0
AC
36092004-03-07 Andrew Cagney <cagney@redhat.com>
3610
3611 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
3612 unused function.
3613
9498281f
DJ
36142004-03-07 Daniel Jacobowitz <drow@mvista.com>
3615
3616 * arm-tdep.c (thumb_get_next_pc): Handle BX.
3617 (arm_get_next_pc): Handle BX and BLX.
3618
449e1137
AC
36192004-03-07 Andrew Cagney <cagney@redhat.com>
3620
eded0a31
AC
3621 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
3622 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
3623 HPPA_SP_REGNUM.
3624 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
3625 (hppa_target_read_fp): Delete.
3626 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
3627 register_virtual_size, max_register_raw_size,
3628 max_register_virtual_size, register_byte, register_size,
3629 target_read_fp, fp_regnum, and register_bytes. Set register_type
3630 instead of register_virtual_type.
3631 (hppa32_register_type, hppa64_register_type): Replace
3632 hppa32_register_virtual_type and hppa64_register_virtual_type.
3633 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
3634 (HPPA_FP_REGNUM): Define.
3635
f5f907e2
AC
3636 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
3637
69b4bbe4
AC
3638 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
3639 (pa_do_registers_info): Delete.
3640 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 3641 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 3642 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 3643
78161e48
AC
3644 * infcall.c (legacy_push_dummy_code): Delete #ifdef
3645 GDB_TARGET_IS_HPPA code.
3646 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 3647 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
3648 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
3649 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
3650 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
3651 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
3652 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 3653 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
3654 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
3655 (hppa_frameless_function_invocation, hppa64_store_return_value)
3656 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 3657 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 3658 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 3659 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
3660 (find_proc_framesize, deposit_21, restore_pc_queue)
3661 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 3662 (rp_saved, pc_in_linker_stub): Delete.
78161e48 3663
782eae8b
AC
3664 Unconditionally enable 64-bit frame and ABI code.
3665 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
3666 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
3667 push_dummy_frame, fix_call_dummy, push_arguments,
3668 call_dummy_location, extract_return_value, use_struct_convention,
3669 store_return_value, store_struct_return, saved_pc_after_call,
3670 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
3671 frame_chain, frame_chain_valid, frameless_function_invocation,
3672 frame_saved_pc, and pop_frame.
78161e48 3673
449e1137
AC
3674 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
3675 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
3676 (hppa_gdbarch_init): Do not set PC_REGNUM.
3677
12507572
MK
36782004-03-06 Mark Kettenis <kettenis@gnu.org>
3679
3680 * config/alpha/tm-fbsd.h: Remove file.
3681 * config/alpha/fbsd.mt: Tweak comment.
3682 (TM_FILE): Set to tm-alpha.h.
3683
c107cc1b
AC
36842004-03-05 Andrew Cagney <cagney@redhat.com>
3685
3686 * infrun.c (step_over_function): When non-legacy code, and no
3687 step_frame_id, use the unwinder to get the caller's frame ID.
3688
f2e7c15d
MK
36892004-03-05 Mark Kettenis <kettenis@gnu.org>
3690
8b0c3633
MK
3691 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
3692 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
3693 bfd_arch_unknown. Adjust comment.
3694
f2e7c15d
MK
3695 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
3696 * i386obsd-tdep.c: Correct spelling in comment.
3697 * i386nbsd-tdep.c: Correct spelling in comment.
3698 * sparc-tdep.c: Correct spelling in comments.
3699
1198ecbe
DC
37002004-03-05 David Carlton <carlton@kealia.com>
3701
3702 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
3703 bug.
3704
9eb42ed1
MK
37052004-03-05 Mark Kettenis <kettenis@gnu.org>
3706
3707 * sparc-tdep.c: Fix typo in comment.
3708
52b5e991
JB
37092004-03-04 J. Brobecker <brobecker@gnat.com>
3710
3711 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
3712
d8151005
DJ
37132004-03-04 Daniel Jacobowitz <drow@mvista.com>
3714
3715 * dwarf2read.c: Add comment describing memory lifetimes.
3716 (struct dwarf2_pinfo): Update comment.
3717 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
3718 (read_enumeration, new_symbol): Don't use obsavestring.
3719
cbeae229
MK
37202004-03-04 Mark Kettenis <kettenis@gnu.org>
3721
722d18c2
MK
3722 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
3723 instead of amd64_fill_fxsave.
3724 * amd64bsd-nat.c (store_inferior_registers): Likewise.
3725 * amd64fbsd-nat.c (fill_fpregset): Likewise.
3726
cbeae229
MK
3727 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
3728 Reorganize code a bit.
3729
b4206d25
OF
37302004-03-04 Orjan Friberg <orjanf@axis.com>
3731
3732 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
3733 when the frame pointer is pushed. Don't set the frame pointer's
3734 address on the stack unless it's actually located there.
b4206d25
OF
3735 Set the SRP's address on the stack correctly when the PC is still in
3736 the prologue.
3737 (cris_return_value): New function.
3738 (cris_gdbarch_init): Clear deprecated store_return_value,
3739 extract_return_value.
3740
49b0b195
JB
37412004-03-02 Jim Blandy <jimb@redhat.com>
3742
3743 * stabsread.c (reg_value_complaint): The maximum register number
3744 is one less than the number of registers.
3745
e9ff708b
AC
37462004-03-02 Andrew Cagney <cagney@redhat.com>
3747
3748 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
3749 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
3750 trailing comma and redundant assignment of I386_ST0_REGNUM.
3751 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
3752 32-bit segment registers.
3753
d4715e41
AC
37542004-03-01 Andrew Cagney <cagney@redhat.com>
3755
3756 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
3757 use frame_relative_level and get_next_frame.
3758
3ce2bf18
AC
37592004-02-29 Andrew Cagney <cagney@redhat.com>
3760
3761 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
3762 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
3763 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
3764 Delete macro.
3765
2da6aac3
DJ
37662004-02-29 Daniel Jacobowitz <drow@mvista.com>
3767
3768 * inflow.c (terminal_inferior): Don't give up the terminal if we
3769 previously couldn't get the inferior's terminal state.
3770
6ba34a8d
DJ
37712004-02-29 Daniel Jacobowitz <drow@mvista.com>
3772
3773 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
3774 PC_REGNUM.
3775
faae5abe
AC
37762004-02-28 Andrew Cagney <cagney@redhat.com>
3777
3778 * NEWS: Refer to GDB 6.1.
3779 * README: Refer to GDB 6.1.
3780 * PROBLEMS: Refer to GDB 6.1.
3781
2227a3c5
DJ
37822004-02-28 Daniel Jacobowitz <drow@mvista.com>
3783
3784 * thread-db.c (disable_thread_signals): Remove unused function.
3785
80571bff
MK
37862004-02-28 Mark Kettenis <kettenis@gnu.org>
3787
041bd74b
MK
3788 * amd64-nat.c: Include "gdb_string.h".
3789 (amd64_collect_native_gregset): Zero-extend the 32-bit
3790 general-purpose registers and %eip.
3791
3c017e40
MK
3792 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
3793 * amd64-tdep.c (amd64_collect_fxsave): New function.
3794 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
3795
80571bff
MK
3796 * i387-tdep.h: Update copyright year.
3797 (i387_collect_fxsave): New prototype.
3798 * i387-tdep.c: Update copyright year.
3799 (i387_collect_fxsave): New function containing most of the code
3800 from i387_fill_fxsave.
3801 (i387_fill_fxsave): Call i387_collect_fxsave.
3802
50d71875
AC
38032004-02-28 Andrew Cagney <cagney@redhat.com>
3804
3805 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
3806 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
3807
4a28816e
MK
38082004-02-28 Mark Kettenis <kettenis@gnu.org>
3809
3810 * amd64-tdep.c (amd64_frame_cache): Fix comment.
3811
dbda9972
AC
38122004-02-28 Andrew Cagney <cagney@redhat.com>
3813
3814 * utils.c: Use "", instead of <>, to include readline.
3815 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
3816 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
3817 * source.c, solib.c, exec.c, event-top.c: Ditto.
3818 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
3819 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
3820 * Makefile.in: Update all dependencies.
3821 (readline_tilde_h, readline_history_h): Define.
3822 (readline_headers): Delete.
3823
83277a99
MK
38242004-02-28 Mark Kettenis <kettenis@gnu.org>
3825
91ae4303
MK
3826 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
3827 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
3828 "config/i386/tm-lx64.h".
3829
83277a99
MK
3830 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
3831 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
3832 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
3833
6e1d7d6c
AC
38342004-02-28 Andrew Cagney <cagney@redhat.com>
3835
ecc9ac84
AC
3836 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
3837
6e1d7d6c
AC
3838 * breakpoint.c (_initialize_breakpoint): Use
3839 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
3840 Add help to show command.
3841
9671aeef
MK
38422004-02-28 Mark Kettenis <kettenis@gnu.org>
3843
7fa2737c
MK
3844 * i386-nat.c: Reformat to be closer to coding standards.
3845 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
3846 `retval'. Make variables `align' and `size' local to while-loop.
3847 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
3848 (_initialize_i386_nat): New prototype.
3849
9671aeef
MK
3850 * tui/tui.c: Include <readline/readline.h> instead of
3851 "readline/readline.h". Include it after <term.h> and
3852 "gdb_curses.h".
3853
fca7aa43
AC
38542004-02-27 Andrew Cagney <cagney@redhat.com>
3855
412275d5
AC
3856 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
3857 the new frame unwind code.
3858 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
3859 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
3860 PCOQ_HEAD_REGNUM.
3861
fca7aa43
AC
3862 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
3863 "return_value" and "push_dummy_call".
3864 (hppa32_use_struct_convention): Delete unused function.
3865 (hppa32_store_return_value): Delete unused function.
3866 (hppa32_extract_return_value): Delete unused function.
3867 (hppa32_stack_align): Delete function.
3868
e6a8a7d2
EZ
38692004-02-27 Eli Zaretskii <eliz@elta.co.il>
3870
3871 * coffread.c (enter_linenos): Don't let rawptr reference memory
3872 outside linetab[]'s limits.
3873
1797a8f6
AC
38742004-02-27 Andrew Cagney <cagney@redhat.com>
3875
3876 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
3877 inferior stack space - the stack needs to grow upwards.
3878 (hppa32_frame_align): New function.
3879 (hppa64_frame_align): Replace hppa_frame_align.
3880 (hppa_gdbarch_init): Update.
3881
2e4b5889
OF
38822004-02-26 Orjan Friberg <orjanf@axis.com>
3883
3884 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
3885 (dwarf2-frame.h): Include.
3886 (enum cris_regnums): New enum CRIS_FP_REGNUM.
3887 Remove static variables related to ABI setting.
3888 (struct gdbarch_tdep): Remove cris_abi member.
3889 (struct frame_extra_info): Remove.
3890 (cris_unwind_cache, stack_item): New structs.
3891 (cris_frame_unwind, cris_frame_base): New variables.
3892 (push_stack_item, pop_stack_item)
3893 (cris_frame_unwind_cache, cris_frame_this_id)
3894 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
3895 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
3896 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
3897 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
3898 (cris_reg_struct_has_addr): New functions.
3899 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 3900 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
3901 (cris_store_struct_return, cris_frameless_function_invocation)
3902 (cris_pop_frame, cris_skip_prologue_main)
3903 (cris_abi_original_store_return_value)
3904 (cris_abi_v2_store_return_value)
3905 (cris_abi_original_extract_return_value)
3906 (cris_abi_v2_extract_return_value)
3907 (cris_abi_original_reg_struct_has_addr)
3908 (cris_abi_v2_reg_struct_has_addr)
3909 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
3910 (cris_push_return_address, cris_abi_update): Remove.
3911 (_initialize_cris_tdep): Remove ABI command.
3912 (cris_dump_tdep): Ditto.
8718a420 3913 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
3914 Set store_return_value, extract_return_value, push_dummy_code,
3915 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
3916 frame_unwind_append_sniffer, frame_base_set_default.
3917 Clear deprecated init_frame_pc, push_arguments, store_return_value,
3918 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
3919 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 3920 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
3921 init_extra_frame_info, frameless_function_invocation, frame_chain,
3922 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
3923 dummy_write_sp.
8718a420 3924
6b9acc27
JJ
39252004-02-26 Jeff Johnston <jjohnstn@redhat.com>
3926
3927 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
3928 * valprint.c (print_hex_chars): Change from static to external.
3929 (print_char_chars): New function.
3930 * printcmd.c (print_scalar_formatted): For integer and enum types
3931 that are longer than LONGEST, perform processing via appropriate
3932 print_*_chars routines.
3933
a431654a
AC
39342004-02-26 Andrew Cagney <cagney@redhat.com>
3935
3936 * Makefile.in: Update dependencies.
3937 Changes from Ulrich Weigand,
3938 * s390-tdep.c: Include "dwarf2-frame.h".
3939 (s390_dwarf2_frame_init_reg): New function.
3940 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
3941 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
3942
fa8d40ab
JJ
39432004-02-26 Jeff Johnston <jjohnstn@redhat.com>
3944
3945 * breakpoint.c (pending_break_support): New setting variable.
3946 (break_command_1): Account for pending_break_support setting
3947 when creating pending breakpoints.
3948 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
3949 (_initialize_breakpoint): Add "set breakpoint pending" and
3950 "show breakpoint pending" commands.
3951
0dcd613f
AC
39522004-02-26 Andrew Cagney <cagney@redhat.com>
3953
3954 Fix PR i18n/1570.
3955 * charset.c (backslashable, backslashed, represented): Remove 'e'
3956 from list of escaped characters, not part of ISO-C.
3957
479272a3
JB
39582004-02-25 J. Brobecker <brobecker@gnat.com>
3959
3960 From Peter Schauer <schauer@pdf.de>:
3961 * tui/tui.c: Move system header includes after local includes.
3962 Fixes a build failure on solaris systems.
3963
7613d933
JB
39642004-02-25 J. Brobecker <brobecker@gnat.com>
3965
3966 * configure.in: Refine the previous change.
3967 * configure: Regenerate.
3968
9c1488cb
MK
39692004-02-25 Mark Kettenis <kettenis@gnu.org>
3970
3971 * amd64-tdep.h: Renamed from x86-64-tdep.h.
3972 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
3973 "amd64-tdep.h" instead of "x86-64-tdep.h".
3974 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
3975 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
3976 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
3977 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
3978 and "x86-64-tdep.c".
3979 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
3980 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
3981 and "x86-64-tdep.c".
3982 * amd64bsd-nat.c: Update copyright year.
3983 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
3984 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
3985 "x86-64-tdep.h".
3986 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
3987 "x86-64-tdep.h".
3988 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
3989 "x86-64-tdep.h".
3990 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
3991 "x86-64-tdep.h".
3992 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
3993 "x86-64-tdep.h".
3994 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
3995 "x86-64-tdep.h".
8718a420 3996 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
3997 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
3998 * Makefile.in (amd64_linux_tdep_h): Renamed from
3999 x86_64_linux_tdep_h.
4000 (amd64_tdep_h): Renamed from x86_64_tdep_h.
4001 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
4002 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
4003 (amd64obsd-tdep.o): Update dependencies.
4004 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
4005 dependencies.
4006 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
4007 dependencies.
4008 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
4009 amd64-linux-nat.c amd64-linux-tdep.c.
4010 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
4011 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
4012 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
4013 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
4014 amd64-tdep.o and amd64-linux-tdep.o.
4015 (TM_FILE): Set to tm-linux64.h.
4016 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
4017 (NAT_FILE): Set to nm-linux64.h.
4018 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
4019 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4020 amd64-tdep.o.
4021 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4022 amd64-tdep.o.
4023 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4024 amd64-tdep.o.
4025
4b8dad4a
RM
40262004-02-25 Roland McGrath <roland@redhat.com>
4027
4028 * remote.c (remote_protocol_qPart_auxv): New variable.
4029 (init_all_packet_configs): Initialize it.
4030 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
4031 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
4032 (show_remote_cmd): Call it.
4033 (_initialize_remote): Initialize commands.
4034 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
4035 service TARGET_OBJECT_AUXV requests.
4036
66745969
JB
40372004-02-25 J. Brobecker <brobecker@gnat.com>
4038
4039 * configure.in: Make sure that the wborder function is available.
4040 Otherwise, search for it in the cur_colr library.
4041 * configure: Regenerate.
4042
79508e1e
AC
40432004-02-25 Andrew Cagney <cagney@redhat.com>
4044
4045 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
4046
571ee600
MK
40472004-02-25 Mark Kettenis <kettenis@gnu.org>
4048
4049 * config/i386/tm-x86-64linux.h: Tweak comments.
4050
2b1b322f 40512004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
4052
4053 * MAINTAINERS: Add self to write-after-approval list.
4054
4d2acc65
AC
40552004-02-25 Andrew Cagney <cagney@redhat.com>
4056
4b8dad4a 4057 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
4058 * cli/cli-script.c (execute_control_command): Unconditionally
4059 install a cleanup. Default "ret" to "invalid_control". Use
4060 "break" instead of "return" to escape from the switch.
4061
4cfcaf21
JB
40622004-02-24 J. Brobecker <brobecker@gnat.com>
4063
4064 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
4065 with the lines macro defined in term.h on AiX.
4066 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
4067 a collision with the label_width macro defined in term.h on AiX.
4068
54a5c8d8
KB
40692004-02-23 David Mosberger <davidm@hpl.hp.com>
4070
4071 Committed by Kevin Buettner <kevinb@redhat.com>.
4072
4073 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
4074 * ia64-tdep.c (ia64_write_pc): Make it a global function.
4075 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
4076 instead of ia64_write_pc().
4077 * ia64-linux-tdep.c (regcache.h): Include.
4078 (ia64_linux_write_pc): New function.
4b8dad4a 4079
8a1dac83
RM
40802004-02-23 Roland McGrath <roland@redhat.com>
4081
4082 * auxv.c (info_auxv_command): Fix typos in error messages.
4083
90f90721
MK
40842004-02-23 Mark Kettenis <kettenis@gnu.org>
4085
8a1dac83 4086 * x86-64-tdep.h: Tweak comment.
90f90721
MK
4087 (enum amd64_regnum): New.
4088 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
4089 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
4090 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
4091 (X86_64_XMM1_REGNUM): Removed.
4092 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
4093 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
4094 prototypes for renamed functions.
4095 * x86-64-tdep.c: Fix typo.
4096 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
4097 register numbers.
4098 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
4099 Use constants from `enum amd64_regnum' for register numbers.
4100 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
4101 (amd64_analyze_prologue, amd64_frame_cache,
4102 amd64_sigtramp_frame_cache): Use constants from `enum
4103 amd64_regnum' for register numbers.
4104 (amd64_supply_fpregset): Adjust for renamed functions.
4105 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
4106 `enum amd64_regnum' for register numbers.
4107 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
4108 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
4109 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
4110 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
4111 (amd64_linux_fill_gregset): Adjust for renamed macros.
4112 (fetch_core_registers): Adjust for renamed functions.
4113 (amd64_linux_init_abi): Adjust for renamed functions.
4114 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
4115 renamed functions.
4116 * amd64-nat.c: Adjust for renamed macros.
4117 * amd64bsd-nat.c (fetch_inferior_registers)
4118 (store_inferior_registers): Use constants from `enum amd64_regnum'
4119 for register numbers. Adjust for renamed variables.
4120 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
4121 renamed variables.
4122 (_initialize_amd64fbsd_nat): Use constants from `enum
4123 amd64_regnum' for register numbers.
4124 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
4125 `enum amd64_regnum' for register numbers.
4126 (amd64fbsd_init_abi): Adjust for renamed functions.
4127 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
4128 `enum amd64_regnum' for register numbers.
4129 (amd64nbsd_init_abi): Adjust for renamed functions.
4130 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
4131 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
4132 `enum amd64_regnum' for register numbers.
4133 (amd64obsd_init_abi): Adjust for renamed functions.
4134 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
4135
d5479188
JJ
41362004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4137
4138 * breakpoint.c (print_one_breakpoint): Do not output spaces
4139 after printing <PENDING> for a pending breakpoint.
4140
81cb7cc9
JJ
41412004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4142
4143 * printcmd.c (print_scalar_formatted): Initialize val_long
4144 to remove compiler warning message.
4145
cbdeadca
JJ
41462004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4147
4148 * defs.h (nquery, yquery): New prototypes.
4149 * breakpoint.c (break_command_1): Use new nquery interface.
4150 * utils.c (defaulted_query, nquery, yquery): New functions.
4151
da6bab63
AC
41522004-02-23 Andrew Cagney <cagney@redhat.com>
4153
2f690297
AC
4154 * hppa-tdep.c (hppa_frame_align): New function.
4155 (hppa32_push_dummy_call): New function.
4156 (hppa64_push_dummy_call): New function.
4157 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
4158 disabled.
8a1dac83 4159
da6bab63
AC
4160 * infcall.c (legacy_push_dummy_code): Don't call deprecated
4161 FIX_CALL_DUMMY when push_dummy_call is available.
4162 (call_function_by_hand, push_dummy_code): Ditto.
4163
abf9b42d
AC
41642004-02-22 Andrew Cagney <cagney@redhat.com>
4165
4166 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
4167 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
4168 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
4169 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
4170 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
4171 call_dummy_location to ON_STACK.
4172
10fc94a4
MK
41732004-02-22 Mark Kettenis <kettenis@gnu.org>
4174
51433e4b
MK
4175 * x86-64-linux-tdep.c: Tweak comment.
4176 (amd64_linux_supply_gregset): Renamed from
4177 x86_64_linux_supply_gresget.
4178 (amd64_linux_fill_gregset): Renamed from
4179 x86_64_linux_fill_gregset.
4180 (fetch_core_registers): Adjust for renamed functions.
4181 (amd64_core_fns): Renamed from x86_64_core_fns.
4182 (amd64_linux_sigtramp_start): Renamed from
4183 x86_64_linux_sigtramp_start.
4184 (amd64_linux_pc_in_sigtramp): Renamed from
4185 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
4186 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
4187 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
4188 (amd64_linux_sigcontext_addr): Renamed from
4189 x86_64_linux_sigcontext_addr.
4190 (amd64_linux_sc_reg_offset): Renamed from
4191 x86_64_linux_sc_reg_offset.
4192 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
4193 Adjust for renamed functions and variables.
4194 (_initialize_amd64_linux_tdep): Renamed from
4195 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
4196 variables.
4197 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
4198 Adjust for renamed functions.
4199
430eaf2e
MK
4200 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
4201 from x86_64_linux_gregset64_reg_offset.
4202 (amd64_linux_gregset32_reg_offset): Rename from
4203 x86_64_linux_gregset64_reg_offset.
4204 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
4205 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
4206 (amd64_linux_dr_set_control): Renamed from
4207 x86_64_linux_dr_set_control. Adjust for renamed functions.
4208 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
4209 Adjust for renamed functions.
4210 (amd64_linux_dr_reset_addr): Renamed from
4211 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
4212 (amd64_linux_dr_get_status): Renamed from
4213 x86_64_linux_dr_get_status. Adjust for renamed functions.
4214 (_initialize_amd64_linux_nat): Renamed from
4215 _initialize_x86_64_linux_nat. Adjust for renamed variables and
4216 functions.
4217 * config/i386/nm-x86-64linux.h: Update copyright year.
4218 Adjust for renamed functions.
4219
10fc94a4
MK
4220 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
4221 amd64fbsd_sigtramp_start.
4222 (amd64fbsd_sigtramp_end_addr): Renamed from
4223 amd64fbsd_sigtramp_end.
4224 (amd64fbsd_init_abi): Adjust for renamed variables.
4225 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
4226 variables.
4227 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
4228 amd64fbsd_sigtramp_start.
4229 (amd64fbsd_sigtramp_end_addr): Renamed from
4230 amd64fbsd_sigtramp_end.
4231
343af405
AC
42322004-02-22 Andrew Cagney <cagney@redhat.com>
4233
537987fc
AC
4234 * hppa-tdep.c (hppa32_return_value): New function.
4235 (hppa64_return_value): New function.
4236 (hppa_gdbarch_init): Set return_value; keep disabled.
4237
fad850b2
AC
4238 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
4239 struct-return and inferior function call methods.
4240
26d08f08
AC
4241 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4242 "frame-base.h".
4243 (struct hppa_frame_cache): Define.
4244 (hppa_frame_cache, hppa_frame_this_id): New functions.
4245 (hppa_frame_prev_register): New function.
4246 (hppa_frame_unwind, hppa_frame_base): New variables.
4247 (hppa_frame_unwind_sniffer): New function.
4248 (hppa_frame_base_address, hppa_unwind_pc): New function.
4249 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
4250 sniffer, and frame base sniffer; keep disabled.
4251 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
4252 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
4253
e7d7bd65
AC
4254 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
4255 to predicates for "seriously old code".
4256
e963316f
AC
4257 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
4258 runtime if(0).
4259
56132691
AC
4260 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
4261 unsigned.
4262 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 4263
343af405
AC
4264 * config/pa/tm-hppa.h: Update copyright.
4265 (DEPRECATED_INIT_FRAME_PC): Delete macro.
4266 (deprecated_init_frame_pc_default): Delete declaration.
4267 (hppa_frame_init_saved_regs): Delete declaration.
4268 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4269 * hppa-tdep.c: Include "arch-utils.h".
4270 (hppa_gdbarch_init): Set deprecated init_frame_pc
4271 and deprecated frame_init_saved_regs.
4272 (hppa_frame_init_saved_regs): Make static.
4273
f5859b4d
MK
42742004-02-22 Mark Kettenis <kettenis@gnu.org>
4275
86f6f8e7 4276 Remove old 386BSD support.
cf7c5c23 4277 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
4278 * configure.host: Remove i[34567]86-*-bsd*.
4279 * configure.tgt: Remove i[34567]86-*-bsd*.
4280 * i386b-nat.c: Removed.
4281 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
4282 (i386b-nat.o): Remove dependencies.
4283
86f6f8e7
MK
4284 * config/i386/i386bsd.mh: Removed.
4285 * config/i386/i386bsd.mt: Removed.
4286 * config/i386/nm-i386bsd.h: Removed.
4287 * config/i386/tm-i386bsd.h: Removed.
4288 * config/i386/xm-i386bsd.h: Removed.
4289
971218cd
MK
4290 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
4291
7e654c37
MK
4292 * amd64fbsd-tdep.c: Include "solib-svr4.h".
4293 (amd64fbsd_init_abi): Set link map offsets.
4294 * amd64nbsd-tdep.c: Include "slib-svr4.h".
4295 (amd64nbsd_init_abi): Set link map offsets.
4296 * amd64obsd-tdep.c: Include "solib-svr4.h".
4297 (amd64obsd_init_abi): Set link map offsets.
4298 * i386fbsd-tdep.c: Include "solib-svr4.h".
4299 (i386fbsd_init_abi): Set link map offsets.
4300 * i386nbsd-tdep.c: Include "solib-svr4.h".
4301 (i386nbsdelf_init_abi): Set link map offsets.
4302 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
4303 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
4304 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
4305 solib-legacy.o and core-aout.o. Reformat.
4306 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
4307 solib-svr4.o, solib-legacy.o. Reformat.
4308 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
4309 * config/i386/nbsdelf.mh: Reformat.
4310 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
4311 solib-svr4.o, solib-legacy.o and corelow.o.
4312 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
4313 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
4314 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
4315 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4316 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4317 (TM_FILE): Set to tm-fbsd.h.
4318 * config/i386/nbsd.mt (TDEPFILES): Reformat.
4319 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
4320 solib-svr4.o.
4321 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
4322 solib-svr4.o.
4323 (TM_FILE): Set to nm-nbsd.h.
4324 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
4325 Simplify shared library support. Don't include "elf/common.h".
4326 (SVR4_SHARED_LIBS): Don't define.
4327 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
4328 "solib.h".
4329 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
4330 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
4331 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
4332 Don't include "i386/tm-i386.h". Include "solib.h".
4333 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
4334 Don't include "i386/tm-i386.h".
4335 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
4336 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
4337 Include "i386/xm-i386.h".
4338 (HOST_LONG_DOUBLE_FORMAT): Remove.
4339
5d93ae8c
MK
4340 Fix OpenBSD/i386 sigtramp recognition.
4341 * i386-tdep.h: Update copyright year.
4342 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
4343 (i386bsd_sigtramp_end): New prototypes.
4344 (i386fbsd_sigtramp_start_addr): Renamed from
4345 i386fbsd_sigtramp_start.
4346 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4347 (i386obsd_sigtramp_start_addr): Renamed from
4348 i386obsd_sigtramp_start.
4349 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4350 * i386bsd-tdep.c: Update copyright year.
4351 (i386bsd_pc_in_sigtramp): Make public.
4352 * i386fbsd-nat.c: Update copyright year.
4353 (_initialize_i386fbsd_nat): Adjust for renamed variables.
4354 * i386fbsd-tdep.c: Update copyright year.
4355 (i386fbsd_sigtramp_start_addr): Renamed from
4356 i386fbsd_sigtramp_start.
4357 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4358 (i386fbsdaout_init_abi): Adjust for renamed variables.
4359 * i386obsd-nat.c: Update copyright year.
4360 (_initialize_i386obsd_nat): Adjust for renamed variables.
4361 * i386obsd-tdep.c: Include "target.h".
4362 (i386obsd_page_size): New variable.
4363 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
4364 (i386obsd_sigtramp_end): New functions.
4365 (i386obsd_sigtramp_start_addr): Renamed from
4366 i386obsd_sigtramp_start.
4367 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4368 (i386obsd_init_abi): Adjust for renamed variables. Set
4369 pc_in_sigtramp, sigtramp_start and sigtramp_end.
4370 * Makefile.in (i386obsd-tdep.o): Update dependencies.
4371
84d04465
MK
4372 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
4373 trampoline change in OpenBSD kernel.
4374
b053aceb
MK
4375 * amd64-nat.c: Update copyright year.
4376 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
4377 architecture from REGCACHE.
4378
f5859b4d
MK
4379 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
4380 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
4381
e4bbbda8
MK
43822004-02-21 Mark Kettenis <kettenis@gnu.org>
4383
ba361932
MK
4384 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
4385 i[34567]86-*-openbsd3.[0-3].
4386 * config/i386/obsdaout.mh: New file.
4387
d3e48264
MK
4388 * config/i386/obsd.mh (MH_FLAGS): Remove.
4389
60a6eeb6
MK
4390 Fix PR build/1549.
4391 * i386obsd-tdep.c: Update copyright years. Include
4392 "solib-svr4.h".
4393 (i386obsd_init_abi): Don't set regset_from_core_section here.
4394 (i386obsd_aout_init_abi): New function. Set
4395 regset_from_core_section here.
4396 (i386obsd_elf_init_abi): New function.
4397 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
4398 * Makefile.in (i386obsd-tdep.o): Update dependecies.
4399 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4400 (TM_FILE): Set to tm-nbsd.h.
4401
4402 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
4403 solib-sunos.o.
4404
e4bbbda8
MK
4405 * solib-svr4.h: Update copyright year.
4406 (svr4_ilp32_fetch_link_map_offsets)
4407 (svr4_lp64_fetch_link_map_offsets): New prototype.
4408 * solib-svr4.c: Update copyright year.
4409 (svr4_ilp32_fetch_link_map_offsets)
4410 (svr4_lp64_fetch_link_map_offsets): New function.
4411
f6fe98ef
DJ
44122004-02-20 Daniel Jacobowitz <drow@mvista.com>
4413
4414 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
4415 to the partial symbol table.
4416
589ca796
JB
44172004-02-20 J. brobecker <brobecker@gnat.com>
4418
4419 * PROBLEMS: Add description of problem documented under gdb/1560.
4420
2031c21a
MK
44212004-02-20 Mark Kettenis <kettenis@gnu.org>
4422
30b344b1
MK
4423 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
4424 comments.
4425 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
4426 functions.
4427 (amd64obsd_init_abi): Reorder initializations. Use
4428 amd64obsd_r_reg_offset to initialize the general-purpose register
4429 set details. Set regset_from_core_section.
4430 (_initialize_amd64obsd_tdep): Rename from
4431 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
4432 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
4433 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
4434
2031c21a
MK
4435 * NEWS (New native configurations): Mention OpenBSD/alpha.
4436 * configure.tgt: Add alpha*-*-openbsd*.
4437 * configure.host: Add alpha*-*-openbsd*.
4438 * alphanbsd-tdep.c: Update copyright year.
4439 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
4440
42471775
AC
44412004-02-20 Andrew Cagney <cagney@redhat.com>
4442
4443 Fix PR tdep/1372.
4444 * configure.tgt: Delete target "none-*-*".
4445 * configure.host: Delete host "none-*-*".
4446 * config/none/none.mh: Delete file.
4447 * config/none/none.mt: Delete file.
4448 * config/none/xm-none.h: Delete file.
4449 * config/none/tm-none.h: Delete file.
4450 * config/none/nm-none.h: Delete file.
4451
960ccd7d
FF
44522004-02-19 Fred Fish <fnf@redhat.com>
4453
4454 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
4455 cache->uses_fp prior to setting it.
4456
5f883edd
FF
44572004-02-19 Fred Fish <fnf@redhat.com>
4458
4459 Fix for PR breakpoint/1558.
4460 * sh-tdep.c (IS_JSR): New macro.
4461 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
4462
f98c22d5
JB
44632004-02-19 Jim Blandy <jimb@redhat.com>
4464
4465 * findvar.c (value_from_register): Doc fix.
4466
95051d27
JJ
44672004-02-19 Jeff Johnston <jjohnstn@redhat.com>
4468
4469 * printcmd.c (print_scalar_formatted): Do not check for sizeof
4470 type being greater than sizeof of host's LONGEST. Always use
4471 unpack_long() unless format 'f' chosen.
4472
ccefbec3
EZ
44732004-02-19 Joel Brobecker <brobecker@gnat.com>
4474
4475 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 4476
ccefbec3
EZ
4477 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
4478 contains a symbol wich is the best, non-exact match for the given
4479 pc. Update comments.
4480
44812004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 4482
2ede629f
EZ
4483 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
4484 macro, which was part of the now removed Mach 3 port.
4485 * utils.c (request_quit): Ditto.
4486
567ee972
MK
44872004-02-18 Mark Kettenis <kettenis@gnu.org>
4488
4489 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
4490 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
4491
50cca7bb
MK
44922004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4493
4494 Committed by Mark Kettenis <kettenis@gnu.org>.
4495
4496 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
4497 Define.
4498
226361c4
AC
44992004-02-18 Andrew Cagney <cagney@redhat.com>
4500
4501 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
4502 CONFIG_INSTALL and CONFIG_UNINSTALL.
4503 * configure: Re-generate.
4504 * interps.h (INTERP_TUI): Define.
4505 * Makefile.in: Update dependencies.
4506 (TUI): New macro.
4507 (tui-main.o): Specify dependencies.
4508 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
4509 * tui/tui-main.c: New file.
4510
49cfa46f
MK
45112004-02-18 Mark Kettenis <kettenis@gnu.org>
4512
e2879ccb
MK
4513 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
4514 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
4515 dependencies.
4516 * configure.host: Add x86_64-*-openbsd*.
4517 * configure.tgt: Add x86_64-*-openbsd*.
4518 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
4519
c43f4bec
MK
4520 * tui/tui.c: Don't include <malloc.h>.
4521
09ae75b6
MK
4522 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
4523 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
4524 amd64nbsd-tdep.c.
4525
49cfa46f 4526 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 4527 static. Remove extraneous whitespace.
49cfa46f
MK
4528 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
4529 static.
4530
05957fdb
JB
45312004-02-17 Jim Blandy <jimb@redhat.com>
4532
4533 * findvar.c (value_from_register): Doc fix.
4534
d0f54f9d
JB
45352004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4536
4537 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 4538
8a1dac83 4539 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
4540 CORE_ADDR as type for selectors. Correct types for GNU run time
4541 message lookup function to use double indirection.
4542 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
4543 * objc-lang.h (lookup_child_selector): Adapt prototype.
4544
9cbd5950
JB
4545 * s390-nat.c (SUBOFF): New macro.
4546 (supply_gregset, fill_gregset): Use it to handle debugging
4547 of 32-bit exectuables running under a 64-bit kernel.
4548 * s390-tdep.c: Include "solib-svr4.h".
4549 (s390_svr4_fetch_link_map_offset): New function.
4550 (s390x_svr_fetch_link_map_offset): Likewise.
4551 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
4552 * Makefile.in (s390-tdep.o): Update dependencies.
4553
a8c99f38
JB
4554 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
4555 "frame-unwind.h".
4556 (s390_readinstruction): Reformat. Use read_memory_nobpt.
4557 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
4558 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
4559 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
4560 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
4561 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 4562 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
4563 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
4564 (struct frame_extra_info): Remove.
4565 (s390_memset_extra_info): Remove.
f73b1eff
JB
4566 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
4567 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
4568 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
4569 (is_rse): Renamed to ...
4570 (is_rsy): ... this. Support long displacements.
4571 (is_rxe): Renamed to ...
4572 (is_rxy): ... this. Support long displacements.
4573 (compute_x_addr): Support long displacements.
4574 (struct s390_prologue_data): New data type.
4575 (s390_on_stack): Change API to use struct s390_prologue_data.
4576 (s390_store): Reimplement.
4577 (s390_load): New function.
4578 (s390_get_signal_frame_info): Remove.
4579 (s390_get_frame_info): Remove, replace by ...
4580 (s390_analyze_prolog): ... this new function.
4581 (s390_check_function_end): Remove.
4582 (s390_function_start): Remove.
4583 (s390_frameless_function_invokation): Remove.
4584 (s390_is_sigreturn): Remove.
4585 (s390_init_frame_pc_first): Remove.
4586 (s390_init_frame_extra_info): Remove.
4587 (s390_frame_init_saved_regs): Remove.
4588 (s390_frame_saved_pc_nofix): Remove.
4589 (s390_frame_saved_pc): Remove.
4590 (s390_frame_chain): Remove.
4591 (s390_fp_regnum, s390_read_fp): Remove.
4592 (s390_pop_frame_regular, s390_pop_frame): Remove.
4593 (s390_saved_pc_after_call): Remove.
4594 (s390_skip_prologue): Reimplement.
4595 (s390_in_function_epilogue_p): Support long displacements.
4596 (struct s390_unwind_cache): New data structure.
4597 (s390_frame_unwind_cache): New function.
4598 (s390_prologue_frame_unwind_cache): Likewise.
4599 (s390_backchain_frame_unwind_cache): Likewise.
4600 (s390_frame_this_id, s390_frame_prev_register): Likewise.
4601 (s390_frame_unwind): Define.
4602 (s390_frame_sniffer): New function.
4603 (struct s390_pltstub_unwind_cache): New data structure.
4604 (s390_pltstub_frame_unwind_cache): New function.
4605 (s390_pltstub_frame_this_id): Likewise.
4606 (s390_pltstub_frame_prev_register): Likewise.
4607 (s390_pltstub_frame_unwind): Define.
4608 (s390_pltstub_frame_sniffer): New function.
4609 (struct s390_sigtramp_unwind_cache): New data structure.
4610 (s390_sigtramp_frame_unwind_cache): New function.
4611 (s390_sigtramp_frame_this_id): Likewise.
4612 (s390_sigtramp_frame_prev_register): Likewise.
4613 (s390_sigtramp_frame_unwind): Define.
4614 (s390_sigtramp_frame_sniffer): New function.
4615 (s390_frame_base_address, s390_local_base_address): New functions.
4616 (s390_frame_base): Define.
4617 (s390_unwind_pc, s390_unwind_sp): New function.
4618 (s390_push_dummy_call): Use new frame base location.
4619 (s390_unwind_dummy_id): Likewise.
4620 (s390_gdbarch_init): Remove calls to:
4621 set_gdbarch_frameless_function_invocation,
4622 set_gdbarch_deprecated_init_frame_pc,
4623 set_gdbarch_deprecated_frame_chain,
4624 set_gdbarch_deprecated_frame_init_saved_regs,
4625 set_gdbarch_deprecated_pop_frame,
4626 set_gdbarch_deprecated_init_extra_frame_info,
4627 set_gdbarch_deprecated_init_frame_pc_first,
4628 set_gdbarch_deprecated_target_read_fp,
4629 set_gdbarch_deprecated_frame_saved_pc,
4630 set_gdbarch_deprecated_saved_pc_after_call,
4631 set_gdbarch_deprecated_fp_regnum.
4632 Add calls to:
4633 set_gdbarch_in_solib_call_trampoline,
4634 frame_unwind_append_sniffer,
4635 frame_base_set_default,
4636 set_gdbarch_unwind_pc,
4637 set_gdbarch_unwind_sp.
4638 * Makefile.in (s390-tdep.o): Update dependencies.
4639
b0cf273e
JB
4640 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
4641 (S390_STACK_FRAME_OVERHEAD): Remove.
4642 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
4643 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
4644 (s390_promote_integer_argument): Remove.
4645 (s390_cannot_extract_struct_value_address): Remove.
4646 (s390_use_struct_convention, s390_store_struct_return): Remove.
4647 (s390_extract_return_value, s390_store_return_value): Remove.
4648 (s390_return_value_convention, s390_return_value): New functions.
4649 (is_float_singleton): Handle typedefs.
8a1dac83 4650 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
4651 Remove, replace by ...
4652 (s390_function_arg_pass_by_reference, s390_function_arg_float,
4653 s390_function_arg_integer): ... these new functions.
4654 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
4655 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
4656 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
4657 Fill in tdep->abi.
4658 Remove calls to:
4659 set_gdbarch_deprecated_store_struct_return,
4660 set_gdbarch_deprecated_extract_return_value,
4661 set_gdbarch_deprecated_store_return_value,
4662 set_gdbarch_use_struct_convention,
4663 set_gdbarch_extract_struct_value_address,
4664 set_gdbarch_deprecated_pc_in_call_dummy,
4665 set_gdbarch_deprecated_push_arguments,
4666 set_gdbarch_deprecated_save_dummy_frame_tos,
4667 set_gdbarch_deprecated_push_return_address,
4668 set_gdbarch_deprecated_sizeof_call_dummy_words,
4669 set_gdbarch_deprecated_call_dummy_words,
4670 set_gdbarch_deprecated_dummy_write_sp.
4671 Add calls to:
4672 set_gdbarch_push_dummy_call,
4673 set_gdbarch_unwind_dummy_id,
4674 set_gdbarch_return_value.
8a1dac83 4675
e1457d83
JB
4676 * config/s390/nm-linux.h: Update comments.
4677 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
4678 (STOPPED_BY_WATCHPOINT): Redefine.
4679 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
4680 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
4681 (s390_stopped_by_watchpoint): Likewise.
4682 (watch_area_cnt): Remove.
4683 * s390-nat.c: Update comments.
4684 (watch_area): Remove typedef.
4685 Global replace watch_area by struct watch_area.
4686 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 4687 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
4688 use s390_inferior_tid. Add short-cut for the no watchpoint case.
4689 (s390_fix_watch_points): Remove pid argument,
4690 use s390_inferior_tid. Recompute area spanned by watchpoints.
4691 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
4692 argument. Reimplement.
4693
d0f54f9d
JB
4694 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
4695 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
4696 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 4697 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
4698 core-regset.o.
4699 * config/s390/s390x.mt: Remove.
4700 * config/s390/tm-s390.h: Remove.
4701 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
4702 (TARGET_ELF64): Remove.
4703 (SKIP_TRAMPOLINE_CODE): Do not undefine.
4704 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
4705 s390*-*-* case; always set gdb_target to s390.
4706 * regformats/reg-s390.dat: Remove control registers.
4707 * regformats/reg-s390x.dat: Likewise.
4708 * s390-tdep.h: New file.
8a1dac83 4709 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
4710 Include "inferior.h" and "s390-tdep.h".
4711 Remove private definition of offsetof.
4712 (s390_register_u_addr): Remove.
4713 (regmap_gregset, regmap_fpregset): Define.
4714 (supply_gregset, fill_gregset): Reimplement.
4715 (supply_fpregset, fill_fpregset): Likewise.
4716 (s390_inferior_tid): New function.
4717 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
4718 (fetch_inferior_registers, store_inferior_registers): Likewise.
4719 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
4720 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
4721 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
4722 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
4723 (struct gdbarch_tdep): Define.
4724 (struct s390_register_info): Define.
4725 (s390_register_info): New variable.
4726 (s390_register_name): Reimplement.
4727 (s390_register_type): New function.
4728 (s390_register_raw_size, s390x_register_raw_size): Remove.
4729 (s390_cannot_fetch_register): Remove.
4730 (s390_register_byte): Remove.
4731 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
4732 (s390_dwarf_regmap): New variable.
4733 (s390_dwarf_reg_to_regnum): New function.
4734 (s390_stab_reg_to_regnum): Remove.
4735 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
4736 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
4737 (s390_convert_register_p): Likewise.
4738 (s390_register_to_value, s390_value_to_register): Likewise.
4739 (s390_register_reggroup_p): Likewise.
4740 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
4741 s390_gregset, s390x_gregset, s390_fpregset): New variables.
4742 (s390_supply_regset, s390_regset_from_core_section): New functions.
4743 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
4744 (S390_FPR_SIZE): Likewise.
4745 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
4746 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
4747 (S390_NUM_GPRS): Move here from tm-s390.h.
4748 (S390_NUM_FPRS): Likewise.
4749 (s390_in_function_epilogue_p): New function.
4750 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
4751 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
4752 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
4753 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
4754 Replace S390_FP_REGNUM by S390_SP_REGNUM.
4755 Remove calls to:
4756 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
4757 set_gdbarch_deprecated_max_register_virtual_size,
4758 set_gdbarch_deprecated_register_byte,
d0f54f9d 4759 set_gdbarch_cannot_fetch_register,
8a1dac83 4760 set_gdbarch_cannot_store_register,
d0f54f9d
JB
4761 set_gdbarch_deprecated_register_size,
4762 set_gdbarch_deprecated_register_raw_size,
4763 set_gdbarch_deprecated_register_virtual_size,
4764 set_gdbarch_deprecated_register_virtual_type,
4765 set_gdbarch_deprecated_register_bytes.
4766 Add calls to:
4767 set_gdbarch_num_pseudo_regs,
4768 set_gdbarch_register_type,
4769 set_gdbarch_convert_register_p,
4770 set_gdbarch_register_to_value,
4771 set_gdbarch_value_to_register,
4772 set_gdbarch_register_reggroup_p,
4773 set_gdbarch_regset_from_core_section,
4774 set_gdbarch_pseudo_register_read,
4775 set_gdbarch_pseudo_register_write,
4776 set_gdbarch_in_function_epilogue_p.
4777 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
4778 (s390_tdep_h): New variable.
4779
8cfe231d
JB
47802004-02-17 Jim Blandy <jimb@redhat.com>
4781
4589a601
JB
4782 * findvar.c (value_from_register): If the type has no length, just
4783 return an acceptable value --- don't report an internal error.
4784
8cfe231d
JB
4785 * stabsread.c (read_type): If we find any type numbers that are
4786 forward references, complain if the references aren't resolved by
4787 the time we're finished reading.
4788 (cleanup_undefined_types): Make error message more appropriate for
4789 a complaint.
4790
5bf0017e
EZ
47912004-02-17 Elena Zannoni <ezannoni@redhat.com>
4792
9d62932d
EZ
4793 * Makefile.in (defs_h): Remove dependency on progress_h.
4794 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
4795 progress.h.
4796 * main.c (captured_main): Delete use of START_PROGRESS and
4797 END_PROGRESS.
4798
47992004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 4800
5bf0017e
EZ
4801 * objfiles.c (terminate_minimal_symbol_table): Add back
4802 initialization of MSYMBOL_TYPE.
4803
9fc9f5e2
AC
48042004-02-17 David Mosberger <davidm@hpl.hp.com>
4805
4806 Committed by Andrew Cagney.
4807 * Makefile.in (ia64_tdep_h): New macro.
4808 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
4809 (ia64-tdep.o): Likewise.
4810 * ia64-tdep.h: New file.
4811 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
4812 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
4813 (ia64_aix_sigcontext_register_address): Likewise.
4814 (ia64_linux_getunwind_table): Delete declaration.
4815 * ia64-linux-tdep.c: Likewise.
4816
76cd2bd9
CV
48172004-02-17 Corinna Vinschen <vinschen@redhat.com>
4818
4819 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
4820 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
4821 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
4822
634aa483
AC
48232004-02-17 Andrew Cagney <cagney@redhat.com>
4824
4825 * symtab.c (skip_prologue_using_sal): New function.
4826 * symtab.h (skip_prologue_using_sal): Declare.
4827 * frv-tdep.c: Include "symtab.h".
4828 (skip_prologue_using_sal): Delete function.
4829 * mips-tdep.c (skip_prologue_using_sal): Delete function.
4830 * rs6000-tdep.c (refine_prologue_limit): Mention
4831 skip_prologue_using_sal.
4832 * ia64-tdep.c (refine_prologue_limit): Ditto.
4833 * Makefile.in: Update dependencies.
4834
48352004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 4836
39ce7b3f
AC
4837 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
4838 START_INFERIOR_TRAPS_EXPECTED.
4839 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
4840 START_INFERIOR_TRAPS_EXPECTED.
4841 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
4842 Delete macro.
4843 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
4844 macro, moved to "nm-osf.h". Update copyright.
4845 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
4846 update copyright.
4847
19772a2c
AC
4848 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
4849 and function replacing FRAMELESS_FUNCTION_INVOCATION.
4850 * blockframe.c (legacy_frameless_look_for_prologue): Rename
4851 frameless_look_for_prologue.
4852 * frame.h (legacy_frameless_look_for_prologue): Rename
4853 frameless_look_for_prologue.
4854 * gdbarch.h, gdbarch.c: Re-generate.
4855 * sh64-tdep.c (sh64_gdbarch_init): Update.
4856 * sh-tdep.c (sh_gdbarch_init): Update.
4857 * s390-tdep.c (s390_gdbarch_init): Update.
4858 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4859 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4860 * m68k-tdep.c (m68k_gdbarch_init): Update.
4861 (delta68_frame_args_address): Update.
4862 * m32r-tdep.c (m32r_gdbarch_init): Update.
4863 * hppa-tdep.c (hppa_gdbarch_init): Update.
4864 * h8300-tdep.c (h8300_gdbarch_init): Update.
4865 * frv-tdep.c (frv_gdbarch_init): Update.
4866 (frv_frameless_function_invocation): Update.
4867 * cris-tdep.c (cris_gdbarch_init): Update.
4868 (cris_frameless_function_invocation): Update.
4869 * avr-tdep.c (avr_gdbarch_init): Update.
4870 * arm-tdep.c (arm_gdbarch_init): Update.
4871 * stack.c (frame_info): Update, call predicate.
4872 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
4873 * frame.c (legacy_get_prev_frame): Update, call predicate..
4874 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
4875 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
4876 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
4877 invocation.
4878 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4879 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4880 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
4881
4882 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
4883 function.
4884
7dcaac91
DJ
48852004-02-16 Daniel Jacobowitz <drow@mvista.com>
4886
4887 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
4888 initializations.
4889
88289b6e
AC
48902004-02-16 Andrew Cagney <cagney@redhat.com>
4891
4892 * tui/tui-windata.c: Include "gdb_string.h".
4893 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
4894 * tui/tui-layout.c, tui/tui-command.c: Ditto.
4895 * Makefile.in: Update dependencies.
4896
9f976b41
DJ
48972004-02-16 Daniel Jacobowitz <drow@mvista.com>
4898
4899 * Makefile.in (infrun.o): Add $(gdb_assert_h).
4900 * infrun.c: Include "gdb_assert.h".
4901 (singlestep_ptid, saved_singlestep_ptid)
4902 (stepping_past_singlestep_breakpoint): New variables.
4903 (resume): Set singlestep_ptid. Check for singlestep thread
4904 hop.
4905 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
4906 (handle_inferior_event): Handle singlestep thread hop.
4907
c324d747
AC
49082004-02-16 Andrew Cagney <cagney@redhat.com>
4909
f090b9b1
AC
4910 * dwarf2-frame.c (dwarf2_frame_ops): New function.
4911 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
4912 (dwarf2_frame_init_reg): Ditto.
4913
fd33e6cb
AC
4914 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
4915 suggested by Joshua Neuheisel
4916
c324d747
AC
4917 * configure.in: Always check for curses, including pdcurses.
4918 Warn, instead of error, when no curses are found. Enable TUI when
4919 curses is available.
4920 * configure: Re-generate.
4921
b66ba949
CV
49222004-02-16 Corinna Vinschen <vinschen@redhat.com>
4923
4924 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
4925 sh_sh4_register_convert_to_virtual.
4926 (sh_register_convert_to_raw): Rename from
4927 sh_sh4_register_convert_to_raw.
4928 (sh_pseudo_register_read): Accomodate above name change.
4929 (sh_pseudo_register_write): Ditto.
4930
b58cbbf2
CV
49312004-02-16 Corinna Vinschen <vinschen@redhat.com>
4932
4933 * sh-tdep.c (sh_generic_register_name): Remove.
4934 (sh_gdbarch_init): Use sh_sh_register_name in default case.
4935
5929a910
AC
49362004-02-15 Andrew Cagney <cagney@redhat.com>
4937
4566dfcf
AC
4938 * configure.in (build_warnings): Add -Wunused-function.
4939 * configure: Re-generate.
4940
db11ed55
AC
4941 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
4942 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
4943
46ac7a5d
AC
4944 * procfs.c (procfs_init_inferior): Assume that
4945 START_INFERIOR_TRAPS_EXPECTED is defined.
4946 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
4947 * config/ns32k/tm-nbsd.h: Delete file,
4948 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
4949
ba801595
AC
4950 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
4951 * config/vax/tm-vax.h: Delete file.
4952
5929a910
AC
4953 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4954 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4955 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4956 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4957 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
4958 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4959 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
4960
8f22cb90
MK
49612004-02-15 Mark Kettenis <kettenis@gnu.org>
4962
4963 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
4964 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4965 (struct dwarf2_frame_ops): New.
4966 (dwarf2_frame_default_init_reg): New function, based on
4967 dwarf2_frame_init_reg.
4968 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
4969 (dwarf2_frame_init_reg): Call architecture-specific function.
4970 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
4971 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
4972 instead of dwarf2_frame_data.
4973 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
4974 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
4975
8132723e
AC
49762004-02-15 Andrew Cagney <cagney@redhat.com>
4977
046a4708
AC
4978 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
4979 register_gdbarch_swap.
4980 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
4981 * f-lang.c (_initialize_f_language): Update, use
4982 DEPRECATED_REGISTER_GDBARCH_SWAP.
4983 * remote.c (_initialize_remote): Ditto.
4984 * regcache.c (_initialize_regcache): Ditto.
4985 * parse.c (_initialize_parse): Ditto.
4986 * infrun.c (_initialize_infrun): Ditto.
4987 * mi/mi-main.c (_initialize_mi_main): Ditto.
4988 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 4989
549c1eea
AC
4990 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
4991 poking .cacheable directly.
4992 * symfile.c (symfile_bfd_open): Ditto.
4993
0c0b39de
AC
4994 * Makefile.in: Update all dependencies.
4995
8132723e
AC
4996 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
4997 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
4998 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
4999 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
5000 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 5001
b9d26eb9
AC
50022004-02-14 Andrew Cagney <cagney@redhat.com>
5003
8e1f669a
AC
5004 * arch-utils.c (legacy_convert_register_p): Check
5005 DEPRECATED_REGISTER_CONVERTIBLE_P.
5006 * findvar.c (value_of_register): Ditto.
5007
cd0bfa36
AC
5008 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
5009 * gdbarch.h, gdbarch.c: Re-generate.
5010 * arch-utils.c (deprecated_register_convertible_not): Delete.
5011 * arch-utils.h (deprecated_register_convertible_not): Delete.
5012 * mi/mi-main.c (get_register): Update. Update copyright.
5013 * infcmd.c (default_print_registers_info): Update.
5014
b9d26eb9
AC
5015 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5016 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
5017 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 5018 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
5019 * frame.c (deprecated_get_next_frame_hack): Delete function.
5020 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
5021 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5022 Update.
5023 * infcall.c (call_function_by_hand): Update.
5024
9ab9195f
EZ
50252004-02-14 Elena Zannoni <ezannoni@redhat.com>
5026
5027 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 5028 from here...
9ab9195f
EZ
5029 * objfiles.c (init_entry_point_info, entry_point_address):..to
5030 here.
5031 * symfile.h (init_entry_point_info, entry_point_address): Remove
5032 prototypes.
5033 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 5034 prototypes.
9ab9195f
EZ
5035 * cris-tdep.c: Remove include of symfile.h. Add include of
5036 objfiles.h.
5037 * infcall.c: Ditto.
5038 * mcore-tdep.c: Ditto.
5039 * mn10300-tdep.c: Ditto.
5040 * sh64-tdep.c: Ditto.
5041 * v850-tdep.c: Ditto.
5042 * arm-tdep.c: Remove include of symfile.h.
5043 * blockframe.c: Ditto.
5044 * coffread.c: Ditto.
5045 * dbxread.c: Ditto.
5046 * dwarf2read.c: Ditto.
5047 * dwarfread.c: Ditto.
8a1dac83 5048 * frv-tdep.c: Ditto.
9ab9195f
EZ
5049 * ia64-tdep.c: Ditto.
5050 * mdebugread.c: Ditto.
5051 * mipsread.c: Ditto.
8a1dac83 5052 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
5053 * s390-tdep.c: Ditto.
5054 * sh-tdep.c: Ditto.
8a1dac83 5055 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
5056 * gdbarch.sh: Remove include of symfile.h.
5057 * gdbarch.c: Regenerate.
5058 * solib-irix.c (enable_break): Use entry_point_address().
5059 Add comment about include file.
5060 * xcoffread.c: Add comment about include file.
8a1dac83
RM
5061 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
5062 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
5063 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
5064 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
5065 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
5066
c4c5b7ba
AC
50672004-02-13 Andrew Cagney <cagney@redhat.com>
5068
5069 * corelow.c (core_xfer_partial): Use "struct bfd_section".
5070 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
5071 copyright.
5072 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
5073
3e7879de
FF
50742004-02-12 Fred Fish <fnf@redhat.com>
5075
5076 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
5077 set_gdbarch_store_return_value.
5078
6a7760b6
AC
50792004-02-12 Andrew Cagney <cagney@redhat.com>
5080
5081 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
5082 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
5083 (interrupt_query): Ditto.
5084 (ofunc): Delete unused variable.
5085 * cris-tdep.c (cris_abi): Delete unused function.
5086 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
5087 (cris_get_wide_opcode, cris_get_short_size): Ditto.
5088 (cris_get_asr_quick_shift_steps): Ditto.
5089 (cris_skip_prologue_frameless_p): Ditto.
5090 * arm-tdep.c (arm_push_return_address): Delete unused function.
5091 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
5092 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
5093 * s390-tdep.c (s390_function_start): Delete unused function.
5094
31687c3c
AC
50952004-02-12 Andrew Cagney <cagney@redhat.com>
5096
5097 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
5098 gdbarch.h, gdbarch.c: Re-generate.
5099 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
5100 to generic_prologue_frameless_p.
5101 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
5102 * arch-utils.c (generic_prologue_frameless_p): Delete function.
5103
6de918a6
DJ
51042004-02-11 Daniel Jacobowitz <drow@mvista.com>
5105
5106 * mips-linux-tdep.c: Include "frame.h".
5107 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
5108 (mips_linux_skip_resolver): New functions.
5109 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
5110 and set_gdbarch_in_solib_call_trampoline.
5111 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
5112 to after set_gdbarch_in_solib_return_trampoline. Only set the
5113 solib hooks to mips16 functions if the OS ABI is unknown.
5114 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
5115 including "config/tm-linux.h".
5116 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
5117 * Makefile.in (mips-linux-tdep.o): Update.
5118
87b3ede8
DC
51192004-02-11 David Carlton <carlton@kealia.com>
5120
5121 * linespec.c (decode_compound): Only look for a class symbol when
5122 considering all but the rightmost component.
5123
5979bc46
AC
51242004-02-11 Andrew Cagney <cagney@redhat.com>
5125
5126 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
5127 abi code are are separatly grouped.
5128
5867a2fb
AC
51292004-02-11 Andrew Cagney <cagney@redhat.com>
5130
5131 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
5132 * gdbarch.h, gdbarch.c: Re-generate.
5133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5134 * v850-tdep.c (v850_gdbarch_init): Update.
5135 * sh64-tdep.c (sh64_gdbarch_init): Update.
5136 * sh-tdep.c (sh_gdbarch_init): Update.
5137 * s390-tdep.c (s390_gdbarch_init): Update.
5138 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5139 * mips-tdep.c (mips_gdbarch_init): Update.
5140 * mcore-tdep.c (mcore_gdbarch_init): Update.
5141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5142 * m32r-tdep.c (m32r_gdbarch_init): Update.
5143 * ia64-tdep.c (ia64_gdbarch_init): Update.
5144 * hppa-tdep.c (hppa_gdbarch_init): Update.
5145 * h8300-tdep.c (h8300_gdbarch_init): Update.
5146 * frv-tdep.c (frv_gdbarch_init): Update.
5147 * d10v-tdep.c (d10v_gdbarch_init): Update.
5148 * cris-tdep.c (cris_gdbarch_init): Update.
5149 * avr-tdep.c (avr_gdbarch_init): Update.
5150 * arm-tdep.c (arm_gdbarch_init): Update.
5151 * alpha-tdep.c (alpha_gdbarch_init): Update.
5152
026a72f8
CV
51532004-02-11 Corinna Vinschen <vinschen@redhat.com>
5154
5155 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
5156 comma.
5157 (sh_sh4al_dsp_register_name): Ditto.
5158
3903d437
AC
51592004-02-10 Andrew Cagney <cagney@redhat.com>
5160
5161 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
5162 (mips_init_frame_pc_first): Delete function.
5163 (mips_frame_saved_pc): Delete function.
5164 (mips_frame_chain): Delete function.
5165 (mips_init_extra_frame_info): Delete function.
5166 (mips_xfer_register): Delete unused variable "reg".
5167 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
5168 (mips_n32n64_return_value): Delete unused variable "reg".
5169 (mips_n32n64_return_value): Delete unused variable "pos".
5170 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
5171 (mips_o32_return_value): Delete unused variable "pos".
5172 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
5173 (mips_print_fp_register): Delete unused variable "namelen"
5174 (mips_print_fp_register): Delete unused variable "flt2"
5175 (get_frame_pointer): Delete function.
5176 (cached_proc_desc): Delete static variable.
5177 (mips_pop_frame): Delete function.
5178 (mips_find_saved_regs): Delete function.
5179 (mips_get_saved_register): Delete function.
5180 (mips_saved_pc_after_call): Delete function.
5181 (SIGFRAME_BASE): Delete macro.
5182 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
5183 (SIGFRAME_PC_OFF): Delete macro.
5184 (SIGFRAME_REGSAVE_OFF): Delete macro.
5185 (mips_dump_tdep): Do not print deleted macro definitions.
5186
b9fb98bd
AC
51872004-02-10 Andrew Cagney <cagney@redhat.com>
5188
5189 * Makefile.in (SFILES): Remove explictly listed tui files.
5190 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
5191
78ced177 51922004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 5193
78ced177
JJ
5194 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
5195 to use paddr functions to format ia64 addresses and long values.
5196 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
5197 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
5198 (get_kernel_table, ia64_find_proc_info_x): Ditto.
5199 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
5200 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
5201
6a83354a
AC
52022004-02-10 Andrew Cagney <cagney@redhat.com>
5203
5204 * defs.h: Do not include "tui.h".
5205 * gdb_curses.h: New file.
5206 * tui/tui-hooks.h: New file.
5207 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
5208 (tui_install_hooks, tui_remove_hooks): Delete declarations.
5209 (tui_initialize_io): Delete declaration.
5210 (tui_initialize_readline: Delete redundant declaration.
5211 (struct tui_point): Delete definition.
5212 * tui/tui-data.h (struct tui_point): Define.
5213 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
5214 * utils.c: Include "tui/tui.h".
5215 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
5216 * printcmd.c [TUI]: Include "tui/tui.h".
5217 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
5218 * tui/tui-command.c: Include "gdb_curses.h".
5219 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
5220 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
5221 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
5222 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
5223 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
5224 * Makefile.in: Update all dependencies.
5225 (tui_hooks_h, gdb_curses_h): Define.
5226 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
5227
997470ef
EZ
52282004-02-10 Elena Zannoni <ezannoni@redhat.com>
5229
5230 * objfiles.h (struct objfile): Remove unused fields auxf1 and
5231 auxf2. Add comments about some other rarely used fields.
5232
4ff2cc4d
AC
52332004-02-10 Andrew Cagney <cagney@redhat.com>
5234
5235 * Makefile.in (init.c): Fix script removing duplicates. Problem
5236 reported by Peter Schauer.
5237
1ab21617
EZ
52382004-02-09 Elena Zannoni <ezannoni@redhat.com>
5239
5240 * bcache.c (bcache_xmalloc): Use obstack_init instead of
5241 obstack_specify_allocation.
5242 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 5243 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
5244 (allocate_rt_common_objfile): Ditto.
5245 * symfile.c (reread_symbols): Ditto.
5246 * gdb_obstack.h: Add comment.
5247
17763fd9
EZ
52482004-02-09 Elena Zannoni <ezannoni@redhat.com>
5249
5250 * linespec.c (decode_line_1, locate_first_half)
5251 (decode_compound, lookup_prefix_sym): Update comments. Delete old
5252 commented out code.
5253
ec5cdd75
DJ
52542004-02-09 Daniel Jacobowitz <drow@mvista.com>
5255
5256 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
5257 obstack_free.
5258
43b54b88
AC
52592004-02-09 Andrew Cagney <cagney@redhat.com>
5260
5261 * blockframe.c (find_pc_partial_function): If find_pc_overlay
5262 fails, try find_pc_section. Fix PR c++/1267.
5263 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
5264 instead of find_pc_mapped_section.
5265 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
5266 not default to the section containing PC. Fix PR symtab/1519.
5267
edfae063
AC
52682004-02-09 Andrew Cagney <cagney@redhat.com>
5269
5270 * Makefile.in (mips-tdep.o): Update dependencies.
5271 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
5272 "trad-frame.h".
5273 (mips_unwind_pc): Return the pseudo PC register.
5274 (mips_unwind_dummy_id): New function.
5275 (mips16_fetch_instruction): New function.
5276 (mips32_fetch_instruction): New function.
5277 (struct mips_frame_cache): Define.
5278 (mips_mdebug_frame_cache): New function.
5279 (mips_mdebug_frame_this_id): New function.
5280 (mips_mdebug_frame_prev_register): New function.
5281 (mips_mdebug_frame_unwind): Define.
5282 (mips_mdebug_frame_sniffer): New function.
5283 (mips_mdebug_frame_base_address): New function.
5284 (mips_mdebug_frame_base): Define.
5285 (mips_mdebug_frame_base_sniffer): New function.
5286 (mips_gdbarch_init): Append unwind and base sniffers. Set
5287 unwind_dummy_id.
5288
defc864c
AC
52892004-02-08 Andrew Cagney <cagney@redhat.com>
5290
6764ddad
AC
5291 * frame.c: Print both the register number and name.
5292
defc864c
AC
5293 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
5294 and a sed into a single sed. Make .c and .o patterns more robust.
5295 (OBS): Delete.
5296 (INIT_FILES): Replace OBS with COMMON_OBS.
5297 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
5298
645d6d10
MK
52992004-02-08 Mark Kettenis <kettenis@gnu.org>
5300
5301 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
5302 the PT_WCOOKIE request.
5303
23e3c3fc
AC
53042004-02-08 Andrew Cagney <cagney@redhat.com>
5305
58dfe9ff
AC
5306 * mips-tdep.c (mips_unwind_pc): New function.
5307 (mips_gdbarch_init): Set mips_unwind_pc.
5308
1152e35e
AC
5309 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
5310 (get_frame_id): Allow the UNKNOWN_FRAME.
5311 (frame_register_unwind, get_frame_type): Ditto.
5312
31b75dbf
AC
5313 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
5314 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
5315 unwind_dummy_id indicates a legacy frame.
5316
3483b318
AC
5317 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
5318 * configure: Re-generate.
5319
23e3c3fc
AC
5320 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
5321 methods.
5322
33f8ca73
AC
53232004-02-08 Andrew Cagney <cagney@redhat.com>
5324
5325 * configure.in (CONFIG_ALL): Set to Makefile target, and not
5326 makefile macro.
5327 * configure: Re-generate.
5328 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
5329 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
5330 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
5331 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
5332 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
5333 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
5334 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
5335 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
5336 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
5337 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
5338
6ba8e26f 53392004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 5340
20d286a5
AC
5341 * Makefile.in: Update all dependencies.
5342
d836ee13
AC
5343 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
5344 * configure: Re-generate.
5345 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
5346 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
5347 (COMMON_OBS): Add "main.o" and "annotate.o".
5348 (ANNOTATE_OBS): Delete.
5349 (OBS): Remove ANNOTATE_OBS.
5350 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
5351 CONFIG_INITS.
5352 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
5353 against CONFIG_OBS and "main.o".
5354 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
5355 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
5356
d02c80cd
AC
5357 * tui/tui-command.c: Include "gdb_string.h", delete register
5358 attribute, use ISO-C function signatures.
5359 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
5360 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5361 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
5362 * tui/tui.c: Ditto.
6ba8e26f
AC
5363
5364 * tui/tui-command.c: Change variable and function names to lower
5365 case.
5366 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
5367 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
5368 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5369 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5370 * tui/tui-winsource.c, tui/tui.c: Ditto.
5371
4a146b47
EZ
53722004-02-07 Elena Zannoni <ezannoni@redhat.com>
5373
5374 * buildsym.c (free_pending_blocks, finish_block)
5375 (record_pending_block, make_blockvector, end_symtab): Replace
5376 symbol_obstack with objfile_obstack.
8a1dac83 5377 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 5378 (coff_read_enum_type): Ditto.
8a1dac83 5379 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 5380 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 5381 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
5382 (dwarf2_symbol_mark_computed): Ditto.
5383 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
5384 * elfread.c (elf_symtab_read): Ditto.
5385 * hpread.c (hpread_symfile_init, hpread_symfile_init)
5386 (hpread_read_enum_type, hpread_read_function_type)
5387 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
5388 Ditto.
8a1dac83 5389 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 5390 (java_link_class_type): Ditto.
8a1dac83 5391 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
5392 (new_symbol): Ditto.
5393 * minsyms.c (install_minimal_symbols): Ditto.
5394 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
5395 (terminate_minimal_symbol_table): Replace symbol_obstack with
5396 objfile_obstack.
5397 (free_objfile): Remove freeing of symbol_obstack.
5398 * objfiles.h: Remove symbol_obstack field.
5399 * pa64solib.c (add_to_solist): Replace symbol_obstack with
5400 objfile_obstack.
5401 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5402 symbol_obstack.
5403 (solib_add_common_symbols): Replace symbol_obstack with
5404 objfile_obstack.
5405 * somsolib.c (som_solib_add): Ditto.
5406 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5407 (common_block_start, common_block_end): Ditto.
5408 * symfile.c (reread_symbols): Remove freeing and init of
5409 symbol_obstack.
5410 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
5411 * symfile.h: Update comment.
5412 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
5413 stats printing.
5414 * symtab.c (symbol_set_names): Replace symbol_obstack with
5415 objfile_obstack.
5416 * symtab.h (struct general_symbol_info, struct minimal_symbol):
5417 Update comments.
5418 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
5419 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
5420 objfile_obstack.
5421
6d012f14
AC
54222004-02-07 Andrew Cagney <cagney@redhat.com>
5423
5424 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
5425 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
5426 fields and variables.
5427 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
5428 (m_beInvisible): Delete macro.
5429 * tui/tui-data.h: Fix case case fields and variables.
5430 (m_genWinPtrIsNull): Delete macro.
5431 (tui_win_list): Rename winList.
5432 (TUI_SRC_WIN): Rename srcWin.
5433 (TUI_DISASM_WIN): Rename disassemWin.
5434 (TUI_DATA_WIN): Rename dataWin.
5435 (TUI_CMD_WIN): Rename cmdWin.
5436 (m_genWinPtrNotNull): Delete macro.
5437 (m_winPtrIsNull): Delete macro.
5438 (m_winPtrNotNull): Delete macro.
5439 (tui_win_is_source_type): Replace m_winIsSourceType
5440 (tui_win_is_auxillary): Replace m_winIsAuzillary.
5441 (tui_win_has_locator): Replace m_hasLocator.
5442 (tui_set_win_highlight): Replace m_setWinHighlightOn and
5443 m_setWinHighlightOff.
5444 * tui/tui-data.c: Update references.
5445 (tui_win_is_source_type, tui_set_win_highlight): New functions.
5446 (tui_win_has_locator, tui_win_is_auxillary): New functions.
5447 * tui/tui-command.c, tui/tui-disasm.c: Update references.
5448 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
5449 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
5450 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5451 * tui/tui-winsource.c, tui/tui.c: Ditto.
5452
7d34766b
MK
54532004-02-07 Mark Kettenis <kettenis@gnu.org>
5454
1c800673
MK
5455 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
5456 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
5457 StackGhost.
5458
7d34766b
MK
5459 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
5460 variable `i6' to `i7'.
5461 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
5462
22940a24
AC
54632004-02-07 Andrew Cagney <cagney@redhat.com>
5464
5465 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
5466 (TuiPoint, TuiPointPtr): Ditto.
5467 (TuiStatus, TuiStatusPtr): Ditto.
5468 (TuiWinType, TuiWinTypePtr): Ditto.
5469 (struct tui_point): Rename _TuiPoint.
5470 (tui_get_low_disassembly_address): Rename
5471 tuiGetLowDisassemblyAddress.
5472 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
5473 (tuiFree): Delete declaration.
5474 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
5475 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
5476 * tui/tui.c (tuiFree): Delete function.
5477 * cli/cli-cmds.c (disassemble_command): Update references.
5478 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
5479 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5480 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
5481 * tui/tui-winsource.c: Ditto.
5482
8b92e4d5
EZ
54832004-02-07 Elena Zannoni <ezannoni@redhat.com>
5484
5485 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
5486 coffstab_build_psymtabs, elfstab_build_psymtabs)
5487 (stabsect_build_psymtabs): Replace psymbol_obstack with
5488 objfile_obstack.
5489 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
5490 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
5491 Ditto.
5492 * dwarfread.c (scan_compilation_units): Ditto.
5493 * elfread.c (elfstab_offset_sections): Ditto.
5494 * hppa-tdep.c (read_unwind_info): Ditto.
5495 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
5496 (hpread_end_psymtab): Ditto.
5497 * mdebugread.c (mdebug_build_psymtabs, add_pending)
5498 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
5499 Ditto.
5500 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 5501 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
5502 (build_objfile_section_table): Ditto.
5503 (allocate_objfile): Remove init of psymbol_obstack.
5504 (free_objfile): Remove freeing of psymbol_obstack.
5505 * objfiles.h (struct objfile): Remove field
5506 psymbol_obstack. Update comments.
5507 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
5508 psymbol_obstack with objfile_obstack.
5509 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5510 psymbol_obstack.
5511 * somread.c (som_symfile_offsets, init_import_symbols)
5512 (init_export_symbols): Replace psymbol_obstack with
5513 objfile_obstack.
5514 * somsolib.c (som_solib_add_solib_objfile): Ditto.
5515 * symfile.c (default_symfile_offsets, syms_from_objfile)
5516 (reread_symbols): Remove freeing and init of psymbol_obstack.
5517 (cashier_psymtab): Update comment.
5518 * symmisc.c (print_objfile_statistics): Don't report stats for
5519 psymbol obstack.
5520 * symtab.h (struct general_symbol_info, struct partial_symtab):
5521 Update comments.
5522 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
5523 (xcoff_symfile_offsets): Replace psymbol_obstack with
5524 objfile_obstack.
5525
b99607ea
EZ
55262004-02-07 Elena Zannoni <ezannoni@redhat.com>
5527
5528 * objfiles.h (struct objfile): Add objfile_obstack field.
5529 Remove type_obstack field.
5530
5531 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
5532 read_structure_scope read_enumeration, new_symbol): Replace
5533 type_obstack with objfile_obstack.
5534 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 5535 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
5536 (lookup_fundamental_type): Ditto.
5537 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
5538 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
5539 (hpread_read_doc_function_type, hpread_read_struct_type)
5540 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 5541 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 5542 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
5543 (java_link_class_type): Ditto.
5544 * mdebugread.c (parse_type): Ditto.
5545 * objfiles.c (allocate_objfile, free_objfile): Ditto.
5546 * solib-sunos.c (solib_add_common_symbols): Ditto.
5547 * stabsread.c (define_symbol, read_type, read_member_functions,
5548 read_cpp_abbrev, read_one_struct_field): Ditto.
5549 * symfile.c (reread_symbols): Ditto.
5550 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 5551
2a8854a7
AC
55522004-02-07 Andrew Cagney <cagney@redhat.com>
5553
5554 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
5555 (tui_exec_info_content): Rename TuiExecInfoContent.
5556 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
5557 (TuiWinInfo, TuiWinInfoPtr): Ditto.
5558 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
5559 (TuiList, TuiListPtr): Ditto.
5560 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
5561 (TuiDataType, TuiDataTypePtr): Ditto.
5562 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
5563 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
5564 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
5565 (TuiSourceElement, TuiSourceElementPtr): Ditto.
5566 (TuiDataElement, TuiDataElementPtr): Ditto.
5567 (TuiWinElement, TuiWinElementPtr): Ditto.
5568 (TuiDataInfo, TuiDataInfoPtr): Ditto.
5569 (TuiCommandElement, TuiCommandElementPtr): Ditto.
5570 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
5571 (TuiWhichElement, TuiWhichElementPtr): Ditto.
5572 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
5573 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
5574 * tui/tui-command.c, tui/tui-data.c: Update references.
5575 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
5576 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5577 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5578 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 5579
05cbe71a
MK
55802004-02-07 Mark Kettenis <kettenis@gnu.org>
5581
5582 * dwarf2-frame.h: Update copyright.
5583 (enum dwarf2_frame_reg_rule): New.
5584 (struct dwarf2_frame_state_reg): New.
5585 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
5586 * dwarf2-frame.c: Update copyright.
5587 (enum dwarf2_reg_rule): Remove.
5588 (struct dwarf2_frame_state): Remove defenition of `struct
5589 dwarf2_frame_state_reg'.
5590 (read_reg): Call get_frame_arch to get the architecture instead of
5591 using CURRENT_GDBARCH.
5592 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
5593 DWARF2_FRAME_.
5594 (dwarf2_frame_init_reg): New function.
5595 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
5596 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
5597 initialize the register state. Prefix old `enum dwarf2_reg_rule'
5598 tags with DWARF2_FRAME_.
5599 (dwarf2_frame_prev_register): Call get_frame_arch to get the
5600 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
5601 dwarf2_reg_rule' tags with DWARF2_FRAME_.
5602
ec7d9e56
AC
56032004-02-06 Andrew Cagney <cagney@redhat.com>
5604
dd1abb8c
AC
5605 * tui/tui-data.h (struct tui_list): Rename _TuiList.
5606 (enum tui_data_type): Rename _TuiDataType.
5607 (struct tui_layout_def): Rename _TuiLayoutDef.
5608 (struct tui_source_element): Rename _TuiSourceElement.
5609 (struct tui_data_element): Rename _TuiDataElement.
5610 (struct tui_command_element): Rename _TuiCommandElement.
5611 (struct tui_locator_element): Rename _TuiLocatorElement.
5612 (union tui_which_element): Define.
5613 (struct tui_win_element): Rename _TuiWinElement.
5614 (struct tui_data_info): Rename _TuiDataInfo.
5615 (struct tui_source_info): Rename _TuiSourceInfo.
5616 (struct tui_command_info): Rename _TuiCommandInfo.
5617 (tui_initialize_static_data): Rename initializeStaticData.
5618 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
5619 (tui_alloc_win_info): Rename allocWinInfo.
5620 (tui_init_generic_part): Rename initGenericPart.
5621 (tui_init_win_info): Rename initWinInfo.
5622 (tui_alloc_content): Rename allocContent.
5623 (tui_add_content_elements): Rename addContentElements.
5624 (tui_init_content_element): Rename initContentElement.
5625 (tui_free_window): Rename freeWindow.
5626 (tui_free_win_content): Rename freeWinContent.
5627 (tui_free_data_content): Rename freeDataContent.
5628 (tui_free_all_source_wins_content): Rename
5629 freeAllSourceWinsContent.
5630 (tui_del_window): Rename tuiDelWindow.
5631 (tui_del_data_windows): Rename tuiDelDataWindows.
5632 (tui_partial_win_by_name): Rename partialWinByName.
5633 (tui_win_name): Rename winName.
5634 (tui_current_layout): Rename currentLayout.
5635 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
5636 (tui_term_height): Rename termHeight.
5637 (tui_set_term_height_to): Rename setTermHeightTo.
5638 (tui_term_width): Rename termWidth.
5639 (tui_set_term_width_to): Rename setTermWidthTo.
5640 (tui_set_gen_win_origin): Rename setGenWinOrigin.
5641 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
5642 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
5643 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
5644 (tui_source_windows): Rename sourceWindows.
5645 (tui_clear_source_windows): Rename clearSourceWindows.
5646 (tui_clear_source_windows_detail): Rename
5647 clearSourceWindowsDetail.
5648 (tui_clear_win_detail): Rename clearWinDetail.
5649 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
5650 (tui_default_tab_len): Rename tuiDefaultTabLen.
5651 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
5652 (tui_win_with_focus): Rename tuiWinWithFocus.
5653 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
5654 (tui_layout_def): Rename tuiLayoutDef.
5655 (tui_win_resized): Rename tuiWinResized.
5656 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
5657 (tui_next_win): Rename tuiNextWin.
5658 (tui_prev_win): Rename tuiPrevWin.
5659 (tui_add_to_source_windows): Rename addToSourceWindows.
5660 * tui/tui-winsource.c, tui/tui-win.c: Update references.
5661 * tui/tui-layout.c, tui/tui-source.c: Ditto.
5662 * tui/tui-stack.c, tui/tui-io.c: Ditto.
5663 * tui/tui.c, tui/tui-data.c: Ditto.
5664 * tui/tui-interp.c, tui/tui-data.c: Ditto.
5665 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
5666
a358af15
AC
5667 * tui/tui-source.h: Update copyright. Include "tui-data.h".
5668 (struct symtab): Declare.
5669 (tui_set_source_content): Rename tuiSetSourceContent.
5670 (tui_show_symtab_source): Rename tuiShowSource.
5671 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
5672 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
5673 * tui/tui-source.c: Update copyright. Update references.
5674 * tui/tui-win.c, tui/tui-winsource.c: Update references.
5675 * tui/tui-stack.c: Update references.
5676
a21fcd8f
AC
5677 * tui/tui-win.h: Update copyright. Include "tui-data.h".
5678 (struct tui_win_info): Declare.
5679 (tui_scroll_forward): Rename tuiScrollForward.
5680 (tui_scroll_backward): Rename tuiScrollBackward.
5681 (tui_scroll_left): Rename tuiScrollLeft.
5682 (tui_scroll_right): Rename tuiScrollRight.
5683 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
5684 (tui_resize_all): Rename tuiResizeAll.
5685 (tui_refresh_all_win): Rename tuiRefreshAll.
5686 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
5687 * tui/tui-layout.c, * tui/tui-io.c: Update references.
5688 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
5689 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
5690
edae1ccf
AC
5691 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
5692 (tui_erase_data_content): Rename tuiEraseDataContent.
5693 (tui_display_all_data): Rename tuiDisplayAllData.
5694 (tui_check_data_values): Rename tuiCheckDataValues.
5695 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
5696 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
5697 (tui_first_data_element_no_in_line): Rename
5698 tuiFirstDataElementNoInLine.
5699 (tui_delete_data_content_windows): Rename
5700 tuiDeleteDataContentWindows.
5701 (tui_refresh_data_win): Rename tuiRefreshDataWin.
5702 (tui_display_data_from): Rename tuiDisplayDataFrom.
5703 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
5704 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
5705 * tui/tui-win.c, tui/tui-regs.c: Update references.
5706 * tui/tui-layout.c, tui/tui.c: Update references.
5707
ec7d9e56
AC
5708 * tui/tui-wingeneral.h: Update copyright.
5709 (m_allBeVisible): Delete macro.
8a1dac83 5710 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
5711 (struct tui_gen_win_info): Declare.
5712 (struct tui_win_info): Declare.
5713 (tui_unhighlight_win): Rename unhighlightWin.
5714 (tui_make_visible, tui_make_invisible): Replace makeVisible.
5715 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
5716 (tui_make_window): Rename makeWindow.
5717 (tui_copy_win): Rename copyWin.
5718 (tui_box_win): Rename boxWin.
5719 (tui_highlight_win): Rename highlightWin.
5720 (tui_check_and_display_highlight_if_needed): Rename
5721 checkAndDisplayHighlightIfNeeded.
5722 (tui_refresh_all): Rename refreshAll.
5723 (tui_delete_win): Rename tuiDelwin.
5724 (tui_refresh_win): Rename tuiRefreshWin.
5725 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
5726 (tui_make_visible, tui_make_invisible): New functions.
5727 (tui_make_all_visible, tui_make_all_invisible): New functions.
5728 (make_all_visible): Rename makeAllVisible.
5729 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
5730 * tui/tui-data.c, tui/tui-winsource.c: Update references.
5731 * tui/tui-windata.c, tui/tui-win.c: Update references.
5732 * tui/tui-regs.c, tui/tui-layout.c: Update references.
5733 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
5734
1e52e2eb
MK
57352004-02-06 Mark Kettenis <kettenis@gnu.org>
5736
5737 * proc-api.c (write_with_trace): Initialize local variable to
5738 silence compiler warning.
5739
f80bda8e
AC
57402004-02-06 Andrew Cagney <cagney@redhat.com>
5741
5742 * tui/tui-source.h: Do not include "defs.h".
5743 (struct tui_win_info): Declare.
5744 (tui_set_source_content_nil): Declare.
5745 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
5746 (union tui_line_or_address): Rename _TuiLineOrAddress.
5747 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
5748 (tui_update_source_window): Rename tuiUpdateSourceWindow.
5749 (tui_update_source_window_as_is): Rename
5750 tuiUpdateSourceWindowAsIs.
5751 (tui_update_source_windows_with_addr): Rename
5752 tuiUpdateSourceWindowsWithAddr.
5753 (tui_update_source_windows_with_line): Rename
5754 tuiUpdateSourceWindowsWithLine.
5755 (tui_clear_source_content): Rename tuiClearSourceContent.
5756 (tui_erase_source_content): Rename tuiEraseSourceContent.
5757 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
5758 (tui_show_source_content): Rename tuiShowSourceContent.
5759 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
5760 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
5761 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
5762 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
5763 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
5764 (tui_update_exec_info): Rename tuiUpdateExecInfo.
5765 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
5766 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
5767 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
5768 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
5769 (struct tui_win_info): Declare.
5770 * tui/tui-stack.c: Update references.
5771 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
5772 * tui/tui-win.c, tui/tui-source.c: Ditto.
5773 * tui/tui.c, tui/tui-disasm.c: Ditto.
5774
9fbfb822
MK
57752004-02-06 Mark Kettenis <kettenis@gnu.org>
5776
5777 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
5778 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
5779
03cebad2
MK
57802004-02-05 Mark Kettenis <kettenis@gnu.org>
5781
5782 * infrun.c (handle_inferior_event): Allow for breakpoint
5783 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
5784 and SIGEMT. Update comments.
5785 * NEWS (Revised SPARC target): Mention support for non-executable
5786 stack.
5787
290281b1
MK
57882004-02-04 Mark Kettenis <kettenis@gnu.org>
5789
5790 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
5791 * inftarg.c: Update copyright year.
5792 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
5793 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
5794 (sparc_xfer_wcookie): New function.
5795 * sparc-tdep.c (sparc_fetch_wcookie): New function.
5796 * Makefile.in (sparc-nat.o): Update dependencies.
5797 * config/sparc/nm-nbsd.h: Include "target.h".
5798 (NATIVE_XFER_WCOOKIE): New define.
5799 (sparc_xfer_wcookie): New prototype.
5800
212161df
AC
58012004-02-04 Andrew Cagney <cagney@redhat.com>
5802
5803 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
5804 SYSCALL_TRAP function.
5805 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
5806
6e4c6c91
DJ
58072004-02-04 Andrew Cagney <cagney@redhat.com>
5808 Daniel Jacobowitz <drow@mvista.com>
5809
5810 * objfiles.h: Delete comments refering to inside_entry_func and
5811 DEPRECATED_FRAME_CHAIN_VALID.
5812 * defs.h (inside_entry_func): Update prototype..
5813 * blockframe.c (inside_entry_func): Rename to
5814 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
5815 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
5816
cae688ec
JJ
58172004-02-03 Jeff Johnston <jjohnstn@redhat.com>
5818
5819 * breakpoint.c (struct captured_parse_breakpoint_args): Move
5820 outside of #ifdef SOLIB_ADD region.
5821 (do_restore_lang_radix_cleanup): Ditto.
5822 (resolve_pending_breakpoint): Ditto.
5823
19217676
AC
58242004-02-03 Andrew Cagney <cagney@redhat.com>
5825
5826 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
5827 (process_note_abi_tag_sections): Delete unused function.
5828 (ia64_read_fp): Delete unused function.
5829 (gdbarch_extract_struct_value_address): Delete declaration.
5830
876753be
AC
58312004-02-02 Andrew Cagney <cagney@redhat.com>
5832
5833 * vax-tdep.c (vax_frame_chain): Delete call to
5834 deprecated_inside_entry_file.
5835 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
5836
d4f10bf2
MK
58372004-02-02 Mark Kettenis <kettenis@gnu.org>
5838
5839 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
5840 column that's "empty" or "same value" when eliminating REG_RA
5841 rules.
5842
cae688ec
JJ
58432004-02-02 Jeff Johnston <jjohnstn@redhat.com>
5844
5845 * NEWS: Add information about new pending breakpoint support.
5846
0101ce28
JJ
58472004-02-02 Jeff Johnston <jjohnstn@redhat.com>
5848
5849 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
5850 and pending fields for pending breakpoint support.
5851 * breakpoint.c (breakpoint_enabled): Add check for not pending.
5852 (condition_command): Only parse condition if not a pending
5853 breakpoint.
5854 (print_one_breakpoint): Add support for pending breakpoints.
5855 (describe_other_breakpoints): Add checks to verify we are not
5856 dealing with pending breakpoints.
5857 (check_duplicates): Don't check pending breakpoints.
5858 (set_raw_breakpoint): Initialize pending flag.
5859 (do_restore_lang_radix_cleanup): New cleanup routine.
5860 (resolve_pending_breakpoint): New function.
5861 (re_enable_breakpoints_in_shlibs): Try and resolve any
5862 pending breakpoints via resolve_pending_breakpoint.
5863 (mention): Add pending breakpoint support.
5864 (parse_breakpoint_sals): Add new parameter to pass to
5865 decode_line_1 to indicate silent errors when files or functions
5866 are not found. Change all callers.
5867 (do_captured_parse_breakpoint): New function.
5868 (break_command_1): Change prototype to return an rc value and to
5869 take an optional pending breakpoint pointer. Support creating
5870 a pending breakpoint if a "not found" form of error occurs when
5871 parsing the breakpoint. Also support resolving an existing pending
5872 breakpoint and be silent if the resolution fails.
5873 (create_breakpoints): Change prototype to take pending breakpoint
5874 pointer. When resolving a pending breakpoint, use the new pointer
5875 to provide a conditional or commands added by the end-user.
5876 (delete_breakpoint): Add appropriate check for pending.
5877 (breakpoint_re_set_one): Ditto.
5878 (do_enable_breakpoint): Ditto.
5879
8d577d32
DC
58802004-02-02 David Carlton <carlton@kealia.com>
5881
5882 * valops.c (enum oload_classification): New.
5883 (find_overload_match): Break implementation into separate
5884 functions; delete #if 0'd code; look for symbols within
5885 namespaces.
5886 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
5887 (find_oload_champ,oload_method_static,classify_oload_match): New.
5888 * cp-support.h: Add declaration for cp_func_name; update
5889 declaration for make_symbol_overload_list.
5890 * cp-support.c (cp_func_name): New.
5891 (overload_list_add_symbol): Fix comment, use
5892 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
5893 (make_symbol_overload_list): Take a function name and a namespace
5894 instead of a symbol; change implementation.
5895 (make_symbol_overload_list_using): New.
5896 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
5897
22e8e3c7
FF
58982004-02-02 Fred Fish <fnf@redhat.com>
5899
5900 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 5901 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
5902 * remote-sim.c (gdb_os_write_stderr): Write output to
5903 gdb_stdtargerr stream instead of gdb_stdtarg stream.
5904 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 5905 gdb_stderr stream and update copyright years.
22e8e3c7 5906
6b753f60
DJ
59072004-02-01 Daniel Jacobowitz <drow@mvista.com>
5908
5909 * Makefile.in (mips-linux-nat.o): Update dependencies.
5910 * mips-linux-nat.c: Include mips-tdep.h.
5911
59122004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
5913
5914 * sol-thread.c (sol_thread_xfer_partial): New function.
5915 (init_sol_thread_ops): Use that for to_xfer_partial hook.
5916 (init_sol_core_ops): Likewise.
5917
5918 * procfs.c (procfs_xfer_partial): New function.
5919 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
5920 * Makefile.in (procfs.o): Add $(auxv_h) dep.
5921
5922 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
5923 procfs_xfer_auxv function.
5924
5925 * procfs.c (procfs_make_note_section): If we can read
5926 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
5927 * linux-proc.c (linux_make_note_section): Likewise.
5928
5929 * auxv.h: New file.
5930 * auxv.c: New file.
5931 * Makefile.in (auxv_h): New variable.
5932 (COMMON_OBS): Add auxv.o here.
5933 (auxv.o): New target.
5934
5935 * corelow.c (core_xfer_partial): New function.
5936 (init_core_ops): Use it for core_ops.to_xfer_partial.
5937
5938 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
5939 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
5940 macro if that is defined.
5941
fa5281d0
DJ
59422004-02-01 Daniel Jacobowitz <drow@mvista.com>
5943
5944 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
5945 and check the specified thread for each breakpoint.
5946 * breakpoint.h (bpstat_stop_status): Update prototype.
5947 * infrun.c (handle_inferior_event): Update calls to
5948 bpstat_stop_status.
5949
26ee262d
DJ
59502004-02-01 Daniel Jacobowitz <drow@mvista.com>
5951
5952 * Makefile.in (cli-cmds.o): Add $(readline_h).
5953
d9b52655
DJ
59542004-02-01 Daniel Jacobowitz <drow@mvista.com>
5955
5956 * cli/cli-cmds.c: Include readline.h.
5957 (complete_command): Pass the start of the last word to
5958 complete_line.
5959
9709f61c
DJ
59602004-01-31 Daniel Jacobowitz <drow@mvista.com>
5961
5962 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
5963 argument, and change first argument to a CORE_ADDR.
5964 * breakpoint.h (bpstat_stop_status): Update prototype.
5965 * infrun.c (adjust_pc_after_break): Add a new comment.
5966 (handle_inferior_event): Update calls to bpstat_stop_status.
5967
4f1280bb
DJ
59682004-01-31 Daniel Jacobowitz <drow@mvista.com>
5969
5970 * breakpoint.h: Update copyright years.
5971
4fa8626c
DJ
59722004-01-31 Daniel Jacobowitz <drow@mvista.com>
5973
5974 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
5975 (bpstat_stop_status): Don't decrement PC.
5976 * breakpoint.h (software_breakpoint_inserted_here_p): Add
5977 prototype.
5978 * infrun.c (adjust_pc_after_break): New function.
5979 (handle_inferior_event): Call it, early. Remove later references
5980 to DECR_PC_AFTER_BREAK.
5981 (normal_stop): Add commentary.
5982
fad0733a
DJ
59832004-01-31 Daniel Jacobowitz <drow@mvista.com>
5984
5985 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
5986 2004-01-27 double-free fix.
5987
42cdca6c
MK
59882004-01-31 Mark Kettenis <kettenis@gnu.org>
5989
5990 * sparc-tdep.c (sparc_fetch_wcookie): New function.
5991 (sparc32_frame_prev_register): Handle StackGhost.
5992 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
5993
932d5416
RM
59942004-01-29 Roland McGrath <roland@redhat.com>
5995
5996 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
5997 * configure: Regenerated.
5998
5999 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
6000 * Makefile.in (procfs.o): Add dep.
6001
47d3492a
AC
60022004-01-28 Andrew Cagney <cagney@redhat.com>
6003
6004 * tui/tui-stack.h: Update copyright.
6005 (struct frame_info): Add opaque declaration.
6006 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
6007 (tui_show_locator_content): Rename tuiShowLocatorContent.
6008 (tui_show_frame_info): Rename tuiShowFrameInfo.
6009 * tui/tui-stack.c: Update copyright. Update references.
6010 * tui/tui-winsource.c: Update references.
6011 * tui/tui-win.c: Update references.
6012 * tui/tui-layout.c: Update references.
6013 * tui/tui-hooks.c: Update copyright, update references.
6014 * tui/tui.c: Update copyright, update references.
6015 * tui/tui-disasm.c: Update references.
6016
5d51ca54
DC
60172004-01-28 David Carlton <carlton@kealia.com>
6018
6019 * dwarf2read.c (add_partial_structure): Use demangled name if
6020 namespace equals "".
6021
086ed43d
JB
60222004-01-27 Jim Blandy <jimb@redhat.com>
6023
6024 Clean up misapplied patch:
6025 * dwarf2read.c (determine_prefix): Change one of the two forward
6026 declarations for 'determine_prefix_aux' to a declaration for this.
6027 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
6028 argument to 'die_specification'.
6029
2a35147e
JB
6030 * dwarf2read.c (read_func_scope): Re-indent comment.
6031
a355c7de 60322004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 6033
a355c7de
AC
6034 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
6035 b->exp to NULL after freeing so that error during re-parsing or
6036 evaluation of expressions associated with breakpoint don't
6037 eventually lead to re-freeing of storage.
6038 Committed by Andrew Cagney.
6039
63ff5125
AC
60402004-01-27 Andrew Cagney <cagney@redhat.com>
6041
6042 * source.c (ambiguous_line_spec): Delete undefined declaration.
6043 * m32r-rom.c (m32r_set_board_address): Delete unused function.
6044 (m32r_set_server_address, m32r_set_download_path): Ditto.
6045 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
6046
e142c38c
DJ
60472004-01-27 Daniel Jacobowitz <drow@mvista.com>
6048
6049 * dwarf2read.c: Update calls to changed and renamed functions, and
6050 references to moved variables.
6051
6052 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
6053 language, language_defn, list_in_scope, and ftypes members.
6054 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
6055 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
6056 (baseaddr): Remove globals.
6057
6058 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
6059 (set_cu_language, die_is_declaration, die_specification)
6060 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
6061 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
6062 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
6063 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
6064
6065 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
6066 cu.list_in_scope. Don't initialize cu_header_offset.
6067 (add_partial_symbol): Add local baseaddr.
6068 (psymtab_to_symtab_1): Add local baseaddr. Use
6069 objfile->section_offsets for consistency. Don't initialize
6070 cu_header_offset; do initialize cu.header.offset and
6071 cu.list_in_scope.
6072 (read_file_scope, read_func_scope, read_lexical_block_scope)
6073 (dwarf_decode_lines, new_symbol): Add local baseaddr.
6074
c6e06ede
MC
60752004-01-27 Michael Chastain <mec.gnu@mindspring.com>
6076
fb328ecc 6077 * PROBLEMS: Add gdb/1516.
c6e06ede 6078
48184fd4
AC
60792003-12-29 Robert Millan <robertmh@gnu.org>
6080
6081 Patch committed by Andrw Cagney.
6082 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
6083 * configure.tgt: Match knetbsd*-gnu.
6084
c1321b30
AC
60852004-01-26 Andrew Cagney <cagney@redhat.com>
6086
f3699be3
AC
6087 * breakpoint.c (catch_command_1): Delete #ifdef code.
6088 (catch_fork_command_1): Delete #ifdef wrapper.
6089 (catch_exec_command_1): Ditto.
6090 (catch_load_command_1): Ditto.
6091 (catch_unload_command_1): Ditto.
6092
c1321b30
AC
6093 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
6094 (catch_breakpoint): Delete #if0ed function.
6095 (disable_catch_breakpoint): Ditto.
6096 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
6097 (disable_catch, enable_catch, delete_catch): Ditto.
6098
b4501125
AC
60992004-01-26 Andrew Cagney <cagney@redhat.com>
6100
6101 * remote.c (echo_check, quit_flag): Delete variables.
6102 (cisco_kernel_mode): Delete variable.
6103 (minitelnet_return, tty_input, escape_count): Delete variables.
6104 (remote_cisco_mode): Delete variable.
6105 (remote_cisco_open, remote_cisco_close): Delete function.
6106 (remote_cisco_mourn, remote_cisco_wait): Delete function.
6107 (init_remote_cisco_ops): Delete function.
6108 (_initialize_remote): Do not install "remote cisco" code.
6109 (read_frame): Delete cisco specific code.
6110 (remote_info_process): Delete function.
6111 (remote_wait): Delete cisco specific code.
6112 (remote_cisco_section_offsets): Delete function.
6113 (remote_cisco_objfile_relocate): Delete function.
6114 (remote_async_wait): Delete cisco specific code.
6115 (minitelnet, readtty, readsocket): Delete function.
6116
74055713
AC
61172004-01-26 Andrew Cagney <cagney@redhat.com>
6118
6119 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
6120 comments mentioning extract_returned_value_address.
6121 * infcmd.c (print_return_value): Update. Add comments on
6122 extract_returned_value_address.
6123 * stack.c (return_command): Add comments on
6124 extract_returned_value_address.
6125 * values.c: Update comment.
6126 * m32r-tdep.c: Update comment.
6127 * sparc-tdep.c: Update comment.
6128 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
6129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6130 * sh64-tdep.c (sh64_gdbarch_init): Update.
6131 * sh-tdep.c (sh_gdbarch_init): Update.
6132 * s390-tdep.c (s390_gdbarch_init): Update.
6133 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6134 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6135 * m68k-tdep.c (m68k_gdbarch_init): Update.
6136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6137 * m32r-tdep.c (m32r_gdbarch_init): Update.
6138 * ia64-tdep.c (ia64_gdbarch_init): Update.
6139 * h8300-tdep.c (h8300_gdbarch_init): Update.
6140 * frv-tdep.c (frv_gdbarch_init): Update.
6141 * arm-tdep.c (arm_gdbarch_init): Update.
6142 * alpha-tdep.c (alpha_gdbarch_init): Update.
6143
a67af2b9
AC
61442004-01-26 Andrew Cagney <cagney@redhat.com>
6145
6146 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
6147 SYMBOL_LOCATION_FUNCS
6148 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
6149 "struct symbol_ops".
6150 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
6151 type to "struct symbol_ops".
6152 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
6153 (struct symbol): Replace ".aux_value.loc.funcs" and
6154 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
6155 (SYMBOL_OBJFILE): Delete macro.
6156 (SYMBOL_LOCATION_FUNCS): Delete macro.
6157 (SYMBOL_LOCATION_BATON): Update.
6158 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
6159 intead of SYMBOL_LOCATION_FUNCS.
6160 * ax-gdb.c (gen_var_ref): Ditto.
6161 * printcmd.c (address_info): Ditto.
6162 * findvar.c (read_var_value): Ditto.
6163 (symbol_read_needs_frame): Ditto.
6164
c034e007
AC
61652004-01-26 Andrew Cagney <cagney@redhat.com>
6166
6167 * dwarf2read.c (read_func_scope): Document frame-base hack.
6168
bb472c1e
MK
61692004-01-25 Mark Kettenis <kettenis@gnu.org>
6170
6171 * infcmd.c (print_return_value): Plug memory leak; delete
6172 ui_stream object. Rename argument `structure_return' to
6173 `struct_return'.
6174
c8e737d5
MK
61752004-01-25 Mark Kettenis <kettenis@gnu.org>
6176
f941662f
MK
6177 * infcmd.c (print_return_value): Wrap long lines.
6178 (finish_command_continuation, finish_command): Remove unused
6179 variable `funcaddr'. Fix some coding-standards problems.
6180
c558d81a 6181 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 6182 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
6183 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
6184 TDEP->fpregset to zero.
6185
bf1e5861 6186 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
6187 floating-point registers for traditional NetBSD core files.
6188 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
6189 TDEP->sizeof_fpregset here.
6190
4c72d57a
MK
61912004-01-25 Mark Kettenis <kettenis@gnu.org>
6192
566626fa
MK
6193 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
6194 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
6195 function with code split out from
6196 sparc32nbsd_sigcontext_frame_cache.
6197 (sparc32nbsd_sigcontext_frame_cache): Use
6198 sparc32nbsd_sigcontext_saved_regs.
6199 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
6200 OpenBSD.
6201 * sparcobsd-tdep.c: New file.
6202 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
6203 (sparcobsd-tdep.o): New dependency.
6204 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
6205 * config/sparc/obsd.mt: New file.
6206
4c72d57a
MK
6207 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
6208 TDEP->fpregset to be initialized to enable core file register
6209 sets.
6210
7e5e9f88
MK
62112004-01-24 Mark Kettenis <kettenis@gnu.org>
6212
f0f207fd 6213 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
6214 Add opaque declarations.
6215 (sparc64nbsd_sigcontext_saved_regs): New prototype.
6216 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
6217 function with code split out from
6218 sparc64nbsd_sigcontext_frame_cache.
6219 (sparc64nbsd_sigcontext_frame_cache): Use
6220 sparc64nbsd_sigcontext_saved_regs.
6221 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
6222 OpenBSD.
6223 * sparc64obsd-tdep.c: New file.
6224 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
6225 (sparc64obsd-tdep.o): New dependency.
6226 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
6227 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
6228 * config/sparc/obsd64.mt: New file.
6229
690668cc
MK
6230 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
6231 read the instruction at PC.
6232
7e5e9f88
MK
6233 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
6234 value of GDB_OSABI_DEFAULT.
6235 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
6236 instead of GDB_OSABI_NETBSD_AOUT.
6237
68b6dce9
NR
62382004-01-24 Nick Roberts <nick@nick.uklinux.net>
6239
6240 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
6241 copyright.
6242
080ce8c0
AC
62432004-01-23 Andrew Cagney <cagney@redhat.com>
6244
6245 * printcmd.c (display_command): Replace tui_set_display call with
6246 tui_set_layout_for_display_command.
6247 * tui/tui.h (enum tui_win_type): Define.
6248 (tui_set_layout): Delete declaration.
6249 (tui_set_layout_for_display_command): Rename set_tui_layout.
6250 * tui/tui-data.h (enum tui_layout_type): Define.
6251 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
6252 "tui.h".
6253 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
6254 (tui_default_win_height): Rename tuiDefaultWinHeight.
6255 (tui_default_win_viewport_height): Rename
6256 tuiDefaultWinViewportHeight.
6257 (tui_set_layout): RenametuiSetLayout.
6258 * tui/tui-layout.c: Update references.
6259 * tui/tui.c: Update references.
6260 * tui/tui-disasm.c: Update references.
6261
b368761e
DC
62622004-01-23 David Carlton <carlton@kealia.com>
6263
6264 Partial workaround for PR c++/1511:
6265 * cp-namespace.c: Include frame.h.
6266 (cp_lookup_transparent_type): New
6267 (cp_lookup_transparent_type_loop): New.
6268 * cp-support.h: Declare cp_lookup_transparent_type.
6269 * symtab.c (basic_lookup_transparent_type): Renamed from
6270 lookup_transparent_type.
6271 (lookup_transparent_type): Replace old body by a call to
6272 current_language->la_lookup_transparent_type.
6273 * symtab.h: Update copyright. Declare
6274 basic_lookup_transparent_type.
6275 * language.h: Update copyright.
6276 (struct language_defn): Add la_lookup_transparent_type.
6277 * language.c: Update copyright.
6278 (unknown_language_defn): Add basic_lookup_transparent_type.
6279 (auto_language_defn): Add basic_lookup_transparent_type.
6280 (local_language_defn): Add basic_lookup_transparent_type.
6281 * ada-lang.c: Update copyright.
6282 (ada_language_defn): Add basic_lookup_transparent_type.
6283 * c-lang.c: Update copyright.
6284 (c_language_defn): Add basic_lookup_transparent_type.
6285 (cplus_language_defn): Add basic_lookup_transparent_type.
6286 (asm_language_defn): Add basic_lookup_transparent_type.
6287 (minimal_language_defn): Add basic_lookup_transparent_type.
6288 * f-lang.c: Update copyright.
6289 (f_language_defn): Add basic_lookup_transparent_type.
6290 * jv-lang.c: Update copyright.
6291 (java_language_defn): Add basic_lookup_transparent_type.
6292 * m2-lang.c: Update copyright.
6293 (m2_language_defn): Add basic_lookup_transparent_type.
6294 * objc-lang.c: Update copyright.
6295 (objc_language_defn): Add basic_lookup_transparent_type.
6296 * p-lang.c: Update copyright.
6297 (p_language_defn): Add basic_lookup_transparent_type.
6298 * scm-lang.c: Update copyright.
6299 (scm_language_defn): Add basic_lookup_transparent_type.
6300 * Makefile.in (cp-namespace.o): Depend on frame.h.
6301
fdde2d81
DC
63022004-01-23 David Carlton <carlton@kealia.com>
6303
6304 Patch for PR c++/1520:
6305 * dwarf2read.c (read_func_scope): Set processing_current_prefix
6306 properly if we have a specification die.
6307 (determine_prefix_aux): Rename from determine_prefix.
6308 (determine_prefix): Like the old determine_prefix, but never
6309 returns NULL.
6310
5b828b6b
TR
63112004-01-23 Theodore A. Roth <troth@openavr.org>
6312
6313 * avr-tdep.c: Update copyright.
6314 (avr_iaddr_p): Delete unused function.
6315 (avr_saddr_p): Delete unused function.
6316
a1b8c067
DC
63172004-01-23 David Carlton <carlton@kealia.com>
6318
6319 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
6320 Fix for PR symtab/1534.
6321
f2cab569
MK
63222004-01-23 Mark Kettenis <kettenis@gnu.org>
6323
6324 * NEWS (New native configurations): Mention OpenBSD/sparc and
6325 OpenBSD/sparc64.
6326 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
6327 * configure.host: Likewise.
6328 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
6329 handler for OpenBSD.
6330 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
6331
642d8300
MK
63322004-01-22 Mark Kettenis <kettenis@gnu.org>
6333
89aac506
MK
6334 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
6335 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
6336
36662fde
MK
6337 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
6338 * cli/cli-cmds.c (shell_escape): Likewise.
6339
642d8300
MK
6340 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
6341 OpenBSD .note.openbsd.ident sections.
6342
fae299cd
DC
63432004-01-22 David Carlton <carlton@kealia.com>
6344
6345 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
6346 get_scope_pc_bounds.
6347 (read_file_scope): Ditto.
6348 (get_scope_pc_bounds): New function, produced by extracting code
6349 from the above two functions, consolidating it, and adding support
6350 for DW_TAG_namespace.
6351
a49d618c
MK
63522004-01-22 Mark Kettenis <kettenis@gnu.org>
6353
6354 * osabi.c (MAX_NOTESZ): New define.
6355 (check_note): New function.
6356 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
6357 check_note.
6358
fe61caab
RM
63592004-01-21 Roland McGrath <roland@redhat.com>
6360
6361 * MAINTAINERS (write after approval): Add myself.
6362
ec145965
EZ
63632004-01-21 Eli Zaretskii <eliz@gnu.org>
6364
6365 * utils.c (init_page_info): Move declarations of `rows' and
6366 `cols' before the __GO32__-specific code. Move the closing brace
6367 outside the #ifdef __GO32__..#endif block.
6368 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
6369
877522db
PB
63702004-01-21 Paul Brook <paul@codesourcery.com>
6371
6372 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
6373 BPSTAT_WHAT_CHECK_SHLIBS.
6374
dbf5be1c
PB
63752004-01-21 Paul Brook <paul@codesourcery.com>
6376
6377 * MAINTAINERS: Add myself to write-after-approval.
6378
81f08b92
AC
63792004-01-20 Andrew Cagney <cagney@redhat.com>
6380
5a1efed7
AC
6381 * ax-gdb.c (print_axs_value): Delete unused function.
6382 * jv-lang.c (java_lookup_type): Delete unused function.
6383 * cli/cli-dump.c (dump_filetype): Delete unused function.
6384 * remote-mips.c (remote_mips_insert_hw_breakpoint)
6385 (remote_mips_remove_hw_breakpoint): Delete unused functions.
6386 (mips_getstring): Delete unused function.
6387 (pmon_insert_breakpoint): Delete #if0ed function.
6388 (PMON_MAX_BP): Delete #if0ed MACRO.
6389 (mips_pmon_bp_info): Delete #if0ed variable.
6390 (pmon_remove_breakpoint): Delete #if0ed function.
6391 * monitor.c (monitor_write_even_block): Delete unused function.
6392 (monitor_write_memory_block): Delete #if0ed code.
6393 * dink32-rom.c (dink32_load): Delete unused function.
6394 (_initialize_dink32_rom): Delete #if0ed code.
6395 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
6396
b0a30fce
AC
6397 * tui/tui-command.c: Update references.
6398 * tui/tui-io.c: Update references.
6399 * tui/tui-command.h: Update copyright.
6400 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
6401
81f08b92
AC
6402 * source.c (ambiguous_line_spec): Delete never-defined function.
6403 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
6404 * gdbtypes.c (add_name, add_mangled_type): Ditto.
6405 * cli/cli-cmds.c (validate_comname): Ditto.
6406
65f05602
AC
6407 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
6408 "tui-data.h".
6409 (tui_set_disassem_content): Rename tuiSetDisassemContent.
6410 (tui_show_disassem): Rename tuiShowDisassem.
6411 (tui_show_disassem_and_update_source): Rename
6412 tuiVerticalDisassemScroll.
6413 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
6414 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
6415 * tui/tui.h: Update copyright.
6416 (enum tui_status): Define.
6417 * tui/tui-data.h (enum tui_scroll_direction): Define.
6418 * tui/tui-disasm.c: Update copyright. Update references.
6419 * tui/tui-winsource.c: Update copyright. Update references.
6420 * tui/tui-win.c: Update references.
6421 * tui/tui-layout.c: Update references.
6422
6bb0384f
AC
64232004-01-20 Andrew Cagney <cagney@redhat.com>
6424
6425 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
6426 sym2 to start of block.
6427
9175c9a3
MC
64282004-01-19 Michael Chastain <mec.gnu@mindspring.com>
6429
6430 * MAINTAINERS: Delete mmalloc.
6431 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
6432 * NEWS: Mention removal of --with-malloc.
6433 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
6434 * config.in: Regenerate.
6435 * configure: Regenerate.
6bb0384f
AC
6436 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
6437 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
6438 * gdbinit.in: Remove mmalloc.
6439 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
6440 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
6441 * config/i386/go32.mh: Likewise.
6442 * config/i386/interix.mh: Likewise.
6443 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
6444
4fcef00a
JJ
64452004-01-19 Jeff Johnston <jjohnstn@redhat.com>
6446
6447 * linespec.c (decode_variable, symtab_from_filename): Call
6448 error_silent with error message instead of throwing an exception
6449 directly.
6450 * defs.h (error_silent, error_output_message): Add prototypes.
6451 (catch_exceptions_with_msg): Ditto.
6452 * utils.c (error_silent, error_output_message): New functions.
6453 * top.c (catch_exceptions_with_msg): New function.
6454
8e94b928
NR
64552004-01-20 Nick Roberts <nick@nick.uklinux.net>
6456
6457 * mi/mi-cmds.h (enum print_values): Add definition.
6458
6459 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
6460 type and value for simple data types and just the name and type
6461 for complex ones, if required.
6462
6463 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
6464 children, if required.
6465
a02d6af8
KB
64662004-01-19 Kevin Buettner <kevinb@redhat.com>
6467
6468 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
6469 unused declarations.
6470
78a4a9b9
AC
64712004-01-19 Andrew Cagney <cagney@redhat.com>
6472
6473 * top.h (mapped_symbol_files): Delete declaration.
6474 * main.c (captured_main): Delete option "m" and "mapped".
6475 * objfiles.c (mapped_symbol_files): Delete variable.
6476 * symfile.c (symbol_file_command): Delete mmap code.
6477 (symbol_file_add_with_addrs_or_offsets): Ditto.
6478 (add_symbol_file_command, reread_separate_symbols): Ditto.
6479 * objfiles.h (OBJF_MAPPED): Delete.
6480 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
6481 (free_objfile) [USE_MMALLOC]: Ditto.
6482 (open_existing_mapped_file): Delete function.
6483 (open_mapped_file): Delete function.
6484 (map_to_file): Delete function.
6485
2dbd5e30
KB
64862004-01-19 Kevin Buettner <kevinb@redhat.com>
6487
6488 * infrun.c (step_into_function): Account for possible breakpoint
6489 adjustment when computing ``stop_func_start''.
6490
437b434f
KB
64912004-01-19 Kevin Buettner <kevinb@redhat.com>
6492
6493 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
6494 the region size against the size of a pointer, not the size of
6495 a register as given by DEPRECATED_REGISTER_SIZE.
6496
55fb0713
AC
64972004-01-19 Andrew Cagney <cagney@redhat.com>
6498
6499 * tui/tui-regs.h: Include "tui-data.h".
6500 (tuiFirstRegElementNoInLine): Delete declaration.
6501 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
6502 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
6503 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
6504 (tui_calculate_regs_column_count): Rename
6505 tuiCalculateRegsColumnCount.
6506 (tui_check_register_values): Rename tuiCheckRegisterValues.
6507 (tui_show_registers): Rename tuiShowRegisters.
6508 (tui_display_registers_from_line): Rename
6509 tuiDisplayRegistersFromLine.
6510 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
6511 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
6512 (tui_first_reg_element_no_inline): Rename
6513 tuiFirstRegElementNoInLine.
6514 * tui/tui-data.h: Update copyright.
6515 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
6516 * tui/tui-windata.c: Update copyright, update references.
6517 * tui/tui-regs.c: Update copyright, update references.
6518 * tui/tui-win.c: Update copyright, update references.
6519 * tui/tui-layout.c: Update copyright, update references.
fe61caab 6520
cebe9500
AC
65212004-01-18 Andrew Cagney <cagney@redhat.com>
6522
bcdf1568
AC
6523 * tui/tui-io.c: Update copyright.
6524 (key_is_end_sequence, key_is_backspace): New functions.
6525 (key_is_command_char, key_is_start_sequence): New function.
6526 (tui_getc): Update references.
6527 * tui/tui-io.h: Update copyright.
6528 (m_tuiStartNewLine): Delete macro.
6529 (m_isBackspace, m_isDeleteChar): Delete macros.
6530 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
6531 (m_isNextPage, m_isPrevPage): Delete macros.
6532 (m_isLeftArrow, m_isRightArrow): Delete macros.
6533 (m_isXdbStyleCommandChar): Delete macro.
6534 (key_is_start_sequence): Declare, replace m_isStartSequence.
6535 (key_is_end_sequence): Declare, replace m_isEndSequence.
6536 (key_is_backspace): Declare ,replace m_isBackspace.
6537 (key_is_command_char): Declare, replace m_isCommandChar.
6538 * tui/tui-command.c: Update copyright.
6539 (tuiDispatchCtrlChar): Update references.
6540
130d87e6
AC
6541 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
6542 tuiSourceWin.h.
6543
d7b2e967
AC
6544 * tui/tui-command.c: Rename tui/tuiCommand.c.
6545 * tui/tui-command.h: Rename tui/tuiCommand.h.
6546 * tui/tui-data.c: Rename tui/tuiData.c.
6547 * tui/tui-data.h: Rename tui/tuiData.h.
6548 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
6549 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
6550 * tui/tui-io.c: Rename tui/tuiIO.c.
6551 * tui/tui-io.h: Rename tui/tuiIO.h.
6552 * tui/tui-layout.c: Rename tui/tuiLayout.c.
6553 * tui/tui-layout.h: Rename tui/tuiLayout.h.
6554 * tui/tui-regs.c: Rename tui/tuiRegs.c.
6555 * tui/tui-regs.h: Rename tui/tuiRegs.h.
6556 * tui/tui-source.c: Rename tui/tuiSource.c.
6557 * tui/tui-source.h: Rename tui/tuiSource.h.
6558 * tui/tui-stack.c: Rename tui/tuiStack.c.
6559 * tui/tui-stack.h: Rename tui/tuiStack.h.
6560 * tui/tui-win.c: Rename tui/tuiWin.c.
6561 * tui/tui-win.h: Rename tui/tuiWin.h.
6562 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
6563 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
6564 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
6565 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
6566 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
6567 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
6568 * tui/tui-file.c: Update includes.
6569 * tui/tui-hooks.c: Update includes.
6570 * tui/tui-interp.c: Update includes.
6571 * tui/tui.c: Update includes.
6572 * Makefile.in: Update all tui/ dependencies.
6573 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
6574
b2100910
AC
6575 * Makefile.in: Update copyright. Update dependencies.
6576
cebe9500
AC
6577 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
6578 problem.
6579
c6f0559b
AC
65802004-01-18 Andrew Cagney <cagney@redhat.com>
6581
43e9390b
AC
6582 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
6583 instead of register_gdbarch_init.
6584
c6f0559b
AC
6585 * remote-sds.c (tohex): Delete unused function. Update copyright.
6586 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
6587 * v850-tdep.c (v850_register_virtual_size): Ditto.
6588 * target.c (normal_target_post_startup_inferior): Ditto.
6589 * source.c (ambiguous_line_spec): Ditto.
6590 * remote.c (adapt_remote_get_threadinfo): Ditto.
6591 * mi/mi-out.c (out_field_fmt): Ditto.
6592 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
6593 (output_control_change_notification): Ditto.
6594 * m68k-tdep.c (m68k_register_byte): Ditto.
6595 (m68k_remote_breakpoint_from_pc): Ditto.
6596 * ui-out.c (init_ui_out_state): Delete unused declaration.
6597 * stabsread.c (search_value): Ditto.
6598 * mi/mi-cmd-env.c (env_cli_command): Ditto.
6599 * maint.c (print_section_table): Ditto.
6600 * infrun.c (set_follow_fork_mode_command): Ditto.
6601
a8504492
MK
66022004-01-18 Mark Kettenis <kettenis@gnu.org>
6603
6604 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
6605 DW_CFA_def_cfa_exporession. Add support for
6606 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
6607 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
6608
0bd8997e
AC
66092004-01-18 Andrew Cagney <cagney@redhat.com>
6610
6611 * ocd.c: Update copyright.
6612 (bdm_read_register_command): Delete unused function.
6613 (_initialize_remote_ocd): Delete commented out reference.
6614 (get_quoted_char, reset_packet): Delete #if0ed function.
6615 (output_packet, put_quoted_char): Delete #if0ed function.
6616 (stu_put_packet, stu_get_packet): Delete #if0ed function.
6617 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
6618 (BDM_BREAKPOINT): Delete #if0ed macro.
6619 (remote_timeout): Delete #if0ed variable.
6620
31bb40e4
MK
66212004-01-18 Mark Kettenis <kettenis@gnu.org>
6622
6623 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
6624 (core-sol2.o): Remove dependency.
6625 * core-sol2.c: Remove file.
6626
887432a5
AC
66272004-01-17 Andrew Cagney <cagney@redhat.com>
6628
6629 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
6630 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
6631 enums.
6632
29182b13
DJ
66332004-01-17 Daniel Jacobowitz <drow@mvista.com>
6634
6635 * remote.c: Update copyright years.
6636
2963ee1d
DJ
66372004-01-17 Daniel Jacobowitz <drow@mvista.com>
6638
6639 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
6640
79d45cd4
AC
66412004-01-17 Andrew Cagney <cagney@redhat.com>
6642
ee300cd4
AC
6643 * mdebugread.c: Update copyright.
6644 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
6645 (parse_type, parse_procedure): Ditto.
6646 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
6647
fcacc9c2
AC
6648 * cris-tdep.c (cris_store_struct_return): Put back accidently
6649 deleted function.
6650
79d45cd4
AC
6651 * gdbarch.sh: Update copyright year.
6652 * gdbarch.h, gdbarch.c: Re-generate.
6653
b263358a
DJ
66542004-01-17 Daniel Jacobowitz <drow@mvista.com>
6655
6656 Suggested by George Anzinger.
6657 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
6658 correct stack offset. Include unknown opcode numbers in the error
6659 message.
6660
931aecf5
AC
66612004-01-17 Andrew Cagney <cagney@redhat.com>
6662
6663 * x86-64-tdep.c (x86_64_init_abi): No need to clear
6664 extract_struct_value_address, i386 does not set it.
6665 * sparc64-tdep.c (sparc64_init_abi): Do not set
6666 extract_struct_value_address, never called.
6667 (sparc64_extract_struct_value_address): Delete function.
6668 * m68hc11-tdep.c: Update copyright.
6669 (m68hc11_gdbarch_init): Delete redundant assignment of
6670 extract_struct_value_address.
6671 * i386-tdep.c: Update copyright.
6672 (i386_gdbarch_init): Do not set extract_struct_value_address,
6673 never called.
6674 (i386_extract_struct_value_address): Delete function.
6675 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
6676 extract_struct_value_address, never called.
6677 (sparc32_extract_struct_value_address): #if 0 function. Add
6678 comments explaining its future.
6679
756fe439
DJ
66802004-01-17 Daniel Jacobowitz <drow@mvista.com>
6681
6682 * arm-tdep.c (arm_write_pc): New function.
6683 (arm_gdbarch_init): Call set_gdbarch_write_pc.
6684
e74f0f02
DJ
66852004-01-17 Daniel Jacobowitz <drow@mvista.com>
6686
6687 * breakpoint.c (must_shift_inst_regs): Delete.
6688 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
6689 and SHIFT_INST_REGS.
6690 * infcmd.c (step_1, step_1_continuation): Delete references to
6691 SHIFT_INST_REGS.
6692 * infrun.c (keep_going): Likewise.
6693 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
6694 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
6695
b6cb9035
AC
66962004-01-17 Andrew Cagney <cagney@redhat.com>
6697
444a1e2e
AC
6698 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6699 * gdbarch.h, gdbarch.c: Re-generate.
6700 * infcmd.c (print_return_value): Delete reference to
6701 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6702
def7e6ed
AC
6703 * cris-tdep.c (cris_gdbarch_init): Do not set
6704 deprecated_extract_struct_value_address.
6705
07be497a
AC
6706 * xstormy16-tdep.c: Update copyright.
6707 (xstormy16_extract_struct_value_address): Update to current
6708 extract struct value address interface.
6709 (xstormy16_gdbarch_init): Set extract_struct_value_address.
6710 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
6711 current extract struct value address interface.
6712 (sh64_gdbarch_init): Set extract_struct_value_address.
6713
6b4d5c91
AC
6714 * cris-tdep.c: Update copyright.
6715 (cris_extract_struct_value_address): Delete function.
6716 (struct_return_address): Delete variable.
6717 (cris_store_struct_return): Do not set struct_return_address.
6718
464e0365
AC
6719 * mcore-tdep.c: Update copyright.
6720 (mcore_extract_struct_value_address): Delete function. Update
6721 comments.
6722 (mcore_gdbarch_init): Update.
6723 * mn10300-tdep.c: Update copyright.
6724 (mn10300_extract_struct_value_address): Delete function.
6725 (mn10300_gdbarch_init): Update.
6726 * v850-tdep.c: Update copyright.
6727 (v850_extract_struct_value_address): Delete.
6728 (v850_gdbarch_init): Update.
6729 * ns32k-tdep.c: Update copyright.
6730 (ns32k_extract_struct_value_address): Delete.
6731 (ns32k_gdbarch_init): Update.
6732 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
6733 (hppa_gdbarch_init): Update.
6734 * vax-tdep.c: Update copyright.
6735 (vax_extract_struct_value_address): Delete.
6736 (vax_gdbarch_init): Update.
6737
afb18d0f
AC
6738 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
6739 * gdbarch.h, gdbarch.c: Re-generate.
6740 * procfs.c (procfs_fetch_registers): Delete reference to
6741 DEPRECATED_NPC_REGNUM.
6742 (procfs_store_registers): Ditto.
6743 * regcache.c (generic_target_write_pc): Simplify.
6744 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
6745
a698f53e
AC
6746 * core-sol2.c (fetch_core_registers): Replace
6747 DEPRECATED_NPC_REGNUM with equivalent tdep value.
6748
adc11376
AC
6749 * hppa-tdep.c: Update copyright year.
6750 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
6751 NPC_REGNUM.
6752 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
6753
b6cb9035
AC
6754 * mips-tdep.c (mips_write_pc): New function.
6755 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
6756 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
6757 (mips_find_saved_regs, mips_software_single_step: Ditto.
6758 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
6759 mips_init_extra_frame_info, mips_pop_frame): Ditto.
6760
6d82d43b
AC
67612004-01-17 Andrew Cagney <cagney@redhat.com>
6762
6763 * mips-tdep.c: Re-indent. Group functions by ABI.
6764
71bd6bd4
AC
67652004-01-17 Andrew Cagney <cagney@redhat.com>
6766
6767 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
6768 * gdbarch.c: Re-generate.
6769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6770 DECR_PC_AFTER_BREAK to zero.
6771 * vax-tdep.c (vax_gdbarch_init): Ditto.
6772 * v850-tdep.c (v850_gdbarch_init): Ditto.
6773 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
6774 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6775 * sh-tdep.c (sh_gdbarch_init): Ditto.
6776 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6777 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6778 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6779 * mips-tdep.c (mips_gdbarch_init): Ditto.
6780 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6782 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
6783 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6784 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6785 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6786 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6787 * frv-tdep.c (frv_gdbarch_init): Ditto.
6788 * cris-tdep.c (cris_gdbarch_init): Ditto.
6789 * avr-tdep.c (avr_gdbarch_init): Ditto.
6790 * arm-tdep.c (arm_gdbarch_init): Ditto.
6791 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
6792
a02abb62
JB
67932004-01-17 J. Brobecker <brobecker@gnat.com>
6794
6795 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
6796 Delete, no longer used.
6797 (read_subrange_type): New function, mostly extracted from
6798 read_array_type().
6799 (read_array_type): Replace extracted code by call to
6800 read_subrange_type().
6801 (dwarf2_get_attr_constant_value): New function.
6802 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
6803 (add_partial_symbol): Likewise.
6804 (process_die): Likewise.
6805 (new_symbol): Likewise.
6806 (read_type_die): Likewise.
6807
cf5b2f1b
AC
68082004-01-16 Andrew Cagney <cagney@redhat.com>
6809
6810 * symfile.c: Update copyright year.
6811 (compare_symbols): Delete unused function.
6812 * stabsread.c: Update copyright year.
6813 (lrs_general_complaint): Delete unused function.
6814 (ref_search_value): Ditto.
6815 (get_substring): Delete declaration.
6816 * sh64-tdep.c: Update copyright year.
6817 (sh64_get_gdb_regnum): Delete unused function.
6818 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
6819 Delete unused function.
6820
d33b9831
MK
68212004-01-17 Mark Kettenis <kettenis@gnu.org>
6822
6823 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
6824 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
6825
7aea86e6
AC
68262004-01-16 Andrew Cagney <cagney@redhat.com>
6827
6828 Changes from Peter Schauer.
6829 * rs6000-tdep.c: Update copyright year.
6830 (rs6000_push_dummy_call): Update the stack pointer before
6831 accessing the corresponding stack region.
6832 * rs6000-nat.c: Update copyright year.
6833 (set_host_arch): Set "info.abfd" to "exec_bfd".
6834
26b0da32
MK
68352004-01-15 Mark Kettenis <kettenis@gnu.org>
6836
6837 * blockframe.c: Update copyright year.
6838 (inside_entry_func): Don't treat a zero PC specially.
6839
86fbe6cc
EZ
68402004-01-14 Elena Zannoni <ezannoni@redhat.com>
6841
6842 * gcore.c (gcore_copy_callback): Use paddr_d to print size
6843 variable.
6844 (gcore_create_callback): Ditto. Skip any memory segment that has
6845 no permissions set.
6846
63d06c5c
DC
68472004-01-14 David Carlton <carlton@kealia.com>
6848
6849 Change symbols for C++ nested types to contain the fully qualified
6850 name, if possible. (At least in the DWARF-2 case.) Partial fix
6851 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
6852 c++/895.
6853 * c-exp.y (qualified_type): Handle types nested within classes.
6854 * cp-namespace.c: Update comments.
6855 (cp_set_block_scope): Delete #if 0.
6856 (cp_lookup_nested_type): Handle types nested within classes.
6857 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
6858 when appropriate.
6859 (add_partial_symbol): Add the name of the enclosing namespace to
6860 types.
6861 (pdi_needs_namespace): New.
6862 (add_partial_namespace): Tweak comment.
6863 (add_partial_structure): New.
6864 (psymtab_to_symtab_1): Initialize processing_current_prefix
6865 here...
6866 (process_die): instead of here.
6867 (read_structure_scope): Try to figure out the name of the class or
6868 namespace that the structure might be defined within.
6869 (read_enumeration): Generate fully-qualified names, if possible.
6870 (read_namespace): Don't set name to NULL.
6871 (die_specification): New.
6872 (new_symbol): Generate fully-qualified names for types.
6873 (read_type_die): Determine appropriate prefix.
6874 (determine_prefix): New.
6875 (typename_concat): New.
6876 (class_name): New.
6877 * valops.c (value_aggregate_elt): Pass NOSIDE to
6878 value_struct_elt_for_reference.
6879 (value_struct_elt_for_reference): Make static, add NOSIDE
6880 parameter, call value_maybe_namespace_elt as a last resort.
6881 (value_namespace_elt): Break out code into
6882 value_maybe_namespace_elt.
6883 (value_maybe_namespace_elt): New.
6884
87783b8b
AC
68852004-01-12 Andrew Cagney <cagney@redhat.com>
6886
6887 * mips-tdep.c (mips_convert_register_p): Handle both raw and
6888 cooked floating-point registers.
6889 (mips_gdbarch_init): Set convert_register_p, register_to_value,
6890 and value_to_register.
6891
6503b91e
AC
68922004-01-13 Andrew Cagney <cagney@redhat.com>
6893
6894 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
6895 * gdbarch.c: Re-generate.
6896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6897 FUNCTION_START_OFFSET.
6898 * v850-tdep.c (v850_gdbarch_init): Ditto.
6899 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
6900 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6901 * sh-tdep.c (sh_gdbarch_init): Ditto.
6902 * s390-tdep.c (s390_gdbarch_init): Ditto.
6903 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6904 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6905 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6906 * mips-tdep.c (mips_gdbarch_init): Ditto.
6907 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6908 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6909 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6910 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
6911 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6912 * i386-tdep.c (i386_gdbarch_init): Ditto.
6913 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6914 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6915 * frv-tdep.c (frv_gdbarch_init): Ditto.
6916 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6917 * cris-tdep.c (cris_gdbarch_init): Ditto.
6918 * avr-tdep.c (avr_gdbarch_init): Ditto.
6919 * arm-tdep.c (arm_gdbarch_init): Ditto.
6920 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6921
ea1dd7bc
DJ
69222004-01-13 Daniel Jacobowitz <drow@mvista.com>
6923
6924 * infrun.c (follow_fork_mode_ask): Remove.
6925 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
6926 (follow_fork): Simplify and remove internal error for
6927 follow_fork_mode_ask.
6928 (_initialize_infrun): Update "set follow-fork-mode" help text.
6929
0f0cffd2
AC
69302004-01-13 Andrew Cagney <cagney@redhat.com>
6931
6932 * configure.in: Update copyright year.
6933 (build_warnings): Add -Wunused-label.
6934 * configure: Re-generate.
6935
de38af99
AC
69362004-01-12 Andrew Cagney <cagney@redhat.com>
6937
954a7fba
AC
6938 * exec.h (exec_ops): Make "extern".
6939
de38af99
AC
6940 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
6941 the function is void.
6942 (mips_pseudo_register_write): Ditto.
6943
1a111ce3
AC
69442004-01-12 Andrew Cagney <cagney@redhat.com>
6945
6946 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
6947 call. Never defined.
6948 * sparc-tdep.h (struct frame_info): Add opaque declaration.
6949 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
6950 (struct sparc_gregset, struct regcache): Ditto.
6951 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
6952
48efe704
AC
69532004-01-12 Andrew Cagney <cagney@redhat.com>
6954
6955 * mi/ChangeLog: Delete file. Renamed to ...
6956 * mi/ChangeLog-1999-2003: New file.
6957 * tui/ChangeLog: Delete file. Renamed to ...
6958 * tui/ChangeLog-1998-2003: New file.
fe61caab 6959
a54124c5
MK
69602004-01-11 Mark Kettenis <kettenis@gnu.org>
6961
2ca62865
MK
6962 * sparc64nbsd-tdep.c: Include "regset.h".
6963 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
6964 Remove variables.
6965 (fetch_core_registers): Remove function.
6966 (sparc64nbsd_core_fns): Remove variable.
6967 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
6968 functions.
6969 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
6970 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
6971 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
6972
ca9d58e9
MK
6973 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
6974 sparc_extract_struct_value_address.
6975 (sparc32_gdbarch_init): Set extract_struct_value_address.
6976 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
6977 function.
6978 (sparc64_init_abi): Set extract_struct_value_address. Don't set
6979 return_value_on_stack.
6980
3cc87ec0
MK
6981 * NEWS: Mention that %cs and %ss have been added to the AMD64
6982 configurations
6983
5bf00f29
MK
6984 * frame.c: Update copyright year.
6985 (get_prev_frame): Improve comment.
6986
4f7ec84e
MK
6987 * sparc64fbsd-tdep.c: Include "regset.h".
6988 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
6989 Remove variables.
6990 (fetch_core_registers): Remove function.
6991 (sparc64fbsd_core_fns): Remove variable.
6992 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
6993 functions.
6994 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
6995 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 6996 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 6997
4e7b0cd3
MK
6998 * sparcnbsd-tdep.c: Include "regset.h".
6999 (fetch_core_registers): Remove function.
7000 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
7001 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
7002 functions.
7003 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
7004 TDEP->fpregset.
46b58ce9 7005 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 7006
a54124c5
MK
7007 * sparc-tdep.h (struct regset): Provide opaque declaration.
7008 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
7009 fpregset and sizeof_fpregset members.
7010 * sparc-tdep.c (struct regset): Provide opaque declaration.
7011 (sparc_regset_from_core_section): New function.
7012 (sparc32_gdbarch_init): Initialize TDEP->gregset,
7013 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
7014 Set regset_from_core_section when appropriate.
7015
29ff87c5
MK
70162004-01-10 Mark Kettenis <kettenis@gnu.org>
7017
79b1ab3d
MK
7018 * x86-64-tdep.c (amd64_non_pod_p): New function.
7019 (amd64_classify_aggregate): Return class memory for non-POD
7020 C++ structure types.
7021
6470d250
MK
7022 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
7023 argument. Use it to reserve a register if necessary.
7024 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
7025 amd64_push_arguments.
7026
562c50c2
MK
7027 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
7028
af233647
MK
7029 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
7030 register numbers in comments.
7031 * x86-64-tdep.h: Update copyright year.
7032 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
7033 Adjust for addition of %cs and %ss.
7034 * amd64fbsd-nat.c: Update copyright year.
7035 (reg_offset): Add register offsets for %cs and %ss.
7036 * amd64fbsd-tdep.c: Update copyright year.
7037 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
7038 (amd64fbsd_sc_reg_offset): Likewise.
7039 * x86-64-linux-nat.c: Update copyright year.
7040 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
7041 and %ss.
7042 * amd64nbsd-nat.c: Update copyright year.
7043 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
7044 * amd64nbsd-tdep.c: Update copyright year.
7045 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
7046 * x86-64-linux-tdep.c: Update copyright year.
7047 (user_to_gdb_regmap): Add mapping for %cs and %ss.
7048 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
7049 * regformats/reg-x86-64.dat: Add %cs and %ss.
7050
29ff87c5
MK
7051 * blockframe.c (inside_entry_func): Reformat. Introduce new local
7052 variables to prevent long lines. Update comments to reflect
7053 reality.
7054
38d518c9
EZ
70552004-01-09 David Carlton <carlton@kealia.com>
7056
7057 Checked in by Elena Zannoni <ezannoni@redhat.com>.
7058 * dwarf2read.c (read_namespace): Pull out name-generating code
7059 into namespace_name. Rename previous_namespace to previous_prefix
7060 and processing_current_namespace to processing_current_prefix..
7061 (namespace_name): New function.
7062 (add_partial_symbol): Substitute uses of pdi->name with
7063 actual_name.
7064 * cp-support.h: Rename processing_current_namespace to
7065 processing_current_prefix.
7066 Update copyright year.
7067 * cp-namespace.c: Rename processing_current_namespace to
7068 processing_current_prefix.
7069 Update copyright year.
fe61caab 7070
1e4728e7
AC
70712004-01-09 Andrew Cagney <cagney@redhat.com>
7072
7073 * jv-valprint.c, ser-unix.c: Add missing copyright years.
7074
c77c642a
MK
70752004-01-09 Mark Kettenis <kettenis@gnu.org>
7076
7077 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
7078 complaining.
7079 (process_one_symbol): Deal with N_PATCH stabs.
7080
b44e9041
EZ
70812004-01-09 Elena Zannoni <ezannoni@redhat.com>
7082
7083 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
7084 ifdeffed code.
7085 Update copyright year.
38d518c9 7086
eccfb640
MC
70872004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7088
7089 * config/pa/tm-hppa.h: Update extern declarations for
7090 hppa32_hpux_frame_saved_pc_in_sigtramp,
7091 hppa32_hpux_frame_base_before_sigtramp, and
7092 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
7093
848c5feb
MC
70942004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7095
7096 * config/pa/tm-hppah.h: Update copyright years.
7097
3cc5d663
AC
70982004-01-08 Andrew Cagney <cagney@redhat.com>
7099
7100 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
7101 (mips_o32_reg_struct_has_addr): Delete function.
7102 (mips_gdbarch_init): Update.
7103 (mips_extract_struct_value_address): Delete function.
7104
bfec0b41
JJ
71052004-01-08 David Mosberger <davidm@hpl.hp.com>
7106
7107 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
7108 reality.
7109
16e109ca
AC
71102004-01-07 Andrew Cagney <cagney@redhat.com>
7111
6214a8a1
AC
7112 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
7113 architecture's elf flags (when available).
7114
8d5838b5
AC
7115 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
7116 FPU to the start, check the MIPS FPU when looking for an old
7117 architecture.
7118 (set_mipsfpu_single_command): Update the architecture.
7119 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
7120
480d3dd2
AC
7121 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
7122 (mips_mask_address_p): Add "tdep" parameter.
7123 (show_mask_address, mips_addr_bits_remove): Update.
7124 (mips_dump_tdep): Update.
7125 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
7126 (MIPS_STACK_ARGSIZE): Delete macro.
7127 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
7128 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
7129 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
7130 (mips_dump_tdep): Update.
7131 (MIPS_SAVED_REGSIZE): Delete macro.
7132 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
7133 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
7134 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
7135 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
7136 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
7137 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
7138 (mips_pop_frame, return_value_location): Update.
7139 (mips_n32n64_return_value, mips_dump_tdep): Update.
7140
ec03c1ac
AC
7141 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
7142 MIPS ABI.
7143
16e109ca
AC
7144 * mips-tdep.c: Update copyright.
7145 (mips_gdbarch_init): Merge two code blocks handling the register
7146 name and number layout.
7147
15255275
MS
71482004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
7149
7150 * tracepoint.c (validate_actionline): Fix segv at EOF
7151
9f9057da
MC
71522004-01-07 Michael Chastain <mec.gnu@mindspring.com>
7153
7154 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
7155 properly for static fields.
7156
0127c0d3 71572004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 7158 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
7159
7160 * disasm.c: Update copyright to include 2004.
7161 (do_mixed_source_and_assembly): For uiout asm list
7162 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 7163 NULL and do so prior to loop. Only reset when we close off
0127c0d3 7164 the tuple/list. Move check for whether to close off the
fe61caab 7165 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
7166 on each loop iteration.
7167
5269965e
AC
71682004-01-05 Andrew Cagney <cagney@redhat.com>
7169
54f1137d
AC
7170 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
7171 should be a switch case and not a label.
7172 * mips-tdep.c (mips32_next_pc): Delete unused labels
7173 "greater_equal_branch" and "less_zero_branch".
7174 * jv-valprint.c (java_print_value_fields): Delete unused label
7175 "flush_it".
7176
5269965e
AC
7177 * target.c (unpush_target): Only close a target that is in the
7178 target stack.
7179
dbc22fa1
MK
71802004-01-05 Mark Kettenis <kettenis@gnu.org>
7181
9515395e
MK
7182 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
7183 address from [sp + 64] instead of %o2.
7184
dbc22fa1
MK
7185 * frame.c (get_prev_frame): Don't try to unwind the PC. This
7186 fixes PR backtrace/1476.
7187
5439edaa
AC
71882004-01-05 Andrew Cagney <cagney@redhat.com>
7189
7190 * libunwind-frame.h (struct frame_id): Add opaque declaration,
7191 move to start of file.
7192 * i386-tdep.h (struct regcache): Add opaque declaration.
7193 * config/ia64/nm-linux.h (struct target_ops): Add opaque
7194 declaration.
7195 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
7196 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
7197 * win32-nat.c (fake_create_process): Use ISO C style definition.
7198 * stabsread.c (define_symbol): Delete #ifndef
7199 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
7200 stabs_argument_has_addr call, macro never defined.
7201
19061abe
MC
72022004-01-04 Michael Chastain <mec.gnu@mindspring.com>
7203
7204 * op50-rom.c: Delete.
7205 * w89k-rom.c: Delete.
7206 * Makefile.in: Remove references.
7207
e53bef9f
MK
72082004-01-04 Mark Kettenis <kettenis@gnu.org>
7209
7210 * x86-64-tdep.c: Update copyright year.
7211 (struct amd64_register_info): Rename from x86_64_register_info.
7212 (amd64_register_info): Rename from x86_64_register_info.
7213 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
7214 (amd64_register_name): Rename from x86_64_register_name.
7215 (amd64_register_type): Rename from x86_64_register_type.
7216 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
7217 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
7218 (amd64_dwarf_reg_to_regnum): Rename from
7219 x86_64_dwarf_reg_to_regnum.
7220 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
7221 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
7222 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
7223 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
7224 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
7225 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
7226 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
7227 (amd64_frame_cache): Rename from x86_64_frame_cache.
7228 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
7229 (amd64_frame_prev_register): Rename from
7230 x86_64_frame_prev_register.
7231 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
7232 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
7233 (amd64_sigtramp_frame_cache): Rename from
7234 x86_64_sigtramp_frame_cache.
7235 (amd64_sigtramp_frame_prev_register): Rename from
7236 x86_64_sigtramp_frame_prev_register.
7237 (amd64_sigtramp_frame_unwind): Rename from
7238 x86_64_sigtramp_frame_unwind.
7239 (amd64_sigtramp_frame_sniffer): Rename from
7240 x86_64_sigtramp_frame_sniffer.
7241 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
7242 (amd64_frame_base): Rename from x86_64_frame_base.
7243 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
7244 (amd64_frame_align): Rename from x86_64_frame_align.
7245 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
7246 (amd64_regset_from_core_section): Rename from
7247 x86_64_regset_from_core_section.
7248 (x86_64_init_abi): Update comments.
7249
fca6aa58
NR
72502004-01-04 Nick Roberts <nick@nick.uklinux.net>
7251
7252 * MAINTAINERS (write after approval): Add myself.
7253
8ada74e3
MK
72542004-01-04 Mark Kettenis <kettenis@gnu.org>
7255
7256 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7257 `float' arguments.
7258
5154b0cd
MK
72592004-01-04 Mark Kettenis <kettenis@gnu.org>
7260
7261 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
7262 such that it mentions a specific version of GCC that exhibits this
7263 bug.
7264
fb316966
MK
72652004-01-03 Mark Kettenis <kettenis@gnu.org>
7266
200cc553
MK
7267 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
7268 structure that has a single `float' member, store it in %f1 in
7269 addition to %f0.
7270
e226a4a0
MK
7271 * sparc-sol2-nat.c: Add missing '\'.
7272
b9d4c5ed
MK
7273 * sparc-tdep.c (sparc32_return_value): New function.
7274 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
7275 Remove functions.
7276 (sparc32_gdbarch_init): Set return_value, don't set
7277 extract_return_value, store_return_value, use_struct_convention
7278 and return_value_on_stack.
7279
fb316966
MK
7280 * sparc-sol2-nat.c: Add missing ')'.
7281
1af510a8
JB
72822004-01-03 J. Brobecker <brobecker@gnat.com>
7283
7284 * infrun.c (handle_step_into_function): New function.
7285 (handle_inferior_event): Extract out some code into the new
7286 function above.
7287
5cf4d23a
JB
72882004-01-03 J. Brobecker <brobecker@gnat.com>
7289
7290 * infrun.c (handle_inferior_event): Move the declaration of
7291 real_stop_pc inside the if blocks where it is used.
7292
60af1db2
MK
72932004-01-03 Mark Kettenis <kettenis@gnu.org>
7294
7295 * sparc64-tdep.c (sparc64_16_byte_align_p)
7296 (sparc64_store_floating_fields, sparc64_store_floating_fields):
7297 Use check_typedef to get subtypes of structures and unions.
7298 (sparc64_store_return_value): Fix calculation of the appropriate
7299 offset into VALBUF when storing a structure or union.
7300 (sparc64_return_value): New function.
7301 (sparc64_use_struct_convention): Remove function.
7302 (sparc64_init_abi): Set return_value, don't set
7303 extract_return_value, store_return_value and
7304 use_struct_convention.
7305
1a901d3f
EZ
73062004-01-03 Eli Zaretskii <eliz@elta.co.il>
7307
7308 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
7309 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
7310 gdb/config/alpha/xm-alphaosf.h,
7311 gdb/config/powerpc/tm-ppcle-eabi.h,
7312 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
7313 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
7314 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
7315 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
7316 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
7317 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
7318 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
7319 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
7320 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
7321 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
7322 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
7323 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
7324 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
7325 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
7326 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
7327 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
7328 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
7329 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
7330 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
7331 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
7332 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
7333 Remove lines for .cvsignore files.
7334
ef52e463
JB
73352004-01-03 J. Brobecker <brobecker@gnat.com>
7336
7337 * infrun.c: Back out the previous change.
7338
cb1bf9dc
MK
73392004-01-03 Mark Kettenis <kettenis@gnu.org>
7340
f0424ef6
MK
7341 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
7342 sparc-*-sunos4* to the list of REMOVED configurations.
7343
cb1bf9dc
MK
7344 * configure.tgt: Add back sparc-*-vxworks*.
7345 * remote-vxsparc.c: Remove all includes except for "defs.h",
7346 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
7347 Include "sparc-tdep.h".
7348 (SPARC_R_G1): New define.
7349 (vxsparc_gregset): New variable.
7350 (ext_format_sparc): Remove extern declaration.
7351 (vx_read_register): Rewrite to use sparc32_supply_gregset and
7352 sparc32_supply_fpregset.
7353 (vx_write_register): Rewrite to use sparc32_collect_gregset,
7354 sparc_collect_rwindow and sparc32_collect_fpregset.
7355 * config/sparc/tm-vxworks.h: New file, based on recently removed
7356 tm-vxsparc.h.
7357 * config/sparc/vxworks.mt: New file, based on recently removed
7358 vxworks.mt.
fe61caab 7359
5e938f9f
JB
73602004-01-03 J. Brobecker <brobecker@gnat.com>
7361
7362 * infrun.c (handle_step_into_function): New function.
7363 (handle_inferior_event): Extract out some code into the new
7364 function above.
7365
386c036b
MK
73662004-01-02 Mark Kettenis <kettenis@gnu.org>
7367
7368 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
7369 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
7370 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
7371 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
7372 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
7373 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
7374 (sparc_nat_h): New variable.
7375 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
7376 (tm-sun4os4.h): Remove dependency.
7377 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
7378 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
7379 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
7380 sparc-tdep.o): Update dependencies.
7381 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
7382 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
7383 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
7384 dependencies.
7385 * configure.host: Remove existing sparc-*-lynxos*,
7386 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
7387 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
7388 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
7389 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
7390 triplets.
7391 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
7392 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
7393 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
7394 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
7395 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
7396 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
7397 sparc64-*-solaris2* and sparc64-*-* triplets.
7398 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
7399 "symtab.h" and "objfiles.h".
7400 (BIAS): Remove define.
7401 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
7402 (X_DISP19): Remove macros.
7403 (sparc_fetch_instruction): Remove function.
7404 (struct gdbarch_tdep): Remove definition.
7405 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
7406 (sparc_breakpoint_from_pc): Remove function.
7407 (struct sparc64_frame_cache): Remove definition.
7408 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
7409 sparc64_unwind_pc): Remove functions.
7410 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
7411 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
7412 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
7413 (sparc64_frame_cache): Change return type to `struct
7414 sparc_frame_cache *'. Simply call sparc_frame_cache.
7415 (sparc64_frame_this_id, sparc64_frame_prev_register,
7416 sparc64_frame_base_address): Use `struct sparc_frame_cache'
7417 instead of `struct sparc64_frame_cache.
7418 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
7419 sparc_analyze_control_transfer, sparc_software_single_step,
7420 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
7421 _initialize_sparc64_tdep): Remove functions.
7422 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
7423 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
7424 macros.
7425 (sparc64_supply_gregset, sparc64_collect_gregset,
7426 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
7427 (sparc64_init_abi): New function.
7428 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
7429 inclusion guard. Include "sparc-tdep.h".
7430 (BIAS): Define.
7431 (r_tstate_offset, r_fprs_offset): New defines.
7432 (enum sparc_regnum): Remove defenition.
7433 (enum sparc64_regnum): Reformat.
7434 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
7435 (sparc64_init_abi, sparc64_supply_gregset,
7436 sparc64_collect_gregset, sparc64_supply_fpregset,
7437 sparc64_collect_fpregset): New prototypes.
7438 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
7439 Add extern declarations.
7440 (sparc64_sol2_init_abi): New prototype.
7441 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7442 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7443 prototypes.
7444 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
7445 "sparnbsd-nat.h".
7446 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
7447 functions.
7448 (_initialize_sparc64fbsd_nat): Remove initialization of
7449 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
7450 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 7451 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
7452 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
7453 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
7454 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
7455 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
7456 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
7457 (sparc64fbsd_r_y_offset): Remove variables.
7458 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7459 Make static and const.
7460 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7461 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7462 functions.
7463 (sparc64fbsd_gregset): New variable.
7464 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
7465 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
7466 and sparc64_supply_fpregset.
7467 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
7468 (sparc64fbsd_sigtramp_frame_this_id)
7469 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
7470 (sparc64fbsd_sigtramp_frame_unwind): New variable.
7471 (sparc64fbsd_sigtramp_frame_sniffer): New function.
7472 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
7473 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
7474 * sparcnbsd-tdep.c: Update copyright year. Include
7475 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
7476 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
7477 "value.h" and "sparcnbsd-tdep.h".
7478 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
7479 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
7480 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
7481 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
7482 defines.
7483 (sparcnbsd_gregset): New variable.
7484 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
7485 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
7486 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
7487 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
7488 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
7489 variables.
7490 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
7491 (sparc32nbsd_sigcontext_frame_this_id)
7492 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
7493 (sparc32nbsd_sigcontext_frame_unwind): New variable.
7494 (sparc32nbsd_sigtramp_frame_sniffer): New function.
7495 (sparcnbsd_get_longjmp_target_32,
7496 sparcnbsd_get_longjmp_target_64): Remove functions.
7497 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
7498 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
7499 sparcnbsd_init_elf): Remove.
7500 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
7501 (sparcnbsd_elf_init_abi): New functions.
7502 (_initialize_sparcnbsd_tdep): New prototype.
7503 (_initialize_sparnbsd_tdep): Update.
7504 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
7505 corelow.o. Add sparc64-nat.o and sparc-nat.o.
7506 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
7507 * config/sparc/linux.mh: Update comment.
7508 (XM_FILE, HOST_IPC): Remove variables.
7509 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
7510 sparc-linux-nat.o.
7511 * config/sparc/linux.mt: Update comment.
7512 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
7513 * config/sparc/nbsd.mt: Reformat.
7514 * config/sparc/nbsd64.mh: Update comment.
7515 (NATDEPFILES): Add sparc-nat.o.
7516 * config/sparc/nbsd64.mt: Update comment.
7517 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
7518 (TM_FILE): Set to tm-nbsd.h.
7519 * config/sparc/nbsdelf.mh: Update comment.
7520 (NATDEPFILES): Add sparc-nat.o.
7521 (XM_FILE): Delete.
7522 * config/sparc/nbsdaout.mh: Update comment.
7523 (NATDEPFILES): Add sparc-nat.o
7524 (XM_FILE): Delete.
7525 * config/sparc/nm-linux.h: Update copyright year. Don't include
7526 "config/nm-svr4.h" and "solib.h". Add protection against multiple
7527 inclusion.
7528 (KERNEL_U_SIZE): Remove define.
7529 (kernel_u_size): Remove prototype.
7530 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
7531 * config/sparc/nm-nbsd.h: Update copyright. Don't include
7532 "regcache.h".
7533 (CHILD_PREPARE_TO_STORE): Remove define.
7534 * config/sparc/nm-nbsdaout.h: Tweak some comments.
7535 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
7536 sparcnbsd-nat.c: Rewrite files.
7537 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
7538 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
7539 sparcnbsd-tdep.h: Remove files.
7540 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
7541 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
7542 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
7543 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
7544 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
7545 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
7546 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
7547 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
7548 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7549 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7550 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
7551 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
7552 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
7553 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
7554 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
7555 * config/sparc/linux64.mh, config/sparc/linux64.mt,
7556 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
7557 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
7558 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
7559
ee84457a
AC
75602004-01-02 Andrew Cagney <cagney@redhat.com>
7561
7562 From 2003-12-18 Kazuhiro Inaoka:
7563 * configure.host: Add m32r-linux target.
7564
0bc2134e
MC
75652004-01-02 Michael Chastain <mec.gnu@mindspring.com>
7566
7567 * top.c (print_gdb_version): Update year to 2004.
7568
89a72f9c
MM
75692004-01-02 Mark Mitchell <mark@codesourcery.com>
7570
7571 * MAINTAINERS: Add myself to the write-after-approval category.
7572
86b013ed
DJ
75732004-01-02 Daniel Jacobowitz <drow@mvista.com>
7574
7575 From Bernardo Innocenti <bernie@develer.com>:
7576 * configure.tgt: Add uClinux target.
7577
e42c9534
AC
75782004-01-02 Andrew Cagney <cagney@redhat.com>
7579
7580 * utils.c (do_my_cleanups): Make static, add forward declaration.
7581 * defs.h (do_my_cleanups): Delete declaration.
7582
162467d3
EZ
75832004-01-02 Eli Zaretskii <eliz@elta.co.il>
7584
7585 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
7586 bfd/ChangeLog-0203.
7587
78434e59
MK
75882004-01-02 Mark Kettenis <kettenis@gnu.org>
7589
7590 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
7591 in <machine/reg.h>.
7592 * configure, config.in: Regenerate.
7593
48efe704
AC
7594For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
7595tui/ChangeLog-1998-2003.
c906108c
SS
7596\f
7597Local Variables:
7598mode: change-log
7599left-margin: 8
7600fill-column: 74
7601version-control: never
7602End:
This page took 0.926204 seconds and 4 git commands to generate.