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