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