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