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