* i386-sol2-tdep.c (i386_sol2_gregset_reg_offset): New variable.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6a9756ed
MK
12003-12-15 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-sol2-tdep.c (i386_sol2_gregset_reg_offset): New variable.
4 (i386_sol2_init_abi): Initialize TDEP->gregset_reg_offset,
5 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
6 TDEP->sizeof_fpregset.
7 * config/i386/i386sol2.mh (XM_FILE): Set to xm-i386.h.
8 (XM_CLIBS): Remove.
9 (NATDEPFILES): Remove core-regset.o and corelow.o.
10 * config/i386/i386sol2.mt (TDEPFILES): Add corelow.o.
11
5daa5b4e
MK
122003-12-14 Mark Kettenis <kettenis@gnu.org>
13
e34e1a85
MK
14 * proc-api.c (procfs_note): Add format string to fprintf call.
15
5daa5b4e
MK
16 * i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
17 for `subl' and `xorl' instructions.
18
e481341f
JB
192003-12-13 Jim Blandy <jimb@redhat.com>
20
27bfe10e
JB
21 * dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
22 Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
23 to strcmp and strncmp.
24
e481341f
JB
25 * osabi.c (gdbarch_init_osabi): Reformat error message with better
26 line breaks.
27
f614e9d9
MK
282003-12-13 Mark Kettenis <kettenis@gnu.org>
29
30 * blockframe.c (inside_main_func): Reformat. Introduce new local
31 variables to prevent long lines. Update comments to reflect
32 reality.
33
503ff15d
KB
342003-12-12 Kevin Buettner <kevinb@redhat.com>
35
36 From David Mosberger <davidm@hpl.hp.com>:
37 * libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
38 with a single unw_dyn_info_t pointer.
39 (libunwind_find_dyn_list): Likewise.
40 * libunwind-frame.h: Likewise.
41 * ia64-tdep.c (ia64_find_unwind_table): Switch to using
42 UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
43 entire unwind-table at once. Support for this table format has
44 been added to libunwind v0.95.
45 (ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
46 (ia64_get_dyn_info_list): Adjust for interface change for
47 libunwind_find_dyn_list().
48
468d015d
JJ
492003-12-12 Jeff Johnston <jjohnstn@redhat.com>
50
51 * breakpoint.c (breakpoint_enabled): New function to test whether
52 breakpoint is active and enabled.
53 (insert_bp_location, insert_breakpoints): Call new function to test
54 for enabled breakpoint.
55 (remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
56 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
57 (disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
58 (disable_watchpoints_before_interactive_call_start)
59 (breakpoint_re_set_one): Ditto.
60 (bpstat_stop_status): Use new function and simplify test.
61
f82de61c
MK
622003-12-11 Mark Kettenis <kettenis@gnu.org>
63
64 * observer.c (observer_test_first_observer)
65 (observer_test_second_observer, observer_test_third_observer):
66 Don't define as `static'.
67 (observer_test_first_notification_function)
68 (observer_test_second_notification_function)
69 (observer_test_third_notification_function): Likewise.
70
9db7c108
MK
712003-12-10 Mark Kettenis <kettenis@gnu.org>
72
73 * solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
74 of (0).
75
8bfdb672
DD
762003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
77
78 * MAINTAINERS (write after approval): Add myself.
79
454d0511
DD
802003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
81
82 * config/h8300/tm-h8300.h (h8300hmode): Remove.
83 (h8300hmode): Likewise.
84 (h8300smode): Likewise.
85 (h8300sxmode): Likewise.
86 (h8300_normal_mode): Likewise.
87 (GDB_TARGET_IS_H8300): Likewise.
88 (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
89 * h8300-tdep.c (is_h8300hmode): New function.
90 (is_h8300smode): New function.
91 (is_h8300sxmode): New function.
92 (is_h8300_normal_mode): New function.
93 (BINWORD): Use new functions.
94 (h8300_examine_prologue): Likewise.
95 (h8300_print_register): Likewise.
96 (h8300_print_registers_info): Likewise.
97 (h8300_register_type): Likewise.
98 (h8300_gdbarch_init): Remove use of globals like h8300hmode.
99 * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
100 (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
101 (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
102
7ae4c3a5
JB
1032003-12-10 J. Brobecker <brobecker@gnat.com>
104
105 * frame.c (select_frame): Get the current frame PC using
106 get_frame_address_in_block() instead of get_frame_pc().
107 * stack.c (get_frame_language): Likewise.
108
9b74d5d3
KB
1092003-12-08 Kevin Buettner <kevinb@redhat.com>
110
111 * remote.c (remote_open_1, remote_cisco_open): Avoid closing
112 remote_desc more than once.
113
e7ebf6d6
AC
1142003-12-07 Andrew Cagney <cagney@redhat.com>
115
116 * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
117 directly calling strcmp equivalents. Add disclaimer.
118
8ccc1287
AC
1192003-12-06 Andrew Cagney <cagney@redhat.com>
120
121 * remote.c (remote_fetch_registers): For short packets, explicitly
122 supply a zero value. Use regcache_raw_supply. Fix suggested by
123 Jonathan Larmour.
124
32edc941
JJ
1252003-12-05 Jeff Johnston <jjohnstn@redhat.com>
126
127 * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
128 format to be the i387 extended float format which is used for
129 long doubles stored in memory.
130
2af2aeb0
MK
1312003-12-05 Mark Kettenis <kettenis@gnu.org>
132
133 From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
134 * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
135 column instead of translating it.
136
362ff856
MC
1372003-12-04 Michael Chastain <mec.gnu@mindspring.com>
138
139 Partial fix for PR c++/1465.
140 Fix for PR c++/1377.
141 * cp-support.h (cp_lookup_rtti_type): New function.
142 * cp-support.c (cp_lookup_rtti_type): New function.
143 * gnu-v2-abi.c: Update copyright years.
144 (gnuv2_rtti_type): Call cp_lookup_rtti_type.
145 * gnu-v3-abi.c: Update copyright years.
146 (gnuv3_rtti_type): Call cp_lookup_rtti_type.
147
149d821b
JB
1482003-12-04 J. Brobecker <brobecker@gnat.com>
149
150 * stabsread.c (read_type): Save a reference to types that are defined
151 as cross references to other types.
152
77f091dd
RM
1532003-12-02 Roland McGrath <roland@redhat.com>
154
155 * thread-db.c (enable_thread_event): Change return type to
156 td_err_e. Return TD_OK or error code.
157 (enable_thread_event_reporting): Update callers.
158
59659be2
ILT
1592003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
160
161 * NEWS: Mention new C++ demangler code.
162
56d0d96a
AC
1632003-12-03 Andrew Cagney <cagney@redhat.com>
164
165 * ppc-linux-nat.c (store_register, fetch_register): Convert
166 between ptrace and regcache's wordsize.
167 (ppc_register_u_addr): Use the ptrace wordsize.
168
251a3ae3
KB
1692003-12-02 Kevin Buettner <kevinb@redhat.com>
170
171 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
172
188dd5d6
DJ
1732003-12-02 Daniel Jacobowitz <drow@mvista.com>
174
175 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
176 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
177 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
178 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
179 Delete.
180 (dwarf2_read_section): Remove offset and size arguments. Use
181 bfd_get_section_size_before_reloc and sectp->filepos.
182 (dwarf2_has_info): Clear section variables instead of offsets.
183 (dwarf2_locate_sections): Don't initialize the deleted variables.
184 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
185 (dwarf2_build_psymtabs_easy): Likewise.
186 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
187 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
188 declarations.
189 (dwarf2_read_section): Update prototype.
190 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
191 Use bfd_get_section_size_before_reloc instead of global size
192 variables.
193
013be872
MC
1942003-12-01 Michael Chastain <mec.gnu@mindspring.com>
195
196 * dwarfread.c: Update documentation on the state of dwarf-1.
197
5994185b
AC
1982003-12-01 Andrew Cagney <cagney@redhat.com>
199
0748d941
AC
200 Obsolete old MIPS SVr3 and SVr4 systems.
201 * NEWS: Mention obsoleted systems.
202 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
203 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
204 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
205 obsolete.
206 * config/mips/decstation.mh: Mark as obsolete.
207 * config/mips/littlemips.mh: Mark as obsolete.
208 * config/mips/nm-mips.h: Mark as obsolete.
209 * config/mips/xm-mips.h: Mark as obsolete.
210 * config/mips/news-mips.mh: Mark as obsolete.
211 * config/mips/nm-news-mips.h: Mark as obsolete.
212 * config/mips/riscos.mh: Mark as obsolete.
213 * config/mips/nm-riscos.h: Mark as obsolete.
214 * config/mips/xm-riscos.h: Mark as obsolete.
215 * config/mips/mipsv4.mt: Mark as obsolete.
216 * config/mips/tm-mipsv4.h: Mark as obsolete.
217 * config/mips/xm-mipsv4.h: Mark as obsolete.
218
5994185b
AC
219 Obsolete old m68k systems.
220 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
221 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
222 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
223 m680[01]0-sun-sunos3* as obsolete.
224 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
225 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
226 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
227 * config/m68k/sun3os4.mh: Mark file obsolete.
228 * config/m68k/xm-sun3os4.h: Mark file obsolete.
229 * config/m68k/sun3os3.mh: Mark file obsolete.
230 * config/m68k/nm-sun3.h: Mark file obsolete.
231 * config/m68k/xm-sun3.h: Mark file obsolete.
232 * config/m68k/sun2os4.mh: Mark file obsolete.
233 * config/m68k/sun2os3.mh: Mark file obsolete.
234 * config/m68k/nm-sun2.h: Mark file obsolete.
235 * config/m68k/xm-sun2.h: Mark file obsolete.
236 * config/m68k/m68kv4.mh: Mark file obsolete.
237 * config/m68k/nm-sysv4.h: Mark file obsolete.
238 * config/m68k/xm-m68kv4.h: Mark file obsolete.
239 * config/m68k/m68klynx.mh: Mark file obsolete.
240 * config/m68k/nm-m68klynx.h: Mark file obsolete.
241 * config/m68k/dpx2.mh: Mark file obsolete.
242 * config/m68k/xm-dpx2.h: Mark file obsolete.
243 * config/m68k/nm-dpx2.h: Mark file obsolete.
244 * config/m68k/delta68.mh: Mark file obsolete.
245 * config/m68k/xm-delta68.h: Mark file obsolete.
246 * config/m68k/nm-delta68.h: Mark file obsolete.
247 * config/m68k/3b1.mh: Mark file obsolete.
248 * config/m68k/xm-3b1.h: Mark file obsolete.
249 * config/m68k/sun3os4.mt: Mark file obsolete.
250 * config/m68k/tm-sun3os4.h: Mark file obsolete.
251 * config/m68k/sun3os3.mt: Mark file obsolete.
252 * config/m68k/tm-sun3.h: Mark file obsolete.
253 * config/m68k/sun2os4.mt: Mark file obsolete.
254 * config/m68k/tm-sun2os4.h: Mark file obsolete.
255 * config/m68k/sun2os3.mt: Mark file obsolete.
256 * config/m68k/tm-sun2.h: Mark file obsolete.
257 * config/m68k/m68kv4.mt: Mark file obsolete.
258 * config/m68k/tm-m68kv4.h: Mark file obsolete.
259 * config/m68k/m68klynx.mt: Mark file obsolete.
260 * config/m68k/tm-m68klynx.h: Mark file obsolete.
261 * config/m68k/dpx2.mt: Mark file obsolete.
262 * config/m68k/tm-dpx2.h: Mark file obsolete.
263 * config/m68k/delta68.mt: Mark file obsolete.
264 * config/m68k/tm-delta68.h: Mark file obsolete.
265 * config/m68k/3b1.mt: Mark file obsolete.
266 * config/m68k/tm-3b1.h: Mark file obsolete.
267
720aa428
MK
2682003-11-29 Mark Kettenis <kettenis@gnu.org>
269
270 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
271 (x86_64_reg_class): Remove enum.
272 (merge_classes, classify_argument, examine_argument): Remove
273 functions.
274 (INT_REGS, SSE_REGS): Remove macros.
275 (x86_64_push_arguments): Remove function.
276 (amd64_push_arguments): New function.
277 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
278 x86_64_push_arguments.
279
35883a3f
MK
2802003-11-28 Mark Kettenis <kettenis@gnu.org>
281
282 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
283 zero. Reorganize code a bit.
284
597684c5
MK
2852003-11-27 Mark Kettenis <kettenis@gnu.org>
286
3e74aeed
MK
287 * dwarf2-frame.c: Fix another comment.
288
efb1c01c
MK
289 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
290 (x86_64_use_struct_convention, x86_64_extract_return_value,
291 x86_64_store_return_value): Remove.
292 (amd64_reg_class): New enum.
293 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
294 amd64_return_value): New functions.
295 (x86_64_init_abi): Don't set extract_return_value,
296 store_return_value and use_struct_convention. Set return_value to
297 amd64_return_value.
298 * i387-tdep.h (i387_return_value): New prototype.
299 * i387-tdep.c (i387_return_value): New function.
300
e4e9607c
MK
301 * dwarf2-frame.c: Fix some comments and whitespace problems.
302
13739f4d
MK
303 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
304 "gdb_assert.h" and "gdb_string.h".
305 (i386nbsd_r_reg_offset): Rename from regmap.
306 (SIZEOF_STRUCT_REG): Remove.
307 (i386nbsd_supply_reg, fetch_core_registers,
308 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
309 Remove.
310 (i386nbsd_aout_supply_regset,
311 i386nbsd_aout_regset_from_core_section): New functions.
312 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
313 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
314 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
315 initialize TDEP->sc_num_regs.
316 (i386nbsdaout_init_abi): New function.
317 (i386nbsdelf_init_abi): Remove initialization of
318 TDEP->num_xmm_regs. Don't set num_regs here.
319 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
320 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
321
597684c5
MK
322 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
323 .note.netbsdcore.procinfo section to recognize NetBSD core files.
324
37e79b6b
MC
3252003-11-26 Michael Chastain <mec.gnu@mindspring.com>
326
327 * cp-abi.c: Update copyright years.
328
24557e30
AC
3292003-11-25 Andrew Cagney <cagney@redhat.com>
330
331 * thread-db.c (enable_thread_event): New function. Ensure that BP
332 is a code address.
333 (enable_thread_event_reporting): Use enable_thread_event.
77f091dd 334
78c63a3b
MS
3352003-11-25 Michael Snyder <msnyder@redhat.com>
336
337 * mips-tdep.c (mips_o64_extract_return_value): Correct for
338 NUM_REGS (see changes 2003-06-21).
339 (mips_eabi_extract_return_value): Ditto.
340
aff6338a
AC
3412003-11-25 Andrew Cagney <cagney@redhat.com>
342
343 * infrun.c: Don't include "exec.h".
344 (handle_inferior_event): Pass current_target, instead of exec_ops,
345 to SOLIB_ADD. Add comments.
346 * Makefile.in (infrun.o): Update dependencies.
347
9e08b29b
DJ
3482003-11-24 Daniel Jacobowitz <drow@mvista.com>
349
350 * NEWS: Mention improved location expression support.
351
603942cc
AC
3522003-11-23 Andrew Cagney <cagney@redhat.com>
353
354 * Makefile.in (infrun.o): Update dependencies.
355 * infrun.c: Include "exec.h".
356 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
357
66c57289
AC
3582003-11-23 Andrew Cagney <cagney@redhat.com>
359
dd3ecc14
AC
360 * frame.c (frame_unwind_signed_register): Delete function.
361 * frame.h (frame_unwind_register_signed): Delete declaration.
362 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
363
eec1a560
AC
364 * arch-utils.h (generic_cannot_extract_struct_value_address):
365 Delete declaration.
366
cb137aa5
AC
367 * defs.h (DEPRECATED_STREQN): Rename STREQN.
368 (DEPRECATED_STREQ): Rename STREQ.
369 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
370 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
371 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
372 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
373 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
374 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
375 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
376 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
377 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 378
cb137aa5 379 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
380 * elfread.c (elf_symtab_read): Delete STREQ from comment.
381
29dfb2ac
AC
3822003-11-22 Andrew Cagney <cagney@redhat.com>
383
213cc0ad
AC
384 * frame.c (deprecated_frame_xmalloc): Delete function.
385 (deprecated_set_frame_extra_info_hack): Delete function.
386 (deprecated_set_frame_saved_regs_hack): Delete function.
387 * frame.h (deprecated_frame_xmalloc): Delete declaration.
388 (deprecated_set_frame_extra_info_hack): Delete declaration.
389 (deprecated_set_frame_saved_regs_hack): Delete declaration.
390 * mcore-tdep.c (analyze_dummy_frame): Instead of
391 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
392 and deprecated_set_frame_extra_info_hack use
393 deprecated_frame_xmalloc_with_cleanup.
394 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
395 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
396 deprecated_set_frame_saved_regs_hack.
397
35bb18ac
AC
398 * mips-tdep.c (mips_frame_chain): Delete call to
399 deprecated_inside_entry_file.
400
38a7ce4b
AC
401 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
402 (deprecated_set_frame_prev_hack): Delete declaration.
403 * frame.c (deprecated_set_frame_next_hack): Delete function.
404 (deprecated_set_frame_prev_hack): Delete function.
405 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
406 "deprecated_set_frame_next_hack" and
407 "deprecated_set_frame_prev_hack".
408 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
409
47ebcfbe
AC
410 * mips-tdep.c (mips_register_convertible): Delete function.
411 (mips_register_convert_to_virtual): Delete function.
412 (mips_register_convert_to_raw): Delete function.
413 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
414 "deprecated_register_convert_to_virtual", or
415 "deprecated_register_convert_to_raw".
416 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
417 32/64 cooked to raw register conversions.
418
2a9264f1 419 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 420 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
421 (struct frame_info): Delete member "context".
422 * frame.h (deprecated_get_frame_context): Delete declaration.
423 (deprecated_set_frame_context): Delete declaration.
424
7af6341f
AC
425 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
426 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
427 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
428 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
429
10a08821
AC
430 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
431 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
432 mips_regsize.
433 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
434 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
435 * config/mips/tm-irix5.h: Update copyright.
436 (SIGFRAME_REG_SIZE): Delete macro.
437
00d33403
AC
438 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
439 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
440 declaration.
441 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
442 * infcall.c (call_function_by_hand): Delete #ifdef
443 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
444 * infcmd.c (print_return_value): Ditto.
445
74da7425
AC
446 * mips-tdep.c (skip_prologue_using_sal): New function.
447 (mips32_skip_prologue, mips16_skip_prologue): Use
448 skip_prologue_using_sal to get an upper bound on the search.
449
369864a4
AC
450 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
451 #if 0'ed macro.
452 * infrun.c (step_into_function): Delete #ifdef
453 PROLOGUE_FIRSTLINE_OVERLAP code.
454 * symtab.c (find_function_start_sal): Ditto.
455
a5a12285
AC
456 * remote-rdp.c: Update copyright.
457 (rdp_init): #if 0 references to "target_byte_order".
458
29dfb2ac
AC
459 * mips-tdep.c (mips_o32_store_return_value): Delete function.
460 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
461 (mips_o32_extract_return_value): Delete function.
462 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
463 (mips_n32n64_extract_return_value): Delete function.
464 (mips_n32n64_store_return_value): Delete function.
465 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
466 instead of "store_return_value", "extract_return_value", and
467 "use_struct_convention".
468 (mips_n32n64_use_struct_convention): Delete function.
469
3a3da38c
KB
4702003-11-21 Kevin Buettner <kevinb@redhat.com>
471
472 * frv-tdep.c (frv_frame_this_id): Eliminate call to
473 inside_entry_func().
474
c5e656c1
MK
4752003-11-20 Mark Kettenis <kettenis@gnu.org>
476
477 * i386-tdep.c (i386_extract_return_value,
478 i386_store_return_value): Add gdbarch argument. Use it instead of
479 determining it from REGCACHE. Remove recursive call for
480 structures with a single member.
481 (i386_use_struct_convention): Remove.
482 (i386_reg_struct_return_p): New function.
483 (i386_return_value): New function.
484 (i386_gdbarch_init): Set return_value, don't set
485 extract_return_value, store_return_value and
486 use_struct_convention.
487 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
488
515cc92e
JB
4892003-11-20 Jim Blandy <jimb@redhat.com>
490
491 * osabi.c (_initialize_gdb_osabi): Don't return before registering
492 the 'set osabi' and 'show osabi' commands.
493
3f1d7f16
MK
4942003-11-19 Mark Kettenis <kettenis@gnu.org>
495
496 * frame.c (get_prev_frame): Use result from
497 get_frame_address_in_block instead of get_frame_pc as argument to
498 inside_main_func. Fixes PR backtrace/1435.
499
667e784f
AC
5002003-11-19 Andrew Cagney <cagney@redhat.com>
501
502 * stack.c (return_command): Handle "void", "legacy" and "unknown
503 location" return values separatly.
504 * values.c (using_struct_return): Return 0 for a "void" return
505 type. Mention "register_value_being_returned".
506 (register_value_being_returned): Mention "using_struct_return".
507
4cecd739
DJ
5082003-11-19 Daniel Jacobowitz <drow@mvista.com>
509
510 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
511 (frame_base_offset): Delete.
512 (read_func_scope): Delete call to decode_locdesc.
513 (decode_locdesc): Update comments. Don't set the removed variables.
514 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
515 DW_OP_fbreg support.
516
6b992462
DJ
5172003-11-18 Daniel Jacobowitz <drow@mvista.com>
518
519 * dwarf2read.c (optimized_out, islocal): Remove.
520 (decode_locdesc): Update comments. Don't set optimized_out
521 or islocal.
522
968d1cb4
JJ
5232003-11-17 Jeff Johnston <jjohnstn@redhat.com>
524 David Mosberger <davidm@hpl.hp.com>
525
526 * ia64-tdep.c: Include elf.h.
77f091dd 527 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
968d1cb4
JJ
528 libunwind-ia64.h.
529 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
530 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
531 (ia64_is_fpreg, ia64_access_reg): Ditto.
532 (ia64_access_fpreg, ia64_access_mem): Ditto.
533 (get_kernel_table): Ditto.
534 (ia64_find_unwind_table): Ditto.
535 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
536 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
537 (ia64_libunwind_frame_prev_register): Ditto.
538 (ia64_libunwind_frame_sniffer): Ditto.
539 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
77f091dd
RM
540 sniffer. Register libunwind functions needed by generic
541 libunwind frame code using libunwind_frame_set_descr().
968d1cb4 542
d29caefc
DJ
5432003-11-16 Daniel Jacobowitz <drow@mvista.com>
544
545 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
546 bp_shlib_disabled breakpoint if there is a shared library mapped
547 at its expected address.
548
691c0433
AC
5492003-11-16 Andrew Cagney <cagney@redhat.com>
550
96cb1c2f
AC
551 * configure.tgt: Delete mips*tx39*-elf*.
552 * config/mips/tm-tx39.h: Delete file.
553 * config/mips/tx39.mt: Delete file.
554 * config/mips/tx39.mt: Delete file.
555
691c0433
AC
556 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
557 * remote-mips.c (common_open): Instead of
558 "mips_read_register_type" and "mips_set_processor_type_command"
559 call "deprecated_mips_set_processor_regs_hack".
560 * config/mips/tm-mips.h (mips_read_processor_type): Delete
561 declaration.
562 (mips_set_processor_type_command): Delete declaration.
563 * mips-tdep.c (mips_gdbarch_init): Update comment.
564 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
565 (mips_set_processor_type): Delete function.
566 (NUM_MIPS_PROCESSOR_REGS): Define.
567 (mips_show_processor_type_command): Delete function.
568 (mips_set_processor_type_command): Delete function.
569 (tmp_mips_processor_type): Delete.
570 (mips_processor_type): Delete.
571 (mips_processor_type_table): Delete.
572 (mips_r3051_reg_names): Delete.
573 (mips_r3081_reg_names): Delete.
574 (mips_lsi33k_reg_names): Delete.
575 (mips_processor_reg_names): Delete.
576 (mips_read_processor_type): Delete function.
577 (deprecated_mips_set_processor_regs_hack): New function.
578 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
579 (mips_register_name): Get the processor names from the tdep.
580 (mips_tx39_reg_names): New array.
581 (mips_generic_reg_names): Wire to a standard set of names.
77f091dd 582 (mips_gdbarch_init): Set "mips_processor_reg_names".
691c0433
AC
583 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
584 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
585 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
586
56cea623
AC
5872003-11-16 Andrew Cagney <cagney@redhat.com>
588
589 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
590 (mips_fpa0_regnum, mips_regnum): New function.
591 (mips_gdbarch_init): Fill in the "regnum" fields.
592 * mips-tdep.h (struct mips_regnum): Define.
593 (mips_regnum): Declare.
594 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
595 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
596 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
597 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
598 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
599 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
600 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
601 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
602 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
603 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
604 * remote-mips.c: Include "mips-tdep.h". Update.
605 * mipsnbsd-tdep.c: Update.
606 * mipsv4-nat.c: Update.
607 * mips-tdep.c: Update.
608 * mips-nat.c: Update.
609 * mips-linux-tdep.c: Update.
610 * mips-linux-nat.c: Update.
611 * irix5-nat.c: Update.
612 * dve3900-rom.c: Include "mips-tdep.h". Update.
613 (ignore_packet): Supress GCC warning.
614 * config/mips/nm-riscos.h: Update.
615
719ec221
AC
6162003-11-16 Andrew Cagney <cagney@redhat.com>
617
618 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
619 register_size.
620 (mips_register_raw_size): Delete function.
621 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
622 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
623 Check and set "mips64_transfers_32bit_regs_p".
624 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
625 (mips_register_convertible): Check the architecture's
626 "mips64_transfers_32bit_regs_p".
627 (set_mips64_transfers_32bit_regs): New function.
628 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
629 "set remote-mips64-transfers-32bit-regs" command. Specify
630 set_mips64_transfers_32bit_regs as the set function.
56cea623 631 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 632
20187ed5
MK
6332003-11-16 Mark Kettenis <kettenis@gnu.org>
634
635 * i386-tdep.h (i386_supply_gregset): Provide prototype.
636 * i386-tdep.c (i386_supply_gregset): Make public.
637
6771c427
AC
6382003-11-16 Andrew Cagney <cagney@redhat.com>
639
640 * mips-tdep.c (mips_register_byte): Delete function.
641 (mips_gdbarch_init): Do not set "deprecated_register_byte".
642 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
643 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
644 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
645
c8048956
MK
6462003-11-16 Mark Kettenis <kettenis@gnu.org>
647
648 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
649
cc8a868a
AC
6502003-11-16 Andrew Cagney <cagney@redhat.com>
651
652 * config/mips/linux64.mt: Delete file.
653 * config/mips/tm-linux64.h: Delete file.
654 * config/mips/tm-mips64.h: Delete file.
655 * config/mips/embed64.mt: Delete file.
656 * config/djgpp/fnchange.lst: Update.
657 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
658 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
659 * config/mips/tm-irix6.h: Update copyright. Include
660 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
661 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
662 "OP_LDGPR".
663
5ef80fb0
AC
6642003-11-15 Andrew Cagney <cagney@redhat.com>
665
666 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
667 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
668 n32 registers 64 bit.
669 (mips_register_raw_size, mips_register_byte): For pseudo
670 registers, use the register's pseudo size and not the
671 corresponding raw register's size.
672 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
673 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
674 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
675 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
676
4246e332
AC
6772003-11-15 Andrew Cagney <cagney@redhat.com>
678
8fa9cfa1
AC
679 * mips-tdep.c (struct gdbarch_tdep): Delete member
680 gdb_target_is_mips64.
681 (GDB_TARGET_IS_MIPS64): Delete macro.
682 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
683 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
684 (mips_addr_bits_remove): Simplify.
685
c73e8f27
AC
686 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
687 register_size.
688
4246e332
AC
689 Replace MIPS_REGSIZE with mips_regsize.
690 * mips-tdep.c (mips_regsize): New function.
691 * mips-tdep.h (mips_regsize): Declare.
692 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
693 (SIZEOF_STRUCT_REG): Update.
694 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
695 (mipsnbsd_fill_reg): Update.
696 (mipsnbsd_supply_fpreg): Update.
697 (mipsnbsd_fill_fpreg): Update.
698 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
699 * mips-tdep.c (mips_register_raw_size): Update.
700 (mips_register_type): Update.
701 (SIGFRAME_BASE): Update.
702 (SIGFRAME_PC_OFF): Update.
703 (SIGFRAME_REGSAVE_OFF): Update.
704 (SIGFRAME_FPREGSAVE_OFF): Update.
705 (SIGFRAME_REG_SIZE): Update.
706 (mips32_heuristic_proc_desc): Update.
707 (print_gp_register_row): Update.
708 (mips_dump_tdep): Do not print MIPS_REGSIZE.
709 * irix5-nat.c (supply_gregset): Update.
710 (fetch_core_registers): Update.
711 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
712 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
713 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
714 (MIPS_REGISTER_BYTE): Update.
715 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
716
5e044b1e
AC
7172003-11-15 Andrew Cagney <cagney@redhat.com>
718
719 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
720 USE_REGISTER_NOT_ARG.
721 * stabsread.c (define_symbol): Update.
722
3a16a68c
AC
7232003-11-15 Andrew Cagney <cagney@redhat.com>
724
725 * bcache.h (deprecated_bcache): Declare.
726 (bcache): Make returned buffer constant.
727 * bcache.c (deprecated_bcache): New function.
728 (bcache_data): New function.
729 (bcache): Call bcache data.
730 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
731 (add_psymbol_with_dem_name_to_list): Ditto.
732
bb41a796
MK
7332003-11-15 Mark Kettenis <kettenis@gnu.org>
734
735 * glibc-tdep.h (struct gdbarch): Declare opaque.
736 (glibc_skip_solib_resolver): Adjust prototype.
737 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
738 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
739 (arm_linux_init_abi): Set skip_solib_resolver.
740 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
741 (i386_linux_init_abi): Set skip_solib_resolver.
742 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
743 (arm_linux_skip_solib_resolver): Remove prototype.
744 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
745 (i386_linux_skip_solib_resolver): Remove prototype.
746
4c8c40e6
MK
7472003-11-14 Mark Kettenis <kettenis@gnu.org>
748
749 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
750 function.
751 * gdbarch.c, gdbarch.h: Regenerate.
752 * infrun.c (handle_inferior_event): Call
753 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
754 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
755 definition.
756 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
757 prototype.
758
0e5d83e3
JJ
7592003-11-14 Jeff Johnston <jjohnstn@redhat.com>
760
761 * libunwind-frame.c: New file.
762 * libunwind-frame.h: New file.
763 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
764 * configure.in: Add --with-libunwind option support. Define
77f091dd 765 HAVE_LIBUNWIND if libunwind support selected / defaulted.
0e5d83e3
JJ
766 Also check for libunwind.h and libunwind-ia64.h headers.
767 * configure: Regenerated.
768 * Makefile.in: Add support for libunwind-frame.o.
769 * config.in: Regenerated.
770
287a334e 7712003-11-14 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 772
287a334e
JJ
773 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
774 set up the ia64 linux native target method for getting the kernel
775 unwind table.
776 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
777 * inftarg.c (child_xfer_partial): Enable section of code to
778 handle TARGET_OBJECT_UNWIND_TABLE.
779 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
780
140be7b8
ILT
7812003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
782
783 * config/arm/nbsd.mt (TM_FILE): Define.
784 * config/arm/tm-nbsd.h: New file.
785
0a90bcdd
AC
7862003-11-14 Andrew Cagney <cagney@redhat.com>
787
788 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
789 * ppc-sysv-tdep.c: Include "objfiles.h".
790 (ppc64_sysv_abi_push_dummy_call): Provide the
791 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
792
793 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
794 "name_of_malloc" to ".malloc".
795
087f1027
MK
7962003-11-13 Mark Kettenis <kettenis@gnu.org>
797
798 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
799
3882f37a
DC
8002003-11-13 David Carlton <carlton@kealia.com>
801
802 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
803
a8cf2722
AC
8042003-11-13 Andrew Cagney <cagney@redhat.com>
805
806 * arch-utils.h (selected_architecture_name): Declare.
807 (selected_byte_order): Declare.
808 * arch-utils.c (selected_byte_order): New function.
809 (selected_architecture_name): New function.
810 (target_architecture_auto): Make static.
811 (set_architecture_string): Make static.
812 (target_byte_order): Make static.
813 (target_byte_order_auto): Make static.
814 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
815 non-multi-arch definition.
816 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
817 (target_byte_order, target_architecture): Delete declaration.
818 (target_byte_order_auto, target_architecture_auto): Ditto.
819 * gdbarch.h: Re-generate.
820 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
821 "selected_byte_order".
77f091dd 822
475b6ddd
AC
8232003-11-13 Andrew Cagney <cagney@redhat.com>
824
825 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
826
a22286a9
JB
8272003-11-13 Jim Blandy <jimb@redhat.com>
828
829 * cp-namespace.c: Doc fix.
830
7bb11558
MS
8312003-11-12 Michael Snyder <msnyder@redhat.com>
832
39add00a
MS
833 * sh64_tdep.c: Regularize some names.
834 (sh_sh64_register_name): Rename to sh64_register_name.
835 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
836 (sh_sh64_register_byte): Rename to sh64_register_byte.
77f091dd 837 (sh_sh64_build_float_register_type):
39add00a 838 Rename to sh64_build_float_register_type.
77f091dd 839 (sh_sh64_register_convert_to_virtual):
39add00a 840 Rename to sh64_register_convert_to_virtual.
77f091dd 841 (sh_sh64_register_convert_to_raw):
39add00a
MS
842 Rename to sh64_register_convert_to_raw.
843
77f091dd
RM
844 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
845 sh64_media_reg_base_num, sh64_compact_reg_base_num,
2a314ed5 846 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd
RM
847 sh64_extract_return_value, sh64_show_media_regs,
848 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
2a314ed5 849 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
77f091dd 850 sh64_pseudo_register_read, sh64_pseudo_register_write,
2a314ed5
MS
851 sh64_do_pseudo_register, sh_compact_print_registers_info):
852 Delete unused variable 'tdep'.
853
7bb11558
MS
854 * sh64-tdep.c: Coding standard and spelling comment fixes.
855 (sh64_extract_return_value): Replace deprecated_store_floating
856 with store_typed_floating.
77f091dd 857 (sh_sh64_register_convert_to_raw): Replace
7bb11558
MS
858 deprecated_store_floating with store_typed_floating.
859 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
860 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
861 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd 862 sh64_extract_struct_value_address, sh64_pop_frame,
7bb11558 863 sh64_extract_return_value, sh64_store_return_value,
77f091dd 864 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
7bb11558
MS
865 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
866 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
867 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
868 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
869 deprecated_register_virtual_type, deprecated_register_raw_size,
77f091dd 870 deprecated_max_register_raw_size, or
7bb11558
MS
871 deprecated_max_register_virtual_size. Instead, just set
872 gdbarch_register_type.
39add00a
MS
873 (sh_sh64_register_raw_size): Delete.
874 (sh_sh64_register_virtual_size): Delete.
7bb11558 875
e7c27a73
DJ
8762003-11-12 Daniel Jacobowitz <drow@mvista.com>
877
878 * dwarf2read.c (struct dwarf2_cu): New type.
879
880 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
881 dwarf2_cu structure to pass down.
882
883 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
884 (add_partial_enumeration, locate_pdi_sibling, process_die)
885 (read_file_scope, read_func_scope)
886 (read_lexical_block_scope, dwarf2_get_pc_bounds)
887 (dwarf2_add_field, dwarf2_attach_fields_to_type)
888 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
889 (read_structure_scope, read_enumeration, read_array_type)
890 (read_common_block, read_namespace, read_tag_pointer_type)
891 (read_tag_ptr_to_member_type, read_tag_reference_type)
892 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
893 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
894 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
895 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
896 (read_full_die. read_attribute_value, read_attribute)
897 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
898 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
899 (die_containing_type, type_at_offset, tag_type_to_type)
900 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
901 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
902
1640b821
DJ
9032003-11-12 Daniel Jacobowitz <drow@mvista.com>
904
905 PR breakpoints/1450
906 * breakpoint.c (insert_bp_location): Fix a logic error by returning
907 0 after a catchpoint fails.
908
d7891507
MC
9092003-11-11 Michael Chastain <mec.gnu@mindspring.com>
910
911 * mips-tdep.c (msymbol_size): Delete.
912
f594e5e9
MC
9132003-11-07 Michael Chastain <mec@shout.net>
914
915 * symtab.h (struct minimal_symbol): Add size.
916 * dbxread.c: Use it.
917 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
918 Rename to record_minimal_symbol.
919 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
920 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
921 (install_minimal_symbols): Ditto.
922 * objfiles.c (terminate_minimal_symbol_table): Ditto.
923 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
924 * m68hc11-tdep.c: Ditto.
925 * mips-tdep.c: Ditto.
926 * sh64-tdep.c: Ditto.
927
68e39e73
MC
9282003-11-10 Michael Chastain <mec.gnu@mindspring.com>
929
930 * MAINTAINERS: Change my e-mail address.
931
b60eb90d
AC
9322003-11-10 Andrew Cagney <cagney@redhat.com>
933
963e2bb7
AC
934 * gdbarch.sh (return_value): Replace "inval" and "outval" with
935 "readbuf" and "writebuf".
936 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
937 * d10v-tdep.c (d10v_return_value): Ditto.
938 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
939 (ppc_sysv_abi_broken_return_value): Ditto.
940 (ppc64_sysv_abi_return_value): Ditto.
941 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
942 (ppc_sysv_abi_return_value): Ditto.
943 (ppc_sysv_abi_broken_return_value): Ditto.
944 (ppc64_sysv_abi_return_value): Ditto.
945 * values.c (register_value_being_returned): Update call.
946 * stack.c (return_command): Update call.
947 * gdbarch.h, gdbarch.c: Re-generate.
948
8aa91c1e
AC
949 * target.h (struct target_ops): Order xfer buffer parameters "read
950 write" not "write read".
951 * bfd-target.c (target_bfd_xfer_partial): Update.
952 * remote.c (remote_xfer_partial): Update.
953 * inftarg.c (child_xfer_partial): Update.
954 * target.c (default_xfer_partial): Update.
955 (target_read_partial, target_write_partial): Update.
956 (debug_to_xfer_partial): Update.
957
100bcc3f
AC
958 * arch-utils.h, arch-utils.c: Fix typo in comment.
959
b60eb90d
AC
960 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
961 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
962 (set_gdbarch_from_file): Call
963 "deprecated_current_gdbarch_select_hack".
b60eb90d 964
bf922ad9
AC
9652003-11-09 Andrew Cagney <cagney@redhat.com>
966
ebdba546
AC
967 * arch-utils.c (gdbarch_update_p): New function.
968 * gdbarch.sh (gdbarch_update_p): Delete function.
969 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 970 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
971 * gdbarch.c: Re-generate.
972
7de2341d
AC
973 * gdbarch.sh (clear_gdbarch_swap): Delete function.
974 (swapout_gdbarch_swap): Delete function.
975 (swapin_gdbarch_swap): Delete function.
976 (init_gdbarch_swap): Delete function.
977 (initialize_non_multiarch): Delete function.
978 (current_gdbarch_swap_in_hack): New function.
979 (current_gdbarch_swap_out_hack): New function.
980 (current_gdbarch_swap_init_hack): New function.
981 * gdbarch.c: Re-generate.
982
db446970
AC
983 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
984 parameter to "current_gdbarch". Add comment explaining why.
985 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
986 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
987 * gdbarch.c: Re-generate.
77f091dd 988
341e3d11
AC
989 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
990 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
991 * config/s390/xm-linux.h: Delete file.
992 * config/m88k/xm-delta88v4.h: Delete stray.
993
bf922ad9
AC
994 * Makefile.in (arch-utils.o): Update dependencies.
995 * arch-utils.c: Include "osabi.h".
996 (gdbarch_info_fill): New function.
997 * arch-utils.h (gdbarch_info_fill): Declare.
998 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
999 * gdbarch.c: Re-generate.
1000
a3640c75
MK
10012003-11-09 Mark Kettenis <kettenis@gnu.org>
1002 David S. Miller <davem@redhat.com>
1003
1004 * glibc-tdep.c, glibc-tdep.h: New files.
1005 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
1006 * config/i386/linux.mt (TDEPFILES): Likewise.
1007 * i386-linux-tdep.c (glibc-tdep.h): Include.
1008 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1009 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1010 * arm-linux-tdep.c (glibc-tdep.h): Include.
1011 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1012 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1013 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
1014 (glibc_tdep_h): Define.
1015 (glibc-tdep.o): Add dependencies.
1016 (arm-linux-tdep.o): Update dependencies.
1017 (i386-linux-tdep.o): Likewise.
1018
e60e0ab2
AC
10192003-11-09 Andrew Cagney <cagney@redhat.com>
1020
1021 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
1022 * config/mips/nm-irix6.h: Delete file.
1023 * config/mips/nm-linux.h: Update copyright.
1024 (MIPS_GNULINUX_TARGET): Delete macro.
1025 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
1026 * config/mips/xm-irix6.h: Delete file.
1027 * config/mips/linux.mh (XM_FILE): Delete definition.
1028 * config/mips/xm-linux.h: Delete file.
1029
181555e9
AC
10302003-11-09 Andrew Cagney <cagney@redhat.com>
1031
1032 * d10v-tdep.c (d10v_return_value): New function.
1033 (d10v_use_struct_convention): Delete function.
1034 (d10v_store_return_value): Delete function.
1035 (d10v_extract_struct_value_address): Delete function.
1036 (d10v_gdbarch_init): Set "return_value" instead of
1037 "extract_return_value", "store_return_value",
1038 "extract_struct_value_address", and "use_struct_convention".
1039 (RET1_REGNUM): Delete const.
1040
dea0c52f
MK
10412003-11-09 Mark Kettenis <kettenis@gnu.org>
1042
1043 From David S. Miller <davem@redhat.com>:
1044 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
1045 * gdbarch.c, gdbarch.h: Regenerated.
1046 * arch-utils.c (generic_skip_solib_resolver): New function.
1047 * arch-utils.h (generic_skip_solib_resolver): New prototype.
1048 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
1049
6314a349
AC
10502003-11-07 Andrew Cagney <cagney@redhat.com>
1051
1052 * top.c (print_gdb_version): Replace STREQ with strcmp.
1053 * valops.c (value_struct_elt_for_reference): Ditto.
1054 (value_struct_elt_for_reference): Ditto.
1055 * symtab.c (gdb_mangle_name): Ditto.
1056 (find_line_symtab): Ditto.
1057 * symmisc.c (maintenance_print_symbols): Ditto.
1058 * symfile.c (symbol_file_command): Ditto.
1059 * stabsread.c (define_symbol, read_type): Ditto.
1060 (cleanup_undefined_types, scan_file_globals): Ditto.
1061 * solib.c (solib_map_sections): Ditto.
1062 * solib-svr4.c (bfd_lookup_symbol): Ditto.
1063 * rs6000-tdep.c (skip_prologue): Ditto.
1064 * p-valprint.c (pascal_value_print): Ditto.
1065 (pascal_object_is_vtbl_ptr_type): Ditto.
1066 * objfiles.c (in_plt_section): Ditto.
1067 * minsyms.c (lookup_minimal_symbol): Ditto.
1068 (compact_minimal_symbols): Ditto.
1069 (find_solib_trampoline_target): Ditto.
1070 * mdebugread.c (parse_type): Ditto.
1071 * language.c (set_language_command): Ditto.
1072 (set_type_command, set_range_command): Ditto.
1073 * f-lang.c (add_common_block): Ditto.
1074 (add_common_block): Ditto.
1075 (find_first_common_named): Ditto.
1076 (patch_all_commons_by_name): Ditto.
1077 * elfread.c (elf_locate_sections): Ditto.
1078 (elf_locate_sections): Ditto.
1079 (elfstab_offset_sections): Ditto.
1080 * dwarf2read.c (dwarf2_locate_sections): Ditto.
1081 * dbxread.c (add_old_header_file): Ditto.
1082 (find_corresponding_bincl_psymtab): Ditto.
1083 (read_dbx_symtab, process_one_symbol): Ditto.
1084 * coffread.c (patch_opaque_types): Ditto.
1085 * cli/cli-decode.c (delete_cmd): Ditto.
1086 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1087 * c-typeprint.c (c_type_print_base): Ditto.
1088 * breakpoint.c (bpstat_stop_status): Ditto.
1089 (clear_command, breakpoint_re_set_one): Ditto.
1090
49df298f
AC
10912003-11-07 Andrew Cagney <cagney@redhat.com>
1092
1093 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
1094 * bcache.c (struct bstring): Make "length" an unsigned short, add
1095 "half_hash".
1096 (struct bcache): Add "half_hash_error_count".
1097 (bcache): Compute and save the "half_hash". Compare the
1098 "half_hash" before comparing the length. Update
1099 half_hash_error_count.
1100
f168dd80
AC
11012003-11-07 Andrew Cagney <cagney@redhat.com>
1102
1103 * inftarg.c (child_xfer_partial): New function
1104 (init_child_ops): Set "to_xfer_partial".
1105
05580c65
AC
11062003-11-07 Andrew Cagney <cagney@redhat.com>
1107
1108 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1109 set "return_value" instead of "use_struct_convention".
1110 (ppc_linux_use_struct_convention): Delete function.
1111 (ppc_linux_return_value): New function.
1112 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1113 (ppc_sysv_abi_broken_return_value): New function.
1114 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1115 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1116 static.
1117 (ppc_sysv_abi_extract_return_value): Delete function.
1118 (ppc_sysv_abi_broken_extract_return_value): Delete function.
1119 (ppc_sysv_abi_store_return_value): Delete function.
1120 (ppc_sysv_abi_broken_store_return_value): Delete function.
1121 (ppc_sysv_abi_use_struct_convention): Delete function.
1122 (ppc64_sysv_abi_use_struct_convention): Delete function.
1123 (ppc64_sysv_abi_extract_return_value): Delete function.
1124 (ppc64_sysv_abi_store_return_value): Delete function.
1125 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1126 (ppcnbsd_init_abi): Set "return_value", instead of
1127 "use_struct_convention", "extract_return_value", and
1128 "store_return_value".
1129 (ppcnbsd_use_struct_convention): Delete function.
1130 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1131 (ppc_sysv_abi_return_value): Declare.
1132 (ppc_sysv_abi_broken_return_value): Declare.
1133 (ppc_sysv_abi_use_struct_convention): Delete.
1134 (ppc_sysv_abi_store_return_value): Delete.
1135 (ppc_sysv_abi_extract_return_value): Delete.
1136 (ppc_sysv_abi_broken_store_return_value): Delete.
1137 (ppc_sysv_abi_broken_extract_return_value): Delete.
1138 (ppc64_sysv_abi_use_struct_convention): Delete.
1139 (ppc64_sysv_abi_extract_return_value): Delete.
1140 (ppc64_sysv_abi_store_return_value): Delete.
1141 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1142 set "return_value" instead of "extract_return_value",
1143 "store_return_value", and "use_struct_convention".
1144
1763fba4
MK
11452003-11-07 Mark Kettenis <kettenis@gnu.org>
1146
22c7ba1a
MK
1147 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1148
1763fba4
MK
1149 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1150 fscanf.
1151
fc07cc2d
MK
11522003-11-07 Mark Kettenis <kettenis@gnu.org>
1153
1154 * fbsd-proc.c: Fix formatting.
1155
6a748db6
KB
11562003-11-06 Kevin Buettner <kevinb@redhat.com>
1157
1158 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1159 Define.
1160 (new_variant): Set name for iacc0_regnum.
1161 (frv_register_name): Accommodate pseudo-registers.
1162 (frv_register_type): Add case for iacc0_regnum.
1163 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1164 (frv_gdbarch_init): Set number of pseudo registers. Establish
1165 pseudo-register read/write methods.
1166
bf896cb0
AC
11672003-11-06 Andrew Cagney <cagney@redhat.com>
1168
1169 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1170 * top.c (command_line_input): Ditto.
1171 * objc-exp.y (yylex): Ditto.
1172 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1173 * jv-exp.y (yylex): Ditto.
1174 * f-exp.y (yylex): Ditto.
1175 * event-top.c (command_line_handler): Ditto.
1176 * environ.c (get_in_environ): Ditto.
1177 (set_in_environ): Ditto.
1178 * dwarfread.c (handle_producer): Ditto.
1179 * dbxread.c (process_one_symbol): Ditto.
1180 * c-typeprint.c (c_type_print_base): Ditto.
1181 * c-exp.y (yylex): Ditto.
1182
0b603eba
AC
11832003-11-06 Andrew Cagney <cagney@redhat.com>
1184 Jeff Johnston <jjohnstn@redhat.com>
1185
1186 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1187 (init_dummy_target): Set "to_xfer_partial".
1188
9cedbfec
AC
11892003-11-06 Andrew Cagney <cagney@redhat.com>
1190
1191 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1192 REGISTER_CONVENTION.
1193
26bb91f3
DJ
11942003-11-06 Daniel Jacobowitz <drow@mvista.com>
1195
1196 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1197 static.
1198
0bde7532
DJ
11992003-11-06 Daniel Jacobowitz <drow@mvista.com>
1200
1201 * breakpoint.c (remove_breakpoint): Take an bp_location
1202 instead of a breakpoint argument. Check the bp_location's type.
1203 Fix a reversed condition for hardware breakpoints.
1204
1205 (insert_bp_location): Update call to remove_breakpoint.
1206 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1207 (remove_hw_watchpoints): Likewise.
1208 (reattach_breakpoints): Likewise.
1209 (detach_breakpoints): Likewise.
1210 (delete_breakpoint): Likewise.
1211
075f6582
DJ
12122003-11-06 Daniel Jacobowitz <drow@mvista.com>
1213
1214 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1215 (beakpoint_init_inferior): Likewise.
1216 (breakpoint_here_p): Likewise. Only check addresses for software
1217 or hardware breakpoints.
1218 (breakpoint_inserted_here_p): Likewise.
1219 (breakpoint_thread_match): Likewise. Correct comment.
1220 (bpstat_have_active_hw_watchpoints): Likewise.
1221 (check_duplicates): Likewise.
1222
879bfdc2
DJ
12232003-11-06 Daniel Jacobowitz <drow@mvista.com>
1224
1225 * breakpoints.c (insert_bp_location): New function, broken out
1226 from insert_breakpoints. Work on an bp_location instead of a
1227 breakpoint.
1228 (insert_breakpoints): Use it.
1229
cf3a9e5b
DJ
12302003-11-06 Daniel Jacobowitz <drow@mvista.com>
1231
1232 * breakpoint.h (struct bp_location): Add section.
1233 (struct breakpoint): Remove section.
1234 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1235 (breakpoint_here_p, breakpoint_inserted_here_p)
1236 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1237 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1238 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1239 section through loc.
1240
ffce0d52
DJ
12412003-11-06 Daniel Jacobowitz <drow@mvista.com>
1242
1243 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1244 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1245
e049a4b5
DJ
12462003-11-06 Daniel Jacobowitz <drow@mvista.com>
1247
1248 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1249 arguments. Initialize owner and type for the new breakpoint
1250 location item.
1251 (set_raw_breakpoint): Update call to allocate_bp_location.
1252
7cc221ef
DJ
12532003-11-06 Daniel Jacobowitz <drow@mvista.com>
1254
1255 * breakpoint.h (struct bp_location): Add a chain pointer.
1256 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1257 macros.
1258 (bp_location_chain): New variable.
1259 (allocate_bp_location): New function.
1260 (set_raw_breakpoint): Use it.
1261 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1262
5cab636d
DJ
12632003-11-06 Daniel Jacobowitz <drow@mvista.com>
1264
1265 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1266 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 1267 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
1268 * breakpoint.c (condition_command, read_memory_nobpt)
1269 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1270 (reattach_breakpoints, update_breakpoints_after_exec)
1271 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1272 (breakpoint_init_inferior, breakpoint_here_p)
1273 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1274 (breakpoint_thread_match, bpstat_stop_status)
1275 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1276 (describe_other_breakpoints, check_duplicates)
1277 (make_breakpoint_permanent, create_thread_event_breakpoint)
1278 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1279 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1280 (watch_command_1, print_one_exception_catchpoint)
1281 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1282 use the breakpoint's ->loc.
1283 (set_raw_breakpoint): Likewise. Initialize ->loc.
1284 (delete_breakpoint): Likewise. Free ->loc.
1285
7be0c536
AC
12862003-11-05 Andrew Cagney <cagney@redhat.com>
1287
4c7d882e
AC
1288 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1289 macro.
1290 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1291 * config/i386/tm-cygwin.h
1292 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1293 * config/powerpc/tm-linux.h
1294 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1295 (at_subroutine_call_instruction_target): Delete declaration.
1296 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1297 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1298 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1299
7be0c536
AC
1300 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1301 "struct bfd_section" and "struct bfd".
1302 * target.h (struct section_table): Ditto.
1303 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1304 * solib-svr4.c (elf_locate_base): Ditto.
1305 * pa64solib.c (dld_cache_t): Ditto.
1306 * objfiles.h (struct obj_section): Ditto.
1307 * objfiles.c (add_to_objfile_sections): Ditto.
1308 * exec.c (bfdsec_to_vmap): Ditto.
1309 (add_to_section_table): Ditto.
1310 (build_section_table): Ditto.
1311 * corelow.c (get_core_register_section): Ditto.
1312 * coffread.c (find_linenos): Ditto.
1313 * elfread.c (elf_interpreter): Delete #if0'd function.
1314
1315 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1316 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1317 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1318 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1319
1320 * arch-utils.h (generic_cannot_extract_struct_value_address):
1321 Delete declaration.
1322 * wince.c (_initialize_wince): Fix multi-line string.
1323 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1324
d8fe84e3
EZ
13252003-11-05 Elena Zannoni <ezannoni@redhat.com>
1326
1327 * top.c (execute_command): Fix broken logic for command execution
1328 while inferior is running in async mode.
1329
cbdfc7c0
MK
13302003-11-06 Mark Kettenis <kettenis@gnu.org>
1331
1332 * dwarf2-frame.c (execute_cfa_program): Mark register as
1333 REG_SAVED_REG for DW_CFA_register opcode.
1334
dac94105
MK
13352003-11-05 Mark Kettenis <kettenis@gnu.org>
1336
1337 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1338 %rsp, %rip and %eflags to match ABI-change.
1339
85bf2b91
JJ
13402003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1341
1342 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
77f091dd
RM
1343 (ia64_gdbarch_init): Don't bother calculating the os.
1344 Instead use the gdbarch_info struct and look at the osabi field.
1345 Also use gdbarch_list_lookup_by_info() to look for a
1346 candidate gdbarch.
85bf2b91 1347
cd31fb03
KB
13482003-11-05 Kevin Buettner <kevinb@redhat.com>
1349
1350 * frv-tdep.c (frv_register_byte): Delete.
1351 (frv_extract_return_value, frv_store_return_value)
1352 (frv_extract_struct_value_address): Don't call frv_register_byte().
1353 Convert to non-deprecated form.
1354 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1355 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1356 set_gdbarch_deprecated_store_return_value(), and
1357 set_gdbarch_deprecated_extract_struct_value_address() into
1358 non-deprecated forms.
1359
0a056982
AC
13602003-11-05 Andrew Cagney <cagney@redhat.com>
1361
1362 * mips-tdep.c (mips_dump_tdep): Do not print
1363 PRINT_EXTRA_FRAME_INFO.
1364 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1365 Rename PRINT_EXTRA_FRAME_INFO.
1366 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1367 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1368 (mips_print_extra_frame_info): Delete declaration.
1369 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1370
29e0a062
EZ
13712003-11-05 Elena Zannoni <ezannoni@redhat.com>
1372
1373 * coffread.c (coff_symtab_read): Remove passing of info parameter
1374 to prim_record_minimal_symbol_and_info.
1375
8af580fc
EZ
13762003-11-05 Elena Zannoni <ezannoni@redhat.com>
1377
1378 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1379 (decode_base_type): Delete ifdeffed out code.
1380
507836c0
AC
13812003-11-04 Andrew Cagney <cagney@redhat.com>
1382
1383 * symtab.c (find_active_alias): Delete function.
1384 (lookup_block_symbol): Delete alias code.
1385 * stabsread.c (resolve_live_range): Delete function.
1386 (add_live_range): Delete function.
1387 (resolve_symbol_reference): Delete function.
1388 (define_symbol): Delete live range and alias code.
1389 (scan_file_globals): Delete alias code.
1390 * symtab.h (SYMBOL_RANGES): Delete macro.
1391 (struct range_list): Delete structure.
1392 (struct symbol): Delete field "ranges".
1393 (SYMBOL_ALIASES): Delete macro.
1394 (struct alias_list): Delete structure.
1395 (struct symbol): Delete field "aliases".
1396
1083b3bc
MS
13972003-11-04 Michael Snyder <msnyder@redhat.com>
1398
77f091dd 1399 * MAINTAINERS: Remove myself as owner of breakpoints and
1083b3bc
MS
1400 of sparc/solaris.
1401
474e5826
CV
14022003-11-03 Corinna Vinschen <vinschen@redhat.com>
1403
1404 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1405 (sh_sh4al_dsp_register_name): Ditto.
1406 (sh4_nofpu_show_regs): Ditto.
1407 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1408 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1409
2160782c
AC
14102003-11-03 Andrew Cagney <cagney@redhat.com>
1411
1412 * bcache.c: Include "gdb_assert.h".
1413 (struct bcache): Add fields "expand_count" and
1414 "expand_hash_count".
1415 (expand_hash_table): Update the expand counts.
1416 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1417 on object sizes and hashes.
1418 * Makefile.in (bcache.o): Update dependencies.
1419
85302095
AC
14202003-11-03 Andrew Cagney <cagney@redhat.com>
1421
1422 * exec.c (xfer_memory): Eliminate xfer_fn.
1423
526eef89
KB
14242003-10-31 Kevin Buettner <kevinb@redhat.com>
1425
1426 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1427 (opcodes/frv-desc.h): Include.
1428 (iacc0h_regnum, iacc0l_regnum): Define.
1429 (last_spr_regnum, frv_num_regs): Update.
1430 (new_variant): Don't supply default names for holes in the SPRs.
1431 Supply names for iacc0h_regnum and iacc0l_regnum.
1432 (frv_register_type): Use symbolic constants first_fpr_regnum and
1433 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1434 builtin_type_int instead of builtin_type_int32.
1435 (frv_register_sim_regno): New function.
1436 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1437 * Makefile.in (gdb_sim_frv_h): Define.
1438 (frv-tdep.o): Update dependencies.
1439
9e815ec2
AC
14402003-10-31 Andrew Cagney <cagney@redhat.com>
1441
1442 * avr-tdep.c (avr_frame_this_id): Do not call
1443 deprecated_inside_entry_file.
1444 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1445 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1446 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1447 * arm-tdep.c (arm_prologue_this_id): Ditto.
1448 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1449
e372db49
JB
14502003-10-31 Jim Blandy <jimb@redhat.com>
1451
1452 * elfread.c (elf_symtab_read): Allocate correct number of tail
1453 elements to sectinfo structure. (Fix from Woody LaRue.)
1454
e8bcf01f
AC
14552003-10-31 Andrew Cagney <cagney@redhat.com>
1456
1457 * stack.c (return_command): Use get_frame_type, instead of
1458 CALL_DUMMY_HAS_COMPLETED.
1459 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1460 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1461
4c05fe53
MK
14622003-10-31 Mark Kettenis <kettenis@gnu.org>
1463
1464 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1465 explicitly specify size of array.
1466 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1467 TDEP->sc_num_regs.
1468
c8b91b89
AC
14692003-10-31 Andrew Cagney <cagney@redhat.com>
1470
1471 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1472 function.
1473 (s390_gdbarch_init): Set extract_struct_value_address.
1474 * arch-utils.c (generic_cannot_extract_struct_value_address):
1475 Delete function.
1476 * arch-utils.h (generic_cannot_extract_struct_value_address):
1477 Delete definition.
1478
fdfb6fc8
MK
14792003-10-31 Mark Kettenis <kettenis@gnu.org>
1480
1481 * i386-linux-nat.c (fetch_core_registers): Remove.
1482 (linux_elf_core_fns): Remove.
1483 (_initialize_i386_linux_nat): Remove.
1484
2f4950cd
AC
14852003-10-31 Andrew Cagney <cagney@redhat.com>
1486
1487 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1488 "exec.h".
1489 (exec_entry_point): New function.
1490 (enable_break): Create a "tmp_bfd_target", use that and
1491 entry_point_address when computing the relocation offset.
1492 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1493 * Makefile.in (solib-svr4.o): Update dependencies.
1494
bba2d28d
AC
14952003-10-31 Andrew Cagney <cagney@redhat.com>
1496
1497 * defs.h (XZALLOC): Define.
1498 * target.h (struct target_ops): Add "to_data";
1499 * bfd-target.h, bfd-target.c: New files.
1500 * Makefile.in (SFILES): Add "bfd-target.c".
1501 (COMMON_OBS): Add "bfd-target.o".
1502 (bfd-target.o): Specify dependencies.
1503 (bfd_target_h): Define.
1504 * defs.h (XZALLOC): Define.
1505
6066c3de
AC
15062003-10-31 Andrew Cagney <cagney@redhat.com>
1507
1508 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1509 adjust_breakpoint_address.
1510 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1511 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1512 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1513 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1514
4b8a223f
AC
15152003-10-31 Andrew Cagney <cagney@redhat.com>
1516
1517 * target.h (struct target_ops): Replace "to_read_partial" and
1518 "to_write_partial" with "to_xfer_partial". Update comments.
1519 * target.c (debug_to_write_partial): Delete function.
1520 (debug_to_xfer_partial): Replace debug_to_read_partial.
1521 (add_target, update_current_target, setup_target_debug): Set
1522 "to_xfer_partial" instead of "to_read_partial" and
1523 "to_write_partial".
1524 (default_xfer_partial): Replace "default_write_partial".
1525 (default_read_partial): Delete.
1526 (target_read_partial, target_write_partial): Call
1527 "to_xfer_partial".
1528 * remote.c (init_remote_ops): Set "to_xfer_partial".
1529 (init_remote_async_ops): Ditto.
1530 (remote_xfer_partial): Replace "remote_read_partial".
1531
66a72d25
MK
15322003-10-31 Mark Kettenis <kettenis@gnu.org>
1533
1534 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1535 registers in `fxsave' format.
1536 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1537
9a12a2a0
MK
15382003-10-30 Mark Kettenis <kettenis@gnu.org>
1539
e9f1aad5
MK
1540 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1541 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1542 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1543
bb489b3c
MK
1544 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1545 specify size of array.
1546 (i386_linux_init_abi): Remove initialization of
1547 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1548 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1549
da285bc4
MK
1550 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1551 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1552 core-regset.o.
1553
9a12a2a0
MK
1554 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1555 the ELF header.
1556
0e24ac5d
MK
15572003-10-29 Mark Kettenis <kettenis@gnu.org>
1558
6d6d8e9c
MK
1559 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1560 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1561 core-regset.o.
1562
25e60c9b
MK
1563 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1564
0e24ac5d
MK
1565 * corelow.c: Include "arch-utils.h", "regset.h" and
1566 "gdb_assert.h".
1567 (core_gdbarch): New variable.
1568 (sniff_core_bfd): Don't sniff if we have support for register sets
1569 in CORE_GDBARCH.
1570 (core_close): Reset CORE_GDBARCH.
1571 (core_open): Initialize CORE_GDBARCH.
1572 (get_core_register_section): Use register sets if they are
1573 supported by CORE_GDBARCH.
1574 (get_core_registers): Don't print error message if we have support
1575 for register sets in CORE_GDBARCH.
1576
0a0a4ac3
AC
15772003-10-29 Andrew Cagney <cagney@redhat.com>
1578
1579 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1580 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1581
7b097ae3
MK
15822003-10-29 Mark Kettenis <kettenis@gnu.org>
1583
1584 * objfiles.h (clear_objfile_data): New prototype.
1585 * objfiles.c (clear_objfile_data): New function.
1586 * symfile.c (reread_symbols): Clear per-objfile data.
1587
46f45a4a 15882003-10-28 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 1589
46f45a4a
JJ
1590 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1591 printf_unfiltered instead of printf_filtered for output messages.
1592 (add_symbol_file_command): Ditto.
1593 (reread_symbols): Ditto.
1594 (overlay_auto_command): Ditto.
1595 (overlay_manual_command): Ditto.
1596 (overlay_off_command): Ditto.
1597
2b026650
MK
15982003-10-27 Mark Kettenis <kettenis@gnu.org>
1599
1600 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1601 (gdbarch_from_bfd): New function.
1602 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1603 deprecated_select_gdbarch_hack.
1604 * arch-utils.h (gdbarch_from_bfd): New prototype.
1605
0bcad584 16062003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1607
1608 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1609 arch_info. Use warning instead of fprintf_filtered. Do not use
1610 deprecated bfd_printable_arch_mach.
1611
7f398216
KB
16122003-10-26 Kevin Buettner <kevinb@redhat.com>
1613
1614 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1615 Delete.
1616 (frv_register_type): Rename from frv_register_virtual_type. Add
1617 ``struct gdbarch *'' parameter.
1618 (frv_gdbarch_init): Delete calls to the following functions:
1619 set_gdbarch_deprecated_size(),
1620 set_gdbarch_deprecated_register_bytes(),
1621 set_gdbarch_deprecated_register_raw_size(),
1622 set_gdbarch_deprecated_max_register_raw_size(),
1623 set_gdbarch_deprecated_register_virtual_size(),
1624 set_gdbarch_deprecated_max_register_virtual_size(),
1625 set_gdbarch_deprecated_register_virtual_size(),
1626 set_gdbarch_deprecated_register_virtual_type().
1627 Add call to function set_gdbarch_register_type().
1628
bcf48cc7
MK
16292003-10-26 Mark Kettenis <kettenis@gnu.org>
1630
6c7de422
MK
1631 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1632 FDOFF_REGNUM): Remove defines.
1633 * win32-nat.c (do_child_fetch_inferior_registers): Include
1634 "i387-tdep.h".
3e685d41 1635 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1636 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1637 undefine I387_ST0_REGNUM.
1638
f783586b
MK
1639 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1640 * x86-64-tdep.c (x86_64_store_return_value): Use
1641 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1642
bcf48cc7
MK
1643 Change register numbers to enumartion values.
1644 * i386-tdep.h (enum i386_regnum): New.
1645 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1646 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1647 I386_ST0_REGNUM): Remove defines.
1648 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1649 I386_EDI_REGNUM): Remove defines.
1650
b6591e8b
AC
16512003-10-24 Andrew Cagney <cagney@redhat.com>
1652
1653 * target.c: Include "gdbcore.h".
1654 (get_target_memory, get_target_memory_unsigned): New functions.
1655 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1656 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1657 Use get_target_memory_unsigned.
1658 * Makefile.in (target.o): Update dependencies.
1659
5f724446
AC
16602003-10-24 Andrew Cagney <cagney@redhat.com>
1661
ce2826aa
AC
1662 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1663 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1664 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1665 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1666 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1667
5f724446
AC
1668 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1669 (can_run_code_for): Use the OO term "singleton".
1670
fc70c2a0
AC
16712003-10-23 Andrew Cagney <cagney@redhat.com>
1672
1673 * Makefile.in (stack.o): Add $(regcache_h).
1674 * stack.c: Include "regcache.h"
1675 (return_command): Rewrite. Use get_frame_id and
1676 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1677 about unhandled return-values.
1678 * value.h (set_return_value): Delete declaration.
1679 * values.c (set_return_value): Delete function.
1680
4afcc598
JJ
16812003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1682
1683 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1684 (pseudo_regs): Add comment regarding register stack registers.
1685 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1686 (floatformat_valid): New static routine.
1687 (floatformat_ia64_ext): Add name field and set up is_valid routine
1688 to floatformat_valid().
1689 (examine_prologue): For the previous cfm, use
1690 frame_unwind_register()
1691 if the cfm is not stored in a register-stack register. Save the
1692 previous cfm value in the prev_cfm field. Add debug output.
1693 (ia64_frame_this_id): Use frame_id_build_special() to also register
1694 the bsp. Add debug output.
1695 (ia64_sigtramp_frame_this_id): Ditto.
1696 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1697 registers and also add some checks for framelessness before accepting
1698 current register values for fields such as return address. For cfm,
1699 use the cached prev_cfm field if available. Add comment to explain
1700 PSR logic. Add debug output.
1701 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1702 as part of initialization.
1703 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1704 calculated. Cache the bsp and cfm values.
1705 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1706 instead of using ia64_frame_prev_register() which doesn't expect most
1707 registers to be saved. The saved values for bsp and sp
1708 can be taken from the cache. Add debug output.
1709 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1710 the bsp.
1711
6cfae0bc
JB
17122003-10-23 Jim Blandy <jimb@redhat.com>
1713
1714 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1715 architecture the current arch can run code for --- but not if it's
1716 a superset.
1717 (can_run_code_for): New function.
1718
fcd182f9
JW
17192003-10-22 James E Wilson <wilson@specifixinc.com>
1720
1721 * MAINTAINERS: Move myself from paper trail section back to write
1722 after approval section.
1723
4646aa9d
AC
17242003-10-22 Andrew Cagney <cagney@redhat.com>
1725
1726 * exec.h: New file.
1727 * win32-nat.c: Include "exec.h".
1728 * solib.c: Include "exec.h".
1729 * target.h (build_section_table): Delete declaration.
1730 * somsolib.c: Include "exec.h".
1731 (exec_ops): Delete extern declaration.
1732 * rs6000-nat.c: Update copyright. Include "exec.h".
1733 (exec_ops): Delete extern declaration.
1734 * pa64solib.c: Update copyright. Include "exec.h".
1735 (exec_ops): Delete extern declaration.
1736 * exec.c: Update copyright. Include "exec.h".
1737 * corelow.c: Update dependencies. Include "exec.h".
1738 * Makefile.in (exec_h): Define.
1739 (exec.o, somsolib.o): Update dependencies.
1740 (pa64solib.o, corelow.o): Update dependencies.
1741
0088c768
AC
17422003-10-22 Andrew Cagney <cagney@redhat.com>
1743
1744 * target.c: Include "gdb_assert.h" (target_read): Call
1745 "target_read_partial", not "target_write_partial".
1746 (default_read_partial, default_write_partial): New function.
1747 (target_read_partial, target_write_partial): Simplify, assume that
1748 there is always a read/write method.
1749 (update_current_target, add_target): Always set "to_read_partial"
1750 and "to_write_partial".
1751 (target_write, target_read): Fail on a zero byte transfer.
1752 * Makefile.in (target.o): Update dependencies.
1753 * target.h: Update copyright date.
1754 (target_object): Fix typo.
1755
e2d0e7eb
AC
17562003-10-22 Andrew Cagney <cagney@redhat.com>
1757
1758 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1759 multi-arch method, add "targ" parameter.
77f091dd 1760 (struct target_ops): Declare.
e2d0e7eb
AC
1761 * gdbarch.h, gdbarch.c: Re-generate.
1762 * Makefile.in (c-valprint.o): Update dependencies.
1763 * arch-utils.h: Update copyright.
1764 (convert_from_func_ptr_addr_identity): Declare.
1765 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1766 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1767 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1768 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1769 * infcall.c (find_function_addr, call_function_by_hand): Update.
1770 * c-valprint.c: Include "target.h".
1771 (print_function_pointer_address): Update.
1772
f1c07ab0
AC
17732003-10-22 Andrew Cagney <cagney@redhat.com>
1774
1775 * target.c (target_close): New function.
1776 (debug_to_close): Use "target_close".
1777 (push_target): Use "target_close".
1778 (unpush_target): Use "target_close".
1779 (pop_target): Use "target_close".
1780 * target.h (struct target_ops): Add "to_xclose".
1781 (target_open): Delete macro. Move comment to "to_open".
1782 (target_close): Replace macro with function that takes a target.
1783 * top.c (quit_target): Pass "current_target" to "target_close".
1784
5520a790
EZ
17852003-10-21 Elena Zannoni <ezannoni@redhat.com>
1786
1787 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1788 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1789 * symtab.h (lookup_minimal_symbol_text): Update.
1790 * breakpoint.c (create_overlay_event_breakpoint,
1791 create_longjmp_breakpoint): Update callers.
1792 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1793 * symtab.c (find_pc_sect_line): Ditto.
1794
caa92b73
AC
17952003-10-21 Andrew Cagney <cagney@redhat.com>
1796
1797 * target.c (errno): Delete extern declaration.
1798
aa2a9a3c
JJ
17992003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1800
1801 * ia64-tdep.c: Change all occurrences of
1802 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1803 (ia64_frame_prev_register): Minor whitespace change.
1804
4beec2b7
MC
18052003-10-20 Michael Chastain <mec@shout.net>
1806
1807 * config/djgpp/fnchange.lst: Add lines for:
1808 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1809 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1810 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1811 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1812 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1813 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1814 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1815
92ad9cd9
AC
18162003-10-20 Andrew Cagney <cagney@redhat.com>
1817
1818 * values.c (register_value_being_returned): Update comments. Use
1819 "gdbarch_return_value" when available.
1820 (using_struct_return): Ditto.
1821 (set_return_value): Ditto. Use "gdbarch_return_value" when
1822 available.. Print a warning, and not an error, when an unhandled
1823 return type is encountered.
1824 * infcmd.c: Include "gdb_assert.h".
1825 (print_return_value): When gdbarch_return_value_p, and using
1826 struct return, assume that the value is not available.
1827 * defs.h (return_value_convention): Define.
1828 * gdbarch.sh (gdbarch_return_value): New predicate method.
1829 * gdbarch.h, gdbarch.c: Re-generate
1830 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1831
198beae2
AC
18322003-10-20 Andrew Cagney <cagney@redhat.com>
1833
1834 * symtab.c: Replace "struct sec" with "struct bfd_section".
1835 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1836
24d693a6 18372003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1838
1839 * config/djgpp/fnchange.lst: Add lines for:
1840 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1841 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1842 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1843
21ad8dc3
MK
18442003-10-19 Mark Kettenis <kettenis@gnu.org>
1845
1846 * amd64fbsd-nat.c (fetch_inferior_registers,
1847 store_inferior_registers): Remove functions.
1848 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1849
cced5e27
MK
18502003-10-18 Mark Kettenis <kettenis@gnu.org>
1851
1852 Add NetBSD/amd64 native configuration:
1853 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1854 * amd64nbsd-tdep.c: New file.
1855 * amd64nbsd-nat.c: New file.
1856 * amd64bsd-nat.c: New file.
1857 * config/i386/nbsd64.mh: New file.
1858 * config/i386/nbsd64.mt: New file.
1859 * configure.host: Add x86_64-*-netbsd*.
1860 * configure.tgt: Add x86_64-*-netbsd*.
1861 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1862 New targets.
1863 * NEWS (New native configurations): Mention NetBSD/amd64.
1864
666de3fd
MC
18652003-10-17 Michael Chastain <mec@shout.net>
1866
1867 * config/djgpp/fnchange.lst: Remove dead lines for:
1868 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1869 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1870 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1871 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1872 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1873 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1874 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1875 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1876 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1877 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1878 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1879 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1880 gdb/config/sparc/tm-sparclite.h,
1881 gdb/gdbtk/generic/ChangeLog-2001,
1882 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1883 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1884 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1885 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1886 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1887 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1888 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1889 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1890 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1891 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1892 itcl/iwidgets3.0.0/demos/fileselectionbox,
1893 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1894 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1895 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1896 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1897 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1898 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1899 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1900 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1901 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1902 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1903 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1904 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1905 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1906 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1907 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1908 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1909 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1910 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1911 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1912 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1913 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1914 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1915 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1916 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1917 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1918 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1919 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1920 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1921 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1922 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1923 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1924 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1925 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1926 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1927 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1928 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1929 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1930 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1931 itcl/iwidgets3.0.0/demos/scrolledframe,
1932 itcl/iwidgets3.0.0/demos/scrolledhtml,
1933 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1934 itcl/iwidgets3.0.0/demos/scrolledtext,
1935 itcl/iwidgets3.0.0/demos/selectionbox,
1936 itcl/iwidgets3.0.0/demos/selectiondialog,
1937 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1938 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1939 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1940 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1941 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1942 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1943 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1944 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1945 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1946 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1947 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1948 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1949 itcl/iwidgets3.0.0/doc/selectionbox.n,
1950 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1951 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1952 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1953 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1954 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1955 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1956 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1957 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1958 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1959 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1960 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1961 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1962 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1963 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1964 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1965 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1966 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1967 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1968 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1969 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1970 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1971 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1972 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1973 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1974 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1975 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1976 itcl/iwidgets3.0.0/tests/selectionbox.test,
1977 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1978 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1979 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1980 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1981 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1982 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1983 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1984 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1985 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1986 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1987 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1988 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1989 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1990 tk/mac/tkMacProjects.sit.hqx.
1991
1e3ff5ad
AC
19922003-10-17 Andrew Cagney <cagney@redhat.com>
1993
8db32d44
AC
1994 * target.c (target_section_by_addr): New function.
1995 (do_xfer_memory): Use "target_section_by_addr".
1996 * target.h (target_section_by_addr): Declare.
1997
1e3ff5ad
AC
1998 * target.h (struct target_ops): Add "to_read_partial" and
1999 "to_write_partial", delete "to_query".
2000 (target_read_partial, target_write_partial): Declare.
2001 (target_read, target_write): Declare.
2002 (target_query): Delete macro.
2003 * target.c (target_read_partial): New function.
2004 (target_write_partial, target_read, target_write): New function.
2005 (update_current_target): Delete inheritance of "to_query". Add
2006 comments about "to_read_partial" and "to_write_partial".
2007 (debug_to_partial_read, debug_to_partial_write): New functions.
2008 (debug_to_query): Delete function.
2009 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
2010 instead of "to_query".
2011 * remote.c (remote_read_partial): Replace "remote_query".
2012 (init_remote_ops): Set "to_read_partial" instead of "to_query".
2013 (init_remote_async_ops): Ditto.
2014 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
2015 "target_read_partial" instead of "target_query".
2016 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
2017 Use "target_read_partial" instead of "target_query".
2018
48c66725
JJ
20192003-10-17 Jeff Johnston <jjohnstn@redhat.com>
2020
2021 * frame.h (struct frame_id): Add new field: special_addr.
2022 (frame_id_build_special): New prototype.
2023 * frame.c (frame_id_build_special): New function.
2024 (frame_id_build): Change to call frame_id_build_special().
77f091dd
RM
2025 (frame_id_eq): Change to also test special_addr field.
2026 (frame_id_inner): Update comment.
48c66725 2027
7998dfc3
AC
20282003-10-17 Andrew Cagney <cagney@redhat.com>
2029
2030 * target.c (update_current_target): Perform the target cleanup.
2031 Put the target stack beneath the squashed "current_target".
2032 (add_target): Delete disabled call to "cleanup_target".
2033 (cleanup_target): Delete function.
2034 (push_target, unpush_target): Do not call "cleanup_target".
2035
9c04404e 20362003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
2037
2038 * target.c (target_stack): Change to a static target_ops.
2039 (update_current_target): Walk the "struct target_ops" stack.
2040 (pop_target, do_xfer_memory, target_info): Ditto.
2041 (find_target_beneath): Ditto.
2042 (push_target): Rewrite to use the "struct target_ops" stack.
2043 (unpush_target): Ditto.
2044 * target.h (struct target_stack_item): Delete definition.
2045 (target_stack): Delete declaration.
2046 (struct target_ops): Add field "beneath".
2047
c98a2b49 20482003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
2049
2050 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
2051 declaration.
2052 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
2053 (h8300_examine_prologue): Use h8300_normal_mode flag
2054 (h8300_gdbarch_init): Set architecture info for normal mode
2055
506fb367
DJ
20562003-10-16 Daniel Jacobowitz <drow@mvista.com>
2057
2058 * remote.c (remote_protocol_vcont): New variable.
2059 (set_remote_protocol_vcont_packet_cmd): New function.
2060 (show_remote_protocol_vcont_packet_cmd): New function.
2061 (init_all_packet_configs): Handle remote_protocol_vcont.
2062 (remote_vcont_probe): New function.
2063 (remote_vcont_resume): New function.
2064 (remote_resume): Use it.
2065 (remote_async_resume): Call remote_resume.
2066 (_initialize_remote): Add verbose-resume packet commands.
2067
65815ea1
AC
20682003-10-16 Andrew Cagney <cagney@redhat.com>
2069
2070 * infrun.c (handle_inferior_event): Add comment about
2071 "frame_id_inner" being too weak.
2072
40324f1b
EZ
20732003-10-16 Elena Zannoni <ezannoni@redhat.com>
2074
2075 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2076 second parameter, which is always null. Remove
2077 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2078 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2079 accordingly.
2080 * somsolib.c (som_solib_create_inferior_hook,
2081 som_solib_desire_dynamic_linker_symbols): Update callers.
2082 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
2083
20842003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
2085
2086 * remote-m32r-sdi.c : New file, interface to m32r on-chip
2087 debug interface, SDI (Scalable Debug Interface).
2088 * NEWS: Mention m32r SDI protocol was supported.
2089 * Makefile.in (remote-m32r-sdi.o): Add build rule.
2090 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2091
51931cbb
JJ
20922003-10-15 Jeff Johnston <jjohnstn@redhat.com>
2093
2094 * ia64-linux-tdep.c: Include gdbcore.h.
2095 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2096 (ia64_linux_sigcontext_register_addr): Find the address of the
2097 sigcontext area stored in the sigframe instead of using
77f091dd 2098 a magic offset constant.
51931cbb 2099
84e7fd53
AC
21002003-10-15 Andrew Cagney <cagney@redhat.com>
2101
2102 * remote.c (remote_search): Delete function.
2103 * target.h (target_search): Delete disabled macro.
2104 (struct target_ops): Delete disabled field "to_search".
2105
0f4d7c52
KB
21062003-10-14 Kevin Buettner <kevinb@redhat.com>
2107
2108 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2109 instead of deprecated_inside_entry_file().
2110
2e952408
CV
21112003-10-14 Corinna Vinschen <vinschen@redhat.com>
2112
2113 * sh-tdep.c: Fix copy/paste hangover in comment.
2114 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2115 mode.
2116 (sh3e_sh4_extract_return_value): Ditto.
2117
7e86466e
RH
21182003-10-13 Richard Henderson <rth@redhat.com>
2119
2120 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2121 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
2122 match c_val_print a bit closer.
2123
46a16dba
KB
21242003-10-13 Kevin Buettner <kevinb@redhat.com>
2125
2126 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2127 (frv_gdbarch_adjust_breakpoint_address): New function.
2128 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2129 method.
2130
76897487
KB
21312003-10-13 Kevin Buettner <kevinb@redhat.com>
2132
2133 * breakpoint.h (struct breakpoint): Add new member
2134 ``requested_address''.
2135 * breakpoint.c (breakpoint_adjustment_warning)
2136 (adjust_breakpoint_address): New static functions.
2137 (print_it_typical): Issue warning if breakpoint's address is different
2138 from its requested address.
2139 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2140 (breakpoint_re_set_one): Set breakpoint's
2141 ``requested_address'' field. Set ``address'' field to the
2142 result of calling adjust_breakpoint_address() on the requested
2143 address.
2144
a1131521
KB
21452003-10-13 Kevin Buettner <kevinb@redhat.com>
2146
2147 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2148 * gdbarch.h, gdbarch.c: Regenerate.
2149
6ce6d90f
MK
21502003-10-11 Mark Kettenis <kettenis@gnu.org>
2151
155c1d33
MK
2152 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2153 TDEP->sc_num_regs.
2154
8a96bc77
MK
2155 * i386fbsd-tdep.c: New file.
2156 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2157 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2158 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2159 i386bsd-tdep.c.
2160 (_initialize_i386fbsd_tdep): New function.
2161 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2162 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2163 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2164 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2165 TDEP->sc_num_regs.
2166 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2167 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2168 to initialize TDEP->sc_num_regs.
2169 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2170 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2171 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2172 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2173 FreeBSD ELF OS/ABI's here.
2174 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2175 (i386fbsd-tdep.o): New target.
2176 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2177 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2178
477f40d1
MK
2179 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2180 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2181 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2182 in initialization of TDEP->sc_num_regs.
2183
c6b33596
MK
2184 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2185 (x86_64_init_abi): Initialize regset_from_core_section if
2186 appropriate.
2187
8446b36a
MK
2188 * i386-tdep.c (i386_regset_from_core_section): New function.
2189 (i386_gdbarch_init): Initialize regset_from_core_section if
2190 appropriate.
2191 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2192
c783cbd6
MK
2193 * i386-tdep.h (struct regset): Declare opaque.
2194
6ce6d90f
MK
2195 * gdbarch.sh (regset_from_core_section): New method.
2196 (struct regset): Declare opaque.
2197 * gdbarch.c, gdbarch.h: Regenerated.
2198
b98ed7be
AM
21992003-10-11 Alan Modra <amodra@bigpond.net.au>
2200
2201 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2202 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2203 Correct test for pc within section.
2204
f6214256
MK
22052003-10-11 Mark Kettenis <kettenis@gnu.org>
2206
2207 * gdbarch.sh: Remove trailing whitepsace from comments.
2208
a8f4cde1
RM
22092003-10-08 Roland McGrath <roland@redhat.com>
2210
2211 * gcore.c (make_mem_sec): Function removed, folded into ...
2212 (gcore_create_callback): ... here. To omit a section, clear its
2213 SEC_LOAD bit rather than zeroing its size.
2214 Omit read-only sections only if they correspond to a known disk file.
2215 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2216
74276724
MS
22172003-10-10 Michael Snyder <msnyder@redhat.com>
2218
2219 * d10v-tdep.c: Fix typo in comment.
2220
e754ae69
AC
22212003-10-10 Andrew Cagney <cagney@redhat.com>
2222
2223 * rs6000-tdep.c (e500_store_return_value): Delete function.
2224 (e500_extract_return_value): Delete function.
2225 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2226 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2227 "ppc_sysv_abi_restore_return_value" where applicable.
2228 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2229 (ppc_sysv_abi_extract_return_value): Declare.
2230 (ppc_sysv_abi_broken_store_return_value): Declare.
2231 (ppc_sysv_abi_broken_extract_return_value): Declare.
2232 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2233 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2234 start of file.
2235 (do_ppc_sysv_return_value): New function.
2236 (ppc_sysv_abi_extract_return_value): New function.
2237 (ppc_sysv_abi_store_return_value): New function.
2238 (ppc_sysv_abi_broken_extract_return_value): New function.
2239 (ppc_sysv_abi_broken_store_return_value): New function.
2240 (ppc_sysv_abi_use_struct_convention): Call
2241 do_ppc_sysv_return_value.
2242
8d4ce20a
JB
22432003-10-10 J. Brobecker <brobecker@gnat.com>
2244
2245 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2246 to lookup the main function symbol.
2247
afce3d2a
CV
22482003-10-10 Corinna Vinschen <vinschen@redhat.com>
2249
2250 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2251 types correctly.
2252 (sh_push_dummy_call_fpu): Fix argument passing rules.
2253 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2254 float types.
2255 (sh3e_sh4_store_return_value): Ditto.
2256
7fe958be
EZ
22572003-10-10 Elena Zannoni <ezannoni@redhat.com>
2258
2259 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2260 comment.
2261
3f997a97
CV
22622003-10-10 Corinna Vinschen <vinschen@redhat.com>
2263
2264 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2265 more readable code. Accomodate passing of bitfields.
2266
8be9034a
AC
22672003-10-10 Andrew Cagney <cagney@redhat.com>
2268
2269 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2270 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2271 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2272 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2273 (ppc64_sysv_abi_push_dummy_call): New function.
2274 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2275 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2276 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2277
85a453d5
KI
22782003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2279
2280 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2281 * README: Ditto.
2282 * d10v-tdep.c: Ditto.
2283 * h8300-tdep.c: Ditto.
2284 * remote-e7000.c: Ditto.
2285 * remote-hms.c: Ditto.
2286 * ser-e7kpc.c: Ditto.
2287 * sh-stub.c: Ditto.
2288 * sh-tdep.c: Ditto.
2289 * sh-tdep.h: Ditto.
2290 * sh3-rom.c: Ditto.
2291 * sh64-tdep.c: Ditto.
2292 * top.c: Ditto.
2293 * wince.c: Ditto.
2294 * config/d10v/d10v.mt: Ditto.
2295 * config/sh/embed.mt: Ditto.
2296 * config/sh/linux.mt: Ditto.
2297 * config/sh/tm-linux.h: Ditto.
2298 * config/sh/tm-sh.h: Ditto.
2299 * config/sh/wince.mt: Ditto.
2300
221c12ff
AC
23012003-10-09 Andrew Cagney <cagney@redhat.com>
2302
2303 * ppc-tdep.h (struct type): Declare opaque.
2304 * x86-64-tdep.h (struct regcache): Declare opaque.
2305 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2306 coding style.
2307
ef5200c1
AC
23082003-10-09 Andrew Cagney <cagney@redhat.com>
2309
2310 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2311 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2312 (SOFTWARE_SINGLE_STEP_P): Ditto.
2313 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2314 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2315 (SOFTWARE_SINGLE_STEP_P): Ditto.
2316 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2317 software_single_step to rs6000_software_single_step.
a8f4cde1 2318
9644bbdd
AC
23192003-10-09 Andrew Cagney <cagney@redhat.com>
2320
2321 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2322
db72fa6b
MS
23232003-10-09 Michael Snyder <msnyder@redhat.com>
2324
f3efb16c
MS
2325 * frame.h: Fix typo in comment.
2326 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2327 * d10v-tdep.c: Random whitespace/comment tweaks.
2328
9a5cef92
EZ
23292003-10-09 Elena Zannoni <ezannoni@redhat.com>
2330
2331 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2332 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2333 on stack.
a8f4cde1 2334
9a5cef92
EZ
2335 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2336 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2337 in detail.
a8f4cde1 2338
0f317a0c
DJ
23392003-10-09 Daniel Jacobowitz <drow@mvista.com>
2340
2341 * remote-mips.c (mips_initialize): Remove unneeded call to
2342 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2343
bbab2f46
DJ
23442003-10-09 Daniel Jacobowitz <drow@mvista.com>
2345
2346 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2347 a memory pointer.
2348
550950b8
JJ
23492003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2350
2351 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2352 for any lwp we resume.
2353 (running_callback): Add lwps that have pending status events
2354 against them to be considered running.
2355
15c69bc7
KI
23562003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2357
2358 * m32r-tdep.c : Include "dis-asm.h".
2359 * Makefile.in (m32r-tdep.o): Update dependencies.
2360
51065942
JB
23612003-10-06 J. Brobecker <brobecker@gnat.com>
2362
2363 * completer.h (get_gdb_completer_word_break_characters): Delete.
2364 * completer.c: include language.h.
2365 (gdb_completer_word_break_characters): Delete.
2366 (get_gdb_completer_word_break_characters): Delete.
2367 (location_completer): Use the word break characters of the current
2368 language.
2369 (complete_line): Likewise.
2370 (line_completion_function): Likewise.
2371 (skip_quoted_chars): Likewise.
2372 * Makefile.in (completer.o): Add dependency on language.h.
2373 * top.c (init_main): Set the readline word break characters
2374 to GDB's default word break characters.
2375
6084f43a
JB
23762003-10-06 J. Brobecker <brobecker@gnat.com>
2377
2378 * language.h (language_defn): new field, la_word_break_characters.
2379 * language.c (unknown_language_defn): Set new field to
2380 default_word_break_characters.
2381 (auto_language_defn): Likewise.
2382 (local_language_defn): Likewise.
2383 * ada-lang.c (ada_language_defn): Likewise.
2384 * c-lang.c (c_language_defn): Likewise.
2385 (cplus_language_defn): Likewise.
2386 (asm_language_defn): Likewise.
2387 (minimal_language_defn): Likewise.
2388 * f-lang.c (f_language_defn): Likewise.
2389 * jv-lang.c (java_language_defn): Likewise.
2390 * m2-lang.c (m2_language_defn): Likewise.
2391 * objc-lang.c (objc_language_defn): Likewise.
2392 * p-lang.c (pascal_language_defn): Likewise.
2393 * scm-lang.c (scm_language_defn): Likewise.
2394
944fcfab
AC
23952003-10-06 Andrew Cagney <cagney@redhat.com>
2396
2397 * ppc-sysv-tdep.c: Re-indent.
2398
9f0a5303
JB
23992003-10-06 J. Brobecker <brobecker@gnat.com>
2400
2401 * language.h (default_word_break_characters): Add prototype.
2402 * language.c (default_word_break_characters): New function.
2403
7270b6ed
AS
24042003-10-06 Andreas Schwab <schwab@suse.de>
2405
2406 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2407 with %eax.
2408
a5d61f66
AC
24092003-10-06 Andrew Cagney <cagney@redhat.com>
2410
2411 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2412 "h8500-tdep.c".
2413 (z8k-tdep.o): Delete custom build rule.
2414
28a86f5c
AC
24152003-10-06 Andrew Cagney <cagney@redhat.com>
2416
1bfd8a83
AC
2417 * Makefile.in: Update all dependencies.
2418
17144ef8
AC
2419 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2420 No longer list PA as as obsolete candidate. List m32r as
2421 broken instead of obsolete.
a8f4cde1 2422
a5679ae5
AC
2423 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2424 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2425 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2426 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2427 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2428 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2429 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2430 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2431 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2432 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2433 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2434 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2435 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2436 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2437 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2438 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2439 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2440 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2441 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2442 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2443 * config/z8k/z8k.mt: Ditto.
2444
4a8269c0
AC
2445 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2446 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2447 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2448 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2449 sparclite were removed.
2450 * configure.host, configure.tgt: Remove corresponding tuples.
2451
41989fcd
AC
2452 * breakpoint.c, breakpoint.h: Remove obsolete code.
2453 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2454 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2455 * stabsread.h, xcoffread.c: Ditto.
2456
28a86f5c
AC
2457 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2458 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2459 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2460 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2461
4efdaa0d
DL
24622003-10-06 David Lecomber <dsl@sources.redhat.com>
2463
2464 * f-valprint.c: Reformatting
2465
ae53de43
MK
24662003-10-06 Mark Kettenis <kettenis@gnu.org>
2467
a8bb57e7
MK
2468 * x86-64-tdep.c: Remove duplicate comment.
2469
ae53de43
MK
2470 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2471 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2472 names for return values. This fixes a bug since we looked at %rbx
2473 instead of %rdx.
2474
473f17b0
MK
24752003-10-05 Mark Kettenis <kettenis@gnu.org>
2476
2c261fae
MK
2477 * x86-64-tdep.c: Include "regset.h".
2478
473f17b0
MK
2479 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2480 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2481 sizeof_fpregset.
2482 * i386-tdep.c: Include "regset.h".
2483 (i386_supply_gregset): New function.
2484 (i386_supply_fpregset): New function.
2485 (i386_gdbarch_init): Initialze register set-related members of
2486 TDEP.
2487 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2488 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2489
afd48b75
AC
24902003-10-03 Andrew Cagney <cagney@redhat.com>
2491
2492 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2493 set extract_return_value, store_return_value and
2494 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2495 ppc64_sysv_abi_store_return_value and
2496 ppc64_sysv_abi_use_struct_convention.
2497 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2498 (ppc64_sysv_abi_store_return_value): Declare.
2499 (ppc64_sysv_abi_use_struct_convention): Declare.
2500 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2501 (ppc64_sysv_abi_extract_return_value): New function.
2502 (ppc64_sysv_abi_store_return_value): New function.
2503 (ppc64_sysv_abi_use_struct_convention): New function.
2504 (ppc64_sysv_abi_return_value): New function.
2505
9b540880
AC
25062003-10-03 Andrew Cagney <cagney@redhat.com>
2507
2508 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2509 convert a descriptor to a function when it's in the ".opd"
2510 section.
2511
8748518b
CV
25122003-10-03 Corinna Vinschen <vinschen@redhat.com>
2513
2514 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2515 reg_size to keep GCC silent.
2516
0fd85043
CV
25172003-10-03 Corinna Vinschen <vinschen@redhat.com>
2518
2519 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2520 base for DW_EH_PE_textrel encodings.
2521 (read_encoded_value): Add a DW_EH_PE_textrel case.
2522 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2523 section.
2524
37b517aa
MK
25252003-10-03 Mark Kettenis <kettenis@gnu.org>
2526
2527 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2528
12c266ea
AC
25292003-10-02 Andrew Cagney <cagney@redhat.com>
2530
2531 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2532 REGISTER_RAW_SIZE.
2533 * gdbarch.h, gdbarch.c: Re-generate.
2534 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2535 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2536 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2537 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2538 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2539 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2540 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2541 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2542 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2543 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2544 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2545 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2546 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2547 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2548 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2549 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2550
78ba4af6
JB
25512003-10-02 Jim Blandy <jimb@redhat.com>
2552
2553 * dwarf2read.c (struct die_info): Doc fix.
2554
617daa0e
CV
25552003-10-02 Corinna Vinschen <vinschen@redhat.com>
2556
2557 * sh-tdep.c: Running thru gdb_indent.sh.
2558
e5e33cd9
CV
25592003-10-02 Corinna Vinschen <vinschen@redhat.com>
2560
2561 * sh-tdep.c (sh_justify_value_in_reg): New function.
2562 (sh_stack_allocsize): Ditto.
2563 (flt_argreg_array): New array used for floating point argument
2564 passing.
2565 (sh_init_flt_argreg): New function.
a8f4cde1 2566 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2567 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2568 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2569 Fix argument passing strategy.
2570 (sh_push_dummy_call_nofpu): Ditto.
2571
5fe830e4
AC
25722003-10-01 Andrew Cagney <cagney@redhat.com>
2573
2574 * value.h (register_value_being_returned): Declare. Replace
2575 "value_being_returned".
2576 * infcall.c (call_function_by_hand): Use
2577 register_value_being_returned.
2578 * infcmd.c (print_return_value): Call
2579 "register_value_being_returned", handle struct return locally.
2580 * values.c (register_value_being_returned): New function. Replace
2581 "value_being_returned".
a8f4cde1 2582
5fe830e4 25832003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2584
2585 * linux-proc.c (linux_do_registers): New function.
2586 (linux_make_note_section): Use linux_do_registers in case of
2587 single threaded inferior programs.
2588
64f395bf
AC
25892003-10-01 Andrew Cagney <cagney@redhat.com>
2590
2591 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2592 use STRUCT_ADDR. When not using "struct return convention", pass
2593 "0" to "value_being_returned". Add FIXMEs.
2594 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2595 value_being_returned. Add comments.
2596 * values.c (value_being_returned): Add fixme.
2597 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2598 (hppa_value_returned_from_stack): Add FIXME.
2599
639d11d3
DC
26002003-09-30 David Carlton <carlton@kealia.com>
2601
2602 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2603 'has_children' and 'next' by 'child' and 'sibling'.
2604 (read_comp_unit): Rework algorithm, breaking body into
2605 read_die_and_children and read_die_and_siblings.
2606 (read_die_and_children, read_die_and_siblings): New.
2607 (read_full_die): Add 'has_children' argument; set it instead of
2608 the die's 'has_children' field. Minor formatting cleanup.
2609 (free_die_list): Use die->child and die->sibling instead of
2610 die->next.
2611 (dump_die_list): Ditto.
2612 (sibling_die): Use die->sibling.
2613 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2614 'has_children' and 'next' fields.
a8f4cde1
RM
2615 (process_die, read_file_scope, read_func_scope)
2616 (read_lexical_block_scope, read_structure_scope)
2617 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2618 (read_namespace, read_subroutine_type, dump_die): Ditto.
2619
5bffac25
AC
26202003-09-30 Andrew Cagney <cagney@redhat.com>
2621
2622 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2623 to 224, not 220.
2624
f30992d4
AC
26252003-09-30 Andrew Cagney <cagney@redhat.com>
2626
2627 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2628 REGISTER_VIRTUAL_SIZE.
2629 * gdbarch.h, gdbarch.c: Regenerate.
2630 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2631 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2632 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2633
2e092625
AC
26342003-09-29 Andrew Cagney <cagney@redhat.com>
2635
2636 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2637 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2638 * gdbarch.h, gdbarch.c: Regenerate.
2639 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2640 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2641
2642 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2643 * remote-vxmips.c (vx_read_register): Ditto.
2644 * remote-vx68.c (vx_read_register): Ditto.
2645 * gnu-nat.c (inf_validate_procs): Ditto.
2646
7a5dd6ee
JB
26472003-09-29 J. Brobecker <brobecker@gnat.com>
2648
2649 * infcall.c (call_function_by_hand): Fix build failure
2650 introduced in the previous change to this file.
2651
1fe43d45
AC
26522003-09-29 Andrew Cagney <cagney@redhat.com>
2653
2654 * NEWS: Mention Objective-C.
2655
e28a332c
JG
26562003-09-29 Jerome Guitton <guitton@act-europe.fr>
2657
2658 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2659 test if the register has been saved on the stack.
2660 (arm_scan_prologue_cache): When analysing the instruction
2661 "str lr, [sp, #-4]", save the address where lr has been stored.
2662
9ff63c35
AC
26632003-09-28 Andrew Cagney <cagney@redhat.com>
2664
7f5f525d
AC
2665 * frame.c (frame_read_unsigned_register): Delete function.
2666 * frame.h (frame_read_unsigned_register): Delete declaration.
2667 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2668 get_frame_register_unsigned.
2669 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2670 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2671 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2672
7f5f525d
AC
2673 * frame.h (frame_read_register): Delete declaration.
2674 * frame.c (frame_read_register): Delete function.
2675 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2676 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2677 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2678 * mips-tdep.c (mips_register_to_value): Ditto.
2679 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2680 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2681
2682 * frame.c (frame_read_signed_register): Delete function.
2683 (frame_read_unsigned_register): Update comments.
2684 * frame.h (frame_read_signed_register): Delete declaration.
2685 * h8300-tdep.c (h8300_print_register): Use
2686 get_frame_register_signed.
2687 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2688
9ff63c35
AC
2689 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2690 Rename VALUE_RETURNED_FROM_STACK.
2691 * infcmd.c (print_return_value): Update.
2692 * infcall.c (call_function_by_hand): Update.
2693
41d041d6
MK
26942003-09-28 Mark Kettenis <kettenis@gnu.org>
2695
2696 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2697 regcache argument and reverse the order of the other two
2698 arguments. Remove local regcache variable. Determine
2699 architecture from REGCACHE. Update comments.
2700 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2701 reverse the order of the other two arguments. Remove local
2702 regcache variable. Determine architecture from REGCACHE. Update
2703 comments.
2704 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2705 prototypes. Update comments.
2706 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2707 comment.
2708 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2709 Update.
2710 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2711 * i386-interix-nat.c (supply_fpregset): Update.
2712 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2713 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2714 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2715 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2716 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2717 Update.
2718 * i386obsd-tdep.c (fetch_core_registers): Update.
2719 * i386v4-nat.c (supply_fpregset): Update.
2720 * x86-64-linux-nat.c (supply_fpregset): Update.
2721 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2722
1cb97e17
MK
27232003-09-27 Mark Kettenis <kettenis@gnu.org>
2724
5716833c
MK
2725 * i386-tdep.h: Put opaque declarations in alphabetical
2726 order. Remove spurious whitespace.
2727 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2728 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2729 * i386-tdep.c (MM0_REGNUM): Remove define.
2730 (i386_mmx_regnum_p): Add gdbarch argument.
2731 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2732 Rewrite using new macro definitions for FPU/SSE registers.
2733 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2734 definitions from i387-tdep.h.
2735 (i386_register_name): Update.
2736 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2737 new macro definitions for FPU/SSE registers.
2738 (i386_extract_return_value): Determine whether floating-point
2739 registers are present by examining REGCACHE's architecture.
2740 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2741 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2742 FPU/SSE registers.
2743 (i386_register_type): Update.
2744 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2745 definitions for FPU registers. Use REGCACHE's architecture to
2746 determine the appropriate register numbers.
2747 (i386_pseudo_register_read, i386_pseudo_register_write,
2748 i386_register_reggroup_p): Update.
2749 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2750 TDEP->mm0_regnum.
2751 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2752 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2753 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2754 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2755 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2756 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2757 *' to `void *'.
2758 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2759 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2760 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2761 definitions for FPU/SSE registers.
2762 (FXSAVE_MXCSR_ADDR): New define.
2763 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2764 TDEP->mm0_regnum.
2765 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2766 (I387_ST0_REGNUM): Define.
2767
41d35cb0
MK
2768 * regcache.h (get_regcache_arch): New prototype.
2769 * regcache.c (get_regcache_arch): New function.
2770
54e74f72
MK
2771 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2772 whitespace.
2773
1cb97e17
MK
2774 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2775 Initialize using ARRAY_SIZE.
2776
0968aa8c
AC
27772003-09-27 Andrew Cagney <cagney@redhat.com>
2778
2779 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2780 "init_frame_pc_default".
2781 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2783 * vax-tdep.c (vax_gdbarch_init): Update.
2784 * v850-tdep.c (v850_gdbarch_init): Update.
2785 * sh64-tdep.c (sh64_gdbarch_init): Update.
2786 * s390-tdep.c (s390_gdbarch_init): Update.
2787 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2788 * mcore-tdep.c (mcore_gdbarch_init): Update.
2789 * h8300-tdep.c (h8300_gdbarch_init): Update.
2790 * cris-tdep.c (cris_gdbarch_init): Update.
2791 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2792
54c84734
MK
27932003-09-26 Mark Kettenis <kettenis@gnu.org>
2794
2795 * regset.h: New file.
2796 * Makefile.in (regset_h): Add.
2797
1b1d3794
AC
27982003-09-25 Andrew Cagney <cagney@redhat.com>
2799
2800 * frame.h (deprecated_frame_saved_regs): Rename
2801 get_frame_saved_regs.
2802 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2803 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2804 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2805 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2806 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2807
e6beb428
AC
28082003-09-25 Andrew Cagney <cagney@redhat.com>
2809
2810 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2811 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2812 and Java.
2813 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2814 arm*-*-* do not use the new frame code.
2815
710122da
DC
28162003-09-25 David Carlton <carlton@kealia.com>
2817
2818 * c-exp.y: Remove 'register' declarations.
2819 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2820
79c2c32d
DC
28212003-09-25 David Carlton <carlton@kealia.com>
2822
2823 * c-exp.y: Include cp-support.h. Add qualified_type.
2824 (yylex): Delete nested type hack; add comments.
2825 * cp-namespace.c (cp_lookup_nested_type): New function.
2826 * cp-support.h: Declare cp_lookup_nested_type.
2827 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2828 instead of value_struct_elt_for_reference.
2829 * valops.c: Include cp-support.h.
2830 (value_aggregate_elt): New function.
2831 (value_namespace_elt): Ditto.
2832 (value_struct_elt_for_reference): Make static.
2833 * value.h: Delete declaration of value_struct_elt_for_reference;
2834 add declaration for value_aggregate_elt.
2835 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2836 (valops.o): Ditto.
2837
898c62f5
DJ
28382003-09-25 Daniel Jacobowitz <drow@mvista.com>
2839
2840 * stack.c: Include "reggroups.h".
2841 (frame_info): Only display registers in all_reggroup.
2842 * Makefile.in (stack.o): Update dependencies.
2843
28cd8767
JG
28442003-09-25 Jerome Guitton <guitton@act-europe.fr>
2845
2846 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2847 "add ip, sp #n" in the prologue.
2848 (arm_scan_prologue): Ditto.
2849
a4ab2b5d
JG
28502003-09-25 Jerome Guitton <guitton@act-europe.fr>
2851
2852 * MAINTAINERS (write after approval): Add myself.
2853
3f244638
AS
28542003-09-25 Andreas Schwab <schwab@suse.de>
2855
2856 * m68k-tdep.c: Include "dwarf2-frame.h".
2857 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2858 * Makefile.in (m68k-tdep.o): Update dependencies.
2859
1c0159e0
CV
28602003-09-25 Corinna Vinschen <vinschen@redhat.com>
2861
2862 * sh-tdep.c (struct frame_extra_info): Remove.
2863 (struct sh_frame_cache): New structure.
2864 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2865 (GET_TARGET_REG): Ditto but target register.
2866 (GET_PUSHED_REG): Remove.
2867 (IS_MOV_ARG_TO_REG): New macro.
2868 (IS_MOV_ARG_TO_IND_R14): New macro.
2869 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2870 (IS_MOVW_PCREL_TO_REG): New macro.
2871 (IS_MOVL_PCREL_TO_REG): New macro.
2872 (IS_SUB_REG_FROM_SP): New macro.
2873 (IS_ARG_MOV): Remove.
2874 (IS_MOV_TO_R14): Remove.
2875 (IS_RESTORE_FP): New macro.
2876 (IS_RTS): New macro.
2877 (IS_LDS): New macro.
2878 (IS_MOV_FP_SP): New macro.
2879 (IS_ADD_REG_TO_FP): New macro.
2880 (IS_ADD_IMM_FP): New macro.
2881 (sh_skip_prologue_hard_way): Remove.
2882 (sh_saved_pc_after_call): Remove.
2883 (sh_frame_chain): Remove.
2884 (sh_find_callers_reg): Remove.
a8f4cde1 2885 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2886 (sh_fp_frame_init_saved_regs): Remove.
2887 (sh_init_extra_frame_info): Remove.
2888 (sh_analyze_prologue): New function.
2889 (sh_skip_prologue): Remove deprecated code. Rely on new function
2890 sh_analyze_prologue when after_prologue fails.
2891 (sh_frame_saved_pc): Remove.
2892 (sh_alloc_frame_cache): New function.
2893 (sh_frame_cache): Ditto.
2894 (sh_frame_prev_register): Ditto.
2895 (sh_frame_this_id): Ditto.
2896 (sh_frame_unwind): New structure defining the heuristic frame
2897 sniffer interface.
2898 (sh_frame_sniffer): New function.
2899 (sh_unwind_sp): Ditto.
2900 (sh_unwind_pc): Ditto.
2901 (sh_unwind_dummy_id): Ditto.
2902 (sh_frame_base_address): Ditto.
2903 (sh_frame_base): New structure defining new frame base code.
2904 (sh_in_function_epilogue_p): New function.
2905 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2906 code and to call all new code instead. Initialize dwarf2 and
2907 heuristic frame sniffer.
2908
5f9769d1
PH
29092003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2910
a8f4cde1
RM
2911 * parser-defs.h (struct exp_descriptor): New definition, containing
2912 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2913 evaluating expressions.
2914 (exp_descriptor_standard): Declare new variable.
2915 (print_subexp): Make global and declare here (from expprint.c).
2916 (dump_subexp): Ditto.
2917 (dump_subexp_body_standard): Declare.
2918 (operator_length_standard): Declare.
2919 (op_name_standard): Declare.
2920 (print_subexp): Declare.
2921 (print_subexp_standard): Declare.
2922
2923 * language.h (struct language_defn): Add la_exp_desc field to hold
2924 pointer to table for language-specific operators.
2925 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2926
2927 * parse.c (operator_length): Move most code to new
5f9769d1 2928 operator_length_standard function. Use language-specific information.
a8f4cde1 2929 (operator_length_standard): New function taking most code from
5f9769d1
PH
2930 operator_length.
2931 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2932
2933 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2934 and OP_EXTENDED_LAST.
a8f4cde1
RM
2935
2936 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2937 Make global; remove static declaration.
2938 Move most code to print_subexp_standard.
a8f4cde1 2939 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2940 print_subexp.
2941 (op_name): Add expression to argument signature.
a8f4cde1 2942 Use langauge-specific op_name.
5f9769d1
PH
2943 Move most code to op_name_standard.
2944 (op_name_standard): New function, containing code formerly in op_name.
2945 (dump_subexp): Use new version of op_name function.
2946 Use language-specific dump_subexp_body, and move most existing code to
2947 dump_subexp_body_standard.
2948 (dump_raw_expression): Use new op_name interface.
2949 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2950 (dump_subexp_body_standard): New function, containing code formerly
2951 in dump_subexp_body.
a8f4cde1 2952
5f9769d1
PH
2953 * language.c (unknown_language): Add default la_exp_desc field and
2954 remove evaluate_exp field.
2955 (auto_language): Ditto.
2956 (local_language): Ditto.
2957 * f-lang.c (f_language_defn): Ditto.
2958 * c-lang.c (c_language_defn): Ditto.
2959 (cplus_language_defn): Ditto.
2960 (asm_language_defn): Ditto.
2961 (minimal_language_defn): Ditto.
2962 * p-lang.c (pascal_language_defn): Ditto.
2963 * m2-lang.c (m2_language_defn): Ditto.
2964 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2965
2966 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2967 Java-specific expression evaluator.
2968 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2969 field.
a8f4cde1 2970 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2971 Scheme-specific expression evaluator.
2972 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2973 field.
2974 * objc-lang.c (print_object_command): Take evaluate_exp from the
2975 la_exp_desc field.
a8f4cde1 2976
5f9769d1 2977 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2978
2979 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2980 la_exp_desc's type.
2981 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2982
24daaebc
PH
29832003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2984
2985 * parser-defs.h (operator_length): Declare.
a8f4cde1 2986
24daaebc
PH
2987 * parse.c (length_of_subexp): Use operator_length to get operator
2988 lengths and arities for operators.
2989 Move most code to new operator_length function.
a8f4cde1 2990 (operator_length): New function absorbing most code from
24daaebc
PH
2991 length_of_subexp.
2992 (prefixify_subexp): Remove large case and use operator_length instead.
2993 (parse_exp_1): Use renamings:
a8f4cde1 2994 dump_prefix_expression => dump_raw_expression and
24daaebc 2995 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2996
24daaebc
PH
2997 * expression.h (dump_prefix_expression): Rename to ...
2998 (dump_raw_expression): New name.
2999 (dump_postfix_expression): Rename to ...
3000 (dump_prefix_expression): New name.
a8f4cde1 3001
24daaebc
PH
3002 * expprint.c (dump_subexp): Make global. Add comment.
3003 Move most existing code to dump_subexp_body.
3004 (dump_subexp_body): New function.
3005 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 3006 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
3007 work before the expression is prefixified.
3008 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 3009 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 3010 that's what it does.
a8f4cde1 3011 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
3012 prefixified expression.
3013 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 3014
8c2957c4
JB
30152003-09-22 Jim Blandy <jimb@redhat.com>
3016
3017 * dwarf2read.c (read_array_type): When building the type for an
3018 array of unspecified length, make sure to choose the upper bound
3019 so that the array's total length comes out to be zero --- that's
3020 how we represent such arrays.
3021
592e3010
MC
30222003-09-22 Michael Chastain <mec@shout.net>
3023
3024 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
3025
365c70b1
JJ
30262003-09-22 Jeff Johnston <jjohnstn@redhat.com>
3027
3028 * top.c (quit_force): Fix indirect call to quit_target so
3029 a struct qt_args pointer is passed.
3030
5d6eb653
AC
30312003-09-22 Andrew Cagney <cagney@redhat.com>
3032
3033 * arch-utils.h (init_frame_pc_noop): Delete declaration.
3034 * arch-utils.c (init_frame_pc_noop): Delete function.
3035 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3036 "init_frame_pc".
3037 * mips-tdep.c (mips_gdbarch_init): Ditto.
3038 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3039 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
3040 declaration.
3041 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3042 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
3043 declaration.
3044 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3045
b222a67f
AG
30462003-09-22 Anthony Green <green@redhat.com>
3047
3048 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
3049 declaration.
3050
d5b5ac79
AC
30512003-09-20 Andrew Cagney <cagney@redhat.com>
3052
deafb061
AC
3053 * breakpoint.c: Eliminate ARGSUSED.
3054 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
3055 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
3056 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
3057 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
3058 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
3059 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
3060 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
3061 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
3062 * wince.c, remote-vx.c: Ditto.
3063
d5b5ac79
AC
3064 * cli/cli-script.c: Remove "register" attributes.
3065 * config/pa/tm-hppa.h: Ditto.
3066 * cli/cli-decode.c: Ditto.
3067 * cli/cli-cmds.c: Ditto.
3068
c6316faa
AC
30692003-09-19 Andrew Cagney <cagney@redhat.com>
3070
3071 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
3072 DEPRECATED_NPC_REGNUM.
3073 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
3074
f4f99b11
CF
30752003-09-19 Christopher Faylor <cgf@redhat.com>
3076
3077 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3078
1708f284
JB
30792003-09-19 Jim Blandy <jimb@redhat.com>
3080
3081 * macrotab.c (macro_include): Use the correct comparison to find
3082 the appropriate place for this inclusion in the list.
3083
b9fbf434
AC
30842003-09-19 Andrew Cagney <cagney@redhat.com>
3085
3086 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3087 (DEPRECATED_HPUX_TEXT_END): Define.
3088 (deprecated_hpux_text_end): Declare.
3089 (struct target_ops): Declare opaque.
3090 * hppah-nat.c (text_end): Make static.
3091 (deprecated_hpux_text_end): New function.
3092 * exec.c (text_end): Delete global variable.
3093 (NEED_TEXT_START_END): Do not define.
3094 (exec_file_attach): Replace code computing "text_end" code with
3095 call to DEPRECATED_HPUX_TEXT_END.
3096
5b03f266
AC
30972003-09-19 Andrew Cagney <cagney@redhat.com>
3098
3099 * utils.c (align_up, align_down): New functions.
3100 * defs.h (align_up, align_down): Declare.
3101 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3102 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3103 and "align_down".
3104 (round_up, round_down): Delete functions.
3105 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3106 "align_down".
3107 (ROUND_DOWN, ROUND_UP): Delete macros.
3108 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3109 * h8300-tdep.c: Replace "round_up" and "round_down" with
3110 "align_up" and "align_down".
3111 (round_up, round_down): Delete macros.
3112 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3113 "align_down".
3114 (ROUND_UP, ROUND_DOWN): Delete macros.
3115
51db5742
JB
31162003-09-18 J. Brobecker <brobecker@gnat.com>
3117
3118 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3119 hard-coded constant. Use the proper machine name instead.
3120
77949794
AC
31212003-09-17 Andrew Cagney <cagney@redhat.com>
3122
3123 * sparc-tdep.c (legacy_register_name): Delete function.
3124 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3125 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3126 * infcmd.c (gdb_register_name): Delete variable.
3127 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3128 REGISTER_NAME and "tm.h".
3129 * gdbarch.h, gdbarch.c: Regenerate.
3130 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3131 REGISTER_NAMES in comments.
3132 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3133 * m68klinux-nat.c (regmap): Ditto.
3134
b55c33cc
JB
31352003-09-17 Jim Blandy <jimb@redhat.com>
3136
3137 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3138
957e27ac
AC
31392003-09-17 Andrew Cagney <cagney@redhat.com>
3140
3141 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3142 (ppcnbsd_init_abi): Set "use_struct_convention" to
3143 "ppcnbsd_use_struct_convention".
3144
192cb3d4
MK
31452003-09-17 Mark Kettenis <kettenis@gnu.org>
3146
3147 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3148 * gdbarch.h, gdbarch.c: Regenerate.
3149 (stabs_argument_has_addr): New architecture method.
3150 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3151 * arch-utils.c: Include "buildsym.h".
3152 (default_stabs_argument_has_addr): New function.
3153 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3154 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3155
efe59759
AC
31562003-09-17 Andrew Cagney <cagney@redhat.com>
3157
3158 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3159 * gdbarch.h, gdbarch.c: Regenerate.
3160 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3161 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3162 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3163 * sparcnbsd-tdep.c: Update.
a8f4cde1 3164
62700349
AC
31652003-09-17 Andrew Cagney <cagney@redhat.com>
3166
3167 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3168 * gdbarch.h, gdbarch.c: Regenerate.
3169 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3170 * d10v-tdep.c, frame.c: Update.
3171 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3172 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3173 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3174 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3175 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3176 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3177 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3178 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3179 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3180 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3181 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3182 * config/pa/nm-hppah.h: Update.
3183
b9ff3018
AC
31842003-09-16 Andrew Cagney <cagney@redhat.com>
3185
3186 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3187 "use_struct_convention" to "ppc_linux_use_struct_convention".
3188 (ppc_linux_use_struct_convention): New function.
3189 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3190 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3191 "rs6000_use_struct_convention".
3192 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3193 declaration.
3194 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3195 Delete function.
3196
aa1ee363
AC
31972003-09-16 Andrew Cagney <cagney@redhat.com>
3198
3199 * buildsym.c: Remove more occurances of "register".
3200 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3201 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3202 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3203 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3204 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3205 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3206 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3207 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3208
f2ea0907
CV
32092003-09-16 Corinna Vinschen <vinschen@redhat.com>
3210
3211 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3212 numbers to enumeration values.
3213 * sh-tdep.c: Accomodate above change.
3214 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3215 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3216 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3217 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3218 (IS_FPUSH): Rename from IS_FMOV.
3219 (sh_extract_struct_value_address): Remove useless comment.
3220 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3221 instead of own local values.
3222 (sh_dump_tdep): Remove.
3223 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3224 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3225
1c704f11
AC
32262003-09-15 Andrew Cagney <cagney@redhat.com>
3227
3228 * doublest.c (convert_floatformat_to_doublest): No longer need to
3229 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3230
ac79b88b
DJ
32312003-09-15 Daniel Jacobowitz <drow@mvista.com>
3232
3233 * values.c (unpack_double): Call floatformat_is_valid.
3234
1c671366
MK
32352003-09-15 Mark Kettenis <kettenis@gnu.org>
3236
de5227fb
MK
3237 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3238 ps_strings into a long.
3239
1c671366
MK
3240 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3241 _initialize_am64fbsd_nat.
3242
a604369a
KB
32432003-09-15 Kevin Buettner <kevinb@redhat.com>
3244
3245 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3246 associated with DW_AT_ranges attribute is out of bounds.
3247
b3cacbee
DL
32482003-09-15 David Lecomber <dsl@sources.redhat.com>
3249
3250 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3251
d0f37bb2
MC
32522003-09-14 Michael Chastain <mec@shout.net>
3253
3254 * config/m68k/nm-apollo68v.h: Delete.
3255 * config/m68k/xm-apollo68v.h: Delete.
3256
69517000
AC
32572003-09-14 Andrew Cagney <cagney@redhat.com>
3258
3259 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3260 * dcache.c: Update copyrights and descriptions.
3261 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3262
ef8b349d
AC
32632003-09-14 Andrew Cagney <cagney@redhat.com>
3264
3265 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3266 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3267
52f0bd74
AC
32682003-09-14 Andrew Cagney <cagney@redhat.com>
3269
3270 * alpha-nat.c: Remove some occurances of "register".
3271 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3272 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3273 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3274 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3275 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3276 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3277 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3278 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3279 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3280 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3281 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3282 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3283 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3284 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3285 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3286 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3287 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3288 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3289 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3290 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3291 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3292 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3293
4a4b3fed
AC
32942003-09-13 Andrew Cagney <cagney@redhat.com>
3295
3296 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3297 * ppc-tdep.h (struct regcache): Declare opaque.
3298 * objfiles.h (struct objfile_data): Declare opaque.
3299 * cp-support.h (struct objfile): Declare opaque.
3300 * linux-nat.h (target_waitstatus): Declare opaque.
3301
2110b94f
MK
33022003-09-14 Mark Kettenis <kettenis@gnu.org>
3303
1c671366
MK
3304 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3305 (stabs_argument_has_addr): New architecture method.
3306 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3307 * arch-utils.c: Include "buildsym.h".
3308 (default_stabs_argument_has_addr): New function.
3309 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3310 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3311
2110b94f
MK
3312 * cris-tdep.c (cris_gdbarch_init): Set
3313 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3314 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3315 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3316 * mips-tdep.c (mips_gdbarch_init): Likewise.
3317 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3318 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3319
48436ce6
AC
33202003-09-13 Andrew Cagney <cagney@redhat.com>
3321
3322 * values.c (using_struct_return): Delete "function" and "funcaddr"
3323 parameters.
3324 * value.h (using_struct_return): Update declaration.
3325 * infcmd.c (finish_command_continuation): Update.
3326 (finish_command): Update.
3327 * infcall.c (call_function_by_hand): Update.
3328 * eval.c (evaluate_subexp_standard): Update.
3329
403d9909
CF
33302003-09-13 Christopher Faylor <cgf@redhat.com>
3331
3332 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3333 SSE registers since gdb will not operate correctly without this.
3334 Restore include file ordering munged in previous change.
3335 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3336
ebf7d56b
MK
33372003-09-13 Mark Kettenis <kettenis@gnu.org>
3338
8e823e25
MK
3339 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3340 REG_STRUCT_HAS_ADDR.
3341 * gdbarch.c, gdbarch.h: Updated.
3342 * infcall.c (call_function_by_hand): Update.
3343 * stabsread.c (define_symbol): Updated.
a8f4cde1 3344
ebf7d56b
MK
3345 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3346
d3f13f72
CF
33472003-09-12 Christopher Faylor <cgf@redhat.com>
3348
3349 * win32-nat.c: Reorganize so that defines used by target headers are
3350 actually defined by the system headers.
3351 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3352 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3353
14f75137
JB
33542003-09-12 Jim Blandy <jimb@redhat.com>
3355
d646061f
JB
3356 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3357 the file has no .data, .bss, or .rodata sections. Instead wait
3358 until we see a variable alleged to live in one of those sections.
3359
2a13f9bc
JB
3360 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3361 .bss section, presume that any variables we find live in the
3362 .rodata section.
3363
4f49b26b
JB
3364 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3365 offsets for global and static variables.
3366
14f75137
JB
3367 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3368 symbol types are, by definition, in the .data section, so it is
3369 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3370 If there is no .data section, there should be no N_DATA or N_DATA
3371 | N_EXT symbols.
3372
212c460c
MK
33732003-09-12 Mark Kettenis <kettenis@gnu.org>
3374
3375 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3376 (amd64fbsd_sigcontext_addr): Rewrite.
3377 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3378 with correct values.
3379 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3380 (amd64fbsd_init_abi): Fix typo.
3381
68856ea3
AC
33822003-09-12 Andrew Cagney <cagney@redhat.com>
3383
3384 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3385 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3386
627b3ba2
AC
33872003-09-12 Andrew Cagney <cagney@redhat.com>
3388
3389 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3390 "entry_file_highpc". Update comments.
3391 * defs.h (deprecated_inside_entry_file): Rename
3392 "inside_entry_file".
3393 * blockframe.c (deprecated_inside_entry_file): Rename
3394 "inside_entry_file".
3395 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3396 * vax-tdep.c (vax_frame_chain): Update.
3397 * sh64-tdep.c (sh64_frame_chain): Update.
3398 * sh-tdep.c (sh_frame_chain): Update.
3399 * rs6000-tdep.c (rs6000_frame_chain): Update.
3400 * ns32k-tdep.c (ns32k_frame_chain): Update.
3401 * mips-tdep.c (mips_frame_chain): Update.
3402 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3403 * m32r-tdep.c (m32r_frame_this_id): Update.
3404 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3405 * frv-tdep.c (frv_frame_this_id): Update.
3406 * d10v-tdep.c (d10v_frame_this_id): Update.
3407 * cris-tdep.c (cris_frame_chain): Update.
3408 * blockframe.c (legacy_frame_chain_valid): Update.
3409 * avr-tdep.c (avr_frame_this_id): Update.
3410 * arm-tdep.c (arm_prologue_this_id): Update.
3411 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3412 * objfiles.c (objfile_relocate): Update.
3413 * mipsread.c (mipscoff_symfile_read): Update.
3414 (mipscoff_symfile_read): Update.
3415 * mdebugread.c (parse_partial_symbols): Update.
3416 * dwarfread.c (read_file_scope): Update.
3417 * dwarf2read.c (read_file_scope): Update.
3418 * dbxread.c (read_dbx_symtab): Update.
3419 (read_dbx_symtab): Update.
3420 * coffread.c (complete_symtab): Update.
3421
b0abbc58
JJ
34222003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3423
3424 * top.c (quit_target): New static helper function.
3425 (quit_force): Moved code to quit_target(). Call quit_target()
3426 via catch_errors() to catch errors during quit.
3427
a1632d59
DC
34282003-09-11 David Carlton <carlton@kealia.com>
3429
3430 * buildsym.c (finish_block): Use allocate_block to allocate the
3431 block.
3432 * mdebugread.c (new_block): Add FIXME.
3433
5c4e30ca
DC
34342003-09-11 David Carlton <carlton@kealia.com>
3435
3436 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3437 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3438 (recursive_dump_type): Ditto.
3439 * printcmd.c (print_formatted): Ditto.
3440 * typeprint.c (print_type_scalar): Ditto.
3441 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3442 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3443 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3444 maint_cplus_cmd_list.
3445 * cp-support.c: Make maint_cplus_cmd_list extern.
3446 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3447 command.h.
3448 (lookup_symbol_file): Look in possible namespace blocks when
3449 appropriate.
3450 (initialize_namespace_symtab): New.
3451 (get_possible_namespace_block, free_namespace_block)
3452 (check_possible_namespace_symbols)
3453 (check_possible_namespace_symbols_loop)
3454 (check_one_possible_namespace_symbol)
3455 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3456 (_initialize_cp_namespace): Ditto.
3457 * block.h: Declare allocate_block.
3458 * block.c (allocate_block): New.
3459 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3460 allocate_block.
3461 * symfile.h: Update declaration of add_psymbol_to_list.
3462 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3463 question.
3464 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3465 scan_partial_symbols_call.
3466 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3467 helper functions.
3468 (add_partial_symbol): If necessary, scan mangled names for names
3469 of namespaces.
3470 (add_partial_namespace): Add NAMESPACE argument; generate partial
3471 symbols associated to namespaces.
3472 (add_partial_enumeration): Add NAMESPACE argument.
3473 (new_symbol): Allow namespace syms.
3474 (read_namespace): Generate namespace syms.
3475 * objfiles.h: Add opaque declaration of struct symtab.
3476 (struct objfile): Add cp_namespace_symtab member.
3477 * objfiles.c (allocate_objfile): Set
3478 objfile->cp_namespace_symtab.
3479 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3480 dictionary_h, command_h.
3481
33a7c2fc
AC
34822003-09-11 Andrew Cagney <cagney@redhat.com>
3483
3484 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3485 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3486 near the function's end.
3487 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3488 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3489 regcache_raw_write_signed to set SP_REGNUM.
3490
63cd24fe
EZ
34912003-09-11 Elena Zannoni <ezannoni@redhat.com>
3492
3493 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3494 orig_addrs is set up properly.
3495
f27dd7fd
AC
34962003-09-11 Andrew Cagney <cagney@redhat.com>
3497
3498 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3499 * gdbarch.h, gdbarch.c: Re-generate.
3500 * infcall.c (call_function_by_hand): Update.
3501 * hppa-tdep.c (hppa_push_arguments): Update.
3502 * ada-lang.c (place_on_stack): Update.
3503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3504 * sparc-tdep.c (sparc_gdbarch_init): Update.
3505 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3506 * hppa-tdep.c (hppa_gdbarch_init): Update.
3507 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3508 stack_align.
3509
f630a401
DJ
35102003-09-11 Daniel Jacobowitz <drow@mvista.com>
3511
3512 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3513 register do need a frame.
3514
0ddabb4c
AC
35152003-09-11 Andrew Cagney <cagney@redhat.com>
3516
3517 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3518 buildable since GDB 5.0.
3519 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3520 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3521 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3522 * irix4-nat.c: Delete file.
3523 * config/mips/irix4.mh: Delete file.
3524 * config/mips/irix3.mh: Delete file.
3525 * config/mips/irix3.mt: Delete file.
3526 * config/mips/tm-irix3.h: Delete file.
3527 * config/mips/nm-irix3.h: Delete file.
3528 * config/mips/xm-irix3.h: Delete file.
3529 * config/mips/nm-irix4.h: Delete file.
3530 * config/mips/xm-irix4.h: Delete file.
3531 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3532
fde2cceb
JB
35332003-09-10 J. Brobecker <brobecker@gnat.com>
3534
3535 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3536 * Makefile.in (hppa-tdep.o): Update dependencies.
3537
66f667f5
JW
35382003-09-10 James E Wilson <wilson@specifixinc.com>
3539
ef5fd69f
JW
3540 * MAINTAINERS: Change my e-mail address. Move to paper trail
3541 section.
66f667f5 3542
53e8aaea
KB
35432003-09-10 Kevin Buettner <kevinb@redhat.com>
3544
3545 * MAINTAINERS (frv): New ISA entry.
3546
dcc6aaff
KB
35472003-09-10 Kevin Buettner <kevinb@redhat.com>
3548
3549 * frv-tdep.c (dis-asm.h): Include.
3550 * Makefile.in (frv-tdep.o): Update dependencies.
3551
932644f0
JJ
35522003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3553
3554 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3555 Fix typo for high range of floating registers.
3556
91c24f0a
DC
35572003-09-09 David Carlton <carlton@kealia.com>
3558
3559 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3560 highpc initialization here out of scan_partial_symbols.
3561 (scan_partial_symbols): Restructure into a recursive version,
3562 calling add_partial_namespace and add_partial_enumeration when
3563 appropriate.
3564 (add_partial_namespace): New.
3565 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3566
c9263853
AC
35672003-09-09 Andrew Cagney <cagney@redhat.com>
3568
e56a0ecc
AC
3569 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3570 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3571 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3572 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3573
794a477a
AC
3574 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3575 (rs6000_push_dummy_call): Set the "TOC" register.
3576
c9263853
AC
3577 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3578 methods "max_register_raw_size", "max_register_virtual_size" or
3579 "register_virtual_size".
3580
afa7d0b2
ILT
35812003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3582
3583 * MAINTAINERS: Update my e-mail address.
3584
7a41266b
AC
35852003-09-09 Andrew Cagney <cagney@redhat.com>
3586
3587 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3588 (rs6000_push_dummy_call): Store the struct return address.
3589 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3590
77b2b6d4
AC
35912003-09-09 Andrew Cagney <cagney@redhat.com>
3592
3593 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3594 "ppc_sysv_abi_push_arguments".
3595 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3596 "ppc_sysv_abi_push_arguments".
3597 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3598 instead of "push_arguments".
3599 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3600
e8a7b686
AC
36012003-09-09 Andrew Cagney <cagney@redhat.com>
3602
3603 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3604 instead of CALL_DUMMY_ADDRESS.
3605
f86f5ca3
PH
36062003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3607
3608 * p-lang.c: Eliminate "register".
3609 * c-lang.c: Ditto.
3610 * expprint.c: Ditto.
3611 * f-lang.c: Ditto.
3612 * jv-lang.c: Ditto.
3613 * language.c: Ditto.
3614 * m2-lang.c: Ditto.
3615 * parse.c: Ditto.
3616 * scm-lang.c: Ditto.
3617 * objc-lang.c: Ditto.
3618
83ee270e
NC
36192003-09-09 Nick Clifton <nickc@redhat.com>
3620
3621 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3622
a89aa300
AC
36232003-09-04 Andrew Cagney <cagney@redhat.com>
3624
3625 * avr-tdep.c: Include "dis-asm.h".
3626 * cris-tdep.c: Include "dis-asm.h".
3627 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3628 instead of corresponding typedef.
3629 * h8300-tdep.c: Include "dis-asm.h".
3630 * ia64-tdep.c: Include "dis-asm.h".
3631 * i386-tdep.c: Include "dis-asm.h".
3632 (i386_print_insn): Use "struct disassemble_info" instead of
3633 corresponding typedef.
3634 * m68k-tdep.c: Include "dis-asm.h".
3635 * mcore-tdep.c: Include "dis-asm.h".
3636 * mips-tdep.c: Include "dis-asm.h".
3637 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3638 instead of corresponding typedef.
3639 * ns32k-tdep.c: Include "dis-asm.h".
3640 * s390-tdep.c: Include "dis-asm.h".
3641 * sparc-tdep.c: Include "dis-asm.h".
3642 * vax-tdep.c: Include "dis-asm.h".
3643 * v850-tdep.c: Include "dis-asm.h".
3644 * mn10300-tdep.c: Include "dis-asm.h".
3645 * rs6000-tdep.c: Include "dis-asm.h".
3646 * xstormy16-tdep.c: Include "dis-asm.h".
3647 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3648 print_insn_xstormy16.
3649 * Makefile.in (v850-tdep.o): Update dependencies.
3650 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3651 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3652 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3653 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3654 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3655 (gdbarch_h): Remove $(dis_asm_h).
3656 * disasm.c: Include "dis-asm.h".
3657 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3658 corresponding typedef.
3659 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3660 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3661 * gdbarch.sh: Do not include "dis-asm.h".
3662 (struct disassemble_info): Declare opaque.
3663 (TARGET_PRINT_INSN): Update declaration.
3664 * gdbarch.h, gdbarch.c: Re-generate.
3665
88a82a65
AC
36662003-09-08 Andrew Cagney <cagney@redhat.com>
3667
3668 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3669 CALL_DUMMY_ADDRESS, change to a predicate.
3670 * gdbarch.h, gdbarch.c: Re-generate.
3671 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3672 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3673 * infcall.c (call_function_by_hand): Ditto.
3674 * sparc-tdep.c (sparc_push_return_address): Ditto.
3675 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3676 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3677 CALL_DUMMY_ADDRESS with entry_point_address.
3678 * v850-tdep.c (v850_push_return_address): Ditto.
3679 * s390-tdep.c (s390_push_return_address): Ditto.
3680 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3681 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3682 * mcore-tdep.c (mcore_push_return_address): Ditto.
3683 * cris-tdep.c (cris_push_return_address): Ditto.
3684 * arm-tdep.c (arm_push_return_address): Ditto.
3685
3e2c4033
AC
36862003-09-08 Andrew Cagney <cagney@redhat.com>
3687
3688 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3689 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3690 and REG_UNMODIFIED to REG_SAME_VALUE.
3691 (execute_cfa_program): Update.
3692 (dwarf2_frame_cache): Update. Initialize table to
3693 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3694 location.
3695 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3696
39efb398
AC
36972003-09-08 Andrew Cagney <cagney@redhat.com>
3698
3699 * gnu-nat.c: Remove "inline" function attribute.
3700 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3701
f5cb5aca
KB
37022003-09-08 Kevin Buettner <kevinb@redhat.com>
3703
3704 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3705 target.
3706
1cb761c7
KB
37072003-09-08 Kevin Buettner <kevinb@redhat.com>
3708
3709 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3710 (frame_extra_info): Rename this struct to frv_unwind_cache.
3711 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3712 Add fields ``prev_sp'' and ``base''.
3713 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3714 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3715 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3716 Delete.
3717 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3718 Revise all callers. Fill in the unwind cache argument and make
3719 other adjustments to account for new frame mechanisms.
3720 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3721 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3722 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3723 (frv_frame_unwind, frv_frame_base): New structs.
3724 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3725 additional arguments expected by this method and adjust function
3726 body accordingly.
3727 (frv_gdbarch_init): Remove calls to the following functions:
3728 set_gdbarch_deprecated_init_frame_pc(),
3729 set_gdbarch_deprecated_saved_pc_after_call(),
3730 set_gdbarch_deprecated_frame_chain(),
3731 set_gdbarch_deprecated_frame_saved_pc(),
3732 set_gdbarch_deprecated_frame_init_saved_regs(),
3733 set_gdbarch_deprecated_push_arguments(),
3734 set_gdbarch_deprecated_push_return_address(),
3735 set_gdbarch_deprecated_pop_frame(),
3736 set_gdbarch_deprecated_call_dummy_words(),
3737 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3738 set_gdbarch_deprecated_init_extra_frame_info(),
3739 set_gdbarch_deprecated_dummy_write_sp(), and
3740 set_gdbarch_deprecated_pc_in_call_dummy().
3741 Add calls to the following functions:
3742 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3743 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3744 frame_base_set_default().
3745 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3746
68f6cf99
MK
37472003-09-09 Mark Kettenis <kettenis@gnu.org>
3748
3749 * dwarf2-frame.c (read_encoded_value): Add support for
3750 DW_EH_PE_aligned encoding.
3751
73b65bb0
DJ
37522003-09-08 Daniel Jacobowitz <drow@mvista.com>
3753
3754 * infrun.c (normal_stop): Don't print a message if the inferior
3755 has exited.
3756
7c8a5605
JB
37572003-09-08 Jim Blandy <jimb@redhat.com>
3758
3759 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3760 * dbxread.c: #include "gdb_assert.h".
3761 (read_dbx_symtab): If the objfile has no .data section, use the
3762 section index for the .bss section instead.
3763
7dd88986
DJ
37642003-09-08 Daniel Jacobowitz <drow@mvista.com>
3765
3766 * frame.c (deprecated_safe_get_selected_frame): New function.
3767 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3768 * findvar.c (read_var_value): Call it.
3769
55ff77ac
CV
37702003-09-08 Corinna Vinschen <vinschen@redhat.com>
3771
3772 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3773 (sh64-tdep.o): Add dependencies.
3774 * configure.tgt: Add FIXME to sh-*-linux*.
3775 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3776 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3777 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3778 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3779 * sh64-tdep.c: New file, containing all sh64 related code from
3780 sh-tdep.c.
3781 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3782 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3783 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3784 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3785 * config/sh/wince.mt (TDEPFILES): Ditto.
3786
bfb39158
DJ
37872003-09-07 Daniel Jacobowitz <drow@mvista.com>
3788
3789 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3790 (stop_wait_callback): Handle !lp->signalled also.
3791 (lin_lwp_has_pending, flush_callback): New functions.
3792 (lin_lwp_wait): Call flush_callback.
3793 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3794 (linux_proc_pending_signals): New function.
3795 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3796
9407de8e
DJ
37972003-09-07 Daniel Jacobowitz <drow@mvista.com>
3798
3799 From Nick Kelsey <nickk@ubicom.com>:
3800 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3801 when the stop PC is at the beginning of a function also.
3802
2ef47cd0
DJ
38032003-09-06 Daniel Jacobowitz <drow@mvista.com>
3804
3805 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3806 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3807
6f4492c8
MK
38082003-09-06 Mark Kettenis <kettenis@gnu.org>
3809
3810 * sol-thread.c: Include "gdb_string.h".
3811
d3420b2f
MK
38122003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3813
3814 * gcore.c: Reorder include files in alphabetical order. Include
3815 "gdb_assert.h". Various coding style fixes.
3816 (derive_stack_segment, derive_heap_segment): Replace check for
3817 non-null BOTTOM and TOP with gdb_assert.
3818 (derive_heap_segment): Replace check for successful creation of
3819 ZERO with gdb_assert.
3820 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3821
5220ea4c
AC
38222003-09-04 Andrew Cagney <cagney@redhat.com>
3823
3824 * thread-db.c (verbose_dlsym): New function.
3825 (thread_db_load): Use verbose_dlsym
3826 (thread_db_new_objfile): Print that libthread_db was loaded, and
3827 that thread debugging was enabled.
3828
6e8c2c06
AC
38292003-09-04 Andrew Cagney <cagney@redhat.com>
3830
3831 * configure.tgt: Add "mips64*-*-*" target. Delete
3832 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3833 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3834 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3835 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3836 mips*-sony-*, and mips64*-*-elf* targets.
3837 * config/mips/embedl.mt: Delete file.
3838 * config/mips/embedl64.mt: Delete file.
3839 * config/mips/mips.mt: Delete file.
3840 * config/mips/mips64.mt: Delete file.
3841 * config/mips/tm-embed.h: Delete file.
3842 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3843 * config/mips/embed64.mt: Delete out-of-date comment.
3844
3a3bc038
AC
38452003-09-04 Andrew Cagney <cagney@redhat.com>
3846
3847 * hppa-tdep.c (hppa_gdbarch_init): Set
3848 "have_nonsteppable_watchpoint".
3849 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3850 * mips-tdep.c (mips_dump_tdep): Do not print
3851 HAVE_NONSTEPPABLE_WATCHPOINT.
3852 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3853 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3854 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3855 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3856
a957e642
CV
38572003-09-04 Corinna Vinschen <vinschen@redhat.com>
3858
3859 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3860 unused code. Add comment.
3861
a6fbcf2f
CV
38622003-09-04 Corinna Vinschen <vinschen@redhat.com>
3863
3864 * breakpoint.c (watchpoint_check): Check for pc being in an
3865 epilogue if watchpoint frame couldn't be found.
3866
c14a44d5
AC
38672003-09-04 Andrew Cagney <cagney@redhat.com>
3868
3869 * Makefile.in: Re-generate all dependencies.
3870
f6c40618
AC
38712003-09-03 Andrew Cagney <cagney@redhat.com>
3872
3873 * arch-utils.h (legacy_print_insn): Delete declaration.
3874 * arch-utils.c (legacy_print_insn): Delete function.
3875 * disasm.c (deprecated_tm_print_insn_info): Delete.
3876 (_initialize_disasm): Delete function, contained code initializing
3877 deprecated_tm_print_insn_info.
3878 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3879 (deprecated_tm_print_insn_info): Delete.
3880 (TARGET_PRINT_INSN): Do not provide a default.
3881 * gdbarch.h, gdbarch.c: Re-generate.
3882
242e8be5
AC
38832003-09-03 Andrew Cagney <cagney@redhat.com>
3884
3885 * disasm.c (fprintf_disasm): New function.
3886 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3887 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3888 reverts 2003-08-14 change.
3889 (_initialize_disasm): Call "init_disassemble_info", instead of
3890 INIT_DISASSEMBLE_INFO_NO_ARCH.
3891
3ffc3dda
MS
38922003-09-03 Michael Snyder <msnyder@redhat.com>
3893
3894 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3895
52d16ba8
AC
38962003-09-03 Andrew Cagney <cagney@redhat.com>
3897
3898 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3899 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3900 * symfile.c (syms_from_objfile): Update.
3901 (reread_symbols): `Update
3902 * exec.c (exec_file_attach): Update.
3903 (exec_file_attach): Update.
3904 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3905 2003-08-29 change.
3906 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3907
eb5492fa
DJ
39082003-09-03 Daniel Jacobowitz <drow@mvista.com>
3909
3910 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3911 trad-frame.h.
3912 (arm_get_cache): Delete macro.
3913 (struct arm_prologue_cache): Update comments. Make saved_regs into
3914 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3915 to prev_sp.
3916 (thumb_scan_prologue): Update for cache changes. Don't call
3917 DEPRECATED_PC_IN_CALL_DUMMY.
3918 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3919 argument and use it in desperation search for our prologue. Do not
3920 search past the specified PC.
3921 (arm_make_prologue_cache): Simplify.
3922
3923 (arm_prologue_this_id, arm_prologue_prev_register)
3924 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3925 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3926 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3927 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3928 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3929
3930 (arm_frame_chain_valid, arm_find_callers_reg)
3931 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3932 (arm_pop_frame): Delete obsolete methods.
3933 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3934
3935 (arm_gdbarch_init): Update for new frame methods. Register prologue
3936 and sigtramp unwinders. Set the default frame base method.
3937
3938 * Makefile.in (arm-tdep.o): Update dependencies.
3939 * varobj.c (find_frame_addr_in_frame_chain): Call
3940 get_frame_base_address.
3941 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3942
24de872b
DJ
39432003-09-03 Daniel Jacobowitz <drow@mvista.com>
3944
3945 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3946 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3947 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3948 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3949 Take NEXT_FRAME and CACHE arguments. Call
3950 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3951 Set unwound_pc in CACHE instead of modifying the frame argument.
3952 Don't bother checking the frame type when looking for sigtramp
3953 frames.
3954 (arm_make_prologue_cache, arm_frame_chain)
3955 (arm_init_extra_frame_info): New functions.
3956
9b8d791a
DJ
39572003-09-03 Daniel Jacobowitz <drow@mvista.com>
3958
3959 * arm-tdep.c (arm_get_cache): Define.
3960 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3961 unwound_sp, unwound_pc, and saved_regs.
3962 (thumb_scan_prologue): Take a cache instead of the frame.
3963 (arm_scan_prologue): Likewise.
3964 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3965 instead of a temporary frame.
3966 (arm_init_extra_frame_info): Allocate and use a cache.
3967 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3968
7ee3275f
AC
39692003-09-03 Andrew Cagney <cagney@redhat.com>
3970
3971 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3972 * config/mips/wince.mt (TM_CLIBS): Ditto.
3973 * config/sh/wince.mt (TM_CLIBS): Ditto.
3974 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3975 * config/sparc/sp64.mt (CC): Delete.
3976
57b29be7
AC
39772003-09-03 Andrew Cagney <cagney@redhat.com>
3978
3979 * defs.h: Do not include "arch-utils.h".
3980 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3981 GDB_MULTI_ARCH_PURE.
3982 * configure.in (GDB_MULTI_ARCH): Do not define.
3983 * configure, config.in: Regenerate.
3984 * configure.tgt: Do not set variable "gdb_multi_arch".
3985 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3986 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3987 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3988 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3989 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3990 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3991 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3992 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3993 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3994 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3995 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3996 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3997 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3998 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3999 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
4000 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
4001 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
4002 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 4003
12e035e2
MC
40042003-08-30 Michael Chastain <mec@shout.net>
4005
4006 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
4007 * config/m68k/nm-hp300hpux.h: Delete.
4008 * config/m68k/tm-hp300hpux.h: Delete.
4009 * config/m68k/xm-hp300hpux.h: Delete.
4010 * config/m68k/xm-hp300bsd.h: Delete.
4011 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
4012 tm-hp300hpux.h, xm-hp300hpux.h.
4013 * somsolib.c: Remove comment about hp300 shared libraries.
4014
bda34dc2
MK
40152003-08-31 Mark Kettenis <kettenis@gnu.org>
4016
5bca7895
MK
4017 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
4018 Only define PTRACE_GET_THREAD_AREA is not already defined.
4019 Various style fixes in code and comments and some additional
4020 spelling fixes in comments. Move after functions dealing with
4021 debug registers.
4022 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
4023 Fix coding-style.
4024
bda34dc2
MK
4025 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
4026 frame_unwind_register_unsigned instead of
4027 frame_unwind_unsigned_register.
4028
c890192f
MK
40292003-08-30 Mark Kettenis <kettenis@gnu.org>
4030
4031 * configure.in: Search for gethostbyname in libnsl.
4032 * configure: Regenerated.
4033
60fac5b8
MK
40342003-08-29 Mark Kettenis <kettenis@gnu.org>
4035
e294916c
MK
4036 * configure.in: Remove redundant AC_MSG_RESULT in check for
4037 uintptr_t in stdint.h.
4038 * configure: Regenerated.
4039
c40d267a
MK
4040 * amd64-nat.h (struct regcache): Add opaque declaration.
4041
60fac5b8
MK
4042 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
4043 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
4044 Change "register array" to "register cache" in comments.
4045 (x86_64_linux_gregset64_reg_offset): New variable.
4046 (GETREGS_SUPPLIES): Remove macro.
4047 (supply_gregset): Call amd64_supply_native_gregset instead of
4048 x86_64_linux_supply_gregset.
4049 (fill_gregset): Rename `regno' to `regnum'. Call
4050 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
4051 (store_regs): Rename `regno' to `regnum'.
4052 (store_fpregs): Rename `regno' to `regnum'.
4053 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
4054 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4055 Reorganize function a bit.
4056 (store_inferior_registers): Rename `regno' to `regnum'. Use
4057 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4058 Reorganize function a bit.
4059 (_initialize_x86_64_linux_nat): New function.
4060 * config/i386/x86-64linux.mh.
4061
546143b6
AC
40622003-08-29 Andrew Cagney <cagney@redhat.com>
4063
4064 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
4065 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
4066 (target_remove_watchpoint): Delete macro.
4067 (target_insert_watchpoint): Delete macro.
4068 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
4069 (remote_mips_stopped_by_watchpoint): Delete declaration.
4070 (remote_mips_remove_watchpoint): Delete declaration.
4071 (remote_mips_set_watchpoint): Delete declaration.
4072 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
4073 * remote-mips.c (_initialize_remote_mips): Set
4074 "to_insert_watchpoint", "to_stopped_by_watchpoint",
4075 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4076 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4077 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4078 (mips_stopped_by_watchpoint): Rename
4079 remote_mips_stopped_by_watchpoint.
4080 (mips_can_hardware_watchpoint): Rename
4081 remote_mips_can_use_hardware_watchpoint, update function
4082 signature.
4083
7bace51b
MK
40842003-08-29 Mark Kettenis <kettenis@gnu.org>
4085
b0f5c6f2
MK
4086 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4087 USER_DS. We haven't given them a register number yet.
4088
2a6d284d
MK
4089 * amd64-nat.h: New file.
4090 * amd64-nat.c: New file.
4091 * amd64fbsd-nat.c: Include "amd64-nat.h".
4092 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4093 (amd64fbsd32_r_reg_offset): New variable.
4094 (supply_gregset): Simply call amd64_supply_native_gregset.
4095 (fill_gregset): Rename `regno' to `regnum'. Simply call
4096 amd64_collect_native_gregset.
4097 (fill_fpregset): Rename `regno' to `regnum'.
4098 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
4099 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4100 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4101 `fpregset_t'. Call amd64_supply_native_gregset instead of
4102 supply_gregset. Call x86_64_supply_fxsave instead of
4103 supply_fpregset.
4104 (store_inferior_registers): Rename `regno' to `regnum'. Replace
4105 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4106 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4107 `fpregset_t'. Call amd64_collect_native_gregset instead of
4108 fill_gregset. Call x86_64_collect_fxsave instead of
4109 fill_fpregset.
4110 (_initialize_am64fbsd_nat): Initialize
4111 amd64_native_gregset32_reg_offset and
4112 amd64_native_gregset64_reg_offset.
4113 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4114
a16d75cc
MK
4115 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4116 null pointer. Fix typo in comment.
4117
7bace51b
MK
4118 * regcache.c (supply_register): Reimplement to call
4119 regcache_raw_supply.
4120 (regcache_collect): Reimplement by calling regcache_raw_collect.
4121
9a661b68
MK
41222003-08-28 Mark Kettenis <kettenis@gnu.org>
4123
4124 * regcache.c (register_buffer): Consitify first argument.
4125 (regcache_raw_supply, regcache_raw_collect): New
4126 functions.
4127
e94cc8fa
DJ
41282003-08-28 Daniel Jacobowitz <drow@mvista.com>
4129
4130 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4131 by Nathan J. Williams.
4132
c64bd0ce
DJ
41332003-08-28 Daniel Jacobowitz <drow@mvista.com>
4134
4135 * lin-lwp.c (wait_lwp): New function, copied from
4136 stop_wait_callback. Clean up.
4137 (stop_wait_callback): Use wait_lwp.
4138
e5ab0dce
AC
41392003-08-28 Andrew Cagney <cagney@redhat.com>
4140
4141 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4142 flavour and disassembler options.
4143 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4144 (mips_gdbarch_init): Set "print_insn". Delete initialization of
4145 deprecated_tm_print_insn_info.
a8f4cde1 4146
a788de9b
AC
41472003-08-27 Andrew Cagney <cagney@redhat.com>
4148
4149 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4150 Use target_read_memory.
4151 (s390_get_frame_info): Update. Do not reference
4152 deprecated_tm_print_insn_info.
4153 (s390_check_function_end, s390_is_sigreturn): Ditto.
4154
36482093
AC
41552003-08-27 Andrew Cagney <cagney@redhat.com>
4156
4157 * Makefile.in (cris-tdep.o): Update dependencies.
4158 * cris-tdep.c: Include "gdb_assert.h".
4159 (cris_gdbarch_init): Set print_insn.
4160 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4161 (cris_delayed_get_disassembler): Simplify, directly call the
4162 disassembler returned by cris_get_disassembler.
4163 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4164 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4165 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4166 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4167 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4168 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4169 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4170 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4171 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4172 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4173 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4174 (gdb_print_insn_sparc): Delete function.
4175 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4176 deprecated_tm_print_insn_info.
4177 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4178 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4179 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4181 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4182 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4183 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4184 (s390_gdbarch_init): Set print_insn.
4185
0285512f
AC
41862003-08-27 Andrew Cagney <cagney@redhat.com>
4187
4188 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4189 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4190 * infcall.c (call_function_by_hand): Convert the entry point
4191 address into a code address.
4192
cdcd5552
AC
41932003-08-27 Andrew Cagney <cagney@redhat.com>
4194
4195 * dsrec.c: Include "gdb_string.h".
4196 * Makefile.in (dsrec.o): Update dependencies.
4197
e85cddad
MC
41982003-08-27 Michael Chastain <mec@shout.net>
4199
4200 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4201
8bbfbb23
AC
42022003-08-27 Andrew Cagney <cagney@redhat.com>
4203
4204 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4205 (alpha_osf1_init_abi): Do not set call_dummy_address.
4206
ba058b66
DC
42072003-08-27 David Carlton <carlton@kealia.com>
4208
4209 From Randolph Chung <tausq@debian.org>:
4210 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4211 compiles with -Wformat-nonliteral -Werror.
4212
87f84c9d
JB
42132003-08-26 Jim Blandy <jimb@redhat.com>
4214
4215 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4216 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4217 bfd_lookup_symbol, since we only want symbols in code sections.
4218 (look_for_base): Pass zero as the SECT_FLAGS argument to
4219 bfd_lookup_symbol, since we're not concerned about which section
4220 the symbol is in.
4221
102d615a
JJ
42222003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4223
4224 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 4225 we are frameless or the return address register is already known.
102d615a 4226
cc7ad3ea
AC
42272003-08-26 Andrew Cagney <cagney@redhat.com>
4228
4229 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4230 in size. Add comments.
4231
af8b88dd
JJ
42322003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4233
4234 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 4235 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 4236
e0a4f5a1
JM
42372003-08-26 Jason Merrill <jason@redhat.com>
4238
4239 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4240 case out of #ifdef MIPS block.
4241
4ae9ee8e
DJ
42422003-08-25 Daniel Jacobowitz <drow@mvista.com>
4243
4244 PR java/1322
4245 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4246 available before calling SECT_OFF_TEXT.
3c164570 4247 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 4248
004d836a
JJ
42492003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4250
a8f4cde1 4251 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
4252 bof, and nat0-nat127 as pseudo-registers.
4253 (ia64_frame_cache): New struct used to cache frame info.
4254 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 4255 register grouping so registers without names are still saved and
004d836a 4256 restored.
a8f4cde1 4257 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
4258 pseudo values.
4259 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4260 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 4261 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
4262 ia64_frame_cache.
4263 (examine_prologue): Change prototype to add next_frame pointer.
4264 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 4265 current frame matches the cfm that should occur for the prologues
004d836a
JJ
4266 alloc insn and if equal, mark as not frameless. At end of routine,
4267 if not frameless, calculate registers for the previous frame and store
4268 in the cache, if a cache is provided.
4269 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4270 and pass 0 for next_frame.
4271 (ia64_store_return_value): Change to use convert_typed_floating()
4272 instead of calling ia64_convert_to_raw().
4273 (ia64_extract_return_value): Change to use convert_typed_floating()
4274 instead of calling ia64_convert_to_virtual().
4275 (ia64_frame_cache): New routine to support new frame model.
4276 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4277 (ia64_frame_sniffer): Ditto.
4278 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4279 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4280 (ia64_sigtramp_frame_prev_register): Ditto.
4281 (ia64_sigtramp_frame_sniffer): Ditto.
4282 (ia64_frame_base_address): Ditto.
4283 (ia64_extract_struct_value_address): Change to issue error message.
4284 (ia64_frame_align): New routine to align sp.
4285 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4286 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4287 ia64_push_dummy_call().
4288 (ia64_push_return_address): Ditto.
4289 (ia64_unwind_dummy_id): New function.
4290 (ia64_unwind_pc): Ditto.
4291 (ia64_convert_register_p): Ditto.
4292 (ia64_register_to_value): Ditto.
4293 (ia64_value_to_register): Ditto.
4294 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4295 (ia64_register_byte, ia64_register_raw_size): Ditto.
4296 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4297 (ia64_saved_pc_after_call): Ditto.
4298 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4299 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4300 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4301 (ia64_register_convert_to_raw): Ditto.
4302 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4303 (ia64_init_extra_frame_info): Ditto.
4304 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4305 (ia64_gdbarch_init): Remove registering of deprecated functions that
4306 are no longer used. Add registration of new gdbarch functions.
4307 Remove registering deprecated_write_sp. Replace
4308 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4309 Delete set_gdbarch_deprecated_register_convertible(),
4310 set_gdbarch_deprecated_register_convert_to_virtual(), and
4311 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4312 set_gdbarch_deprecated_register_size(),
4313 set_gdbarch_deprecated_register_bytes(),
4314 set_gdbarch_pcregnum(),
4315 set_gdbarch_deprecated_register_byte(),
4316 set_gdbarch_deprecated_register_raw_size(),
4317 set_gdbarch_deprecated_max_register_raw_size(),
4318 set_gdbarch_deprecated_register_virtual_size(),
4319 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4320 Replace set_gdbarch_deprecated_extract_return_value() with
4321 set_gdbarch_extract_return_value(). Remove calls to:
4322 set_gdbarch_deprecated_saved_pc_after_call();
4323 set_gdbarch_deprecated_frame_chain(),
4324 set_gdbarch_deprecated_frame_saved_pc(),
4325 set_gdbarch_deprecated_frame_init_saved_regs(),
4326 set_gdbarch_deprecated_get_saved_register(),
4327 set_gdbarch_deprecated_call_dummy_words(),
4328 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4329 set_gdbarch_deprecated_init_extra_frame_info(),
4330 set_gdbarch_deprecated_frame_args_address(),
4331 set_gdbarch_deprecated_frame_locals_address(),
4332 and set_gdbarch_deprecated_dummy_write_sp().
4333 Add set_gdbarch_convert_register_p(),
4334 set_gdbarch_register_to_value(),
4335 set_gdbarch_value_to_register(),
4336 set_gdbarch_push_dummy_call(),
4337 set_gdbarch_frame_align(),
4338 set_gdbarch_unwind_dummy_id(),
4339 set_gdbarch_unwind_pc(),
4340 frame_unwind_append_sniffer(),
4341 frame_unwind_append_sniffer(),
4342 and frame_base_set_default().
4343
aede7613
CD
43442003-08-25 Chris Demetriou <cgd@broadcom.com>
4345
4346 * configure.tgt: Document need for special "mipsisa64" handling.
4347 (mipsisa64*-*-linux64): Handle as target linux64.
4348 (mipsisa64*-*-*): Handle as target embed64.
4349
43c3a82e
MC
43502003-08-18 Michael Chastain <mec@shout.net>
4351
4352 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4353 objfile bug.
4354
6564f77d
MK
43552003-08-24 Mark Kettenis <kettenis@gnu.org>
4356
2de139ba
MK
4357 * i387-tdep.h: Update copyright date.
4358 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4359
6564f77d
MK
4360 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4361 CFLAGS games to reflect reality.
4362
42cf1509
AC
43632003-08-24 Andrew Cagney <cagney@redhat.com>
4364
4365 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4366 GDB_MULTI_ARCH is always non-zero.
4367 * osabi.c (_initialize_gdb_osabi): Ditto.
4368 (gdbarch_init_osabi): Ditto.
4369 * sparc-tdep.c: Ditto for #if code.
4370
0485f6ad
MK
43712003-08-23 Mark Kettenis <kettenis@gnu.org>
4372
4373 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4374 Update comments.
4375 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4376 comments.
4377 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4378 x86_64_supply_fxsave.
4379 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4380 x86_64_supply_fxsave.
4381 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4382 x86_64_supply_fxsave.
4383
c7716133
AJ
43842003-08-23 Andreas Jaeger <aj@suse.de>
4385
4386 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4387 i387_supply_fxsave.
4388
ed504bdf
MK
43892003-08-23 Mark Kettenis <kettenis@gnu.org>
4390
4391 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4392 i387_supply_register.
4393 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4394 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4395 i387_supply_fsave.
4396 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4397 i387_supply_fxsave.
4398 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4399 i387_supply_fsave.
4400 * i386bsd-nat.c (supply_fpregset): Adjust call to
4401 i387_supply_fsave.
4402 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4403 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4404 supply_fpregset.
4405 (store_inferior_registers): Remove extraneous whitespace. Call
4406 i387_fill_fsave instead of fill_fpregset.
4407 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4408 (supply_fpregset): Likewise.
4409 * i386v4-nat.c (supply_fpregset): Adjust call to
4410 i387_supply_fsave.
4411 * i386-interix-nat.c (supply_fpregset): Adjust call to
4412 i387_supply_fsave.
4413 * i386-linux-nat.c (supply_fpregset): Adjust call to
4414 i387_supply_fsave.
4415 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4416 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4417 i387supply_fsave and i387_supply_fxsave.
4418 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4419 Incorporate code from `i387_supply_register.
4420 (i387_supply_register): Remove.
4421 (i387_supply_fxsave): Add `regnum' argument.
4422 Update comments.
4423 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4424 prototype.
4425 (i387_supply_register): remove prototype.
4426 Update comments.
a8f4cde1 4427
4be5d520
MC
44282003-08-22 Michael Chastain <mec@shout.net>
4429
4430 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4431 Add lines for files in gdb/testsuite/gdb.cp/* that are
4432 still not 8.3 unique.
4433
7ed85d26
DJ
44342003-08-22 Daniel Jacobowitz <drow@mvista.com>
4435
4436 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4437 TYPE_VPTR_FIELDNO is valid.
4438
eb0d3137
MK
44392003-08-19 Mark Kettenis <kettenis@gnu.org>
4440
4441 * utils.c (set_width_command): Remove prototypes.
4442 (set_screen_size): New prototype.
4443 (init_page_info): Simplify by fetching the screen size from
4444 Readline. Call set_screen_size.
4445 (set_screen_size): New function.
4446 (set_width): Add missing whitespace in comment.
4447 (set_width_command): Call set_screen_size.
4448 (set_height_command): New function.
4449 (initialize_utils): Fix formatting. Make "set height" command
4450 call set_height_command. Remove redundant code that turns off
4451 pagination if output isn't a terminal. Remove redundant call to
4452 set_width_command.
a8f4cde1 4453
7e6d0ac8
MK
44542003-08-22 Mark Kettenis <kettenis@gnu.org>
4455
3567a8ea
MK
4456 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4457 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4458 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4459 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4460 `case' keyword.
4461 (sparc64_register_info): Give the reister with number
4462 SPARC64_STATE_REGNUM a name.
4463 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4464 %asi and %ccr.
4465 (sparc64_push_dummy_call): Take BIAS into account when checking
4466 stcak alignment.
4467 (sparc_software_single_step): Remove assertions that check whether
4468 NPC and NNPC were zero.
4469 (sparc_supply_rwindow): Make public. Merge functionality with
4470 sparc64_supply_rwindow.
4471 (sparc_fill_rwindow): Make public. Merge functionality with
4472 sparc64_fill_rwindow.
4473 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4474 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4475 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4476 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4477 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4478
7e6d0ac8
MK
4479 * reggroups.c: Add whitespace after declarations of local
4480 variables in functions.
4481
72e5f484
MC
44822003-08-21 Michael Chastain <mec@shout.net>
4483
4484 * gdbtypes.h: Change array bound type from an int to enum.
4485
435ac228
AC
44862003-08-21 Andrew Cagney <cagney@redhat.com>
4487
4488 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4489 * config/sparc/tm-sparc.h: Ditto.
4490 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4491 unconditionally.
4492 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4493
0d0e1a63
MK
44942003-07-13 Mark Kettenis <kettenis@gnu.org>
4495
4496 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4497 (register_objfile_data, set_objfile_data, objfile_data): New
4498 prototypes.
4499 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4500 prototypes.
4501 (allocate_objfile): Call objfile_alloc_data.
4502 (free_objfile): Call objfile_free_data.
4503 (struct objfile_data): New.
4504 (struct objfile_data_registration): New.
4505 (struct objfile_data_registry): New.
4506 (objfile_data_registry): New variable.
4507 (register_objfile_data): New function.
4508 (objfile_alloc_data, objfile_free_data): New functions.
4509 (set_objfile_data, objfile_data): New functions.
4510 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4511 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4512 (_initialize_dwarf2_frame): New function and prototype.
4513
d90cf509
AC
45142003-08-21 Andrew Cagney <cagney@redhat.com>
4515
4516 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4517 a specific architecture.
4518 * arch-utils.h (set_architecture_from_arch_mach): Delete
4519 declaration.
4520 (target_architecture_hook): Delete declaration.
4521 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4522 (default_float_format): Assume GDB_MULTI_ARCH.
4523 (default_double_format): Assume GDB_MULTI_ARCH.
4524 (set_endian_from_file): Delete function.
4525 (arch_ok): Delete function.
4526 (set_arch): Delete function.
4527 (set_architecture_from_arch_mach): Delete function.
4528 (set_architecture_from_file): Delete function.
4529 (set_architecture): Assume GDB_MULTI_ARCH.
4530 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4531
8b39fe56
MK
45322003-08-21 Mark Kettenis <kettenis@gnu.org>
4533
4534 Rewrite FreeBSD/sparc64 native configuration.
4535 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4536 * sparc64fbsd-nat.c: New file.
4537 * sparc64fbsd-tdep.c: New file.
4538 * sparc64-tdep.c sparc64-tdep.h: New files.
4539 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4540 sparc64fbsd-tdep.o): New dependencies.
4541 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4542 and sparc64fbsd-tdep.c.
4543 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4544 * config/sparc/fbsd.mh: Remove copyright notice.
4545 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4546 sparcbsd-nat.o.
4547 * config/sparc/fbsd.mt: Remove copyright notice.
4548 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4549 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4550 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4551 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4552 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4553 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4554 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4555 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4556 "sparc/tm-sp64.h".
4557 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4558 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4559
a7f19c79
MC
45602003-08-21 Michael Chastain <mec@shout.net>
4561
4562 * symtab.h: Add doco on the space critical structures and
4563 some measurements of space usage.
4564
da08ea5b
MS
45652003-08-21 Michael Snyder <msnyder@redhat.com>
4566
4567 * tracepoint.c (trace_dump_command): Trace break address
4568 is subject to DECR_PC_AFTER_BREAK.
4569 (set_traceframe_context): Make "trace_line" an int.
4570 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4571
6df2bf50
MS
45722003-08-20 Michael Snyder <msnyder@redhat.com>
4573
4574 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4575 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4576 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4577 argument passing.
a8f4cde1 4578 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4579 functions, replace sh_push_dummy_call.
4580 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4581
0955bbf0
MC
45822003-08-20 Michael Chastain <mec@shout.net>
4583
4584 * gdbtypes.h (struct main_type): Rearrange to save space.
4585
260a4188
MS
45862003-08-20 Michael Snyder <msnyder@redhat.com>
4587
4588 * trad-frame.c: Comment typo fix.
4589
8baa6f92
KB
45902003-08-20 Michael Snyder <msnyder@redhat.com>
4591 Kevin Buettner <kevinb@redhat.com>
4592
4593 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4594 (frv_frame_init_saved_regs): Add declaration.
4595 (frame_extra_info): Add new field ``saved_regs''.
4596 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4597 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4598 Update frame related code.
4599 (frv_extract_struct_value_address): Adjust formatting.
4600 * Makefile.in (frv-tdep.o): Update dependencies.
4601 * config/frv/tm-frv.h (target_insert_watchpoint)
4602 (target_remove_watchpoint, target_insert_hw_breakpoint)
4603 (target_remove_hw_breakpoint): Delete these macros.
4604 (remote_insert_watchpoint, remote_remove_watchpoint)
4605 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4606 these declarations.
4607
87193939
MC
46082003-08-20 Michael Chastain <mec@shout.net>
4609
4610 * defs.h (ENUM_BITFIELD): New macro.
4611 * symtab.h (ENUM_BITFIELD): Use it.
4612 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4613
062103ba
SA
46142003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4615
4616 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4617
8b148df9
AC
46182003-08-18 Andrew Cagney <cagney@redhat.com>
4619
4620 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4621 * gdbarch.h, gdbarch.c: Re-generate.
4622 * infcall.c (call_function_by_hand): Adjust the SP by
4623 frame_red_zone_size before allocating any stack space.
4624 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4625 * x86-64-tdep.c (x86_64_frame_align): New function.
4626 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4627
4628 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4629 Remove code adjusting SP so that it skips over the Red Zone.
4630
954a4db8
MK
46312003-08-18 Mark Kettenis <kettenis@gnu.org>
4632
4633 * NEWS (New native configurations): Mention FreeBSD/amd64.
4634
1a241548
AC
46352003-08-18 Andrew Cagney <cagney@redhat.com>
4636
4637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4638 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4639 "m68k_frame_p".
4640 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4641
f82b2acd
MK
46422003-08-18 Mark Kettenis <kettenis@gnu.org>
4643
4644 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4645
4056d258
ML
46462003-08-18 Michal Ludvig <mludvig@suse.cz>
4647
4648 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4649 Define.
4650 * i386-linux-nat.c: Include "linux-nat.h".
4651 (child_post_startup_inferior): New function.
a8f4cde1 4652
99ab4326
MK
46532003-08-18 Mark Kettenis <kettenis@gnu.org>
4654
4655 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4656 at the start of a frameless function. This probably fixes PR
4657 backtrace/1338.
4658
c8d5f0d6
MC
46592003-08-17 Michael Chastain <mec@shout.net>
4660
4661 * symfile.c (find_sym_fns): Remove special case for apollo target.
4662
9016a515
DJ
46632003-08-17 Daniel Jacobowitz <drow@mvista.com>
4664
4665 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4666 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4667 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4668 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4669 (linux_supports_tracevforkdone): New function.
4670 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4671 TRACEVFORKDONE.
4672 (child_follow_fork): Handle vfork.
4673 (linux_handle_extended_wait): Likewise. Also handle exec.
4674 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4675 * NEWS: Mention fork tracing.
4676
c538c11c
DJ
46772003-08-17 Daniel Jacobowitz <drow@mvista.com>
4678
4679 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4680
4de4c07c
DJ
46812003-08-17 Daniel Jacobowitz <drow@mvista.com>
4682
4683 * Makefile.in (i386-linux-nat.o): Update dependencies.
4684 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4685 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4686 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4687 * i386-linux-nat.c: Include "linux-nat.h".
4688 (child_post_startup_inferior): New function.
4689 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4690 * infptrace.c (kill_inferior): Wrap in #ifdef.
4691 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4692 attaching to each LWP.
4693 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4694 (init_lin_lwp_ops): Fill in some more operations.
4695 * linux-nat.h (linux_enable_event_reporting)
4696 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4697 prototypes.
4698 * linux-nat.c (linux_enable_event_reporting): New function.
4699 (child_post_attach, linux_child_post_startup_inferior)
4700 (child_post_startup_inferior, child_follow_fork)
4701 (linux_handle_extended_wait, kill_inferior): New functions.
4702
7996bcec
AC
47032003-08-16 Andrew Cagney <cagney@redhat.com>
4704
4705 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4706 * gdbarch.h, gdbarch.c: Re-generate.
4707
3d48a7a0
MK
47082003-08-16 Mark Kettenis <kettenis@gnu.org>
4709
4710 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4711
7989c619
AC
47122003-08-16 Andrew Cagney <cagney@redhat.com>
4713
4714 * NEWS: Mention that "set prompt-escape-char" was deleted.
4715 * top.c (get_prompt_1): Delete function.
4716 (gdb_prompt_escape):
4717 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4718 prompt-escape-char" command.
4719 (MAX_PROMPT_SIZE): Delete macro.
4720 (get_prompt): Simplify, do not call get_prompt_1.
4721
07978cd8
AC
47222003-08-16 Andrew Cagney <cagney@redhat.com>
4723
4724 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4725 -Werror. -Wformat-nonliteral problems.
4726
3ff7cf9e
JB
47272003-08-15 J. Brobecker <brobecker@gnat.com>
4728
4729 Further multiarching work mostly for hppa64-*-hpux11:
4730 * hppa-tdep.h: New file.
4731 * hppa-tdep.c: #include hppa-tdep.c.
4732 (hppa32_num_regs): Renamed from hppa_num_regs.
4733 (hppa64_num_regs): New constant.
4734 (hppa64_call_dummy_breakpoint_offset): New constant.
4735 (hppa32_call_dummy_length): New constant.
4736 (hppa64_call_dummy_length): New constant.
4737 (hppa32_stack_align): Make name 32bit explicit.
4738 (hppa32_register_virtual_type): Likewise.
4739 (hppa32_extract_return_value): Likewise.
4740 (hppa32_use_struct_convention): Likewise.
4741 (hppa32_store_return_value): Likewise.
4742 (hppa64_register_virtual_type): New function.
4743 (hppa64_extract_return_value): New function.
4744 (hppa64_use_struct_convention): New function.
4745 (hppa64_store_return_value): New function.
4746 (hppa_frame_locals_address): Remove declaration, function does
4747 not exist anymore.
4748 (hppa_register_byte): Add support for PA64 ABI.
4749 (hppa_gdbarch_init): Add support for PA64 ABI.
4750 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4751 Make name 32bit explicit.
4752 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4753 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4754 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4755 (hppa64_hpux_frame_base_before_sigtramp): New function.
4756 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4757 * config/pa/tm-hppa64.h: Remove macros that are no longer
4758 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4759 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4760 * config/pa/tm-hppah.h: Update function calls in macros
4761 following the function renaming in hppa-hpux-tdep.c.
4762 * Makefile.in (hppa_tdep_h): New variable.
4763 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4764
5d05ca6d
MS
47652003-08-14 Michael Snyder <msnyder@redhat.com>
4766
4767 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4768
37ba2569
JB
47692003-08-13 J. Brobecker <brobecker@gnat.com>
4770
4771 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4772 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4773 routine.
4774
aed7f26a
MS
47752003-08-13 Michael Snyder <msnyder@redhat.com>
4776
4777 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4778 (frv_saved_pc_after_call): Use deprecated ftype.
4779 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4780 (frv_remote_translate_xfer_address): Remove.
4781 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4782
752d4ac1
JB
47832003-08-13 J. Brobecker <brobecker@gnat.com>
4784
4785 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4786 initialization after the common gdbarch initialization, not before.
4787
1426ac1d
JB
47882003-08-13 J. Brobecker <brobecker@gnat.com>
4789
4790 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4791 (ADDR_BITS_REMOVE): Remove, redundant.
4792
b6fbdd1d
JB
47932003-08-13 J. Brobecker <brobecker@gnat.com>
4794
4795 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4796 gdbarch method to clear the 2 low bits of text addresses.
4797
44160db3
AC
47982003-08-12 Andrew Cagney <cagney@redhat.com>
4799
4800 * Makefile.in (dsrec.o): Update dependencies.
4801 * dsrec.c: Include "gdb_assert.h".
4802 (make_srec): Use snprintf instead of sprintf, use a literal format
4803 string.
4804
bcf7d3ca
AC
48052003-08-12 Andrew Cagney <cagney@redhat.com>
4806
4807 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4808 FRAME_OBSTACK_ZALLOC.
4809
49ed40de
KB
48102003-08-12 Kevin Buettner <kevinb@redhat.com>
4811
4812 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4813 SSE registers.
4814
b246147c
MK
48152003-08-10 Mark Kettenis <kettenis@gnu.org>
4816
4817 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4818 amd64fbsd_sc_reg_offset): Add extern declarations.
4819 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4820 declarations.
4821
d95fdc0d
BE
48222003-08-11 Ben Elliston <bje@wasabisystems.com>
4823
4824 * MAINTAINERS (write after approval): Update my mail address.
4825
cf6a0e73
AC
48262003-08-10 Andrew Cagney <cagney@redhat.com>
4827
4828 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4829
f837910f
MK
48302003-08-10 Mark Kettenis <kettenis@gnu.org>
4831
e2dbbd2d
MK
4832 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4833 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4834 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4835 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4836 i386bsd_sc_reg_offset): Add extern declarations.
4837 * i386obsd-nat.c: Include "i386-tdep.h"
4838 (_initialize_i386obsd_nat): Remove extern declarations.
4839 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4840 declarations.
4841 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4842 declarations.
4843
f837910f
MK
4844 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4845 instead of frame_read_register.
4846 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4847 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4848 SP_REGNUM.
4849 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4850 instead of frame_unwind_unsigned_register. Use
4851 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4852 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4853 instead of read_register. Use builtin_type_void_data_ptr instead
4854 of builtin_type_void_func_ptr when extracting the address of the
4855 jmp_buf.
4856 (i386_extract_return_value, i386_store_return_value,
4857 i386_pseudo_register_read, i386_pseudo_register_write): Use
4858 register_size instead REGISTER_RAW_SIZE.
4859
edcf254d
AC
48602003-08-10 Andrew Cagney <cagney@redhat.com>
4861
4862 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4863 sprintf. Make "name" constant.
4864
26604a34
MK
48652003-08-10 Mark Kettenis <kettenis@gnu.org>
4866
192285c6
MK
4867 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4868 instead of frame_read_register.
f837910f
MK
4869 (i387_print_float_info): Use get_frame_register and
4870 get_frame_register_unsigned instead of frame_register_read.
192285c6 4871
f0925262
MK
4872 * i386fbsd-nat.c: Include "i386-tdep.h".
4873 (child_resume): Make `eflags' an ULONGEST. Use
4874 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4875 instead of register_read and register_write.
4876
a144416f
MK
4877 * i386bsd-nat.c (fetch_inferior_registers,
4878 store_inferior_registers): Don't use && at the end of a line.
4879 (_initialize_i386bsd_nat): Fix typo.
4880
fec74868
MK
4881 * frame.c (_initialize_frame): Add missing backslash.
4882
87232496
MK
4883 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4884 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4885 and supply_register instead of manipulating the register buffer
4886 directly.
4887
c9b9de0b
MK
4888 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4889 * config/i386/nm-i386sol2.h
4890 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4891
26604a34
MK
4892 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4893 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4894 instructions that GCC likes to mingle into the prologue. Fixes
4895 gdb/1253 and gdb/1255.
4896
25d29d70
AC
48972003-08-09 Andrew Cagney <cagney@redhat.com>
4898
4899 Fix GDB PR cli/926.
4900 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4901 * command.h (add_setshow_uinteger_cmd): Declare.
4902 * frame.c (set_backtrace_cmd): New function.
4903 (show_backtrace_cmd): New function.
4904 * frame.c (_initialize_frame): Replace "set/show
4905 backtrace-below-main" with "set/show backtrace past-main". Add
4906 command "set/show backtrace limit".
4907 (backtrace_past_main): Rename "backtrace_below_main".
4908 (backtrace_limit): New variable.
4909 (get_prev_frame): Update. Check the backtrace_limit.
4910
9ebf4acf
AC
49112003-08-09 Andrew Cagney <cagney@redhat.com>
4912
4913 * defs.h (xstrprintf): Declare.
4914 * utils.c (xstrprintf): New function.
4915 * breakpoint.c (insert_breakpoints): Replace sprintf and
4916 non-literal format strings, with xstrprintf and cleanups.
4917 (delete_breakpoint,breakpoint_re_set): Ditto.
4918 (commands_command, insert_breakpoints): Ditto.
4919 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4920 (break_at_finish_command_1): Ditto.
4921
3771659b
AC
49222003-08-09 Andrew Cagney <cagney@redhat.com>
4923
4924 * MAINTAINERS (language support): List Adam Fedor as Objective C
4925 maintainer.
4926
b4263afa
JB
49272003-08-08 J. Brobecker <brobecker@gnat.com>
4928
4929 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4930 are now multiarched.
4931
d84defb1
JB
49322003-08-08 J. Brobecker <brobecker@gnat.com>
4933
4934 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4935 longer necessary now that hppa64 is partially multiarch'ed.
4936
f786f615
AC
49372003-08-08 Andrew Cagney <cagney@redhat.com>
4938
4939 * interps.c (interp_set): Check for a NULL "old_interp".
4940
c938e9b0
L
49412003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4942
4943 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4944 (install-only): Support DESTDIR.
4945 (uninstall): Likewise.
4946 (install-gdbtk): Likewise.
4947
9a146a11
EZ
49482003-08-08 Elena Zannoni <ezannoni@redhat.com>
4949
4950 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4951 contains something meaningful at all times.
4952
4953Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4954
62599e99 4955 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4956
56296155
BC
4957Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4958
62599e99 4959 * MAINTAINERS (write after approval): Added self.
56296155 4960
9710e734
AC
49612003-08-07 Andrew Cagney <cagney@redhat.com>
4962
4963 * inferior.h (AT_SYMBOL): Define.
4964 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4965 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4966 * mips-tdep.c (mips_call_dummy_address): Delete function.
4967 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4968 set call_dummy_address.
4969
98b3ab73
AC
49702003-08-07 Andrew Cagney <cagney@redhat.com>
4971
4972 * language.c (op_error): Delete function.
4973 (binop_type_check): Delete function.
4974 * language.h (type_op_error, range_op_error): Delete macros.
4975 (op_error): Delete declaration.
4976
2fcf52f0
AC
49772003-08-07 Andrew Cagney <cagney@redhat.com>
4978
4979 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4980
abd4220e 49812003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4982
abd4220e 4983 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4984 (x86_64_push_arguments): Skip the red zone.
abd4220e 4985
9dd5f34f
AC
49862003-08-05 Andrew Cagney <cagney@redhat.com>
4987
4988 * reggroups.c (reggroup_next): Check for the final entry.
4989
e5e78edc
AC
49902003-08-04 Andrew Cagney <cagney@redhat.com>
4991
ab4e3d93
AC
4992 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4993 * cli/cli-script.c (define_command): Call query directly, instead
4994 of passing it a buffer.
4995 * ocd.c (ocd_error): Pass error a constant format string.
4996 * remote-mips.c (mips_error): Use fputs_filtered.
4997
1062ca82
AC
4998 * solib-svr4.c (_initialize_svr4_solib): Update
4999 register_gdbarch_data call.
5000 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
5001
fcc1c85c
AC
5002 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
5003 (register_gdbarch_data): Delete "free" parameter. Update
5004 comments.
5005 * gdbarch.h, gdbarch.c: Re-generate.
5006 * reggroups.c (_initialize_reggroup): Update.
5007 * gnu-v3-abi.c (init_gnuv3_ops): Update.
5008 * frame-base.c (_initialize_frame_base): Update.
5009 * frame-unwind.c (_initialize_frame_unwind): Update.
5010 * user-regs.c (_initialize_user_regs): Update.
5011 * remote.c (_initialize_remote): Update.
5012 * regcache.c (_initialize_regcache): Update.
5013
116f06ea
AC
5014 * regcache.c (xfree_regcache_descr): Delete function.
5015 (_initialize_regcache): Update call to register_gdbarch_data.
5016 (init_regcache_descr, init_legacy_regcache_descr): Use
5017 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
5018
e5e78edc
AC
5019 * remote.c (free_remote_state): Delete function.
5020 (_initialize_remote): Update register_gdbarch_data.
5021 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
5022 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
5023
6c7d17ba
AC
50242003-08-04 Andrew Cagney <cagney@redhat.com>
5025
5026 * reggroups.c (struct reggroup_el): Define.
5027 (struct reggroups): Delete field "nr_group". Replace array
5028 "group" with a "first" to "last" linked list.
5029 (reggroups_init): Update. Allocate using gdbarch's obstack.
5030 (reggroups_free): Delete function.
5031 (add_group): Update. Add "el" parameter.
5032 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
5033 (default_groups): Update.
5034 (reggroup_next): Replace reggroups.
5035 (reggroups_dump): Update.
5036 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
5037 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
5038 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
5039
89b7795b
DJ
50402003-08-04 Daniel Jacobowitz <drow@mvista.com>
5041
5042 * Makefile.in (tui-interp.o): Update dependencies.
5043
306d9ac5
DC
50442003-08-04 David Carlton <carlton@kealia.com>
5045
5046 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
5047 to internal_error call.
5048 * source.c (forward_search_command): Add "%s" format argument.
5049 (reverse_search_command): Ditto.
5050 * top.c (quit_confirm): Ditto.
5051 * cli/cli-setshow.c (do_setshow_command): Ditto.
5052 * cp-valprint.c (cp_print_class_method): Replace
5053 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
5054 (cp_print_class_member): Ditto.
5055 * event-top.c (command_line_handler): Ditto.
5056 * linux-proc.c (linux_info_proc_cmd): Ditto.
5057 * p-typeprint.c (pascal_type_print_base): Ditto.
5058 * p-valprint.c (pascal_object_print_class_method): Ditto.
5059 (pascal_object_print_class_member): Ditto.
5060 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
5061 * remote.c (remote_cisco_section_offsets): Ditto.
5062 * top.c (command_line_input): Ditto.
5063 * utils.c (vwarning,error_stream,quit): Ditto.
5064 * valprint.c (print_floating,print_binary_chars)
5065 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
5066
57bfe177
AC
50672003-08-04 Andrew Cagney <cagney@redhat.com>
5068
5069 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
5070
e546b999
AC
50712003-08-02 Andrew Cagney <cagney@redhat.com>
5072
5073 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
5074 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5075 amd64fbsd-nat.c.
5076
91092ee5
AC
50772003-08-02 Andrew Cagney <cagney@redhat.com>
5078
5079 * Makefile.in: Update all dependencies and definitions.
5080
889f28e2
AF
50812003-08-02 Adam Fedor <fedor@gnu.org>
5082
5083 * linespec.c (is_objc_method_format): New function
5084 (decode_line_1, locate_first_half): Use it.
5085 Fixes PR objc/1298
5086
880bc914
AC
50872003-08-01 Andrew Cagney <cagney@redhat.com>
5088
5089 * NEWS: Mention that m32r is multi-arch.
5090 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5091 * configure.tgt: Recognize m32r-*-*.
5092 * config/m32r/tm-m32r.h: Delete file.
5093 * config/m32r/m32r.mt: New file.
a8f4cde1 5094 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
5095 gethostname succeeds, in order to avoid a compilation
5096 warning.
5097 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5098 compiler warning.
5099
19f59343
MS
51002003-08-01 Michael Snyder <msnyder@redhat.com>
5101
5102 * sh-tdep.c (sh_frame_align): New gdbarch method.
5103 (sh_gdbarch_init): Set up frame_align method.
5104
4e7d7511
MS
51052003-07-31 Michael Snyder <msnyder@redhat.com>
5106
5107 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5108 which is already covered by the new frames infrastructure.
5109
63022984
AC
51102003-07-31 Andrew Cagney <cagney@redhat.com>
5111
5112 * user-regs.c (struct user_reg): Add "next" link.
5113 (struct user_regs): Replace "user" with "first" and "last" links.
5114 (append_user_reg): Add pre-allocated "reg" parameter.
5115 (builtin_user_regs): Provide initial value for "last".
5116 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5117 (user_regs_init): Allocate memory from the gdbarch obstack.
5118 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5119 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5120 linked list.
5121 (usernum_to_user_reg): New function.
5122 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5123 (value_of_user_reg): Use usernum_to_user_reg.
5124 (user_regs_free): Delete function.
5125 (_initialize_user_regs): Update register_gdbarch_data call.
5126
7cf6e574
DJ
51272003-07-31 Daniel Jacobowitz <drow@mvista.com>
5128
5129 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5130
c48a845b
MS
51312003-07-30 Michael Snyder <msnyder@redhat.com>
5132
4e7d7511 5133 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 5134 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
5135 value_being_returned.
5136 * infcmd.c (print_return_value): Pass zero as struct_addr.
5137 * values.c (value_being_returned): If struct_addr is passed,
5138 use it instead of trying to recover it from the inferior.
5139
f0d8db19
KB
51402003-07-30 Kevin Buettner <kevinb@redhat.com>
5141
5142 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5143 the prologue analyzer won't need to attempt to extract the pc
5144 value from the woefully incomplete dummy frame.
5145 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5146 possible. Disable code which modifies the frame.
5147
e5c113a1
AC
51482003-07-28 Andrew Cagney <cagney@redhat.com>
5149
5150 * annotate.c (annotate_breakpoints_headers): Restrict annotation
5151 to level 2.
5152 (annotate_breakpoints_table, annotate_record): Ditto.
5153 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5154 (annotate_field_name_end, annotate_field_value): Ditto.
5155 (annotate_field_end, annotate_frame_source_begin): Ditto.
5156 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5157 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5158 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5159 (annotate_frame_address_end, annotate_frame_address): Ditto.
5160 (annotate_frame_args, annotate_frame_end): Ditto.
5161 (annotate_frame_where, annotate_arg_begin): Ditto.
5162 (annotate_arg_name_end, annotate_arg_value): Ditto.
5163 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5164 (annotate_function_call, annotate_signal_name): Ditto.
5165 (annotate_signal_string, annotate_signal_name_end): Ditto.
5166 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5167 (annotate_value_begin, annotate_value_history_value): Ditto.
5168 (annotate_value_history_end, annotate_value_end): Ditto.
5169 (annotate_display_begin, annotate_display_number_end): Ditto.
5170 (annotate_display_format, annotate_display_expression): Ditto.
5171 (annotate_display_expression_end, annotate_display_value): Ditto.
5172 (annotate_display_end, annotate_array_section_begin): Ditto.
5173 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5174 (annotate_elt, annotate_array_section_end): Ditto.
5175
bb1db049
AC
51762003-07-28 Andrew Cagney <cagney@redhat.com>
5177
5178 * regcache.c (struct regcache_descr): Update comments on
5179 nr_raw_registers.
5180 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5181 sizeof_raw_register_valid_p.
5182 (init_regcache_descr): Set nr_raw_registers and
5183 sizeof_raw_register_valid_p before calling
5184 init_legacy_regcache_descr.
5185
20e6603c
AC
51862003-07-28 Andrew Cagney <cagney@redhat.com>
5187
5188 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5189 MOD NUM_REGS.
5190
db742940
DJ
51912003-07-28 Daniel Jacobowitz <drow@mvista.com>
5192
5193 * thread.c (info_threads_command): Use get_selected_frame ().
5194 Check that there is at least one non-sentinel frame.
5195
ce7f4371
SC
51962003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5197
5198 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5199 (m68hc11_pop_frame): Remove.
5200 (m68hc11_frame_saved_pc): Remove.
5201 (m68hc11_frame_chain): Remove.
5202 (m68hc11_frame_init_saved_regs): Remove.
5203 (m68hc11_init_extra_frame_info): Remove.
5204 (m68hc11_store_struct_return): Remove.
5205 (m68hc11_saved_pc_after_call): Remove.
5206
1ea653ae
SC
52072003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5208
5209 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5210 frame unwind information.
5211 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5212 and adapted for frame unwinding.
5213 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5214 (m68hc11_unwind_pc): New function.
5215 (m68hc11_frame_unwind_cache): New function to analyze frames.
5216 (m68hc11_frame_this_id): New function to create new frame struct.
5217 (m68hc11_frame_prev_register): New function to unwind a register from
5218 the frame.
5219 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5220 (m68hc11_frame_p): New function for the above.
5221 (m68hc11_frame_base_address): New function to return fp of frame.
5222 (m68hc11_frame_args_address): Update for frame.
5223 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5224 (m68hc11_unwind_sp): New function.
5225 (m68hc11_unwind_dummy_id): New function.
5226 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5227 calls.
5228
c8a7f6ac
SC
52292003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5230
5231 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5232 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5233 when we are beyond the current pc.
5234
3dc990bf
SC
52352003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5236
5237 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5238 from m68hc11_push_arguments.
5239 (m68hc11_push_arguments): Remove.
5240 (m68hc11_push_return_address): Remove.
5241 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5242 handlers; remove deprecated_extra_stack_alignment_needed.
5243
222e5d1d
AC
52442003-07-27 Andrew Cagney <cagney@redhat.com>
5245
5246 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5247 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5248 REAL_PC and not the pointer.
5249 * hppa-hpux-tdep.c: Include frame.h
5250
a7e9a47e
AC
52512003-07-27 Andrew Cagney <cagney@redhat.com>
5252
5253 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5254 GDB_MULTI_ACH_PARTIAL.
5255
7e3dd49e
AC
52562003-07-27 Andrew Cagney <cagney@redhat.com>
5257
5258 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5259 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5260 operator at start and not end of line.
5261 (decode_prologue): Ditto.
5262 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5263 frame_unwind_register_unsigned instead of
5264 frame_unwind_unsigned_register.
5265 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5266 read_register.
5267 (m32r_push_dummy_call): Use register_size instead of
5268 REGISTER_RAW_SIZE.
5269 (m32r_frame_sniffer): Replace m32r_frame_p.
5270 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5271 * m32r-rom.c (report_transfer_performance): Delete extern
5272 declaration.
5273 (m32r_load, m32r_upload_command): Use print_transfer_performance
5274 instead of report_transfer_performance.
5275 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5276 / add_show_from_set.
5277
0880807f
AC
52782003-07-26 Andrew Cagney <cagney@redhat.com>
5279
5280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5281 store_return_value and extract_struct_value_address.
5282
64ae9269
DJ
52832003-07-26 Daniel Jacobowitz <drow@mvista.com>
5284
5285 PR c++/1267
5286 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5287 NULL, default to the section containing PC.
5288
e286caf2
SC
52892003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5290
5291 * NEWS: Mention "regs" deprecated for m68hc11 too.
5292
5293 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5294 (m68hc11_print_register): New function to print out one register.
5295 (m68hc11_print_registers_info): New function to print registers.
5296 (show_regs): Deprecate and use the above.
5297 (m68hc11_gdbarch_init): Install the print_registers_info.
5298
705b278b
JJ
52992003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5300
5301 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5302 that we have a SIGTRAP before returning non-zero.
5303
63cd4198
EZ
53042003-07-23 Michal Ludvig <mludvig@suse.cz>
5305 Elena Zannoni <ezannoni@redhat.com>
5306
a8f4cde1 5307 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5308 find_function_start_sal() returns empty record.
5309
6926787d
AS
53102003-07-23 Andreas Schwab <schwab@suse.de>
5311
5312 * ia64-tdep.c (ia64_print_insn): New function.
5313 (ia64_gdbarch_init): Set print_insn to it.
5314 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5315 deprecated_tm_print_insn_info.
5316
708cc1b6
MS
53172003-07-22 Michael Snyder <msnyder@redhat.com>
5318
5319 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5320 handle 8-bit returns (long long).
5321 (h8300h_extract_return_value): Ditto.
5322 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5323
aebd7893
AC
53242003-07-22 Andrew Cagney <cagney@redhat.com>
5325
5326 * gdbarch.c Include "gdb_obstack.h".
5327 (struct gdbarch): Add an "obstack".
5328 (alloc_gdbarch_data): Allocate the gdbarch data using
5329 GDBARCH_OBSTACK_CALLOC.
5330 (free_gdbarch_data): Delete function.
5331 (gdbarch_obstack_zalloc): New function.
5332 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5333 Assert that the architecture is not initialized.
5334 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5335 vector from the obstack.
5336 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5337 architecture obstack.
5338 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5339 (set_gdbarch_data): Assert that the data is not initialized.
5340 (struct gdbarch_data): Delete member "free".
5341 (register_gdbarch_data): Do not initialize "free".
5342 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5343
153721e6
AC
53442003-07-22 Andrew Cagney <cagney@redhat.com>
5345
5346 * configure.in (build_warnings): Add -Wformat-nonliteral.
5347 * configure: Re-generate.
5348
c193f044 53492003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5350
5351 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5352
c3228f12
EZ
53532003-07-22 Elena Zannoni <ezannoni@redhat.com>
5354
5355 * findvar.c (read_var_value): Remove case for thread local storage
5356 variables. It is now entirely handled by the dwarf2 location
5357 expression code.
5358 * printcmd.c (address_info): Ditto.
5359 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5360 enumeration value.
5361 (struct symbol): Remove objfile field, which was used by
5362 LOC_THREAD_LOCAL_STATIC only.
5363 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5364 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5365 usage of objfile pointer.
5366 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5367 thread local variables.
5368 Add include of objfiles.h.
5369 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5370 storage variables.
5371 * Makefile.in (dwarf2loc.o): Update dependencies.
5372
aef9bcd2
AC
53732003-07-22 Andrew Cagney <cagney@redhat.com>
5374
5375 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5376 get_frame_base.
5377 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5378 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5379 (struct value): Add opaque declaration.
5380 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5381
d95a8903
AC
53822003-07-21 Andrew Cagney <cagney@redhat.com>
5383
5384 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5385 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5386
4db73d49
SC
53872003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5388
a8f4cde1 5389 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5390 regcache_cooked_read_unsigned instead of read_register.
5391 (m68hc11_saved_pc_after_call): Likewise.
5392 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5393 instead of write_register.
5394 (m68hc11_register_type): New function.
5395 (m68hc11_register_virtual_type): Remove.
5396 (m68hc11_store_return_value): Convert to use the regcache.
5397 (m68hc11_extract_struct_value_address): Likewise.
5398 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5399 m68hc11_register_type; undeprecate store_return_value and
5400 extract_struct_value_address.
5401
ef2b8fcd
SC
54022003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5403
5404 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5405 and translate to use regcache.
5406 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5407
625b0b97
AC
54082003-07-18 Andrew Cagney <cagney@redhat.com>
5409
5410 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5411 * gdbarch.h, gdbarch.c: Re-generate.
5412 * i386-tdep.c (i386_gdbarch_init): Do not set
5413 DWARF2_BUILD_FRAME_INFO.
5414 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5415 unconditionally.
5416 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5417 DWARF2_BUILD_FRAME_INFO.
5418
22b0d388
AC
54192003-07-18 Andrew Cagney <cagney@redhat.com>
5420
5421 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5422 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5423
1ce5d6dd
AC
54242003-07-18 Andrew Cagney <cagney@redhat.com>
5425
5426 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5427 frame_unwind_address_in_block, instead of frame_pc_unwind.
5428 (dwarf2_frame_cache): Ditto.
5429
e6e5e94c
AC
54302003-07-18 Andrew Cagney <cagney@redhat.com>
5431
5432 * user-regs.h (struct gdbarch): Declare opaque.
5433 * ui-out.h (struct ui_file): Declare opaque.
5434 * dwarf2-frame.h (struct frame_info): Declare opaque.
5435
5483d879
KW
54362003-07-18 Kris Warkentin <kewarken@qnx.com>
5437
5438 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5439 #include "...".
5440 (procfs_meminfo): Change strerror to safe_strerror.
5441 (procfs_can_run): Remove K&R badness.
5442
278a7cf7
MS
54432003-07-17 Michael Snyder <msnyder@redhat.com>
5444
5445 * remote-sim.c: Comment typo fix.
5446
606e3b82
AC
54472003-07-17 Andrew Cagney <cagney@redhat.com>
5448
5449 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5450 configure.
5451 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5452 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5453 GDB_MULTI_ARCH_PARTIAL.
5454
c43af07c
EZ
54552003-07-17 Elena Zannoni <ezannoni@redhat.com>
5456
5457 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5458 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5459 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5460
3b85b0f1
TR
54612003-07-16 Theodore A. Roth <troth@openavr.org>
5462
5463 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5464 found.
5465 (avr_frame_unwind_cache): Don't unwind FP for main.
5466 Update a comment.
5467 Save the computed prev_sp.
5468 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5469 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5470 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5471
336d1bba
AC
54722003-07-16 Andrew Cagney <cagney@redhat.com>
5473
5474 * frame-base.h (frame_base_p_ftype): Delete definition.
5475 (frame_base_append_predicate): Delete declaration.
5476 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5477 (frame_unwind_append_predicate): Delete declaration.
5478 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5479 (append_predicate): Delete parameter "p".
5480 (frame_unwind_append_predicate): Delete function.
5481 (frame_unwind_append_sniffer): Update call to append_predicate.
5482 (frame_unwind_free): Delete function.
5483 (_initialize_frame_unwind): Pass NULL as "free" to
5484 register_gdbarch_data.
5485 (frame_unwind_init): Append the dummy_frame_sniffer.
5486 (frame_unwind_find_by_frame): Simplify.
5487 * frame-base.c (struct frame_base_table): Delete field "p".
5488 (append_predicate): Delete parameter "p".
5489 (frame_base_append_predicate): Delete function.
5490 (frame_base_append_sniffer): Update call to append_predicate.
5491 (frame_base_free): Delete function.
5492 (frame_base_find_by_frame): Simplify.
5493 (_initialize_frame_base): Pass NULL as "free" to
5494 register_gdbarch_data.
5495 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5496 (x86_64_sigtramp_frame_sniffer): Replace
5497 "x86_64_sigtramp_frame_p".
5498 (x86_64_init_abi): Set the frame unwind sniffers.
5499 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5500 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5501 (m68k_gdbarch_init): Set the frame unwind sniffers.
5502 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5503 "i386_sigtramp_frame_p".
5504 (i386_frame_sniffer): Replace "i386_frame_p".
5505 (i386_gdbarch_init): Set the frame unwind sniffers.
5506 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5507 (avr_gdbarch_init): Set the frame unwind sniffers.
5508 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5509 "alpha_sigtramp_frame_p"
5510 (alpha_heuristic_frame_sniffer): Replace
5511 "alpha_heuristic_frame_p".
5512 (alpha_gdbarch_init): Set the frame unwind sniffers.
5513 (alpha_dwarf2_init_abi): Ditto.
5514 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5515 "alpha_debug_frame_p".
5516 (alpha_mdebug_frame_base_sniffer): Replace
5517 "alpha_mdebug_frame_base_p".
5518 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5519 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5520 (d10v_gdbarch_init): Set the frame unwind sniffer.
5521 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5522 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5523 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5524 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5525 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5526 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5527
48db5a3c
CV
55282003-07-16 Michael Snyder <msnyder@redhat.com>
5529
5530 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5531 should go thru sh_dsp_register_sim_regno, else the dsp regs
5532 will not get the right values.
5533
55342003-07-16 Corinna Vinschen <vinschen@redhat.com>
5535
5536 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5537 deprecated_store_floating by call to store_typed_floating.
5538 (sh_sh4_register_convert_to_raw): Substitute call to
5539 deprecated_extract_floating by call to extract_typed_floating.
5540
55412003-07-16 Corinna Vinschen <vinschen@redhat.com>
5542
5543 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5544
55452003-07-16 Corinna Vinschen <vinschen@redhat.com>
5546
5547 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5548 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5549 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5550 as possible.
5551 (do_pseudo_register): Remove.
5552 (sh_push_dummy_code): New function.
5553 (sh64_store_struct_return): Rename from sh_store_struct_return.
5554 Only called for sh64 now.
5555 (sh_extract_struct_value_address): Regcache'ify.
5556 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5557 and accomodate new tasks.
5558 (sh64_push_return_address): Rename from sh_push_return_address.
5559 Only called for sh64 now.
5560 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5561 Regcache'ify.
5562 (sh3e_sh4_extract_return_value): Regcache'ify.
5563 (sh_default_store_return_value): Ditto.
5564 (sh3e_sh4_store_return_value): Ditto.
5565 (sh_default_register_byte): Remove.
5566 (sh_sh4_register_byte): Remove.
5567 (sh_default_register_raw_size): Remove.
5568 (sh_sh4_register_raw_size): Remove.
5569 (sh_register_virtual_size): Remove.
5570 (sh_sh3e_register_virtual_type): Remove.
5571 (sh_sh3e_register_type): New function.
5572 (sh_sh4_register_virtual_type): Remove.
5573 (sh_sh4_register_type): New function.
5574 (sh_default_register_virtual_type): Remove.
5575 (sh_default_register_type): New function.
5576 (do_fv_register_info): Add parameters to accomodate call from
5577 sh_print_registers_info.
5578 (do_dr_register_info): Ditto.
5579 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5580 Add parameters to accomodate call from sh_print_registers_info.
5581 (sh_do_fp_register): Ditto.
5582 (sh64_do_pseudo_register): Call do_dr_register_info,
5583 do_fv_register_info and sh_do_fp_register with default parameters.
5584 (sh_do_register): Add parameters to accomodate call from
5585 sh_print_registers_info.
5586 (sh_print_register): Ditto.
5587 (sh_print_registers_info): Rename from sh_do_registers_info.
5588 Add parameters to be used as gdbarch_print_registers_info
5589 implementation. Accomodate removed do_pseudo_register function
5590 pointer.
5591 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5592 function pointer. Call sh_print_register with default parameters.
5593 (sh64_do_registers_info): Call sh_print_registers_info instead of
5594 sh_do_registers_info.
5595 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5596 detection of deprecated vs. non-deprecated functionality.
5597 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5598 function pointer assignments by direct function calls.
5599
e8a89fe2
AC
56002003-07-15 Andrew Cagney <cagney@redhat.com>
5601
5602 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5603 (frame_register_unwind, create_new_frame): Ditto.
5604 (legacy_get_prev_frame, get_frame_type): Ditto.
5605 (get_frame_base_address): Use frame_base_find_by_frame.
5606 (get_frame_locals_address): Use frame_base_find_by_frame.
5607 (get_frame_args_address): Use frame_base_find_by_frame.
5608 * frame-base.h (frame_base_sniffer_ftype): Declare.
5609 (frame_base_append_sniffer): Declare.
5610 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5611 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5612 (frame_base_append_sniffer): New function.
5613 (frame_base_append_predicate): Add a NULL sniffer.
5614 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5615 (struct frame_base_table): Add "sniffer".
5616 (frame_base_free): Free the "sniffer" table.
5617 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5618 (frame_unwind_append_sniffer): Declare.
5619 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5620 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5621 (struct frame_unwind_table): Add "sniffer", delete "middle".
5622 (append_predicate): Add "sniffer" parameter, append the sniffer.
5623 (frame_unwind_init): Update append_predicate call.
5624 (frame_unwind_append_sniffer): New function.
5625 (frame_unwind_append_predicate): Update append_predicate call.
5626 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5627
0714963c
AC
56282003-07-15 Andrew Cagney <cagney@redhat.com>
5629
5630 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5631 before code inhibiting repeated unwind attempts. Add to
5632 commentary on that test's problems.
5633 * blockframe.c (inside_main_func): Look for "main" in the minimal
5634 symbol table.
5635 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5636 identical.
5637
d9170e22
AC
56382003-07-15 Andrew Cagney <cagney@redhat.com>
5639
5640 * complaints.c (struct explanation): Define.
5641 (struct complaints): Change type of "explanation" to "struct
5642 explanation".
5643 (symfile_explanations): Convert to a "struct explanation" table.
5644 (vcomplaint): Update.
5645
eba29c8c
ML
56462003-07-15 Michal Ludvig <mludvig@suse.cz>
5647
5648 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5649 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5650 x86_64_linux_(fill,supply)_gregset functions.
5651 * x86-64-linux-tdep.c (USER_*): New defines.
5652 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5653 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5654 New functions.
5655 (fetch_core_registers): Ditto.
5656 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5657 * x86-64-linux-tdep.h: New file.
5658 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5659 and core-regset.o.
5660 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5661
68cc0bfb
MK
56622003-07-13 Mark Kettenis <kettenis@gnu.org>
5663
88a115f7
MK
5664 * x86-64-tdep.c (x86_64_store_return_value): Use
5665 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5666
68cc0bfb
MK
5667 * configure.host: Add x86_64-*-freebsd*.
5668 * configure.tgt: Add x86_64-*-freebsd*.
5669 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5670 * amd64fbsd-nat.c: New file.
5671 * amd64fbsd-tdep.c: New file.
5672 * config/i386/nm-fbsd64.h: New file.
5673 * config/i386/fbsd64.mh: New file.
5674 * config/i386/fbsd64.mt: New file.
5675
138e7be5
MK
56762003-07-11 Mark Kettenis <kettenis@gnu.org>
5677
5678 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5679 `sc_regs_offset' and `sc_fpregs_offset'.
5680 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5681 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5682 (alpha_sigtramp_register_address): Rewrite to use new members of
5683 `struct gdbarch_tdep'.
5684 (alpha_gdbarch_init): Initialize new members of struct
5685 gdbarch_tdep'.
5686 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5687 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5688 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5689 (alphafbsd_pc_in_sigtramp): Implement.
5690 (alphafbsd_sigtramp_offset): New function.
5691 (alphafbsd_sigcontext_addr): New function.
5692 (alphafbsd_init_abi): Initialize signal trampoline related members
5693 of `struct gdbarch_tdep'.
5694 (_initialize_alphafbsd_tdep): Add prototype.
5695
95303a68
TR
56962003-07-11 Theodore A. Roth <troth@openavr.org>
5697
ba292e4c
TR
5698 * Makefile.in (install-only): Quote sed expression when generating
5699 transformed_name.
95303a68 5700
6896c0c7
RH
57012003-07-11 Richard Henderson <rth@redhat.com>
5702
5703 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5704 * dwarf2-frame.c: Include complaints.h.
5705 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5706 variable initialization; return NULL on error.
5707 (decode_frame_entry): New.
5708
8edd5d01
AC
57092003-07-11 Andrew Cagney <cagney@redhat.com>
5710
c4a09524
AC
5711 * frame.h (frame_address_in_block): Delete declaration.
5712 * blockframe.c (frame_address_in_block): Delete function.
5713 (get_frame_block): Use get_frame_address_in_block.
5714 (block_innermost_frame): Ditto.
5715 * stack.c (print_frame, backtrace_command_1): Ditto.
5716
8edd5d01
AC
5717 * frame.h (get_frame_address_in_block): Declare.
5718 (frame_unwind_address_in_block): Declare.
5719 * frame.c (frame_unwind_address_in_block): New function.
5720 (get_frame_address_in_block): New function.
5721
f7968451
AC
57222003-07-10 Andrew Cagney <cagney@redhat.com>
5723
5724 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5725 pre-default. Note: re-generate has no effect.
a8f4cde1 5726
ae99b398
AC
57272003-07-10 Andrew Cagney <cagney@redhat.com>
5728
5729 * gdbarch.sh: When a variable, but not a function, compare against
5730 0. Fix problem in previous patch.
5731 * gdbarch.c: Re-generate.
a8f4cde1 5732
956ac328
AC
57332003-07-10 Andrew Cagney <cagney@redhat.com>
5734
5735 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5736 functions against NULL, not 0.
5737 * gdbarch.c: Re-generate.
a8f4cde1 5738
287c3240
FF
57392003-07-10 Fred Fish <fnf@ninemoons.com>
5740
5741 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5742 null string instead of a null pointer.
5743 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5744
32f63c4b
MS
57452003-07-09 Michael Snyder <msnyder@redhat.com>
5746
5747 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5748
402ecd56
MK
57492003-07-09 Mark Kettenis <kettenis@gnu.org>
5750
5751 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5752 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5753 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5754 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5755 * x86-64-tdep.c: ... from here.
5756
c481dac7
AS
57572003-07-09 Andreas Schwab <schwab@suse.de>
5758
5759 * m68k-tdep.h (enum struct_return): Define.
5760 (struct gdbarch_tdep): Add struct_return.
5761 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5762 bytes are padded to the right, not to the left. Pass struct value
5763 address in register %a1, not on stack.
5764 (m68k_use_struct_convention): New function.
5765 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5766 struct_return in tdep to pcc_struct_return.
5767 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5768 reg_struct_return.
5769
a8f4cde1 57702003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5771
a8f4cde1 5772 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5773
96a4ee76
AC
57742003-07-09 Andrew Cagney <cagney@redhat.com>
5775
5776 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5777 Add comments about the checks.
5778
1517c6d1
AC
57792003-07-08 Andrew Cagney <cagney@redhat.com>
5780
5781 * Makefile.in: Make dependency section headers consistent.
5782 (config_h): Move to $BUILD headers section.
5783 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5784 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5785 (ada-exp.tab.c): Move to YACC/LEX section.
5786 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5787 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5788
dc5dd1eb
KW
57892003-07-08 Kris Warkentin <kewarken@qnx.com>
5790
5791 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5792 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5793 of strerror with safe_strerror, use ISO C function definitions,
5794 and replace instances of sprintf with snprintf.
dc5dd1eb 5795
612dde91
AC
57962003-07-07 Andrew Cagney <cagney@redhat.com>
5797
5798 * frame.c (get_prev_frame): Enable check for identical frames.
5799 Update comments. Update error messages.
5800
492c11d3
JB
58012003-07-07 Joel Brobecker <brobecker@gnat.com>
5802
5803 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5804
376a5a49
JB
58052003-07-07 Joel Brobecker <brobecker@gnat.com>
5806
5807 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5808 sort_symtab_syms, no longer necessary.
5809
22b4a9ad
JB
58102003-07-07 Joel Brobecker <brobecker@gnat.com>
5811
5812 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5813
5bbcb741
JB
58142003-07-07 Joel Brobecker <brobecker@gnat.com>
5815
5816 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5817 (mips_register_byte): Likewise.
5818
c139e7d9
DJ
58192003-07-07 Daniel Jacobowitz <drow@mvista.com>
5820
5821 * Makefile.in (sparc_tdep_h): New.
5822 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5823 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5824 * sparc-linux-nat.c: Include "sparc-tdep.h".
5825 * sparc-nat.c: Likewise.
5826 * sparc-tdep.c: Likewise.
5827 * sparc64nbsd-nat.c: Likewise.
5828 * sparcnbsd-nat.c: Likewise.
5829 * sparcnbsd-tdep.c: Likewise.
5830 * sparc-tdep.h: New file.
5831 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5832 and sparc_npc_regnum.
5833
fd8f87c5
DJ
58342003-07-07 Daniel Jacobowitz <drow@mvista.com>
5835
5836 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5837 (mips_linux_cannot_store_register): List supported instead of
5838 unsupported registers.
5839
13adf674
DJ
58402003-07-07 Daniel Jacobowitz <drow@mvista.com>
5841
5842 * disasm.c (dump_insns): Separate instructions from addresses.
5843
8de307e0
AS
58442003-07-07 Andreas Schwab <schwab@suse.de>
5845
5846 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5847 dependencies.
5848 * m68k-tdep.c (NUM_FREGS): Delete.
5849 (SIG_PC_FP_OFFSET): Delete.
5850 (TARGET_M68K): Delete.
5851 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5852 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5853 P_MOVEL_SP, P_MOVEML_SP): Define.
5854 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5855 P_TRAP): Delete.
5856 (m68k_register_raw_size): Delete.
5857 (m68k_register_virtual_size): Delete.
5858 (m68k_register_type): Renamed from m68k_register_virtual_type and
5859 add gdbarch argument.
5860 (m68k_store_struct_return): Delete.
5861 (m68k_deprecated_extract_return_value): Delete.
5862 (m68k_deprecated_extract_struct_value_address): Delete.
5863 (m68k_frame_chain): Delete.
5864 (m68k_frame_saved_pc): Delete.
5865 (m68k_fix_call_dummy): Delete.
5866 (m68k_push_dummy_frame): Delete.
5867 (m68k_pop_frame): Delete.
5868 (m68k_extract_return_value): New function.
5869 (m68k_store_return_value): Rewrite using regcache.
5870 (m68k_extract_struct_value_address): Rewrite using regcache.
5871 (m68k_push_dummy_call): New function.
5872 (struct m68k_frame_cache): Define.
5873 (m68k_alloc_frame_cache): New function.
5874 (m68k_analyze_frame_setup): New function.
5875 (m68k_analyze_register_saves): New function.
5876 (m68k_analyze_prologue): New function.
5877 (m68k_skip_prologue): Rewrite using above functions.
5878 (m68k_unwind_pc): New function.
5879 (m68k_frame_cache): New function.
5880 (m68k_frame_this_id): New function.
5881 (m68k_frame_prev_register): New function.
5882 (m68k_frame_unwind): New variable.
5883 (m68k_frame_p): New function.
5884 (m68k_sigtramp_frame_cache): New function.
5885 (m68k_sigtramp_frame_this_id): New function.
5886 (m68k_sigtramp_frame_prev_register): New function.
5887 (m68k_sigtramp_frame_unwind): New variable.
5888 (m68k_sigtramp_frame_p): New function.
5889 (m68k_frame_base_address): New function.
5890 (m68k_frame_base): New function.
5891 (m68k_unwind_dummy_id): New function.
5892 (fill_gregset): Use regcache_collect.
5893 (fill_fpregset): Likewise.
5894 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5895 defined.
5896 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5897 deprecated_init_frame_pc, deprecated_store_struct_return,
5898 deprecated_extract_return_value, deprecated_store_return_value,
5899 deprecated_frame_chain, deprecated_frame_saved_pc,
5900 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5901 deprecated_register_virtual_size,
5902 deprecated_max_register_raw_size,
5903 deprecated_max_register_virtual_size,
5904 deprecated_register_virtual_type, deprecated_register_size,
5905 deprecated_register_byte, deprecated_register_bytes,
5906 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5907 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5908 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5909 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5910 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5911 deprecated_push_dummy_frame, deprecated_pop_frame,
5912 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5913 only if SYSCALL_TRAP is defined. Set extract_return_value,
5914 store_return_value, extract_struct_value_address, register_type,
5915 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5916 predicates.
5917 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5918 M68K_MAX_REGISTER_SIZE): Define.
5919 (struct m68k_sigtramp_info): Define.
5920 (struct gdbarch_tdep): Add get_sigtramp_info.
5921 * m68klinux-nat.c (fetch_register): Use register_size instead of
5922 REGISTER_RAW_SIZE. Don't put assignment in if.
5923 (store_register): Likewise.
5924 (fetch_inferior_registers): Likewise.
5925 (store_inferior_registers): Likewise.
5926 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5927 (m68k_linux_frame_saved_pc): Delete.
5928 (m68k_linux_sigcontext_reg_offset,
5929 m68k_linux_ucontext_reg_offset): Define.
5930 (m68k_linux_get_sigtramp_info): New function.
5931 (m68k_linux_extract_return_value): Rewrite using regcache.
5932 (m68k_linux_store_return_value): Likewise.
5933 (m68k_linux_extract_struct_value_address): Likewise.
5934 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5935 Don't set deprecated_frame_saved_pc,
5936 deprecated_extract_return_value, deprecated_store_return_value,
5937 deprecated_extract_struct_value_address. Set
5938 extract_return_value, store_return_value,
5939 extract_struct_value_address.
5940
eb8bc282
AC
59412003-07-07 Andrew Cagney <cagney@redhat.com>
5942
5943 * expprint.c: Include "user-regs.h" instead of "frame.h".
5944 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5945 frame_map_regnum_to_name.
5946 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5947 (frame_map_name_to_regnum): Simplify, call
5948 user_reg_map_name_to_regnum.
5949 (frame_map_regnum_to_name): Simplify, call
5950 user_reg_map_regnum_to_name.
5951 (frame_register_unwind): Update.
5952 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5953 (_initialize_frame_reg): Call user_reg_add_builtin.
5954 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5955 (value_of_register): Use value_of_user_reg.
5956 * eval.c (evaluate_subexp_standard): Update.
5957 * parse.c (write_dollar_variable): Update.
5958 * d10v-tdep.c (d10v_print_registers_info): Update.
5959 * infcmd.c (registers_info): Update.
5960 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5961 (builtin_regs_h): Delete macro.
5962 (user_regs_h): Define.
5963 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5964 (builtin-regs.o): Delete target.
5965 (user-regs.o): Specify dependencies.
5966 (expprint.o): Update dependencies.
5967 (findvar.o): Update dependencies.
5968 (frame.o): Update dependencies.
5969 (std-regs.o): Update dependencies.
5970
9f476a01
CF
59712003-07-06 Christopher Faylor <cgf@redhat.com>
5972
5973 * win32-nat.c (solib_symbols_add): Use one variable for all section
5974 address stuff. Pass variable rather than address of variable to
5975 safe_symbol_file_add.
5976
a731b831
AS
59772003-07-06 Andreas Schwab <schwab@suse.de>
5978
5979 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5980
9f83329d
JB
59812003-07-04 Joel Brobecker <brobecker@gnat.com>
5982
5983 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5984
27e28cc5
KW
59852003-07-04 Kris Warkentin <kewarken@qnx.com>
5986
5987 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5988
59892003-07-04 Kris Warkentin <kewarken@qnx.com>
5990
5991 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5992 * config/i386/nto.mh: New file.
5993 * config/i386/nm-nto.h: New file.
5994 * configure.host: Add i[3456]86-*-nto*.
5995
100f2e98
JB
59962003-07-03 Joel Brobecker <brobecker@gnat.com>
5997
5998 * remote-vx.c (vx_add_symbols): Fix compilation error.
5999
e23457df
AC
60002003-07-03 Andrew Cagney <cagney@redhat.com>
6001
6002 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
6003 * gdbarch.h, gdbarch.c: Re-generate.
6004 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
6005 (legacy_register_name): Declare.
6006 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
6007 (REGISTER_NAME): Define.
6008 * sparc-tdep.c (legacy_register_name): New function.
6009 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
6010 (REGISTER_NAME): Define.
6011 (hppa64_register_name): Declare.
6012 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
6013 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
6014 (hppa64_register_name): New function.
6015 (hppa_register_name): New function.
6016 * arch-utils.c (legacy_register_name): Delete.
6017 * arch-utils.h (legacy_register_name): Delete.
6018
38caaeec
DJ
60192003-07-03 Daniel Jacobowitz <drow@mvista.com>
6020
6021 * cli/cli-interp.c (cli_interpreter_resume): Update the
6022 cli_uiout's stream to gdb_stdout.
6023
dadd712e
AC
60242003-07-03 Andrew Cagney <cagney@redhat.com>
6025
6026 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
6027 predicate.
6028 * gdbarch.h, gdbarch.c: Re-generate.
6029 * regcache.c (init_regcache_descr): Use legacy code when either
6030 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
6031
c7f1390e
DJ
60322003-07-02 Daniel Jacobowitz <drow@mvista.com>
6033
6034 * NEWS: Move "set logging" entry into GDB 6.0 section.
6035
4bc8c588
JB
60362003-07-02 Jim Blandy <jimb@redhat.com>
6037
a9dd42f1
JB
6038 * s390-tdep.c (struct frame_extra_info): new member:
6039 'stack_bought_valid'.
6040 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
6041 initialize fextra_info->stack_bought.
6042 (s390_frameless_function_invocation): Don't trust the value of
6043 fextra_info_ptr->stack_bought unless
6044 fextra_info->stack_bought_valid is set.
6045
4bc8c588
JB
6046 New S390 prologue analyzer.
6047 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
6048 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
6049 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
6050 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
6051 compute_x_addr, s390_on_stack, s390_store,
6052 s390_get_signal_frame_info): New functions.
6053 (S390_NUM_SPILL_SLOTS): New macro.
6054 (s390_get_frame_info): Rewritten.
6055 (is_arg_reg): Deleted.
6056
6057 Break out the decoding of S/390 instructions into separate
6058 functions, to make it more legible, and easier to check
6059 against the spec.
6060 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
6061 is_rx, is_rxe): New functions.
6062 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
6063 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
6064 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
6065 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
6066 enums for opcode values. (Is this an improvement?)
6067
fd13a04a
AC
60682003-07-02 Andrew Cagney <cagney@redhat.com>
6069
6070 * i386-tdep.c: Revert change committed as part of trad-frame code
6071 below.
6072
3f8091c1
DJ
60732003-07-02 Daniel Jacobowitz <drow@mvista.com>
6074
6075 * breakpoint.c (insert_catchpoint): Make static.
6076
8dd5115e
AS
60772003-07-02 Andreas Schwab <schwab@suse.de>
6078
6079 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6080 former ia64_push_arguments and ia64_push_return_address, and use
6081 regcache functions instead of read/write_register.
6082 (ia64_gdbarch_init): Set push_dummy_call instead of
6083 deprecated_push_arguments and deprecated_push_return_address.
6084
a2229c23
AJ
60852003-07-01 Andreas Jaeger <aj@suse.de>
6086
6087 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6088 before the call.
6089 Set %rax only to number of SSE registers used.
6090
3b3850e8
AC
60912003-07-01 Andrew Cagney <cagney@redhat.com>
6092
6093 * trad-frame.h: Update comments, a -1 .addr is reserved.
6094 (trad_frame_value_p, trad_frame_addr_p): Declare.
6095 (trad_frame_reg_p): Declare.
6096 (trad_frame_set_value): Rename trad_frame_register_value.
6097 (trad_frame_set_unknown): Declare.
6098 * trad-frame.c (trad_frame_realreg_p): New function.
6099 (trad_frame_addr_p, trad_frame_value_p): New function.
6100 (trad_frame_set_unknown): New function.
6101 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6102 (trad_frame_prev_register): Use trad_frame_realreg_p,
6103 trad_frame_addr_p and trad_frame_value_p.
6104 (trad_frame_set_value): Rename trad_frame_register_value.
6105 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6106 and trad_frame_set_value.
a2229c23 6107
4d819d0e
JB
61082003-06-30 Jim Blandy <jimb@redhat.com>
6109
6110 Patch from IBM (authors unspecified, probably Ulrich Weigand and
6111 Gerhard Tonn) for argument passing on the S/390 and S/390x:
6112 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6113 for 16 registers, and then 32 more bytes.
6114 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6115 New macros.
6116 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6117 Move up in the file, since it's now used by is_simple_arg.
6118 (is_simple_arg): Don't assume registers are four bytes long.
6119 Exclude all double arguments. Extended floats are not simple
6120 args.
6121 (is_power_of_two): New function.
6122 (pass_by_copy_ref): Call is_power_of_two, and check that the
6123 length fits in a register, rather than listing all the acceptable
6124 sizes. Extended floats are not passed by reference.
6125 (s390_push_arguments): Don't assume registers are four bytes long.
6126 Reserve an argument register to point to the buffer for structures
6127 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
6128 S390_STACK_FRAME_OVERHEAD.
6129
1ad828f1
AS
61302003-06-30 Andreas Schwab <schwab@suse.de>
6131
6132 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6133 format error message.
6134
39b00981
JB
61352003-06-30 Joel Brobecker <brobecker@gnat.com>
6136
6137 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6138
b2a7f303
DC
61392003-06-30 David Carlton <carlton@kealia.com>
6140
6141 Band-aid for PR c++/1245.
6142 * Makefile.in (cp-support.o): Depend on complaints_h.
6143 * cp-support.c: Include complaints.h. Add declaration for
6144 find_last_component.
6145 (cp_find_first_component): Separate code into
6146 cp_find_first_component_aux.
6147 (cp_find_first_component_aux): Call demangled_name_complaint.
6148 (demangled_name_complaint): New.
6149
a257b5bb
AC
61502003-06-30 Andrew Cagney <cagney@redhat.com>
6151
6152 * remote.c (remote_write_bytes): Explicitly compute and then use
6153 the payload size. Update comments to reflect. Fixes problem of
6154 GDB not sending small packets as found by Fred Fish.
6155
0a2cfde4
AC
61562003-06-30 Andrew Cagney <cagney@redhat.com>
6157
6158 * remote.c (remote_async_wait): Fix -Wformat problem.
6159
3fcb8548
AC
61602003-06-29 Andrew Cagney <cagney@redhat.com>
6161
6162 * remote.c (remote_wait): Call error, and not warning, when the
6163 packet is corrupt.
6164 (remote_async_wait): Ditto.
6165
9f9970a3
DJ
61662003-06-29 Daniel Jacobowitz <drow@mvista.com>
6167
6168 * sparc-tdep.c (sparc_y_regnum): Make external again.
6169
83a8ccca
DJ
61702003-06-29 Daniel Jacobowitz <drow@mvista.com>
6171
6172 * cli/cli-logging.c (pop_output_files): Add void to function
6173 definition.
6174
d2cf594a
AC
61752003-06-29 Andrew Cagney <cagney@redhat.com>
6176
6177 * frame.c (frame_register_unwind): Use unsigned char when dumping
6178 the buffer contents.
6179
0fac0b41
DJ
61802003-06-28 Daniel Jacobowitz <drow@mvista.com>
6181
6182 * cli/cli-logging.c: New file.
6183 * cli-out.c (struct ui_out_data): Add original_stream.
6184 (cli_redirect): New function.
6185 (cli_ui_out_impl): Add cli_redirect.
6186 (cli_out_new): Initialize original_stream.
6187 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6188 (uo_redirect, ui_out_redirect): New.
6189 * ui-out.h (struct ui_out_impl): Add redirect member.
6190 (redirect_ftype): New.
6191 (ui_out_redirect): Add prototype.
6192 * Makefile.in: Add rules for cli-logging.c.
6193 * NEWS: Mention "set logging".
6194
88a07d7c
EZ
61952003-06-27 Elena Zannoni <ezannoni@redhat.com>
6196
6197 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6198
4eb58876
AC
61992003-06-27 Andrew Cagney <cagney@redhat.com>
6200
6201 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6202 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6203 * avr-tdep.c (avr_call_dummy_address): Delete function.
6204 (avr_gdbarch_init): Do not set call_dummy_address.
6205
1549f619
EZ
62062003-06-27 Elena Zannoni <ezannoni@redhat.com>
6207
6208 * symfile.c (syms_from_objfile): Move variables to inner block.
6209 Move the checks for the non-mainline case a bit earlier to avoid
6210 doing some useless computations.
6211
3cb3398d
EZ
62122003-06-27 Elena Zannoni <ezannoni@redhat.com>
6213
6214 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6215
3799ccc6
EZ
62162003-06-26 Elena Zannoni <ezannoni@redhat.com>
6217
6218 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6219 sections.
6220
ce1f6491
MC
62212003-06-26 Michael Chastain <mec@shout.net>
6222
6223 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6224 gdb/testsuite/gdb.c++/pr-1210.exp.
6225
d958dfd0
AC
62262003-06-26 Andrew Cagney <cagney@redhat.com>
6227
6228 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6229 altivec_expression.h and altivec_registers.h.
6230
d31431ed
AC
62312003-06-26 Andrew Cagney <cagney@redhat.com>
6232
6233 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6234 info->mach when MIPS16. Patch suggested by Fred Fish.
6235
714b1282
AC
62362003-06-26 Andrew Cagney <cagney@redhat.com>
6237
6238 * utils.c (internal_vproblem): Print the problem to a reason
6239 buffer and then pass to query. Make the msg variable more local.
6240
42efa47a
AC
62412003-06-26 Andrew Cagney <cagney@redhat.com>
6242
6243 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6244 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6245 * gdbarch.h, gdbarch.c: Re-generate.
6246 * frame-base.c (default_frame_args_address): Update. Use
6247 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6248 not available.
6249 (default_frame_locals_address): Ditto for
6250 DEPRECATED_FRAME_LOCALS_ADDRESS.
6251 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6252 (vax_frame_num_args): Update.
6253 (vax_gdbarch_init): Update.
6254 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6255 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6256 * mcore-tdep.c (mcore_gdbarch_init): Update.
6257 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6258 * ia64-tdep.c (ia64_gdbarch_init): Update.
6259 * symtab.h (address_class): Update comments.
6260 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6261 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6262 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6263 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6264 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6265 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6266 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6267 * alpha-mdebug-tdep.c: Update.
6268 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6269
8ffd9b1b
AJ
62702003-06-26 Andreas Jaeger <aj@suse.de>
6271
6272 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6273 of SSE registers so that varargs functions work. Rework handling
6274 of passing arguments on the stack.
6275 (x86_64_store_return_value): Return double and float values in SSE
6276 register.
6277
e8ac10a6
MC
62782003-06-24 Michael Chastain <mec@shout.net>
6279
6280 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6281 the "constructor breakpoints ignored" bug.
6282
986af8e6
DC
62832003-06-25 David Carlton <carlton@kealia.com>
6284
6285 * MAINTAINERS: Update e-mail address.
6286
d64558a5
JB
62872003-06-24 Jim Blandy <jimb@redhat.com>
6288
e538d2d7
JB
6289 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6290
02631ec0
JB
6291 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6292 function.
6293 (ppc_linux_init_abi): Register it as the
6294 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6295
e716d87a
JB
6296 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6297 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6298 method.
6299
d64558a5
JB
6300 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6301 (ppc64_standard_linkage_target): Use it.
6302
449a5da4
AC
63032003-06-23 Andrew Cagney <cagney@redhat.com>
6304
6305 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6306 for 0 "int0" and 4 "int32" sized registers.
6307 * gdbtypes.c (builtin_type_int0): Define.
6308 (build_gdbtypes): Initialize builtin_type_int0.
6309 * gdbtypes.h (builtin_type_int0): Declare.
6310
b2a02dda
SC
63112003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6312
6313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6314 as characters are unsigned.
6315
fba3138e
DJ
63162003-06-22 Daniel Jacobowitz <drow@mvista.com>
6317
6318 PR gdb/1179
6319 * dwarfread.c (struct_type): Skip static fields without crashing.
6320
f6c8180b
AC
63212003-06-22 Andrew Cagney <cagney@redhat.com>
6322
6323 GDB 6.0 branch created.
f2c06f52
AC
6324 * README: Update.
6325 * PROBLEMS: Update. Empty.
6326 * NEWS: Update.
f6c8180b 6327
ae822768
DJ
63282003-06-22 Daniel Jacobowitz <drow@mvista.com>
6329
6330 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6331 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6332
261de166
AC
63332003-06-22 Andrew Cagney <cagney@redhat.com>
6334
6335 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6336 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6337 Velikov.
6338
30e94205
DJ
63392003-06-22 Daniel Jacobowitz <drow@mvista.com>
6340
6341 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6342 compilers.
6343
9e14d721
DJ
63442003-06-21 Daniel Jacobowitz <drow@mvista.com>
6345
6346 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6347 argument of val_print.
6348 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6349 to the address argument of baseclass_offset or target_read_memory.
6350 Do add it to the argument of cp_print_value_fields.
6351
a4b8ebc8
AC
63522003-06-21 Andrew Cagney <cagney@redhat.com>
6353
6354 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6355 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6356 instead of 0..NUM_REGS.
6357 (mips_register_reggroup_p): New function.
6358 (mips_pseudo_register_write): New function.
6359 (mips_pseudo_register_read): New function.
6360 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6361 based on the register's type.
6362 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6363 cooked.
6364 (mips_get_saved_register): Simplify. Assert that REGNO is a
6365 pseudo / cooked.
6366 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6367 (mips_register_type): Replace mips_register_virtual_type. Map
6368 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6369 when available.
6370 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6371 that the register is cooked / virtual.
6372 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6373 Only get the extra info when needed.
6374 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6375 (mips32_heuristic_proc_desc): Fetch the cooked register.
6376 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6377 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6378 (mips_print_register): Use gdbarch_register_type, instead of
6379 REGISTER_VIRTUAL_TYPE.
6380 (print_gp_register_row): Use gdbarch_register_type, instead of
6381 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6382 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6383 Print the pseudo / cooked registers.
6384 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6385 Print the pseudo / cooked registers.
6386 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6387 REG_NUM is pseudo / cooked.
6388 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6389 (mips_n32n64_xfer_return_value): Ditto.
6390 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6391 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6392 (mips_register_sim_regno): New function.
6393 (mips_gdbarch_init): Set deprecated_register_byte,
6394 register_group_p, pseudo_register_write, pseudo_register_read,
6395 register_sim_regno, and num_pseudo_regs. Set register_type,
6396 instead of register_virtual_type.
6397 * Makefile.in (mips-tdep.o): Update dependencies.
6398 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6399 REGISTER_VIRTUAL_TYPE.
6400 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6401 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6402 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6403 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6404 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6405
325ed089
DJ
64062003-06-21 Daniel Jacobowitz <drow@mvista.com>
6407
6408 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6409 * cli/cli-cmds.c: Include "gdb_vfork.h".
6410 (shell_escape): Use vfork.
6411
f0e7d0e8
AC
64122003-06-21 Andrew Cagney <cagney@redhat.com>
6413
c57bb9fa
AC
6414 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6415 32 bit floating-point register saves.
6416
6e51443a
AC
6417 * frame.h (deprecated_unwind_get_saved_register): Delete.
6418 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6419 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6420 and deprecated_get_next_frame_hack instead of
6421 deprecated_unwind_get_saved_register.
6422
ed183c7c
AC
6423 * mips-tdep.c (mips_dump_tdep): Do not print
6424 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6425
f0e7d0e8
AC
6426 * frame.c (get_frame_register): New function.
6427 (frame_unwind_register_signed): New function.
6428 (get_frame_register_signed): New function.
6429 (frame_unwind_register_unsigned): New function.
6430 (get_frame_register_unsigned): New function.
6431 * frame.h: Add comments on naming schema.
6432 (get_frame_register, frame_unwind_register_signed): Declare.
6433 (get_frame_register_signed, get_frame_register_signed): Declare.
6434 (frame_unwind_register_unsigned): Declare.
6435 (get_frame_register_unsigned): Declare.
6436
2224d941
TR
64372003-06-20 Theodore A. Roth <troth@openavr.org>
6438
6439 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6440
8619218d
TR
64412003-06-20 Theodore A. Roth <troth@openavr.org>
6442
6443 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6444 (avr_read_sp): Ditto.
6445
0b1b50c0
DJ
64462003-06-20 Daniel Jacobowitz <drow@mvista.com>
6447
6448 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6449 * config/arm/nm-linux.h: Likewise.
6450 * config/arm/tm-linux.h: Likewise.
6451 * config/ia64/nm-linux.h: Likewise.
6452 * config/ia64/tm-ia64.h: Likewise.
6453 * config/s390/tm-linux.h: Likewise.
6454 * config/s390/tm-s390.h: Likewise.
6455 * s390-nat.c: Likewise.
6456 * s390-tdep.c: Likewise.
6457
6458 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6459 * config/ia64/linux.mt: Likewise.
6460 * config/m68k/linux.mh: Likewise.
6461 * config/mips/linux.mt: Likewise.
6462 * config/powerpc/linux.mh: Likewise.
6463 * config/sh/linux.mt: Likewise.
6464
c8c18e65
KW
64652003-06-19 Kris Warkentin <kewarken@qnx.com>
6466
6467 * solib.c (solib_open): Change tests for whether to search
6468 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6469 comments.
6470
dcccef2e
TR
64712003-06-19 Theodore A. Roth <troth@openavr.org>
6472
6473 * avr-tdep.c (avr_frame_address): Delete function.
6474 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6475 set_gdbarch_frame_args_address.
6476
5861a190
AC
64772003-06-19 Andrew Cagney <cagney@redhat.com>
6478
6479 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6480 (REGISTER_CONVERT_FROM_TYPE): Delete.
6481 (mips_register_convert_to_type): Delete declaration.
6482 (mips_register_convert_from_type): Delete declaration.
6483 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6484 kernel/.
6485
0274a8ce
MS
64862003-06-19 Michael Snyder <msnyder@redhat.com>
6487
6488 * linux-nat.h: New file.
6489 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6490 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6491 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6492 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6493 (linux_make_note_section): Iterate over lwps instead of threads.
6494 (linux_do_thread_registers): Use lwp instead of merged pid.
6495 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6496 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6497 Add dependency on linux_nat_h.
6498
adf5f719
TR
64992003-06-19 Theodore A. Roth <troth@openavr.org>
6500
6501 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6502
6766a268
DJ
65032003-06-19 Daniel Jacobowitz <drow@mvista.com>
6504
6505 * varobj.c (get_type, get_target_type): Use check_typedef.
6506
1171114a
DJ
65072003-06-19 Daniel Jacobowitz <drow@mvista.com>
6508
6509 * breakpoint.c (insert_catchpoint): Call internal_error.
6510
adcf68a2
TR
65112003-06-19 Theodore A. Roth <troth@openavr.org>
6512
6513 * avr-tdep.c (avr_push_dummy_code): Delete function.
6514 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6515
ea67f13b
DJ
65162003-06-19 Daniel Jacobowitz <drow@mvista.com>
6517
6518 * arch-utils.c (default_prepare_to_proceed): Remove.
6519 (generic_prepare_to_proceed): Remove.
6520 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6521 (generic_prepare_to_proceed): Remove prototype.
6522 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6523 * gdbarch.c: Regenerate.
6524 * gdbarch.h: Regenerate.
6525 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6526 * hppah-nat.c (hppa_switched_threads): Remove.
6527 * infrun.c (prepare_to_proceed): New static function, copied from
6528 generic_prepare_to_proceed. Remove select_it argument.
6529 (proceed): Call prepare_to_proceed.
6530 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6531 variables.
6532 (ptrace_wait): Don't set the removed variables.
6533 (hppa_switched_threads): Remove.
6534 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6535 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6536 (lin_lwp_prepare_to_proceed): Remove prototype.
6537 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6538 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6539
4add8633
TR
65402003-06-18 Theodore A. Roth <troth@openavr.org>
6541
6542 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6543 trad-frame.h.
6544 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6545 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6546 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6547 (AVR_PROLOGUE_*): Enumerate prologue types.
6548 (struct frame_extra_info): Remove.
6549 (struct avr_unwind_cache): Define.
6550 (avr_write_sp): Delete function.
6551 (avr_read_fp): Ditto.
6552 (avr_init_extra_frame_info): Ditto.
6553 (avr_pop_frame): Ditto.
6554 (avr_frame_saved_pc): Ditto.
6555 (avr_saved_pc_after_call): Ditto.
6556 (avr_push_return_address): Ditto.
6557 (avr_frame_chain): Ditto.
6558 (avr_store_struct_return): Ditto.
6559 (avr_push_arguments): Ditto.
6560 (avr_scan_prologue): Update comments. Changed to set up the info for
6561 cache unwinding. Now returns end of prologue PC.
6562 (avr_skip_prologue): Better handling of functions lacking a prologue
6563 by using avr_scan_prologue.
6564 (avr_scan_arg_moves): New function.
6565 (avr_saved_regs_unwinder): Ditto.
6566 (avr_frame_unwind_cache): Ditto.
6567 (avr_unwind_pc): Ditto.
6568 (avr_frame_this_id): Ditto.
6569 (avr_frame_prev_register): Ditto.
6570 (avr_frame_p): Ditto.
6571 (avr_frame_base_address ): Ditto.
6572 (avr_unwind_dummy_id): Ditto.
6573 (avr_push_dummy_code): Ditto.
6574 (push_stack_item): Ditto.
6575 (pop_stack_item): Ditto.
6576 (avr_push_dummy_call): Ditto.
6577 (struct stack_item): Define.
6578 (avr_frame_unwind): Declare structure.
6579 (avr_frame_base): Ditto.
6580 (avr_gdbarch_init): Remove calls to
6581 set_gdbarch_deprecated_init_frame_pc,
6582 set_gdbarch_deprecated_target_read_fp,
6583 set_gdbarch_deprecated_dummy_write_sp,
6584 set_gdbarch_deprecated_fp_regnum,
6585 set_gdbarch_deprecated_push_arguments,
6586 set_gdbarch_deprecated_push_return_address,
6587 set_gdbarch_deprecated_pop_frame,
6588 set_gdbarch_deprecated_store_struct_return,
6589 set_gdbarch_deprecated_frame_init_saved_regs,
6590 set_gdbarch_deprecated_init_extra_frame_info,
6591 set_gdbarch_deprecated_frame_chain,
6592 set_gdbarch_deprecated_frame_saved_pc,
6593 set_gdbarch_deprecated_saved_pc_after_call.
6594 Add calls to set_gdbarch_push_dummy_call,
6595 set_gdbarch_push_dummy_code,
6596 frame_unwind_append_predicate,
6597 frame_base_set_default,
6598 set_gdbarch_unwind_dummy_id,
6599 set_gdbarch_unwind_pc.
6600 Wrap a long line.
6601
7be04a68
MS
66022003-06-18 Corinna Vinschen <vinschen@redhat.com>
6603
6604 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6605 registers for H8/300S.
6606 (h8300_print_registers_info): Ditto.
8ffd9b1b 6607 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6608
ae087d01
DJ
66092003-06-18 Daniel Jacobowitz <drow@mvista.com>
6610
6611 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6612 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6613 (lin_lwp_wait): Likewise. Update comments.
6614 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6615 (pull_pid_from_list, linux_record_stopped_pid): New.
6616
07d8f827
SC
66172003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6618
6619 * ada-lang.c (scan_discrim_bound): Name first argument.
6620 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6621 declared by ALL_BLOCK_SYMBOLS.
6622
7cb47b14
SC
66232003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6624
6625 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6626 ("regcache.h"): Include it.
6627 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6628
6ad8ae5c
DJ
66292003-06-17 Daniel Jacobowitz <drow@mvista.com>
6630
6631 * NEWS: Mention gdbserver detach change and "disconnect" command.
6632 * infcmd.c (disconnect_command): New function.
6633 (_initialize_infcmd): Add ``disconnect'' command.
6634 * remote.c (remote_async_detach): Delete.
6635 (remote_detach): Merge remote_async_detach.
6636 (remote_disconnect): New.
6637 (init_remote_ops): Set to_disconnect.
6638 (init_remote_cisco_ops): Likewise.
6639 (init_remote_async_ops): Likewise. Use remote_detach.
6640 * target.c (cleanup_target): Default to_disconnect.
6641 (update_current_target): Inherit to_disconnect.
6642 (target_disconnect, debug_to_disconnect): New functions.
6643 (setup_target_debug): Set to_disconnect.
6644 * target.h (struct target_ops): Add to_disconnect.
6645 (target_disconnect): Add prototype.
6646
687595f9
DJ
66472003-06-17 Daniel Jacobowitz <drow@mvista.com>
6648
6649 * breakpoint.c (insert_catchpoint): New function.
6650 (insert_breakpoints): Use catch_exceptions to call
6651 insert_catchpoint. Disable catchpoints if they fail to insert.
6652
29239a8f
DJ
66532003-06-17 Daniel Jacobowitz <drow@mvista.com>
6654
6655 * symfile.c (reread_symbols): Clear sym_private.
6656
2cdf3c63
AC
66572003-06-17 Andrew Cagney <cagney@redhat.com>
6658
6659 * trad-frame.h (struct frame_info): Add opaque declaration.
6660 * remote-fileio.h (struct cmd_list_element): Add opaque
6661 declaration.
6662 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6663 comments.
6664
cf0e1e0d
DJ
66652003-06-17 Daniel Jacobowitz <drow@mvista.com>
6666
6667 * remote.c (remote_prepare_to_store): Replace call to
6668 deprecated_read_register_bytes with multiple regcache_raw_read
6669 calls.
6670
192cdb19
KW
66712003-06-17 Kris Warkentin <kewarken@qnx.com>
6672
6673 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6674 (nto_find_and_open_solib): Likewise.
6675 (nto_init_solib_absolute_prefix): Likewise.
6676 (_initialize_nto_tdep): Fix indentation.
6677
89929b45
KW
66782003-06-17 Kris Warkentin <kewarken@qnx.com>
6679
6680 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6681
46019f27
KW
66822003-06-17 Kris Warkentin <kewarken@qnx.com>
6683
6684 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6685
1a38736e
JB
66862003-06-17 Jim Blandy <jimb@redhat.com>
6687
6688 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6689
3605c34a
TR
66902003-06-16 Theodore A. Roth <troth@openavr.org>
6691
6692 * avr-tdep.c (avr_extract_return_value): New function.
6693 (avr_gdbarch_init): Set extract_return_value method.
6694
870b3035
AC
66952003-06-16 Andrew Cagney <cagney@redhat.com>
6696
6697 * frame.h (deprecated_get_next_frame_hack): Declare.
6698 * frame.c (legacy_saved_regs_prev_register): Only require
6699 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6700 there are always saved regs.
6701 (deprecated_generic_get_saved_register): Do not require
6702 DEPRECATED_FRAME_INIT_SAVED_REGS.
6703 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6704 use frame ID unwind instead.
6705 (deprecated_get_next_frame_hack): New function.
6706
63d47a7d
CV
67072003-06-16 Corinna Vinschen <vinschen@redhat.com>
6708
6709 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6710 (h8300_push_dummy_call): ...this function. Some minor optimization.
6711 (h8300_push_return_address): Remove.
6712 (h8300_gdbarch_init): Remove calls to
6713 set_gdbarch_deprecated_dummy_write_sp,
6714 set_gdbarch_deprecated_push_arguments and
6715 set_gdbarch_deprecated_push_return_address.
6716 Add call to set_gdbarch_push_dummy_call.
6717
4bb1dc5e
CV
67182003-06-16 Corinna Vinschen <vinschen@redhat.com>
6719
6720 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6721 (E_PSEUDO_EXR_REGNUM): Ditto.
6722 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6723 registers into safe registers.
4bb1dc5e
CV
6724 (h8300_skip_prologue): Check for stm instruction to push registers
6725 used for register variables onto stack.
6726 (gdb_print_insn_h8300): Remove.
6727 (h8300_examine_prologue): Add a comment.
6728 (h8300_register_name): Take pseudo registers into account.
6729 (h8300s_register_name): Ditto.
6730 (h8300sx_register_name): Ditto.
6731 (h8300_print_register): Ditto.
6732 (h8300_print_registers_info): Define "nice" printing order.
6733 (h8300_saved_pc_after_call): Take pseudo registers into account.
6734 (h8300_register_type): Ditto. Return type used for remote connection
6735 when requesting real CCR or EXR register, return actual type when
6736 requesting pseudo CCR or EXR.
6737 (h8300_pseudo_register_read): New function.
6738 (h8300_pseudo_register_write): Ditto.
6739 (h8300_dbg_reg_to_regnum): Ditto.
6740 (h8300s_dbg_reg_to_regnum): Ditto.
6741 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6742 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6743 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6744 set_gdbarch_print_insn architecture dependent.
6745 Call set_gdbarch_pseudo_register_read and
6746 set_gdbarch_pseudo_register_write.
6747 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6748
a59fe496
AC
67492003-06-16 Andrew Cagney <cagney@redhat.com>
6750
6751 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6752 * gdbarch.h, gdbarch.c: Re-generate.
6753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6754 * s390-tdep.c (s390_gdbarch_init): Update.
6755 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6756 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6757 * mips-tdep.c (mips_gdbarch_init): Update.
6758 * mcore-tdep.c (mcore_gdbarch_init): Update.
6759 * cris-tdep.c (cris_gdbarch_init): Update.
6760 * infcall.c (call_function_by_hand): Update.
6761 * ia64-tdep.c (ia64_push_arguments): Update comment.
6762 * frame.c (legacy_get_prev_frame): Do not assume
6763 SAVE_DUMMY_FRAME_TOS_P.
6764 * dummy-frame.c (find_dummy_frame): Update comment.
6765
6f4e5a41
AC
67662003-06-16 Andrew Cagney <cagney@redhat.com>
6767
6768 * regcache.c (do_cooked_read): Do not use register_valid_p.
6769
72fab697
TR
67702003-06-15 Theodore A. Roth <troth@openavr.org>
6771
6772 * avr-tdep.c (avr_register_type): Remove a blank line.
6773 (avr_scan_prologue): Correct some comments.
6774
e3d8b004
TR
67752003-06-15 Theodore A. Roth <troth@openavr.org>
6776
6777 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6778 prologue types.
8ffd9b1b 6779 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6780 option.
6781 Add code to scan -mcall-prologues for mega devices.
6782
866b76ea
TR
67832003-06-15 Theodore A. Roth <troth@openavr.org>
6784
6785 * avr-tdep.c (avr_register_byte): Delete function.
6786 (avr_register_raw_size): Delete function.
6787 (avr_register_virtual_size): Delete function.
6788 (avr_register_virtual_type): Delete function.
6789 (avr_register_type): New function.
6790 (avr_address_to_pointer): Remove unused code.
6791 (avr_read_fp): Need to read FP as two separate bytes due to change to
6792 avr_register_type() usage.
6793 (avr_gdbarch_init): Don't set deprecated_register_size.
6794 Don't set deprecated_register_bytes.
6795 Don't set deprecated_register_byte.
6796 Don't set deprecated_register_raw_size.
6797 Don't set deprecated_max_register_raw_size.
6798 Don't set deprecated_register_virtual_size.
6799 Don't set deprecated_max_register_virtual_size.
6800 Don't set deprecated_register_virtual_type.
6801 Set register_type method.
6802
3993f6b1
DJ
68032003-06-15 Daniel Jacobowitz <drow@mvista.com>
6804
6805 * Makefile.in (linux-nat.o): Add rule.
6806 * linux-nat.c: New file.
6807 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6808 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6809 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6810 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6811 * config/arm/linux.mh (NATDEPFILES): Likewise.
6812 * config/i386/linux.mh (NATDEPFILES): Likewise.
6813 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6814 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6815 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6816 * config/mips/linux.mh (NATDEPFILES): Likewise.
6817 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6818 * config/s390/s390.mh (NATDEPFILES): Likewise.
6819 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6820
786a90bb
MK
68212003-06-15 Mark Kettenis <kettenis@gnu.org>
6822
6823 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6824 replace out-of-date comment.
6825
3bd3f01e
AC
68262003-06-15 Andrew Cagney <cagney@redhat.com>
6827
6828 * rdi-share/host.h (Fail): Change to a varargs function.
6829 * remote-rdi.c (Fail): Update.
8ffd9b1b 6830
de5b9bb9
MK
68312003-06-15 Mark Kettenis <kettenis@gnu.org>
6832
6833 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6834 (i386_convert_register_p, i386_register_to_value,
6835 i386_register_from_value): Handle types longer than 8 bytes.
6836
d532c08f
MK
68372003-06-15 Mark Kettenis <kettenis@gnu.org>
6838
6839 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6840 Move floating-point code to new function in i387-tdep.c.
6841 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6842 New functions containing code moved here from i386-tdep.c.
6843 * i387-tdep.h: Add opaque declaration for `struct type'.
6844 (i387_register_to_value, i387_value_to_register): New prototypes.
6845 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6846 (x86_64_init_abi): Set convert_register_p, register_to_value and
6847 value_to_register here.
8ffd9b1b 6848
42c466d7
AC
68492003-06-14 Andrew Cagney <cagney@redhat.com>
6850
6851 * mips-tdep.c (mips_register_to_value): Make static.
6852 (mips_value_to_register): Make static.
6853 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6854 * ia64-tdep.c (ia64_register_raw_size): Make static.
6855 (ia64_register_virtual_size): Make static.
6856 (ia64_register_byte): Make static.
6857 * i387-tdep.c: Include "i387-tdep.h".
6858 (print_387_control_word): Delete function.
6859 (print_387_status_word): Delete function.
6860 (print_387_status_bits): Delete function.
6861 (print_387_control_bits): Delete function.
6862 * Makefile.in (i387-tdep.o): Update dependencies.
6863 * rdi-share/host.h (Fail): Declare.
6864 * remote-rdi.c (Fail): Update to match declaration.
6865
2a9cda49
AC
68662003-06-14 Andrew Cagney <cagney@redhat.com>
6867
6868 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6869 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6870 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6871 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6872 * README: Delete reference to remote-array.
6873 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6874 (remote-array.o): Delete target.
6875 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6876 * remote-array.c: Delete file.
6877
ff2e87ac
AC
68782003-06-14 Andrew Cagney <cagney@redhat.com>
6879 Mark Kettenis <kettenis@gnu.org>
6880
6881 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6882 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6883 parameter with "frame".
6884 * gdbarch.h, gdbarch.c: Re-generate.
6885 * frame.h (put_frame_register): Declare.
6886 * frame.c (put_frame_register): New function.
6887 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6888 (legacy_register_to_value): Rewrite, use "frame" to get the
6889 register value.
6890 (legacy_value_to_register): Rewrite, use "frame" to find the
6891 register's location before storing.
6892 * arch-utils.h (legacy_convert_register_p): Update.
6893 (legacy_register_to_value, legacy_value_to_register): Update.
6894 * findvar.c (value_from_register): Rewrite, eliminate use of
6895 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6896 "frame" to REGISTER_TO_VALUE.
6897 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6898 lval_reg_frame_relative + lval_register branch of the switch. Do
6899 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6900 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6901 I386_EDI_REGNUM): New defines.
6902 (i386_next_regnum, i386_convert_register_p,
6903 i386_register_to_value, i386_value_to_register): New functions.
6904 (i386_register_convertible, i386_register_convert_to_virtual,
6905 i386_convert_to_raw): Remove functions.
6906 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6907 value_to_register instead of register_convertible,
6908 register_convert_to_virtual and register_convert_to_raw.
6909 * mips-tdep.c (mips_convert_register_p): New function.
6910 (mips_value_to_register): Replace mips_register_convert_from_type.
6911 (mips_register_to_value): Replace mips_register_convert_to_type.
6912 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6913 register_to_value.
6914 * alpha-tdep.c (alpha_convert_register_p): Update.
6915 (alpha_value_to_register): Update, store the register.
6916 (alpha_register_to_value): Update, fetch the register.
6917
98be1e77
TR
69182003-06-14 Theodore A. Roth <troth@openavr.org>
6919
6920 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6921 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6922 Don't set deprecated_call_dummy_words.
6923 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6924 Don't set remote_translate_xfer_address.
6925 (avr_io_reg_read_command): Remove commented out debug printf.
6926 Wrap a long line.
6927
57bc6122
TR
69282003-06-14 Theodore A. Roth <troth@openavr.org>
6929
6930 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6931 causes gdb to seg fault.
6932
eb01fc62
DJ
69332003-06-14 Daniel Jacobowitz <drow@mvista.com>
6934
6935 * sparc-nat.c (fetch_inferior_registers): Correct
6936 a reference to "registers".
6937
3b3e6bee
DJ
69382003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6939
6940 * Makefile.in (exc_request_U_h): Define
6941 (exc_request_S_h): Likewise.
6942 (msg_reply_S_h): Likewise.
6943 (msg_U_h): Likewise.
6944 (notify_S_h): Likewise.
6945 (process_reply_S_h): Likewise.
6946 (gnu-nat.o): Depend on gdb_obstack_h
6947 * gnu-nat.c: Include "gdb_obstack.h".
6948
b8de8283
AC
69492003-06-13 Andrew Cagney <cagney@redhat.com>
6950
6951 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6952 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6953
f3be58bc
AC
69542003-06-13 Andrew Cagney <cagney@redhat.com>
6955
6956 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6957 when deprecated REGISTER macros can be deleted.
6958 * gdbarch.h, gdbarch.c: Re-generate.
6959
4c0122c8
JB
69602003-06-13 Jim Blandy <jimb@redhat.com>
6961
6962 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6963 Linux entry point symbols for _dl_debug_state, too.
6964
3e210248
AC
69652003-06-13 Andrew Cagney <cagney@redhat.com>
6966
6967 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6968 available, do not use the FP register, and always save the TOS.
6969 * dummy-frame.c (dummy_frame_this_id): Do not assert
6970 SAVE_DUMMY_FRAME_TOS.
6971 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6972 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6973 (i386_push_dummy_call): Add 8 to the returned SP.
6974 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6975 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6976 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6977 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6978 (x86_64_push_dummy_call): Return "sp + 16".
6979 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6980 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6981 save_dummy_frame_tos.
6982
0b65af49
JB
69832003-06-13 Jim Blandy <jimb@redhat.com>
6984
6985 * frv-tdep.c (frv_use_struct_convention): Delete static
6986 declaration for function deleted in my change of 2003-06-12.
6987
4ea2465e
TR
69882003-06-13 Theodore A. Roth <troth@openavr.org>
6989
6990 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6991 (avr_pointer_to_address): Shift code addrs left 1 bit.
6992 (avr_convert_from_func_ptr_addr): Delete function since operation is
6993 better handled by avr_address_to_pointer and avr_pointer_to_address.
6994 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6995
1581182a
MK
69962003-06-13 Mark Kettenis <kettenis@gnu.org>
6997
6998 From Kelley Cook <kelleycook@wideopenwest.com>:
6999 * configure.host: Accept i[34567]86 variants.
7000 * configure.tgt: Likewise.
7001 * nlm/configure.in: Likewise.
7002 * nlm/configure: Regenerated.
7003
7aa1783e
RE
70042003-06-13 Richard Earnshaw <rearnsha@arm.com>
7005
7006 * arm-tdep.c (solib-svr4.h): Dont' include it.
7007 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
7008 * arm-linux-tdep.c: ... here. Make static.
7009 (arm_linux_init_abi): Register it.
7010 (solib-svr4.h): Include it.
7011 * Makefile.in: Update dependencies.
7012 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7013 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
7014
0261a0d0
CV
70152003-06-13 Corinna Vinschen <vinschen@redhat.com>
7016
7017 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
7018 indicate registers used for return values.
7019 (struct frame_extra_info): Drop args_pointer and locals_pointer.
7020 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
7021 members.
7022 (h8300_init_extra_frame_info): Ditto.
7023 (h8300_frame_locals_address): Removed.
7024 (h8300_frame_args_address): Removed.
7025 (h8300_extract_return_value): Use new regcache structure. Only care
7026 for 16 bit CPUs.
7027 (h8300h_extract_return_value): Same function for 32 bit CPUs.
7028 (h8300_store_return_value): Use new regcache structure. Only care
7029 for 16 bit CPUs.
7030 (h8300h_store_return_value): Same function for 32 bit CPUs.
7031 (h8300_store_struct_return): Removed.
7032 (h8300_extract_struct_value_address): Use new regcache structure.
7033 (h8300h_extract_struct_value_address): Removed.
7034 (h8300_push_dummy_code): New function.
7035 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
7036 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
7037 set_gdbarch_store_return_value architecture dependent.
7038 Call set_gdbarch_push_dummy_code and
7039 set_gdbarch_extract_struct_value_address.
7040 Remove calls to set_gdbarch_frame_args_address,
7041 set_gdbarch_frame_locals_address,
7042 set_gdbarch_deprecated_store_struct_return,
7043 set_gdbarch_deprecated_extract_return_value,
7044 set_gdbarch_deprecated_extract_struct_value_address,
7045 set_gdbarch_deprecated_call_dummy_words and
7046 set_gdbarch_deprecated_sizeof_call_dummy_words.
7047
055c394a
CV
70482003-06-13 Corinna Vinschen <vinschen@redhat.com>
7049
7050 * h8300-tdep.c (h8300_register_byte): Remove.
7051 (h8300h_register_byte): Remove.
7052 (h8300_register_virtual_type): Remove. Substitute by...
7053 (h8300_register_type): New function.
7054 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
7055 (h8300h_extract_struct_value_address): Ditto.
7056 (h8300_gdbarch_init): Drop calls to
7057 set_gdbarch_deprecated_register_byte and
7058 set_gdbarch_deprecated_register_virtual_type.
7059 Add call to set_gdbarch_register_type.
7060
9c04cab7
AC
70612003-06-13 Andrew Cagney <cagney@redhat.com>
7062
7063 * gdbarch.sh: Update comments on registers.
7064 (deprecated_register_byte): Rename register_byte.
7065 (deprecated_register_raw_size): Rename register_raw_size.
7066 (deprecated_register_virtual_size): Rename register_virtual_size.
7067 (deprecated_register_virtual_type): Rename register_virtual_type.
7068 * gdbarch.h, gdbarch.c: Re-generate.
7069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7070 * vax-tdep.c (vax_gdbarch_init): Update.
7071 * v850-tdep.c (v850_gdbarch_init): Update.
7072 * sparc-tdep.c (sparc_gdbarch_init): Update.
7073 * sh-tdep.c (sh_gdbarch_init): Update.
7074 * s390-tdep.c (s390_gdbarch_init): Update.
7075 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7076 * ns32k-tdep.c: Update.
7077 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7078 * mips-tdep.c (mips_gdbarch_init): Update.
7079 * mcore-tdep.c (mcore_gdbarch_init): Update.
7080 * m68k-tdep.c (m68k_gdbarch_init): Update.
7081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7082 * ia64-tdep.c (ia64_gdbarch_init): Update.
7083 * hppa-tdep.c (hppa_gdbarch_init): Update.
7084 * h8300-tdep.c (h8300_gdbarch_init): Update.
7085 * frv-tdep.c (frv_gdbarch_init): Update.
7086 * cris-tdep.c (cris_gdbarch_init): Update.
7087 * avr-tdep.c (avr_gdbarch_init): Update.
7088 * alpha-tdep.c (alpha_gdbarch_init): Update.
7089 * arm-tdep.c (arm_gdbarch_init): Update.
7090
b060cbea
AC
70912003-06-13 Andrew Cagney <cagney@redhat.com>
7092
7093 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7094 mips_o32_use_struct_convention with always_use_struct_convention.
7095
0fc9922a
DC
70962003-06-12 David Carlton <carlton@kealia.com>
7097
7098 * cp-namespace.c (cp_set_block_scope): Comment out
7099 processing_has_namespace_info branch.
7100
1fd35568
JB
71012003-06-12 Jim Blandy <jimb@redhat.com>
7102
f470a70a
JB
7103 Recognize and skip 64-bit PowerPC Linux linkage functions.
7104 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7105 insn_pattern, insns_match_pattern, d_field, ds_field): New
7106 functions, macros, and types for working with PPC instructions.
7107 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7108 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7109 ppc64_skip_trampoline_code): New functions, variables, and macros
7110 for recognizing and skipping linkage functions.
7111 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7112 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7113
49ff75ad
JB
7114 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7115 register offsets for both the 32- and 64-bit interfaces.
7116
bd918c83
JB
7117 Actually finish the job started by my change of 2003-05-29.
7118 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7119 other #definition of this.
7120 (ppc_linux_skip_trampoline_code): Remove declaration.
7121 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7122 static.
7123 (ppc_linux_init_abi): Register it as the skip_trampoline_code
7124 method for GDBARCH.
7125
7126 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7127 'long' on ppc64-*-linux*.
7128
f8c59253
JB
7129 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7130 isn't #defined, assume the register doesn't exist: act as if
7131 tdep->ppc_mq_regnum were -1.
7132
8fbb30b1
JB
7133 * configure.host, configure.tgt: Add entries for
7134 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7135 powerpc/linux.mt.
7136 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7137 New files.
7138
1fd35568
JB
7139 * arch-utils.c (always_use_struct_convention): New function.
7140 * arch-utils.h (always_use_struct_convention): New prototype.
7141 * alpha-tdep.c (alpha_use_struct_convention): Delete.
7142 (alpha_gdbarch_init): Register always_use_struct_convention,
7143 instead of alpha_use_struct_convention.
7144 * cris-tdep.c (cris_use_struct_convention): Delete.
7145 (cris_gdbarch_init): Register always_use_struct_convention,
7146 instead of cris_use_struct_convention.
7147 * frv-tdep.c (frv_use_struct_convention): Delete.
7148 (frv_gdbarch_init): Register always_use_struct_convention,
7149 instead of frv_use_struct_convention.
7150 * h8300-tdep.c (h8300_use_struct_convention): Delete.
7151 (h8300_gdbarch_init): Register always_use_struct_convention,
7152 instead of h8300_use_struct_convention.
e3305dd9 7153 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
7154 (mips_o32_gdbarch_init): Register always_use_struct_convention,
7155 instead of mips_o32_use_struct_convention.
7156
e14e6e9c
AC
71572003-06-12 Andrew Cagney <cagney@redhat.com>
7158
7159 * wince.c: Include "mips-tdep.h".
7160 * mips-tdep.h (mips_next_pc): Declare.
7161 * mcore-tdep.c: Make more local functions static.
7162 * Makefile.in (wince.o): Update dependencies.
7163
2335f48e
DC
71642003-06-12 David Carlton <carlton@kealia.com>
7165
7166 * symtab.c (lookup_symbol_aux_minsyms): Replace
7167 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7168 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7169 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7170 SYMBOL_NATURAL_NAME.
7171
f70a7d61
AS
71722003-06-12 Andreas Schwab <schwab@suse.de>
7173
7174 * Makefile.in (tuiDisassem.o): Update dependencies.
7175
b6429628
DC
71762003-06-12 David Carlton <carlton@bactrian.org>
7177
7178 * symtab.h: Delete declaration of make_symbol_overload_list.
7179 Add declaration of lookup_partial_symbol.
7180 * symtab.c (remove_params): Move to cp-support.c.
7181 (overload_list_add_symbol, make_symbol_overload_list)
7182 (sym_return_val_size, sym_return_val_index): Ditto.
7183 (lookup_partial_symbol): Make extern.
7184 * cp-support.h: Add declaration of make_symbol_overload_list.
7185 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7186 symtab.h, and block.h.
7187 (remove_params): Move here from symtab.c.
7188 (overload_list_add_symbol, make_symbol_overload_list)
7189 (sym_return_val_size, sym_return_val_index): Ditto.
7190 * valops.c: Include cp-support.h.
7191 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7192 frame_h, and block_h.
7193 (valops.o): Depend on cp_support_h.
7194
084edea5
CV
71952003-06-12 Corinna Vinschen <vinschen@redhat.com>
7196
7197 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7198 substitute by NUM_REGS throughout.
7199 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7200 (h8300s_register_name): New function for H8S registers.
7201 (h8300sx_register_name): Ditto for H8SX registers.
7202 (h8300_print_register): Revise register printing, avoid depending
7203 on 32 bit long.
0261a0d0 7204 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
7205 (h8300h_register_byte): New function for any other architecture.
7206 (h8300_register_raw_size): Remove.
7207 (h8300_register_virtual_type): Revise to return actually useful
7208 type.
7209 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7210 (h8300h_extract_struct_value_address): New function for any other
7211 architecture.
7212 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7213 set_gdbarch_register_name, set_gdbarch_register_byte,
7214 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7215 Remove calls to set_gdbarch_deprecated_register_size,
7216 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7217 set_gdbarch_deprecated_max_register_raw_size,
7218 set_gdbarch_register_virtual_size and
7219 set_gdbarch_deprecated_max_register_virtual_size entirely.
7220 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7221 set_gdbarch_long_double_bit.
7222
06194148
JJ
72232003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7224
8ffd9b1b
AJ
7225 * doublest.c (convert_doublest_to_floatformat): When dealing
7226 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
7227 processing a full 32 bits of mantissa.
7228
de4f826b
DC
72292003-06-11 David Carlton <carlton@bactrian.org>
7230
7231 * dictionary.h: New.
7232 * dictionary.c: New.
7233 * block.h: Add opaque declaration for struct dictionary.
7234 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7235 'sym' members.
7236 (BLOCK_DICT): New macro.
7237 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7238 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7239 BLOCK_SHOULD_SORT.
7240 (ALL_BLOCK_SYMBOLS): Update definition.
7241 * Makefile.in (SFILES): Add dictionary.c.
7242 (dictionary_h): New.
7243 (COMMON_OBS): Add dictionary.o.
7244 (dictionary.o): New.
7245 (ada-lang.o): Depend on dictionary_h.
7246 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7247 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7248 (mi-cmd-stack.o): Ditto.
7249 (gdbtk-cmds.o): Update dependencies.
7250 (gdbtk-stack.o): Ditto.
7251 * ada-lang.c: Include dictionary.h.
7252 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7253 (fill_in_ada_prototype, debug_print_block): Ditto.
7254 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7255 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7256 'is_sorted'.
7257 * mdebugread.c: Include dictionary.h.
7258 (struct parse_stack): Delete 'maxsyms' member.
7259 (parse_symbol): Update calls to new_block. Delete calls to
7260 shrink_block. Use dictionary methods.
7261 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7262 Update calls to new_symtab. Don't maintain maxsyms data.
7263 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7264 (add_symbol): Just call dict_add_symbol.
7265 (new_symtab): Delete 'maxsyms' argument.
7266 (new_symtab): Update calls to new_block.
7267 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7268 (shrink_block): Delete function.
7269 (fixup_sigtramp): Update call to new_block. Add symbol via
7270 dict_add_symbol.
7271 * jv-lang.c: Include dictionary.h.
7272 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7273 appropriately. Set class_symtab->free_func. Make sure the
7274 blockvector is big enough to hold two blocks.
7275 (add_class_symtab_symbol): Use dictionary methods.
7276 (free_class_block): New function.
7277 (type_from_class): Replace explicit iteration by
7278 ALL_BLOCK_SYMBOLS.
7279 * symtab.h (struct symtab): Replace 'free_ptr' method by
7280 'free_func'.
7281 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7282 sort_symtab_syms.
7283 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7284 sort_symtab_syms.
7285 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7286 Include dictionary.h.
7287 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7288 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7289 sort_symtab_syms.
7290 * objfiles.c: Include dictionary.h.
7291 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7292 * buildsym.c: Include dictionary.h.
7293 (finish_block): Use dictionary methods.
7294 (end_symtab): Set free_func to NULL, not free_ptr.
7295 * tracepoint.c: Include dictionary.h.
7296 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7297 (scope_info): Ditto.
7298 * stack.c: Include dictionary.h.
7299 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7300 (print_block_frame_labels, print_frame_arg_vars)
7301 (print_frame_args): Ditto.
7302 * symmisc.c (free_symtab_block): Use dictionary methods.
7303 (dump_symtab): Ditto.
7304 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7305 Include dictionary.h.
7306 * symfile.h: Delete declarations of sort_block_syms,
7307 sort_symtab_syms.
7308 * symfile.c (sort_block_syms): Delete.
7309 (sort_symtab_syms): Delete.
7310 * symtab.c: Include dictionary.h.
7311 (lookup_block_symbol): Use dictionary iterators.
7312 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7313 (search_symbols, make_symbol_completion_list): Ditto.
7314 (make_symbol_overload_list): Ditto.
7315 * valops.c (value_of_local): Use dict_empty.
7316 Include dictionary.h.
7317
a31f978c
JB
73182003-06-11 J. Brobecker <brobecker@gnat.com>
7319
7320 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7321
526e70c0
DC
73222003-06-11 David Carlton <carlton@bactrian.org>
7323
7324 * block.h (BLOCK_SHOULD_SORT): Delete.
7325 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7326 blocks.
7327 * ada-lang.c (ada_add_block_symbols): Ditto.
7328 * symfile.c (sort_block_syms): Delete.
7329 (sort_symtab_syms): Ditto.
7330 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7331 declarations.
7332 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7333 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7334 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7335 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7336 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7337 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7338 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7339
33c08150
JJ
73402003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7341
8ffd9b1b 7342 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7343 bits to 128.
7344
781a750d
AC
73452003-06-11 Andrew Cagney <cagney@redhat.com>
7346
7347 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7348 REGISTER_CONVERTIBLE.
7349 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7350 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7351 * gdbarch.h, gdbarch.c: Re-generate.
7352 * arch-utils.h (deprecated_register_convertible_not): Rename
7353 generic_register_convertible_not.
7354 * arch-utils.c (deprecated_register_convertible_not): Rename
7355 generic_register_convertible.
7356 (legacy_convert_register_p, legacy_register_to_value): Update.
7357 * sh-tdep.c (sh64_push_arguments): Update.
7358 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7359 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7360 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7361 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7362 * arch-utils.c (legacy_value_to_register): Update.
7363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7364 (rs6000_register_convert_to_raw): Make parameter "from" const.
7365 * mips-tdep.c (mips_gdbarch_init): Update.
7366 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7367 * infcmd.c (default_print_registers_info): Update.
7368 * ia64-tdep.c (ia64_gdbarch_init): Update.
7369 (ia64_register_convert_to_raw): Make parameter "from" const.
7370 * i386-tdep.c (i386_gdbarch_init): Update.
7371 (i386_register_convert_to_raw): Update.
7372
cd90e54f
AC
73732003-06-11 Andrew Cagney <cagney@redhat.com>
7374
7375 * remote-fileio.c: Include "remote-fileio.h".
7376 * Makefile.in (remote-fileio.o): Update dependencies.
7377 (remote_fileio_h): Fix typo.
7378
a78f21af
AC
73792003-06-11 Andrew Cagney <cagney@redhat.com>
7380
7381 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7382 (xstormy16_save_dummy_frame_tos): Make static.
7383 (_initialize_xstormy16_tdep): Add declaration.
7384 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7385 * v850-tdep.c: Make local functions static.
7386 (_initialize_v850_tdep): Add declaration.
7387 * sparc-tdep.c: Make local functions static.
7388 (_initialize_sparc_tdep): Add declaration.
7389 * sh-tdep.c: Make local functions static.
7390 (_initialize_sh_tdep): Add declaration.
7391 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7392 * s390-tdep.c: Make local functions static.
7393 (_initialize_s390_tdep): Add declaration.
7394 * dbxread.c (find_stab_function_addr): Make static.
7395 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7396 * ocd.c (_initialize_remote_ocd): Add declaration.
7397 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7398 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7399 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7400 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7401 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7402 * remote-array.c (_initialize_array): Add declaration.
7403 (_initialize_remote_monitors): Add declaration.
7404 * remote-mips.c: Make local functions static.
7405 (_initialize_remote_mips): Add declaration.
7406 * mcore-tdep.c: Make all local functions static.
7407 (_initialize_mcore_tdep): Add declaration.
7408 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7409 * abug-rom.c (_initialize_abug_rom): Add declaration.
7410 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7411 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7412 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7413 * remote-est.c (_initialize_est): Add declaration.
7414 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7415 (m68hc11_call_dummy_address): Make static.
7416 * ia64-tdep.c: Make local functions static.
7417 (_initialize_ia64_tdep): Add declaration.
7418 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7419 * monitor.c (monitor_wait_filter): Make static.
7420 (_initialize_remote_monitors): Add declaration.
7421 * remote-hms.c (_initialize_remote_hms): Add declaration.
7422 * remote-e7000.c (fetch_regs_from_dump): Make static.
7423 (expect_n): Make static.
7424 (_initialize_remote_e7000): Add declaration.
7425 * ser-e7kpc.c: Always include "defs.h".
7426 (_initialize_ser_e7000pc): Add declaration.
7427 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7428 * cris-tdep.c: Make all but one function static.
7429 (_initialize_cris_tdep): Add declaration.
7430 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7431 * solib.c (update_solib_list): Make static.
7432 (_initialize_solib): Add declaration.
7433 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7434 (_initialize_avr_tdep): Add declaration.
7435 * remote-rdi.c (voiddummy): Make static.
7436 (_initialize_remote_rdi): Add declaration.
7437 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7438 * remote-rdp.c (send_rdp): Make static.
7439 (_initialize_remote_rdp): Add declaration.
7440 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7441
cbcdb1f5
CV
74422003-06-11 Corinna Vinschen <vinschen@redhat.com>
7443
7444 * remote-fileio.c: Make ari happy.
7445
a191ea8d
JB
74462003-06-10 J. Brobecker <brobecker@gnat.com>
7447
7448 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7449 fetching the trailing bytes of the buffer we are about to write.
7450
0ef75e11
AC
74512003-06-10 Andrew Cagney <cagney@redhat.com>
7452
7453 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7454 * Makefile.in (remote-fileio.o): Update dependencies.
7455 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7456 include <setjmp.h>, or <sys/types.h> conditional on USG.
7457 (remote_fio_jmp_buf): Delete global variable.
7458
449092f6 74592003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7460 Martin M. Hunt <hunt@redhat.com>
449092f6 7461
559fa028
AC
7462 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7463 (SFILES): Add remote-fileio.c.
7464 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7465 dependencies for building remote.o.
449092f6
CV
7466 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7467 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7468 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7469 static storage class.
7470 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7471 'F' packet.
7472 (_initialize_remote): Call initialize_remote_fileio().
7473 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7474 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7475 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7476 (captured_main): Initialize new ui_files.
7477 * ui-file.c: Add read and fgets input functions.
7478 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7479 (null_file_read): New function.
7480 (ui_file_read): New function.
7481 (set_ui_file_read): New function.
7482 (stdio_file_read): New function.
7483 * ui-file.h: New type ui_file_read_ftype.
7484 (set_ui_file_read): Declare.
7485 (ui_file_read): Declare.
7486
248de703
AC
74872003-06-09 Andrew Cagney <cagney@redhat.com>
7488
7489 * frame.h (deprecated_unwind_get_saved_register): Rename
7490 generic_unwind_get_saved_register, update comments.
7491 * mips-tdep.c (mips_get_saved_register): Update.
7492 * frame.c (deprecated_unwind_get_saved_register): Update.
7493
0ed8aa57
AC
74942003-06-09 Andrew Cagney <cagney@redhat.com>
7495
7496 * vax-tdep.c (vax_frame_locals_address): Delete function.
7497 (vax_gdbarch_init): Do not set frame_locals_address.
7498 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7499 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7500 * s390-tdep.c (s390_frame_args_address): Delete function.
7501 (s390_gdbarch_init): Do not set frame_args_address or
7502 frame_locals_address.
7503 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7504 (ns32k_gdbarch_init): Do not set frame_locals_address.
7505 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7506 (hppa_frame_locals_address): Delete function.
7507 (hppa_gdbarch_init): Do not set frame_args_address, or
7508 frame_locals_address.
7509 * arm-tdep.c (arm_frame_args_address): Delete.
7510 (arm_frame_locals_address): Delete.
7511 (arm_gdbarch_init): Do not set frame_args_address, or
7512 frame_locals_address.
7513
983a287a
AC
75142003-06-09 Andrew Cagney <cagney@redhat.com>
7515
7516 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7517 * gdbarch.h, gdbarch.c: Re-generate.
7518 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7519 * arch-utils.c (frame_num_args_unknown): Delete function.
7520 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7521 (frame_info): Use FRAME_NUM_ARGS_P.
7522 * arm-tdep.c (arm_frame_num_args): Delete function.
7523 (arm_gdbarch_init): Do not set frame_num_args.
7524 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7525 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7526 (hppa_gdbarch_init): Do not set frame_num_args.
7527 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7529 frame_num_args to default frame_num_args_unknown.
7530 * v850-tdep.c (v850_gdbarch_init): Ditto.
7531 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7532 * sh-tdep.c (sh_gdbarch_init): Ditto.
7533 * s390-tdep.c (s390_gdbarch_init): Ditto.
7534 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7535 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7536 * mips-tdep.c (mips_gdbarch_init): Ditto.
7537 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7538 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7540 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7541 * i386-tdep.c (i386_gdbarch_init): Ditto.
7542 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7543 * frv-tdep.c (frv_gdbarch_init): Ditto.
7544 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7545 * cris-tdep.c (cris_gdbarch_init): Ditto.
7546 * avr-tdep.c (avr_gdbarch_init): Ditto.
7547 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7548
8d3b0994
AC
75492003-06-09 Andrew Cagney <cagney@redhat.com>
7550
7551 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7552 (print_frame_args): Moved to "stack.c".
7553 * stack.c: Include "gdb_assert.h".
7554 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7555 (print_frame_args): Moved from "printcmd.c".
7556 * frame.h (print_frame_args): Delete declaration.
7557 * Makefile.in (stack.o): Update dependencies.
7558
25e3a86b
AC
75592003-06-08 Andrew Cagney <cagney@redhat.com>
7560
7561 * frame.c (get_prev_frame): Remove reference to
7562 frame_args_address_correct in comments.
7563 * frame-base.c (default_frame_args_address): Delete code
7564 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7565 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7566 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7567 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7568 (vax_frame_args_address_correct): Delete declaration.
7569
a9e5fdc2
AC
75702003-06-08 Andrew Cagney <cagney@redhat.com>
7571
7572 * gdbarch.sh (UNWIND_SP): Add.
7573 * gdbarch.h, gdbarch.c: Re-generate.
7574 * frame.c (frame_sp_unwind): New function.
7575 (get_frame_sp): New function.
7576 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7577 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7578 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7579 value.
7580 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7581 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7582
8983bd83
AC
75832003-06-08 Andrew Cagney <cagney@redhat.com>
7584
7fec2c59
AC
7585 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7586 REMOTE_BREAKPOINT.
7587 * remote.c: Update.
7588 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7589 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7590 * config/m68k/tm-sun3.h: Update.
7591 * config/m68k/tm-m68klynx.h: Update.
7592 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7593
8983bd83
AC
7594 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7595 trad_frame". Update comments.
7596 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7597 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7598 (trad_frame_register_value, trad_frame_prev_register): Update.
7599
b9362cc7
AC
76002003-06-08 Andrew Cagney <cagney@redhat.com>
7601
7602 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7603 from GCC's acinclude.m4.
7604 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7605 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7606 * main.c (error_init): Delete declaration.
7607 * defs.h (error_init): Declare.
7608 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7609 (rs6000_convert_from_func_ptr_addr): Make static.
7610 (_initialize_rs6000_tdep): Add declaration.
7611 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7612 (show_commands, set_verbose, show_history): Delete declaration.
7613 * top.h (set_verbose): Add declaration.
7614 (show_history, set_history, show_commands): Add declaration.
7615 (do_restore_instream_cleanup): Add declaration.
7616 * objc-lang.c (specialcmp): Make static.
7617 (print_object_command): Make static.
7618 (find_objc_msgsend): Make static.
7619 (find_objc_msgcall_submethod_helper): Make static.
7620 (find_objc_msgcall_submethod): Make static.
7621 (_initialize_objc_language): Add declaration.
7622 (find_implementation_from_class): Make static.
7623 (find_implementation): Make static.
7624 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7625 * objc-lang.h (lookup_struct_typedef): Add declaration.
7626 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7627 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7628 (do_restore_user_call_depth): Make static.
7629 (do_restore_instream_cleanup): Delete declaration.
7630 (dont_repeat): Delete declaration.
7631 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7632 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7633 * reggroups.c (_initialize_reggroup): Add declaration.
7634 * cp-support.c (_initialize_cp_support): Add declaration.
7635 * cp-abi.c (_initialize_cp_abi): Add declaration.
7636 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7637 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7638 (_initialize_gnu_v3_abi): Add declaration.
7639 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7640 (_initialize_gnu_v2_abi): Add declaration.
7641 * frame-base.c (_initialize_frame_base): Add declaration.
7642 * doublest.c (floatformat_from_length): Make static.
7643 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7644 * frame.c (create_sentinel_frame): Make static.
7645 (_initialize_frame): Add declaration.
7646 * top.c (do_catch_errors): Make static.
7647 (gdb_rl_operate_and_get_next_completion): Make static.
7648 * typeprint.c: Include "typeprint.h".
7649 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7650 (sentinel_frame_this_id): Make static.
7651 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7652 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7653 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7654 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7655 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7656 * maint.c (maintenance_print_architecture): Make static.
7657 * signals/signals.c (_initialize_signals): Add declaration.
7658 * std-regs.c (_initialize_frame_reg): Add declaration.
7659 * jv-exp.y (push_variable): ISO C definition.
7660 (push_qualified_expression_name): Ditto.
7661 * memattr.c (_initialize_mem): Add declaration.
7662 * remote.c (remote_check_watch_resources): Make static.
7663 (remote_stopped_by_watchpoint): Make static.
7664 (remote_stopped_data_address): Make static.
7665 * d10v-tdep.c (nr_dmap_regs): Make static.
7666 (a0_regnum): Make static.
7667 (d10v_frame_unwind_cache): Make static.
7668 (d10v_frame_p): Make static.
7669 * osabi.c (show_osabi): Make static.
7670 (_initialize_gdb_osabi): Add extern declaration.
7671 * gdbtypes.c (make_qualified_type): Make static.
7672 (safe_parse_type): Make static.
7673 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7674 * macrotab.c (macro_bcache_free): Make static.
7675 * interps.c (interp_set_quiet): Make static.
7676 (interpreter_exec_cmd): Make static.
7677 * stack.h (select_frame_command): New file.
7678 * stack.c: Include "stack.h".
7679 (select_frame_command_wrapper): Delete function.
7680 (select_frame_command): Make global.
7681 * infcall.c: Include "infcall.h".
7682 * linespec.c: Include "linespec.h".
7683 * symfile.c (sections_overlap): Make static.
7684 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7685 * charset.c (_initialize_charset): Add missing prototype.
7686 * regcache.c (init_legacy_regcache_descr): Make static.
7687 (do_regcache_xfree): Make static.
7688 (regcache_xfer_part): Make static.
7689 (_initialize_regcache): Add missing prototype.
7690 * breakpoint.c (parse_breakpoint_sals): Make static.
7691 (breakpoint_sals_to_pc): Make static.
7692 * interps.h (clear_interpreter_hooks): ISO C declaration.
7693 * Makefile.in (stack_h): Define.
7694 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7695 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7696
a0f267c7
AC
76972003-06-08 Andrew Cagney <cagney@redhat.com>
7698
7699 * Makefile.in (d10v-tdep.o): Update dependencies.
7700 (SFILES): Add trad-frame.c.
7701 (trad_frame_h): Define.
7702 (COMMON_OBS): Add trad-frame.o.
7703 (trad-frame.o): Specify dependencies.
7704 * d10v-tdep.c: Include "trad-frame.h".
7705 (saved_regs_unwinder): Delete function.
7706 (d10v_frame_prev_register): Use trad_frame_prev_register.
7707 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7708 trad_frame", delete "regs" and "prev_sp".
7709 (prologue_find_regs): Use trad-frame.
7710 * trad-frame.h, trad-frame.c: New files.
7711
4538b4f4
MK
77122003-06-08 Mark Kettenis <kettenis@gnu.org>
7713
7714 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7715
a0273b2f
AF
77162003-06-07 Adam Fedor <fedor@gnu.org>
7717
7718 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7719 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7720 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7721 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7722 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7723 Use it.
7724
3a6c3343
AC
77252003-06-07 Andrew Cagney <cagney@redhat.com>
7726
7727 * symfile.h: Re-indent, clean up comments.
7728
b46e02f6
AC
77292003-06-07 Andrew Cagney <cagney@redhat.com>
7730
7731 * inferior.h (deprecated_write_sp): Replace
7732 generic_target_write_sp.
7733 * regcache.c (deprecated_write_sp): Replace
7734 generic_target_write_sp.
7735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7736 * vax-tdep.c (vax_gdbarch_init): Update.
7737 * v850-tdep.c (v850_gdbarch_init): Update.
7738 * sparc-tdep.c (sparc_gdbarch_init): Update.
7739 * sh-tdep.c (sh_gdbarch_init): Update.
7740 * s390-tdep.c (s390_gdbarch_init): Update.
7741 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7742 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7743 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7744 * mcore-tdep.c (mcore_gdbarch_init): Update.
7745 * m68k-tdep.c (m68k_gdbarch_init): Update.
7746 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7747 * ia64-tdep.c (ia64_gdbarch_init): Update.
7748 * h8300-tdep.c (h8300_gdbarch_init): Update.
7749 * frv-tdep.c (frv_gdbarch_init): Update.
7750 * cris-tdep.c (cris_gdbarch_init): Update.
7751 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7752
a42e117c
AC
77532003-06-07 Andrew Cagney <cagney@redhat.com>
7754
7755 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7756 Assert that PC_REGNUM is valid.
7757 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7758
bd1ce8ba
AC
77592003-06-07 Andrew Cagney <cagney@redhat.com>
7760
7761 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7762 * gdbarch.h, gdbarch.c: Regenerate.
7763 * mn10300-tdep.c: Include "gdb_assert.h".
7764 (mn10300_read_fp): New function.
7765 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7766 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7767 * ia64-tdep.c: Include "gdb_assert.h".
7768 (ia64_read_fp): New function.
7769 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7770 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7771 * regcache.c (generic_target_read_sp): Delete function.
7772 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7773 * inferior.h (generic_target_read_sp): Delete declaration.
7774 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7775 generic_target_read_sp.
7776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7777 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7778 * sh-tdep.c (sh_gdbarch_init): Ditto.
7779 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7780 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7781
ec5cbaec
AC
77822003-06-07 Andrew Cagney <cagney@redhat.com>
7783
7784 * gdbarch.sh: Comment each field of startup_gdbarch.
7785 * gdbarch.h, gdbarch.c: Re-generate.
7786
cde9ea48
AC
77872003-06-07 Andrew Cagney <cagney@redhat.com>
7788
7789 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7790 * gdbarch.h, gdbarch.c: Re-generate.
7791 * regcache.c: Update comments on read_pc et.al.
7792 (generic_target_read_pc): Delete function.
7793 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7794 * inferior.h (generic_target_read_pc): Delete declaration.
7795 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7796 generic_target_read_pc.
7797 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7798 * sh-tdep.c (sh_gdbarch_init): Ditto.
7799 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7801
9a90a780
AC
78022003-06-07 Andrew Cagney <cagney@redhat.com>
7803
7804 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7805 "index" with "special_local_sect". Use strcmp instead of STREQ.
7806 Append period to coments.
7807
a39a16c4
MM
78082003-06-06 Mark Mitchell <mark@codesourcery.com>
7809
7810 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7811 (elfstab_offset_sections): Likewise.
7812 * gdb-stabs.h (stab_section_info): Likewise.
7813 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7814 * objfiles.c (objfile_relocate): Likewise.
7815 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7816 * remote.c (get_offsets): Likewise.
7817 (remote_cisco_objfile_relocate): Likewise.
7818 * somread.c (som_symfile_offsets): Likewise.
7819 * symfile.c (alloc_section_addr_info): New function.
7820 (build_section_addr_info_from_section_tab): Use it.
7821 (free_section_addr_info): Adjust.
7822 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7823 (syms_from_objfile): Allocate local_addr dynamically.
7824 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7825 dynamically.
7826 (add_symbol_file_command): Allocate sect_opts dynamically.
7827 (reread_symbols): Avoid use of SECT_OFF_MAX.
7828 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7829 (alloc_section_addr_info): Declare it.
7830 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7831 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7832 dynamically.
7833 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7834
20c6c2f8
AC
78352003-06-06 Andrew Cagney <cagney@redhat.com>
7836
7837 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7838 (d10v_frame_unwind_cache): Do not set "return_pc".
7839
884a26c8
MS
78402003-06-06 Michael Snyder <msnyder@redhat.com>
7841
7842 * h8300-tdep.c: Make tidy (long lines).
7843
088ce440
ML
78442003-06-06 Michal Ludvig <mludvig@suse.cz>
7845
8ffd9b1b 7846 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7847 to regcache_collect().
7848
7d773d96
JB
78492003-06-05 J. Brobecker <brobecker@gnat.com>
7850
7851 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7852 pc_in_sigtramp multiarch method.
7853 (hppa_hpux_som_init_abi): Use it.
7854 (hppa_hpux_elf_init_abi): Likewise.
7855 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7856 macro has been multiarched.
7857 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7858 macro here, as hppa64 isn't multiarched yet.
7859
1df6926e
AC
78602003-06-05 Andrew Cagney <cagney@redhat.com>
7861
7862 * Makefile.in (value_h): Add $(frame_h).
7863 * value.h: Include "frame.h".
7864 (struct value): Replace "frame_addr" with "frame_id".
7865 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7866 * values.c (allocate_value): Use VALUE_FRAME_ID.
7867 (value_copy): Use VALUE_FRAME_ID.
7868 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7869 * valops.c (value_assign): Update. Use frame_find_by_id.
7870
6b53acc6
ML
78712003-06-05 Michal Ludvig <mludvig@suse.cz>
7872
7873 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7874 in each pass.
7875
4d9850d3
JJ
78762003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7877
7878 * thread-db.c (check_event): For create/death event breakpoints,
7879 loop through all messages to ensure that we read the message
7880 corresponding to the breakpoint we are at.
7881
8efca6ba
MS
78822003-06-04 Michael Snyder <msnyder@redhat.com>
7883
7884 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7885
0912c7f2
MK
78862003-06-04 Mark Kettenis <kettenis@gnu.org>
7887
7888 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7889 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7890 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7891 when handling .eh_frame sections.
7892
4e370325
JB
78932003-06-04 J. Brobecker <brobecker@gnat.com>
7894
7895 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7896 prepare_to_proceed procedure instead of the hppa-specific one.
7897 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7898
b757528f 78992003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7900
b757528f
JJ
7901 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7902 * config.in: Regenerated.
7903 * configure.in: Add test for syscall function and check for
7904 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7905 * configure: Regenerated.
7906 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7907 <sys/syscall.h>.
7908 (kill_lwp): New function that uses tkill syscall or
7909 uses kill, depending on whether threading model is nptl or not.
7910 All callers of kill() changed to use kill_lwp().
7911 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7912 see if all threads have already exited in the nptl model.
7913 (stop_and_resume_callback): New callback function used by the
7914 lin_lwp_wait thread exit handling code.
7915 (stop_wait_callback): Check for threads already having exited and
7916 delete such threads fromt the lwp list when discovered.
7917 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7918
b757528f
JJ
7919 Roland McGrath <roland@redhat.com>
7920 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7921 nptl libthread_db.
7922
087779b1
RH
79232003-06-03 Richard Henderson <rth@redhat.com>
7924
b21fd293
RH
7925 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7926 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7927 (alpha_sigtramp_frame_prev_register): Likewise.
7928 (alpha_heuristic_frame_prev_register): Likewise.
7929 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7930
8ffd9b1b 7931 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7932 alpha-specific register id names.
7933 (alpha_mdebug_frame_unwind_cache): Likewise.
7934 (alpha_mdebug_frame_prev_register): Likewise.
7935
baa490c4
RH
79362003-06-03 Richard Henderson <rth@redhat.com>
7937
7938 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7939 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7940 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7941 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7942 unwind routines.
7943 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7944 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7945 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7946
7947 * alpha-linux-tdep.c: Remove unnecessary includes.
7948 * Makefile.in (alpha-linux-tdep.o): Update.
7949
79502003-06-03 Richard Henderson <rth@redhat.com>
7951
7952 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7953 (alphabsd_fill_fpreg): Likewise.
7954
f534e522
JB
79552003-06-03 J. Brobecker <brobecker@gnat.com>
7956
7957 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7958 references to struct frame_info fields by calls to the equivalent
7959 accessors. Necessary now that frame_info is opaque.
7960
4035536b
JB
79612003-06-03 J. Brobecker <brobecker@gnat.com>
7962
7963 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7964 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7965 structure, field no longer exists.
7966
0bd79c5c
JB
79672003-06-03 J. Brobecker <brobecker@gnat.com>
7968
7969 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7970 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7971
37bb6d9f
JB
79722003-06-03 J. Brobecker <brobecker@gnat.com>
7973
7974 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7975 references to struct frame_info fields by calls to the equivalent
7976 accessors. Necessary now that frame_info is opaque.
7977
852ee05c
JB
79782003-06-03 J. Brobecker <brobecker@gnat.com>
7979
7980 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7981 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7982 structure, field no longer exists.
7983
7d58c67d
TR
79842003-06-03 Theodore A. Roth <troth@openavr.org>
7985
8ffd9b1b 7986 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7987 accumulation of the size of all registers instead of blindly using
7988 DEPRECATED_REGISTER_BYTES.
7989
0a48e7e8
MS
79902003-06-03 Michael Snyder <msnyder@redhat.com>
7991
7992 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7993 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7994 for h8300sx.
7995
9798ab0d
JB
79962003-06-03 J. Brobecker <brobecker@gnat.com>
7997
7998 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7999 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8000
00b037e2
AC
80012003-06-03 Andrew Cagney <cagney@redhat.com>
8002
8003 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
8004 (sparc_convert_to_raw): Delete function.
8005 (sparc_gdbarch_init): Do not set register_convert_to_raw or
8006 register_convert_to_virtual.
8007
043b2f77
JJ
80082003-06-03 Jeff Johnston <jjohnstn@redhat.com>
8009
8010 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
8011 layer if not dealing with a statically-linked threaded program.
8012
f43caff8
KW
80132003-06-03 Kris Warkentin <kewarken@qnx.com>
8014
8015 * solib.c (solib_open): Update comment to reflect actual search order.
8016
ae1e7417
AC
80172003-06-03 Andrew Cagney <cagney@redhat.com>
8018
8019 * frame.c (get_frame_memory_signed): New function.
8020 (get_frame_memory, get_frame_memory_unsigned): New function.
8021 (get_frame_arch): New function.
8022 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
8023 (get_frame_memory, get_frame_unsigned_memory): Declare.
8024 * d10v-tdep.c (d10v_frame_unwind_cache): Use
8025 get_frame_memory_unsigned and get_frame_arch.
8026 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
8027
cb123844
RG
80282003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
8029
8030 * MAINTAINERS (write after approval): Add myself.
8031
1bb792e9
JB
80322003-06-03 Jim Blandy <jimb@redhat.com>
8033
8034 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
8035 elements of gregset_t are 64 bits each, but access registers
8036 are still 32 bits, so they're packed two per gregset_t
8037 element. Unpack/pack them properly.
8038
aee8d8ba
DC
80392003-06-02 David Carlton <carlton@bactrian.org>
8040
8041 * linespec.c (find_methods): Break out code into
8042 add_matching_methods and add_constructors.
8043 (add_matching_methods): New.
8044 (add_constructors): Ditto.
8045
bf7488d2
AC
80462003-06-02 Andrew Cagney <cagney@redhat.com>
8047
bf7488d2
AC
8048 * sparc-tdep.c (sparc_print_registers): Delete call to
8049 REGISTER_CONVERTIBLE.
8050 (sparc_gdbarch_init): Do not set register_convertible.
8051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8052 * frv-tdep.c (frv_gdbarch_init): Ditto.
8053 * cris-tdep.c (cris_gdbarch_init): Ditto.
8054
adedef68
EZ
80552003-06-02 Elena Zannoni <ezannoni@redhat.com>
8056
8ffd9b1b 8057 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
8058 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
8059 (syms_from_objfile): Ditto.
8060
650fcc91
AS
80612003-06-03 Andreas Schwab <schwab@suse.de>
8062
8063 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
8064 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
8065
df4a182b
RH
80662003-06-02 Richard Henderson <rth@redhat.com>
8067
8068 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
8069 a member of all_reggroup.
8070
c483c494
RH
80712003-06-02 Richard Henderson <rth@redhat.com>
8072
8073 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
8074 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8075 (alpha_lds, alpha_sts): New.
8076 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 8077 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
8078 restructure and fail for type sizes other than 4 or 8.
8079 (alpha_value_to_register): Similarly.
8080 (alpha_extract_return_value): Use alpha_sts.
8081 (alpha_store_return_value): Use alpha_lds.
8082 (alpha_gdbarch_init): Update hooks.
8083
b38b6be2
RH
80842003-06-02 Richard Henderson <rth@redhat.com>
8085
8086 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8087 regnum identifiers.
8088 (alpha_sigtramp_register_address): Likewise.
8089
98a8e1e5
RH
80902003-06-02 Richard Henderson <rth@redhat.com>
8091
8092 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8093 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8094 * alpha-tdep.h: Declare them.
8095
8096 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8097 Remove zerobuf. Don't error on UNIQUE.
8098 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8099 (ALPHA_REGSET_UNIQUE): Provide default.
8100 (supply_gregset): Use alpha_supply_int_regs.
8101 (fill_gregset): Use alpha_fill_int_regs.
8102 (supply_fpregset): Use alpha_supply_fp_regs.
8103 (fill_fpregset): Use alpha_fill_fp_regs.
8104 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8105 (alphabsd_supply_reg): Use alpha_supply_int_regs.
8106 (alphabsd_fill_reg): Use alpha_fill_int_regs.
8107 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8108 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8109 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8110
67dfac52
RH
81112003-06-02 Richard Henderson <rth@redhat.com>
8112
f75d70cc
RH
8113 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8114
67dfac52
RH
8115 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8116 (alpha_store_return_value): Likewise.
8117
0cf566ec
DC
81182003-06-02 David Carlton <carlton@math.stanford.edu>
8119
8120 * block.c (contained_in): Add 'const' to arguments.
8121 (block_function): Ditto.
8122 * block.h: Update declarations for block_function and
8123 contained_in.
8124
cdef89d0
DC
81252003-06-02 David Carlton <carlton@math.stanford.edu>
8126
8127 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8128 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8129 * p-valprint.c (pascal_val_print): Ditto.
8130 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8131
72667056
RH
81322003-06-02 Richard Henderson <rth@redhat.com>
8133
98a8e1e5
RH
8134 * alpha-tdep.c (alpha_push_dummy_call): Use
8135 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 8136
8ffd9b1b 8137 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
8138 sign-extension of 32-bit values.
8139 (alpha_store_return_value): Similarly.
0ede8eca 8140
98a8e1e5
RH
8141 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8142 (alpha_extract_return_value): Likewise.
8143 (alpha_store_return_value): Likewise.
7b5e1cb3 8144
98a8e1e5
RH
8145 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8146 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 8147
98a8e1e5
RH
8148 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8149 (alpha_extract_struct_value_address): Likewise.
8150 (alpha_store_return_value): Likewise.
8151 (alpha_store_struct_return): Remove.
8152 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 8153
98a8e1e5
RH
8154 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8155 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8156 macros where appropriate.
8157 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8158 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 8159
98a8e1e5
RH
8160 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8161 for SP, GP; void_func_ptr for PC; non-language-specific types
8162 for all others.
8163 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 8164
6dd77b81
RH
81652003-06-02 Richard Henderson <rth@redhat.com>
8166
8167 * top.h (lim_at_start): Declare.
8168 * main.c (captured_main): Set it.
8169 * top.c (lim_at_start): Define.
8170 (command_loop): Use it instead of &environ.
8171 * event-top.c (command_handler): Likewise.
8172
f4dbdb54
JT
81732003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8174
8175 * mipsnbsd-tdep.c: Update copyright years.
8176 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8177
8f285956
RH
81782003-06-01 Richard Henderson <rth@redhat.com>
8179
98a8e1e5
RH
8180 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8181 (alpha-linux-tdep.o): Update dependencies.
8182 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8183 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 8184
615967cb
RH
81852003-06-01 Richard Henderson <rth@redhat.com>
8186
98a8e1e5
RH
8187 * alpha-tdep.c (alpha_register_reggroup_p): New.
8188 (alpha_gdbarch_init): Register it.
615967cb 8189
b59661bd
AC
81902003-06-02 Andrew Cagney <cagney@redhat.com>
8191
8192 * dwarfread.c: Eliminate "register"
8193 (decode_die_type): Eliminate assignment within "if".
8194 (struct_type, decode_array_element_type): Ditto.
8195 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8196 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8197 (decode_modified_type, completedieinfo): Ditto.
8198 * block.c: Eliminate "register".
8199 (blockvector_for_pc_sect): Eliminate assignment within "if".
8200 * cp-support.h (struct symbol): Opaque declaration.
8201 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8202
5ef165c2
RH
82032003-06-01 Richard Henderson <rth@redhat.com>
8204
98a8e1e5
RH
8205 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8206 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 8207
143985b7
AF
82082003-06-01 Adam Fedor <fedor@gnu.org>
8209
8210 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8211 * gdbarch.[ch]: Regenerate.
8212 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8213 (hppa_gdbarch_init): Set it in the gdbarch vector.
8214 * i386-tdep.c (i386_fetch_pointer_argument): New
8215 (i386_gdbarch_init): Set it into gdbarch.
8216 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8217 (rs6000_gdbarch_init): Set it in gdbarch.
8218 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8219 (sparc_gdbarch_init): Set it in gdbarch.
8220
ae0167b9
AC
82212003-06-01 Andrew Cagney <cagney@redhat.com>
8222
7c0b4a20
AC
8223 * defs.h (extract_address): Delete declaration.
8224 * findvar.c (extract_address): Delete function.
8225 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8226 extract_address with the inline equivalent,
8227 extract_unsigned_integer.
8228 (xstormy16_extract_struct_value_address): Ditto.
8229 (xstormy16_pointer_to_address): Ditto.
8230 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8231 * v850-tdep.c (v850_push_arguments): Ditto.
8232 (v850_extract_return_value): Ditto.
8233 (v850_extract_struct_value_address): Ditto.
8234 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8235 (sparcnbsd_get_longjmp_target_64): Ditto.
8236 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8237 (get_longjmp_target): Ditto.
8238 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8239 (sh64_extract_struct_value_address): Ditto.
8240 (sh_push_arguments): Ditto.
8241 (sh64_push_arguments): Ditto.
8242 * remote-vxsparc.c (vx_read_register): Ditto.
8243 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8244 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8245 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8246 * mipsv4-nat.c (get_longjmp_target): Ditto.
8247 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8248 * mips-nat.c (get_longjmp_target): Ditto.
8249 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8250 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8251 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8252 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8253 * irix5-nat.c (get_longjmp_target): Ditto.
8254 * irix4-nat.c (get_longjmp_target): Ditto.
8255 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8256 (ia64_push_arguments): Ditto.
8257 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8258 * h8300-tdep.c (h8300_push_arguments): Ditto.
8259 (h8300_store_return_value): Ditto.
8260 (h8300_extract_struct_value_address): Ditto.
8261 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8262 (frv_push_arguments): Ditto.
8263 * avr-tdep.c (avr_pointer_to_address): Ditto.
8264 (avr_push_arguments): Ditto.
8265 * arm-tdep.c (arm_push_dummy_call): Ditto.
8266 (arm_get_longjmp_target): Ditto.
8267 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8268 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8269 (alpha_get_longjmp_target): Ditto.
8270
ae0167b9
AC
8271 * solib-irix.c (extract_mips_address): Inline extract_address,
8272 replacing it with extract_signed_integer.
8273 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8274 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8275 (first_link_map_member, open_symbol_file_object): Ditto.
8276 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8277 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8278 (LM_NEXT, LM_NAME): Ditto.
8279
44d88583
RH
82802003-06-01 Richard Henderson <rth@redhat.com>
8281
98a8e1e5
RH
8282 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8283 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8284 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8285 (alpha_cannot_store_register): Likewise.
8286 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8287 * alpha-nat.c (supply_gregset): Likewise.
8288 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8289
310e9b6a
AC
82902003-06-01 Andrew Cagney <cagney@redhat.com>
8291
8292 * infcall.c (call_function_by_hand): Update comment on
8293 DEPRECATED_DUMMY_WRITE_SP.
8294
8295 * mips-tdep.c (mips_gdbarch_init): Do not set
8296 deprecated_dummy_write_sp.
8297 (mips_eabi_push_dummy_call): Set the SP register.
8298 (mips_o64_push_dummy_call): Set the SP register.
8299 (mips_o32_push_dummy_call): Set the SP register.
8300 (mips_n32n64_push_dummy_call): Set the SP register.
8301
5ab84872
RH
83022003-06-01 Richard Henderson <rth@redhat.com>
8303
98a8e1e5
RH
8304 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8305 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8306 (supply_gregset): Likewise.
8307 * alpha-tdep.c (alpha_store_return_value): Likewise.
8308 (alpha_get_longjmp_target): Likewise.
8309 (alpha_register_name): Constify array.
8310 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8311 deprecated_register_size, deprecated_register_bytes,
8312 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8313 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8314 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8315
09cc52fd
RH
83162003-06-01 Richard Henderson <rth@redhat.com>
8317
8318 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8319 from arg_reg_buffer to regcache to avoid double conversion.
8320
c7f16359
MK
83212003-06-01 Mark Kettenis <kettenis@gnu.org>
8322
8323 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8324 SP_REGNUM.
8325 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8326 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8327
7131cb6e
RH
83282003-06-01 Richard Henderson <rth@redhat.com>
8329
98a8e1e5
RH
8330 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8331 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8332
f3e0f90b
RH
83332003-06-01 Richard Henderson <rth@redhat.com>
8334
98a8e1e5
RH
8335 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8336 not overlapping PC_REGNUM.
f3e0f90b 8337
c88e30c0
RH
83382003-06-01 Richard Henderson <rth@redhat.com>
8339
98a8e1e5
RH
8340 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8341 alpha_push_arguments. Don't dump argument register data to
8342 the target stack. Fix float and 128-bit long double semantics.
8343 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8344 (alpha_fix_call_dummy): Remove.
8345 (alpha_call_dummy_words): Remove.
8346 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8347
f1a559ae
RH
83482003-06-01 Richard Henderson <rth@redhat.com>
8349
8350 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8351
5e045346
AC
83522003-06-01 Andrew Cagney <cagney@redhat.com>
8353
95404a3e
AC
8354 * mips-tdep.c (is_mips16_addr): New function.
8355 (make_mips16_addr, unmake_mips16_addr): New functions.
8356 (pc_is_mips16, mips_fetch_instruction): Use.
8357 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8358 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8359 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8360 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8361 TARGET_MIPS.
8362 * config/mips/tm-mips.h: Update copyright.
8363 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8364 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8365 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8366 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8367 (TM_PRINT_INSN_MACH): Delete.
8368 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8369
5e045346
AC
8370 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8371 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8372 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8373 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8374 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8375 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8376 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8377 mips*-*-riscos* and mips*-*-sysv* onto mips.
8378 * config/mips/mips64.mt: New file.
8379 * config/mips/mips.mt: New file.
8380 * config/mips/littlemips.mt: Delete file.
8381 * config/mips/decstation.mt: Delete file.
8382 * config/mips/vr4300el.mt: Delete file.
8383 * config/mips/vr5000el.mt: Delete file.
8384 * config/mips/vr5000.mt: Delete file.
8385 * config/mips/vr4100.mt: Delete file.
8386 * config/mips/vr4xxxel.mt: Delete file.
8387 * config/mips/vr4300.mt: Delete file.
8388 * config/mips/vr4xxx.mt: Delete file.
8389 * config/mips/bigmips.mt: Delete file.
8390 * config/mips/bigmips64.mt: Delete file.
8391 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8392 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8393 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8394 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8395 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8396 "tm-bigmips.h".
8397 * config/mips/tm-irix3.h: Ditto.
8398 * config/mips/tm-mipsv4.h: Ditto.
8399 * config/mips/tm-embed.h: Ditto.
8400 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8401 "tm-bigmips64.h".
8402 * config/mips/tm-vr5000el.h: Delete file.
8403 * config/mips/tm-tx39l.h: Delete file.
8404 * config/mips/tm-vr4300el.h: Delete file.
8405 * config/mips/tm-vr4xxxel.h: Delete file.
8406 * config/mips/tm-vr4300.h: Delete file.
8407 * config/mips/tm-vr4100.h: Delete file.
8408 * config/mips/tm-vr4xxx.h: Delete file.
8409 * config/mips/tm-vr5000.h: Delete file.
8410 * config/mips/tm-embedl64.h: Delete file.
8411 * config/mips/tm-embedl.h: Delete file.
8412 * config/mips/tm-embed64.h: Delete file.
8413 * config/mips/tm-bigmips64.h: Delete file.
8414 * config/mips/tm-bigmips.h: Delete file.
8415
2473a4a9
MK
84162003-06-01 Mark Kettenis <kettenis@gnu.org>
8417
97a5b208
MK
8418 Fix gdb/1216.
8419 * shnbsd-nat.c: Include "sh-tdep.h".
8420
2473a4a9
MK
8421 From Richard Henderson <rth@redhat.com>:
8422 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8423
e0f7ec59
AC
84242003-05-31 Andrew Cagney <cagney@redhat.com>
8425
8426 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8427 forward declaration.
8428 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8429 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8430 (mips_find_saved_regs): Use set_reg_offset.
8431 (mips_frame_init_saved_regs): Delete function.
8432 (mips_pop_frame): Call mips_find_saved_regs instead of
8433 DEPRECATED_FRAME_INIT_SAVED_REGS.
8434
68dcc709
AC
84352003-05-31 Andrew Cagney <cagney@redhat.com>
8436
8437 * mips-tdep.c (mips_gdbarch_init): Do not set
8438 deprecated_max_register_raw_size, register_virtual_size, and
8439 deprecated_max_register_virtual_size.
8440
cfc14b3a
MK
84412003-05-31 Mark Kettenis <kettenis@gnu.org>
8442
6405b0a6
MK
8443 * i386-tdep.c: Include "dwarf2-frame.h".
8444 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8445 * Makefile.in (i386-tdep.o): Update dependencies.
8446
cfc14b3a
MK
8447 * dwarf2-frame.c, dwarf2-frame.h: New files.
8448 * Makefile.in (SFILES): Add dwarf2-frame.c.
8449 (dwarf2_frame_h): Define.
8450 (COMMON_OBS): Add dwarf2-frame.o.
8451 (dwarf2-frame.o): Add dependencies.
8452
6a2751d2
AJ
84532003-05-31 Andreas Jaeger <aj@suse.de>
8454
8455 * x86-64-linux-nat.c: Fix comment.
8456
1c3545ae
MK
84572003-05-31 Mark Kettenis <kettenis@gnu.org>
8458
10f93086
MK
8459 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8460 function signature.
8461
1c3545ae
MK
8462 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8463 have a sigcontext_addr handler.
8464 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8465 sigcontext_addr handler.
8466
e11c53d2
AC
84672003-05-31 Andrew Cagney <cagney@redhat.com>
8468
8469 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8470 (print_fp_register_row): Replace do_fp_register_row.
8471 (mips_print_fp_register): Add "file" and "frame" parameters.
8472 (mips_print_register): Add "file" and "frame" parameters.
8473 (mips_print_registers_info): Replace mips_do_registers_info.
8474 (mips_gdbarch_init): Set print_registers_info instead of
8475 deprecated_do_registers_info.
8476 (mips_read_fp_register_single): Add "frame" parameter.
8477 (mips_read_fp_register_double): Add "frame" parameter.
8478
a3386186
MK
84792003-05-31 Mark Kettenis <kettenis@gnu.org>
8480
70913449
MK
8481 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8482 Fixes a bug where GDB would print the wrong register names for
8483 targets without SSE.
8484
2b5e0749
MK
8485 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8486 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8487 registers.
8488
8489 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8490 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8491 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8492 TDEP->sc_sp_offset.
8493
a3386186
MK
8494 From Michal Ludvig <mludvig@suse.cz>:
8495 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8496 and `sc_num_regs'.
8497 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8498 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8499 I386_ST0_REGNUM): Move here from...
8500 * i386-tdep.c: ... here.
8501 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8502 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8503 registers if possible.
8504 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8505 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8506 Remove variables.
8507 (i386bsd_sc_reg_offset): New variable.
8508 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8509 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8510 TDEP->sc_sp_offset.
8511 (i386fbsd_sc_reg_offset): New variable.
8512 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8513 TDEP->sc_num_regs.
8514 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8515 variables.
8516 (i386fbsd4_sc_reg_offset): New variable.
8517 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8518 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8519 TDEP->sc_sp_offset.
8520 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8521 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8522 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8523 Remove variables.
8524 (i386nbsd_sc_reg_offset): New variable.
8525 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8526 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8527 TDEP->sc_sp_offset.
8528 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8529 Remove variables.
8530 (i386obsd_sc_reg_offset): New variable.
8531 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8532 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8533 TDEP->sc_sp_offset.
8534 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8535 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8536 for frame pointer offset in `struct sigcontext'.
8537
25ab4790
AC
85382003-05-31 Andrew Cagney <cagney@redhat.com>
8539
8540 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8541 architecture methods call_dummy_words, sizeof_call_dummy_words,
8542 push_return_address, store_struct_return, and fix_call_dummy. Set
8543 push_dummy_call instead of deprecated_push_arguments.
8544 (mips_store_struct_return): Delete function.
8545 (mips_fix_call_dummy): Delete function.
8546 (mips_push_return_address): Delete function.
8547 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8548 RA_REGNUM and T9_REGNUM.
8549 (mips_n32n64_push_dummy_call): Ditto for
8550 mips_n32n64_push_arguments.
8551 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8552 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8553
6a65450a
AC
85542003-05-31 Andrew Cagney <cagney@redhat.com>
8555
8556 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8557 "dummy_addr" to "bp_addr".
8558 * infcall.c (call_function_by_hand): Pass "funaddr" to
8559 gdbarch_push_dummy_call.
8560 * gdbarch.h, gdbarch.c: Re-generate.
8561 * i386-tdep.c (i386_push_dummy_call): Update.
8562 * arm-tdep.c (arm_push_dummy_call): Update.
8563 * d10v-tdep.c (d10v_push_dummy_call): Update.
8564
c4f35dd8
MK
85652003-05-31 Mark Kettenis <kettenis@gnu.org>
8566
8567 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8568 variable declarations.
8569 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8570 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8571 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8572 x86_64_init_frame_pc, x86_64_init_frame_pc,
8573 x86_64_function_has_prologue): Remove prototypes.
8574 (X86_64_NUM_GREGS): New define.
8575 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8576 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8577 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8578 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8579 XMM1_REGNUM): Remove defines.
8580 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8581 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8582 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8583 X86_64_XMM1_REGNUM): New defines.
8584 (struct x86_64_register_info): Renamed from `struct
8585 register_info'. Remove `size' member.
8586 (x86_64_register_info_table): Remove variable.
8587 (x86_64_register_info): New variable.
8588 (X86_64_NUM_REGS): New define.
8589 (X86_64_NUM_GREGS): Remove define.
8590 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8591 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8592 Remove variables.
8593 (x86_54_dwarf2_reg_to_regnum): Remove function.
8594 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8595 (x86_64_dwarf_reg_to_regnum): New function.
8596 (x86_64_register_name): Rewrite.
8597 (x86_64_register_raw_size): Remove function.
8598 (x86_64_register_byte_table): Remove variable.
8599 (x86_64_register_byte): Remove function.
8600 (x86_64_register_virtual_type): Remove function.
8601 (x86_64_register_type): New function.
8602 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8603 x86_64_register_convert_to_raw): Remove functions.
8604 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8605 (x86_64_use_struct_convention): Make static. Adjust for renamed
8606 defines.
8607 (x86_64_frame_init_saved_regs): Remove function.
8608 (x86_64_push_arguments): Make static. Change to accept a regcache
8609 as argument.
8610 (x86_64_store_return_value, x86_64_extract_return_value): Make
8611 static. Rewrite based on i386 counterparts.
8612 (x86_64_push_dummy_call): New function.
8613 (X86_64_NUM_SAVED_REGS): New define.
8614 (x86_64_register_number): Remove function.
8615 (x86_64_store_struct_return): Remove function.
8616 (x86_64_frameless_function_invocation,
8617 x86_64_function_has_prologue): Remove functions.
8618 (PROLOG_BUFSIZE): Remove define.
8619 (struct x86_64_frame_cache): New structure.
8620 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8621 x86_64_frame_cache, x86_64_frame_this_id,
8622 x86_64_frame_prev_register, x86_64_frame_p,
8623 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8624 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8625 functions.
8626 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8627 variables.
8628 (x86_64_skip_prologue): Rewrite in terms of
8629 x86_64_analyze_prologue.
8630 (x86_64_frame_base_address): New function.
8631 (x86_64_frame_base): New variable.
8632 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8633 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8634 set deprecated_fp_regnum, deprecated_register_size,
8635 deprecated_register_bytes, register_raw_size, register_byte,
8636 register_virtual_type, register_convertiable,
8637 register_convert_to_virtual, convert_to_raw,
8638 deprecated_get_saved_register, deprecated_target_read_fp,
8639 deprecated_push_arguments, deprecated_push_return_address,
8640 deprecated_pop_frame, deprecated_store_struct_return,
8641 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8642 frameless_function_invocation, deprecated_frame_saved_pc,
8643 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8644 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8645 deprecated_init_frame_pc and virtual_frame_pointer. Call
8646 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8647 and x86_64_frame_p. Call frame_base_set_default to register
8648 x86_64_frame_base.
8649 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8650 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8651 (_initialize_x86_64_tdep): Remove function.
8652 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8653 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8654 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8655 define.
8656 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8657 (x86_64_linux_sigcontext_addr): Rewrite.
8658 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8659 x86_64_linux_frame_saved_pc): Remove functions.
8660 (x86_64_linux_pc_in_sigtramp): Renamed from
8661 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8662 trampoline.
8663 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8664 Remove_functions.
8665 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8666 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8667 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8668 (x86_64_regmap): Rename to regmap.
8669 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8670 x86_64_num_gregs.
8671 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8672 x86_64_regmap.
8673 (x86_64_fxsave_offset): Remove function.
8674 (supply_fpregset): Simply call x86_64_supply_fxsave.
8675 (fill_fpregset): Simply call x86_64_fill_fxsave.
8676 (fetch_inferior_registers, store_inferior_registers): Avoid
8677 asignment in if-statement.
8678 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8679 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8680 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8681 (fetch_core_registers): Remove function.
8682 (linux_elf_core_fns): Remove.
8683 (offsetoff): Don't define.
8684 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8685 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8686 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8687 add core-regset.o.
8688 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8689 protection against multiple includes instead of NM_X86_64_h. Add
8690 various comments. Include "config/nm-linux.h". Don't include
8691 <signal.h>.
8692 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8693 GET_THREAD_SIGNALS): Remove defines.
8694 (x86_64_register_u_addr, kernel_u_size,
8695 lin_thread_get_thread_signals): Remove prototypes.
8696 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8697 [HAVE_LINK_H]: Don't include "solib.h".
8698 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8699 * config/i386/tm-x86-64linux.h: Fix comments.
8700 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8701 x86-64-tdep.o): Update dependencies.
8702
c25083af
AC
87032003-05-30 Andrew Cagney <cagney@redhat.com>
8704
c8f55a7b
AC
8705 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8706 Change parameter type to a "struct regcache *".
8707
c25083af
AC
8708 * gdbarch.sh: Regardless of the multi-arch level, always define
8709 the macro when not already defined.
8710 * gdbarch.h, gdbarch.c: Re-generate.
8711
fbe586ae
RH
87122003-05-30 Richard Henderson <rth@redhat.com>
8713
8714 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8715 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8716 (alpha_mdebug_frame_this_id): Likewise.
8717 (alpha_mdebug_frame_prev_register): Likewise.
8718 (alpha_mdebug_frame_base_address): Likewise.
8719 (alpha_mdebug_frame_locals_address): Likewise.
8720 (alpha_mdebug_frame_args_address): Likewise.
8721 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8722 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8723 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8724 loop increment.
8725 (alpha_heuristic_frame_this_id): Make static.
8726 (alpha_heuristic_frame_prev_register): Likewise.
8727 (alpha_heuristic_frame_base_address): Likewise.
8728 * alpha-tdep.h: Update.
8729
acd5c798
MK
87302003-05-30 Mark Kettenis <kettenis@gnu.org>
8731
8732 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8733 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8734 defenitions.
8735 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8736 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8737 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8738 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8739 I386_ST0_REGNUM): New defines.
8740 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8741 codestream_get): Remove define.
8742 (codestream_next_addr, condestream_addr, condestream_buf,
8743 codestream_off, codestream_cnt): Remove variables.
8744 (codestream_fill, codestream_seek, codestream_read): Remove
8745 functions.
8746 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8747 functionality.
8748 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8749 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8750 i386_frame_saved_pc, i386_saved_pc_after_call,
8751 i386_frame_num_args, i386_frame_init_saved_regs,
8752 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8753 i386_push_arguments): Remove functions.
8754 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8755 functionality. Use i386_analyze_prologue instead of
8756 i386_get_frame_setup.
8757 (I386_NUM_SAVED_REGS): New define.
8758 (struct i386_frame_cache): New structure.
8759 (i386_alloc_frame_cache, i386_analyze_struct_return,
8760 i386_skip_probe, i386_analyze_frame_setup,
8761 i386_analyze_register_saves, i386_analyze_prologue,
8762 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8763 i386_frame_prev_register, i386_sigtramp_frame_cache,
8764 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8765 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8766 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8767 New functions.
8768 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8769 New variables.
8770 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8771 I386_EAX_REGNUM and I386_EDX_REGNUM.
8772 (i386_extract_return_value, i386_store_return_value): Use
8773 I386_ST0_REGNUM where appropriate.
8774 (i386_extract_struct_value_address): Rewrite to use extract_address.
8775 (i386_svr4_pc_in_sigtramp): Add comment.
8776 (i386_svr4_sigcontext_addr): Rewrite.
8777 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8778 TDEP->sc_sp_offset.
8779 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8780 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8781 of new defines. Set push_dummy_call, don't set
8782 deprecated_push_arguments, deprecated_push_return_address,
8783 deprecated_pop_frame. Don't set parm_boundary. Don't set
8784 deprecated_frame_chain, deprecated_frame_saved_pc,
8785 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8786 save_dummy_frame_tos, unwind_pc. Call
8787 frame_unwind_append_predicate and frame_base_set_default. Don't
8788 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8789 Don't set frameless_function_invocation. Don't set
8790 deprecated_register_bytes, deprecated_register_size,
8791 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8792 * i386-linux-tdep.c: Fix formatting in some comments.
8793 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8794 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8795 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8796 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8797 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8798 redundant parentheses.
8799 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8800 (i386_linux_sigcontext_addr): Use it. Rewrite.
8801 (find_minsym_and_objfile): Change name of second argument.
8802 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8803 changed. Use frame_pc_unwind instead of
8804 DEPRECATED_SAVED_PC_AFTER_CALL.
8805 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8806 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8807 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8808 unwinder.
8809 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8810 "dummy-frame.h".
8811 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8812 (_initialize_i386_cygwin_tdep): New prototype.
8813 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8814 deprecated_frame_chain_valid.
8815 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8816 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8817 Rely on the SVR4 defaults.
8818 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8819 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8820
c89b70f1
AC
88212003-05-30 Andrew Cagney <cagney@redhat.com>
8822
8823 * infcall.c (call_function_by_hand): Always call
8824 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8825
85b32d22
RH
88262003-05-30 Richard Henderson <rth@redhat.com>
8827
c89b70f1
AC
8828 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8829 increment.
85b32d22 8830
bfe51b1e
JB
88312003-05-29 Jim Blandy <jimb@redhat.com>
8832
8833 Use gdbarch methods for solib stuff on PowerPC Linux.
8834 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8835 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8836 show through.
8837 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8838 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8839 giving the same effect as the #definitions above.
8840
1abf022c
AF
88412003-05-29 Adam Fedor <fedor@gnu.org>
8842
8843 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8844 (find_implementation_from_class): Replace it with the standard
8845 case i.e. do nothing.
8846
d2427a71
RH
88472003-05-29 Richard Henderson <rth@redhat.com>
8848
8849 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8850 (alpha_linux_sigtramp_offset): Use it. Make static.
8851 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8852 update for new frame model.
8853 * alpha-mdebug-tdep.c: New file.
8854 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8855 (alpha_osf1_init_abi): Install it.
8856 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8857 (linked_proc_desc_table): Remove.
8858 (alpha_frame_past_sigtramp_frame): Remove.
8859 (alpha_dynamic_sigtramp_offset): Remove.
8860 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8861 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8862 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8863 (push_sigtramp_desc): Remove.
8864 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8865 (alpha_cannot_store_register): Likewise.
8866 (alpha_sigcontext_addr): Remove.
8867 (alpha_find_saved_regs): Remove.
8868 (alpha_frame_init_saved_regs): Remove.
8869 (alpha_init_frame_pc_first): Remove.
8870 (read_next_frame_reg): Remove.
8871 (alpha_frame_saved_pc): Remove.
8872 (alpha_saved_pc_after_call): Remove.
8873 (temp_proc_desc, temp_saved_regs): Remove.
8874 (alpha_about_to_return): Remove.
8875 (cached_proc_desc): Remove.
8876 (alpha_frame_chain): Remove.
8877 (alpha_print_extra_frame_info): Remove.
8878 (alpha_init_extra_frame_info): Remove.
8879 (alpha_frame_locals_address): Remove.
8880 (alpha_frame_args_address): Remove.
8881 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8882 (alpha_push_dummy_frame): Remove.
8883 (alpha_pop_frame): Remove.
8884 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8885 (alpha_read_insn): New.
8886 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8887 for different insn encodings.
8888 (alpha_in_lenient_prologue): Remove.
8889 (struct alpha_sigtramp_unwind_cache): New.
8890 (alpha_sigtramp_frame_unwind_cache): New.
8891 (alpha_sigtramp_register_address): New.
8892 (alpha_sigtramp_frame_this_id): New.
8893 (alpha_sigtramp_frame_prev_register): New.
8894 (alpha_sigtramp_frame_unwind): New.
8895 (alpha_sigtramp_frame_p): New.
8896 (struct alpha_heuristic_unwind_cache): New.
8897 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8898 don't count nop insns that occur between functions.
8899 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8900 heuristic_proc_desc, but without the mdebug wrapping.
8901 (alpha_heuristic_frame_this_id): New.
8902 (alpha_heuristic_frame_prev_register): New.
8903 (alpha_heuristic_frame_unwind): New.
8904 (alpha_heuristic_frame_p): New.
8905 (alpha_heuristic_frame_base_address): New.
8906 (alpha_heuristic_frame_base): New.
8907 (alpha_unwind_dummy_id): New.
8908 (alpha_unwind_pc): New.
8909 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8910 frame related deprecated initializations; install replacements.
8911 (alpha_dump_tdep): Remove.
8912 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8913 (alpha_read_insn, alpha_after_prologue,
8914 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8915 alpha_heuristic_frame_prev_register,
8916 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8917 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8918 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8919 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8920
93ec1121
AC
89212003-05-29 Andrew Cagney <cagney@redhat.com>
8922
8923 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8924 dependant on the availability of ASSERT_FUNCTION.
8925 (ASSERT_FUNCTION): Do not define when there is no function name.
8926
98f08d3d
KB
89272003-05-29 Kevin Buettner <kevinb@redhat.com>
8928
8929 From Jimi X <jimix@watson.ibm.com>:
8930 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8931
0897f59b
JB
89322003-05-28 Jim Blandy <jimb@redhat.com>
8933
8934 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8935 argument to ptrace to int; the system headers should give it the
8936 right type, and pointers don't fit in ints on powerpc64-*-*.
8937
14898363
L
89382003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8939
8940 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8941 DW_TAG_catch_block.
8942
a7a48797
EZ
89432003-05-26 Elena Zannoni <ezannoni@redhat.com>
8944
8945 * stabsread.c (dbx_lookup_type): Make static.
8946 (read_type): Ditto.
8947 (add_undefined_type): Ditto.
8948 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8949 not export.
8950
f5479e9c
EZ
89512003-05-26 Elena Zannoni <ezannoni@redhat.com>
8952
8953 * hpread.c (hpread_has_name): Make static.
8954 (hpread_psymtab_to_symtab): Ditto.
8955 (file_exists): Ditto.
8956 (hpread_call_pxdb): Ditto.
8957 (hpread_pxdb_needed): Ditto.
8958 (hpread_quick_traverse): Ditto.
8959 (hpread_get_header): Ditto.
8960 (hpread_get_lntt): Ditto.
8961 (hpread_get_slt): Ditto.
8962 (class_of): Ditto.
8963
eb2e12d7
AS
89642003-05-25 Andreas Schwab <schwab@suse.de>
8965
78bf922a
AS
8966 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8967 stack_align and deprecated_extra_stack_alignment_needed.
8968 (m68k_stack_align): Delete.
8969
eb2e12d7
AS
8970 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8971 (m68k_register_virtual_size): Likewise.
8972 (altos_skip_prologue): Remove obsolete function.
8973 (isi_frame_num_args): Likewise.
8974 (news_frame_num_args): Likewise.
8975 (m68k_fix_call_dummy): Make static.
8976 (m68k_push_dummy_frame): Likewise.
8977 (m68k_pop_frame): Likewise.
8978 (m68k_skip_prologue): Likewise.
8979 (m68k_frame_init_saved_regs): Likewise.
8980 (m68k_saved_pc_after_call): Likewise.
8981 (m68k_get_longjmp_target): Make multi-arch.
8982 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8983 structure. Register m68k_get_longjmp_target if enabled.
8984 * m68k-tdep.h (struct gdbarch_tdep): Define.
8985 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8986
8987 * Makefile.in (config.status): Also depend on configure.tgt
8988 and configure.host.
8989 (m68klinux-tdep.o): Update dependencies.
8990 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8991 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8992 (M68K_LINUX_JB_PC): Define.
8993 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8994 and take additional parameter.
8995 (m68k_linux_sigtramp_saved_pc): Update.
8996 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8997 m68k_linux_pc_in_sigtramp, in_plt_section,
8998 find_solib_trampoline_target.
8999 * config/m68k/tm-linux.h: Don't include any tm headers.
9000 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
9001 (JB_ELEMENT_SIZE): Likewise.
9002 (JB_PC): Likewise.
9003 (GET_LONGJMP_TARGET): Likewise.
9004 (IN_SIGTRAMP): Likewise.
9005 (SVR4_SHARED_LIBS): Define this and include "solib.h".
9006
eb2c22dc
MK
90072003-05-25 Mark Kettenis <kettenis@gnu.org>
9008
9009 * sparc-tdep.c (sparc32_do_push_arguments): New function.
9010 (sparc32_push_arguments): Re-implement by calling
9011 sparc32_do_push_arguments.
9012
44b7b84e
MK
90132003-05-25 Mark Kettenis <kettenis@gnu.org>
9014
9015 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
9016 SPARC_O1_REGNUM): New defines.
9017 (sparc32_extract_return_value): Rewrite to operate on a regcache.
9018 (sparc32_store_return_value): New function.
9019 (sparc_extract_struct_value_address): Rewrite to operate on a
9020 regcache.
9021 (sparc_gdbarch_init): Don't set
9022 deprecated_extract_struct_value_address. Set
9023 extract_struct_value_address instead. Don't set
9024 deprecated_extract_return_value and deprecated_store_return_value
9025 for 32-bit targets. Set extract_return_value and
9026 store_return_value instead.
9027 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 9028 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
9029 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
9030 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
9031 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
9032 (sparc_store_return_value): Remove prototype.
9033 (sparc32_store_return_value): New prototype.
9034 (sparc32_extract_return_value, sparc_extract_struct_value_address):
9035 Adjust prototypes.
9036
f6ad61e3
MK
90372003-05-24 Mark Kettenis <kettenis@gnu.org>
9038
9039 * sparcnbsd-tdep.c: Include "gdb_string.h".
9040
b276f1bb
AC
90412003-05-23 Andrew Cagney <cagney@redhat.com>
9042
9043 * p-valprint.c (pascal_val_print): Replace extract_address with
9044 the inline equivalent extract_unsigned_integer.
9045 * jv-valprint.c (java_value_print): Ditto.
9046 * ada-valprint.c (ada_val_print_1): Ditto.
9047 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
9048
e76c5fcc
TR
90492003-05-23 Theodore A. Roth <troth@openavr.org>
9050
9051 * blockframe.c (frameless_look_for_prologue): Remove unused
9052 after_prologue variable.
9053
2cdd89cb
MK
90542003-05-23 Mark Kettenis <kettenis@gnu.org>
9055
9056 * blockframe.c (get_pc_function_start): Rewrite to avoid
9057 asignments in if-statements.
9058
182d43bc
EZ
90592003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
9060
9061 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 9062 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
9063 files, don't relocate absolute symbols (and do use mst_abs).
9064
e8f3fcdd
AC
90652003-05-23 Andrew Cagney <cagney@redhat.com>
9066
9067 * objc-lang.c: Include "gdb_assert.h".
9068 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
9069 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
9070 (gdb_check, gdb_check_fatal): Delete functions.
9071 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
9072 gdb_assert.
9073 (parse_selector, parse_method, find_methods, find_imps): Ditto.
9074 * Makefile.in (objc-lang.o): Update dependencies.
9075
3c23e6fb
ILT
90762003-05-22 Ian Lance Taylor <ian@airs.com>
9077
9078 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9079 with fprintf_filtered, not fprintf_unfiltered.
9080
af1342ab
AC
90812003-05-22 Andrew Cagney <cagney@redhat.com>
9082
9083 * stack.c (frame_info): Inline extract_address, replacing it with
9084 extract_unsigned_integer.
9085 * findvar.c (unsigned_pointer_to_address): Ditto.
9086 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9087 * dwarf2expr.c (dwarf2_read_address): Ditto.
9088 * frame.c (frame_pc_unwind): Update comment.
9089 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9090
47e242ec
JJ
90912003-05-22 Jeff Johnston <jjohnstn@redhat.com>
9092
9093 * infptrace.c (detach): Call print_sys_errmsg rather than
9094 perror_with_name to issue warning message when errno is non-zero
9095 after calling ptrace detach.
9096
e2ac8128
JB
90972003-05-21 J. Brobecker <brobecker@gnat.com>
9098
9099 * config/pa/tm-hppa.h: Delete some unused macros. Move some
9100 macro definitions from here...
9101 * hppa-tdep.c: ...to there.
9102
92b3541e
KB
91032003-05-20 Kevin Buettner <kevinb@redhat.com>
9104
9105 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9106 register_ptrace_addr(). Fix all callers.
9107
55809acb
AS
91082003-05-21 Andreas Schwab <schwab@suse.de>
9109
9110 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9111 dependencies.
9112 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9113 end.
9114 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9115 (_initialize_m68k_linux_tdep): New function.
9116 (m68k_linux_frame_saved_pc): Make static.
9117 (m68k_linux_extract_return_value): Likewise.
9118 (m68k_linux_store_return_value): Likewise.
9119 (m68k_linux_extract_struct_value_address): Likewise.
9120 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9121 Remove.
9122 (DEPRECATED_STORE_RETURN_VALUE): Remove.
9123 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9124 (DEPRECATED_FRAME_SAVED_PC): Remove.
9125
0fbc10f7
KW
91262003-05-20 Kris Warkentin <kewarken@qnx.com>
9127
9128 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9129 regset numbering rather than our own.
9130
58da2eb2
DC
91312003-05-19 David Carlton <carlton@bactrian.org>
9132
9133 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9134
1fcb5155
DC
91352003-05-19 David Carlton <carlton@bactrian.org>
9136
9137 Partial fix for PR c++/827.
9138 * cp-support.h: Include symtab.h.
9139 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9140 * cp-namespace.c: Update contributors.
9141 (cp_lookup_symbol_nonlocal): New.
9142 (lookup_namespace_scope, cp_lookup_symbol_namespace)
9143 (lookup_symbol_file): Ditto.
9144 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9145 * block.h: Declare block_scope, block_using, block_global_block.
9146 * block.c (block_scope): New.
9147 (block_using, block_global_block): Ditto.
9148 * Makefile.in (cp_support_h): Depend on symtab_h.
9149 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9150
5f9a71c3
DC
91512003-05-19 David Carlton <carlton@bactrian.org>
9152
9153 * language.h (struct language_defn): Add 'la_value_of_this'
9154 and 'la_lookup_symbol_nonlocal' members.
9155 * symtab.h: Declare basic_lookup_symbol_nonlocal,
9156 lookup_symbol_static, lookup_symbol_global,
9157 lookup_symbol_aux_block.
9158 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9159 if we should search fields of this and how to do static/global
9160 lookup.
9161 (lookup_symbol_aux_block): Make extern.
9162 (basic_lookup_symbol_nonlocal): New.
9163 (lookup_symbol_static, lookup_symbol_global): Ditto.
9164 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9165 'la_lookup_symbol_nonlocal' members.
9166 * c-lang.c (c_language_defn, cplus_language_defn)
9167 (asm_language_defn, minimal_language_defn): Ditto.
9168 * jv-lang.c (java_language_defn): Ditto.
9169 * language.c (unknown_language_defn, auto_language_defn)
9170 (local_language_defn): Ditto.
9171 * m2-lang.c (m2_language_defn): Ditto.
9172 * objc-lang.c (objc_language_defn): Ditto.
9173 * scm-lang.c (scm_language_defn): Ditto.
9174 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9175 * p-lang.c (pascal_language_defn): Ditto for both.
9176 * Makefile.in (f-lang.o): Depend on value_h.
9177 (p-lang.o): Ditto.
9178
89a9d1b1
DC
91792003-05-19 David Carlton <carlton@bactrian.org>
9180
9181 * block.h: Declare block_static_block.
9182 * block.c (block_static_block): New.
9183 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9184 lookup_symbol_aux_local, calling block_static_block instead.
9185 (lookup_symbol_aux_local): Delete 'static_block' argument.
9186
eed3f8ab
DC
91872003-05-19 David Carlton <carlton@bactrian.org>
9188
9189 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9190
a09d8bda
ML
91912003-05-19 Michal Ludvig <mludvig@suse.cz>
9192
9193 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9194 register numbers mapping.
9195
69636828
AF
91962003-05-18 Adam Fedor <fedor@gnu.org>
9197
9198 * symtab.c (completion_list_objc_symbol): New function.
9199 (make_symbol_completion_list): Use it to add ObjC symbols
9200 when looking though the list.
9201 (language_search_unquoted_string): New function.
9202 (make_file_symbol_completion_list): Use it.
9203
55baeb84
AS
92042003-05-18 Andreas Schwab <schwab@suse.de>
9205
d0b45d99
AS
9206 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9207 dependencies.
9208 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9209 as m68k_linux_extract_return_value.
9210 (DEPRECATED_STORE_RETURN_VALUE): Define as
9211 m68k_linux_store_return_value.
9212 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9213 m68k_linux_extract_struct_value_address.
9214 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9215 get_next_frame, get_frame_base, get_frame_pc.
9216 (m68k_linux_frame_saved_pc): Use get_frame_base.
9217 (m68k_linux_extract_return_value): New function.
9218 (m68k_linux_store_return_value): New function.
9219 (m68k_linux_extract_struct_value_address): New function.
9220 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9221
55baeb84
AS
9222 * c-exp.y (typebase): Remove duplicate occurence of
9223 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 9224 of lookup_signed_typename.
55baeb84 9225
b6b08ebf
MK
92262003-05-18 Mark Kettenis <kettenis@gnu.org>
9227
9228 * dwarf2loc.c (find_location_expression): Change type of second
9229 argument to `size_t *'.
9230 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9231 for size variable.
9232
5ad1c190
DC
92332003-05-18 David Carlton <carlton@bactrian.org>
9234
9235 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9236 'linkage_name'. Add comment.
9237 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9238 'linkage_name'.
9239 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9240 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9241 (lookup_block_symbol): Ditto.
9242
b8b527c5
AC
92432003-05-16 Andrew Cagney <cagney@redhat.com>
9244
9245 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9246 * gdbarch.h, gdbarch.c: Re-generate.
9247 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9248 * TODO (REGISTER_BYTES): Delete reference.
9249 * alpha-tdep.c (alpha_gdbarch_init): Update.
9250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9251 * x86-64-tdep.c (x86_64_init_abi): Update.
9252 * vax-tdep.c (vax_gdbarch_init): Update.
9253 * v850-tdep.c (v850_gdbarch_init): Update.
9254 * sparc-tdep.c (sparc_gdbarch_init): Update.
9255 * sh-tdep.c (sh_gdbarch_init): Update.
9256 * s390-tdep.c (s390_gdbarch_init): Update.
9257 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9258 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9259 (ns32k_gdbarch_init_32382): Update.
9260 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9261 * mcore-tdep.c (mcore_gdbarch_init): Update.
9262 * m68k-tdep.c (m68k_gdbarch_init): Update.
9263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9264 * ia64-tdep.c (ia64_gdbarch_init): Update.
9265 * i386-tdep.c (i386_gdbarch_init): Update.
9266 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9267 * hppa-tdep.c (hppa_gdbarch_init): Update.
9268 * h8300-tdep.c (h8300_gdbarch_init): Update.
9269 * frv-tdep.c (frv_gdbarch_init): Update.
9270 * cris-tdep.c (cris_gdbarch_init): Update.
9271 * avr-tdep.c (avr_gdbarch_init): Update.
9272 * arm-tdep.c (arm_gdbarch_init): Update.
9273 * sparc-tdep.c (sparc_pop_frame): Update.
9274 * rs6000-tdep.c (rs6000_pop_frame): Update.
9275 * remote.c (init_remote_state): Update.
9276 (remote_prepare_to_store): Update.
9277 * remote-vx.c (vx_prepare_to_store): Update.
9278 * remote-sds.c (sds_fetch_registers): Update.
9279 (sds_prepare_to_store): Update.
9280 * remote-array.c: Update.
9281 * regcache.c (init_legacy_regcache_descr): Update.
9282 (init_regcache_descr): Update.
9283 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9284 (mips_o64_extract_return_value): Update.
9285 * irix5-nat.c (fetch_core_registers): Update.
9286 * irix4-nat.c (fetch_core_registers): Update.
9287 * i386-tdep.h: Update.
9288 * hppa-tdep.c (pa_do_registers_info): Update.
9289 (pa_do_strcat_registers_info): Update.
9290 * cris-tdep.c (cris_register_bytes_ok): Update.
9291 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9292 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9293 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9294 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9295 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9296 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9297 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9298 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9299 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9300 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9301 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9302 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9303 (REGISTER_BYTES_OK): Update.
9304 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9305 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9306
ee2842e2
ILT
93072003-05-16 Ian Lance Taylor <ian@airs.com>
9308
9309 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9310 (vax_print_insn, print_insn_arg): Remove static functions.
9311 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9312 print_insn_vax from opcodes library.
9313 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9314
973177d3
AC
93152003-05-15 Andrew Cagney <cagney@redhat.com>
9316
aaab4dba
AC
9317 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9318 * target.h (memory_breakpoint_from_pc): Delete declaration.
9319 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9320 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9321 * monitor.c (monitor_insert_breakpoint): Use
9322 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9323 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9324 * gdbarch.h, gdbarch.c: Re-generate.
9325 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9326 (sparc_gdbarch_init): Set breakpoint_from_pc to
9327 sparc_breakpoint_from_pc.
9328 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9329 (BREAKPOINT_FROM_PC): Define.
9330 (sparc_breakpoint_from_pc): Declare.
9331 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9332 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9333 (BREAKPOINT_FROM_PC): Define.
9334 (BREAKPOINT): Delete macro.
9335 * target.h: Update comment.
9336 * s390-tdep.c (s390_gdbarch_init): Update comments.
9337 * remote.c: Update comments.
9338 * remote-mips.c: Update comments.
9339 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9340 * mem-break.c: Update comment.
9341 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9342 (ia64_memory_insert_breakpoint): Update.
9343 * config/sparc/tm-sparc.h: Update comment.
9344 * config/pa/tm-hppa64.h: Update comment.
9345 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9346 (rs6000_breakpoint_from_pc): Update.
9347 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9348 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9349 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9350 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9351 (mips_breakpoint_from_pc): Update.
9352 (mips_dump_tdep): Update.
9353
e06963ff
AC
9354 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9355 * minsyms.c (lookup_minimal_symbol): Inline
9356 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9357
973177d3
AC
9358 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9359 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9360 * p-lang.c (pascal_printstr): Ditto.
9361 * objc-lang.c (objc_printstr): Ditto.
9362 * m2-lang.c (m2_printstr): Ditto.
9363 * jv-valprint.c (java_print_value_fields): Ditto.
9364 * f-lang.c (f_printstr): Ditto.
9365 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9366 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9367 for repeat_count_threshold.
9368 * Makefile.in (cp-valprint.o): Update dependencies.
9369
5ea2bd7f 93702003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9371
5ea2bd7f
JJ
9372 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9373 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9374 they start with mov r2,r12. Support skipping over indirect stores
9375 of the input registers. Upon hitting a non-nop branch instruction
9376 or predicated instruction, bail out by setting lim_pc to the current
9377 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9378 beyond our calculated value and we have trust_limit set,
9379 use the lim_pc value.
9380
cc8c88f3
AC
93812003-05-15 Andrew Cagney <cagney@redhat.com>
9382
9383 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9384 generic_find_dummy_frame.
9385 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9386 (deprecated_generic_find_dummy_frame): Update.
9387 (deprecated_read_register_dummy): Update.
9388 * frame.c (deprecated_generic_get_saved_register): Update.
9389
909cd28e
TR
93902003-05-15 Theodore A. Roth <troth@openavr.org>
9391
9392 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9393 (avr_gdbarch_init): Set breakpoint_from_pc method.
9394
b923b08d
AC
93952003-05-15 Andrew Cagney <cagney@redhat.com>
9396
9397 * regcache.c (build_regcache): Set deprecated_register_valid
9398 directly.
9399 (deprecated_grub_regcache_for_register_valid): Delete function.
9400 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9401 declaration.
9402
ae2f03ac 94032003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9404
9405 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9406 * symtab.c (lookup_symbol_aux): Delete calls to
9407 lookup_symbol_aux_minsyms.
9408 (lookup_symbol_aux_minsyms): Comment out function and
9409 prototype. Delete lookup by mangled name.
ae2f03ac 9410
18ec9831
KB
94112003-05-14 Kevin Buettner <kevinb@redhat.com>
9412
9413 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9414 correctly indicate an empty stack and ``stack_allocated'' to the
9415 indicate the number of elements initially allocated.
9416 (dwarf_expr_grow_stack): Simplify method for computing new
9417 stack size. Don't loop infinitely if ``stack_len'' is zero.
9418 (execute_stack_op): Move ``ctx->in_reg'' initialization
9419 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9420 be used in conjuction with DW_OP_piece. Revise error message
9421 accordingly.
9422
de18ac1f
TR
94232003-05-14 Theodore A. Roth <troth@openavr.org>
9424
9425 * MAINTAINERS: Update my email address.
9426 * avr-tdep.c: Ditto.
9427
176620f1
EZ
94282003-05-14 Elena Zannoni <ezannoni@redhat.com>
9429
9430 * symtab.h (enum domain_enum): Rename from namespace_enum.
9431 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9432 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9433 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9434 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9435 TYPES_NAMESPACE, METHODS_NAMESPACE.
9436 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9437 (struct symbol, struct partial_symbol): Rename field
9438 'namespace_enum namespace' to 'domain_enum domain'.
9439 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9440 Delete old define kludge for namespace.
9441
9442 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9443 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9444 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9445 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9446 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9447 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9448 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9449 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9450 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9451 occurrences of the above.
9452
b7f31508
ILT
94532003-05-14 Ian Lance Taylor <ian@airs.com>
9454
9455 * Makefile.in (install-only): Use $(SHELL) when running
9456 mkinstalldirs.
9457
2fdbdd39
ILT
94582003-05-13 Ian Lance Taylor <ian@airs.com>
9459
a208d82c
ILT
9460 * MAINTAINERS (write after approval): Add myself.
9461
2fdbdd39
ILT
9462 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9463 second and third arguments.
9464 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9465 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9466
fbd9dcd3
AC
94672003-05-13 Andrew Cagney <cagney@redhat.com>
9468
9469 * defs.h (store_address): Delete declaration.
9470 findvar.c (store_address): Delete function.
9471 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9472 store_unsigned_integer.
9473 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9474 * v850-tdep.c (v850_push_arguments): Ditto.
9475 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9476 * sh-tdep.c (sh64_get_saved_register): Ditto.
9477 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9478 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9479 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9480 (mips_get_saved_register): Ditto.
9481 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9482 (find_func_descr, ia64_push_arguments): Ditto.
9483 * i386-tdep.c (i386_push_arguments): Ditto.
9484 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9485 * frv-tdep.c (frv_push_arguments): Ditto.
9486 * frame.c (legacy_saved_regs_prev_register): Ditto.
9487 (deprecated_generic_get_saved_register): Ditto.
9488 * findvar.c (unsigned_address_to_pointer): Ditto.
9489 * dwarf2read.c (dwarf2_const_value): Ditto.
9490 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9491 * alpha-tdep.c (alpha_push_arguments): Ditto.
9492
6760f9e6
JB
94932003-05-12 J. Brobecker <brobecker@gnat.com>
9494
9495 * NEWS: Mention that the hppa-hpux port has been partially
9496 multiarched (32bit ABIT only, so far).
9497
30e221b4
AC
94982003-05-11 Andrew Cagney <cagney@redhat.com>
9499
9500 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9501 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9502 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9503 sim/testsuite/sim/arm/misaligned2.ms, and
9504 sim/testsuite/sim/arm/misaligned3.ms.
9505 * disasm.h (struct ui_file): Add opaque struct declaration.
9506 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9507 * frame.h (struct ui_file): Ditto.
9508
dea7f9ba
MK
95092003-05-11 Mark Kettenis <kettenis@gnu.org>
9510
9511 * value.h: Pretty print.
9512
01986c48
MK
95132003-05-10 Mark Kettenis <kettenis@gnu.org>
9514
9515 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9516
123a958e
AC
95172003-05-08 Andrew Cagney <cagney@redhat.com>
9518
9519 * regcache.h (max_register_size): Delete declaration.
9520 * regcache.c (max_register_size): Delete function.
9521 (struct regcache_descr): Delete field "max_register_size".
9522 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9523 registers fit in MAX_REGISTER_SIZE.
9524 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9525 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9526 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9527 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9528 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9529 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9530 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9531 * dve3900-rom.c, hppa-tdep.c: Ditto.
9532
eb294659
DC
95332003-05-08 David Carlton <carlton@math.stanford.edu>
9534
9535 * valops.c (push_word): Fix typo.
9536
d9d9c31f
AC
95372003-05-08 Andrew Cagney <cagney@redhat.com>
9538
9539 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9540 * gdbarch.h: Re-generate.
9541 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9542 (legacy_max_register_raw_size): Delete declaration.
9543 * regcache.c (legacy_max_register_raw_size): Delete function.
9544 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9545 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9546 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9547 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9548 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9549 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9550 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9551 * findvar.c, dwarf2cfi.c: Ditto.
9552
22540ece
AC
95532003-05-08 Andrew Cagney <cagney@redhat.com>
9554
9555 * mips-tdep.c (read_signed_register): New function, moved to here
9556 from "regcache.c".
9557 (read_signed_register_pid): Ditto.
9558 * regcache.c (read_signed_register_pid): Delete function, moved to
9559 "mips-tdep.c".
9560 (read_signed_register): Ditto.
9561 * regcache.h (read_signed_register): Delete declaration.
9562 (read_signed_register_pid): Delete declaration.
9563
0c92afe8
AC
95642003-05-08 Andrew Cagney <cagney@redhat.com>
9565
9566 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9567 * gdbarch.h: Re-generate.
9568 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9569 (legacy_max_register_virtual_size): Delete declaration.
9570 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9571 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9572 * tracepoint.c (memrange_sortmerge): Ditto.
9573 * sparc-tdep.c (sparc_print_registers): Ditto.
9574 * regcache.c (legacy_max_register_virtual_size): Delete function.
9575
6037b830
JB
95762002-05-08 J. Brobecker <brobecker@gnat.com>
9577
9578 * fork-child.c (escape_bang_in_quoted_argument): New function.
9579 (fork_inferior): Escape '!' characters in quoted arguments
9580 only when needed.
9581
5d62c8b1
JB
95822003-05-08 J. Brobecker <brobecker@gnat.com>
9583
9584 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9585 the language of the CU is not currently supported by GDB.
9586
20a0e81d
JB
95872003-05-08 J. Brobecker <brobecker@gnat.com>
9588
9589 * defs.h (language): Add language_minimal enum value.
9590 * c-lang.c (minimal_language_defn): New language definition.
9591 (_initialize_c_language): Add the new minimal language to the list
9592 of languages known to GDB.
9593
710ee10a
KB
95942003-05-08 Kevin Buettner <kevinb@redhat.com>
9595
9596 * frame.c (get_frame_type): Don't attempt to lazily initialize
9597 frame's unwinder for legacy frames.
9598
1750fa04
AC
95992003-05-07 Andrew Cagney <cagney@redhat.com>
9600
9601 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9602 and "regcache" parameters.
9603 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9604
ddf9f258 96052003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9606
9607 * dwarf2read.c (dwarf_decode_lines): Only use output of
9608 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9609 the current address.
9610
87767c29
AC
96112003-05-07 Andrew Cagney <cagney@redhat.com>
9612
9613 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9614 code.
9615
5e7b2f39
JB
96162003-05-07 Jim Blandy <jimb@redhat.com>
9617
9618 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9619 'maint info symtabs' and 'maint info psymtabs'.
9620 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9621 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9622 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9623 Declarations updated.
9624 * maint.c (maintenance_list_command): Delete.
9625 (_initialize_maint_cmds): Update calls to add_cmd.
9626 * gdbcmd.h (maintenancelistlist): Delete declaration.
9627 * cli/cli-cmds.c (maintenancelistlist): Delete.
9628 (init_cmd_lists): Don't initialize it.
9629 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9630
f6684c31
AC
96312003-05-07 Andrew Cagney <cagney@redhat.com>
9632
9633 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9634 "regcache".
9635 (d10v_print_registers_info): Update.
9636 (d10v_dmap_register, d10v_imap_register): Delete functions.
9637 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9638 and "imap_register".
9639 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9640 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9641 * arch-utils.c (generic_remote_translate_xfer_address): Add
9642 "regcache" and "gdbarch" parameters.
9643 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9644 parameter. Change class to multi-arch.
9645 * gdbarch.h, gdbarch.c: Re-generate.
9646 * remote.c (remote_xfer_memory): Use
9647 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9648
e4846b08
JJ
96492003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9650
9651 * infrun.c (prev_pc): Move declaration ahead of proceed().
9652 (proceed): Refresh prev_pc value before resuming.
9653 (stop_stepping): Remove code to refresh prev_pc.
9654
6b71b8ac
KW
96552003-05-06 Kris Warkentin <kewarken@qnx.com>
9656
9657 * nto-tdep.c: Removed stray comment.
9658
47979a4b
KW
96592003-05-06 Kris Warkentin <kewarken@qnx.com>
9660
9661 * i386-nto-tdep.c: Fix old K&R function definitions.
9662 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9663 Also change add_show_from_set() call to add_setshow_cmd().
9664 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9665
00905d52
AC
96662003-05-05 Andrew Cagney <cagney@redhat.com>
9667
9668 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9669 (fprint_dummy_frames): New function.
9670 (maintenance_print_dummy_frames): New function.
9671 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9672 * frame.c (fprint_frame_id): Make global.
9673 * frame.h (fprint_frame_id): Declare.
9674 * Makefile.in (dummy-frame.o): Update dependencies.
9675
b1e29e33
AC
96762003-05-05 Andrew Cagney <cagney@redhat.com>
9677
9678 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9679 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9680 SIZEOF_CALL_DUMMY_WORDS.
9681 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9682 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9683 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9684 CALL_DUMMY_BREAKPOINT_OFFSET.
9685 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9686 CALL_DUMMY_START_OFFSET.
9687 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9688 * gdbarch.h, gdbarch.c: Re-generate.
9689 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9690 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9691 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9692 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9693 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9694 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9695 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9696 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9697 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9698 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9699 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9700 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9701 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9702 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9703 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9704
97052003-05-05 Kris Warkentin <kewarken@qnx.com>
9706
9707 * configure.tgt: Add i[3456]86-*-nto*.
9708 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9709 * nto-tdep.c: New file. Neutrino target support routines.
9710 * nto-tdep.h: New file. Neutrino target header.
9711 * config/tm-qnxnto.h: New file.
9712 * config/i386/i386nto.mt: New file.
9713 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9714
0ce3d317
AC
97152003-05-04 Andrew Cagney <cagney@redhat.com>
9716
9717 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9718 (load_infrun_state): Ditto.
9719 (struct thread_info): Drop "prev_func_name" field.
9720 * thread.c (load_infrun_state): Update.
9721 (save_infrun_state): Update.
9722 * infrun.c (prev_func_name): Delete variable.
9723 (init_wait_for_inferior): Do not clear prev_func_name.
9724 (stop_stepping, keep_going, context_switch): Do not swap
9725 prev_func_name.
9726 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9727 instead of PC_IN_SIGTRAMP.
9728
46654a5b
AC
97292003-05-04 Andrew Cagney <cagney@redhat.com>
9730
9731 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9732 REGISTER_BYTE with register_offset_hack.
9733 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9734 that REGISTER_BYTE is consistent with the regcache.
9735 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9736 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9737
14b08c1b
MK
97382003-05-04 Mark Kettenis <kettenis@gnu.org>
9739
04c8243f
MK
9740 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9741 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9742
14b08c1b
MK
9743 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9744
c7a11e01
JB
97452003-05-03 J. Brobecker <brobecker@gnat.com>
9746
9747 From Thierry Schneider <tpschneider1@yahoo.com>
9748 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9749 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9750 (mi-cmd-symbol.o): Add rule.
9751
7043d8dc
AC
97522003-05-03 Andrew Cagney <cagney@redhat.com>
9753
9754 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9755 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9756 * gdbarch.h, gdbarch.c: Re-generate.
9757 * d10v-tdep.c (d10v_push_dummy_code): New function.
9758 (d10v_gdbarch_init): Set push_dummy_code.
9759 * infcall.c (legacy_push_dummy_code): New function.
9760 (generic_push_dummy_code): New function.
9761 (push_dummy_code): New function.
9762 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9763 instead of dummy_addr, to push_dummy_call. Move call to
9764 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9765 switch.
9766 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9767
92bf2b80
AC
97682003-05-03 Andrew Cagney <cagney@redhat.com>
9769
9770 * disasm.h (print_insn): Declare.
9771 * disasm.c (init_gdb_disassemble_info): New function.
9772 (gdb_disassembly): Call init_gdb_disassemble_info.
9773 (gdb_print_insn): New function.
9774 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9775 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9776 * mcore-tdep.c: Include "disasm.h"
9777 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9778 * d10v-tdep.c: Include "disasm.h".
9779 (display_trace): Call gdb_print_insn, instead of print_insn.
9780 (print_insn): Delete function.
9781 * printcmd.c: Include "disasm.h".
9782 (print_insn): Delete function.
9783 (print_formatted): Call gdb_print_insn, instead of print_insn.
9784 * Makefile.in (printcmd.o): Update dependencies.
9785 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9786
27d94c49
AC
97872003-05-02 Andrew Cagney <cagney@redhat.com>
9788
82de1e5b
AC
9789 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9790 PC_REGNUM, re-indent.
9791 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9792 PC_REGNUM isn't set.
9793
27d94c49
AC
9794 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9795 * gdbarch.h, gdbarch.c: Re-generate.
9796 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9797 register_virtual_size, pc_regnum, or register_bytes.
9798 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9799 (d10v_register_type): Use D10V_PC_REGNUM.
9800 (d10v_print_registers_info, d10v_read_pc): Ditto.
9801 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9802 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9803
a9c0dc7f
DC
98042003-05-02 David Carlton <carlton@bactrian.org>
9805
9806 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9807 the name with mstrsave.
9808
e33d66ec
EZ
98092003-05-02 Elena Zannoni <ezannoni@redhat.com>
9810
9811 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9812 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9813 (host_charset_name, target_charset_name): New vars for use by
9814 set/show commands.
9815 (host_charset_enum, target_charset_enum): New enums for set/show
9816 commands.
9817 (set_charset_sfunc, set_host_charset_sfunc,
9818 set_target_charset_sfunc): New functions.
9819 (set_host_charset, set_target_charset): Make static.
9820 (list_charsets, set_host_charset_command,
9821 set_target_charset_command): Delete functions.
9822 (show_charset_command): Rewrite as....
9823 (show_charset): Hook this up with the set/show command mechanism.
9824 (_initialize_charset): Change names of charsets to match the
9825 set/show enums. Use host_charset_name and target_charset_name.
9826 Use set/show mechanism for charset, host-charset, target-charset
9827 commands. Do not make 'show host-charset' and 'show
9828 target-charset' be aliases of 'show charset'.
9829
9830 * charset.h (set_host_charset, set_target_charset): Don't export,
9831 they are not used outside the file.
9832
2b6fd0d8
AC
98332003-05-01 Andrew Cagney <cagney@redhat.com>
9834
9835 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9836 (gdb_disassembly): Make "di" non static, always initialize and
9837 cleanup. Always use dis_asm_read_memory.
9838 (gdb_dis_asm_read_memory): Delete function.
9839
6ae2f580
AC
98402003-05-01 Andrew Cagney <cagney@redhat.com>
9841
9842 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9843 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9844
810ecf9f
AC
98452003-04-30 Andrew Cagney <cagney@redhat.com>
9846
9847 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9848 "tm_print_insn_info".
9849 (TARGET_PRINT_INSN_INFO): Delete macro.
9850 (dis_asm_read_memory): Delete function declaration.
9851 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9852 (tm_print_insn_info): Delete variable definition.
9853 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9854 * gdbarch.h, gdbarch.c: Re-generate.
9855 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9856 "deprecated_tm_print_insn_info".
9857 * mcore-tdep.c (mcore_dump_insn): Ditto.
9858 * mips-tdep.c (mips_gdbarch_init): Ditto.
9859 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9860 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9861 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9862 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9863 instead of TARGET_PRINT_INSN_INFO, add comment.
9864 * s390-tdep.c (s390_get_frame_info): Instead of
9865 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9866 (s390_check_function_end, s390_is_sigreturn): Ditto.
9867 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9868 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9869 * disasm.c: Include "gdbcore.h".
9870 (_initialize_disasm): New function, initialize
9871 "deprecated_tm_print_insn_info".
9872 (deprecated_tm_print_insn_info): New variable.
9873 (dis_asm_read_memory): Moved from "corefile.c", made static.
9874 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9875 * Makefile.in (disasm.o): Update dependencies.
9876
07020390
AC
98772003-04-30 Andrew Cagney <cagney@redhat.com>
9878
9879 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9880
a9fa03de
AF
98812003-04-29 Adam Fedor <fedor@gnu.org>
9882
9883 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9884 * infcall.c (find_function_addr): Make non-static.
9885 * infcall.h (find_function_addr): Declare.
9886 * Makefile.in (eval.o): Update dependencies.
9887
1bae87b9
AF
98882003-04-28 Adam Fedor <fedor@gnu.org>
9889
9890 * symtab.c (symbol_find_demangled_name): Check for and demangle
9891 ObjC symbols.
9892 (symbol_init_demangled_name): Init for language_objc as well.
9893
0ba6dca9
AC
98942003-04-28 Andrew Cagney <cagney@redhat.com>
9895
9896 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9897 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9898 * gdbarch.h, gdbarch.c: Re-generate.
9899 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9900 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9901 * inferior.h (deprecated_read_fp): Rename read_fp.
9902 (generic_target_read_fp): Delete declaration.
9903 * regcache.c (generic_target_read_fp): Delete function.
9904 (deprecated_read_fp): Replace read_fp, use
9905 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9906 * d10v-tdep.c (d10v_read_fp): Delete function.
9907 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9908
9909 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9910 deprecated_target_read_fp to generic_target_read_fp.
9911 * sh-tdep.c (sh_gdbarch_init): Ditto.
9912 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9913 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9914 * frv-tdep.c (frv_gdbarch_init): Ditto.
9915
9916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9917 deprecated_fp_regnum.
9918 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9919 * vax-tdep.c (vax_gdbarch_init): Ditto.
9920 * v850-tdep.c (v850_gdbarch_init): Ditto.
9921 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9922 * sh-tdep.c (sh_gdbarch_init): Ditto.
9923 * s390-tdep.c (s390_gdbarch_init): Ditto.
9924 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9925 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9926 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9927 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9928 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9929 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9930 * i386-tdep.c (i386_gdbarch_init): Ditto.
9931 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9932 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9933 * frv-tdep.c (frv_gdbarch_init): Ditto.
9934 * cris-tdep.c (cris_gdbarch_init): Ditto.
9935 * avr-tdep.c (avr_gdbarch_init): Ditto.
9936 * arm-tdep.c (arm_gdbarch_init): Ditto.
9937 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9938
9939 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9940 * v850-tdep.c (v850_gdbarch_init): Ditto.
9941 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9942 * sh-tdep.c (sh_gdbarch_init): Ditto.
9943 * s390-tdep.c (s390_gdbarch_init): Ditto.
9944 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9945 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9946 * mips-tdep.c (mips_gdbarch_init): Ditto.
9947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9948 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9949 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9950 * frv-tdep.c (frv_gdbarch_init): Ditto.
9951 * avr-tdep.c (avr_gdbarch_init): Ditto.
9952 * arm-tdep.c (arm_gdbarch_init): Ditto.
9953
9954 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9955 DEPRECATED_FP_REGNUM.
9956 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9957 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9958 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9959 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9960 (sparc32_register_virtual_type): Ditto.
9961 * sh-tdep.c (sh64_frame_chain): Ditto.
9962 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9963 (sh_nofp_frame_init_saved_regs): Ditto.
9964 (sh64_nofp_frame_init_saved_regs): Ditto.
9965 (sh_fp_frame_init_saved_regs): Ditto.
9966 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9967 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9968 * procfs.c (procfs_fetch_registers): Ditto.
9969 (procfs_store_registers): Ditto.
9970 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9971 (store_inferior_registers, fetch_core_registers): Ditto.
9972 (fetch_kcore_registers, clear_regs): Ditto.
9973 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9974 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9975 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9976 * nlm/i386.c (do_status): Ditto.
9977 * mipsv4-nat.c (supply_gregset): Ditto.
9978 * mips-tdep.c: Ditto for comments.
9979 * mips-nat.c (fetch_inferior_registers): Ditto.
9980 (store_inferior_registers, fetch_core_registers): Ditto.
9981 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9982 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9983 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9984 (i386_do_pop_frame, i386_register_type): Ditto.
9985 * hppa-tdep.c (hppa_frame_chain): Ditto.
9986 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9987 (hppa_pop_frame, hppa_read_fp): Ditto.
9988 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9989 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9990 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9991 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9992 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9993 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9994 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9995 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9996 * blockframe.c: Ditto for comments.
9997 * arch-utils.h: Ditto for comments.
9998 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9999 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
10000 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
10001 * alpha-tdep.h: Ditto for comments.
10002 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
10003 (alpha_cannot_store_register): Ditto.
10004 (alpha_push_dummy_frame): Ditto.
10005 * alpha-nat.c (supply_gregset): Ditto.
10006
10007 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
10008 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
10009 * config/sparc/tm-sparc.h: Update comment.
10010
10011 * hppa-tdep.c (hppa_init_extra_frame_info): Use
10012 deprecated_read_fp instead of TARGET_READ_FP.
10013 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
10014 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
10015 * sparc-tdep.c (sparc_init_extra_frame_info): Use
10016 deprecated_read_fp instead of read_fp.
10017 * s390-tdep.c (s390_push_arguments): Ditto.
10018 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10019 * frame.h: Ditto in comments.
10020 * frame.c (legacy_get_prev_frame): Ditto.
10021 * dummy-frame.c (dummy_frame_this_id): Ditto.
10022 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10023
d7a27068
AC
100242003-04-28 Andrew Cagney <cagney@redhat.com>
10025
10026 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
10027 * gdbarch.h, gdbarch.c: Re-generate.
10028 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
10029 * vax-tdep.c (_initialize_vax_tdep): Update.
10030 * v850-tdep.c (_initialize_v850_tdep): Update.
10031 * sparc-tdep.c (_initialize_sparc_tdep): Update.
10032 * s390-tdep.c (_initialize_s390_tdep): Update.
10033 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
10034 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
10035 * mips-tdep.c (_initialize_mips_tdep): Update.
10036 * mcore-tdep.c (_initialize_mcore_tdep): Update.
10037 * m68k-tdep.c (_initialize_m68k_tdep): Update.
10038 * ia64-tdep.c (_initialize_ia64_tdep): Update.
10039 * hppa-tdep.c (_initialize_hppa_tdep): Update.
10040 * h8300-tdep.c (_initialize_h8300_tdep): Update.
10041 * frv-tdep.c (_initialize_frv_tdep): Update.
10042 * cris-tdep.c (cris_delayed_get_disassembler): Update.
10043 (_initialize_cris_tdep): Update.
10044 * arch-utils.c (legacy_print_insn): Update.
10045 * alpha-tdep.c (_initialize_alpha_tdep): Update.
10046
d2630e69
AF
100472003-04-26 Adam Fedor <fedor@gnu.org>
10048
10049 * linespec.c (decode_objc): New function to decode ObjC calls
10050 (decode_line_1): Check for ObjC calls (using decode_objc)
10051 * Makefile (linespec.o): Update dependencies.
10052
3086aeae
DJ
100532003-04-26 Daniel Jacobowitz <drow@mvista.com>
10054
10055 * breakpoint.h (struct breakpoint_ops): New.
10056 (struct breakpoint): Add ops member.
10057
10058 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
10059 (mention): Use new breakpoint ops member.
10060 (set_raw_breakpoint): Initialize ops field to NULL.
10061 (print_exception_catchpoint, print_one_exception_catchpoint)
10062 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
10063 (gnu_v3_exception_catchpoint_ops): New.
10064 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
10065
1fbec6c3
AF
100662003-04-25 Adam Fedor <fedor@gnu.org>
10067
10068 * Makefile.in (COMMON_OBS): Add objc-lang.o
10069
0ef21242
AC
100702003-04-25 Andrew Cagney <cagney@redhat.com>
10071
10072 * d10v-tdep.c (print_insn): Delete function.
10073 (display_trace): Use TARGET_PRINT_INSN.
10074 (_initialize_d10v_tdep): Do not set tm_print_insn.
10075 (d10v_gdbarch_init): Set print_insn.
10076
f75493ed
AC
100772003-04-25 Andrew Cagney <cagney@redhat.com>
10078
10079 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10080 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10081 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10082 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10083 (nr_dmap_regs, a0_regnum): ... new functions.
10084 (d10v_print_registers_info): Use a0_regnum, use register_size.
10085 (d10v_register_byte): Delete function.
10086 (d10v_register_raw_size): Delete function.
10087 (d10v_register_type): Use a0_regnum.
10088 (d10v_print_registers_info): Use a0_regnum.
10089 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10090 (d10v_gdbarch_init): Do not set register_byte or
10091 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10092 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10093 extract_address.
10094 (trace_command): Use XCALLOC.
10095 (print_insn): Delete reference to tm_print_insn.
10096 (saved_regs_unwinder): Use store_unsigned_integer instead of
10097 store_address.
10098 * frame.h (FRAME_OBSTACK_CALLOC): Define
10099
2202b100
DC
101002003-04-25 David Carlton <carlton@bactrian.org>
10101
10102 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10103
4e45ca2e
AF
101042003-04-24 Adam Fedor <fedor@gnu.org>
10105
10106 * objc-lang.c: Include "valprint.h"
10107 * Makefile.in (objc-lang.o): Update dependencies.
10108
93de3e7f
AF
101092003-04-24 Adam Fedor <fedor@gnu.org>
10110
8ffd9b1b 10111 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
10112 architecture dependant compilation and mark as unimplemented
10113 (until they get put in the gdbarch vector).
10114
0f20eeea
DC
101152003-04-23 David Carlton <carlton@bactrian.org>
10116
10117 * cp-support.c (cp_find_first_component): Accept 'operator' in
10118 more locations.
10119
74cfe982
AC
101202003-04-23 Andrew Cagney <cagney@redhat.com>
10121
10122 * infcall.c (call_function_by_hand): Eliminate redundant
10123 indentation. Move "saved_async" and "old_cleanups" to where they
10124 are needed.
8ffd9b1b 10125
52557533
AC
101262003-04-23 Andrew Cagney <cagney@redhat.com>
10127
10128 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10129 and "buffer". Move the "name" code to where it is needed.
10130
158775de
AC
101312003-04-23 Andrew Cagney <cagney@redhat.com>
10132
10133 * infcall.c (call_function_by_hand): Move variables "start_sp",
10134 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10135 code to ON_STACK switch branch.
8ffd9b1b 10136
ebc7896c
AC
101372003-04-23 Andrew Cagney <cagney@redhat.com>
10138
10139 * infcall.c (call_function_by_hand): Make declaration of "i",
10140 "sal", "bpt" and "old_sp" more local to their use. Delete #if
10141 lint.
10142
d727590f
AC
101432003-04-23 Andrew Cagney <cagney@redhat.com>
10144
10145 * infcall.c (call_function_by_hand): Delete variable
10146 "n_method_args". Localize "param_type"'s declaration to the loop
10147 that it is used. Reinstate code assigning to said variable -
10148 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
10149 Rationalize code using "param_type".
10150
d585e13a
AC
101512003-04-22 Andrew Cagney <cagney@redhat.com>
10152
10153 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10154 compute the breakpoint address. Only call FIX_CALL_DUMMY when
10155 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
10156 to DEPRECATED_PUSH_RETURN_ADDRESS.
10157
051caad9
KB
101582003-04-22 Kevin Buettner <kevinb@redhat.com>
10159
10160 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10161 on the DWARF2 register number prior to fetching a register.
10162
77296879
JB
101632003-04-22 J. Brobecker <brobecker@gnat.com>
10164
10165 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10166 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 10167 this macro was always set to 0.
77296879
JB
10168 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10169 considering the fact that this macro was always set to 0.
10170 * hppa-tdep.h (hppa_store_return_value): Likewise.
10171 (hppa_extract_return_value): Likewise.
10172
4252f1df
JB
101732003-04-22 J. Brobecker <brobecker@gnat.com>
10174
10175 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10176 the hppa-pro target only.
10177
14604c6b
JB
101782003-04-21 J. Brobecker <brobecker@gnat.com>
10179
10180 Ongoing multi-arch conversion effort for HP/UX:
10181 * config/pa/tm-hppa.h: Move all macro that are no longer
10182 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10183 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10184
77eb01d1
JB
101852003-04-21 J. Brobecker <brobecker@gnat.com>
10186
10187 * config/pa/tm-hppa.h: Obsolete a section that was only used
10188 for hppa-pro.
10189
61995b3b
JB
101902003-04-21 J. Brobecker <brobecker@gnat.com>
10191
10192 Ongoing multi-arch conversion for HP/UX.
10193 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10194 if already defined (allows hppa64 to stay non-multiarched for now).
10195 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10196
4aa79dcc
AC
101972003-04-21 Andrew Cagney <cagney@redhat.com>
10198
10199 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10200
0f751ff2
AC
102012003-04-21 Andrew Cagney <cagney@redhat.com>
10202
10203 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10204 "i386_num_mmx_regs".
10205
04714b91
AC
102062003-04-21 Andrew Cagney <cagney@redhat.com>
10207
10208 * infcall.c: New file.
10209 * infcall.h: New file.
10210 * valarith.c: Include "infcall.h".
10211 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10212 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10213 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10214 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10215 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10216 (SFILES): Add "infcall.c"
10217 (COMMON_OBS): Add "infcall.o".
10218 (infcall.o): Specify dependencies.
10219 * value.h (call_function_by_hand): Delete declaration.
10220 * inferior.h (run_stack_dummy): Delete declaration.
10221 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10222 (run_stack_dummy): Move to "infcall.c", merged into
10223 call_function_by_hand.
10224 * valops.c (call_function_by_hand): Moved to "infcall.c".
10225 (find_function_addr, value_arg_coerce): Ditto.
10226 (unwindonsignal_p, coerce_float_to_double): Ditto.
10227 (_initialize_valops): Move "set/show coerce-float-to-double", and
10228 "set/show unwindonsignal" commands to "infcall.c".
10229 * v850-tdep.c, target.h: Update comments.
10230 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10231 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10232 (sh64_init_extra_frame_info): Update comments.
10233 * mn10300-tdep.c: Update comments.
10234 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10235 * config/sparc/tm-sparc.h: Update comments.
10236 * breakpoint.h: Update comments.
10237 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10238 * arm-tdep.c: Update comment.
10239
f9d3c2a8
MK
102402003-04-19 Mark Kettenis <kettenis@gnu.org>
10241
c40e1eab
MK
10242 * i386-tdep.c (i386_num_register_names): New variable.
10243 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10244 (MM0_REGNUM): Remove redundant parentheses in define.
10245 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10246 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10247 i386_mxcsr_regnum_p): Remove redundant parentheses.
10248 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 10249
94ea66b3
MK
10250 * i386-tdep.c (i386_extract_return_value,
10251 i386_store_return_value): Correct check for availability of
10252 floating-point registers.
10253
54299a1d
MK
10254 * i386-tdep.c (i386_frame_num_args): Remove function.
10255 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10256
c86c27af
MK
10257 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10258 mmx_regnum_to_fp_regnum. Adjust all callers.
10259
f9d3c2a8
MK
10260 * i386-tdep.c (i386_get_longjmp_target): Use
10261 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10262 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10263 extract_address.
10264
94ba74a9
MK
102652003-04-19 Mark Kettenis <kettenis@gnu.org>
10266
10267 * core-regset.c: Update comments to reflect reality. Re-order
10268 includes.
10269 (fetch_core_registers): Use switch instead of if. Remove
10270 redundant prototype.
10271
4074e13c
JB
102722003-04-18 Jim Blandy <jimb@redhat.com>
10273
10274 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 10275 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 10276
e3ab4aba
RH
102772003-04-17 Richard Henderson <rth@redhat.com>
10278
10279 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10280
627bf7c1
EZ
102812003-04-17 Michael Snyder <msnyder@redhat.com>
10282 Karen Bennet <bennet@redhat.com>
10283
10284 Committed by Elena Zannoni <ezannoni@redhat.com>
10285 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10286
514621a9
EZ
102872003-04-17 Elena Zannoni <ezannoni@redhat.com>
10288
10289 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10290 value if the return type is void.
514621a9 10291
b4acd559
JJ
102922003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10293
10294 * thread-db.c: Reindented.
8ffd9b1b 10295
530b167e 102962003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10297
10298 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10299 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10300 as types.
10301
0a48e7e8
MS
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
8ffd9b1b 10325
ab9fe00e
KB
103262003-04-16 Kevin Buettner <kevinb@redhat.com>
10327
610a3745 10328 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10329 the size of ``long double'' to 16, instead of 8.
10330
e64a344c
MK
103312003-04-16 Mark Kettenis <kettenis@gnu.org>
10332
10333 * i386-linux-nat.c: Add some whitespace to make things more
10334 readable.
10335 (fetch_register, store_register, fetch_inferior_registers,
10336 store_inferior_registers): Get rid of assignment in if-statement.
10337 (store_register): Fix typo in error message.
10338
25d41031
AC
103392003-04-16 Andrew Cagney <cagney@redhat.com>
10340
10341 * utils.c (xmmalloc): Always allocate something, matches
10342 libiberty/xmalloc's semantics.
10343 (xmrealloc, xmcalloc): Ditto.
10344
c50901fd
AC
103452003-04-16 Andrew Cagney <cagney@redhat.com>
10346
10347 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10348 update comments.
10349 (get_frame_type): Initialize unwind and type when needed.
10350 (get_frame_id, frame_register_unwind): Ditto.
10351
f81824a9
AC
103522003-04-16 Andrew Cagney <cagney@redhat.com>
10353
10354 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10355 obsolete.
10356 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10357 * sparcl-stub.c: Obsolete file.
10358 * config/sparc/tm-sparclet.h: Obsolete file.
10359 * sparclet-stub.c: Obsolete file.
10360 * sparclet-rom.c: Obsolete file.
10361 * sparcl-tdep.c: Obsolete file.
10362 * config/sparc/tm-sparclite.h: Obsolete file.
10363 * config/sparc/sparclite.mt: Obsolete file.
10364 * config/sparc/sparclet.mt: Obsolete file.
10365 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10366 sparc86x-*-* obsolete.
10367
9219021c
DC
103682003-04-15 David Carlton <carlton@math.stanford.edu>
10369
10370 * Makefile.in (SFILES): Add cp-namespace.c.
10371 (COMMON_OBS): Add cp-namespace.o.
10372 (block.o): Depend on gdb_obstack_h and cp_support_h.
10373 (buildsym.o): Depend on cp_support_h.
10374 (cp-namespace.o): New.
10375 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10376 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10377 (dwarf2read.o): Depend on cp_support_h.
10378 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10379 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10380 processing_current_namespace.
10381 (read_namespace): Update processing_current_namespace; check for
10382 anonymous namespaces.
10383 (dwarf2_name): New function.
10384 (dwarf2_extension): Ditto.
10385 * cp-support.h: Update copyright, contributors.
10386 Add inclusion guards.
10387 Add opaque declaration for structs obstack, block, symbol.
10388 (struct using_direct): New struct.
10389 Add declarations for cp_find_first_component,
10390 cp_entire_prefix_len, processing_has_namespace_info,
10391 processing_current_namespace, cp_is_anonymous,
10392 cp_add_using_directive, cp_initialize_namespace,
10393 cp_finalize_namespace, cp_set_block_scope,
10394 cp_scan_for_anonymous_namespaces.
10395 * cp-namespace.c: New file.
10396 * cp-support.c: Update copyright.
10397 Include ctype.h, gdb_assert.h, gdbcmd.h.
10398 New variable maint_cplus_cmd_list.
10399 (cp_find_first_component): New function.
10400 (cp_entire_prefix_len, maint_cplus_command)
10401 (first_component_command, _initialize_cp_support): Ditto.
10402 * buildsym.c: Include cp-support.h.
10403 New variable using_list.
10404 (add_symbol_to_list): Check for anonymous namespaces.
10405 (finish_block): Set block's scope.
10406 (start_symtab): Initialize C++ namespace support.
10407 (end_symtab): Finalize C++ namespace support.
10408 * block.h: Add opaque declarations for structs
10409 block_namespace_info, using_direct, and obstack.
10410 Add declarations for block_set_scope and block_set_using.
10411 (struct block): Add 'language_specific' member.
10412 (BLOCK_NAMESPACE): New macro.
10413 * block.c: Include gdb_obstack.h and cp-support.h.
10414 (struct block_namespace_info): New struct.
10415 (block_set_scope): New function.
10416 (block_set_using, block_initialize_namespace): Ditto.
10417
d5a921c9
KB
104182003-04-14 Kevin Buettner <kevinb@redhat.com>
10419
10420 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10421 (locate_base): Return early if there aren't any link map offsets.
10422 (svr4_solib_create_inferior_hook): Warn if shared library support
10423 is unavailable.
10424
d2a52b27
DC
104252003-04-14 David Carlton <carlton@math.stanford.edu>
10426
10427 * symtab.c (symbol_set_names): Add prefix when storing Java names
10428 in hash table. Fix for PR java/1039.
10429
980cae7a
DC
104302003-04-14 David Carlton <carlton@math.stanford.edu>
10431
10432 * symtab.c (symbol_set_names): Rename 'name' arg to
10433 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10434 * symtab.h: Change 'name' argument in declaration of
10435 symbol_set_names to 'linkage_name'.
10436 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10437
e227b13c
AC
104382003-04-14 Andrew Cagney <cagney@redhat.com>
10439
10440 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10441 return the fully sign-extended register value.
10442 (get_frame_pointer): Ditto.
10443 (mips_pop_frame): Initialize "proc_desc" after checking for a
10444 dummy frame.
10445
36712a20
AC
104462003-04-14 Andrew Cagney <cagney@redhat.com>
10447
10448 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10449 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10450 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10451 (mips_push_register): Delete function.
10452 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10453 PUSH_FP_REGNUM.
10454
44ea7b70
JB
104552003-04-14 Jim Blandy <jimb@redhat.com>
10456
10457 * symmisc.c: #include "gdb_regex.h".
10458 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10459 functions.
10460 * maint.c (maintenance_list_command): New function.
10461 (_initialize_maint_cmds): Register the above as commands.
10462 * symtab.h (maintenance_list_symtabs,
10463 maintenance_list_psymtabs): New declarations.
10464 * cli/cli-cmds.c (maintenancelistlist): New variable.
10465 (init_cmd_lists): Initialize it.
10466 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10467 * gdbcmd.h (maintenancelistlist): New declaration.
10468 * Makefile.in (symmisc.o): Update dependencies.
10469
2d0c7962
EZ
104702003-04-14 Elena Zannoni <ezannoni@redhat.com>
10471
10472 * s390-nat.c: Include asm/types.h for addr_t.
10473
1947a811
CV
104742003-04-14 Corinna Vinschen <vinschen@redhat.com>
10475
10476 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10477 actually incoming type.
10478
adb616d7
AC
104792003-04-13 Andrew Cagney <cagney@redhat.com>
10480
10481 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10482 get_next_frame and get_frame_saved_regs.
10483
9b5e151c
AC
104842003-04-13 Andrew Cagney <cagney@redhat.com>
10485
10486 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10487 of gdbarch_num_regs.
10488
ef6e7e13
AC
104892003-04-13 Andrew Cagney <cagney@redhat.com>
10490
10491 * frame.h: Mention what replaced what in "struct frame_info".
10492 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10493 deprecated_update_frame_base_hack and
10494 deprecated_update_frame_pc_hack.
10495 * hppa-tdep.c: Ditto.
10496
61fbb938
DJ
104972003-04-13 Daniel Jacobowitz <drow@mvista.com>
10498
10499 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10500 to read_reg and update its comment. Remove regnum member.
10501 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10502 Don't call read_reg when setting in_reg. Call read_reg to get
10503 the frame base if it's in a register. Return the register number
10504 on the stack instead of in the context. Remove extra arguments
10505 to read_reg.
10506 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10507 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10508 the register number on the expression stack.
10509 (needs_frame_read_reg): Remove extra arguments.
10510
0d53c4c4
DJ
105112003-04-13 Daniel Jacobowitz <drow@mvista.com>
10512
10513 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10514 made non-static.
10515 (execute_stack_op): All callers updated.
10516 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10517 * dwarf2loc.c (find_location_expression): New function.
10518 (dwarf_expr_frame_base): Call it.
10519 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10520 (dwarf2_tracepoint_var_ref): New function, broken out from
10521 locexpr_tracepoint_var_ref.
10522 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10523 Make static.
10524 (loclist_read_variable, loclist_read_needs_frame): New functions.
10525 (loclist_describe_location, loclist_tracepoint_var_ref): New
10526 functions.
10527 (dwarf2_loclist_funcs): New struct location_funcs.
10528 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10529 (struct dwarf2_locexpr_baton): Add comments.
10530 (dwarf2_loclist_funcs): New extern.
10531 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10532 base_address and base_known.
10533 (dwarf_loc_buffer): New variable.
10534 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10535 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10536 (dwarf2_has_info): Initialize dwarf_loc_offset.
10537 (dwarf2_build_psymtabs): Read in .debug_loc.
10538 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10539 DWARF_LOC_SIZE.
10540 (psymtab_to_symtab_1): Likewise. Move base address calculation
10541 here, from...
10542 (dwarf2_get_pc_bounds): ... here. Use the base address from
10543 cu_header.
10544 (dwarf2_symbol_mark_computed): Handle location lists.
10545
6aca59a3
DJ
105462003-04-13 Daniel Jacobowitz <drow@mvista.com>
10547
10548 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10549 if the linkage name demangled successfully.
10550
aca1fcd0
MK
105512003-04-13 Mark Kettenis <kettenis@gnu.org>
10552
97095916
MK
10553 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10554 disassmbly_flavour): Removed.
10555
aca1fcd0
MK
10556 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10557
562a961f
MK
105582003-04-13 Mark Kettenis <kettenis@gnu.org>
10559
10560 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10561
bd013d54
AC
105622003-04-12 Andrew Cagney <cagney@redhat.com>
10563
10564 * frame.h (struct frame_info): Move definition from here ...
10565 * frame.c (struct frame_info): ... to here.
10566
167ef8b1
AC
105672003-04-12 Andrew Cagney <cagney@redhat.com>
10568
10569 * gdbthread.h (save_infrun_state): Delete parameter
10570 "prev_func_start".
10571 (struct thread_info): Delete field "prev_func_start".
10572 (load_infrun_state): Ditto.
10573 * thread.c (load_infrun_state, save_infrun_state): Update.
10574 * infrun.c (prev_func_start): Delete variable.
10575 (context_switch, init_wait_for_inferior): Update.
10576 (stop_stepping, keep_going): Update.
10577
da3331ec
AC
105782003-04-12 Andrew Cagney <cagney@redhat.com>
10579
10580 * gdbarch.sh: Add missing opaque declarations.
10581 * gdbarch.h: Regnerate.
10582 * symtab.h: Add missing opaque declarations.
10583 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10584 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10585 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10586 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10587 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10588 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10589 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10590 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10591 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10592 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10593 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10594 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10595 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10596
18adea3f
AC
105972003-04-11 Andrew Cagney <cagney@redhat.com>
10598
10599 * frame.c (get_frame_id): Return this frame's "id".
10600 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10601 function start.
10602 (legacy_saved_regs_this_id): Replace function body with
10603 internal-error.
10604 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10605 FRAME_OBSTACK_ZALLOC.
10606 (create_new_frame): Mark the frame ID as valid.
10607
2252e863
AO
106082003-04-11 Alexandre Oliva <aoliva@redhat.com>
10609
10610 * Makefile.in (libbfd_h): Added missing setting.
10611 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10612 according to the selected ABI.
10613
a8245ab8
JJ
106142003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10615
10616 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10617
6913c89a
AC
106182003-04-11 Andrew Cagney <cagney@redhat.com>
10619
10620 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10621 SAVED_PC_AFTER_CALL.
10622 * gdbarch.h, gdbarch.c: Regenerate.
10623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10624 * x86-64-tdep.c (x86_64_init_abi): Update.
10625 * vax-tdep.c (vax_gdbarch_init): Update.
10626 * v850-tdep.c (v850_gdbarch_init): Update.
10627 * sparc-tdep.c (sparc_gdbarch_init): Update.
10628 * sh-tdep.c (sh_gdbarch_init): Update.
10629 * s390-tdep.c (s390_gdbarch_init): Update.
10630 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10631 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10632 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10633 * mips-tdep.c (mips_gdbarch_init): Update.
10634 * mcore-tdep.c (mcore_gdbarch_init): Update.
10635 * m68k-tdep.c (m68k_gdbarch_init): Update.
10636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10637 * ia64-tdep.c (ia64_gdbarch_init): Update.
10638 (ia64_saved_pc_after_call): Update declaration.
10639 * i386ly-tdep.c (i386lynx_init_abi): Update.
10640 * i386-tdep.c (i386_gdbarch_init): Update.
10641 * hppa-tdep.c (hppa_gdbarch_init): Update.
10642 * h8300-tdep.c (h8300_gdbarch_init): Update.
10643 * frv-tdep.c (frv_gdbarch_init): Update.
10644 * cris-tdep.c (cris_gdbarch_init): Update.
10645 * avr-tdep.c (avr_gdbarch_init): Update.
10646 * arm-tdep.c (arm_gdbarch_init): Update.
10647 * alpha-tdep.c (alpha_gdbarch_init): Update.
10648 * ns32knbsd-nat.c (frame_num_args): Update.
10649 * ns32k-tdep.c (umax_frame_num_args): Update.
10650 * mips-tdep.c (mips_init_frame_pc_first): Update.
10651 * infrun.c (step_over_function): Update.
10652 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10653 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10654 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10655 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10656 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10657 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10658 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10659 * arch-utils.c (init_frame_pc_default): Update.
10660 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10661 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10662 declaration.
8ffd9b1b 10663
38edeab8
AC
106642003-04-11 Andrew Cagney <cagney@redhat.com>
10665
10666 * i387-tdep.c: Update copyright.
10667 (i387_to_double): Delete function.
10668 (double_to_i387): Delete function.
10669
81f8a206
AC
106702003-04-10 Andrew Cagney <cagney@redhat.com>
10671
10672 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10673 frame's function's address. Simplify.
10674 (d10v_frame_unwind_cache): Check that the frame's function is
10675 non-zero.
10676
6e691f7a
JB
106772003-04-10 Jim Blandy <jimb@redhat.com>
10678
10679 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10680 call to set_gdbarch_deprecated_push_arguments.
10681
7f78e237
AC
106822003-04-10 Andrew Cagney <cagney@redhat.com>
10683
10684 * frame.c (fprint_frame_id): New function.
10685 (fprint_frame_type, fprint_frame): New function.
10686 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10687 (create_sentinel_frame, get_frame_id): Ditto.
10688 (frame_id_p, frame_id_eq): Ditto.
10689 (frame_id_inner, create_new_frame): Ditto.
10690 (legacy_get_prev_frame, get_prev_frame): Ditto.
10691 (deprecated_update_frame_pc_hack): Ditto.
10692 (frame_register_unwind): Ditto.
10693 (deprecated_update_frame_base_hack): Ditto.
10694
f870b49b
CV
106952003-04-10 Corinna Vinschen <vinschen@redhat.com>
10696
10697 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10698 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10699 frame_chain function.
10700 * Makefile.in: Add dependencies due to above change.
10701
7c86889b
CV
107022003-04-10 Corinna Vinschen <vinschen@redhat.com>
10703
10704 * blockframe.c (legacy_frame_chain_valid): Move call to
10705 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10706 inside_entry_file.
10707
d0a55772
AC
107082003-04-09 Andrew Cagney <cagney@redhat.com>
10709
10710 * frame.h (struct frame_id): Replace "pc" and "base" with
10711 "stack_addr" and "code_addr". Update comments.
10712 (frame_id_build): Update parameter names and comment.
10713 (struct frame_info): Replace "id_p" and "id" with "this_id".
10714 * dummy-frame.c (dummy_frame_this_id): Update.
10715 * breakpoint.c (print_one_breakpoint): Update.
10716 * frame.c (get_frame_id): Update.
10717 (get_frame_base, frame_id_build): Update.
10718 (create_sentinel_frame, legacy_get_prev_frame): Update.
10719 (deprecated_update_frame_base_hack): Update.
10720 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10721 (frame_id_inner): Ditto.
10722
ac16bf07
AC
107232003-04-09 Andrew Cagney <cagney@redhat.com>
10724
10725 * defs.h (gdb_print_host_address): Make "addr" parameter a
10726 pointer constant.
10727 * utils.c (gdb_print_host_address): Update.
10728
366cfc9e
KB
107292003-04-09 Kevin Buettner <kevinb@redhat.com>
10730
10731 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10732 register number for R0 is 0.
10733
cd983b5c
JB
107342003-04-09 J. Brobecker <brobecker@gnat.com>
10735
10736 * frame.h (struct gdbarch): Add opaque structure definition
10737 to avoid a compilation warning on LynxOS 4.0.
10738
d1340264
AC
107392003-04-09 Andrew Cagney <cagney@redhat.com>
10740
10741 * frame.h (struct frame_info): Delete field "pc". Replace
10742 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10743 structure.
10744 * frame.c (frame_pc_unwind): Update.
10745 (create_sentinel_frame): Do not set "pc".
10746 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10747 (get_frame_pc): Call frame_pc_unwind.
10748 (deprecated_update_frame_pc_hack): Update.
10749 (create_new_frame): Use "pc" not "->pc".
10750
90a6fffb
AC
107512003-04-09 Andrew Cagney <cagney@redhat.com>
10752
10753 * frame.c (get_frame_id): Eliminate code updating "frame".
10754 (legacy_get_prev_frame): Ditto.
10755 (get_frame_base): Return id.base directly.
10756 (deprecated_update_frame_base_hack): Update "id.base".
10757 * frame.h (struct frame_info): Delete field "frame".
10758
2fbce691
AC
107592003-04-09 Andrew Cagney <cagney@redhat.com>
10760
10761 * NEWS: Mention that the "Sequent family" is obsolete.
10762 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10763 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10764 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10765 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10766 * config/i386/tm-ptx4.h: Obsolete file.
10767 * config/i386/tm-ptx.h: Obsolete file.
10768 * symm-tdep.c: Obsolete file.
10769 * config/i386/symmetry.mt: Obsolete file.
10770 * config/i386/tm-symmetry.h: Obsolete file.
10771 * symm-nat.c: Obsolete file.
10772 * config/i386/nm-symmetry.h: Obsolete file.
10773 * config/i386/xm-symmetry.h: Obsolete file.
10774 * config/i386/symmetry.mh: Obsolete file.
10775 * config/i386/nm-ptx4.h: Obsolete file.
10776 * config/i386/ptx4.mh: Obsolete file.
10777 * config/i386/ptx.mt: Obsolete file.
10778 * config/i386/ptx.mh: Obsolete file.
10779 * config/i386/xm-ptx4.h: Obsolete file.
10780 * config/i386/xm-ptx.h: Obsolete file.
10781
78c43945
AC
107822003-04-09 Andrew Cagney <cagney@redhat.com>
10783
10784 Obsolete mips*-*-mach3*.
10785 * NEWS: Mention that mips*-*-mach3* is obsolete.
10786 * m3-nat.c: Obsolete file.
10787 * config/nm-m3.h: Obsolete file.
10788 * config/mips/tm-mipsm3.h: Obsolete file.
10789 * config/mips/mipsm3.mt: Obsolete file.
10790 * config/mips/mipsm3.mh: Obsolete file.
10791 * config/mips/xm-mipsm3.h: Obsolete file.
10792 * mipsm3-nat.c: Obsolete file.
10793 * configure.host: Obsolete mips-dec-mach3*.
10794 * configure.tgt: Obsolete mips*-*-mach3*.
10795
f1908289
AC
107962003-04-09 Andrew Cagney <cagney@redhat.com>
10797
10798 * doublest.h: Update copyright.
10799 (deprecated_store_floating, deprecated_extract_floating): Rename
10800 store_floating and extract_floating. Update comments.
10801 * doublest.c: Update copyright.
10802 (extract_floating_by_length): Replace extract_floating.
10803 (store_floating_by_length): Replace store_floating.
10804 (deprecated_extract_floating): New function.
10805 (deprecated_store_floating): New function.
10806 (extract_typed_floating): Call extract_floating_by_length.
10807 (store_typed_floating): Call store_floating_by_length.
10808 * x86-64-tdep.c (x86_64_store_return_value): Update.
10809 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10810 (sh64_extract_return_value): Update.
10811 (sh_sh4_register_convert_to_virtual): Update.
10812 (sh_sh64_register_convert_to_virtual): Update.
10813 (sh_sh4_register_convert_to_raw): Update.
10814 (sh_sh64_register_convert_to_raw): Update.
10815 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10816 (rs6000_register_convert_to_raw): Update.
10817 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10818 (ia64_register_convert_to_raw): Update.
10819 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10820 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10821 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10822 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10823 (alpha_register_convert_to_raw): Update.
10824
4443bd83
AC
108252003-04-08 Andrew Cagney <cagney@redhat.com>
10826
10827 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10828 * gdbarch.h, gdbarch.c: Re-generate.
10829 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10830 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10831 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10832 conditionally, use frame_pc_unwind as an alternative. Add
10833 comments.
10834 * arch-utils.c (init_frame_pc_default): Only call
10835 SAVED_PC_AFTER_CALL when available.
10836
c0236d92
EZ
108372003-04-08 Elena Zannoni <ezannoni@redhat.com>
10838
fbe586ae 10839 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10840 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10841 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10842 (start_remote): Ditto.
10843 (handle_inferior_event): Ditto.
10844 (save_inferior_status): Ditto.
10845 (restore_inferior_status): Ditto.
10846 * infcmd.c (attach_command): Ditto.
10847 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10848 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10849 * alpha-tdep.c (heuristic_proc_start): Ditto.
10850 * mips-tdep.c (heuristic_proc_start): Ditto.
10851 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10852 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10853 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10854 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10855 * remote-vx.c (vx_create_inferior): Ditto.
10856
108572003-04-08 Elena Zannoni <ezannoni@redhat.com>
10858
10859 * infrun.c (stop_soon_quietly): Make it an enum, to better
10860 override the default behavior of handle_inferior_event.
10861 (clear_proceed_status): Update uses of stop_soon_quietly to
10862 reflect that it is now an enum.
10863 (start_remote): Ditto.
10864 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10865 is set to handle the new GNU/Linux kernel behavior for
10866 attach/sigstop. Update uses of stop_soon_quietly.
10867 * inferior.h (enum stop_kind): New enum.
10868 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10869 Reset normal handle_inferior_event behavior, afterwards.
10870 * fork-child.c (startup_inferior): Update.
10871 * alpha-tdep.c (heuristic_proc_start): Update.
10872 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10873 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10874 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10875 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10876 * remote-vx.c (vx_create_inferior): Update.
10877 * mips-tdep.c (heuristic_proc_start): Update.
10878
1211bce3
EZ
108792003-04-07 Elena Zannoni <ezannoni@redhat.com>
10880
10881 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10882 be freed more than once, causing wild memory corruptions.
1211bce3 10883 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10884 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10885 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10886 with the "core" target.
1211bce3 10887
f0ef6b29
KB
108882003-04-07 Kevin Buettner <kevinb@redhat.com>
10889
10890 * mips-tdep.c (mips_print_fp_register): New function, created from
10891 do_fp_register_row(). Registers are now (also) printed as hex.
10892 Only one register is printed per row.
10893 (mips_print_register, do_fp_register_row): Print floating point
10894 registers with mips_print_fp_register().
10895
8cf71652
AC
108962003-04-06 Andrew Cagney <cagney@redhat.com>
10897
5e488a7b
AC
10898 * valprint.h (inspect_it): Add extern declaration.
10899 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10900 (selectors_info, classes_info): Ditto.
10901 (find_objc_msgcall): Fix indentation.
10902 (objc_printstr): Delete extern declarations.
10903
8cf71652
AC
10904 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10905
e6ba3bc9
AC
109062003-04-06 Andrew Cagney <cagney@redhat.com>
10907
10908 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10909 Update comment.
10910 * frame.c (legacy_saved_regs_this_id): Update.
10911 (legacy_get_prev_frame): Update.
10912 * xstormy16-tdep.c: Update comment.
10913 * sparc-tdep.c (sparc_frame_chain): Update comment.
10914 * blockframe.c (legacy_frame_chain_valid): Update.
10915
55e1d7e7
AC
109162003-04-06 Andrew Cagney <cagney@redhat.com>
10917
996179ee
AC
10918 * valprint.c (val_print_type_code_int): Delete #ifdef
10919 PRINT_TYPELESS_INTEGER code.
10920
55e1d7e7
AC
10921 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10922 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10923 multi-arch definition.
10924 * gdbarch.h: Re-generate.
10925
43bd9a9e
AC
109262003-04-05 Andrew Cagney <cagney@redhat.com>
10927
10928 Eliminate FRAME_FIND_SAVED_REGS.
10929 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10930 Change FSR parameter to a pointer.
10931 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10932 Assume FSR parameter is a pointer.
10933 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10934 Make fsr a pointer.
10935 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10936 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10937 saved_regs a pointer.
10938 (hppa_frame_saved_pc): Ditto.
10939 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10940 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10941 pointer.
10942 (restore_pc_queue): Make fsr a pointer.
10943 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10944 (hppa_frame_chain): Make saved_regs a pointer, call
10945 hppa_frame_init_saved_regs.
10946 * sparc-tdep.c: Include "gdb_assert.h".
10947 (sparc_frame_find_saved_regs): Replace internal_error with
10948 gdb_assert.
10949 * remote-vxsparc.c (vx_read_register): Delete reference to
10950 FRAME_FIND_SAVED_REGS.
10951 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10952 * gdbarch.h: Regenerate.
10953 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10954 (deprecated_get_frame_saved_regs): Delete declaration.
10955 (struct frame_saved_regs): Delete definition.
10956 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10957 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10958 (hppa_frame_find_saved_regs): Delete declaration.
10959 (FRAME_FIND_SAVED_REGS): Delete macro.
10960 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10961 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10962 FRAME_FIND_SAVED_REGS in comment.
10963
be41e9f4
AC
109642003-04-05 Andrew Cagney <cagney@redhat.com>
10965
10966 * frame.c (frame_func_unwind, get_frame_func): New functions.
10967 * frame.h (get_frame_func, frame_func_unwind): Declare.
10968 (struct frame_info): Add field "prev_func" for caching the
10969 previous frame's function address.
10970 * arm-tdep.c (arm_frameless_function_invocation): Combine
10971 get_pc_function_start and get_frame_pc into get_frame_func.
10972 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10973 (sh64_nofp_frame_init_saved_regs): Ditto.
10974 * s390-tdep.c (s390_function_start): Ditto.
10975 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10976 (rs6000_frameless_function_invocation): Ditto.
10977 (rs6000_frame_saved_pc): Ditto.
10978 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10979 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10980 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10981 (i386_frame_init_saved_regs): Ditto.
10982 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10983 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10984 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10985 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10986 * blockframe.c (frameless_look_for_prologue): Ditto.
10987
a01dd7cc
AC
109882003-04-05 Andrew Cagney <cagney@redhat.com>
10989
10990 * frame.c (legacy_get_prev_frame): Link prev to next at the
10991 function start. Update comments.
10992
5e5592e6
AC
109932003-04-05 Andrew Cagney <cagney@redhat.com>
10994
10995 * frame.c (get_frame_id): Update comment.
10996 (legacy_get_prev_frame): Update comment.
10997 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10998 * gdbarch.h: Regenerate.
10999 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
11000 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
11001
6fba5002
AC
110022003-04-05 Andrew Cagney <cagney@redhat.com>
11003
11004 * stack.c (print_frame_info): Use get_frame_pc.
11005
7df05f2b
AC
110062003-04-04 Andrew Cagney <cagney@redhat.com>
11007
11008 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
11009 the frame's type from the unwinder.
11010 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
11011 (create_new_frame, legacy_get_prev_frame): When the unwinder's
11012 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
11013 (get_frame_base_address): Use get_frame_type.
11014 (get_frame_locals_address, get_frame_args_address): Ditto.
11015 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
11016 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
11017 (struct frame_info): Add comment explaining why the frame contains
11018 a "type" field.
11019 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
11020 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
11021 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
11022 NORMAL_FRAME.
11023 * frame-unwind.h: Include "frame.h".
11024 (struct frame_unwind): Add "type" field.
11025 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 11026
11889732
AC
110272003-04-04 Andrew Cagney <cagney@redhat.com>
11028
11029 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
11030 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
11031 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
11032 get_frame_base.
11033 (d10v_unwind_dummy_id): Use frame_id_build.
11034 * frame.c (find_frame_sal): Use get_frame_pc.
11035 (create_new_frame): Use deprecated_update_frame_pc_hack and
11036 deprecated_update_frame_base_hack.
11037 (create_sentinel_frame): Add comment about ->pc going away.
11038 (get_prev_frame): Add comment about ->pc going away.
11039 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
11040 frame_id_build, deprecated_update_frame_pc_hack and
11041 deprecated_update_frame_base_hack.
11042 (select_frame): Use get_frame_pc.
11043 (legacy_saved_regs_this_id): Use frame_id_build.
11044
50c46a0d
EZ
110452003-04-04 Elena Zannoni <ezannoni@redhat.com>
11046
fbe586ae
RH
11047 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
11048 signed integer case.
11049 (classify_argument): Handle enumerations and references.
50c46a0d 11050
50bbdbd9
AC
110512003-04-04 Andrew Cagney <cagney@redhat.com>
11052
11053 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
11054 ID to NULL.
11055
36018d2e
AF
110562003-04-01 Adam Fedor <fedor@gnu.org>
11057
11058 * gdb/objc-lang.c (selectors_info): Replace calls to
11059 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
11060 SYMBOL_NATURAL_NAME.
11061 (classes_info, find_methods): Likewise.
11062
35cec841
KB
110632003-04-03 Kevin Buettner <kevinb@redhat.com>
11064
11065 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
11066 ``mach'' to the value determined by bfd_default_set_arch_mach().
11067
43136899
BR
110682003-04-02 Bob Rossi <bob_rossi@cox.net>
11069
11070 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
11071 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
11072 (mi-cmd-file.o): Update dependencies.
11073
040b99fd
KB
110742003-04-01 Kevin Buettner <kevinb@redhat.com>
11075
11076 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11077 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11078
9a3d7dfd
AF
110792003-04-01 Adam Fedor <fedor@gnu.org>
11080
11081 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11082 * language.h (struct language_defn): Add la_demangle.
11083 (language_demangle): Declare.
11084 * language.c (language_demangle): New function.
11085 (unk_lang_demangle): Likewise.
11086 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 11087 Add ukn_lang_demangle.
9a3d7dfd 11088 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 11089 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
11090 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11091 (cplus_language_defn): Add cplus_demangle for la_demangle element.
11092 * jv-lang.c (java_demangle): New function
11093 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
11094 * objc-lang.c (objc_demangle): Add options argument
11095 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
11096 * maint.c (maintenance_demangle): Replace switch with
11097 call to language_demangle.
11098 * utils.c (fprintf_symbol_filtered): Likewise.
11099
5e074003
AC
111002003-04-01 Andrew Cagney <cagney@redhat.com>
11101
11102 * printcmd.c (print_frame_nameless_args): Delete #ifdef
11103 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11104 PRINT_TYPELESS_INTEGER.
11105 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11106 PUSH_RETURN_ADDRESS.
11107
270cb5d6
AC
111082003-04-01 Andrew Cagney <cagney@redhat.com>
11109
11110 * Makefile.in (d10v-tdep.o): Update dependencies.
11111 * d10v-tdep.c: Include "frame-base.h".
11112 (d10v_frame_unwind): Make constant.
11113 (d10v_frame_base_address): New function.
11114 (d10v_frame_base): New variable.
11115 (d10v_gdbarch_init): Set frame_base default.
11116 (struct d10v_unwind_cache): Add the field "prev_sp". Update
11117 comment for base.
11118 (d10v_frame_unwind_cache): Set and use "prev_sp".
11119 (d10v_frame_this_id): Use the previous frame's inner most stack
11120 address and this frame's func address for the frame ID. Use
11121 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 11122
6bfb3e36
AC
111232003-04-01 Andrew Cagney <cagney@redhat.com>
11124
11125 * frame.h (get_frame_locals_address, get_frame_args_address):
11126 Refer to the base address, instead of the address of the first
11127 local or parameter.
8ffd9b1b 11128
da62e633
AC
111292003-04-01 Andrew Cagney <cagney@redhat.com>
11130
11131 Add frame debug info addresses:
11132 * frame-base.c: New file.
11133 * frame-base.h: New file.
11134 * frame.h (struct frame_base): Add opaque declaration.
11135 (get_frame_base): Update comment.
11136 (get_frame_base_address): Declare.
11137 (get_frame_locals_address): Declare.
11138 (get_frame_args_address): Declare.
11139 (struct frame_info): Add "base" and "base_cache". Update
11140 comments on the unwinder.
11141 * frame.c: Include "frame-base.h".
11142 (get_frame_locals_address): New function.
11143 (get_frame_base_address): New function.
11144 (get_frame_args_address): New function.
11145 * findvar.c (read_var_value): Use get_frame_locals_address and
11146 get_frame_args_address.
11147 * stack.c (frame_info): Use get_frame_locals_address and
11148 get_frame_args_address.
11149 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11150 moved to "frame-base.c".
11151 * printcmd.c (print_frame_nameless_args): Ditto.
11152 * symtab.h (address_class): Update comments.
11153 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11154 get_frame_base_address.
11155 * dwarf2expr.c (execute_stack_op): Ditto.
11156 * Makefile.in (frame_base_h): Define.
11157 (frame.o): Update dependencies.
11158 (frame-base.o): Add dependencies.
11159 (SFILES): Add frame-base.c.
11160 (COMMON_OBS): Add frame-base.o.
11161
3d30e9c2
AC
111622003-04-01 Andrew Cagney <cagney@redhat.com>
11163
11164 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11165 CALL_DUMMY_LENGTH): Ditto.
11166 * gdbarch.c: Re-generate.
11167 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11168 (CALL_DUMMY_LENGTH): Delete macro.
11169 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11170 * arm-tdep.c (arm_gdbarch_init): Ditto.
11171 * avr-tdep.c (avr_gdbarch_init): Ditto.
11172 * cris-tdep.c (cris_gdbarch_init): Ditto.
11173 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11174 * frv-tdep.c (frv_gdbarch_init): Ditto.
11175 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11176 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11177 * i386-tdep.c (i386_gdbarch_init): Ditto.
11178 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11180 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11181 * mips-tdep.c (mips_gdbarch_init): Ditto.
11182 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11183 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11184 * s390-tdep.c (s390_gdbarch_init): Ditto.
11185 * sh-tdep.c (sh_gdbarch_init): Ditto.
11186 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11187 * v850-tdep.c (v850_gdbarch_init): Ditto.
11188 * vax-tdep.c (vax_gdbarch_init): Ditto.
11189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11190
ce0c7262
CV
111912003-04-01 Corinna Vinschen <vinschen@redhat.com>
11192
11193 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11194
73dd234f
AC
111952003-04-01 Andrew Cagney <cagney@redhat.com>
11196
11197 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11198 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11199 * gdbarch.h, gdbarch.c: Re-generate.
11200 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11201 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11202 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11203 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11204 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11205 * infcmd.c (run_stack_dummy): Simplify assuming
11206 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11207 * infrun.c (handle_inferior_event): Ditto.
11208 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11209 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11210 * arm-tdep.c (arm_gdbarch_init): Ditto.
11211 * avr-tdep.c (avr_gdbarch_init): Ditto.
11212 * cris-tdep.c (cris_gdbarch_init): Ditto.
11213 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11214 * frv-tdep.c (frv_gdbarch_init): Ditto.
11215 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11216 * i386-tdep.c (i386_gdbarch_init): Ditto.
11217 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11219 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11220 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11221 * mips-tdep.c (mips_gdbarch_init): Ditto.
11222 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11223 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11224 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11225 * s390-tdep.c (s390_gdbarch_init): Ditto.
11226 * sh-tdep.c (sh_gdbarch_init): Ditto.
11227 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11228 * v850-tdep.c (v850_gdbarch_init): Ditto.
11229 * vax-tdep.c (vax_gdbarch_init): Ditto.
11230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11231
97606a13
DJ
112322003-04-01 Daniel Jacobowitz <drow@mvista.com>
11233
11234 * symfile.c (symfile_relocate_debug_section): Update call to
11235 bfd_simple_get_relocated_section_contents.
11236
e8ab51f7
AC
112372003-03-31 Andrew Cagney <cagney@redhat.com>
11238
11239 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11240 * gdbarch.h, gdbarch.c: Regenerate.
11241 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11242 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11243 available.
11244 * frame.h (generic_fix_call_dummy): Delete declaration.
11245 * dummy-frame.h: Update comment.
11246 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11248 fix_call_dummy.
11249 * sh-tdep.c (sh_gdbarch_init): Ditto.
11250 * s390-tdep.c (s390_gdbarch_init): Ditto.
11251 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11252 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11254 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11255 * i386-tdep.c (i386_gdbarch_init): Ditto.
11256 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11257 * frv-tdep.c (frv_gdbarch_init): Ditto.
11258 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11259 * cris-tdep.c (cris_gdbarch_init): Ditto.
11260 * avr-tdep.c (avr_gdbarch_init): Ditto.
11261 * arm-tdep.c (arm_gdbarch_init): Ditto.
11262
018d1b48
JB
112632003-03-31 J. Brobecker <brobecker@gnat.com>
11264
11265 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11266 (INIT_FRAME_AP): Likewise.
11267 (EXTRA_FRAME_INFO): Likewise.
11268
e9a2674e
AC
112692003-03-31 Andrew Cagney <cagney@redhat.com>
11270
11271 * gdbarch.sh: Include "symfile.h".
11272 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11273 * gdbarch.h, gdbarch.c: Re-generate.
11274 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11276 call_dummy_address, the default is at entry_point_address.
11277 * v850-tdep.c (v850_gdbarch_init): Ditto.
11278 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11279 * sh-tdep.c (sh_gdbarch_init): Ditto.
11280 * s390-tdep.c (s390_gdbarch_init): Ditto.
11281 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11282 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11283 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11284 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11285 * i386-tdep.c (i386_gdbarch_init): Ditto.
11286 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11287 * frv-tdep.c (frv_gdbarch_init): Ditto.
11288 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11289 * cris-tdep.c (cris_gdbarch_init): Ditto.
11290 * arm-tdep.c (arm_gdbarch_init): Ditto.
11291
e8a8712a
AC
112922003-03-31 Andrew Cagney <cagney@redhat.com>
11293
11294 * gdbarch.sh (CALL_DUMMY_P): Delete.
11295 * gdbarch.h, gdbarch.c: Re-generate.
11296 * inferior.h (CALL_DUMMY_P): Delete macro.
11297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11298 * vax-tdep.c (vax_gdbarch_init): Update.
11299 * v850-tdep.c (v850_gdbarch_init): Update.
11300 * sparc-tdep.c (sparc_gdbarch_init): Update.
11301 * sh-tdep.c (sh_gdbarch_init): Update.
11302 * s390-tdep.c (s390_gdbarch_init): Update.
11303 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11304 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11305 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11306 * mips-tdep.c (mips_gdbarch_init): Update.
11307 * mcore-tdep.c (mcore_gdbarch_init): Update.
11308 * m68k-tdep.c (m68k_gdbarch_init): Update.
11309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11310 * ia64-tdep.c (ia64_gdbarch_init): Update.
11311 * i386-tdep.c (i386_gdbarch_init): Update.
11312 * h8300-tdep.c (h8300_gdbarch_init): Update.
11313 * frv-tdep.c (frv_gdbarch_init): Update.
11314 * d10v-tdep.c (d10v_gdbarch_init): Update.
11315 * cris-tdep.c (cris_gdbarch_init): Update.
11316 * breakpoint.c (deprecated_frame_in_dummy): Update.
11317 * avr-tdep.c (avr_gdbarch_init): Update.
11318 * alpha-tdep.c (alpha_gdbarch_init): Update.
11319 * arm-tdep.c (arm_gdbarch_init): Update.
11320 * dummy-frame.c (dummy_frame_this_id): Update comments.
11321 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11322 * frame.c (legacy_get_prev_frame): Ditto.
11323 * valops.c (call_function_by_hand): Delete function.
11324 (hand_function_call): Rename to call_function_by_hand
11325
ed234cf8
AC
113262003-03-30 Andrew Cagney <cagney@redhat.com>
11327
11328 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11329 * value.h (struct value): Update comment.
ed234cf8 11330
06c77151
AC
113312003-03-30 Andrew Cagney <cagney@redhat.com>
11332
6c2b5168
AC
11333 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11334 D10V_FP_REGNUM.
11335 (d10v_gdbarch_init): Do not set fp_regnum.
11336
06c77151
AC
11337 * frame.c (get_frame_base): Force ID initialization.
11338 (get_prev_frame): Move computation of the frame ID from here ...
11339 (get_frame_id): ... to here.
11340 (legacy_get_prev_frame): Mark the frame ID as valid.
11341 * frame.h (struct frame_info): Add field "id_p".
11342
97a1a11c
MK
113432003-03-30 Mark Kettenis <kettenis@gnu.org>
11344
11345 * i386-tdep.c (i386_store_struct_return): Removed.
11346 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11347
6c0e89ed
AC
113482003-03-30 Andrew Cagney <cagney@redhat.com>
11349
11350 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11351 * gdbarch.h, gdbarch.c: Regenerate.
11352 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11354 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11355 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11356 * i386-tdep.c (i386_gdbarch_init): Ditto.
11357 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11358 * cris-tdep.c (cris_gdbarch_init): Ditto.
11359 * vax-tdep.c (vax_gdbarch_init): Ditto.
11360 * s390-tdep.c (s390_gdbarch_init): Ditto.
11361 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11362 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11363 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11364 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11365 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11366 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11367 * sparc-tdep.c (sparc_gdbarch_init): Update.
11368 * sh-tdep.c (sh_gdbarch_init): Update.
11369 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11370 * mips-tdep.c (mips_gdbarch_init): Update.
11371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11372 * ia64-tdep.c (ia64_gdbarch_init): Update.
11373 * frv-tdep.c (frv_gdbarch_init): Update.
11374 * avr-tdep.c (avr_gdbarch_init): Update.
11375 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11376 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11377 instead of when push_dummy_call is not available.
8ffd9b1b 11378
f7dd6af2
AC
113792003-03-30 Andrew Cagney <cagney@redhat.com>
11380
11381 * infttrace.c: Include "gdbthread.h".
11382 (parent_attach_all): Fix function signature.
11383 (call_ptrace): Update call.
11384 * Makefile.in (infttrace.o): Update dependencies.
11385
28f617b3
AC
113862003-03-30 Andrew Cagney <cagney@redhat.com>
11387
11388 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11389 PUSH_RETURN_ADDRESS.
11390 * gdbarch.h, gdbarch.c: Regenerate.
11391 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11392 * x86-64-tdep.c (x86_64_init_abi): Update.
11393 * v850-tdep.c (v850_gdbarch_init): Update.
11394 * sparc-tdep.c (sparc_gdbarch_init): Update.
11395 * sh-tdep.c (sh_gdbarch_init): Update.
11396 * s390-tdep.c (s390_gdbarch_init): Update.
11397 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11398 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11399 * mips-tdep.c (mips_gdbarch_init): Update.
11400 * mcore-tdep.c (mcore_gdbarch_init): Update.
11401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11402 * ia64-tdep.c (ia64_gdbarch_init): Update.
11403 * i386-tdep.c (i386_gdbarch_init): Update.
11404 * h8300-tdep.c (h8300_gdbarch_init): Update.
11405 * frv-tdep.c (frv_gdbarch_init): Update.
11406 * cris-tdep.c (cris_gdbarch_init): Update.
11407 * avr-tdep.c (avr_gdbarch_init): Update.
11408 * arm-tdep.c (arm_gdbarch_init): Update.
11409 * valops.c (hand_function_call): Update.
11410
4d628cd7
AC
114112003-03-29 Andrew Cagney <cagney@redhat.com>
11412
11413 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11414 sizeof_call_dummy_words.
11415 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11416 define.
11417 * gdbarch.h: Regenerate.
8ffd9b1b 11418
65e82032
AC
114192003-03-29 Andrew Cagney <cagney@redhat.com>
11420
11421 * infttrace.h: New file.
11422 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11423 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11424 (hpread_read_doc_function_type): Detect an initialized type1.
11425 (hpread_quick_traverse): Initialize mod_name_string.
11426 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11427 (som_solib_get_solib_by_pc): Declare.
11428 (so_lib_thread_start_addr): Declare.
11429 (no_shared_libraries): Declare.
11430 * somread.c (init_import_symbols): Make static. Add forward
11431 declaration.
11432 * config/pa/nm-hppah.h: Include "infttrace.h" for
11433 parent_attach_all.
11434 (hppa_insert_hw_watchpoint): Declare.
11435 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11436 * hppah-nat.c: Include "gdb_string.h".
11437 (parent_attach_all): Delete extern declaration, moved to
11438 "infttrace.h".
11439 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11440 int.
11441 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11442 * Makefile.in (infttrace_h): Define.
11443 (hpread.o): Update dependencies.
11444 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11445 * hppa-hpux-tdep.c: Include "gdb_string.h".
11446 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11447 * infrun.c (handle_inferior_event): Always initialize
11448 stepped_after_stopped_by_watchpoint. Add default and remove
11449 fallthrough in switch statement.
11450 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11451 parameter to int.
11452 (hppa_remove_hw_watchpoint): Ditto.
11453
2c3bbe77
AC
114542003-03-29 Andrew Cagney <cagney@redhat.com>
11455
11456 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11457 offset.
11458
2dd604e7
RE
114592003-03-29 Richard Earnshaw <rearnsha@arm.com>
11460
11461 * arm-tdep.c (arm_push_arguments): Delete.
11462 (struct stack_item): New type.
11463 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11464 (arm_store_struct_return): Delte.
11465 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11466 arm_push_arguments or arm_store_struct_return.
11467
e8933a55
AC
114682003-03-28 Andrew Cagney <cagney@redhat.com>
11469
11470 * Makefile.in (d10v-tdep.o): Update dependencies.
11471 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11472 * d10v-tdep.c: Include "remote.h".
11473 (target_resume_hook): Delete extern declaration.
11474 (target_wait_loop_hook): Ditto.
11475 (tdisassemble_command): Eliminate assignment in "if" conditional.
11476 (d10v_ts2_register_sim_regno): Eliminate call to
11477 legacy_register_sim_regno.
11478 (d10v_ts3_register_sim_regno): Ditto.
11479
6949171e
JJ
114802003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11481
11482 * thread.c: Reindented.
11483 * lin-lwp.c: Ditto.
11484 * linux-proc.c: Ditto.
11485
98c7071f
BR
114862003-03-28 Bob Rossi <bob_rossi@cox.net>
11487
fbe586ae 11488 * MAINTAINERS (write after approval): Add myself.
98c7071f 11489
5edc9ca6
TR
114902003-03-27 Theodore A. Roth <troth@openavr.org>
11491
11492 * objc-exp.y: Add missing semi-colons.
11493
378bfd1b
AC
114942003-03-27 Andrew Cagney <cagney@redhat.com>
11495
11496 * regcache.c (write_sp): Delete function and references.
11497 * inferior.h (write_sp): Delete declaration.
11498 * valops.c (hand_function_call): Replace write_sp with
11499 TARGET_WRITE_SP.
11500 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11501 (sparc_pop_frame): Ditto.
8ffd9b1b 11502
56056df7
AC
115032003-03-27 Andrew Cagney <cagney@redhat.com>
11504
11505 * NEWS: Mention removal of support for hppa*-*-bsd* and
11506 hppa*-*-osf* natives, and hppa*-*-pro* target.
11507 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11508 * config/pa/xm-pa.h: Obsolete file.
11509 * config/pa/xm-hppab.h: Obsolete file.
11510 * config/pa/nm-hppab.h: Obsolete file.
11511 * config/pa/tm-hppab.h: Obsolete file.
11512 * config/pa/tm-hppao.h: Obsolete file.
11513 * config/pa/nm-hppao.h: Obsolete file.
11514 * config/pa/tm-pro.h: Obsolete file.
11515 * config/pa/hppaosf.mt: Obsolete file.
11516 * config/pa/hppaosf.mh: Obsolete file.
11517 * config/pa/hppapro.mt: Obsolete file.
11518 * config/pa/hppabsd.mt: Obsolete file.
11519 * config/pa/hppabsd.mh: Obsolete file.
11520 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11521 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11522 hppa*-*-osf*.
11523
5873a88d
AC
115242003-03-27 Andrew Cagney <cagney@redhat.com>
11525
11526 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11527 push_arguments. Don't set push_return_address or write_sp.
11528 (d10v_push_dummy_call): Replace d10v_push_arguments.
11529 (d10v_push_return_address, d10v_write_sp): Delete function,
11530 handled by push_dummy_call.
11531
b81774d8
AC
115322003-03-26 Andrew Cagney <cagney@redhat.com>
11533
11534 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11535 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11536 regcache and dummy_addr parameters.
11537 * gdbarch.h, gdbarch.c: Re-generate.
11538 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11539 available; assume it will handle stack alignment and return
11540 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11541 legacy_push_arguments.
11542 (legacy_push_arguments): Rename default_push_arguments.
11543 * value.h (legacy_push_arguments): Rename default_push_arguments.
11544 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11545 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11546 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11547 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11548 * config/i386/tm-symmetry.h: Update.
11549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11550 * x86-64-tdep.c (x86_64_init_abi): Update.
11551 * v850-tdep.c (v850_gdbarch_init): Update.
11552 * sparc-tdep.c (sparc_gdbarch_init): Update.
11553 * sh-tdep.c (sh_gdbarch_init): Update.
11554 * s390-tdep.c (s390_gdbarch_init): Update.
11555 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11556 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11557 * mips-tdep.c (mips_gdbarch_init): Update.
11558 * mcore-tdep.c (mcore_gdbarch_init): Update.
11559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11560 * ia64-tdep.c (ia64_gdbarch_init): Update.
11561 * i386-tdep.c (i386_gdbarch_init): Update.
11562 * hppa-tdep.c (hppa_gdbarch_init): Update.
11563 * h8300-tdep.c (h8300_gdbarch_init): Update.
11564 * frv-tdep.c (frv_gdbarch_init): Update.
11565 * d10v-tdep.c (d10v_gdbarch_init): Update.
11566 * cris-tdep.c (cris_gdbarch_init): Update.
11567 * avr-tdep.c (avr_gdbarch_init): Update.
11568 * arm-tdep.c (arm_gdbarch_init): Update.
11569 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11570 * alpha-tdep.c (alpha_gdbarch_init): Update.
11571
f541410f
DJ
115722003-03-26 Daniel Jacobowitz <drow@mvista.com>
11573
11574 * signals/signals.c (do_target_signal_to_host): Correct realtime
11575 signal range test.
11576
69f567ae
DJ
115772003-03-26 Daniel Jacobowitz <drow@mvista.com>
11578
11579 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11580 (struct sal_chain, map_catch_names): Remove.
11581 (catch_exception_command_1): Don't call
11582 handle_gnu_4_16_catch_command.
11583
d5d14a5a
DJ
115842003-03-26 Daniel Jacobowitz <drow@mvista.com>
11585
11586 From Mark Dettinger <dettinge@de.ibm.com>:
11587 * dwarf2cfi.c (read_2u): Increment pointer by two.
11588
bdd73e22
DJ
115892003-03-26 Daniel Jacobowitz <drow@mvista.com>
11590
11591 * signals/signals.c: Fix typos in last change.
11592
960cb555
DJ
115932003-03-26 Daniel Jacobowitz <drow@mvista.com>
11594
11595 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11596 not already defined. Use __SIGRTMIN if available.
11597 (target_signal_from_host): Remove SIGRTMIN block.
11598 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11599 the signal is within the realtime range.
11600
f636b87d
AF
116012003-03-25 Adam Fedor <fedor@gnu.org>
11602
11603 * Makefile.in (infrun.o): Add $(language_h)
11604 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11605 for language specific trampolines.
11606 * language.h (struct language_defn): Add skip_trampoline.
11607 (skip_language_trampoline): Declare.
11608 * language.c (unk_lang_trampoline, skip_language_trampoline):
11609 New functions.
11610 (unknown_language_defn, auto_language_defn, local_language_defn):
11611 Add ukn_lang_trampoline.
11612 * ada-lang.c (ada_language_defn): Add NULL for language
11613 specific skip_trampoline.
11614 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11615 scm-lang.c: Likewise.
11616 * objc-lang.c (objc_skip_trampoline): New function.
11617 (objc_language_defn): Add objc_skip_trampoline.
11618
28f617b3 116192003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11620
11621 * frame.c (get_prev_frame): Delay validating a frame's ID -
11622 non-NULL, didn't go backwards - until an attempt to unwind it to
11623 the previous frame.
11624
f933a9c5
AC
116252003-03-25 Andrew Cagney <cagney@redhat.com>
11626
11627 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11628 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11629 * gdbarch.h, gdbarch.c: Re-generate.
11630 * config/sparc/tm-sparc.h
11631 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11632 * sparc-tdep.c (sparc_gdbarch_init): Set
11633 deprecated_extra_stack_alignment_needed.
11634 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11636 extra_stack_alignment_needed.
11637 * v850-tdep.c (v850_gdbarch_init): Ditto.
11638 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11639 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11640 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11641 * cris-tdep.c (cris_gdbarch_init): Ditto.
11642 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11644
4183d812
AC
116452003-03-25 Andrew Cagney <cagney@redhat.com>
11646
11647 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11648 STORE_STRUCT_RETURN.
11649 * gdbarch.h, gdbarch.c: Regenerate.
11650 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11651 (d10v_push_arguments): Set the struct return register.
11652 (d10v_gdbarch_init): Update.
11653 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11654 * x86-64-tdep.c (x86_64_init_abi): Update.
11655 * vax-tdep.c (vax_gdbarch_init): Update.
11656 * v850-tdep.c (v850_gdbarch_init): Update.
11657 * sparc-tdep.c (sparc_gdbarch_init): Update.
11658 * sh-tdep.c (sh_gdbarch_init): Update.
11659 * s390-tdep.c (s390_gdbarch_init): Update.
11660 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11661 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11662 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11663 * mips-tdep.c (mips_gdbarch_init): Update.
11664 * mcore-tdep.c (mcore_gdbarch_init): Update.
11665 * m68k-tdep.c (m68k_gdbarch_init): Update.
11666 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11667 * ia64-tdep.c (ia64_gdbarch_init): Update.
11668 * i386-tdep.c (i386_gdbarch_init): Update.
11669 * hppa-tdep.c (hppa_gdbarch_init): Update.
11670 * h8300-tdep.c (h8300_gdbarch_init): Update.
11671 * frv-tdep.c (frv_gdbarch_init): Update.
11672 * cris-tdep.c (cris_gdbarch_init): Update.
11673 * avr-tdep.c (avr_gdbarch_init): Update.
11674 * arm-tdep.c (arm_gdbarch_init): Update.
11675 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11676
1bf6d5cc
AC
116772003-03-25 Andrew Cagney <cagney@redhat.com>
11678
11679 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11680 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11681 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11682 * gdbarch.h, gdbarch.c: Regenerate.
11683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11684 call_dummy_stack_adjust_p.
11685 * vax-tdep.c (vax_gdbarch_init): Ditto.
11686 * v850-tdep.c (v850_gdbarch_init): Ditto.
11687 * sh-tdep.c (sh_gdbarch_init): Ditto.
11688 * s390-tdep.c (s390_gdbarch_init): Ditto.
11689 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11690 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11691 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11692 * mips-tdep.c (mips_gdbarch_init): Ditto.
11693 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11694 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11696 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11697 * i386-tdep.c (i386_gdbarch_init): Ditto.
11698 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11699 * frv-tdep.c (frv_gdbarch_init): Ditto.
11700 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11701 * cris-tdep.c (cris_gdbarch_init): Ditto.
11702 * avr-tdep.c (avr_gdbarch_init): Ditto.
11703 * arm-tdep.c (arm_gdbarch_init): Ditto.
11704 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11705 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11706 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11707 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11708 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11709 call_dummy_stack_adjust_p.
11710 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11711 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11712 * sparc-tdep.c (sparc32_push_arguments): Update.
11713 * valops.c (hand_function_call): Update.
11714
71c08af0
CV
117152003-03-25 Corinna Vinschen <vinschen@redhat.com>
11716
11717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11718 set_gdbarch_char_signed.
11719
30757f90
RE
117202003-03-25 Richard Earnshaw <rearnsha@arm.com>
11721
11722 PR cli/548
11723 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11724
03d48a7d
RE
117252003-03-25 Richard Earnshaw <rearnsha@arm.com>
11726
11727 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11728 (_initialize_arm_tdep): Don't set tm_print_insn.
11729
2cf6873c
AF
117302003-03-24 Adam Fedor <fedor@gnu.org>
11731
11732 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11733 * objc-lang.h: Add multiple inclusion protection.
11734 (start_msglist, add_msglist, end_msglist): Additional declarations.
11735
17c0759e
RE
117362003-03-24 Richard Earnshaw <rearnsha@arm.com>
11737
11738 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11739 value was renamed to ARM_FLOAT_SOFT_FPA.
11740
618ce49f
AC
117412003-03-23 Andrew Cagney <cagney@redhat.com>
11742
11743 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11744 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11745 * gdbarch.h, gdbarch.c: Regenerate.
11746 * valops.c (hand_function_call): Update.
11747 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11748 * frame.c (legacy_saved_regs_this_id): Update.
11749 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11750 * dummy-frame.h: Update.
11751 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11752 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11753 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11754 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11755 * config/m68k/tm-sun3.h: Update.
11756 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11758 * x86-64-tdep.c (x86_64_init_abi): Update.
11759 * vax-tdep.c (vax_gdbarch_init): Update.
11760 * v850-tdep.c (v850_gdbarch_init): Update.
11761 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11762 * sh-tdep.c (sh_gdbarch_init): Update.
11763 * s390-tdep.c (s390_gdbarch_init): Update.
11764 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11765 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11766 (frame_get_saved_regs): Update.
11767 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11768 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11769 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11770 * mips-tdep.c (mips_gdbarch_init): Update.
11771 * mcore-tdep.c (mcore_gdbarch_init): Update.
11772 * m68k-tdep.c (m68k_gdbarch_init): Update.
11773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11774 * ia64-tdep.c (ia64_gdbarch_init): Update.
11775 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11776 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11777 (i386_interix_back_one_frame): Update.
11778 * hppa-tdep.c (hppa_gdbarch_init): Update.
11779 (hppa_init_extra_frame_info): Update.
11780 * h8300-tdep.c (h8300_gdbarch_init): Update.
11781 * frv-tdep.c (frv_gdbarch_init): Update.
11782 * cris-tdep.c (cris_gdbarch_init): Update.
11783 * avr-tdep.c (avr_gdbarch_init): Update.
11784 * arm-tdep.c (arm_gdbarch_init): Update.
11785 * alpha-tdep.c (alpha_gdbarch_init): Update.
11786
fd50bc42
RE
117872003-03-22 Richard Earnshaw <rearnsha@arm.com>
11788
11789 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11790 (arm_get_fp_model): Declare.
11791 * arm-tdep.c (fp_model_strings): New string array.
11792 (arm_fp_model, current_fp_model): New variables.
11793 (arm_get_fp_model): New function.
11794 (arm_set_fp): New function.
11795 (set_fp_model_sfunc): New function.
11796 (show_fp_model): New function.
11797 (_initialize_arm_tdep): Add new command to set/show the FPU.
11798 (arm_extract_return_value): Use arm_get_fp_model.
11799 (arm_store_return_value): Likewise.
11800 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11801 to initialize the floating-point data types.
11802 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11803 model is FPA.
11804
26304000
RE
118052003-03-22 Richard Earnshaw <rearnsha@arm.com>
11806
11807 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11808 the current setting of each value.
11809 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11810 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11811 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11812 commands and add new version as subcommands of "set/show arm".
11813
afd7eef0
RE
118142003-03-22 Richard Earnshaw <rearnsha@arm.com>
11815
11816 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11817 (set_arm_command, show_arm_command): New functions.
11818 (_initialize_arm_tdep): Add them.
11819 (num_disassembly_options): Renamed from num_flavor_options.
11820 (valid_disassembly_styles): Renamed from valid_flavors.
11821 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11822 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11823 set_disassembly_flavor_sfunc.
11824 (set_disassembly_style): Renamed from set_disassembly_flavor.
11825 (arm_othernames): Updated.
11826 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11827 command. Add "set/show arm disassembly" commands. Deprecate
11828 "othernames" command.
11829
299a7944
RE
118302003-03-22 Richard Earnshaw <rearnsha@arm.com>
11831
11832 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11833 (arm-tdep.o): Depend on elf_arm_h.
11834
c1dac9e6
RE
118352003-03-22 Richard Earnshaw <rearnsha@arm.com>
11836
11837 * Makefile.in (coff_internal_h): Define.
11838 (arm-tdep.o): Update dependencies.
11839
2702d96c
RE
118402003-03-22 Richard Earnshaw <rearnsha@arm.com>
11841
11842 * arm-tdep.c (prologue_cache): Delete.
11843 (check_prologue_cache, save_prologue_cache): Delete.
11844 (arm_scan_prologue): Don't check or update the prologue_cache.
11845 (arm_gdb_arch_init): Don't initialize it.
11846 (_initialize_arm_tdep): Likewise.
11847
27d5d74b
SC
118482003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11849
11850 * MAINTAINERS (tui): Maintainer of tui code.
11851
1762d96d
CV
118522003-03-21 Corinna Vinschen <vinschen@redhat.com>
11853
11854 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11855 (i386-cygwin-tdep.o): Add dependencies.
11856 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11857 * i386-cygwin-tdep.c: New file.
11858 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11859 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11860
4c2e2391
AC
118612003-03-20 Andrew Cagney <cagney@redhat.com>
11862
f20d38b7
AC
11863 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11864 (handle_inferior_event): Remove code calling
11865 DYNAMIC_TRAMPOLINE_NEXTPC.
11866
0022b738
AC
11867 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11868 already has a full path.
11869
864dbc90
AC
11870 * main.c (gdb_main): Return 1.
11871 (captured_main): Call error to report an invalid interpreter.
11872
4c2e2391
AC
11873 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11874 * alpha-osf1-tdep.c: Include "gdb_string.h".
11875
5ef7553b
JB
118762003-03-19 J. Brobecker <brobecker@gnat.com>
11877
11878 Continuing work to convert the hppa targets to multiarch partial.
11879
11880 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11881 method, now that hppa_push_dummy_frame has a conformant prototype.
11882 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11883 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11884 for the switch to multiarch partial.
11885
7bde8967
KB
118862003-03-19 Kevin Buettner <kevinb@redhat.com>
11887
11888 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11889 when iss is issNull.
11890
b006a9e9
KB
118912003-03-18 Kevin Buettner <kevinb@redhat.com>
11892
11893 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11894 NUM_REGS bounds check.
11895
5e2e9765
KB
118962003-03-18 Kevin Buettner <kevinb@redhat.com>
11897
11898 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11899 * mips-tdep.c (gdb_assert.h): Include.
11900 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11901 (mips_register_name): Handle integer registers explicitly. Add
11902 bounds checking.
11903 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11904 (mips_lsi33k_reg_names): Don't list integer registers; they're
11905 handled by mips_register_name() now.
11906 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11907 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11908 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11909 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11910 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11911
a2867626
AC
119122003-03-18 Andrew Cagney <cagney@redhat.com>
11913
11914 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11915 a void pointer.
11916 * gdbtypes.h (print_scalar_formatted): Update declaration.
11917 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11918
06600e06
JB
119192003-03-18 J. Brobecker <brobecker@gnat.com>
11920
11921 * infrun.c (observer.h): Add #include.
11922 (normal_stop): Add call to observer_notify_normal_stop.
11923 * Makefile.in (infrun.o): Add dependency on observer.h.
11924
7daf4f5b
JB
119252003-03-18 J. Brobecker <brobecker@gnat.com>
11926
11927 Continuing work to convert the hppa targets to multiarch partial.
11928 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11929 parameter. Reformat comment.
11930 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11931 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11932 to match new profile.
11933
3371ccc0
JB
119342003-03-18 J. Brobecker <brobecker@gnat.com>
11935
11936 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11937 appear to be working in any case.
11938
4fbe891e
JB
119392003-03-18 J. Brobecker <brobecker@gnat.com>
11940
11941 * observer.c (observer_test_first_observer): New static variable.
11942 (observer_test_second_observer): Likewise.
11943 (observer_test_third_observer): Likewise.
11944 (observer_test_first_notification_function): New static function.
11945 (observer_test_second_notification_function): Likewise.
11946 (observer_test_third_notification_function): Likewise.
11947
a7ff40e7
JB
119482003-03-17 J. Brobecker <brobecker@gnat.com>
11949
11950 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11951 * somsolib.c (gdb_assert.h): Likewise.
11952 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11953 (somsolib.o): Likewise.
11954
26ca4152
AC
119552003-03-17 Andrew Cagney <cagney@redhat.com>
11956
11957 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11958 BFD. Simplify setting of di.endian.
11959
0a613259
AC
119602003-03-17 Andrew Cagney <cagney@redhat.com>
11961
11962 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11963 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11964
11965 From Elena Zannoni <ezannoni@redhat.com>
11966 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11967 vector and floating-point parameters.
11968 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11969 convention.
11970 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11971
1132738f
FN
119722003-03-17 Fernando Nasser <fnasser@redhat.com>
11973
11974 * MAINTAINERS: Remove my name from several maintainership roles.
11975
6dc42492
AC
119762003-03-17 Andrew Cagney <cagney@redhat.com>
11977
11978 Fix frame off-by-one bug.
11979 * frame-unwind.h (frame_this_id_ftype): Replace
11980 frame_unwind_id_ftype.
11981 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11982 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11983 with "prev_register".
11984 * frame-unwind.c (frame_unwind_find_by_pc): Return
11985 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11986 comment.
11987 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11988 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11989 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11990 (dummy_frame_unwind): Update.
11991 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11992 sentinel_frame_register_unwind.
11993 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11994 (sentinel_frame_unwinder): Update.
11995 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11996 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11997 * frame.c (create_sentinel_frame): Update. Initialize
11998 "prologue_cache" instead of "unwind_cache".
11999 (frame_register_unwind): Call this frame's prev_register with the
12000 next frame and this frame's prologue cache.
12001 (get_prev_frame): Simplify. Always call prev frame's this_id with
12002 this frame and prev frame's prologue cache. Document that this
12003 call is shifted one to the left when compared to the
12004 frame_register_unwind call.
12005 (legacy_saved_regs_prev_register): Replace
12006 frame_saved_regs_register_unwind.
12007 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
12008 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
12009 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12010 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
12011 (d10v_frame_unwind): Update.
12012 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
12013 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
12014 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
12015 "saved_regs" with "this_saved_regs".
12016
efd710d6
AC
120172003-03-16 Andrew Cagney <cagney@redhat.com>
12018
12019 * frame.c (frame_pop): Don't call target_store_registers. Fix
12020 problem reported by Mark Kettenis.
12021
4e259f09
MK
120222003-03-16 Mark Kettenis <kettenis@gnu.org>
12023
12024 * i386-tdep.c (i386_register_type): Renamed from
12025 i386_register_virtual_type. Adjust function signature.
12026 (i386_gdbarch_init): Set register_type instead of
12027 deprecated_max_register_raw_size,
12028 deprecated_max_register_virtual_size and register_virtual_type.
12029
055bb976
AC
120302003-03-14 Andrew Cagney <cagney@redhat.com>
12031
12032 * frame.c (get_prev_frame): When a legacy frame, always call
12033 legacy_get_prev_frame. Simplify unwind code using assumption that
12034 the unwinder is new.
12035 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
12036 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
12037 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12038
ac2adee5
AC
120392003-03-14 Andrew Cagney <cagney@redhat.com>
12040
12041 * frame.c (get_saved_register): Delete function.
12042 * frame.h (get_saved_register): Delete declaration.
12043 * xstormy16-tdep.c: Update comment.
12044 * regcache.h: Update comments.
12045 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
12046 get_saved_register and extract_address, use
12047 frame_read_unsigned_register.
12048 (sparc_frame_saved_pc): Ditto.
12049 (sparc_get_saved_register): Instead of get_saved_register, use
12050 frame_register.
12051 (sparc_pop_frame): Ditto.
12052 * findvar.c: Update comments.
12053 (value_of_register): Call frame_register instead of
12054 get_saved_register.
12055 (value_from_register): Ditto.
12056 * config/sparc/tm-sparc.h: Update comment.
12057 * breakpoint.c: Update comment.
12058
129c1cd6
AC
120592003-03-14 Andrew Cagney <cagney@redhat.com>
12060
12061 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
12062 GET_SAVED_REGISTER.
12063 * gdbarch.h, gdbarch.c: Re-generate.
12064 * frame.h: Update comments.
12065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12066 * x86-64-tdep.c (x86_64_init_abi): Update.
12067 * sparc-tdep.c (sparc_gdbarch_init): Update.
12068 * sh-tdep.c (sh_gdbarch_init): Update.
12069 * mips-tdep.c (mips_gdbarch_init): Update.
12070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12071 * cris-tdep.c (cris_gdbarch_init): Update.
12072 * ia64-tdep.c (ia64_gdbarch_init): Update.
12073 * frame.c (frame_register): Update.
12074 (get_saved_register): Update.
12075 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 12076
749b82f6
AC
120772003-03-13 Andrew Cagney <cagney@redhat.com>
12078
12079 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12080 * gdbarch.h, gdbarch.c: Regenerate.
12081 * valops.c (hand_function_call): Update comment.
12082 * stack.c (return_command): Update comment.
12083 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12084 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12086 * x86-64-tdep.c (x86_64_init_abi): Update.
12087 * vax-tdep.c (vax_gdbarch_init): Update.
12088 * v850-tdep.c (v850_gdbarch_init): Update.
12089 * sparc-tdep.c (sparc_gdbarch_init): Update.
12090 * sh-tdep.c (sh_gdbarch_init): Update.
12091 * s390-tdep.c (s390_gdbarch_init): Update.
12092 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12093 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12094 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12095 * mips-tdep.c (mips_gdbarch_init): Update.
12096 * mcore-tdep.c (mcore_gdbarch_init): Update.
12097 * m68k-tdep.c (m68k_gdbarch_init): Update.
12098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12099 * ia64-tdep.c (ia64_gdbarch_init): Update.
12100 * i386-tdep.c (i386_gdbarch_init): Update.
12101 * hppa-tdep.c (hppa_gdbarch_init): Update.
12102 * h8300-tdep.c (h8300_gdbarch_init): Update.
12103 * frv-tdep.c (frv_gdbarch_init): Update.
12104 * cris-tdep.c (cris_gdbarch_init): Update.
12105 * avr-tdep.c (avr_gdbarch_init): Update.
12106 * arm-tdep.c (arm_gdbarch_init): Update.
12107 * alpha-tdep.c (alpha_gdbarch_init): Update.
12108
1594fa56
AC
121092003-03-13 Andrew Cagney <cagney@redhat.com>
12110
12111 * frame.c (legacy_frame_p): New function.
12112 (get_prev_frame): Use legacy_frame_p.
12113 * frame.h (legacy_frame_p): Declare.
12114
7717fda3
V
121152003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12116
fbe586ae 12117 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
12118 listing corrected.
12119
0c67cbe9
V
121202003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12121
fbe586ae 12122 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 12123
03febf99
AC
121242003-03-12 Andrew Cagney <cagney@redhat.com>
12125
12126 * frame.c (get_prev_frame): Rename the frame parameter to
12127 "this_frame".
12128 (get_next_frame, legacy_get_prev_frame): Ditto.
12129
0a1e1ca1
AC
121302003-03-12 Andrew Cagney <cagney@redhat.com>
12131
12132 * frame.c (get_current_frame): Check target_has_registers before
12133 checking target_has_stack.
12134 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12135 instead of deprecated_selected_frame.
12136 * findvar.c (value_of_register): Pass "frame", not
12137 deprecated_selected_frame, to value_of_builtin_reg.
12138
a66a9c23
AC
121392003-03-12 Andrew Cagney <cagney@redhat.com>
12140
12141 * regcache.c (regcache_cooked_write_signed): New function.
12142 (regcache_cooked_write_unsigned): New function.
12143 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12144 (regcache_cooked_read_signed): Fix regnum in range assertion.
12145 * regcache.h (regcache_cooked_write_signed): Declare.
12146 (regcache_cooked_write_unsigned): Declare.
12147
8bedc050
AC
121482003-03-12 Andrew Cagney <cagney@redhat.com>
12149
12150 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12151 * gdbarch.h, gdbarch.c: Re-generate.
12152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12153 * x86-64-tdep.h: Update.
12154 * x86-64-tdep.c (x86_64_init_abi): Update.
12155 * v850-tdep.c (v850_gdbarch_init): Update.
12156 * sparc-tdep.c (sparc_gdbarch_init): Update.
12157 * sh-tdep.c (sh_gdbarch_init): Update.
12158 * s390-tdep.c (s390_gdbarch_init): Update.
12159 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12160 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12161 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12162 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12163 * mips-tdep.c (mips_gdbarch_init): Update.
12164 * mcore-tdep.c (mcore_gdbarch_init): Update.
12165 * m68k-tdep.c (m68k_gdbarch_init): Update.
12166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12167 * ia64-tdep.c (ia64_gdbarch_init): Update.
12168 * i386-tdep.c (i386_gdbarch_init): Update.
12169 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12170 * hppa-tdep.c (hppa_gdbarch_init): Update.
12171 * h8300-tdep.c (h8300_gdbarch_init): Update.
12172 * frv-tdep.c (frv_gdbarch_init): Update.
12173 * cris-tdep.c (cris_gdbarch_init): Update.
12174 * avr-tdep.c (avr_gdbarch_init): Update.
12175 * arm-tdep.c (arm_gdbarch_init): Update.
12176 * alpha-tdep.c (alpha_gdbarch_init): Update.
12177 * sh-tdep.c (sh_init_extra_frame_info): Update.
12178 (sh64_init_extra_frame_info): Update.
12179 * ns32knbsd-nat.c (frame_num_args): Update.
12180 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12181 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12182 (xstormy16_frame_chain_valid): Update.
12183 * vax-tdep.c (vax_saved_pc_after_call): Update.
12184 * v850-tdep.c (v850_frame_chain): Update.
12185 (v850_pop_frame): Update.
12186 (v850_init_extra_frame_info): Update.
12187 * sparc-tdep.c (setup_arbitrary_frame): Update.
12188 * ns32k-tdep.c (umax_frame_num_args): Update.
12189 * s390-tdep.c (s390_pop_frame_regular): Update.
12190 * mn10300-tdep.c (mn10300_frame_chain): Update.
12191 (mn10300_pop_frame_regular): Update.
12192 (mn10300_init_extra_frame_info): Update.
12193 * mips-tdep.c (mips_init_frame_pc_first): Update.
12194 (mips_frame_chain): Update.
12195 (mips_pop_frame): Update.
12196 * mcore-tdep.c (mcore_frame_chain): Update.
12197 (mcore_pop_frame): Update.
12198 (mcore_init_extra_frame_info): Update.
12199 * arch-utils.c (init_frame_pc_default): Update.
12200 * m68k-tdep.c (isi_frame_num_args): Update.
12201 (delta68_frame_num_args): Update.
12202 (news_frame_num_args): Update.
12203 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12204 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12205 (alpha_frame_chain): Update.
12206 (alpha_pop_frame): Update.
12207 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12208 (hppa_init_extra_frame_info): Update.
12209 (hppa_frame_chain): Update.
12210 (hppa_frame_chain_valid): Update.
12211 * cris-tdep.c (cris_init_extra_frame_info): Update.
12212 * avr-tdep.c (avr_init_extra_frame_info): Update.
12213 * arm-tdep.c (arm_frame_chain_valid): Update.
12214 (arm_init_extra_frame_info): Update.
12215 (arm_pop_frame): Update.
12216 * frame.c (frame_pc_unwind): Update.
12217 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12218 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12219 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12220 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12221 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12222 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12223
7a25a7c1
AC
122242003-03-12 Andrew Cagney <cagney@redhat.com>
12225
12226 Eliminate the need for POP_FRAME.
12227 * frame.c (do_frame_unwind_register): New function.
12228 (frame_pop): When no POP_FRAME, pop the frame using register
12229 unwind and a scratch regcache.
12230 (frame_saved_regs_pop): Delete function.
12231 (trad_frame_unwinder): Update.
12232 * d10v-tdep.c (d10v_frame_pop): Delete function.
12233 (d10v_frame_unwind): Update.
12234 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12235 (sentinel_frame_unwinder): Update.
12236 * dummy-frame.c (dummy_frame_pop): Delete function.
12237 (dummy_frame_unwind): Update.
12238 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12239 (struct frame_unwind): Update.
12240
2f38ef89
KB
122412003-03-11 Kevin Buettner <kevinb@redhat.com>
12242
12243 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12244 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12245 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12246 Do range checks on register number obtained from debugging info.
12247 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12248 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12249 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12250 mapping function.
12251 (do_fp_register_row): Fix typo which caused double type to be
12252 used when attempting to unpack a float.
12253
552f4abf
JB
122542003-03-11 J. Brobecker <brobecker@gnat.com>
12255
12256 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12257
e0d2ae16
AC
122582003-03-11 Andrew Cagney <cagney@redhat.com>
12259
12260 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12261 frame. Problem found by Corinna Vinschen.
12262
ddbfdd06
PM
122632003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12264
12265 * doublest.c (floatformat_from_length): Accept also
12266 the real size of 'long double' type.
12267
088b2ddc 122682003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 12269
088b2ddc 12270 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
12271 * breakpoint.c (bpstat_copy): Copy the command lines as well
12272 as the old value, to match what is freed in bpstat_clear.
12273
f56f77c1
DC
122742003-03-10 David Carlton <carlton@math.stanford.edu>
12275
12276 * minsyms.c (add_minsym_to_hash_table): Replace
12277 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12278 (compare_minimal_symbols, compact_minimal_symbols)
12279 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12280 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12281 of DEPRECATED_SYMBOL_MATCHES_NAME.
12282 (lookup_minimal_symbol_solib_trampoline): Ditto.
12283
5602984a
AC
122842003-03-10 Andrew Cagney <cagney@redhat.com>
12285
12286 * regcache.h (regcache_cooked_read_ftype): Define.
12287 (regcache_save, regcache_restore): Add a cooked_read parameter.
12288 * regcache.c (regcache_save, regcache_restore): Update.
12289 (do_cooked_read): New function.
12290 (regcache_cpy): Pass do_cooked_read to regcache_save and
12291 regcache_restore.
12292
8bedc050
AC
122932003-03-10 Andrew Cagney <cagney@redhat.com>
12294
12295 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12296 * gdbarch.h, gdbarch.c: Re-generate.
12297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12298 * x86-64-tdep.h: Update.
12299 * x86-64-tdep.c (x86_64_init_abi): Update.
12300 * v850-tdep.c (v850_gdbarch_init): Update.
12301 * sparc-tdep.c (sparc_gdbarch_init): Update.
12302 * sh-tdep.c (sh_gdbarch_init): Update.
12303 * s390-tdep.c (s390_gdbarch_init): Update.
12304 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12305 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12306 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12307 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12308 * mips-tdep.c (mips_gdbarch_init): Update.
12309 * mcore-tdep.c (mcore_gdbarch_init): Update.
12310 * m68k-tdep.c (m68k_gdbarch_init): Update.
12311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12312 * ia64-tdep.c (ia64_gdbarch_init): Update.
12313 * i386-tdep.c (i386_gdbarch_init): Update.
12314 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12315 * hppa-tdep.c (hppa_gdbarch_init): Update.
12316 * h8300-tdep.c (h8300_gdbarch_init): Update.
12317 * frv-tdep.c (frv_gdbarch_init): Update.
12318 * cris-tdep.c (cris_gdbarch_init): Update.
12319 * avr-tdep.c (avr_gdbarch_init): Update.
12320 * arm-tdep.c (arm_gdbarch_init): Update.
12321 * alpha-tdep.c (alpha_gdbarch_init): Update.
12322 * sh-tdep.c (sh_init_extra_frame_info): Update.
12323 (sh64_init_extra_frame_info): Update.
12324 * ns32knbsd-nat.c (frame_num_args): Update.
12325 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12326 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12327 (xstormy16_frame_chain_valid): Update.
12328 * vax-tdep.c (vax_saved_pc_after_call): Update.
12329 * v850-tdep.c (v850_frame_chain): Update.
12330 (v850_pop_frame): Update.
12331 (v850_init_extra_frame_info): Update.
12332 * sparc-tdep.c (setup_arbitrary_frame): Update.
12333 * ns32k-tdep.c (umax_frame_num_args): Update.
12334 * s390-tdep.c (s390_pop_frame_regular): Update.
12335 * mn10300-tdep.c (mn10300_frame_chain): Update.
12336 (mn10300_pop_frame_regular): Update.
12337 (mn10300_init_extra_frame_info): Update.
12338 * mips-tdep.c (mips_init_frame_pc_first): Update.
12339 (mips_frame_chain): Update.
12340 (mips_pop_frame): Update.
12341 * mcore-tdep.c (mcore_frame_chain): Update.
12342 (mcore_pop_frame): Update.
12343 (mcore_init_extra_frame_info): Update.
12344 * arch-utils.c (init_frame_pc_default): Update.
12345 * m68k-tdep.c (isi_frame_num_args): Update.
12346 (delta68_frame_num_args): Update.
12347 (news_frame_num_args): Update.
12348 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12349 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12350 (alpha_frame_chain): Update.
12351 (alpha_pop_frame): Update.
12352 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12353 (hppa_init_extra_frame_info): Update.
12354 (hppa_frame_chain): Update.
12355 (hppa_frame_chain_valid): Update.
12356 * cris-tdep.c (cris_init_extra_frame_info): Update.
12357 * avr-tdep.c (avr_init_extra_frame_info): Update.
12358 * arm-tdep.c (arm_frame_chain_valid): Update.
12359 (arm_init_extra_frame_info): Update.
12360 (arm_pop_frame): Update.
12361 * frame.c (frame_pc_unwind): Update.
12362 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12363 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12364 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12365 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12366 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12367 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12368
12cc2063
AC
123692003-03-10 Andrew Cagney <cagney@redhat.com>
12370
12371 * gdbarch.sh (gdbarch_unwind_pc): New method.
12372 * gdbarch.h, gdbarch.c: Regenerate.
12373 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12374 but use read_pc and FRAME_SAVED_PC as fall backs.
12375 (frame_saved_regs_pc_unwind): Delete function.
12376 (trad_frame_unwinder): Update.
12377 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12378 (struct frame_unwind): Update.
12379 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12380 (dummy_frame_unwind): Update.
12381 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12382 (sentinel_frame_unwinder): Update.
12383 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12384 (d10v_frame_unwind): Update.
12385 (d10v_unwind_pc): New function.
12386 (d10v_gdbarch_init): Set unwind_pc.
12387
ef840a37
AC
123882003-03-10 Andrew Cagney <cagney@redhat.com>
12389
a2ce2e56
AC
12390 * gdbarch.h: Re-generate.
12391
ef840a37
AC
12392 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12393 PC.
12394 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12395 the PC register.
12396
08f3424b
MK
123972003-03-08 Mark Kettenis <kettenis@gnu.org>
12398
12399 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12400
1248ede2
AC
124012003-03-08 Andrew Cagney <cagney@redhat.com>
12402
12403 * cli-out.c: Update copyright.
12404 (cli_out_data): Define typedef. Use instead of ui_out_data.
12405
f49bacc8
AC
124062003-03-08 Andrew Cagney <cagney@redhat.com>
12407
12408 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12409 the result.
12410
9b05f993
AC
124112003-03-07 Andrew Cagney <cagney@redhat.com>
12412
12413 * gdbarch.sh: Don't generate two macro definitions when an
12414 undefined macro taking no arguments.
12415 * gdbarch.h: Regenerate.
8ffd9b1b 12416
166f4c7b
ML
124172002-03-07 Michal Ludvig <mludvig@suse.cz>
12418
12419 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12420 (x86_64_unwind_dummy_id): New functions.
12421 (x86_64_init_abi): Register these two new functions.
12422
6d686a84
ML
124232003-03-07 Michal Ludvig <mludvig@suse.cz>
12424
12425 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12426 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12427 separate function.
12428 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12429
6314f104
AC
124302003-03-05 Andrew Cagney <cagney@redhat.com>
12431
12432 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12433 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12434 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12435 to use unwind_dummy_id when a dummy frame.
12436 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12437 predicate.
12438 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12439
ceea5145
AC
124402003-03-05 Andrew Cagney <cagney@redhat.com>
12441
12442 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12443 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12444 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12445 values.
12446
0d843116
AC
124472003-03-05 Andrew Cagney <cagney@redhat.com>
12448
12449 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12450 (struct d10v_unwind_cache): Delete field "frameless". Replace
12451 "next_addr" with "sp_offset". Add "r11_offset".
12452 (d10v_frame_unwind_cache): Update.
12453 (prologue_find_regs): Update. When "mv r11, sp", save the
12454 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12455 RN was saved in r11_offset.
12456
b2579786
AC
124572003-03-05 Andrew Cagney <cagney@redhat.com>
12458
12459 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12460 cached PC value in the next frame.
12461
218e5956
AC
124622003-03-05 Andrew Cagney <cagney@redhat.com>
12463
12464 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12465 "id_unwind_cache" with "id".
12466 (frame_id_unwind): Delete declaration.
12467 * frame.c (frame_id_unwind): Delete function.
12468 (get_prev_frame): Call the frame id unwind method directly. Store
12469 the returned next frame's ID value in NEXT_FRAME. Note that there
12470 is a problem with the wrong unwind ID being called with the wrong
12471 unwind cache.
12472
ed363b1b
DJ
124732003-03-05 Daniel Jacobowitz <drow@mvista.com>
12474
12475 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12476
fe1f4a5e
DJ
124772003-03-05 James Ingham <jingham@apple.com>
12478 Daniel Jacobowitz <drow@mvista.com>
12479
12480 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12481 (auto_cp_abi): New variable.
12482 (current_cp_abi, num_cp_abis): Make static.
12483 (CP_ABI_MAX): Define.
12484 (cp_abis): Turn into an array.
12485 (value_virtual_fn_field): Fix formatting.
12486 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12487 takes a pointer.
12488 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12489 (list_cp_abis, _initialize_cp_abi): New functions.
12490 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12491 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12492 switch_to_cp_abi. Update prototype for register_cp_abi.
12493 * Makefile.in (cp-abi.o): Update dependencies.
12494 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12495 instead of switch_to_cp_abi.
12496 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12497 register_cp_abi.
12498 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12499 register_cp_abi.
12500 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12501
e4adbba9
DJ
125022003-03-05 Daniel Jacobowitz <drow@mvista.com>
12503
12504 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12505 * dwarf2loc.c: Include "regcache.h".
12506 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12507 register_size.
12508 * Makefile.in (dwarf2loc.o): Update dependencies.
12509
91ccbfc1
TR
125102003-03-04 Theodore A. Roth <troth@openavr.org>
12511
12512 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12513 number of io registers reported by remote target is not a multiple of
12514 step.
12515
3d4e8fd2
DC
125162003-03-04 David Carlton <carlton@math.stanford.edu>
12517
12518 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12519 (lookup_symbol_aux_psymtabs): Update call to
12520 lookup_partial_symbol.
12521 (lookup_transparent_type, find_main_psymtab)
12522 (make_symbol_overload_list): Ditto.
12523
ed42d87b
KH
125242003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12525
12526 * MAINTAINERS (Write after approval): Update my email address.
12527
a0ed5532
AC
125282003-03-03 Andrew Cagney <cagney@redhat.com>
12529
12530 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12531 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12532 predicate. Replace MAX_REGISTER_RAW_SIZE.
12533 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12534 MAX_REGISTER_VIRTUAL_SIZE.
12535 * regcache.c (legacy_max_register_raw_size): New function.
12536 (legacy_max_register_virtual_size): New function.
12537 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12538 (MAX_REGISTER_RAW_SIZE): Define.
12539 (legacy_max_register_raw_size): Declare.
12540 (legacy_max_register_virtual_size): Declare.
12541 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12542 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12543 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12544 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12545 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12546 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12547 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12548 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12549 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12550 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12551 * vax-tdep.c (vax_gdbarch_init): Update.
12552 * v850-tdep.c (v850_gdbarch_init): Update.
12553 * sparc-tdep.c (sparc_gdbarch_init): Update.
12554 * sh-tdep.c (sh_gdbarch_init): Update.
12555 * s390-tdep.c (s390_gdbarch_init): Update.
12556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12557 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12558 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12559 * mips-tdep.c (mips_gdbarch_init): Update.
12560 * mcore-tdep.c (mcore_gdbarch_init): Update.
12561 * m68k-tdep.c (m68k_gdbarch_init): Update.
12562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12563 * ia64-tdep.c (ia64_gdbarch_init): Update.
12564 * i386-tdep.c (i386_gdbarch_init): Update.
12565 * hppa-tdep.c (hppa_gdbarch_init): Update.
12566 * h8300-tdep.c (h8300_gdbarch_init): Update.
12567 * frv-tdep.c (frv_gdbarch_init): Update.
12568 * cris-tdep.c (cris_gdbarch_init): Update.
12569 * avr-tdep.c (avr_gdbarch_init): Update.
12570 * arm-tdep.c (arm_gdbarch_init): Update.
12571 * alpha-tdep.c (alpha_gdbarch_init): Update.
12572 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12573 max_register_raw_size or max_register_virtual_size.
12574
8e437497
DC
125752003-03-03 David Carlton <carlton@math.stanford.edu>
12576
12577 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12578 SYMBOL_MATCHES_NAME, add comment.
12579 (SYMBOL_MATCHES_NATURAL_NAME): New.
12580 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12581 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12582 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12583 * symtab.c (lookup_partial_symbol): Use
12584 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12585 unhelpful comment.
12586 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12587 SYMBOL_MATCHES_NAME.
12588 Fix for PR c++/33.
12589
25120b0d
DC
125902003-03-03 David Carlton <carlton@math.stanford.edu>
12591
12592 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12593 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12594 by regexp matching against SYMBOL_NATURAL_NAME.
12595
78a11fb4
DC
125962003-03-03 David Carlton <carlton@math.stanford.edu>
12597
12598 * linespec.c (find_method): Extract code into collect_methods.
12599 (collect_methods): New.
12600
645dd519
MK
126012003-03-02 Mark Kettenis <kettenis@gnu.org>
12602
b4700d91
MK
12603 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12604 get_frame_base.
12605
645dd519
MK
12606 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12607 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12608
0aa7e1aa
SC
126092003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12610
8ffd9b1b 12611 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12612 and not regnum when summing the size of all registers up to regnum.
12613
f30ee0bc
AC
126142003-03-01 Andrew Cagney <cagney@redhat.com>
12615
12616 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12617 FRAME_INIT_SAVED_REGS.
12618 * gdbarch.h, gdbarch.c: Regenerate.
12619 * stack.c (frame_info): Update.
12620 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12621 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12622 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12623 * ns32k-tdep.c (ns32k_pop_frame): Update.
12624 * mips-tdep.c (mips_pop_frame): Update.
12625 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12626 * ia64-tdep.c (ia64_frame_chain): Update.
12627 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12628 (ia64_frameless_function_invocation): Update.
12629 (ia64_init_extra_frame_info): Update.
12630 (ia64_pop_frame_regular): Update.
12631 * frame.h (struct frame_info): Update comment.
12632 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12633 * frame.c (frame_saved_regs_register_unwind): Update.
12634 (frame_saved_regs_register_unwind): Update.
12635 (deprecated_generic_get_saved_register): Update.
12636 * cris-tdep.c: Update comment.
12637 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12638 Rename macro.
12639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12640 * x86-64-tdep.c (x86_64_init_abi): Update.
12641 * vax-tdep.c (vax_gdbarch_init): Update.
12642 * v850-tdep.c (v850_gdbarch_init): Update.
12643 * sparc-tdep.c (sparc_gdbarch_init): Update.
12644 * sh-tdep.c (sh_gdbarch_init): Update.
12645 * s390-tdep.c (s390_gdbarch_init): Update.
12646 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12647 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12648 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12649 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12650 * mips-tdep.c (mips_gdbarch_init): Update.
12651 * mcore-tdep.c (mcore_gdbarch_init): Update.
12652 * m68k-tdep.c (m68k_gdbarch_init): Update.
12653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12654 * ia64-tdep.c (ia64_gdbarch_init): Update.
12655 * i386-tdep.c (i386_gdbarch_init): Update.
12656 * frv-tdep.c (frv_gdbarch_init): Update.
12657 * avr-tdep.c (avr_gdbarch_init): Update.
12658 * arm-tdep.c (arm_gdbarch_init): Update.
12659 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12660
42fa7c0f
AC
126612003-03-01 Andrew Cagney <cagney@redhat.com>
12662
12663 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12664 option enum and switch. When no windows, set the interpreter to
12665 INTERP_CONSOLE.
8ffd9b1b 12666
49c7e338
AC
126672003-03-01 Andrew Cagney <cagney@redhat.com>
12668
12669 * main.c (captured_main): Replace magic option characters with an
12670 enum.
12671
e9582e71
AC
126722003-03-01 Andrew Cagney <cagney@redhat.com>
12673
12674 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12675 INIT_EXTRA_FRAME_INFO.
12676 * gdbarch.h, gdbarch.c: Regenerate.
12677 * arm-tdep.c: Update comments.
12678 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12679 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12680 * frame.h, avr-tdep.c: Ditto.
12681 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12682 (create_new_frame, legacy_get_prev_frame): Ditto.
12683 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12684 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12686 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12687 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12688 * v850-tdep.c (v850_gdbarch_init): Ditto.
12689 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12690 * sh-tdep.c (sh_gdbarch_init): Ditto.
12691 * s390-tdep.c (s390_gdbarch_init): Ditto.
12692 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12693 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12694 * mips-tdep.c (mips_gdbarch_init): Ditto.
12695 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12697 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12698 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12699 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12700 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12701 * frv-tdep.c (frv_gdbarch_init): Ditto.
12702 * cris-tdep.c (cris_gdbarch_init): Ditto.
12703 * avr-tdep.c (avr_gdbarch_init): Ditto.
12704 * arm-tdep.c (arm_gdbarch_init): Ditto.
12705 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12706 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12707
35cac7cf
AC
127082003-03-01 Andrew Cagney <cagney@redhat.com>
12709
12710 * gdbarch.sh (register_type): New function with predicate.
12711 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12712 * gdbarch.h, gdbarch.c: Re-generate.
12713 * arch-utils.c (generic_register_byte): Use generic_register_size.
12714 (generic_register_size): When available, use
12715 gdbarch_register_type.
12716 * regcache.c (init_regcache_descr): When available, initialize the
12717 register type array using gdbarch_register_type. If the
12718 architecture supplies gdbarch_register_type, do not use the legacy
12719 regcache layout.
12720 * d10v-tdep.c (d10v_register_type): Replace
12721 d10v_register_virtual_type.
12722 (d10v_gdbarch_init): Set register_type instead of
12723 register_virtual_type.
12724
7b83296f
AC
127252003-03-01 Andrew Cagney <cagney@redhat.com>
12726
12727 * Makefile.in (ax-gdb.o): Update dependencies.
12728 * ax-gdb.c: Include "regcache.h".
12729 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12730 * findvar.c (value_of_register): Ditto.
12731 * infcmd.c (default_print_registers_info): Ditto.
12732
eadc1c87
MK
127332003-03-01 Mark Kettenis <kettenis@gnu.org>
12734
12735 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12736 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12737
14143612
MK
127382003-03-01 Mark Kettenis <kettenis@gnu.org>
12739
12740 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12741 of STREQ.
12742
a55cc764
DJ
127432003-02-28 Daniel Jacobowitz <drow@mvista.com>
12744
12745 * Makefile.in (dwarf2loc.o): Update dependencies.
12746 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12747 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12748 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12749 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12750 (locexpr_tracepoint_var_ref): New function.
12751 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12752
08a617da
AC
127532003-02-28 Andrew Cagney <cagney@redhat.com>
12754
12755 * regcache.c (register_size): New function.
12756 * regcache.h (register_size): Declare
12757 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12758 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12759
4224873a
DC
127602003-02-28 David Carlton <carlton@math.stanford.edu>
12761
12762 * linespec.c (decode_compound): Extract code into find_method.
12763 (find_method): New.
12764
ccdc5d7f
JB
127652003-02-28 J. Brobecker <brobecker@gnat.com>
12766
12767 * Makefile.in: Add rules to build and link in observer.o.
12768
974e8ced
JB
127692003-02-27 J. Brobecker <brobecker@gnat.com>
12770
12771 * observer.c: Minor comments edits.
12772
7a28f973
JB
127732003-02-27 J. Brobecker <brobecker@gnat.com>
12774
12775 * observer.h, observer.c: New file.
12776
27cddce2
AC
127772003-02-27 Andrew Cagney <cagney@redhat.com>
12778
12779 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12780
b94a41a1
SC
127812003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12782
12783 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12784 (M6812_OP_STS_EXT): Likewise.
12785 (m6811_prologue): Use the above to recognize prologue.
12786 (m6812_prologue): Likewise.
12787
c8be8951
DC
127882003-02-27 David Carlton <carlton@math.stanford.edu>
12789
12790 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12791 SYMBOL_PRINT_NAME.
12792 (compare_psymbols): Ditto.
12793 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12794
d05bb1fc
MS
127952003-02-27 Michael Snyder <msnyder@redhat.com>
12796
4e845cd3
MS
12797 * f-lang.c (build_fortran_types): New function.
12798 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12799 * doublest.c (extract_floating): Fix warning text.
12800
f3824013
AC
128012003-02-27 Andrew Cagney <cagney@redhat.com>
12802
12803 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12804 predicate. Replaces PUSH_DUMMY_FRAME.
12805 * gdbarch.h, gdbarch.c: Regnerate.
12806 * valops.c (hand_function_call): Update. Call
12807 generic_push_dummy_frame directly.
12808 * vax-tdep.c (vax_gdbarch_init): Update.
12809 * sparc-tdep.c (sparc_gdbarch_init): Update.
12810 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12811 * m68k-tdep.c (m68k_gdbarch_init): Update.
12812 * hppa-tdep.c (hppa_gdbarch_init): Update.
12813 * alpha-tdep.c (alpha_gdbarch_init): Update.
12814 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12815 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12816 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12818 push_dummy_frame to generic_push_dummy_frame.
12819 * v850-tdep.c (v850_gdbarch_init): Ditto.
12820 * sh-tdep.c (sh_gdbarch_init): Ditto.
12821 * s390-tdep.c (s390_gdbarch_init): Ditto.
12822 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12823 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12824 * mips-tdep.c (mips_gdbarch_init): Ditto.
12825 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12827 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12828 * i386-tdep.c (i386_gdbarch_init): Ditto.
12829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12830 * frv-tdep.c (frv_gdbarch_init): Ditto.
12831 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12832 * cris-tdep.c (cris_gdbarch_init): Ditto.
12833 * avr-tdep.c (avr_gdbarch_init): Ditto.
12834 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12835
ad188201
KB
128362003-02-26 Kevin Buettner <kevinb@redhat.com>
12837
12838 * mips-tdep.c (show_mips_abi): New function.
12839 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12840 command ``show mips abi''.
12841
6b37567a 128422003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12843
6b37567a 12844 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12845 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12846 more sline entries have been seen for the function.
12847
d3e0a5bf
MC
128482003-02-26 Michael Chastain <mec@shout.net>
12849
12850 * configure: Regenerate with autoconf 000227.
12851
18972eea
MC
128522003-02-26 Michael Chastain <mec@shout.net>
12853
12854 Close PR build/660.
12855 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12856 for old libc5/glibc.
12857 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12858
0bbde931
KW
128592003-02-26 Kris Warkentin <kewarken@qnx.com>
12860
12861 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12862 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12863
27ca5dad
MC
128642003-02-26 Michael Chastain <mec@shout.net>
12865
12866 * configure.in: New variable HAVE_UINTPTR_T.
12867 * configure, config.in: Regenerated.
12868
6f88d630
DJ
128692003-02-26 Daniel Jacobowitz <drow@mvista.com>
12870
12871 Fix PR build/1097.
12872 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12873
b14185ce
AC
128742003-02-25 Andrew Cagney <cagney@redhat.com>
12875
12876 * frame.c (get_prev_frame): Add comment on check for
12877 inside_entry_func. Only check for inside_entry_file when not a
12878 dummy and not a sentinel. Check that the new frame is not inner
12879 to the old frame.
12880
ac2bd0a9
AC
128812003-02-25 Andrew Cagney <cagney@redhat.com>
12882
12883 * frame.c (frame_debug): New variable.
12884 (_initialize_frame): Add "set/show debug frame" command.
12885 (get_prev_frame): When frame_debug, print reason why unwind
12886 failed.
12887
b18a0fd2
MC
128882003-02-25 Michael Chastain <mec@shout.net>
12889
12890 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12891 to avoid uintptr_t definition problems.
12892
22abf04a
DC
128932003-02-25 David Carlton <carlton@math.stanford.edu>
12894
12895 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12896 (SYMBOL_LINKAGE_NAME): Ditto.
12897 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12898 SYMBOL_LINKAGE_NAME.
12899 (struct general_symbol_info): Expand comment.
12900 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12901 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12902 (SYMBOL_MATCHES_REGEXP): Ditto.
12903 * symtab.c (symbol_natural_name): New function.
12904 * objfiles.h: Replace all uses of SYMBOL_NAME by
12905 DEPRECATED_SYMBOL_NAME.
12906 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12907 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12908 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12909 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12910 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12911 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12912 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12913 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12914 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12915 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12916 * ada-exp.y: Ditto.
12917 * ada-exp.y: Update copyright.
12918 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12919 * cp-valprint.c: Ditto.
12920
1a5848f6
JJ
129212003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12922
12923 * infptrace.c (detach): Do not flag error if ptrace detach fails
12924 and errno is set to ESRCH.
12925
7343d46a
AC
129262003-02-24 Andrew Cagney <cagney@redhat.com>
12927
12928 * infptrace.c (udot_info): Change type of udot_off to long. Use
12929 paddr when printing udot_off's value.
12930
49fa1dc2
DC
129312003-02-24 David Carlton <carlton@math.stanford.edu>
12932
12933 * symtab.c (make_symbol_overload_list): Only read in partial
12934 symtabs containing a matching partial symbol.
12935
0fe19209
DC
129362003-02-24 David Carlton <carlton@math.stanford.edu>
12937
12938 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12939 do the comparison, not strcmp.
12940 * symfile.c (compare_psymbols): Ditto.
12941 * defs.h: Declare strcmp_iw_ordered.
12942 * utils.c (strcmp_iw_ordered): New function.
12943
8e3ee7b5
JB
129442003-02-24 Jim Blandy <jimb@redhat.com>
12945
12946 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12947 support, shared libs): Remove my name from here, to better reflect
12948 reality.
12949
7df1a324
KW
129502003-02-24 Kris Warkentin <kewarken@qnx.com>
12951
12952 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12953 (target_ops): Add to_have_continuable_watchpoint.
12954 * target.c (update_current_target): Add INHERIT line for
12955 to_have_continuable_watchpoint.
12956 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12957 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12958 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12959 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12960
d1c76907
EZ
129612003-02-24 Elena Zannoni <ezannoni@redhat.com>
12962
12963 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12964 maintainership.
12965
2610b0bf
KW
129662003-02-24 Kris Warkentin <kewarken@qnx.com>
12967
f46169db
KW
12968 * solib.c (solib_open): Call target defined search function after
12969 failing with solib-search-path.
12970 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12971 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12972
9a3c34fe
KW
129732003-02-24 Kris Warkentin <kewarken@qnx.com>
12974
f46169db 12975 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12976
2417dd25
SC
129772003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12978
12979 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12980
b631436b
SC
129812003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12982
12983 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12984 (m68hc11_add_reggroups): New function.
12985 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12986 (m68hc11_gdbarch_init): Install the reggroups.
12987 (_initialize_m68hc11_tdep): Initialize them.
12988
0aa8c1e4
JW
129892003-02-21 James E Wilson <wilson@tuliptree.org>
12990
12991 * MAINTAINERS: Update my email address.
12992
50ceaba5
DC
129932003-02-21 David Carlton <carlton@math.stanford.edu>
12994
12995 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12996
4c2df51b
DJ
129972003-02-21 Daniel Jacobowitz <drow@mvista.com>
12998
12999 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
13000 * symtab.h: Add opaque declarations of struct axs_value and
13001 struct agent_expr.
13002 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
13003 (struct location_funcs): New type.
13004 (struct symbol): Add "loc" to aux_value.
13005 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
13006 * dwarf2read.c: Include "dwarf2expr.h".
13007 (dwarf2_symbol_mark_computed): New function.
13008 (read_func_scope): Use it.
13009 (var_decode_location): New function.
13010 (new_symbol): Use it.
13011 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
13012
13013 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
13014 (dwarf2expr_h, dwarf2loc_h): New variables.
13015 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
13016 (dwarf2expr.o, dwarf2loc.o): New rules.
13017 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
13018 * buildsym.c (finish_block): Handle LOC_COMPUTED and
13019 LOC_COMPUTED_ARG.
13020 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
13021 * m2-exp.y (yylex): Likewise.
13022 * printcmd.c (address_info, print_frame_args): Likewise.
13023 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
13024 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
13025 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
13026 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
13027 * symtab.c (lookup_block_symbol): Likewise.
13028
5784d15e
AF
130292003-02-20 Adam Fedor <fedor@gnu.org>
13030
13031 * symtab.h: Remove objc_specific struct
13032 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
13033 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
13034 Have language_objc use cplus_specific struct.
13035
d4cad8db
TT
130362003-02-20 Tom Tromey <tromey@redhat.com>
13037
13038 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
13039 TYPE_NAME, when printing a String value. PR java/1075.
13040
2f9a90b4
AF
130412003-02-20 Adam Fedor <fedor@gnu.org>
13042
d38074a8 13043 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 13044 * objc-lang.c (find_methods): Make static.
2f9a90b4 13045
6f17862b
CF
130462003-02-20 Christopher Faylor <cgf@redhat.com>
13047
13048 * win32-nat.c (get_image_name): Check return value from
13049 ReadProcessMemory.
13050 (child_xfer_memory): Ditto.
13051
715d1656
AO
130522003-02-20 Alexandre Oliva <aoliva@redhat.com>
13053
13054 * configure.in (TARGET_SYSTEM_ROOT): Set default to
13055 ${exec_prefix}/${target_alias}/sys-root. Match explicit
13056 '${exec_prefix}' (in addition to the expansion thereof) as
13057 relocatable.
13058 * configure: Rebuilt.
13059
b1262a02
DC
130602003-02-20 David Carlton <carlton@math.stanford.edu>
13061
13062 * symtab.c (search_symbols): Revert the search_symbols part of my
13063 2002-12-23 patch. Add comment.
13064
7134143f
DJ
130652002-02-20 Daniel Jacobowitz <drow@mvista.com>
13066
13067 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
13068 * dbxread.c (elfstab_build_psymtabs): Don't call
13069 install_minimal_symbols.
13070 (stabsect_build_psymtabs): Likewise.
13071 * elfread.c (elf_symfile_read): Call install_minimal_symbols
13072 earlier.
13073 * somread.c (som_symfile_read): Call install_minimal_symbols
13074 and do_cleanups earlier.
13075 * nlmread.c (nlm_symfile_read): Likewise.
13076 * mdebugread.c (elfmdebug_build_psymtabs): Call
13077 install_minimal_symbols and make appropriate cleanups.
13078
cf466558
KB
130792003-02-20 Kevin Buettner <kevinb@redhat.com>
13080
13081 * solib.c (reload_shared_libraries): New function.
13082 (_initialize_solib): Add callbacks for ``set solib-search-path''
13083 and ``set solib-absolute-prefix''.
13084
de5ad195
DC
130852003-02-20 David Carlton <carlton@math.stanford.edu>
13086
13087 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13088 expand comment.
13089 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13090 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13091 * ada-typeprint.c (ada_typedef_print): Ditto.
13092 * ax-gdb.c (gen_var_ref): Ditto.
13093 * breakpoint.c (print_one_breakpoint): Ditto.
13094 * buildsym.c (finish_block): Ditto.
13095 * c-valprint.c (c_val_print): Ditto.
13096 * expprint.c (print_subexp): Ditto.
13097 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
13098 * infcmd.c (jump_command): Ditto.
13099 * linespec.c (decode_line_2, decode_compound): Ditto.
13100 * maint.c (maintenance_translate_address): Ditto.
13101 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
13102 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13103 Ditto.
8ffd9b1b
AJ
13104 * p-valprint.c (pascal_val_print): Ditto.
13105 * stabsread.c (define_symbol): Ditto.
de5ad195 13106 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
13107 (print_frame_arg_vars, return_command): Ditto.
13108 * symfile.c (compare_symbols, compare_psymbols): Ditto.
13109 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
13110 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13111 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
13112 (rbreak_command): Ditto.
13113 * tracepoint.c (tracepoints_info): Ditto.
13114 * typeprint.c (typedef_print): Ditto.
13115 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
13116 * cli/cli-cmds.c (edit_command, list_command): Ditto.
13117 * ada-typeprint.c: Update Copyright.
13118 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13119 * tracepoint.c, cli/cli-cmds.c: Ditto.
13120
f796e4be
KB
131212003-02-20 Kevin Buettner <kevinb@redhat.com>
13122
13123 * frame.c (generic_unwind_get_saved_register): Make non-static.
13124 * frame.h (generic_unwind_get_saved_register): Declare.
13125 * mips-tdep.c (read_next_frame_reg): Fetch register from
13126 current regcache when frame is NULL.
13127 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13128 that must be NULL.
13129 (mips_get_saved_register): Call generic_unwind_get_saved_register()
13130 instead of frame_register_unwind().
13131
836cc9f4
AC
131322003-02-20 Andrew Cagney <ac131313@redhat.com>
13133
13134 * remote-sim.c (gdbsim_insert_breakpoint)
13135 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13136 code.
13137
501eef12
AC
131382003-02-20 Andrew Cagney <ac131313@redhat.com>
13139
13140 * remote.c (_initialize_remote): Add commands "set/show remote
13141 hardware-watchpoint-limit" and "set/show remote
13142 hardware-breakpoint-limit".
13143 (remote_hw_watchpoint_limit): Initialize to -1.
13144 (remote_hw_breakpoint_limit): Ditto.
13145 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13146
1b6bc7e0
CF
131472003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
13148
13149 * coff-pe-read.c: New file - support reading of minimal symbols from a
13150 portable executable using the export table.
13151 * coff-pe-read.h: New file.
13152 * coffread.c: Include coff-pe-read.h.
13153 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13154 debugging symbols found.
13155 * Makefile.in (SFILES): Add coff-pe-read.o.
13156 (coff_pe_read_h): Define.
13157 (COMMON_OBS): Add coff-pe-read.o.
13158 (coffread.o): Add coff_pe_read_h dependency.
13159 (coff-pe-read.o): New target.
13160
fe898f56
DC
131612003-02-19 David Carlton <carlton@math.stanford.edu>
13162
13163 * Makefile.in (SFILES): Add block.c.
13164 (block_h): New.
13165 (COMMON_OBS): Add block.o.
13166 (block.o): New.
13167 (x86-64-tdep.o): Add $(block_h).
13168 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13169 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13170 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13171 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13172 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13173 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13174 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13175 * value.h: Add opaque declaration for struct block.
13176 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13177 * ada-lang.h: Ditto.
13178 * x86-64-tdep.c: #include "block.h"
13179 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13180 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13181 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13182 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13183 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13184 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13185 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13186 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13187 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13188 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13189 * symtab.c (block_function): Ditto.
13190 (contained_in): Ditto.
13191 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13192 block.h. Add opaque declaration for struct block.
13193 * symtab.h: Move block_function and contained_in declarations to
13194 block.h. Add opaque declarations for struct block, struct
13195 blockvector.
13196 (struct block): Move to block.h.
13197 (struct blockvector): Ditto.
13198 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13199 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13200 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13201 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13202 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13203 Ditto.
13204 * block.c: New file.
13205 * block.h: New file.
13206
173345b5
TR
132072003-02-19 Theodore A. Roth <troth@openavr.org>
13208
13209 * avr-tdep.c (avr_extract_return_value): Remove function.
13210 (avr_store_return_value): Remove function.
13211 (avr_extract_struct_value_address): Remove function.
13212 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13213
338ef23d
AC
132142003-02-19 Andrew Cagney <ac131313@redhat.com>
13215
13216 * rs6000-tdep.c: Include "gdb_assert.h".
13217 (registers_e500): Add "acc" and "spefscr".
13218 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13219 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13220 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13221 really is "r0".
13222 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13223
5412f5f3
KS
132242003-02-18 Keith Seitz <keiths@redhat.com>
13225
13226 * Makefile.in: Add gdbtk-interps.c.
13227
881324eb
KB
132282003-02-18 Kevin Buettner <kevinb@redhat.com>
13229
13230 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13231 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13232
6a2f5abf
AC
132332003-02-18 Andrew Cagney <cagney@redhat.com>
13234
13235 * symtab.h (struct objfile): Add opaque declaration.
13236
54c7009d
EZ
132372003-02-18 Elena Zannoni <ezannoni@redhat.com>
13238
13239 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
13240 * dbxread.c (process_one_symbol): Use last_function_start rather
13241 than function_start_offset to find the real beginning of the
13242 current function. The latter is just the text section offset on
13243 some systems, the former is always the real function start.
54c7009d 13244
7ee6d7eb
AC
132452003-02-17 Andrew Cagney <cagney@redhat.com>
13246
13247 * configure.in: Revert ${target} != ${host}.
13248
2846da9b
AC
132492003-02-17 Andrew Cagney <ac131313@redhat.com>
13250
13251 * configure.in (Makefile): Use the test ${target} != ${host},
13252 instead of the absence of the "nm.h" file, to determine of the
13253 configuration non-native.
13254 * configure: Regenerate.
8ffd9b1b 13255
3b27aeea
EZ
132562003-02-14 Elena Zannoni <ezannoni@redhat.com>
13257
fbe586ae 13258 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
13259
13260 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13261 conditionalize tui_active test.
13262 (lookup_cmd_1): Ditto.
13263
b0b1c2c0
MK
132642003-02-14 Mark Kettenis <kettenis@gnu.org>
13265
13266 * configure.in: Add check for _etext.
13267 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13268 available.
13269 * config.in, configure: regenerated.
13270
8f05cde5
DJ
132712003-02-14 Daniel Jacobowitz <drow@mvista.com>
13272
13273 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13274
021e7609
AC
132752003-02-14 Andrew Cagney <ac131313@redhat.com>
13276
13277 * main.c (tui_version): Delete variable.
13278 (captured_main): When --tui, set interpreter_p to "tui" instead of
13279 enabling tui_version.
13280 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13281 tui_version.
13282 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13283 * cli/cli-cmds.c (disassemble_command): Ditto.
13284 * defs.h (tui_version): Delete declaration.
13285 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13286 (tui-interp.o): Add rules.
13287 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13288
e325dcec
CF
132892003-02-14 Christopher Faylor <cgf@redhat.com>
13290
36ffb041 13291 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13292 just-loaded dll.
13293
c4f90d87
JM
132942003-02-12 Jason Molenda (jmolenda@apple.com)
13295
fbe586ae
RH
13296 * symmisc.c (print_objfile_statistics): Include information about
13297 the number of psymtabs and symtabs in each object file.
c4f90d87 13298
e46e5ccd
KS
132992003-02-13 Keith R Seitz <keiths@redhat.com>
13300
13301 * main.h (struct captured_main_args): Add interpreter_p.
13302 * main.c (captured_main): Initialize interpreter_p from context.
13303 * gdb.c (main): Set interpreter_p argument.
13304 * Makefile.in (gdb.o): Add dependency for interps.h.
13305
fe97fe9c
AC
133062003-02-12 Andrew Cagney <ac131313@redhat.com>
13307
13308 * event-top.c (cli_command_loop): Delete declaration.
13309 (_initialize_event_loop): Delete function setting event_loop_hook.
13310 * event-top.h (cli_command_loop): Declare. Update copyright.
13311 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13312 * interps.c (current_interp_command_loop): When event_loop_p, call
13313 cli_command_loop.
13314
1cdac4ef
AC
133152003-02-12 Andrew Cagney <ac131313@redhat.com>
13316
13317 * interps.h (interp_command_loop_ftype): Change return type to
13318 void.
13319
48037ead
ML
133202003-02-12 Michal Ludvig <mludvig@suse.cz>
13321
13322 * x86-64-tdep.c (x86_64_extract_return_value)
13323 (x86_64_store_return_value): Use regcache instead of regbuf.
13324 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13325 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13326
033afc63
AC
133272003-02-11 Andrew Cagney <ac131313@redhat.com>
13328
13329 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13330 * aclocal.m4: Regenerate.
13331 * configure: Regenerate.
13332
13333 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13334 TCL_LD_SEARCH_FLAGS.
13335
40d02bca
ML
133362003-02-10 Michal Ludvig <mludvig@suse.cz>
13337
13338 * dwarf2cfi.c: Reindented.
13339
11308a41
AC
133402003-02-09 Andrew Cagney <ac131313@redhat.com>
13341
13342 * interps.c (clear_interpreter_hooks): Convert function definition
13343 to ISO C.
13344
e1c1c0f6
DC
133452003-02-07 David Carlton <carlton@math.stanford.edu>
13346
13347 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13348
ab5d3da6
KB
133492003-02-07 Kevin Buettner <kevinb@redhat.com>
13350
13351 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13352 (struct type): ...to here.
13353 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13354 field.
13355 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13356 (replace_type): Set length on all type variants for a given type.
13357
b8a92b82
AC
133582003-02-07 Andrew Cagney <ac131313@redhat.com>
13359
13360 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13361 <sys/stat.h>.
13362 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13363
5cb316ef
AC
133642003-02-06 Andrew Cagney <ac131313@redhat.com>
13365
2555fe1a
AC
13366 * Makefile.in (symm-nat.o): Update dependencies.
13367 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13368 (lynx-nat.o, ia64-linux-nat.): Ditto.
13369 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13370 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13371 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13372
44270758
AC
13373 * Makefile.in (inflow_h): Define.
13374 (procfs.o, inflow.o, procfs.o): Update dependencies.
13375 * inftarg.c (child_stop): Delete extern declaration of
13376 inferior_process_group. Include "inflow.h".
13377 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13378 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13379 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13380 (our_process_group, inferior_process_group): Extern declarations.
13381
df8f7274
AC
13382 * procfs.c: Include "gdb_assert.h".
13383
5cb316ef
AC
13384 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13385 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13386 * jv-typeprint.c (java_type_print_base): Ditto.
13387 * typeprint.c (typedef_print): Eliminate STREQ.
13388 * cli/cli-script.c (define_command, define_command): Ditto.
13389 * main.c (captured_main): Ditto.
13390 * values.c (lookup_internalvar): Ditto.
13391 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13392 within `if' conditional.
13393 * linespec.c (decode_line_2): Ditto.
13394 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13395 (bfd_openw_with_cleanup): Ditto.
13396
2a28ccea
MK
133972003-02-07 Mark Kettenis <kettenis@gnu.org>
13398
13399 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13400 legacy_extract_return_value and store_return_value to
13401 legacy_return_value.
13402
786b8124
CF
134032003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13404
13405 * win32-nat.c (get_relocated_section_addrs): New function. Find
13406 section load addresses for symbol handling in relocated DLLs.
13407 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13408
b871e4ec
FF
134092003-02-05 Fred Fish <fnf@intrinsity.com>
13410
13411 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13412 '=' and '!='.
13413 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13414 with '&' and '=='.
13415 (angel_RDI_info): Ditto.
13416 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13417 with '&' and '!='.
13418 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13419
4389a95a 134202003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13421 Keith Seitz <keiths@redhat.com>
13422 Elena Zannoni <ezannoni@redhat.com>
13423 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13424
13425 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13426 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13427 (SUBDIR_MI_OBS): Add "mi-interp.o".
13428 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13429 (SFILES): Add "interps.c".
13430 (COMMON_OBS): Add "interps.o".
13431 (interps_h, mi_main_h): Define.
13432 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13433 (mi-main.o, main.o, event-top.o): Update dependencies.
13434 * cli/cli-interp.c: New file.
13435 * interps.h, interps.c: New files.
13436 * top.c: (gdb_init): Don't install the default interpreter, handed
13437 by captured_main.
13438 * main.c: Include "interps.h".
13439 (interpreter_p): Note that it should malloc'ed.
13440 (captured_command_loop): Call current_interp_command_loop.
13441 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13442 xfree and xstrdup when updating interpreter_p. Install the
13443 default interpreter. Add hack to stop mi1's copyright notice
13444 being encoded.
13445 * event-top.h (gdb_setup_readline): Declare.
13446 (gdb_disable_readline): Declare.
13447 * event-top.c: Include "interps.h".
13448 (display_gdb_prompt): Call current_interp_display_prompt_p.
13449 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13450 gdb_stdlog, and gdb_stdtarg.
13451 (_initialize_event_loop): Don't call gdb_setup_readline.
13452 * cli-out.c (cli_out_set_stream): New function.
13453 * cli-out.h (cli_out_set_stream): Declare.
13454
ff3b5810
MK
134552003-02-06 Mark Kettenis <kettenis@gnu.org>
13456
13457 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13458 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13459 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13460 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13461 config/i386/i386v42mp.mt: Removed.
13462
5b729aa5
MK
134632003-02-05 Mark Kettenis <kettenis@gnu.org>
13464
13465 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13466 GDB_OSABI_SOLARIS.
13467
8cc15142
MC
134682003-02-05 Michael Chastain <mec@shout.net>
13469
13470 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13471 2.12.1 and earlier versions.
13472
5aa5d4b9
AC
134732003-02-05 Andrew Cagney <ac131313@redhat.com>
13474
13475 Remove orphaned hosts, targets and files.
13476 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13477 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13478 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13479 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13480 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13481 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13482 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13483 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13484 * config/sparc/tm-sp64sim.h: Delete.
13485 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13486 hosts.
13487 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13488 mips*-dec-mach3* targets.
13489
b68767c1
MC
134902003-02-04 Michael Chastain <mec@shout.net>
13491
13492 * NEWS: Fix typo: sepcifying -> specifying.
13493
5ae7ca1d
MC
134942003-02-04 Michael Chastain <mec@shout.net>
13495
13496 * dwarfread.c: Add documentation on the state of dwarf-1,
13497 looking towards obsoletion.
13498
d08a4280
MC
134992003-02-03 Michael Chastain <mec@shout.net>
13500
13501 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13502 gdb/testsuite/gdb.c++/pr-1023.exp.
13503
e9be73e4
AC
135042003-02-04 Andrew Cagney <ac131313@redhat.com>
13505
13506 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13507 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13508
13509 * utils.c (init_page_info): Delete reference to MPW in comments.
13510 * main.c (captured_main): Delete #ifdef MPW.
13511
05d57f6f
AC
135122003-02-04 Andrew Cagney <ac131313@redhat.com>
13513
8ffd9b1b 13514 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13515 * monitor.c (monitor_expect): Obsolete reference to m32r.
13516 * configure.tgt: Mark m32r-*-elf* as obsolete.
13517 * MAINTAINERS: Mark m32k as obsolete.
13518 * m32r-rom.c: Obsolete file.
13519 * config/m32r/m32r.mt: Obsolete file.
13520 * config/m32r/tm-m32r.h: Obsolete file.
13521 * m32r-stub.c: Obsolete file.
13522 * m32r-tdep.c: Obsolete file.
13523
8b0e5691
AC
135242003-02-04 Andrew Cagney <ac131313@redhat.com>
13525
13526 * NEWS: Mention that the z8k-zilog-none is obsolete.
13527 * MAINTAINERS: Mark z8k as obsolete.
13528 * configure.tgt: Obsolete the z8k-*-coff* target.
13529 * config/z8k/z8k.mt: Obsolete file.
13530 * config/z8k/tm-z8k.h: Obsolete file.
13531 * z8k-tdep.c: Obsolete file.
13532
67f16606
AC
135332003-02-04 Andrew Cagney <ac131313@redhat.com>
13534
13535 * NEWS: Mention that the mn10200-elf is obsolete.
13536 * configure.tgt: Obsolete mn10200-*-* target.
13537 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13538 mention that the mn10200 is obsolete.
13539 * breakpoint.h: Ditto.
13540 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13541 * config/mn10200/mn10200.mt: Obsolete file.
13542 * config/mn10200/tm-mn10200.h: Obsolete file.
13543 * mn10200-tdep.c: Obsolete file.
13544
fd2299bd
AC
135452003-02-04 Andrew Cagney <ac131313@redhat.com>
13546
13547 * MAINTAINERS: Mark h8500 as obsolete.
13548 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13549 * findvar.c (value_from_register): Ditto.
13550 * h8500-tdep.c: Mark file as obsolete.
13551 * config/h8500/h8500.mt: Ditto.
13552 * config/h8500/tm-h8500.h: Ditto.
13553 * NEWS: Mention that h8500 is obsolete.
13554
eb9a305d
DC
135552003-02-04 David Carlton <carlton@math.stanford.edu>
13556
13557 * objfiles.c (allocate_objfile): Always set name. Add comment at
13558 start of function.
13559 * jv-lang.c (get_dynamics_objfile): Add comment.
13560
406fc7fb
DC
135612003-02-04 David Carlton <carlton@math.stanford.edu>
13562
13563 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13564 * printcmd.c (build_address_symbolic): Replace uses of
13565 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13566 SYMBOL_NAME, and asm_demangle.
13567 Update copyright.
13568
93d91629
DC
135692003-02-04 David Carlton <carlton@math.stanford.edu>
13570
13571 * linespec.c (decode_compound): Extract code into
13572 lookup_prefix_sym.
13573 (lookup_prefix_sym): New function.
13574
1c5cb38e
DC
135752003-02-04 David Carlton <carlton@math.stanford.edu>
13576
13577 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13578 FLOAT_COERCION_BADNESS.
13579 * gdbtypes.c (rank_one_type): Replace all uses of
13580 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13581
0cf824c9
JB
135822003-02-04 Jim Blandy <jimb@redhat.com>
13583
13584 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13585 section, let dwarf_macinfo_section point to it, not
13586 dwarf_loc_section.
13587
a2d356b0
DJ
135882003-02-04 Daniel Jacobowitz <drow@mvista.com>
13589
13590 Pointed out by Anton Blanchard <anton@samba.org>.
13591 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13592 (ppc_linux_at_sigtramp_return_path): Use it.
13593
2de7ced7
DJ
135942003-02-04 Daniel Jacobowitz <drow@mvista.com>
13595
13596 * defs.h (streq): Add prototype.
13597 * utils.c (streq): New function.
13598
13599 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13600 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13601 * mdebugread.c (new_symbol): Likewise.
13602 * stabsread.c (define_symbol): Likewise.
13603 * coffread.c (process_coff_symbol): Likewise.
13604 * dwarfread.c (new_symbol): Likewise.
13605
13606 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13607 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13608 here.
13609 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13610 SYMBOL_INIT_DEMANGLED_NAME.
13611 * objfiles.c: Include "hashtab.h".
13612 (allocate_objfile): Call htab_set_functions_ex for the
13613 demangled_names_hash.
13614 (free_objfile): Call htab_delete for the demangled_names_hash.
13615 * objfiles.h (struct htab): Add declaration.
13616 (struct objfile): Add demangled_names_hash.
13617 * symfile.c: Include "hashtab.h".
13618 (reread_symbols): Call htab_delete for the demangled_names_hash.
13619 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13620 SYMBOL_NAME in the bcache.
13621 * symtab.c: Include "hashtab.h". Update comments.
13622 (create_demangled_names_hash, symbol_set_names): New functions.
13623 (symbol_find_demangled_name): New function, broken out from
13624 symbol_init_demangled_names.
13625 (symbol_init_demangled_names): Use it.
13626 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13627 (SYMBOL_SET_NAMES): New macro.
13628 (symbol_set_names): Add prototype.
13629
15831452
JB
136302003-02-03 Jim Blandy <jimb@redhat.com>
13631
13632 Use a single, consistent representation for an empty minimal
13633 symbol table in an objfile.
13634 * objfiles.c (terminate_minimal_symbol_table): New function.
13635 (allocate_objfile): Call it.
13636 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13637 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13638 non-NULL.
15831452
JB
13639 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13640 objfile has minimal symbols, compare minimal_symbol_count to zero,
13641 instead of comparing msymbols with NULL.
13642 * objfiles.c (have_minimal_symbols): Same.
13643 * solib-sunos.c (solib_add_common_symbols): Call
13644 terminate_minimal_symbol_table.
13645 * symfile.c (reread_symbols): Same.
8ffd9b1b 13646
ffc65945
KB
136472003-02-03 Kevin Buettner <kevinb@redhat.com>
13648
13649 * s390-tdep.c (s390_address_class_type_flags)
13650 (s390_address_class_type_flags_to_name)
13651 (s390_address_class_name_to_type_flags): New functions.
13652 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13653 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13654
f211c6d4
MS
136552003-02-03 Michael Snyder <msnyder@redhat.com>
13656
13657 * arm-tdep.c: Fix spell-o in comment.
13658
659b0389
ML
136592003-02-03 Michal Ludvig <mludvig@suse.cz>
13660
13661 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13662 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13663 error messages to contain BFD filename.
659b0389 13664
3b31d625
EZ
136652003-02-02 Elena Zannoni <ezannoni@redhat.com>
13666
997b089a 13667 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13668 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13669 (do_mixed_source_and_assembly): Use
13670 make_cleanup_ui_out_tuple_begin_end and
13671 make_cleanup_ui_out_tuple_begin_end.
13672 (do_mixed_source_and_assembly): Ditto.
13673 * thread.c (do_captured_list_thread_ids): Ditto.
13674 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13675 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13676 ui_out_tuple_end): Delete prototypes.
13677 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13678 ui_out_list_end, ui_out_tuple_end): Delete.
13679
13680 From Kevin Buettner <kevinb@redhat.com>:
13681 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13682 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13683 (do_cleanup_table_end): New functions.
13684 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13685 Use cleanups to invoke_ui_out_tuple_end().
13686 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13687 * cli/cli-setshow.c (cmd_show_list): Use
13688 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13689
5b181d62
AC
136902003-02-02 Andrew Cagney <ac131313@redhat.com>
13691
13692 * frame.c (frame_unwind_register): New function.
13693 (frame_unwind_unsigned_register): Use.
13694 (frame_unwind_signed_register): Use.
13695 (frame_read_register): New function.
13696 * frame.h (frame_unwind_register): Declare.
13697 (frame_read_register): Declare.
13698
13699 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13700 and frame_unwind_register instead of read_memory, write_register
13701 and deprecated_write_register_bytes.
13702
5f601589
AC
137032003-02-02 Andrew Cagney <ac131313@redhat.com>
13704
13705 * frame.h: Note that namelen can be negative.
13706 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13707 NAME's length.
13708
13709 * NEWS: Mention that the d10v's `regs' command is deprecated.
13710 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13711 (d10v_print_registers_info): New function.
13712 (show_regs): Call d10v_print_registers_info.
13713 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13714
6a3fe0a4
MK
137152003-02-02 Mark Kettenis <kettenis@gnu.org>
13716
13717 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13718 lost in the previous patch.
13719
075559bc
AC
137202003-02-01 Andrew Cagney <ac131313@redhat.com>
13721
13722 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13723 * stack.c (print_frame_info_base): Output complete FRAME tuple
13724 for synthesized frames.
075559bc 13725
6789195b
AC
137262003-02-02 Andrew Cagney <ac131313@redhat.com>
13727
13728 * mips-nat.c (zerobuf): Delete.
13729 (fetch_inferior_registers): Alloc local zerobuf.
13730 (fetch_core_registers): Alloc local zerobuf.
13731 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13732 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13733 * thread-db.c (thread_db_store_registers): Ditto.
13734 * sh-tdep.c (sh_do_register): Ditto.
13735 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13736 * remote-sim.c (gdbsim_store_register): Ditto.
13737 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13738 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13739 * monitor.c (monitor_supply_register): Ditto.
13740 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13741 * mips-nat.c (fetch_inferior_registers): Ditto.
13742 * m68klinux-nat.c (fetch_register): Ditto.
13743 * lynx-nat.c (fetch_inferior_registers): Ditto.
13744 (fetch_inferior_registers): Ditto.
13745 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13746 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13747 (hpux_thread_store_registers): Ditto.
13748 * hppah-nat.c (fetch_register): Ditto.
13749 * hppab-nat.c (fetch_register): Ditto.
13750 * hppa-tdep.c (pa_register_look_aside): Ditto.
13751 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13752 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13753
e669114a
AC
137542003-02-01 Andrew Cagney <ac131313@redhat.com>
13755
13756 * gdbarch.sh: Explictly specify all method levels. When a
13757 variable with an empty level, provide a non-multi-arch default.
13758 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13759 * gdbarch.h: Re-generate.
13760 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13761 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13762
9a043c1d
AC
137632003-02-01 Andrew Cagney <ac131313@redhat.com>
13764
13765 * defs.h (host_pointer_to_address): Delete declaration.
13766 (address_to_host_pointer): Delete declaration.
13767 * utils.c (host_pointer_to_address): Delete function.
13768 (address_to_host_pointer): Delete function.
13769 * procfs.c (procfs_address_to_host_pointer): New function.
13770 * procfs.c (proc_set_watchpoint): Use.
13771 (procfs_can_use_hw_breakpoint): Update comments.
13772 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13773 (som_solib_add): Use.
13774 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13775 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13776
7ca9f392
AC
137772003-02-01 Andrew Cagney <ac131313@redhat.com>
13778
94bbfd30
AC
13779 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13780 strlen d_name.
13781
7ca9f392
AC
13782 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13783 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13784 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13785 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13786 (define_symbol): Update.
13787 * symfile.c (generic_load): Remove references to nindy.
13788 * symtab.c: Remove references to nindy.
13789
31a85ea2
AC
137902003-02-01 Andrew Cagney <ac131313@redhat.com>
13791
13792 * infcmd.c (print_float_info): Delete code conditional on
13793 FLOAT_INFO.
13794 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13795 * config/m68k/nm-apollo68b.h: Ditto.
13796 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13797 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13798 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13799
f6e85fc8
MK
138002003-02-01 Mark Kettenis <kettenis@gnu.org>
13801
6015b6a0
MK
13802 * config/i386/tm-i386os9k.h: Removed.
13803
f7a30bdf
MK
13804 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13805 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13806 they're identical to i[3456]86-*-sysv* now.
13807 * config/i386/i386v32.mh: Removed.
13808 * config/i386/xm-i386v32.h: Removed.
13809 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13810
28d52111
MK
13811 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13812
4d3f6bce
MK
13813 * config/i386/i386dgux.mh: Removed.
13814 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13815
f6e85fc8
MK
13816 * configure.in: Fix typo.
13817 * configure: Regenerated.
13818
53955967
DC
138192003-01-31 David Carlton <carlton@math.stanford.edu>
13820
13821 * dwarf2read.c (dwarf2_locate_sections): Set
13822 dwarf_ranges_section.
13823
b1364885
AC
138242003-01-31 Andrew Cagney <ac131313@redhat.com>
13825
8dbb1c65
AC
13826 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13827 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13828
8731e58e
AC
13829 * utils.c: Re-indent.
13830
b1364885
AC
13831 * config/djgpp/fnchange.lst: Delete nindy files.
13832 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13833 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13834 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13835 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13836 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13837 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13838 * Makefile.in (init.c): Remove nindy references.
13839 (saber_gdb): Delete rule.
13840 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13841 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13842 and a68v-nat.c.
13843 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13844 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13845 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13846 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13847 nindy-share/stop.h.
13848 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13849 * saber.suppress: Delete file.
13850
086df311
DJ
138512003-01-31 Daniel Jacobowitz <drow@mvista.com>
13852
13853 * dbxread.c (stabs_data): New static variable.
13854 (fill_symbuf): Support an in-memory buffer for stabs data.
13855 (stabs_seek): New function.
13856 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13857 (read_ofile_symtab): Use stabs_seek.
13858 (elfstab_build_psymtabs): Take an asection* instead of
13859 an offset and size. Relocate the stabs data if necessary.
13860 Save the section* for dbx_psymtab_to_symtab.
13861 * dwarf2read.c: Add section variables for each debug section.
13862 (dwarf2_locate_sections): Fill them in.
13863 (dwarf2_read_section): Take an asection* argument.
13864 Relocate the section contents if necessary.
13865 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13866 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13867 it to dwarf2_read_section.
13868 (dwarf2_build_frame_info): Update callers.
13869 * elfread.c (elf_symfile_read): Update call to
13870 elfstab_build_psymtabs.
13871 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13872 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13873 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13874 * symfile.c (symfile_dummy_outputs): New function.
13875 (symfile_relocate_debug_section): New function.
13876 * symfile.h (symfile_relocate_debug_section): Add prototype.
13877
87d1b352
RH
138782003-01-31 Richard Henderson <rth@redhat.com>
13879
13880 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13881 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13882 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13883 * alpha-tdep.c (alpha_register_name): Add "unique".
13884 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13885 (ALPHA_UNIQUE_REGNUM): New.
13886 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13887
c48861fb
AC
138882003-01-31 Andrew Cagney <ac131313@redhat.com>
13889
13890 * README: Remove reference to Ericsson 1800 monitor.
13891 * Makefile.in (remote-es.o): Delete rule.
13892 (ALLDEPFILES): Delete remote-es.c.
13893 * remote-es.c: Delete file.
13894 * config/m68k/es1800.mt: Delete file.
13895 * config/djgpp/fnchange.lst: Update.
13896 * configure.tgt: Delete m68*-ericsson-* target.
13897
d764a824
AF
138982003-01-31 Adam Fedor <fedor@gnu.org>
13899
13900 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13901 Remove duplicate/shadowing variable of same name.
13902
fe36c4f4
JB
139032003-01-30 Jim Blandy <jimb@redhat.com>
13904
13905 * symfile.c (find_separate_debug_file): Assert that the objfile's
13906 directory name we compute ends with a slash, and then assume that
13907 that's so everywhere we use it.
13908
cb741690
DJ
139092003-01-30 Daniel Jacobowitz <drow@mvista.com>
13910
13911 * valops.c (value_assign): Flush frame cache after stores to memory
13912 also.
13913
96ee5227
AC
139142003-01-30 Andrew Cagney <ac131313@redhat.com>
13915
13916 * Makefile.in (mon960-rom.o): Delete rule.
13917 * mon960-rom.c: Delete file.
13918
7f6104a9
AC
139192003-01-30 Andrew Cagney <ac131313@redhat.com>
13920
13921 * d10v-tdep.c: Include "frame-unwind.h".
13922 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13923 list.
13924 (next_addr, uses_frame): Delete.
13925 (struct d10v_unwind_cache): Define.
13926 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13927 Use info instead of next_addr and uses_frame globals.
13928 (d10v_frame_init_saved_regs): Delete function.
13929 (d10v_init_extra_frame_info): Delete function.
13930 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13931 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13932 init_frame_pc or frame_saved_pc.
13933 (d10v_pop_frame): Delete function.
13934 (do_d10v_pop_frame): Delete function.
13935 (d10v_frame_chain): Delete function.
13936 (d10v_frame_chain_valid): Delete function.
13937 (d10v_frame_pc_unwind): New function.
13938 (d10v_frame_id_unwind): New function.
13939 (saved_regs_unwinder): New function.
13940 (d10v_frame_register_unwind): New function.
13941 (d10v_frame_pop): New function.
13942 (d10v_frame_unwind): New variable.
13943 (d10v_frame_p): New function.
13944 (d10v_frame_saved_pc): Delete function.
13945 * Makefile.in (d10v-tdep.o): Update dependencies.
13946
cad2e848
JB
139472003-01-30 J. Brobecker <brobecker@gnat.com>
13948
13949 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13950 causing some regressions due to a change in the default value
13951 for this macro.
13952
af34e669
DJ
139532003-01-29 Richard Henderson <rth@redhat.com>
13954 Elena Zannoni <ezannoni@redhat.com>
13955 Daniel Jacobowitz <drow@mvista.com>
13956
13957 Fix PR gdb/961.
8ffd9b1b 13958 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13959 variables.
13960 (RANGES_SECTION): New.
13961 (dwarf_ranges_buffer): New variable.
13962 (struct comp_unit_head): Add member "die".
13963 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13964 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13965 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13966 (dwarf2_locate_sections): Likewise.
13967 (dwarf2_build_psymtabs): Read .debug_ranges.
13968 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13969 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13970 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13971 Look for DW_AT_ranges and return the bounding box.
13972
baa93fa6
CF
139732003-01-29 Brian Ford <ford@vss.fsi.com>
13974
13975 * win32-nat.c (cygwin_pid): Removed as unused.
13976 (child_attach): Try fall back to Cygwin pid.
13977
c63f977f
JB
139782003-01-29 Jim Blandy <jimb@redhat.com>
13979
13980 * objfiles.h (struct objfile): Doc fix.
13981
d62d1979
AC
139822003-01-29 Andrew Cagney <ac131313@redhat.com>
13983
13984 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13985 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13986 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13987 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13988 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13989 (FRAME_SAVED_PC): Change to a function with predicate.
13990 * gdbarch.h, gdbarch.c: Re-generate.
13991
1ae18a04
AC
139922003-01-28 Andrew Cagney <ac131313@redhat.com>
13993
52287340
AC
13994 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13995
1ae18a04
AC
13996 * complaints.c (complain): Delete function.
13997 * complaints.h (struct deprecated_complaint): Delete definition.
13998 (complain): Delete declaration.
13999
f2c16bd6
KB
140002003-01-28 Kevin Buettner <kevinb@redhat.com>
14001
14002 * mips-tdep.c (mips_init_extra_frame_info): Return early for
14003 dummy frames.
14004
a94dd1fd
AC
140052003-01-27 Andrew Cagney <ac131313@redhat.com>
14006
14007 * sentinel-frame.h, sentinel-frame.c: New files.
14008 * Makefile.in (frame.o): Update dependencies.
14009 (SFILES): Add sentinel-frame.c.
14010 (sentinel_frame_h): Define.
14011 (COMMON_OBS): Add sentinel-frame.o.
14012 (sentinel-frame.o): Specify dependencies.
14013 * frame.c: Include "sentinel-frame.h".
14014 (frame_register_unwind): Rewrite assuming that there is always a a
14015 ->next frame.
14016 (frame_register, generic_unwind_get_saved_register): Ditto.
14017 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
14018 (create_sentinel_frame, unwind_to_current_frame): New functions.
14019 (get_current_frame): Rewrite using create_sentinel_frame and
14020 unwind_to_current_frame. When possible, always create a frame.
14021 (create_new_frame): Set next to the sentinel frame.
14022 (get_next_frame): Rewrite. Don't go below the level 0 frame.
14023 (deprecated_update_frame_pc_hack): Update the next frame's PC and
14024 ID cache when necessary.
14025 (frame_saved_regs_id_unwind): Use frame_relative_level.
14026 (deprecated_generic_get_saved_register): Use frame_relative_level,
14027 get_frame_saved_regs, get_frame_pc, get_frame_base and
14028 get_next_frame.
14029 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
14030 frame_register.
14031
5378adc4
DJ
140322003-01-27 Daniel Jacobowitz <drow@mvista.com>
14033
14034 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
14035
51ee2ddc
DJ
140362003-01-27 Daniel Jacobowitz <drow@mvista.com>
14037
14038 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
14039 (maintenance_set_profile_cmd): Use error () instead of warning ().
14040
d9feb4e7
DJ
140412003-01-27 Daniel Jacobowitz <drow@mvista.com>
14042
14043 * configure.in: Check that -pg works if using --enable-profiling.
14044 Check for monstartup and _mcleanup regardless of --enable-profiling.
14045 * maint.c: Check for monstartup and _mcleanup before using them.
14046 * config.in: Regenerated.
14047 * configure: Regenerated.
14048
2d188dd3
NC
140492003-01-24 Nick Clifton <nickc@redhat.com>
14050
14051 * Add sh2e support:
14052
14053 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
14054
14055 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
14056 (sh2e_show_regs): New.
14057 (sh_gdbarch_init): Handle bfd_mach_sh2e.
14058 * config/sh/tm-sh.h: Added sh2e to comments.
14059
cb3c37b2
JB
140602003-01-23 Jim Blandy <jimb@redhat.com>
14061
14062 * symfile.c (syms_from_objfile): Don't print the "(no debugging
14063 symbols found)" message here; we haven't checked for a separate
14064 debug info file yet, so we don't know yet.
14065 (symbol_file_add_with_addrs_or_offsets): Print it here, after
14066 we've looked everywhere. Also, there's no need to print a special
14067 message when we're loading the separate debug info file: the one
14068 symbol_file_add prints is fine.
14069
5b5d99cf
JB
140702003-01-23 Alexander Larsson <alexl@redhat.com>
14071 Jim Blandy <jimb@redhat.com>
14072
14073 Add support for executables whose debug info has been separated
14074 out into a separate file, leaving only a link behind.
14075 * objfiles.h (struct objfile): New fields: separate_debug_objfile
14076 and separate_debug_objfile_backlink.
14077 (put_objfile_before): New declaration.
14078 * symfile.c: #include "filenames.h".
14079 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14080 debug info in a separate file, read that, too. Save the addrs
14081 argument, so we can use it again to read the separated debug info;
14082 syms_from_objfile modifies the table we pass it.
14083 (reread_symbols): After re-reading an objfile, call
14084 reread_separate_symbols to refresh its separate debug info
14085 objfile, if it has one.
14086 (reread_separate_symbols, find_separate_debug_file,
14087 get_debug_link_info, separate_debug_file_exists): New functions.
14088 (debug_file_directory): New global var.
14089 (_initialize_symfile): Initialize debug_file_directory, and
14090 provide the new `set debug-file-directory' command to let the user
14091 change it.
14092 * objfiles.c (free_objfile): If this objfile has its debug info in
14093 a separate objfile, free that one too. If this is itself a
14094 separate debug info objfile, clear our parent's backlink.
14095 (put_objfile_before): New function.
14096 * utils.c (gnu_debuglink_crc32): New function.
14097 * defs.h (gnu_debuglink_crc32): New declaration.
14098 * Makefile.in (symfile.o): Note dependency on "filenames.h".
14099 * configure.in: Handle --with-separate-debug-dir config option.
14100 * acinclude.m4 (AC_DEFINE_DIR): New macro.
14101 * acconfig.h (DEBUGDIR): New macro.
14102 * configure, aclocal.m4, config.in: Regenerated.
14103
7e8580c1
JB
141042003-01-22 Jim Blandy <jimb@redhat.com>
14105
7904e09f
JB
14106 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14107 like the old symbol_file_add, but taking new arguments: you can
14108 now pass in either a `struct section_addr_info' list to say where
14109 each section is loaded, or a `struct section_offsets' table. Pass
14110 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 14111 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
14112 with the appropriate quiescent values for the new arguments.
14113
7e8580c1
JB
14114 * symfile.c: #include "gdb_assert.h".
14115 (syms_from_objfile): Add the ability to pass in a section offset
14116 table directly, as an alternative to the section_addr_info table.
14117 Document arguments better.
14118 (symbol_file_add): Pass extra arguments to syms_from_objfile.
14119 * symfile.h (syms_from_objfile): Update declaration.
14120 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14121 syms_from_objfile.
14122 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14123
d28f9cdf
DJ
141242003-01-22 Daniel Jacobowitz <drow@mvista.com>
14125
14126 Original patch by Tom Tromey <tromey@cygnus.com> and
14127 Jason Molenda <jmolenda@apple.com>.
14128 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14129 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14130 * NEWS: Mention profiling.
14131 * configure.in (--enable-gdbtk): Fix typo.
14132 (--enable-profiling): New. Set PROFILE_CFLAGS.
14133 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14134 Fill in function.
14135 (profiling_state): New variable.
14136 (mcleanup_wrapper): New function.
14137 (_initialize_maint): Remove NOTYET, fix call to
14138 add_setshow_boolean_cmd for "maint set profile".
14139 * configure: Regenerated.
14140
df21e465
MH
141412003-01-21 Martin M. Hunt <hunt@redhat.com>
14142
14143 * Makefile.in (install-gdbtk): Install PNG images too.
14144
73c1f219
AC
141452003-01-21 Andrew Cagney <ac131313@redhat.com>
14146
14147 * exec.c (text_start): Delete global variable.
14148 (exec_file_attach): Make text_start local to the function.
14149 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14150 * valops.c (hand_function_call): Delete code that handles
14151 BEFORE_TEXT_END and AFTER_TEXT_END.
14152 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14153 of CALL_DUMMY_LOCATION.
14154 * gdbarch.c: Regenerate.
14155 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14156 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14157 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14158 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14159 (text_end): Delete extern declaration.
14160
eb4f72c5
AC
141612003-01-21 Andrew Cagney <ac131313@redhat.com>
14162
14163 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14164 * blockframe.c (backtrace_below_main): Move to "frame.c".
14165 (frame_chain_valid): Delete check for backtrace_below_main.
14166 (_initialize_blockframe): Delete initialization, move ``set
14167 backtrace-below-main'' command to "frame.c".
14168 (do_flush_frames_sfunc): Delete function.
14169 * frame.c: Include "command.h" and "gdbcmd.h".
14170 (frame_type_from_pc): New function.
14171 (create_new_frame): Use frame_type_from_pc.
14172 (legacy_get_prev_frame): New function.
14173 (get_prev_frame): Rewrite. When an old style frame, call
14174 legacy_get_prev_frame. Otherwize, unwind the PC first.
14175 (_initialize_frame): Add ``set backtrace-below-main'' command.
14176 * Makefile.in (frame.o): Update dependencies.
14177
778ce8cc
AC
141782003-01-19 Andrew Cagney <ac131313@redhat.com>
14179
14180 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14181 DEPRECATED_REGISTERS_INFO.
14182
01c193c8
AC
141832003-01-19 Andrew Cagney <ac131313@redhat.com>
14184
14185 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14186 Maintainers'. Update `Various Maintainers'.
14187
dedc2a2b
AC
141882003-01-19 Andrew Cagney <ac131313@redhat.com>
14189
14190 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14191 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14192 Suppress actual parameters when `-'.
14193 * gdbarch.h, gdbarch.c: Regenerate.
14194
b7261c70
AC
141952003-01-19 Andrew Cagney <ac131313@redhat.com>
14196
14197 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14198 code handling dummy frames.
14199
dbe9fe58
AC
142002003-01-19 Andrew Cagney <ac131313@redhat.com>
14201
14202 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14203 (struct frame_unwind): Add field pop.
14204 * frame.h (frame_pop): Declare.
14205 * frame.c (frame_saved_regs_pop): New function.
14206 (trad_frame_unwinder): Add frame_saved_regs_pop.
14207 (frame_pop): New function.
14208 * dummy-frame.c (dummy_frame_pop): New function.
14209 (discard_innermost_dummy): New function.
14210 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14211 (dummy_frame_unwind): Add dummy_frame_pop.
14212 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14213 * valops.c (hand_function_call): Ditto.
14214 * stack.c (return_command): Ditto.
14215
570b8f7c
AC
142162003-01-18 Andrew Cagney <ac131313@redhat.com>
14217
14218 * cris-tdep.c: Fix function declaration indentation.
14219 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14220 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14221 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14222 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14223 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14224 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14225
142262003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
14227
14228 * README (Unpacking and Installation -- quick overview):
14229 Warn against ".../gdb-5.3/gdb/configure".
14230
494cca16
AC
142312003-01-18 Andrew Cagney <ac131313@redhat.com>
14232
14233 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14234 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14235 (struct frame_unwind): Declare opaque.
14236 (dummy_frame_p): Declare function.
14237 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14238 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14239 * dummy-frame.c: Include "frame-unwind.h".
14240 (dummy_frame_p): New function.
14241 (dummy_frame_unwind): New variable.
14242 * frame.c: Include "frame-unwind.h".
14243 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14244 to use the new unwind field.
14245 (set_unwind_by_pc): Delete function.
14246 (create_new_frame, get_prev_frame): Set unwind field using
14247 frame_unwind_find_by_pc.
14248 (trad_frame_unwind, trad_frame_unwinder): New variables.
14249 * frame.h (trad_frame_unwind): Declare variable.
14250 (frame_id_unwind_ftype): Delete declaration.
14251 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14252 (struct frame_unwind): Declare opaque.
14253 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14254 register_unwind with a single unwind pointer.
14255 * frame-unwind.h, frame-unwind.c: New files.
14256 * Makefile.in (SFILES): Add frame-unwind.c.
14257 (frame_unwind_h): Define.
14258 (COMMON_OBS): Add frame-unwind.o.
14259 (frame-unwind.o): Specify dependencies.
14260 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 14261
4efb68b1
AC
142622003-01-18 Andrew Cagney <ac131313@redhat.com>
14263
14264 * ada-valprint.c: Eliminate PTR.
14265 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14266 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14267 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14268 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14269 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14270 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14271 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 14272
a84d24ee
AC
142732003-01-17 Andrew Cagney <ac131313@redhat.com>
14274
762f08a3
AC
14275 * main.c (captured_main): Don't use PTR.
14276 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14277 * gdbtypes.c (lookup_primitive_typename): Ditto.
14278 (lookup_struct_elt_type): Ditto.
14279 * f-valprint.c (info_common_command): Ditto.
14280 (list_all_visible_commons): Ditto.
14281 * jv-typeprint.c (java_type_print_base): Ditto.
14282
a84d24ee
AC
14283 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14284 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14285 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14286 i386-interix-nat.c and i386-interix-tdep.c. Rename
14287 m68klinux-nat.c and m68klinux-tdep.c. Rename
14288 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14289 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14290 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14291 * main.c (captured_main): Use xfree, not free.
14292
c170fb60
AC
142932003-01-16 Andrew Cagney <ac131313@redhat.com>
14294
14295 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14296 ID back using a parameter.
14297 * frame.c (frame_id_unwind): Update call.
14298 (frame_saved_regs_id_unwind): Update.
14299 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14300 * dummy-frame.h (struct frame_id): Add opaque declaration.
14301 (dummy_frame_id_unwind): Update declaration.
14302
867f3898
AC
143032003-01-15 Andrew Cagney <ac131313@redhat.com>
14304
14305 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14306
40622be8 143072003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14308
40622be8 14309 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14310
ae66c1fc
EZ
143112003-01-14 Elena Zannoni <ezannoni@redhat.com>
14312
997b089a 14313 Fix PR gdb/898
ae66c1fc
EZ
14314 * breakpoint.c (until_break_command): Add new argument. Use it to
14315 decide whether to stop only at the current frame or not.
14316 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14317 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14318 call.
14319 (advance_command): New function.
14320 (_initialize_infcmd): Update help string for 'until' command.
14321 Add new 'advance' command.
14322
a04257e6
DC
143232003-01-14 David Carlton <carlton@math.stanford.edu>
14324
14325 * linespec.c (decode_line_1): Normalize comments.
14326 (set_flags): Ditto.
14327 (locate_first_half): Ditto.
14328 (decode_compound): Ditto.
14329 (symtab_from_filename): Ditto.
14330 (decode_all_digits): Ditto.
14331 (decode_dollar): Ditto.
14332 (find_methods): Ditto.
14333 (find_toplevel_char): Ditto.
14334
1bac305b
AC
143352003-01-13 Andrew Cagney <ac131313@redhat.com>
14336
14337 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14338 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14339 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14340 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14341 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14342 * language.c, language.h, m32r-tdep.c: Update copyright.
14343 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14344 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14345 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14346 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14347 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14348 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14349
25caa7a8
EZ
143502003-01-13 Elena Zannoni <ezannoni@redhat.com>
14351
14352 * stabsread.h (process_later, resolve_cfront_continuation):
14353 Obsolete.
14354 Update copyright years.
14355 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14356 Update copyright year.
14357 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14358 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14359 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14360 Update copyright year.
14361 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14362 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14363 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14364 (parse_partial_symbols): Obsolete cfront support.
14365 * stabsread.c
14366 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14367 macros.
14368 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14369 read_cfront_baseclasses, read_cfront_member_functions,
14370 resolve_cfront_continuation,read_cfront_static_fields,
14371 copy_cfront_struct_fields): Obsolete functions.
14372 (define_symbol, read_one_struct_field): Obsolete cfront support.
14373 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14374 Update Copyright year.
14375
7789c6f5
EZ
143762003-01-13 Elena Zannoni <ezannoni@redhat.com>
14377
14378 * stack.c (print_frame_info, print_stack_frame_base_stub,
14379 print_stack_frame_base, show_and_print_stack_frame_stub,
14380 show_and_print_stack_frame, print_only_stack_frame_stub,
14381 print_only_stack_frame): Delete functions.
14382 (print_stack_frame_stub): Call print_frame_info instead of
14383 print_frame_info_base.
14384 (print_frame_info_base): Rename to print_frame_info.
14385 (backtrace_command_1): Call print_frame_info, instead of
14386 print_frame_info_base.
14387 (current_frame_command): Call print_stack_frame, instead of
14388 print_only_stack_frame.
14389 (frame_command): Call print_stack_frame, instead of
14390 show_and_print_stack_frame.
14391 (up_command): Ditto.
14392 (down_command): Ditto.
14393 * frame.h (print_only_stack_frame): Delete prototype.
14394 * infrun.c (normal_stop): Call print_stack_frame, instead of
14395 show_and_print_stack_frame.
14396 * thread.c (info_threads_command): Call print_stack_frame, instead
14397 of print_only_stack_frame.
14398
3f5a3016
AC
143992003-01-13 Andrew Cagney <ac131313@redhat.com>
14400
d99ba314
AC
14401 * README (Graphical interface to GDB): Update URL. Point at
14402 gdb/links/.
14403
3f5a3016
AC
14404 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14405 version match.
14406
083ae935
DJ
144072003-01-13 Daniel Jacobowitz <drow@mvista.com>
14408
14409 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14410 lines.
14411
5365276c
DJ
144122003-01-13 Daniel Jacobowitz <drow@mvista.com>
14413
14414 * thread-db.c (attach_thread): Prototype.
14415 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14416 thread information (ti), and valid flags (th_valid, ti_valid).
14417 (attach_thread): Move target_pid_to_str call to after the thread
14418 is added to GDB's list. Initialize the cache.
14419 (thread_get_info_callback, thread_db_map_id2thr)
14420 (thread_db_get_info): New functions.
14421 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14422 (thread_db_store_registers, thread_db_thread_alive)
14423 (thread_db_get_thread_local_address): Use them.
14424 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14425 of calling error() for threads in unknown state.
14426
14427 (clear_lwpid_callback): New function.
14428 (thread_db_resume): Use it to clear the cache.
14429
9fc30b6b
DJ
144302003-01-13 Daniel Jacobowitz <drow@mvista.com>
14431
14432 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14433 (resume_callback): Remove dead code.
14434
8f871025
AC
144352003-01-13 Andrew Cagney <ac131313@redhat.com>
14436
14437 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14438 predicate.
14439 * gdbarch.h, gdbarch.c: Regenerate.
14440 * stack.c (frame_info): Only initialize the saved registers when
14441 FRAME_INIT_SAVED_REGS_P.
14442 * frame.c (frame_saved_regs_register_unwind): Assert
14443 FRAME_INIT_SAVED_REGS_P.
14444 (deprecated_generic_get_saved_register): Ditto.
14445
3f565f1e
DJ
144462003-01-13 Daniel Jacobowitz <drow@mvista.com>
14447
14448 * source.c (openp): Squelch warning about "filename".
14449
072b1022
DJ
144502003-01-13 Daniel Jacobowitz <drow@mvista.com>
14451
14452 * source.c (openp): If the file does not exist don't necessarily
14453 search the path.
14454
973ccf8b
DJ
144552003-01-13 Daniel Jacobowitz <drow@mvista.com>
14456
14457 Fix PR gdb/872.
14458 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14459 (integer_types_same_name_p): New function.
14460 (rank_one_type): Use it.
14461 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14462
030292b7
DJ
144632003-01-13 Daniel Jacobowitz <drow@mvista.com>
14464
14465 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14466 variables.
14467 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14468 * configure.in: Add --with-sysroot.
14469 * configure: Regenerated.
14470 * main.c (gdb_sysroot): New variable.
14471 (captured_main): Initialize gdb_sysroot.
14472 * defs.h (gdb_sysroot): New extern declaration.
14473 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14474
afb5d334
MC
144752003-01-12 Michael Chastain <mec@shout.net>
14476
14477 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14478
751ceeb4
MC
144792003-01-12 Michael Chastain <mec@shout.net>
14480
14481 * top.c (print_gdb_version): Bump copyright year to 2003.
14482
94cd26f8
DC
144832003-01-12 David Carlton <carlton@bactrian.org>
14484
14485 * linespec.c (symtab_from_filename): Rename variable 's' to
14486 'file_symtab'.
14487
1ce79225
AC
144882003-01-12 Andrew Cagney <ac131313@redhat.com>
14489
14490 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14491 dummy frame.
14492 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14493
fa1fd571
AC
144942003-01-12 Andrew Cagney <ac131313@redhat.com>
14495
14496 * d10v-tdep.c: Include "gdb_assert.h".
14497 (d10v_store_return_value): Rewrite to match current interface.
14498 (d10v_extract_struct_value_address): Ditto.
14499 (d10v_extract_return_value): Ditto.
14500 (d10v_gdbarch_init): Set store_restore_value,
14501 extract_struct_value_address and extract_return_value.
14502
68b8d23e
JB
145032003-01-12 J. Brobecker <brobecker@gnat.com>
14504
14505 * hpread.c (set_namestring): New procedure replacing the
14506 SET_NAMESTRING macro.
14507 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14508 by calls to set_namestring.
14509
145102003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14511
14512 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14513 a compilation warning.
14514 (hpread_process_one_debug_symbol): Likewise.
14515
88d262ca
DC
145162003-01-10 David Carlton <carlton@math.stanford.edu>
14517
14518 * linespec.c (decode_line_1): Rename variable 's' to
14519 'file_symtab'.
14520 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14521 (decode_dollar): Ditto.
14522 (decode_variable): Ditto.
14523 (symbol_found): Ditto.
14524
86669319
MC
145252003-01-09 Michael Chastain <mec@shout.net>
14526
14527 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14528
616a9dc4
CV
145292003-01-07 Corinna Vinschen <vinschen@redhat.com>
14530
14531 * win32-nat.c (set_process_privilege): New function.
14532 (child_attach): Call set_process_privilege() to enable the
14533 SE_DEBUG_NAME user privilege if available in process token.
14534
3269bcfa
JB
145352003-01-10 J. Brobecker <brobecker@gnat.com>
14536
14537 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14538 compilation error in the previous revision.
14539
2b0ee454
DC
145402003-01-09 David Carlton <carlton@math.stanford.edu>
14541
14542 * linespec.c: Update copyright.
14543
b3ba1b44
DJ
145442003-01-09 Daniel Jacobowitz <drow@mvista.com>
14545
14546 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14547 than inferior_ptid.
14548 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14549
4ef3f3be
AC
145502003-01-09 Andrew Cagney <ac131313@redhat.com>
14551
479ab5a0
AC
14552 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14553 Update comments.
14554 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14555 (frame_saved_regs_zalloc): Update.
14556 (frame_saved_regs_register_unwind): Update.
14557 (create_new_frame): Update.
14558 (get_prev_frame): Update.
14559 (frame_extra_info_zalloc): Update.
14560 (deprecated_get_frame_saved_regs): Update.
14561 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14562 * cris-tdep.c: Update comment.
14563
bde58177
AC
14564 * somsolib.h: Fix function indentation.
14565 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14566 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14567 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14568 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14569 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14570
4ef3f3be
AC
14571 * infrun.c (follow_fork): Use ISO C definition.
14572 * expprint.c (print_subexp): Use xfree instead of free.
14573 * charset.c: Include "gdb_string.h" instead of <string.h>.
14574 (register_iconv_charsets): Use ISO C definition.
14575 (host_charset, target_charset): Ditto.
14576 * Makefile.in (charset.o): Update dependencies.
14577 (mi-cmd-env.o): Update dependencies.
14578
1c615f7a
AC
145792003-01-08 Andrew Cagney <cagney@redhat.com>
14580
14581 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14582 get_frame_base.
14583
c9a1dc08
AC
145842003-01-08 Andrew Cagney <ac131313@redhat.com>
14585
14586 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14587 build directories. Save edited gdb output in Mbuild.log. If a
14588 build fails, remove any final GDB executable.
14589
dbad9d94
AC
145902003-01-08 Andrew Cagney <ac131313@redhat.com>
14591
14592 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14593 replacing hex constants with function names and stripping leading
14594 file name directory prefixes.
14595
8d357cca
AC
145962003-01-08 Andrew Cagney <cagney@redhat.com>
14597
14598 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14599 get_frame_base.
14600
bca02a8a
DC
146012003-01-08 David Carlton <carlton@math.stanford.edu>
14602
14603 * linespec.c (decode_line_1): Move code into decode_variable.
14604 (decode_variable): New function.
14605
7f8ab3a0
AC
146062003-01-08 Andrew Cagney <ac131313@redhat.com>
14607
14608 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14609
7b5849cc
AC
146102003-01-08 Andrew Cagney <cagney@redhat.com>
14611
14612 * cris-tdep.c (cris_frame_init_saved_regs): Use
14613 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14614 saved_regs buffer.
14615 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14616 (sh64_nofp_frame_init_saved_regs): Ditto.
14617 (sh_fp_frame_init_saved_regs): Ditto.
14618 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14619 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14620 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14621 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14622
72a5efb3
DJ
146232003-01-08 Daniel Jacobowitz <drow@mvista.com>
14624
14625 * minsyms.c (lookup_minimal_symbol): Update comment.
14626 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14627 (lookup_minimal_symbol_solib_trampoline): Likewise.
14628
11c02a10
AC
146292003-01-08 Andrew Cagney <cagney@redhat.com>
14630
aab3ea25
AC
14631 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14632 frame_relative_level.
14633
da50a4b7
AC
14634 * alpha-tdep.c: Use get_frame_extra_info.
14635 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14636 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14637 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14638 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14639
11c02a10
AC
14640 * alpha-tdep.c: Use get_next_frame.
14641 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14642 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14643 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14644 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14645 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14646 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14647 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14648
1e2330ba
AC
146492003-01-07 Andrew Cagney <cagney@redhat.com>
14650
14651 * alpha-tdep.c: Use get_frame_base.
14652 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14653 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14654 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14655 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14656 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14657 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14658 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14659 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14660
2d75187b
AC
146612003-01-07 Andrew Cagney <cagney@redhat.com>
14662
14663 * frame.c (deprecated_get_frame_context): New function.
14664 (deprecated_set_frame_context): New function.
14665 * frame.h (deprecated_get_frame_context): Declare.
14666 (deprecated_set_frame_context): Declare.
14667 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14668 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14669
483d36b2
AC
146702003-01-07 Andrew Cagney <cagney@redhat.com>
14671
14672 * frame.c (deprecated_set_frame_next_hack): New function.
14673 (deprecated_set_frame_prev_hack): New function.
14674 * frame.h (deprecated_set_frame_next_hack): Declare.
14675 (deprecated_set_frame_prev_hack): Declare.
14676 * mcore-tdep.c (analyze_dummy_frame): Use
14677 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14678 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14679
14e91ac5
DC
146802003-01-07 David Carlton <carlton@math.stanford.edu>
14681
14682 * linespec.c (decode_line_1): Move code into decode_dollar.
14683 (decode_dollar): New function.
14684
b0c6b05c
AC
146852003-01-07 Andrew Cagney <cagney@redhat.com>
14686
14687 * arm-tdep.c (arm_init_extra_frame_info): Use
14688 deprecated_update_frame_base_hack.
14689 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14690 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14691 (fix_frame_pointer): Ditto.
14692 (mn10300_analyze_prologue): Ditto.
14693
a00a19e9
AC
146942003-01-07 Andrew Cagney <cagney@redhat.com>
14695
14696 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14697 extra_info using frame_extra_info_zalloc.
14698 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14699 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14700 (sh64_init_extra_frame_info): Ditto.
14701 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14702 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14703 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14704 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14705 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14706 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14707 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14708 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14709 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14710 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14711 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14712 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14713
14714 * mn10300-tdep.c (analyze_dummy_frame): Use
14715 deprecated_set_frame_extra_info_hack.
14716 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14717
1fb4c65b
JB
147182003-01-07 J. Brobecker <brobecker@gnat.com>
14719
14720 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14721 class is not scText. These do not define "real" procedures.
14722 (parse_partial_symbols): Likewise.
14723
9fe7d6bf
MS
147242003-01-06 Michael Snyder <msnyder@redhat.com>
14725
14726 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14727
f6c609c4
AC
147282003-01-06 Andrew Cagney <ac131313@redhat.com>
14729
14730 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14731 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14732 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14733 deprecated_frame_xmalloc_with_cleanup.
14734 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14735 deprecated_frame_xmalloc.
14736 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14737 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14738
d995ff4b
AC
147392003-01-06 Andrew Cagney <cagney@redhat.com>
14740
84dc46cb
AC
14741 * x86-64-linux-tdep.c: Include "osabi.h".
14742 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14743
d995ff4b
AC
14744 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14745
66140c26
AC
147462003-01-06 Andrew Cagney <cagney@redhat.com>
14747
14748 * MAINTAINERS (Target Instruction Set Architectures): Update
14749 arm-elf. Can be built with -Werror, has been multiarched.
14750
14751 * value.h (unpack_long): Make buffer parameter constant.
14752 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14753 * scm-lang.h (scm_parse): Ditto.
14754 * defs.h (extract_typed_address, extract_address): Ditto.
14755 (extract_long_unsigned_integer): Ditto.
14756 * inferior.h (unsigned_pointer_to_address): Ditto.
14757 (signed_pointer_to_address): Ditto.
14758 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14759 * gdbarch.h, gdbarch.c: Regenerate.
14760 * findvar.c (extract_long_unsigned_integer): Update.
14761 (extract_address): Update.
14762 (extract_typed_address): Update.
14763 (unsigned_pointer_to_address): Update.
14764 * values.c (unpack_long): Update.
14765 (unpack_double): Update.
14766 (unpack_pointer): Update.
14767 (unpack_field_as_long): Update.
14768 * d10v-tdep.c (d10v_pointer_to_address): Update.
14769 * avr-tdep.c (avr_pointer_to_address): Update.
14770 * scm-lang.c (scm_unpack): Update.
14771 * findvar.c (signed_pointer_to_address): Update.
14772
b089b3da
ML
147732003-01-06 Michal Ludvig <mludvig@suse.cz>
14774
8ffd9b1b 14775 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14776 since it is in i386-tdep.c.
14777
aff87235
JB
147782003-01-06 J. Brobecker <brobecker@gnat.com>
14779
14780 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14781 failure introduced in the previous change.
14782
34f5e845
MC
147832003-01-05 Michael Chastain <mec@shout.net>
14784
14785 * README: Remove references to deleted remote-*.c files:
14786 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14787 remote-nrom.c, remote-os9k.c, remote-udi.c.
14788
28bcfd30
MK
147892003-01-05 Mark Kettenis <kettenis@gnu.org>
14790
14791 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14792 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14793 i386_get_longjmp_target.
14794
15a5b3ee
AC
147952003-01-05 Andrew Cagney <ac131313@redhat.com>
14796
14797 * arm-tdep.c (prologue_cache): Change to a pointer.
14798 (_initialize_arm_tdep): Allocate prologue_cache.
14799 (check_prologue_cache): Update.
14800 (save_prologue_cache): Update.
14801 (arm_gdbarch_init): Update.
14802
c263362b
DJ
148032003-01-04 Daniel Jacobowitz <drow@mvista.com>
14804
14805 * stabsread.c (update_method_name_from_physname): Call complaint()
14806 instead of error.
14807
51603483
DJ
148082003-01-04 Daniel Jacobowitz <drow@mvista.com>
14809
14810 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14811 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14812 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14813
14814 * blockframe.c: Include "gdbcmd.h" and "command.h".
14815 (backtrace_below_main): New variable.
14816 (file_frame_chain_valid, func_frame_chain_valid)
14817 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14818 (generic_func_frame_chain_valid): Remove functions.
14819 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14820 (_initialize_blockframe): New function.
14821 * Makefile.in (blockframe.o): Update dependencies.
14822 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14823 comment. Call frame_chain_valid ().
14824 * frame.h: Remove old prototypes. Add prototype for
14825 frame_chain_valid and update comments to match.
14826 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14827 Remove old comment.
14828 * gdbarch.h: Regenerated.
14829 * gdbarch.c: Regenerated.
14830
14831 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14832 set_gdbarch_frame_chain_valid.
14833 * avr-tdep.c (avr_gdbarch_init): Likewise.
14834 * cris-tdep.c (cris_gdbarch_init): Likewise.
14835 * frv-tdep.c (frv_gdbarch_init): Likewise.
14836 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14837 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14838 (i386_nw_init_abi): Likewise.
14839 (i386_gdbarch_init): Likewise.
14840 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14841 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14842 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14843 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14844 * mips-tdep.c (mips_gdbarch_init): Likewise.
14845 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14846 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14847 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14848 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14849 * s390-tdep.c (s390_gdbarch_init): Likewise.
14850 * sh-tdep.c (sh_gdbarch_init): Likewise.
14851 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14852 * v850-tdep.c (v850_gdbarch_init): Likewise.
14853 * vax-tdep.c (vax_gdbarch_init): Likewise.
14854 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14855
14856 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14857 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14858 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14859 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14860 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14861 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14862 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14863 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14864
b00a8037
DJ
148652002-01-04 Daniel Jacobowitz <drow@mvista.com>
14866
14867 * Makefile.in (acconfig_h): Remove incorrect macro.
14868 (config_h): Define.
14869 (osabi.o): Update dependencies.
14870 * configure.tgt: Set gdb_osabi based on target triplet.
14871 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14872 * configure: Regenerated.
14873 * config.in: Regenerated.
14874 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14875 (GDB_OSABI_DEFAULT): Define if not already defined.
14876 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14877 (set_osabi_string): New variables.
14878 (gdbarch_register_osabi): Add new OS ABI to
14879 gdb_osabi_available_names.
14880 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14881 (set_osabi, show_osabi): New functions.
14882 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14883
4be87837
DJ
148842003-01-04 Daniel Jacobowitz <drow@mvista.com>
14885
14886 * arch-utils.c (gdbarch_info_init): Set osabi to
14887 GDB_OSABI_UNINITIALIZED.
14888 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14889 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14890 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14891 * gdbarch.c: Regenerated.
14892 * gdbarch.h: Regenerated.
14893 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14894 there's no BFD.
14895 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14896 * osabi.h (enum gdb_osabi): Move to defs.h.
14897 (gdbarch_init_osabi): Update prototype.
14898 * defs.h (enum gdb_osabi): Moved here.
14899 * Makefile.in: Update dependencies.
14900
14901 * alpha-tdep.h: Don't include "osabi.h".
14902 (struct gdbarch_tdep): Remove osabi member.
14903 * alpha-tdep.c: Include "osabi.h".
14904 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14905 iterate over arches. Update call to gdbarch_init_osabi.
14906 (alpha_dump_tdep): Don't dump osabi.
14907 * alpha-linux-tdep.c: Include "osabi.h".
14908 * alpha-osf1-tdep.c: Include "osabi.h".
14909 * alphafbsd-tdep.c: Include "osabi.h".
14910 * alphanbsd-tdep.c: Include "osabi.h".
14911
14912 * arm-tdep.h: Don't include "osabi.h".
14913 (struct gdbarch_tdep): Remove osabi member.
14914 * arm-tdep.c: Include "osabi.h".
14915 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14916 iterate over arches. Update call to gdbarch_init_osabi.
14917 (arm_dump_tdep): Don't dump osabi.
14918 * arm-linux-tdep.c: Include "osabi.h".
14919 * armnbsd-tdep.c: Include "osabi.h".
14920
14921 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14922 Update call to gdbarch_init_osabi.
14923
14924 * i386-tdep.h: Don't include "osabi.h".
14925 (struct gdbarch_tdep): Remove osabi member.
14926 * i386-tdep.c: Include "osabi.h".
14927 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14928 iterate over arches. Update call to gdbarch_init_osabi.
14929 (i386_dump_tdep): Don't dump osabi.
14930 * i386-linux-tdep.c: Include "osabi.h".
14931 * i386-sol2-tdep.c: Include "osabi.h".
14932 * i386bsd-tdep.c: Include "osabi.h".
14933 * i386gnu-tdep.c: Include "osabi.h".
14934 * i386ly-tdep.c: Include "osabi.h".
14935 * i386nbsd-tdep.c: Include "osabi.h".
14936 * i386obsd-tdep.c: Include "osabi.h".
14937
14938 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14939 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14940 check osabi when iterating over arches. Update call to
14941 gdbarch_init_osabi.
14942 (mips_dump_tdep): Don't dump osabi.
14943
14944 * ns32k-tdep.h: Don't include "osabi.h".
14945 (struct gdbarch_tdep): Remove.
14946 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14947 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14948 allocate tdep. Update call to gdbarch_init_osabi.
14949 (ns32k_dump_tdep): Remove.
14950 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14951 * ns32knbsd-tdep.c: Include "osabi.h".
14952
14953 * ppc-tdep.h: Don't include "osabi.h".
14954 (struct gdbarch_tdep): Remove osabi member.
14955 * rs6000-tdep.c: Include "osabi.h".
14956 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14957 osabi when iterating over arches. Update call to
14958 gdbarch_init_osabi.
14959 (rs6000_dump_tdep): Don't dump osabi.
14960 * ppc-linux-tdep.c: Include "osabi.h".
14961 * ppcnbsd-tdep.c: Include "osabi.h".
14962
14963 * sh-tdep.h: Don't include "osabi.h".
14964 (struct gdbarch_tdep): Remove osabi member.
14965 * sh-tdep.c: Include "osabi.h".
14966 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14967 iterate over arches. Update call to gdbarch_init_osabi.
14968 (sh_dump_tdep): Don't dump osabi.
14969 * shnbsd-tdep.c: Include "osabi.h".
14970
14971 * sparc-tdep.c: Include "osabi.h".
14972 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14973 iterate over arches. Update call to gdbarch_init_osabi.
14974 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14975 tdep structure.
14976
14977 * vax-tdep.h: Don't include "osabi.h".
14978 (struct gdbarch_tdep): Remove.
14979 * vax-tdep.c: Include "osabi.h".
14980 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14981 iterate over arches. Don't allocate tdep. Update call
14982 to gdbarch_init_osabi.
14983 (vax_dump_tdep): Remove.
14984 (_initialize_vax_tdep): Update call to gdbarch_register.
14985
a881cf8e
DJ
149862003-01-04 Daniel Jacobowitz <drow@mvista.com>
14987
14988 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14989 entirely.
14990 (breakpoint_re_set_one): Don't fetch the value for a disabled
14991 watchpoint.
14992
1e698235
DJ
149932003-01-04 Daniel Jacobowitz <drow@mvista.com>
14994
14995 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14996 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14997 (COERCE_FLOAT_TO_DOUBLE): Remove.
14998 * gdbarch.c: Regenerate.
14999 * gdbarch.h: Regenerate.
15000 * Makefile.in: Remove value_h from gdbarch_h.
15001 * valops.c (coerce_float_to_double): New variable.
15002 (default_coerce_float_to_double): Remove.
15003 (standard_coerce_float_to_double): Remove.
15004 (value_arg_coerce): Use coerce_float_to_double.
15005 (_initialize_valops): Add "set coerce-float-to-double".
15006 * value.h (default_coerce_float_to_double): Remove prototype.
15007 (standard_coerce_float_to_double): Remove prototype.
15008
15009 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
15010 prototyped.
15011 * mdebugread.c (parse_symbol): Likewise.
15012 * stabsread.c (define_symbol): Mark all functions as prototyped.
15013
15014 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
15015 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
15016 set_gdbarch_coerce_float_to_double.
15017 * arm-tdep.c (arm_gdbarch_init): Likewise.
15018 * frv-tdep.c (frv_gdbarch_init): Likewise.
15019 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
15020 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
15021 * mips-tdep.c (mips_gdbarch_init): Likewise.
15022 (mips_coerce_float_to_double): Remove.
15023 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15024 (rs6000_coerce_float_to_double): Remove.
15025 * s390-tdep.c (s390_gdbarch_init): Likewise.
15026 * sh-tdep.c (sh_gdbarch_init): Likewise.
15027 (sh_coerce_float_to_double): Remove.
15028 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15029 (sparc_coerce_float_to_double): Remove.
15030 * v850-tdep.c (v850_gdbarch_init): Likewise.
15031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
15032 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15033 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
15034 (hppa_coerce_float_to_double): Remove prototype.
15035 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15036
f436a26a
DJ
150372003-01-04 Daniel Jacobowitz <drow@mvista.com>
15038
15039 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
15040
248f8055
DJ
150412003-01-04 Daniel Jacobowitz <drow@mvista.com>
15042
15043 Suggested by Stewart Brown <sb24@avaya.com>:
15044 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
15045 in recursive calls. Handle TYPE_CODE_TYPEDEF.
15046 (c_type_print_varspec_suffix): Likewise.
15047
72cfdc76
MK
150482003-01-04 Mark Kettenis <kettenis@gnu.org>
15049
bfd260bb
MK
15050 * configure.in: Don't set and AC_SUBST SUBDIRS.
15051 * configure: Regenerated.
15052
72cfdc76
MK
15053 * configure.in: Remove code dealing with shared libraries.
15054 * Makefile.in: Remove HLDFLAGS and HLDENV.
15055 * configure: Regenerated.
15056
c8b8a898
AC
150572003-01-04 Andrew Cagney <ac131313@redhat.com>
15058
15059 * frame.c (deprecated_frame_xmalloc): New function.
15060 (deprecated_set_frame_saved_regs_hack): New function.
15061 (deprecated_set_frame_extra_info_hack): New function.
15062 * frame.h (deprecated_frame_xmalloc): Declare.
15063 (deprecated_set_frame_saved_regs_hack): Declare.
15064 (deprecated_set_frame_extra_info_hack): Declare.
15065
14abd0fb
MK
150662003-01-04 Mark Kettenis <kettenis@gnu.org>
15067
8ee53726
MK
15068 * configure.in: Move code that provides the --enable-gdbtk option
15069 right after the code that handles the --enable-tui option, and
15070 polish it somewhat.
15071 * configure: Regenerated.
15072
14abd0fb
MK
15073 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
15074 AC_CHECK_FUNCS and remove the old check for pread64.
15075 * acinclude.m4 (AC_GNU_SOURCE): New macro.
15076 * acconfig.h (_GNU_SOURCE): Add.
15077 (HAVE_PREAD64): Remove.
15078 * configure, aclocal.m4, config.in: Regenerated.
15079
b2fb4676
AC
150802003-01-03 Andrew Cagney <ac131313@redhat.com>
15081
15082 * alpha-tdep.c: Use get_frame_saved_regs.
15083 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15084 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15085 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15086 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15087 * vax-tdep.c, xstormy16-tdep.c: Ditto.
15088
8dcde887
MK
150892003-01-03 Mark Kettenis <kettenis@gnu.org>
15090
15091 * configure.in: Remove all use of the SUBDIRS variable; add
15092 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
15093 code providing the --enable-multi-ice option, and move it right in
15094 front of the code that checks whether gdbserver is supported.
15095 Polish that too.
15096 * configure: Regenerated.
15097 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15098 @SUBDIRS@.
15099
8ccd593b
AC
151002003-01-03 Andrew Cagney <cagney@redhat.com>
15101
15102 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15103 * avr-tdep.c, cris-tdep.c: Ditto.
15104 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15105 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 15106
91151a06
MK
151072003-01-03 Mark Kettenis <kettenis@gnu.org>
15108
15109 * configure.in: Remove --enable-netrom option.
15110 * configure: Regenerated.
15111
8fe84d01
MK
151122003-01-03 Mark Kettenis <kettenis@gnu.org>
15113
15114 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15115 declaration for `struct re_pattern_buffer' instead.
15116 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15117
f0394be6
JB
151182003-01-03 J. Brobecker <brobecker@gnat.com>
15119
15120 * mdebugread.c (parse_symbol): Count until the stEnd matching
15121 the structure name.
15122
27e9bf90
MK
151232003-01-02 Mark Kettenis <kettenis@gnu.org>
15124
93d331ba
MK
15125 * configure.in: Remove --with-cpu option.
15126 subscripts. Remove evil changequotes here.
15127 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15128 * config.in, configure: Regenerated.
8ffd9b1b 15129
27e9bf90
MK
15130 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15131 * configure.in: Cleanup section that sources GDB and BFD configure
15132 subscripts. Remove evil changequotes here.
15133 * config.in, configure: Regenerated.
15134
50abf9e5
AC
151352003-01-02 Andrew Cagney <ac131313@redhat.com>
15136
15137 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15138 frame accessor methods.
15139 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15140 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15141 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15142 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15143 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15144 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15145 * z8k-tdep.c: Ditto.
8ffd9b1b 15146
287c1a40
MK
151472003-01-02 Mark Kettenis <kettenis@gnu.org>
15148
f5dbc56d
MK
15149 * configure.in: Remove UI_OUT configuration code.
15150 * ada-lang.c: Update assuming UI_OUT is always true.
15151 * Makefile.in (UIOUT_CFLAGS): Remove.
15152 * configure: Regenerated.
15153 * TODO: Remove blurb about elimination of -DUI_OUT.
15154
627af7ea
MK
15155 * configure.in: Move code that provides the --enable-gdbcli,
15156 --enable-gdbmi options right before the code that handles the
15157 --enable-tui option. Polish a bit.
15158 * configure: Regenerated.
15159
06825bd1
MK
15160 * configure.in: Rewrite check for GNU regex and the
15161 --without-included regex option, and move it into the "Checks for
15162 library functions" section. This makes us use the system regex
15163 again by default on systems with version 2 of the GNU C library.
15164 This was apparently broken.
15165 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15166 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15167 * config.in, configure: Regenerated.
15168
287c1a40
MK
15169 * configure.in: Move code that provides the --enable-tui option
15170 before the "Checks for libraries" section. Polish the code
15171 somewhat and set need_curses to yes if we build the TUI. Rewrite
15172 code that looks for a library providing termcap functionality to
15173 match more closely what's done in the Readline library, and move
15174 it into to the "Checks for libraries" section.
15175 * configure: Regenerated.
15176 * Makefile.in (TERMCAP): Remove variable.
15177 * config/i386/go32.mh (TERMCAP): Remove variable.
15178
684e56bf
AC
151792003-01-02 Andrew Cagney <ac131313@redhat.com>
15180
15181 * MAINTAINERS: Mention gdb_mbuild.sh.
15182 * gdb_mbuild.sh: Rewrite.
15183
e1ea1d75
MK
151842003-01-02 Mark Kettenis <kettenis@gnu.org>
15185
15186 * configure.in: Fix typo in last change.
15187 * config.in, configure: Regenerated.
15188
1b831c93
AC
151892003-01-02 Andrew Cagney <ac131313@redhat.com>
15190
15191 * valarith.c (value_binop): Delete obsolete code and comments.
15192 * configure.host: Ditto.
15193 * buildsym.h (make_blockvector): Ditto.
15194 * buildsym.c (make_blockvector): Ditto.
15195 * defs.h (enum language): Ditto.
15196 (chill_demangle): Ditto.
15197 * elfread.c (elf_symtab_read): Ditto.
15198 * dwarfread.c (CHILL_PRODUCER): Ditto.
15199 (set_cu_language): Ditto.
15200 (handle_producer): Ditto.
15201 * expprint.c (print_subexp): Ditto.
15202 * gdbtypes.c (chill_varying_type): Ditto.
15203 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15204 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15205 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15206 (chill_varying_type): Ditto.
15207 * language.h (_LANG_chill): Ditto.
15208 * language.c (binop_result_type, integral_type): Ditto.
15209 (character_type, string_type, structured_type): Ditto.
15210 (lang_bool_type, binop_type_check): Ditto.
15211 * stabsread.h (os9k_stabs): Ditto.
15212 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15213 (define_symbol, read_type, read_struct_fields): Ditto.
15214 (read_array_type, read_enum_type, read_huge_number): Ditto.
15215 (read_range_type, start_stabs): Ditto.
15216 * symfile.c (init_filename_language_table): Ditto.
15217 (add_psymbol_with_dem_name_to_list): Ditto.
15218 * symtab.c (symbol_init_language_specific): Ditto.
15219 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15220 * symtab.h (struct general_symbol_info): Ditto.
15221 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15222 * typeprint.c (typedef_print): Ditto.
15223 * utils.c (fprintf_symbol_filtered): Ditto.
15224 * valops.c (value_cast, search_struct_field, value_slice): Delete
15225 obsolete code.
15226 (varying_to_slice): Delete function.
15227 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15228 (varying_to_slice): Delete declaration.
15229 * MAINTAINERS: Update.
15230
8bb2c122
MK
152312003-01-02 Mark Kettenis <kettenis@gnu.org>
15232
97bf5e38
MK
15233 * configure.in: Reorganize "Checks for library functions section"
15234 a bit. Remove check for `btowc' and `isascii' functions.
15235 * configure: Regenerated.
15236
5ee754fc
MK
15237 * acconfig.h (_MSE_INT_H): Remove.
15238 * configure.in: Create "Checks for header files" section, and move
15239 appropriate tests there. Don't check for objlist.h, wchar.h,
15240 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15241 misdetection fix. Also add "Checks for types", "Checks for
15242 compiler characteristics" and "Checks for library functions"
15243 sections.
15244 * config.in, configure: Regenerated.
15245
8bb2c122
MK
15246 * configure.in: Create "Checks for programs" section, and move
15247 appropriate tests there.
15248
9a156167
MK
152492003-01-01 Mark Kettenis <kettenis@gnu.org>
15250
15251 * configure.in: Create "Checks for libraries" section, and move
15252 appropriate tests there. Cleanup check for wctype in libw. Use
15253 AC_SEARCH_LIBS to see whether we need libsocket.
15254 * configure: Regenerated.
15255
a80e2bcb 15256For older changes see ChangeLog-2002
c906108c
SS
15257\f
15258Local Variables:
15259mode: change-log
15260left-margin: 8
15261fill-column: 74
15262version-control: never
15263End:
This page took 1.175961 seconds and 4 git commands to generate.