From David Mosberger <davidm@hpl.hp.com>:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
503ff15d
KB
12003-12-12 Kevin Buettner <kevinb@redhat.com>
2
3 From David Mosberger <davidm@hpl.hp.com>:
4 * libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
5 with a single unw_dyn_info_t pointer.
6 (libunwind_find_dyn_list): Likewise.
7 * libunwind-frame.h: Likewise.
8 * ia64-tdep.c (ia64_find_unwind_table): Switch to using
9 UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
10 entire unwind-table at once. Support for this table format has
11 been added to libunwind v0.95.
12 (ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
13 (ia64_get_dyn_info_list): Adjust for interface change for
14 libunwind_find_dyn_list().
15
468d015d
JJ
162003-12-12 Jeff Johnston <jjohnstn@redhat.com>
17
18 * breakpoint.c (breakpoint_enabled): New function to test whether
19 breakpoint is active and enabled.
20 (insert_bp_location, insert_breakpoints): Call new function to test
21 for enabled breakpoint.
22 (remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
23 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
24 (disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
25 (disable_watchpoints_before_interactive_call_start)
26 (breakpoint_re_set_one): Ditto.
27 (bpstat_stop_status): Use new function and simplify test.
28
f82de61c
MK
292003-12-11 Mark Kettenis <kettenis@gnu.org>
30
31 * observer.c (observer_test_first_observer)
32 (observer_test_second_observer, observer_test_third_observer):
33 Don't define as `static'.
34 (observer_test_first_notification_function)
35 (observer_test_second_notification_function)
36 (observer_test_third_notification_function): Likewise.
37
9db7c108
MK
382003-12-10 Mark Kettenis <kettenis@gnu.org>
39
40 * solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
41 of (0).
42
8bfdb672
DD
432003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
44
45 * MAINTAINERS (write after approval): Add myself.
46
454d0511
DD
472003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
48
49 * config/h8300/tm-h8300.h (h8300hmode): Remove.
50 (h8300hmode): Likewise.
51 (h8300smode): Likewise.
52 (h8300sxmode): Likewise.
53 (h8300_normal_mode): Likewise.
54 (GDB_TARGET_IS_H8300): Likewise.
55 (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
56 * h8300-tdep.c (is_h8300hmode): New function.
57 (is_h8300smode): New function.
58 (is_h8300sxmode): New function.
59 (is_h8300_normal_mode): New function.
60 (BINWORD): Use new functions.
61 (h8300_examine_prologue): Likewise.
62 (h8300_print_register): Likewise.
63 (h8300_print_registers_info): Likewise.
64 (h8300_register_type): Likewise.
65 (h8300_gdbarch_init): Remove use of globals like h8300hmode.
66 * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
67 (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
68 (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
69
7ae4c3a5
JB
702003-12-10 J. Brobecker <brobecker@gnat.com>
71
72 * frame.c (select_frame): Get the current frame PC using
73 get_frame_address_in_block() instead of get_frame_pc().
74 * stack.c (get_frame_language): Likewise.
75
9b74d5d3
KB
762003-12-08 Kevin Buettner <kevinb@redhat.com>
77
78 * remote.c (remote_open_1, remote_cisco_open): Avoid closing
79 remote_desc more than once.
80
e7ebf6d6
AC
812003-12-07 Andrew Cagney <cagney@redhat.com>
82
83 * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
84 directly calling strcmp equivalents. Add disclaimer.
85
8ccc1287
AC
862003-12-06 Andrew Cagney <cagney@redhat.com>
87
88 * remote.c (remote_fetch_registers): For short packets, explicitly
89 supply a zero value. Use regcache_raw_supply. Fix suggested by
90 Jonathan Larmour.
91
32edc941
JJ
922003-12-05 Jeff Johnston <jjohnstn@redhat.com>
93
94 * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
95 format to be the i387 extended float format which is used for
96 long doubles stored in memory.
97
2af2aeb0
MK
982003-12-05 Mark Kettenis <kettenis@gnu.org>
99
100 From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
101 * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
102 column instead of translating it.
103
362ff856
MC
1042003-12-04 Michael Chastain <mec.gnu@mindspring.com>
105
106 Partial fix for PR c++/1465.
107 Fix for PR c++/1377.
108 * cp-support.h (cp_lookup_rtti_type): New function.
109 * cp-support.c (cp_lookup_rtti_type): New function.
110 * gnu-v2-abi.c: Update copyright years.
111 (gnuv2_rtti_type): Call cp_lookup_rtti_type.
112 * gnu-v3-abi.c: Update copyright years.
113 (gnuv3_rtti_type): Call cp_lookup_rtti_type.
114
149d821b
JB
1152003-12-04 J. Brobecker <brobecker@gnat.com>
116
117 * stabsread.c (read_type): Save a reference to types that are defined
118 as cross references to other types.
119
77f091dd
RM
1202003-12-02 Roland McGrath <roland@redhat.com>
121
122 * thread-db.c (enable_thread_event): Change return type to
123 td_err_e. Return TD_OK or error code.
124 (enable_thread_event_reporting): Update callers.
125
59659be2
ILT
1262003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
127
128 * NEWS: Mention new C++ demangler code.
129
56d0d96a
AC
1302003-12-03 Andrew Cagney <cagney@redhat.com>
131
132 * ppc-linux-nat.c (store_register, fetch_register): Convert
133 between ptrace and regcache's wordsize.
134 (ppc_register_u_addr): Use the ptrace wordsize.
135
251a3ae3
KB
1362003-12-02 Kevin Buettner <kevinb@redhat.com>
137
138 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
139
188dd5d6
DJ
1402003-12-02 Daniel Jacobowitz <drow@mvista.com>
141
142 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
143 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
144 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
145 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
146 Delete.
147 (dwarf2_read_section): Remove offset and size arguments. Use
148 bfd_get_section_size_before_reloc and sectp->filepos.
149 (dwarf2_has_info): Clear section variables instead of offsets.
150 (dwarf2_locate_sections): Don't initialize the deleted variables.
151 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
152 (dwarf2_build_psymtabs_easy): Likewise.
153 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
154 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
155 declarations.
156 (dwarf2_read_section): Update prototype.
157 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
158 Use bfd_get_section_size_before_reloc instead of global size
159 variables.
160
013be872
MC
1612003-12-01 Michael Chastain <mec.gnu@mindspring.com>
162
163 * dwarfread.c: Update documentation on the state of dwarf-1.
164
5994185b
AC
1652003-12-01 Andrew Cagney <cagney@redhat.com>
166
0748d941
AC
167 Obsolete old MIPS SVr3 and SVr4 systems.
168 * NEWS: Mention obsoleted systems.
169 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
170 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
171 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
172 obsolete.
173 * config/mips/decstation.mh: Mark as obsolete.
174 * config/mips/littlemips.mh: Mark as obsolete.
175 * config/mips/nm-mips.h: Mark as obsolete.
176 * config/mips/xm-mips.h: Mark as obsolete.
177 * config/mips/news-mips.mh: Mark as obsolete.
178 * config/mips/nm-news-mips.h: Mark as obsolete.
179 * config/mips/riscos.mh: Mark as obsolete.
180 * config/mips/nm-riscos.h: Mark as obsolete.
181 * config/mips/xm-riscos.h: Mark as obsolete.
182 * config/mips/mipsv4.mt: Mark as obsolete.
183 * config/mips/tm-mipsv4.h: Mark as obsolete.
184 * config/mips/xm-mipsv4.h: Mark as obsolete.
185
5994185b
AC
186 Obsolete old m68k systems.
187 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
188 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
189 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
190 m680[01]0-sun-sunos3* as obsolete.
191 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
192 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
193 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
194 * config/m68k/sun3os4.mh: Mark file obsolete.
195 * config/m68k/xm-sun3os4.h: Mark file obsolete.
196 * config/m68k/sun3os3.mh: Mark file obsolete.
197 * config/m68k/nm-sun3.h: Mark file obsolete.
198 * config/m68k/xm-sun3.h: Mark file obsolete.
199 * config/m68k/sun2os4.mh: Mark file obsolete.
200 * config/m68k/sun2os3.mh: Mark file obsolete.
201 * config/m68k/nm-sun2.h: Mark file obsolete.
202 * config/m68k/xm-sun2.h: Mark file obsolete.
203 * config/m68k/m68kv4.mh: Mark file obsolete.
204 * config/m68k/nm-sysv4.h: Mark file obsolete.
205 * config/m68k/xm-m68kv4.h: Mark file obsolete.
206 * config/m68k/m68klynx.mh: Mark file obsolete.
207 * config/m68k/nm-m68klynx.h: Mark file obsolete.
208 * config/m68k/dpx2.mh: Mark file obsolete.
209 * config/m68k/xm-dpx2.h: Mark file obsolete.
210 * config/m68k/nm-dpx2.h: Mark file obsolete.
211 * config/m68k/delta68.mh: Mark file obsolete.
212 * config/m68k/xm-delta68.h: Mark file obsolete.
213 * config/m68k/nm-delta68.h: Mark file obsolete.
214 * config/m68k/3b1.mh: Mark file obsolete.
215 * config/m68k/xm-3b1.h: Mark file obsolete.
216 * config/m68k/sun3os4.mt: Mark file obsolete.
217 * config/m68k/tm-sun3os4.h: Mark file obsolete.
218 * config/m68k/sun3os3.mt: Mark file obsolete.
219 * config/m68k/tm-sun3.h: Mark file obsolete.
220 * config/m68k/sun2os4.mt: Mark file obsolete.
221 * config/m68k/tm-sun2os4.h: Mark file obsolete.
222 * config/m68k/sun2os3.mt: Mark file obsolete.
223 * config/m68k/tm-sun2.h: Mark file obsolete.
224 * config/m68k/m68kv4.mt: Mark file obsolete.
225 * config/m68k/tm-m68kv4.h: Mark file obsolete.
226 * config/m68k/m68klynx.mt: Mark file obsolete.
227 * config/m68k/tm-m68klynx.h: Mark file obsolete.
228 * config/m68k/dpx2.mt: Mark file obsolete.
229 * config/m68k/tm-dpx2.h: Mark file obsolete.
230 * config/m68k/delta68.mt: Mark file obsolete.
231 * config/m68k/tm-delta68.h: Mark file obsolete.
232 * config/m68k/3b1.mt: Mark file obsolete.
233 * config/m68k/tm-3b1.h: Mark file obsolete.
234
720aa428
MK
2352003-11-29 Mark Kettenis <kettenis@gnu.org>
236
237 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
238 (x86_64_reg_class): Remove enum.
239 (merge_classes, classify_argument, examine_argument): Remove
240 functions.
241 (INT_REGS, SSE_REGS): Remove macros.
242 (x86_64_push_arguments): Remove function.
243 (amd64_push_arguments): New function.
244 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
245 x86_64_push_arguments.
246
35883a3f
MK
2472003-11-28 Mark Kettenis <kettenis@gnu.org>
248
249 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
250 zero. Reorganize code a bit.
251
597684c5
MK
2522003-11-27 Mark Kettenis <kettenis@gnu.org>
253
3e74aeed
MK
254 * dwarf2-frame.c: Fix another comment.
255
efb1c01c
MK
256 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
257 (x86_64_use_struct_convention, x86_64_extract_return_value,
258 x86_64_store_return_value): Remove.
259 (amd64_reg_class): New enum.
260 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
261 amd64_return_value): New functions.
262 (x86_64_init_abi): Don't set extract_return_value,
263 store_return_value and use_struct_convention. Set return_value to
264 amd64_return_value.
265 * i387-tdep.h (i387_return_value): New prototype.
266 * i387-tdep.c (i387_return_value): New function.
267
e4e9607c
MK
268 * dwarf2-frame.c: Fix some comments and whitespace problems.
269
13739f4d
MK
270 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
271 "gdb_assert.h" and "gdb_string.h".
272 (i386nbsd_r_reg_offset): Rename from regmap.
273 (SIZEOF_STRUCT_REG): Remove.
274 (i386nbsd_supply_reg, fetch_core_registers,
275 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
276 Remove.
277 (i386nbsd_aout_supply_regset,
278 i386nbsd_aout_regset_from_core_section): New functions.
279 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
280 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
281 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
282 initialize TDEP->sc_num_regs.
283 (i386nbsdaout_init_abi): New function.
284 (i386nbsdelf_init_abi): Remove initialization of
285 TDEP->num_xmm_regs. Don't set num_regs here.
286 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
287 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
288
597684c5
MK
289 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
290 .note.netbsdcore.procinfo section to recognize NetBSD core files.
291
37e79b6b
MC
2922003-11-26 Michael Chastain <mec.gnu@mindspring.com>
293
294 * cp-abi.c: Update copyright years.
295
24557e30
AC
2962003-11-25 Andrew Cagney <cagney@redhat.com>
297
298 * thread-db.c (enable_thread_event): New function. Ensure that BP
299 is a code address.
300 (enable_thread_event_reporting): Use enable_thread_event.
77f091dd 301
78c63a3b
MS
3022003-11-25 Michael Snyder <msnyder@redhat.com>
303
304 * mips-tdep.c (mips_o64_extract_return_value): Correct for
305 NUM_REGS (see changes 2003-06-21).
306 (mips_eabi_extract_return_value): Ditto.
307
aff6338a
AC
3082003-11-25 Andrew Cagney <cagney@redhat.com>
309
310 * infrun.c: Don't include "exec.h".
311 (handle_inferior_event): Pass current_target, instead of exec_ops,
312 to SOLIB_ADD. Add comments.
313 * Makefile.in (infrun.o): Update dependencies.
314
9e08b29b
DJ
3152003-11-24 Daniel Jacobowitz <drow@mvista.com>
316
317 * NEWS: Mention improved location expression support.
318
603942cc
AC
3192003-11-23 Andrew Cagney <cagney@redhat.com>
320
321 * Makefile.in (infrun.o): Update dependencies.
322 * infrun.c: Include "exec.h".
323 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
324
66c57289
AC
3252003-11-23 Andrew Cagney <cagney@redhat.com>
326
dd3ecc14
AC
327 * frame.c (frame_unwind_signed_register): Delete function.
328 * frame.h (frame_unwind_register_signed): Delete declaration.
329 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
330
eec1a560
AC
331 * arch-utils.h (generic_cannot_extract_struct_value_address):
332 Delete declaration.
333
cb137aa5
AC
334 * defs.h (DEPRECATED_STREQN): Rename STREQN.
335 (DEPRECATED_STREQ): Rename STREQ.
336 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
337 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
338 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
339 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
340 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
341 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
342 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
343 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
344 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 345
cb137aa5 346 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
347 * elfread.c (elf_symtab_read): Delete STREQ from comment.
348
29dfb2ac
AC
3492003-11-22 Andrew Cagney <cagney@redhat.com>
350
213cc0ad
AC
351 * frame.c (deprecated_frame_xmalloc): Delete function.
352 (deprecated_set_frame_extra_info_hack): Delete function.
353 (deprecated_set_frame_saved_regs_hack): Delete function.
354 * frame.h (deprecated_frame_xmalloc): Delete declaration.
355 (deprecated_set_frame_extra_info_hack): Delete declaration.
356 (deprecated_set_frame_saved_regs_hack): Delete declaration.
357 * mcore-tdep.c (analyze_dummy_frame): Instead of
358 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
359 and deprecated_set_frame_extra_info_hack use
360 deprecated_frame_xmalloc_with_cleanup.
361 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
362 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
363 deprecated_set_frame_saved_regs_hack.
364
35bb18ac
AC
365 * mips-tdep.c (mips_frame_chain): Delete call to
366 deprecated_inside_entry_file.
367
38a7ce4b
AC
368 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
369 (deprecated_set_frame_prev_hack): Delete declaration.
370 * frame.c (deprecated_set_frame_next_hack): Delete function.
371 (deprecated_set_frame_prev_hack): Delete function.
372 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
373 "deprecated_set_frame_next_hack" and
374 "deprecated_set_frame_prev_hack".
375 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
376
47ebcfbe
AC
377 * mips-tdep.c (mips_register_convertible): Delete function.
378 (mips_register_convert_to_virtual): Delete function.
379 (mips_register_convert_to_raw): Delete function.
380 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
381 "deprecated_register_convert_to_virtual", or
382 "deprecated_register_convert_to_raw".
383 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
384 32/64 cooked to raw register conversions.
385
2a9264f1 386 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 387 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
388 (struct frame_info): Delete member "context".
389 * frame.h (deprecated_get_frame_context): Delete declaration.
390 (deprecated_set_frame_context): Delete declaration.
391
7af6341f
AC
392 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
393 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
394 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
395 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
396
10a08821
AC
397 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
398 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
399 mips_regsize.
400 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
401 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
402 * config/mips/tm-irix5.h: Update copyright.
403 (SIGFRAME_REG_SIZE): Delete macro.
404
00d33403
AC
405 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
406 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
407 declaration.
408 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
409 * infcall.c (call_function_by_hand): Delete #ifdef
410 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
411 * infcmd.c (print_return_value): Ditto.
412
74da7425
AC
413 * mips-tdep.c (skip_prologue_using_sal): New function.
414 (mips32_skip_prologue, mips16_skip_prologue): Use
415 skip_prologue_using_sal to get an upper bound on the search.
416
369864a4
AC
417 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
418 #if 0'ed macro.
419 * infrun.c (step_into_function): Delete #ifdef
420 PROLOGUE_FIRSTLINE_OVERLAP code.
421 * symtab.c (find_function_start_sal): Ditto.
422
a5a12285
AC
423 * remote-rdp.c: Update copyright.
424 (rdp_init): #if 0 references to "target_byte_order".
425
29dfb2ac
AC
426 * mips-tdep.c (mips_o32_store_return_value): Delete function.
427 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
428 (mips_o32_extract_return_value): Delete function.
429 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
430 (mips_n32n64_extract_return_value): Delete function.
431 (mips_n32n64_store_return_value): Delete function.
432 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
433 instead of "store_return_value", "extract_return_value", and
434 "use_struct_convention".
435 (mips_n32n64_use_struct_convention): Delete function.
436
3a3da38c
KB
4372003-11-21 Kevin Buettner <kevinb@redhat.com>
438
439 * frv-tdep.c (frv_frame_this_id): Eliminate call to
440 inside_entry_func().
441
c5e656c1
MK
4422003-11-20 Mark Kettenis <kettenis@gnu.org>
443
444 * i386-tdep.c (i386_extract_return_value,
445 i386_store_return_value): Add gdbarch argument. Use it instead of
446 determining it from REGCACHE. Remove recursive call for
447 structures with a single member.
448 (i386_use_struct_convention): Remove.
449 (i386_reg_struct_return_p): New function.
450 (i386_return_value): New function.
451 (i386_gdbarch_init): Set return_value, don't set
452 extract_return_value, store_return_value and
453 use_struct_convention.
454 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
455
515cc92e
JB
4562003-11-20 Jim Blandy <jimb@redhat.com>
457
458 * osabi.c (_initialize_gdb_osabi): Don't return before registering
459 the 'set osabi' and 'show osabi' commands.
460
3f1d7f16
MK
4612003-11-19 Mark Kettenis <kettenis@gnu.org>
462
463 * frame.c (get_prev_frame): Use result from
464 get_frame_address_in_block instead of get_frame_pc as argument to
465 inside_main_func. Fixes PR backtrace/1435.
466
667e784f
AC
4672003-11-19 Andrew Cagney <cagney@redhat.com>
468
469 * stack.c (return_command): Handle "void", "legacy" and "unknown
470 location" return values separatly.
471 * values.c (using_struct_return): Return 0 for a "void" return
472 type. Mention "register_value_being_returned".
473 (register_value_being_returned): Mention "using_struct_return".
474
4cecd739
DJ
4752003-11-19 Daniel Jacobowitz <drow@mvista.com>
476
477 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
478 (frame_base_offset): Delete.
479 (read_func_scope): Delete call to decode_locdesc.
480 (decode_locdesc): Update comments. Don't set the removed variables.
481 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
482 DW_OP_fbreg support.
483
6b992462
DJ
4842003-11-18 Daniel Jacobowitz <drow@mvista.com>
485
486 * dwarf2read.c (optimized_out, islocal): Remove.
487 (decode_locdesc): Update comments. Don't set optimized_out
488 or islocal.
489
968d1cb4
JJ
4902003-11-17 Jeff Johnston <jjohnstn@redhat.com>
491 David Mosberger <davidm@hpl.hp.com>
492
493 * ia64-tdep.c: Include elf.h.
77f091dd 494 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
968d1cb4
JJ
495 libunwind-ia64.h.
496 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
497 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
498 (ia64_is_fpreg, ia64_access_reg): Ditto.
499 (ia64_access_fpreg, ia64_access_mem): Ditto.
500 (get_kernel_table): Ditto.
501 (ia64_find_unwind_table): Ditto.
502 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
503 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
504 (ia64_libunwind_frame_prev_register): Ditto.
505 (ia64_libunwind_frame_sniffer): Ditto.
506 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
77f091dd
RM
507 sniffer. Register libunwind functions needed by generic
508 libunwind frame code using libunwind_frame_set_descr().
968d1cb4 509
d29caefc
DJ
5102003-11-16 Daniel Jacobowitz <drow@mvista.com>
511
512 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
513 bp_shlib_disabled breakpoint if there is a shared library mapped
514 at its expected address.
515
691c0433
AC
5162003-11-16 Andrew Cagney <cagney@redhat.com>
517
96cb1c2f
AC
518 * configure.tgt: Delete mips*tx39*-elf*.
519 * config/mips/tm-tx39.h: Delete file.
520 * config/mips/tx39.mt: Delete file.
521 * config/mips/tx39.mt: Delete file.
522
691c0433
AC
523 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
524 * remote-mips.c (common_open): Instead of
525 "mips_read_register_type" and "mips_set_processor_type_command"
526 call "deprecated_mips_set_processor_regs_hack".
527 * config/mips/tm-mips.h (mips_read_processor_type): Delete
528 declaration.
529 (mips_set_processor_type_command): Delete declaration.
530 * mips-tdep.c (mips_gdbarch_init): Update comment.
531 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
532 (mips_set_processor_type): Delete function.
533 (NUM_MIPS_PROCESSOR_REGS): Define.
534 (mips_show_processor_type_command): Delete function.
535 (mips_set_processor_type_command): Delete function.
536 (tmp_mips_processor_type): Delete.
537 (mips_processor_type): Delete.
538 (mips_processor_type_table): Delete.
539 (mips_r3051_reg_names): Delete.
540 (mips_r3081_reg_names): Delete.
541 (mips_lsi33k_reg_names): Delete.
542 (mips_processor_reg_names): Delete.
543 (mips_read_processor_type): Delete function.
544 (deprecated_mips_set_processor_regs_hack): New function.
545 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
546 (mips_register_name): Get the processor names from the tdep.
547 (mips_tx39_reg_names): New array.
548 (mips_generic_reg_names): Wire to a standard set of names.
77f091dd 549 (mips_gdbarch_init): Set "mips_processor_reg_names".
691c0433
AC
550 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
551 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
552 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
553
56cea623
AC
5542003-11-16 Andrew Cagney <cagney@redhat.com>
555
556 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
557 (mips_fpa0_regnum, mips_regnum): New function.
558 (mips_gdbarch_init): Fill in the "regnum" fields.
559 * mips-tdep.h (struct mips_regnum): Define.
560 (mips_regnum): Declare.
561 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
562 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
563 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
564 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
565 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
566 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
567 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
568 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
569 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
570 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
571 * remote-mips.c: Include "mips-tdep.h". Update.
572 * mipsnbsd-tdep.c: Update.
573 * mipsv4-nat.c: Update.
574 * mips-tdep.c: Update.
575 * mips-nat.c: Update.
576 * mips-linux-tdep.c: Update.
577 * mips-linux-nat.c: Update.
578 * irix5-nat.c: Update.
579 * dve3900-rom.c: Include "mips-tdep.h". Update.
580 (ignore_packet): Supress GCC warning.
581 * config/mips/nm-riscos.h: Update.
582
719ec221
AC
5832003-11-16 Andrew Cagney <cagney@redhat.com>
584
585 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
586 register_size.
587 (mips_register_raw_size): Delete function.
588 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
589 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
590 Check and set "mips64_transfers_32bit_regs_p".
591 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
592 (mips_register_convertible): Check the architecture's
593 "mips64_transfers_32bit_regs_p".
594 (set_mips64_transfers_32bit_regs): New function.
595 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
596 "set remote-mips64-transfers-32bit-regs" command. Specify
597 set_mips64_transfers_32bit_regs as the set function.
56cea623 598 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 599
20187ed5
MK
6002003-11-16 Mark Kettenis <kettenis@gnu.org>
601
602 * i386-tdep.h (i386_supply_gregset): Provide prototype.
603 * i386-tdep.c (i386_supply_gregset): Make public.
604
6771c427
AC
6052003-11-16 Andrew Cagney <cagney@redhat.com>
606
607 * mips-tdep.c (mips_register_byte): Delete function.
608 (mips_gdbarch_init): Do not set "deprecated_register_byte".
609 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
610 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
611 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
612
c8048956
MK
6132003-11-16 Mark Kettenis <kettenis@gnu.org>
614
615 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
616
cc8a868a
AC
6172003-11-16 Andrew Cagney <cagney@redhat.com>
618
619 * config/mips/linux64.mt: Delete file.
620 * config/mips/tm-linux64.h: Delete file.
621 * config/mips/tm-mips64.h: Delete file.
622 * config/mips/embed64.mt: Delete file.
623 * config/djgpp/fnchange.lst: Update.
624 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
625 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
626 * config/mips/tm-irix6.h: Update copyright. Include
627 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
628 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
629 "OP_LDGPR".
630
5ef80fb0
AC
6312003-11-15 Andrew Cagney <cagney@redhat.com>
632
633 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
634 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
635 n32 registers 64 bit.
636 (mips_register_raw_size, mips_register_byte): For pseudo
637 registers, use the register's pseudo size and not the
638 corresponding raw register's size.
639 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
640 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
641 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
642 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
643
4246e332
AC
6442003-11-15 Andrew Cagney <cagney@redhat.com>
645
8fa9cfa1
AC
646 * mips-tdep.c (struct gdbarch_tdep): Delete member
647 gdb_target_is_mips64.
648 (GDB_TARGET_IS_MIPS64): Delete macro.
649 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
650 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
651 (mips_addr_bits_remove): Simplify.
652
c73e8f27
AC
653 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
654 register_size.
655
4246e332
AC
656 Replace MIPS_REGSIZE with mips_regsize.
657 * mips-tdep.c (mips_regsize): New function.
658 * mips-tdep.h (mips_regsize): Declare.
659 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
660 (SIZEOF_STRUCT_REG): Update.
661 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
662 (mipsnbsd_fill_reg): Update.
663 (mipsnbsd_supply_fpreg): Update.
664 (mipsnbsd_fill_fpreg): Update.
665 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
666 * mips-tdep.c (mips_register_raw_size): Update.
667 (mips_register_type): Update.
668 (SIGFRAME_BASE): Update.
669 (SIGFRAME_PC_OFF): Update.
670 (SIGFRAME_REGSAVE_OFF): Update.
671 (SIGFRAME_FPREGSAVE_OFF): Update.
672 (SIGFRAME_REG_SIZE): Update.
673 (mips32_heuristic_proc_desc): Update.
674 (print_gp_register_row): Update.
675 (mips_dump_tdep): Do not print MIPS_REGSIZE.
676 * irix5-nat.c (supply_gregset): Update.
677 (fetch_core_registers): Update.
678 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
679 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
680 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
681 (MIPS_REGISTER_BYTE): Update.
682 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
683
5e044b1e
AC
6842003-11-15 Andrew Cagney <cagney@redhat.com>
685
686 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
687 USE_REGISTER_NOT_ARG.
688 * stabsread.c (define_symbol): Update.
689
3a16a68c
AC
6902003-11-15 Andrew Cagney <cagney@redhat.com>
691
692 * bcache.h (deprecated_bcache): Declare.
693 (bcache): Make returned buffer constant.
694 * bcache.c (deprecated_bcache): New function.
695 (bcache_data): New function.
696 (bcache): Call bcache data.
697 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
698 (add_psymbol_with_dem_name_to_list): Ditto.
699
bb41a796
MK
7002003-11-15 Mark Kettenis <kettenis@gnu.org>
701
702 * glibc-tdep.h (struct gdbarch): Declare opaque.
703 (glibc_skip_solib_resolver): Adjust prototype.
704 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
705 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
706 (arm_linux_init_abi): Set skip_solib_resolver.
707 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
708 (i386_linux_init_abi): Set skip_solib_resolver.
709 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
710 (arm_linux_skip_solib_resolver): Remove prototype.
711 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
712 (i386_linux_skip_solib_resolver): Remove prototype.
713
4c8c40e6
MK
7142003-11-14 Mark Kettenis <kettenis@gnu.org>
715
716 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
717 function.
718 * gdbarch.c, gdbarch.h: Regenerate.
719 * infrun.c (handle_inferior_event): Call
720 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
721 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
722 definition.
723 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
724 prototype.
725
0e5d83e3
JJ
7262003-11-14 Jeff Johnston <jjohnstn@redhat.com>
727
728 * libunwind-frame.c: New file.
729 * libunwind-frame.h: New file.
730 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
731 * configure.in: Add --with-libunwind option support. Define
77f091dd 732 HAVE_LIBUNWIND if libunwind support selected / defaulted.
0e5d83e3
JJ
733 Also check for libunwind.h and libunwind-ia64.h headers.
734 * configure: Regenerated.
735 * Makefile.in: Add support for libunwind-frame.o.
736 * config.in: Regenerated.
737
287a334e 7382003-11-14 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 739
287a334e
JJ
740 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
741 set up the ia64 linux native target method for getting the kernel
742 unwind table.
743 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
744 * inftarg.c (child_xfer_partial): Enable section of code to
745 handle TARGET_OBJECT_UNWIND_TABLE.
746 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
747
140be7b8
ILT
7482003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
749
750 * config/arm/nbsd.mt (TM_FILE): Define.
751 * config/arm/tm-nbsd.h: New file.
752
0a90bcdd
AC
7532003-11-14 Andrew Cagney <cagney@redhat.com>
754
755 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
756 * ppc-sysv-tdep.c: Include "objfiles.h".
757 (ppc64_sysv_abi_push_dummy_call): Provide the
758 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
759
760 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
761 "name_of_malloc" to ".malloc".
762
087f1027
MK
7632003-11-13 Mark Kettenis <kettenis@gnu.org>
764
765 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
766
3882f37a
DC
7672003-11-13 David Carlton <carlton@kealia.com>
768
769 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
770
a8cf2722
AC
7712003-11-13 Andrew Cagney <cagney@redhat.com>
772
773 * arch-utils.h (selected_architecture_name): Declare.
774 (selected_byte_order): Declare.
775 * arch-utils.c (selected_byte_order): New function.
776 (selected_architecture_name): New function.
777 (target_architecture_auto): Make static.
778 (set_architecture_string): Make static.
779 (target_byte_order): Make static.
780 (target_byte_order_auto): Make static.
781 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
782 non-multi-arch definition.
783 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
784 (target_byte_order, target_architecture): Delete declaration.
785 (target_byte_order_auto, target_architecture_auto): Ditto.
786 * gdbarch.h: Re-generate.
787 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
788 "selected_byte_order".
77f091dd 789
475b6ddd
AC
7902003-11-13 Andrew Cagney <cagney@redhat.com>
791
792 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
793
a22286a9
JB
7942003-11-13 Jim Blandy <jimb@redhat.com>
795
796 * cp-namespace.c: Doc fix.
797
7bb11558
MS
7982003-11-12 Michael Snyder <msnyder@redhat.com>
799
39add00a
MS
800 * sh64_tdep.c: Regularize some names.
801 (sh_sh64_register_name): Rename to sh64_register_name.
802 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
803 (sh_sh64_register_byte): Rename to sh64_register_byte.
77f091dd 804 (sh_sh64_build_float_register_type):
39add00a 805 Rename to sh64_build_float_register_type.
77f091dd 806 (sh_sh64_register_convert_to_virtual):
39add00a 807 Rename to sh64_register_convert_to_virtual.
77f091dd 808 (sh_sh64_register_convert_to_raw):
39add00a
MS
809 Rename to sh64_register_convert_to_raw.
810
77f091dd
RM
811 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
812 sh64_media_reg_base_num, sh64_compact_reg_base_num,
2a314ed5 813 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd
RM
814 sh64_extract_return_value, sh64_show_media_regs,
815 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
2a314ed5 816 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
77f091dd 817 sh64_pseudo_register_read, sh64_pseudo_register_write,
2a314ed5
MS
818 sh64_do_pseudo_register, sh_compact_print_registers_info):
819 Delete unused variable 'tdep'.
820
7bb11558
MS
821 * sh64-tdep.c: Coding standard and spelling comment fixes.
822 (sh64_extract_return_value): Replace deprecated_store_floating
823 with store_typed_floating.
77f091dd 824 (sh_sh64_register_convert_to_raw): Replace
7bb11558
MS
825 deprecated_store_floating with store_typed_floating.
826 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
827 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
828 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd 829 sh64_extract_struct_value_address, sh64_pop_frame,
7bb11558 830 sh64_extract_return_value, sh64_store_return_value,
77f091dd 831 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
7bb11558
MS
832 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
833 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
834 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
835 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
836 deprecated_register_virtual_type, deprecated_register_raw_size,
77f091dd 837 deprecated_max_register_raw_size, or
7bb11558
MS
838 deprecated_max_register_virtual_size. Instead, just set
839 gdbarch_register_type.
39add00a
MS
840 (sh_sh64_register_raw_size): Delete.
841 (sh_sh64_register_virtual_size): Delete.
7bb11558 842
e7c27a73
DJ
8432003-11-12 Daniel Jacobowitz <drow@mvista.com>
844
845 * dwarf2read.c (struct dwarf2_cu): New type.
846
847 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
848 dwarf2_cu structure to pass down.
849
850 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
851 (add_partial_enumeration, locate_pdi_sibling, process_die)
852 (read_file_scope, read_func_scope)
853 (read_lexical_block_scope, dwarf2_get_pc_bounds)
854 (dwarf2_add_field, dwarf2_attach_fields_to_type)
855 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
856 (read_structure_scope, read_enumeration, read_array_type)
857 (read_common_block, read_namespace, read_tag_pointer_type)
858 (read_tag_ptr_to_member_type, read_tag_reference_type)
859 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
860 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
861 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
862 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
863 (read_full_die. read_attribute_value, read_attribute)
864 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
865 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
866 (die_containing_type, type_at_offset, tag_type_to_type)
867 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
868 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
869
1640b821
DJ
8702003-11-12 Daniel Jacobowitz <drow@mvista.com>
871
872 PR breakpoints/1450
873 * breakpoint.c (insert_bp_location): Fix a logic error by returning
874 0 after a catchpoint fails.
875
d7891507
MC
8762003-11-11 Michael Chastain <mec.gnu@mindspring.com>
877
878 * mips-tdep.c (msymbol_size): Delete.
879
f594e5e9
MC
8802003-11-07 Michael Chastain <mec@shout.net>
881
882 * symtab.h (struct minimal_symbol): Add size.
883 * dbxread.c: Use it.
884 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
885 Rename to record_minimal_symbol.
886 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
887 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
888 (install_minimal_symbols): Ditto.
889 * objfiles.c (terminate_minimal_symbol_table): Ditto.
890 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
891 * m68hc11-tdep.c: Ditto.
892 * mips-tdep.c: Ditto.
893 * sh64-tdep.c: Ditto.
894
68e39e73
MC
8952003-11-10 Michael Chastain <mec.gnu@mindspring.com>
896
897 * MAINTAINERS: Change my e-mail address.
898
b60eb90d
AC
8992003-11-10 Andrew Cagney <cagney@redhat.com>
900
963e2bb7
AC
901 * gdbarch.sh (return_value): Replace "inval" and "outval" with
902 "readbuf" and "writebuf".
903 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
904 * d10v-tdep.c (d10v_return_value): Ditto.
905 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
906 (ppc_sysv_abi_broken_return_value): Ditto.
907 (ppc64_sysv_abi_return_value): Ditto.
908 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
909 (ppc_sysv_abi_return_value): Ditto.
910 (ppc_sysv_abi_broken_return_value): Ditto.
911 (ppc64_sysv_abi_return_value): Ditto.
912 * values.c (register_value_being_returned): Update call.
913 * stack.c (return_command): Update call.
914 * gdbarch.h, gdbarch.c: Re-generate.
915
8aa91c1e
AC
916 * target.h (struct target_ops): Order xfer buffer parameters "read
917 write" not "write read".
918 * bfd-target.c (target_bfd_xfer_partial): Update.
919 * remote.c (remote_xfer_partial): Update.
920 * inftarg.c (child_xfer_partial): Update.
921 * target.c (default_xfer_partial): Update.
922 (target_read_partial, target_write_partial): Update.
923 (debug_to_xfer_partial): Update.
924
100bcc3f
AC
925 * arch-utils.h, arch-utils.c: Fix typo in comment.
926
b60eb90d
AC
927 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
928 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
929 (set_gdbarch_from_file): Call
930 "deprecated_current_gdbarch_select_hack".
b60eb90d 931
bf922ad9
AC
9322003-11-09 Andrew Cagney <cagney@redhat.com>
933
ebdba546
AC
934 * arch-utils.c (gdbarch_update_p): New function.
935 * gdbarch.sh (gdbarch_update_p): Delete function.
936 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 937 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
938 * gdbarch.c: Re-generate.
939
7de2341d
AC
940 * gdbarch.sh (clear_gdbarch_swap): Delete function.
941 (swapout_gdbarch_swap): Delete function.
942 (swapin_gdbarch_swap): Delete function.
943 (init_gdbarch_swap): Delete function.
944 (initialize_non_multiarch): Delete function.
945 (current_gdbarch_swap_in_hack): New function.
946 (current_gdbarch_swap_out_hack): New function.
947 (current_gdbarch_swap_init_hack): New function.
948 * gdbarch.c: Re-generate.
949
db446970
AC
950 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
951 parameter to "current_gdbarch". Add comment explaining why.
952 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
953 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
954 * gdbarch.c: Re-generate.
77f091dd 955
341e3d11
AC
956 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
957 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
958 * config/s390/xm-linux.h: Delete file.
959 * config/m88k/xm-delta88v4.h: Delete stray.
960
bf922ad9
AC
961 * Makefile.in (arch-utils.o): Update dependencies.
962 * arch-utils.c: Include "osabi.h".
963 (gdbarch_info_fill): New function.
964 * arch-utils.h (gdbarch_info_fill): Declare.
965 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
966 * gdbarch.c: Re-generate.
967
a3640c75
MK
9682003-11-09 Mark Kettenis <kettenis@gnu.org>
969 David S. Miller <davem@redhat.com>
970
971 * glibc-tdep.c, glibc-tdep.h: New files.
972 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
973 * config/i386/linux.mt (TDEPFILES): Likewise.
974 * i386-linux-tdep.c (glibc-tdep.h): Include.
975 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
976 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
977 * arm-linux-tdep.c (glibc-tdep.h): Include.
978 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
979 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
980 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
981 (glibc_tdep_h): Define.
982 (glibc-tdep.o): Add dependencies.
983 (arm-linux-tdep.o): Update dependencies.
984 (i386-linux-tdep.o): Likewise.
985
e60e0ab2
AC
9862003-11-09 Andrew Cagney <cagney@redhat.com>
987
988 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
989 * config/mips/nm-irix6.h: Delete file.
990 * config/mips/nm-linux.h: Update copyright.
991 (MIPS_GNULINUX_TARGET): Delete macro.
992 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
993 * config/mips/xm-irix6.h: Delete file.
994 * config/mips/linux.mh (XM_FILE): Delete definition.
995 * config/mips/xm-linux.h: Delete file.
996
181555e9
AC
9972003-11-09 Andrew Cagney <cagney@redhat.com>
998
999 * d10v-tdep.c (d10v_return_value): New function.
1000 (d10v_use_struct_convention): Delete function.
1001 (d10v_store_return_value): Delete function.
1002 (d10v_extract_struct_value_address): Delete function.
1003 (d10v_gdbarch_init): Set "return_value" instead of
1004 "extract_return_value", "store_return_value",
1005 "extract_struct_value_address", and "use_struct_convention".
1006 (RET1_REGNUM): Delete const.
1007
dea0c52f
MK
10082003-11-09 Mark Kettenis <kettenis@gnu.org>
1009
1010 From David S. Miller <davem@redhat.com>:
1011 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
1012 * gdbarch.c, gdbarch.h: Regenerated.
1013 * arch-utils.c (generic_skip_solib_resolver): New function.
1014 * arch-utils.h (generic_skip_solib_resolver): New prototype.
1015 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
1016
6314a349
AC
10172003-11-07 Andrew Cagney <cagney@redhat.com>
1018
1019 * top.c (print_gdb_version): Replace STREQ with strcmp.
1020 * valops.c (value_struct_elt_for_reference): Ditto.
1021 (value_struct_elt_for_reference): Ditto.
1022 * symtab.c (gdb_mangle_name): Ditto.
1023 (find_line_symtab): Ditto.
1024 * symmisc.c (maintenance_print_symbols): Ditto.
1025 * symfile.c (symbol_file_command): Ditto.
1026 * stabsread.c (define_symbol, read_type): Ditto.
1027 (cleanup_undefined_types, scan_file_globals): Ditto.
1028 * solib.c (solib_map_sections): Ditto.
1029 * solib-svr4.c (bfd_lookup_symbol): Ditto.
1030 * rs6000-tdep.c (skip_prologue): Ditto.
1031 * p-valprint.c (pascal_value_print): Ditto.
1032 (pascal_object_is_vtbl_ptr_type): Ditto.
1033 * objfiles.c (in_plt_section): Ditto.
1034 * minsyms.c (lookup_minimal_symbol): Ditto.
1035 (compact_minimal_symbols): Ditto.
1036 (find_solib_trampoline_target): Ditto.
1037 * mdebugread.c (parse_type): Ditto.
1038 * language.c (set_language_command): Ditto.
1039 (set_type_command, set_range_command): Ditto.
1040 * f-lang.c (add_common_block): Ditto.
1041 (add_common_block): Ditto.
1042 (find_first_common_named): Ditto.
1043 (patch_all_commons_by_name): Ditto.
1044 * elfread.c (elf_locate_sections): Ditto.
1045 (elf_locate_sections): Ditto.
1046 (elfstab_offset_sections): Ditto.
1047 * dwarf2read.c (dwarf2_locate_sections): Ditto.
1048 * dbxread.c (add_old_header_file): Ditto.
1049 (find_corresponding_bincl_psymtab): Ditto.
1050 (read_dbx_symtab, process_one_symbol): Ditto.
1051 * coffread.c (patch_opaque_types): Ditto.
1052 * cli/cli-decode.c (delete_cmd): Ditto.
1053 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1054 * c-typeprint.c (c_type_print_base): Ditto.
1055 * breakpoint.c (bpstat_stop_status): Ditto.
1056 (clear_command, breakpoint_re_set_one): Ditto.
1057
49df298f
AC
10582003-11-07 Andrew Cagney <cagney@redhat.com>
1059
1060 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
1061 * bcache.c (struct bstring): Make "length" an unsigned short, add
1062 "half_hash".
1063 (struct bcache): Add "half_hash_error_count".
1064 (bcache): Compute and save the "half_hash". Compare the
1065 "half_hash" before comparing the length. Update
1066 half_hash_error_count.
1067
f168dd80
AC
10682003-11-07 Andrew Cagney <cagney@redhat.com>
1069
1070 * inftarg.c (child_xfer_partial): New function
1071 (init_child_ops): Set "to_xfer_partial".
1072
05580c65
AC
10732003-11-07 Andrew Cagney <cagney@redhat.com>
1074
1075 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1076 set "return_value" instead of "use_struct_convention".
1077 (ppc_linux_use_struct_convention): Delete function.
1078 (ppc_linux_return_value): New function.
1079 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1080 (ppc_sysv_abi_broken_return_value): New function.
1081 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1082 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1083 static.
1084 (ppc_sysv_abi_extract_return_value): Delete function.
1085 (ppc_sysv_abi_broken_extract_return_value): Delete function.
1086 (ppc_sysv_abi_store_return_value): Delete function.
1087 (ppc_sysv_abi_broken_store_return_value): Delete function.
1088 (ppc_sysv_abi_use_struct_convention): Delete function.
1089 (ppc64_sysv_abi_use_struct_convention): Delete function.
1090 (ppc64_sysv_abi_extract_return_value): Delete function.
1091 (ppc64_sysv_abi_store_return_value): Delete function.
1092 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1093 (ppcnbsd_init_abi): Set "return_value", instead of
1094 "use_struct_convention", "extract_return_value", and
1095 "store_return_value".
1096 (ppcnbsd_use_struct_convention): Delete function.
1097 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1098 (ppc_sysv_abi_return_value): Declare.
1099 (ppc_sysv_abi_broken_return_value): Declare.
1100 (ppc_sysv_abi_use_struct_convention): Delete.
1101 (ppc_sysv_abi_store_return_value): Delete.
1102 (ppc_sysv_abi_extract_return_value): Delete.
1103 (ppc_sysv_abi_broken_store_return_value): Delete.
1104 (ppc_sysv_abi_broken_extract_return_value): Delete.
1105 (ppc64_sysv_abi_use_struct_convention): Delete.
1106 (ppc64_sysv_abi_extract_return_value): Delete.
1107 (ppc64_sysv_abi_store_return_value): Delete.
1108 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1109 set "return_value" instead of "extract_return_value",
1110 "store_return_value", and "use_struct_convention".
1111
1763fba4
MK
11122003-11-07 Mark Kettenis <kettenis@gnu.org>
1113
22c7ba1a
MK
1114 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1115
1763fba4
MK
1116 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1117 fscanf.
1118
fc07cc2d
MK
11192003-11-07 Mark Kettenis <kettenis@gnu.org>
1120
1121 * fbsd-proc.c: Fix formatting.
1122
6a748db6
KB
11232003-11-06 Kevin Buettner <kevinb@redhat.com>
1124
1125 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1126 Define.
1127 (new_variant): Set name for iacc0_regnum.
1128 (frv_register_name): Accommodate pseudo-registers.
1129 (frv_register_type): Add case for iacc0_regnum.
1130 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1131 (frv_gdbarch_init): Set number of pseudo registers. Establish
1132 pseudo-register read/write methods.
1133
bf896cb0
AC
11342003-11-06 Andrew Cagney <cagney@redhat.com>
1135
1136 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1137 * top.c (command_line_input): Ditto.
1138 * objc-exp.y (yylex): Ditto.
1139 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1140 * jv-exp.y (yylex): Ditto.
1141 * f-exp.y (yylex): Ditto.
1142 * event-top.c (command_line_handler): Ditto.
1143 * environ.c (get_in_environ): Ditto.
1144 (set_in_environ): Ditto.
1145 * dwarfread.c (handle_producer): Ditto.
1146 * dbxread.c (process_one_symbol): Ditto.
1147 * c-typeprint.c (c_type_print_base): Ditto.
1148 * c-exp.y (yylex): Ditto.
1149
0b603eba
AC
11502003-11-06 Andrew Cagney <cagney@redhat.com>
1151 Jeff Johnston <jjohnstn@redhat.com>
1152
1153 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1154 (init_dummy_target): Set "to_xfer_partial".
1155
9cedbfec
AC
11562003-11-06 Andrew Cagney <cagney@redhat.com>
1157
1158 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1159 REGISTER_CONVENTION.
1160
26bb91f3
DJ
11612003-11-06 Daniel Jacobowitz <drow@mvista.com>
1162
1163 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1164 static.
1165
0bde7532
DJ
11662003-11-06 Daniel Jacobowitz <drow@mvista.com>
1167
1168 * breakpoint.c (remove_breakpoint): Take an bp_location
1169 instead of a breakpoint argument. Check the bp_location's type.
1170 Fix a reversed condition for hardware breakpoints.
1171
1172 (insert_bp_location): Update call to remove_breakpoint.
1173 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1174 (remove_hw_watchpoints): Likewise.
1175 (reattach_breakpoints): Likewise.
1176 (detach_breakpoints): Likewise.
1177 (delete_breakpoint): Likewise.
1178
075f6582
DJ
11792003-11-06 Daniel Jacobowitz <drow@mvista.com>
1180
1181 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1182 (beakpoint_init_inferior): Likewise.
1183 (breakpoint_here_p): Likewise. Only check addresses for software
1184 or hardware breakpoints.
1185 (breakpoint_inserted_here_p): Likewise.
1186 (breakpoint_thread_match): Likewise. Correct comment.
1187 (bpstat_have_active_hw_watchpoints): Likewise.
1188 (check_duplicates): Likewise.
1189
879bfdc2
DJ
11902003-11-06 Daniel Jacobowitz <drow@mvista.com>
1191
1192 * breakpoints.c (insert_bp_location): New function, broken out
1193 from insert_breakpoints. Work on an bp_location instead of a
1194 breakpoint.
1195 (insert_breakpoints): Use it.
1196
cf3a9e5b
DJ
11972003-11-06 Daniel Jacobowitz <drow@mvista.com>
1198
1199 * breakpoint.h (struct bp_location): Add section.
1200 (struct breakpoint): Remove section.
1201 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1202 (breakpoint_here_p, breakpoint_inserted_here_p)
1203 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1204 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1205 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1206 section through loc.
1207
ffce0d52
DJ
12082003-11-06 Daniel Jacobowitz <drow@mvista.com>
1209
1210 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1211 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1212
e049a4b5
DJ
12132003-11-06 Daniel Jacobowitz <drow@mvista.com>
1214
1215 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1216 arguments. Initialize owner and type for the new breakpoint
1217 location item.
1218 (set_raw_breakpoint): Update call to allocate_bp_location.
1219
7cc221ef
DJ
12202003-11-06 Daniel Jacobowitz <drow@mvista.com>
1221
1222 * breakpoint.h (struct bp_location): Add a chain pointer.
1223 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1224 macros.
1225 (bp_location_chain): New variable.
1226 (allocate_bp_location): New function.
1227 (set_raw_breakpoint): Use it.
1228 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1229
5cab636d
DJ
12302003-11-06 Daniel Jacobowitz <drow@mvista.com>
1231
1232 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1233 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 1234 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
1235 * breakpoint.c (condition_command, read_memory_nobpt)
1236 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1237 (reattach_breakpoints, update_breakpoints_after_exec)
1238 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1239 (breakpoint_init_inferior, breakpoint_here_p)
1240 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1241 (breakpoint_thread_match, bpstat_stop_status)
1242 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1243 (describe_other_breakpoints, check_duplicates)
1244 (make_breakpoint_permanent, create_thread_event_breakpoint)
1245 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1246 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1247 (watch_command_1, print_one_exception_catchpoint)
1248 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1249 use the breakpoint's ->loc.
1250 (set_raw_breakpoint): Likewise. Initialize ->loc.
1251 (delete_breakpoint): Likewise. Free ->loc.
1252
7be0c536
AC
12532003-11-05 Andrew Cagney <cagney@redhat.com>
1254
4c7d882e
AC
1255 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1256 macro.
1257 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1258 * config/i386/tm-cygwin.h
1259 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1260 * config/powerpc/tm-linux.h
1261 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1262 (at_subroutine_call_instruction_target): Delete declaration.
1263 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1264 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1265 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1266
7be0c536
AC
1267 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1268 "struct bfd_section" and "struct bfd".
1269 * target.h (struct section_table): Ditto.
1270 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1271 * solib-svr4.c (elf_locate_base): Ditto.
1272 * pa64solib.c (dld_cache_t): Ditto.
1273 * objfiles.h (struct obj_section): Ditto.
1274 * objfiles.c (add_to_objfile_sections): Ditto.
1275 * exec.c (bfdsec_to_vmap): Ditto.
1276 (add_to_section_table): Ditto.
1277 (build_section_table): Ditto.
1278 * corelow.c (get_core_register_section): Ditto.
1279 * coffread.c (find_linenos): Ditto.
1280 * elfread.c (elf_interpreter): Delete #if0'd function.
1281
1282 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1283 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1284 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1285 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1286
1287 * arch-utils.h (generic_cannot_extract_struct_value_address):
1288 Delete declaration.
1289 * wince.c (_initialize_wince): Fix multi-line string.
1290 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1291
d8fe84e3
EZ
12922003-11-05 Elena Zannoni <ezannoni@redhat.com>
1293
1294 * top.c (execute_command): Fix broken logic for command execution
1295 while inferior is running in async mode.
1296
cbdfc7c0
MK
12972003-11-06 Mark Kettenis <kettenis@gnu.org>
1298
1299 * dwarf2-frame.c (execute_cfa_program): Mark register as
1300 REG_SAVED_REG for DW_CFA_register opcode.
1301
dac94105
MK
13022003-11-05 Mark Kettenis <kettenis@gnu.org>
1303
1304 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1305 %rsp, %rip and %eflags to match ABI-change.
1306
85bf2b91
JJ
13072003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1308
1309 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
77f091dd
RM
1310 (ia64_gdbarch_init): Don't bother calculating the os.
1311 Instead use the gdbarch_info struct and look at the osabi field.
1312 Also use gdbarch_list_lookup_by_info() to look for a
1313 candidate gdbarch.
85bf2b91 1314
cd31fb03
KB
13152003-11-05 Kevin Buettner <kevinb@redhat.com>
1316
1317 * frv-tdep.c (frv_register_byte): Delete.
1318 (frv_extract_return_value, frv_store_return_value)
1319 (frv_extract_struct_value_address): Don't call frv_register_byte().
1320 Convert to non-deprecated form.
1321 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1322 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1323 set_gdbarch_deprecated_store_return_value(), and
1324 set_gdbarch_deprecated_extract_struct_value_address() into
1325 non-deprecated forms.
1326
0a056982
AC
13272003-11-05 Andrew Cagney <cagney@redhat.com>
1328
1329 * mips-tdep.c (mips_dump_tdep): Do not print
1330 PRINT_EXTRA_FRAME_INFO.
1331 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1332 Rename PRINT_EXTRA_FRAME_INFO.
1333 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1334 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1335 (mips_print_extra_frame_info): Delete declaration.
1336 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1337
29e0a062
EZ
13382003-11-05 Elena Zannoni <ezannoni@redhat.com>
1339
1340 * coffread.c (coff_symtab_read): Remove passing of info parameter
1341 to prim_record_minimal_symbol_and_info.
1342
8af580fc
EZ
13432003-11-05 Elena Zannoni <ezannoni@redhat.com>
1344
1345 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1346 (decode_base_type): Delete ifdeffed out code.
1347
507836c0
AC
13482003-11-04 Andrew Cagney <cagney@redhat.com>
1349
1350 * symtab.c (find_active_alias): Delete function.
1351 (lookup_block_symbol): Delete alias code.
1352 * stabsread.c (resolve_live_range): Delete function.
1353 (add_live_range): Delete function.
1354 (resolve_symbol_reference): Delete function.
1355 (define_symbol): Delete live range and alias code.
1356 (scan_file_globals): Delete alias code.
1357 * symtab.h (SYMBOL_RANGES): Delete macro.
1358 (struct range_list): Delete structure.
1359 (struct symbol): Delete field "ranges".
1360 (SYMBOL_ALIASES): Delete macro.
1361 (struct alias_list): Delete structure.
1362 (struct symbol): Delete field "aliases".
1363
1083b3bc
MS
13642003-11-04 Michael Snyder <msnyder@redhat.com>
1365
77f091dd 1366 * MAINTAINERS: Remove myself as owner of breakpoints and
1083b3bc
MS
1367 of sparc/solaris.
1368
474e5826
CV
13692003-11-03 Corinna Vinschen <vinschen@redhat.com>
1370
1371 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1372 (sh_sh4al_dsp_register_name): Ditto.
1373 (sh4_nofpu_show_regs): Ditto.
1374 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1375 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1376
2160782c
AC
13772003-11-03 Andrew Cagney <cagney@redhat.com>
1378
1379 * bcache.c: Include "gdb_assert.h".
1380 (struct bcache): Add fields "expand_count" and
1381 "expand_hash_count".
1382 (expand_hash_table): Update the expand counts.
1383 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1384 on object sizes and hashes.
1385 * Makefile.in (bcache.o): Update dependencies.
1386
85302095
AC
13872003-11-03 Andrew Cagney <cagney@redhat.com>
1388
1389 * exec.c (xfer_memory): Eliminate xfer_fn.
1390
526eef89
KB
13912003-10-31 Kevin Buettner <kevinb@redhat.com>
1392
1393 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1394 (opcodes/frv-desc.h): Include.
1395 (iacc0h_regnum, iacc0l_regnum): Define.
1396 (last_spr_regnum, frv_num_regs): Update.
1397 (new_variant): Don't supply default names for holes in the SPRs.
1398 Supply names for iacc0h_regnum and iacc0l_regnum.
1399 (frv_register_type): Use symbolic constants first_fpr_regnum and
1400 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1401 builtin_type_int instead of builtin_type_int32.
1402 (frv_register_sim_regno): New function.
1403 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1404 * Makefile.in (gdb_sim_frv_h): Define.
1405 (frv-tdep.o): Update dependencies.
1406
9e815ec2
AC
14072003-10-31 Andrew Cagney <cagney@redhat.com>
1408
1409 * avr-tdep.c (avr_frame_this_id): Do not call
1410 deprecated_inside_entry_file.
1411 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1412 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1413 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1414 * arm-tdep.c (arm_prologue_this_id): Ditto.
1415 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1416
e372db49
JB
14172003-10-31 Jim Blandy <jimb@redhat.com>
1418
1419 * elfread.c (elf_symtab_read): Allocate correct number of tail
1420 elements to sectinfo structure. (Fix from Woody LaRue.)
1421
e8bcf01f
AC
14222003-10-31 Andrew Cagney <cagney@redhat.com>
1423
1424 * stack.c (return_command): Use get_frame_type, instead of
1425 CALL_DUMMY_HAS_COMPLETED.
1426 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1427 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1428
4c05fe53
MK
14292003-10-31 Mark Kettenis <kettenis@gnu.org>
1430
1431 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1432 explicitly specify size of array.
1433 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1434 TDEP->sc_num_regs.
1435
c8b91b89
AC
14362003-10-31 Andrew Cagney <cagney@redhat.com>
1437
1438 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1439 function.
1440 (s390_gdbarch_init): Set extract_struct_value_address.
1441 * arch-utils.c (generic_cannot_extract_struct_value_address):
1442 Delete function.
1443 * arch-utils.h (generic_cannot_extract_struct_value_address):
1444 Delete definition.
1445
fdfb6fc8
MK
14462003-10-31 Mark Kettenis <kettenis@gnu.org>
1447
1448 * i386-linux-nat.c (fetch_core_registers): Remove.
1449 (linux_elf_core_fns): Remove.
1450 (_initialize_i386_linux_nat): Remove.
1451
2f4950cd
AC
14522003-10-31 Andrew Cagney <cagney@redhat.com>
1453
1454 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1455 "exec.h".
1456 (exec_entry_point): New function.
1457 (enable_break): Create a "tmp_bfd_target", use that and
1458 entry_point_address when computing the relocation offset.
1459 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1460 * Makefile.in (solib-svr4.o): Update dependencies.
1461
bba2d28d
AC
14622003-10-31 Andrew Cagney <cagney@redhat.com>
1463
1464 * defs.h (XZALLOC): Define.
1465 * target.h (struct target_ops): Add "to_data";
1466 * bfd-target.h, bfd-target.c: New files.
1467 * Makefile.in (SFILES): Add "bfd-target.c".
1468 (COMMON_OBS): Add "bfd-target.o".
1469 (bfd-target.o): Specify dependencies.
1470 (bfd_target_h): Define.
1471 * defs.h (XZALLOC): Define.
1472
6066c3de
AC
14732003-10-31 Andrew Cagney <cagney@redhat.com>
1474
1475 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1476 adjust_breakpoint_address.
1477 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1478 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1479 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1480 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1481
4b8a223f
AC
14822003-10-31 Andrew Cagney <cagney@redhat.com>
1483
1484 * target.h (struct target_ops): Replace "to_read_partial" and
1485 "to_write_partial" with "to_xfer_partial". Update comments.
1486 * target.c (debug_to_write_partial): Delete function.
1487 (debug_to_xfer_partial): Replace debug_to_read_partial.
1488 (add_target, update_current_target, setup_target_debug): Set
1489 "to_xfer_partial" instead of "to_read_partial" and
1490 "to_write_partial".
1491 (default_xfer_partial): Replace "default_write_partial".
1492 (default_read_partial): Delete.
1493 (target_read_partial, target_write_partial): Call
1494 "to_xfer_partial".
1495 * remote.c (init_remote_ops): Set "to_xfer_partial".
1496 (init_remote_async_ops): Ditto.
1497 (remote_xfer_partial): Replace "remote_read_partial".
1498
66a72d25
MK
14992003-10-31 Mark Kettenis <kettenis@gnu.org>
1500
1501 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1502 registers in `fxsave' format.
1503 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1504
9a12a2a0
MK
15052003-10-30 Mark Kettenis <kettenis@gnu.org>
1506
e9f1aad5
MK
1507 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1508 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1509 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1510
bb489b3c
MK
1511 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1512 specify size of array.
1513 (i386_linux_init_abi): Remove initialization of
1514 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1515 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1516
da285bc4
MK
1517 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1518 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1519 core-regset.o.
1520
9a12a2a0
MK
1521 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1522 the ELF header.
1523
0e24ac5d
MK
15242003-10-29 Mark Kettenis <kettenis@gnu.org>
1525
6d6d8e9c
MK
1526 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1527 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1528 core-regset.o.
1529
25e60c9b
MK
1530 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1531
0e24ac5d
MK
1532 * corelow.c: Include "arch-utils.h", "regset.h" and
1533 "gdb_assert.h".
1534 (core_gdbarch): New variable.
1535 (sniff_core_bfd): Don't sniff if we have support for register sets
1536 in CORE_GDBARCH.
1537 (core_close): Reset CORE_GDBARCH.
1538 (core_open): Initialize CORE_GDBARCH.
1539 (get_core_register_section): Use register sets if they are
1540 supported by CORE_GDBARCH.
1541 (get_core_registers): Don't print error message if we have support
1542 for register sets in CORE_GDBARCH.
1543
0a0a4ac3
AC
15442003-10-29 Andrew Cagney <cagney@redhat.com>
1545
1546 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1547 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1548
7b097ae3
MK
15492003-10-29 Mark Kettenis <kettenis@gnu.org>
1550
1551 * objfiles.h (clear_objfile_data): New prototype.
1552 * objfiles.c (clear_objfile_data): New function.
1553 * symfile.c (reread_symbols): Clear per-objfile data.
1554
46f45a4a 15552003-10-28 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 1556
46f45a4a
JJ
1557 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1558 printf_unfiltered instead of printf_filtered for output messages.
1559 (add_symbol_file_command): Ditto.
1560 (reread_symbols): Ditto.
1561 (overlay_auto_command): Ditto.
1562 (overlay_manual_command): Ditto.
1563 (overlay_off_command): Ditto.
1564
2b026650
MK
15652003-10-27 Mark Kettenis <kettenis@gnu.org>
1566
1567 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1568 (gdbarch_from_bfd): New function.
1569 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1570 deprecated_select_gdbarch_hack.
1571 * arch-utils.h (gdbarch_from_bfd): New prototype.
1572
0bcad584 15732003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1574
1575 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1576 arch_info. Use warning instead of fprintf_filtered. Do not use
1577 deprecated bfd_printable_arch_mach.
1578
7f398216
KB
15792003-10-26 Kevin Buettner <kevinb@redhat.com>
1580
1581 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1582 Delete.
1583 (frv_register_type): Rename from frv_register_virtual_type. Add
1584 ``struct gdbarch *'' parameter.
1585 (frv_gdbarch_init): Delete calls to the following functions:
1586 set_gdbarch_deprecated_size(),
1587 set_gdbarch_deprecated_register_bytes(),
1588 set_gdbarch_deprecated_register_raw_size(),
1589 set_gdbarch_deprecated_max_register_raw_size(),
1590 set_gdbarch_deprecated_register_virtual_size(),
1591 set_gdbarch_deprecated_max_register_virtual_size(),
1592 set_gdbarch_deprecated_register_virtual_size(),
1593 set_gdbarch_deprecated_register_virtual_type().
1594 Add call to function set_gdbarch_register_type().
1595
bcf48cc7
MK
15962003-10-26 Mark Kettenis <kettenis@gnu.org>
1597
6c7de422
MK
1598 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1599 FDOFF_REGNUM): Remove defines.
1600 * win32-nat.c (do_child_fetch_inferior_registers): Include
1601 "i387-tdep.h".
3e685d41 1602 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1603 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1604 undefine I387_ST0_REGNUM.
1605
f783586b
MK
1606 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1607 * x86-64-tdep.c (x86_64_store_return_value): Use
1608 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1609
bcf48cc7
MK
1610 Change register numbers to enumartion values.
1611 * i386-tdep.h (enum i386_regnum): New.
1612 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1613 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1614 I386_ST0_REGNUM): Remove defines.
1615 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1616 I386_EDI_REGNUM): Remove defines.
1617
b6591e8b
AC
16182003-10-24 Andrew Cagney <cagney@redhat.com>
1619
1620 * target.c: Include "gdbcore.h".
1621 (get_target_memory, get_target_memory_unsigned): New functions.
1622 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1623 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1624 Use get_target_memory_unsigned.
1625 * Makefile.in (target.o): Update dependencies.
1626
5f724446
AC
16272003-10-24 Andrew Cagney <cagney@redhat.com>
1628
ce2826aa
AC
1629 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1630 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1631 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1632 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1633 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1634
5f724446
AC
1635 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1636 (can_run_code_for): Use the OO term "singleton".
1637
fc70c2a0
AC
16382003-10-23 Andrew Cagney <cagney@redhat.com>
1639
1640 * Makefile.in (stack.o): Add $(regcache_h).
1641 * stack.c: Include "regcache.h"
1642 (return_command): Rewrite. Use get_frame_id and
1643 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1644 about unhandled return-values.
1645 * value.h (set_return_value): Delete declaration.
1646 * values.c (set_return_value): Delete function.
1647
4afcc598
JJ
16482003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1649
1650 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1651 (pseudo_regs): Add comment regarding register stack registers.
1652 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1653 (floatformat_valid): New static routine.
1654 (floatformat_ia64_ext): Add name field and set up is_valid routine
1655 to floatformat_valid().
1656 (examine_prologue): For the previous cfm, use
1657 frame_unwind_register()
1658 if the cfm is not stored in a register-stack register. Save the
1659 previous cfm value in the prev_cfm field. Add debug output.
1660 (ia64_frame_this_id): Use frame_id_build_special() to also register
1661 the bsp. Add debug output.
1662 (ia64_sigtramp_frame_this_id): Ditto.
1663 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1664 registers and also add some checks for framelessness before accepting
1665 current register values for fields such as return address. For cfm,
1666 use the cached prev_cfm field if available. Add comment to explain
1667 PSR logic. Add debug output.
1668 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1669 as part of initialization.
1670 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1671 calculated. Cache the bsp and cfm values.
1672 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1673 instead of using ia64_frame_prev_register() which doesn't expect most
1674 registers to be saved. The saved values for bsp and sp
1675 can be taken from the cache. Add debug output.
1676 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1677 the bsp.
1678
6cfae0bc
JB
16792003-10-23 Jim Blandy <jimb@redhat.com>
1680
1681 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1682 architecture the current arch can run code for --- but not if it's
1683 a superset.
1684 (can_run_code_for): New function.
1685
fcd182f9
JW
16862003-10-22 James E Wilson <wilson@specifixinc.com>
1687
1688 * MAINTAINERS: Move myself from paper trail section back to write
1689 after approval section.
1690
4646aa9d
AC
16912003-10-22 Andrew Cagney <cagney@redhat.com>
1692
1693 * exec.h: New file.
1694 * win32-nat.c: Include "exec.h".
1695 * solib.c: Include "exec.h".
1696 * target.h (build_section_table): Delete declaration.
1697 * somsolib.c: Include "exec.h".
1698 (exec_ops): Delete extern declaration.
1699 * rs6000-nat.c: Update copyright. Include "exec.h".
1700 (exec_ops): Delete extern declaration.
1701 * pa64solib.c: Update copyright. Include "exec.h".
1702 (exec_ops): Delete extern declaration.
1703 * exec.c: Update copyright. Include "exec.h".
1704 * corelow.c: Update dependencies. Include "exec.h".
1705 * Makefile.in (exec_h): Define.
1706 (exec.o, somsolib.o): Update dependencies.
1707 (pa64solib.o, corelow.o): Update dependencies.
1708
0088c768
AC
17092003-10-22 Andrew Cagney <cagney@redhat.com>
1710
1711 * target.c: Include "gdb_assert.h" (target_read): Call
1712 "target_read_partial", not "target_write_partial".
1713 (default_read_partial, default_write_partial): New function.
1714 (target_read_partial, target_write_partial): Simplify, assume that
1715 there is always a read/write method.
1716 (update_current_target, add_target): Always set "to_read_partial"
1717 and "to_write_partial".
1718 (target_write, target_read): Fail on a zero byte transfer.
1719 * Makefile.in (target.o): Update dependencies.
1720 * target.h: Update copyright date.
1721 (target_object): Fix typo.
1722
e2d0e7eb
AC
17232003-10-22 Andrew Cagney <cagney@redhat.com>
1724
1725 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1726 multi-arch method, add "targ" parameter.
77f091dd 1727 (struct target_ops): Declare.
e2d0e7eb
AC
1728 * gdbarch.h, gdbarch.c: Re-generate.
1729 * Makefile.in (c-valprint.o): Update dependencies.
1730 * arch-utils.h: Update copyright.
1731 (convert_from_func_ptr_addr_identity): Declare.
1732 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1733 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1734 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1735 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1736 * infcall.c (find_function_addr, call_function_by_hand): Update.
1737 * c-valprint.c: Include "target.h".
1738 (print_function_pointer_address): Update.
1739
f1c07ab0
AC
17402003-10-22 Andrew Cagney <cagney@redhat.com>
1741
1742 * target.c (target_close): New function.
1743 (debug_to_close): Use "target_close".
1744 (push_target): Use "target_close".
1745 (unpush_target): Use "target_close".
1746 (pop_target): Use "target_close".
1747 * target.h (struct target_ops): Add "to_xclose".
1748 (target_open): Delete macro. Move comment to "to_open".
1749 (target_close): Replace macro with function that takes a target.
1750 * top.c (quit_target): Pass "current_target" to "target_close".
1751
5520a790
EZ
17522003-10-21 Elena Zannoni <ezannoni@redhat.com>
1753
1754 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1755 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1756 * symtab.h (lookup_minimal_symbol_text): Update.
1757 * breakpoint.c (create_overlay_event_breakpoint,
1758 create_longjmp_breakpoint): Update callers.
1759 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1760 * symtab.c (find_pc_sect_line): Ditto.
1761
caa92b73
AC
17622003-10-21 Andrew Cagney <cagney@redhat.com>
1763
1764 * target.c (errno): Delete extern declaration.
1765
aa2a9a3c
JJ
17662003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1767
1768 * ia64-tdep.c: Change all occurrences of
1769 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1770 (ia64_frame_prev_register): Minor whitespace change.
1771
4beec2b7
MC
17722003-10-20 Michael Chastain <mec@shout.net>
1773
1774 * config/djgpp/fnchange.lst: Add lines for:
1775 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1776 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1777 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1778 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1779 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1780 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1781 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1782
92ad9cd9
AC
17832003-10-20 Andrew Cagney <cagney@redhat.com>
1784
1785 * values.c (register_value_being_returned): Update comments. Use
1786 "gdbarch_return_value" when available.
1787 (using_struct_return): Ditto.
1788 (set_return_value): Ditto. Use "gdbarch_return_value" when
1789 available.. Print a warning, and not an error, when an unhandled
1790 return type is encountered.
1791 * infcmd.c: Include "gdb_assert.h".
1792 (print_return_value): When gdbarch_return_value_p, and using
1793 struct return, assume that the value is not available.
1794 * defs.h (return_value_convention): Define.
1795 * gdbarch.sh (gdbarch_return_value): New predicate method.
1796 * gdbarch.h, gdbarch.c: Re-generate
1797 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1798
198beae2
AC
17992003-10-20 Andrew Cagney <cagney@redhat.com>
1800
1801 * symtab.c: Replace "struct sec" with "struct bfd_section".
1802 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1803
24d693a6 18042003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1805
1806 * config/djgpp/fnchange.lst: Add lines for:
1807 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1808 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1809 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1810
21ad8dc3
MK
18112003-10-19 Mark Kettenis <kettenis@gnu.org>
1812
1813 * amd64fbsd-nat.c (fetch_inferior_registers,
1814 store_inferior_registers): Remove functions.
1815 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1816
cced5e27
MK
18172003-10-18 Mark Kettenis <kettenis@gnu.org>
1818
1819 Add NetBSD/amd64 native configuration:
1820 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1821 * amd64nbsd-tdep.c: New file.
1822 * amd64nbsd-nat.c: New file.
1823 * amd64bsd-nat.c: New file.
1824 * config/i386/nbsd64.mh: New file.
1825 * config/i386/nbsd64.mt: New file.
1826 * configure.host: Add x86_64-*-netbsd*.
1827 * configure.tgt: Add x86_64-*-netbsd*.
1828 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1829 New targets.
1830 * NEWS (New native configurations): Mention NetBSD/amd64.
1831
666de3fd
MC
18322003-10-17 Michael Chastain <mec@shout.net>
1833
1834 * config/djgpp/fnchange.lst: Remove dead lines for:
1835 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1836 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1837 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1838 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1839 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1840 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1841 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1842 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1843 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1844 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1845 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1846 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1847 gdb/config/sparc/tm-sparclite.h,
1848 gdb/gdbtk/generic/ChangeLog-2001,
1849 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1850 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1851 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1852 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1853 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1854 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1855 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1856 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1857 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1858 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1859 itcl/iwidgets3.0.0/demos/fileselectionbox,
1860 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1861 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1862 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1863 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1864 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1865 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1866 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1867 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1868 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1869 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1870 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1871 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1872 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1873 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1874 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1875 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1876 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1877 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1878 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1879 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1880 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1881 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1882 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1883 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1884 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1885 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1886 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1887 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1888 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1889 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1890 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1891 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1892 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1893 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1894 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1895 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1896 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1897 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1898 itcl/iwidgets3.0.0/demos/scrolledframe,
1899 itcl/iwidgets3.0.0/demos/scrolledhtml,
1900 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1901 itcl/iwidgets3.0.0/demos/scrolledtext,
1902 itcl/iwidgets3.0.0/demos/selectionbox,
1903 itcl/iwidgets3.0.0/demos/selectiondialog,
1904 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1905 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1906 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1907 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1908 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1909 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1910 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1911 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1912 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1913 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1914 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1915 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1916 itcl/iwidgets3.0.0/doc/selectionbox.n,
1917 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1918 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1919 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1920 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1921 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1922 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1923 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1924 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1925 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1926 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1927 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1928 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1929 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1930 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1931 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1932 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1933 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1934 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1935 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1936 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1937 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1938 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1939 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1940 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1941 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1942 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1943 itcl/iwidgets3.0.0/tests/selectionbox.test,
1944 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1945 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1946 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1947 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1948 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1949 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1950 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1951 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1952 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1953 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1954 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1955 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1956 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1957 tk/mac/tkMacProjects.sit.hqx.
1958
1e3ff5ad
AC
19592003-10-17 Andrew Cagney <cagney@redhat.com>
1960
8db32d44
AC
1961 * target.c (target_section_by_addr): New function.
1962 (do_xfer_memory): Use "target_section_by_addr".
1963 * target.h (target_section_by_addr): Declare.
1964
1e3ff5ad
AC
1965 * target.h (struct target_ops): Add "to_read_partial" and
1966 "to_write_partial", delete "to_query".
1967 (target_read_partial, target_write_partial): Declare.
1968 (target_read, target_write): Declare.
1969 (target_query): Delete macro.
1970 * target.c (target_read_partial): New function.
1971 (target_write_partial, target_read, target_write): New function.
1972 (update_current_target): Delete inheritance of "to_query". Add
1973 comments about "to_read_partial" and "to_write_partial".
1974 (debug_to_partial_read, debug_to_partial_write): New functions.
1975 (debug_to_query): Delete function.
1976 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1977 instead of "to_query".
1978 * remote.c (remote_read_partial): Replace "remote_query".
1979 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1980 (init_remote_async_ops): Ditto.
1981 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1982 "target_read_partial" instead of "target_query".
1983 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1984 Use "target_read_partial" instead of "target_query".
1985
48c66725
JJ
19862003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1987
1988 * frame.h (struct frame_id): Add new field: special_addr.
1989 (frame_id_build_special): New prototype.
1990 * frame.c (frame_id_build_special): New function.
1991 (frame_id_build): Change to call frame_id_build_special().
77f091dd
RM
1992 (frame_id_eq): Change to also test special_addr field.
1993 (frame_id_inner): Update comment.
48c66725 1994
7998dfc3
AC
19952003-10-17 Andrew Cagney <cagney@redhat.com>
1996
1997 * target.c (update_current_target): Perform the target cleanup.
1998 Put the target stack beneath the squashed "current_target".
1999 (add_target): Delete disabled call to "cleanup_target".
2000 (cleanup_target): Delete function.
2001 (push_target, unpush_target): Do not call "cleanup_target".
2002
9c04404e 20032003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
2004
2005 * target.c (target_stack): Change to a static target_ops.
2006 (update_current_target): Walk the "struct target_ops" stack.
2007 (pop_target, do_xfer_memory, target_info): Ditto.
2008 (find_target_beneath): Ditto.
2009 (push_target): Rewrite to use the "struct target_ops" stack.
2010 (unpush_target): Ditto.
2011 * target.h (struct target_stack_item): Delete definition.
2012 (target_stack): Delete declaration.
2013 (struct target_ops): Add field "beneath".
2014
c98a2b49 20152003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
2016
2017 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
2018 declaration.
2019 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
2020 (h8300_examine_prologue): Use h8300_normal_mode flag
2021 (h8300_gdbarch_init): Set architecture info for normal mode
2022
506fb367
DJ
20232003-10-16 Daniel Jacobowitz <drow@mvista.com>
2024
2025 * remote.c (remote_protocol_vcont): New variable.
2026 (set_remote_protocol_vcont_packet_cmd): New function.
2027 (show_remote_protocol_vcont_packet_cmd): New function.
2028 (init_all_packet_configs): Handle remote_protocol_vcont.
2029 (remote_vcont_probe): New function.
2030 (remote_vcont_resume): New function.
2031 (remote_resume): Use it.
2032 (remote_async_resume): Call remote_resume.
2033 (_initialize_remote): Add verbose-resume packet commands.
2034
65815ea1
AC
20352003-10-16 Andrew Cagney <cagney@redhat.com>
2036
2037 * infrun.c (handle_inferior_event): Add comment about
2038 "frame_id_inner" being too weak.
2039
40324f1b
EZ
20402003-10-16 Elena Zannoni <ezannoni@redhat.com>
2041
2042 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2043 second parameter, which is always null. Remove
2044 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2045 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2046 accordingly.
2047 * somsolib.c (som_solib_create_inferior_hook,
2048 som_solib_desire_dynamic_linker_symbols): Update callers.
2049 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
2050
20512003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
2052
2053 * remote-m32r-sdi.c : New file, interface to m32r on-chip
2054 debug interface, SDI (Scalable Debug Interface).
2055 * NEWS: Mention m32r SDI protocol was supported.
2056 * Makefile.in (remote-m32r-sdi.o): Add build rule.
2057 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2058
51931cbb
JJ
20592003-10-15 Jeff Johnston <jjohnstn@redhat.com>
2060
2061 * ia64-linux-tdep.c: Include gdbcore.h.
2062 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2063 (ia64_linux_sigcontext_register_addr): Find the address of the
2064 sigcontext area stored in the sigframe instead of using
77f091dd 2065 a magic offset constant.
51931cbb 2066
84e7fd53
AC
20672003-10-15 Andrew Cagney <cagney@redhat.com>
2068
2069 * remote.c (remote_search): Delete function.
2070 * target.h (target_search): Delete disabled macro.
2071 (struct target_ops): Delete disabled field "to_search".
2072
0f4d7c52
KB
20732003-10-14 Kevin Buettner <kevinb@redhat.com>
2074
2075 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2076 instead of deprecated_inside_entry_file().
2077
2e952408
CV
20782003-10-14 Corinna Vinschen <vinschen@redhat.com>
2079
2080 * sh-tdep.c: Fix copy/paste hangover in comment.
2081 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2082 mode.
2083 (sh3e_sh4_extract_return_value): Ditto.
2084
7e86466e
RH
20852003-10-13 Richard Henderson <rth@redhat.com>
2086
2087 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2088 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
2089 match c_val_print a bit closer.
2090
46a16dba
KB
20912003-10-13 Kevin Buettner <kevinb@redhat.com>
2092
2093 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2094 (frv_gdbarch_adjust_breakpoint_address): New function.
2095 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2096 method.
2097
76897487
KB
20982003-10-13 Kevin Buettner <kevinb@redhat.com>
2099
2100 * breakpoint.h (struct breakpoint): Add new member
2101 ``requested_address''.
2102 * breakpoint.c (breakpoint_adjustment_warning)
2103 (adjust_breakpoint_address): New static functions.
2104 (print_it_typical): Issue warning if breakpoint's address is different
2105 from its requested address.
2106 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2107 (breakpoint_re_set_one): Set breakpoint's
2108 ``requested_address'' field. Set ``address'' field to the
2109 result of calling adjust_breakpoint_address() on the requested
2110 address.
2111
a1131521
KB
21122003-10-13 Kevin Buettner <kevinb@redhat.com>
2113
2114 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2115 * gdbarch.h, gdbarch.c: Regenerate.
2116
6ce6d90f
MK
21172003-10-11 Mark Kettenis <kettenis@gnu.org>
2118
155c1d33
MK
2119 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2120 TDEP->sc_num_regs.
2121
8a96bc77
MK
2122 * i386fbsd-tdep.c: New file.
2123 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2124 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2125 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2126 i386bsd-tdep.c.
2127 (_initialize_i386fbsd_tdep): New function.
2128 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2129 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2130 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2131 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2132 TDEP->sc_num_regs.
2133 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2134 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2135 to initialize TDEP->sc_num_regs.
2136 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2137 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2138 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2139 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2140 FreeBSD ELF OS/ABI's here.
2141 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2142 (i386fbsd-tdep.o): New target.
2143 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2144 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2145
477f40d1
MK
2146 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2147 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2148 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2149 in initialization of TDEP->sc_num_regs.
2150
c6b33596
MK
2151 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2152 (x86_64_init_abi): Initialize regset_from_core_section if
2153 appropriate.
2154
8446b36a
MK
2155 * i386-tdep.c (i386_regset_from_core_section): New function.
2156 (i386_gdbarch_init): Initialize regset_from_core_section if
2157 appropriate.
2158 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2159
c783cbd6
MK
2160 * i386-tdep.h (struct regset): Declare opaque.
2161
6ce6d90f
MK
2162 * gdbarch.sh (regset_from_core_section): New method.
2163 (struct regset): Declare opaque.
2164 * gdbarch.c, gdbarch.h: Regenerated.
2165
b98ed7be
AM
21662003-10-11 Alan Modra <amodra@bigpond.net.au>
2167
2168 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2169 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2170 Correct test for pc within section.
2171
f6214256
MK
21722003-10-11 Mark Kettenis <kettenis@gnu.org>
2173
2174 * gdbarch.sh: Remove trailing whitepsace from comments.
2175
a8f4cde1
RM
21762003-10-08 Roland McGrath <roland@redhat.com>
2177
2178 * gcore.c (make_mem_sec): Function removed, folded into ...
2179 (gcore_create_callback): ... here. To omit a section, clear its
2180 SEC_LOAD bit rather than zeroing its size.
2181 Omit read-only sections only if they correspond to a known disk file.
2182 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2183
74276724
MS
21842003-10-10 Michael Snyder <msnyder@redhat.com>
2185
2186 * d10v-tdep.c: Fix typo in comment.
2187
e754ae69
AC
21882003-10-10 Andrew Cagney <cagney@redhat.com>
2189
2190 * rs6000-tdep.c (e500_store_return_value): Delete function.
2191 (e500_extract_return_value): Delete function.
2192 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2193 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2194 "ppc_sysv_abi_restore_return_value" where applicable.
2195 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2196 (ppc_sysv_abi_extract_return_value): Declare.
2197 (ppc_sysv_abi_broken_store_return_value): Declare.
2198 (ppc_sysv_abi_broken_extract_return_value): Declare.
2199 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2200 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2201 start of file.
2202 (do_ppc_sysv_return_value): New function.
2203 (ppc_sysv_abi_extract_return_value): New function.
2204 (ppc_sysv_abi_store_return_value): New function.
2205 (ppc_sysv_abi_broken_extract_return_value): New function.
2206 (ppc_sysv_abi_broken_store_return_value): New function.
2207 (ppc_sysv_abi_use_struct_convention): Call
2208 do_ppc_sysv_return_value.
2209
8d4ce20a
JB
22102003-10-10 J. Brobecker <brobecker@gnat.com>
2211
2212 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2213 to lookup the main function symbol.
2214
afce3d2a
CV
22152003-10-10 Corinna Vinschen <vinschen@redhat.com>
2216
2217 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2218 types correctly.
2219 (sh_push_dummy_call_fpu): Fix argument passing rules.
2220 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2221 float types.
2222 (sh3e_sh4_store_return_value): Ditto.
2223
7fe958be
EZ
22242003-10-10 Elena Zannoni <ezannoni@redhat.com>
2225
2226 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2227 comment.
2228
3f997a97
CV
22292003-10-10 Corinna Vinschen <vinschen@redhat.com>
2230
2231 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2232 more readable code. Accomodate passing of bitfields.
2233
8be9034a
AC
22342003-10-10 Andrew Cagney <cagney@redhat.com>
2235
2236 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2237 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2238 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2239 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2240 (ppc64_sysv_abi_push_dummy_call): New function.
2241 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2242 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2243 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2244
85a453d5
KI
22452003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2246
2247 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2248 * README: Ditto.
2249 * d10v-tdep.c: Ditto.
2250 * h8300-tdep.c: Ditto.
2251 * remote-e7000.c: Ditto.
2252 * remote-hms.c: Ditto.
2253 * ser-e7kpc.c: Ditto.
2254 * sh-stub.c: Ditto.
2255 * sh-tdep.c: Ditto.
2256 * sh-tdep.h: Ditto.
2257 * sh3-rom.c: Ditto.
2258 * sh64-tdep.c: Ditto.
2259 * top.c: Ditto.
2260 * wince.c: Ditto.
2261 * config/d10v/d10v.mt: Ditto.
2262 * config/sh/embed.mt: Ditto.
2263 * config/sh/linux.mt: Ditto.
2264 * config/sh/tm-linux.h: Ditto.
2265 * config/sh/tm-sh.h: Ditto.
2266 * config/sh/wince.mt: Ditto.
2267
221c12ff
AC
22682003-10-09 Andrew Cagney <cagney@redhat.com>
2269
2270 * ppc-tdep.h (struct type): Declare opaque.
2271 * x86-64-tdep.h (struct regcache): Declare opaque.
2272 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2273 coding style.
2274
ef5200c1
AC
22752003-10-09 Andrew Cagney <cagney@redhat.com>
2276
2277 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2278 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2279 (SOFTWARE_SINGLE_STEP_P): Ditto.
2280 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2281 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2282 (SOFTWARE_SINGLE_STEP_P): Ditto.
2283 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2284 software_single_step to rs6000_software_single_step.
a8f4cde1 2285
9644bbdd
AC
22862003-10-09 Andrew Cagney <cagney@redhat.com>
2287
2288 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2289
db72fa6b
MS
22902003-10-09 Michael Snyder <msnyder@redhat.com>
2291
f3efb16c
MS
2292 * frame.h: Fix typo in comment.
2293 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2294 * d10v-tdep.c: Random whitespace/comment tweaks.
2295
9a5cef92
EZ
22962003-10-09 Elena Zannoni <ezannoni@redhat.com>
2297
2298 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2299 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2300 on stack.
a8f4cde1 2301
9a5cef92
EZ
2302 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2303 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2304 in detail.
a8f4cde1 2305
0f317a0c
DJ
23062003-10-09 Daniel Jacobowitz <drow@mvista.com>
2307
2308 * remote-mips.c (mips_initialize): Remove unneeded call to
2309 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2310
bbab2f46
DJ
23112003-10-09 Daniel Jacobowitz <drow@mvista.com>
2312
2313 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2314 a memory pointer.
2315
550950b8
JJ
23162003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2317
2318 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2319 for any lwp we resume.
2320 (running_callback): Add lwps that have pending status events
2321 against them to be considered running.
2322
15c69bc7
KI
23232003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2324
2325 * m32r-tdep.c : Include "dis-asm.h".
2326 * Makefile.in (m32r-tdep.o): Update dependencies.
2327
51065942
JB
23282003-10-06 J. Brobecker <brobecker@gnat.com>
2329
2330 * completer.h (get_gdb_completer_word_break_characters): Delete.
2331 * completer.c: include language.h.
2332 (gdb_completer_word_break_characters): Delete.
2333 (get_gdb_completer_word_break_characters): Delete.
2334 (location_completer): Use the word break characters of the current
2335 language.
2336 (complete_line): Likewise.
2337 (line_completion_function): Likewise.
2338 (skip_quoted_chars): Likewise.
2339 * Makefile.in (completer.o): Add dependency on language.h.
2340 * top.c (init_main): Set the readline word break characters
2341 to GDB's default word break characters.
2342
6084f43a
JB
23432003-10-06 J. Brobecker <brobecker@gnat.com>
2344
2345 * language.h (language_defn): new field, la_word_break_characters.
2346 * language.c (unknown_language_defn): Set new field to
2347 default_word_break_characters.
2348 (auto_language_defn): Likewise.
2349 (local_language_defn): Likewise.
2350 * ada-lang.c (ada_language_defn): Likewise.
2351 * c-lang.c (c_language_defn): Likewise.
2352 (cplus_language_defn): Likewise.
2353 (asm_language_defn): Likewise.
2354 (minimal_language_defn): Likewise.
2355 * f-lang.c (f_language_defn): Likewise.
2356 * jv-lang.c (java_language_defn): Likewise.
2357 * m2-lang.c (m2_language_defn): Likewise.
2358 * objc-lang.c (objc_language_defn): Likewise.
2359 * p-lang.c (pascal_language_defn): Likewise.
2360 * scm-lang.c (scm_language_defn): Likewise.
2361
944fcfab
AC
23622003-10-06 Andrew Cagney <cagney@redhat.com>
2363
2364 * ppc-sysv-tdep.c: Re-indent.
2365
9f0a5303
JB
23662003-10-06 J. Brobecker <brobecker@gnat.com>
2367
2368 * language.h (default_word_break_characters): Add prototype.
2369 * language.c (default_word_break_characters): New function.
2370
7270b6ed
AS
23712003-10-06 Andreas Schwab <schwab@suse.de>
2372
2373 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2374 with %eax.
2375
a5d61f66
AC
23762003-10-06 Andrew Cagney <cagney@redhat.com>
2377
2378 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2379 "h8500-tdep.c".
2380 (z8k-tdep.o): Delete custom build rule.
2381
28a86f5c
AC
23822003-10-06 Andrew Cagney <cagney@redhat.com>
2383
1bfd8a83
AC
2384 * Makefile.in: Update all dependencies.
2385
17144ef8
AC
2386 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2387 No longer list PA as as obsolete candidate. List m32r as
2388 broken instead of obsolete.
a8f4cde1 2389
a5679ae5
AC
2390 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2391 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2392 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2393 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2394 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2395 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2396 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2397 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2398 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2399 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2400 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2401 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2402 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2403 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2404 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2405 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2406 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2407 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2408 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2409 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2410 * config/z8k/z8k.mt: Ditto.
2411
4a8269c0
AC
2412 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2413 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2414 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2415 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2416 sparclite were removed.
2417 * configure.host, configure.tgt: Remove corresponding tuples.
2418
41989fcd
AC
2419 * breakpoint.c, breakpoint.h: Remove obsolete code.
2420 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2421 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2422 * stabsread.h, xcoffread.c: Ditto.
2423
28a86f5c
AC
2424 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2425 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2426 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2427 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2428
4efdaa0d
DL
24292003-10-06 David Lecomber <dsl@sources.redhat.com>
2430
2431 * f-valprint.c: Reformatting
2432
ae53de43
MK
24332003-10-06 Mark Kettenis <kettenis@gnu.org>
2434
a8bb57e7
MK
2435 * x86-64-tdep.c: Remove duplicate comment.
2436
ae53de43
MK
2437 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2438 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2439 names for return values. This fixes a bug since we looked at %rbx
2440 instead of %rdx.
2441
473f17b0
MK
24422003-10-05 Mark Kettenis <kettenis@gnu.org>
2443
2c261fae
MK
2444 * x86-64-tdep.c: Include "regset.h".
2445
473f17b0
MK
2446 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2447 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2448 sizeof_fpregset.
2449 * i386-tdep.c: Include "regset.h".
2450 (i386_supply_gregset): New function.
2451 (i386_supply_fpregset): New function.
2452 (i386_gdbarch_init): Initialze register set-related members of
2453 TDEP.
2454 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2455 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2456
afd48b75
AC
24572003-10-03 Andrew Cagney <cagney@redhat.com>
2458
2459 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2460 set extract_return_value, store_return_value and
2461 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2462 ppc64_sysv_abi_store_return_value and
2463 ppc64_sysv_abi_use_struct_convention.
2464 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2465 (ppc64_sysv_abi_store_return_value): Declare.
2466 (ppc64_sysv_abi_use_struct_convention): Declare.
2467 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2468 (ppc64_sysv_abi_extract_return_value): New function.
2469 (ppc64_sysv_abi_store_return_value): New function.
2470 (ppc64_sysv_abi_use_struct_convention): New function.
2471 (ppc64_sysv_abi_return_value): New function.
2472
9b540880
AC
24732003-10-03 Andrew Cagney <cagney@redhat.com>
2474
2475 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2476 convert a descriptor to a function when it's in the ".opd"
2477 section.
2478
8748518b
CV
24792003-10-03 Corinna Vinschen <vinschen@redhat.com>
2480
2481 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2482 reg_size to keep GCC silent.
2483
0fd85043
CV
24842003-10-03 Corinna Vinschen <vinschen@redhat.com>
2485
2486 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2487 base for DW_EH_PE_textrel encodings.
2488 (read_encoded_value): Add a DW_EH_PE_textrel case.
2489 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2490 section.
2491
37b517aa
MK
24922003-10-03 Mark Kettenis <kettenis@gnu.org>
2493
2494 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2495
12c266ea
AC
24962003-10-02 Andrew Cagney <cagney@redhat.com>
2497
2498 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2499 REGISTER_RAW_SIZE.
2500 * gdbarch.h, gdbarch.c: Re-generate.
2501 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2502 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2503 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2504 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2505 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2506 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2507 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2508 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2509 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2510 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2511 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2512 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2513 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2514 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2515 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2516 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2517
78ba4af6
JB
25182003-10-02 Jim Blandy <jimb@redhat.com>
2519
2520 * dwarf2read.c (struct die_info): Doc fix.
2521
617daa0e
CV
25222003-10-02 Corinna Vinschen <vinschen@redhat.com>
2523
2524 * sh-tdep.c: Running thru gdb_indent.sh.
2525
e5e33cd9
CV
25262003-10-02 Corinna Vinschen <vinschen@redhat.com>
2527
2528 * sh-tdep.c (sh_justify_value_in_reg): New function.
2529 (sh_stack_allocsize): Ditto.
2530 (flt_argreg_array): New array used for floating point argument
2531 passing.
2532 (sh_init_flt_argreg): New function.
a8f4cde1 2533 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2534 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2535 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2536 Fix argument passing strategy.
2537 (sh_push_dummy_call_nofpu): Ditto.
2538
5fe830e4
AC
25392003-10-01 Andrew Cagney <cagney@redhat.com>
2540
2541 * value.h (register_value_being_returned): Declare. Replace
2542 "value_being_returned".
2543 * infcall.c (call_function_by_hand): Use
2544 register_value_being_returned.
2545 * infcmd.c (print_return_value): Call
2546 "register_value_being_returned", handle struct return locally.
2547 * values.c (register_value_being_returned): New function. Replace
2548 "value_being_returned".
a8f4cde1 2549
5fe830e4 25502003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2551
2552 * linux-proc.c (linux_do_registers): New function.
2553 (linux_make_note_section): Use linux_do_registers in case of
2554 single threaded inferior programs.
2555
64f395bf
AC
25562003-10-01 Andrew Cagney <cagney@redhat.com>
2557
2558 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2559 use STRUCT_ADDR. When not using "struct return convention", pass
2560 "0" to "value_being_returned". Add FIXMEs.
2561 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2562 value_being_returned. Add comments.
2563 * values.c (value_being_returned): Add fixme.
2564 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2565 (hppa_value_returned_from_stack): Add FIXME.
2566
639d11d3
DC
25672003-09-30 David Carlton <carlton@kealia.com>
2568
2569 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2570 'has_children' and 'next' by 'child' and 'sibling'.
2571 (read_comp_unit): Rework algorithm, breaking body into
2572 read_die_and_children and read_die_and_siblings.
2573 (read_die_and_children, read_die_and_siblings): New.
2574 (read_full_die): Add 'has_children' argument; set it instead of
2575 the die's 'has_children' field. Minor formatting cleanup.
2576 (free_die_list): Use die->child and die->sibling instead of
2577 die->next.
2578 (dump_die_list): Ditto.
2579 (sibling_die): Use die->sibling.
2580 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2581 'has_children' and 'next' fields.
a8f4cde1
RM
2582 (process_die, read_file_scope, read_func_scope)
2583 (read_lexical_block_scope, read_structure_scope)
2584 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2585 (read_namespace, read_subroutine_type, dump_die): Ditto.
2586
5bffac25
AC
25872003-09-30 Andrew Cagney <cagney@redhat.com>
2588
2589 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2590 to 224, not 220.
2591
f30992d4
AC
25922003-09-30 Andrew Cagney <cagney@redhat.com>
2593
2594 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2595 REGISTER_VIRTUAL_SIZE.
2596 * gdbarch.h, gdbarch.c: Regenerate.
2597 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2598 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2599 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2600
2e092625
AC
26012003-09-29 Andrew Cagney <cagney@redhat.com>
2602
2603 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2604 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2605 * gdbarch.h, gdbarch.c: Regenerate.
2606 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2607 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2608
2609 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2610 * remote-vxmips.c (vx_read_register): Ditto.
2611 * remote-vx68.c (vx_read_register): Ditto.
2612 * gnu-nat.c (inf_validate_procs): Ditto.
2613
7a5dd6ee
JB
26142003-09-29 J. Brobecker <brobecker@gnat.com>
2615
2616 * infcall.c (call_function_by_hand): Fix build failure
2617 introduced in the previous change to this file.
2618
1fe43d45
AC
26192003-09-29 Andrew Cagney <cagney@redhat.com>
2620
2621 * NEWS: Mention Objective-C.
2622
e28a332c
JG
26232003-09-29 Jerome Guitton <guitton@act-europe.fr>
2624
2625 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2626 test if the register has been saved on the stack.
2627 (arm_scan_prologue_cache): When analysing the instruction
2628 "str lr, [sp, #-4]", save the address where lr has been stored.
2629
9ff63c35
AC
26302003-09-28 Andrew Cagney <cagney@redhat.com>
2631
7f5f525d
AC
2632 * frame.c (frame_read_unsigned_register): Delete function.
2633 * frame.h (frame_read_unsigned_register): Delete declaration.
2634 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2635 get_frame_register_unsigned.
2636 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2637 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2638 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2639
7f5f525d
AC
2640 * frame.h (frame_read_register): Delete declaration.
2641 * frame.c (frame_read_register): Delete function.
2642 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2643 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2644 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2645 * mips-tdep.c (mips_register_to_value): Ditto.
2646 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2647 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2648
2649 * frame.c (frame_read_signed_register): Delete function.
2650 (frame_read_unsigned_register): Update comments.
2651 * frame.h (frame_read_signed_register): Delete declaration.
2652 * h8300-tdep.c (h8300_print_register): Use
2653 get_frame_register_signed.
2654 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2655
9ff63c35
AC
2656 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2657 Rename VALUE_RETURNED_FROM_STACK.
2658 * infcmd.c (print_return_value): Update.
2659 * infcall.c (call_function_by_hand): Update.
2660
41d041d6
MK
26612003-09-28 Mark Kettenis <kettenis@gnu.org>
2662
2663 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2664 regcache argument and reverse the order of the other two
2665 arguments. Remove local regcache variable. Determine
2666 architecture from REGCACHE. Update comments.
2667 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2668 reverse the order of the other two arguments. Remove local
2669 regcache variable. Determine architecture from REGCACHE. Update
2670 comments.
2671 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2672 prototypes. Update comments.
2673 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2674 comment.
2675 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2676 Update.
2677 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2678 * i386-interix-nat.c (supply_fpregset): Update.
2679 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2680 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2681 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2682 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2683 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2684 Update.
2685 * i386obsd-tdep.c (fetch_core_registers): Update.
2686 * i386v4-nat.c (supply_fpregset): Update.
2687 * x86-64-linux-nat.c (supply_fpregset): Update.
2688 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2689
1cb97e17
MK
26902003-09-27 Mark Kettenis <kettenis@gnu.org>
2691
5716833c
MK
2692 * i386-tdep.h: Put opaque declarations in alphabetical
2693 order. Remove spurious whitespace.
2694 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2695 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2696 * i386-tdep.c (MM0_REGNUM): Remove define.
2697 (i386_mmx_regnum_p): Add gdbarch argument.
2698 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2699 Rewrite using new macro definitions for FPU/SSE registers.
2700 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2701 definitions from i387-tdep.h.
2702 (i386_register_name): Update.
2703 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2704 new macro definitions for FPU/SSE registers.
2705 (i386_extract_return_value): Determine whether floating-point
2706 registers are present by examining REGCACHE's architecture.
2707 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2708 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2709 FPU/SSE registers.
2710 (i386_register_type): Update.
2711 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2712 definitions for FPU registers. Use REGCACHE's architecture to
2713 determine the appropriate register numbers.
2714 (i386_pseudo_register_read, i386_pseudo_register_write,
2715 i386_register_reggroup_p): Update.
2716 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2717 TDEP->mm0_regnum.
2718 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2719 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2720 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2721 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2722 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2723 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2724 *' to `void *'.
2725 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2726 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2727 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2728 definitions for FPU/SSE registers.
2729 (FXSAVE_MXCSR_ADDR): New define.
2730 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2731 TDEP->mm0_regnum.
2732 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2733 (I387_ST0_REGNUM): Define.
2734
41d35cb0
MK
2735 * regcache.h (get_regcache_arch): New prototype.
2736 * regcache.c (get_regcache_arch): New function.
2737
54e74f72
MK
2738 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2739 whitespace.
2740
1cb97e17
MK
2741 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2742 Initialize using ARRAY_SIZE.
2743
0968aa8c
AC
27442003-09-27 Andrew Cagney <cagney@redhat.com>
2745
2746 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2747 "init_frame_pc_default".
2748 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2750 * vax-tdep.c (vax_gdbarch_init): Update.
2751 * v850-tdep.c (v850_gdbarch_init): Update.
2752 * sh64-tdep.c (sh64_gdbarch_init): Update.
2753 * s390-tdep.c (s390_gdbarch_init): Update.
2754 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2755 * mcore-tdep.c (mcore_gdbarch_init): Update.
2756 * h8300-tdep.c (h8300_gdbarch_init): Update.
2757 * cris-tdep.c (cris_gdbarch_init): Update.
2758 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2759
54c84734
MK
27602003-09-26 Mark Kettenis <kettenis@gnu.org>
2761
2762 * regset.h: New file.
2763 * Makefile.in (regset_h): Add.
2764
1b1d3794
AC
27652003-09-25 Andrew Cagney <cagney@redhat.com>
2766
2767 * frame.h (deprecated_frame_saved_regs): Rename
2768 get_frame_saved_regs.
2769 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2770 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2771 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2772 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2773 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2774
e6beb428
AC
27752003-09-25 Andrew Cagney <cagney@redhat.com>
2776
2777 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2778 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2779 and Java.
2780 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2781 arm*-*-* do not use the new frame code.
2782
710122da
DC
27832003-09-25 David Carlton <carlton@kealia.com>
2784
2785 * c-exp.y: Remove 'register' declarations.
2786 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2787
79c2c32d
DC
27882003-09-25 David Carlton <carlton@kealia.com>
2789
2790 * c-exp.y: Include cp-support.h. Add qualified_type.
2791 (yylex): Delete nested type hack; add comments.
2792 * cp-namespace.c (cp_lookup_nested_type): New function.
2793 * cp-support.h: Declare cp_lookup_nested_type.
2794 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2795 instead of value_struct_elt_for_reference.
2796 * valops.c: Include cp-support.h.
2797 (value_aggregate_elt): New function.
2798 (value_namespace_elt): Ditto.
2799 (value_struct_elt_for_reference): Make static.
2800 * value.h: Delete declaration of value_struct_elt_for_reference;
2801 add declaration for value_aggregate_elt.
2802 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2803 (valops.o): Ditto.
2804
898c62f5
DJ
28052003-09-25 Daniel Jacobowitz <drow@mvista.com>
2806
2807 * stack.c: Include "reggroups.h".
2808 (frame_info): Only display registers in all_reggroup.
2809 * Makefile.in (stack.o): Update dependencies.
2810
28cd8767
JG
28112003-09-25 Jerome Guitton <guitton@act-europe.fr>
2812
2813 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2814 "add ip, sp #n" in the prologue.
2815 (arm_scan_prologue): Ditto.
2816
a4ab2b5d
JG
28172003-09-25 Jerome Guitton <guitton@act-europe.fr>
2818
2819 * MAINTAINERS (write after approval): Add myself.
2820
3f244638
AS
28212003-09-25 Andreas Schwab <schwab@suse.de>
2822
2823 * m68k-tdep.c: Include "dwarf2-frame.h".
2824 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2825 * Makefile.in (m68k-tdep.o): Update dependencies.
2826
1c0159e0
CV
28272003-09-25 Corinna Vinschen <vinschen@redhat.com>
2828
2829 * sh-tdep.c (struct frame_extra_info): Remove.
2830 (struct sh_frame_cache): New structure.
2831 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2832 (GET_TARGET_REG): Ditto but target register.
2833 (GET_PUSHED_REG): Remove.
2834 (IS_MOV_ARG_TO_REG): New macro.
2835 (IS_MOV_ARG_TO_IND_R14): New macro.
2836 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2837 (IS_MOVW_PCREL_TO_REG): New macro.
2838 (IS_MOVL_PCREL_TO_REG): New macro.
2839 (IS_SUB_REG_FROM_SP): New macro.
2840 (IS_ARG_MOV): Remove.
2841 (IS_MOV_TO_R14): Remove.
2842 (IS_RESTORE_FP): New macro.
2843 (IS_RTS): New macro.
2844 (IS_LDS): New macro.
2845 (IS_MOV_FP_SP): New macro.
2846 (IS_ADD_REG_TO_FP): New macro.
2847 (IS_ADD_IMM_FP): New macro.
2848 (sh_skip_prologue_hard_way): Remove.
2849 (sh_saved_pc_after_call): Remove.
2850 (sh_frame_chain): Remove.
2851 (sh_find_callers_reg): Remove.
a8f4cde1 2852 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2853 (sh_fp_frame_init_saved_regs): Remove.
2854 (sh_init_extra_frame_info): Remove.
2855 (sh_analyze_prologue): New function.
2856 (sh_skip_prologue): Remove deprecated code. Rely on new function
2857 sh_analyze_prologue when after_prologue fails.
2858 (sh_frame_saved_pc): Remove.
2859 (sh_alloc_frame_cache): New function.
2860 (sh_frame_cache): Ditto.
2861 (sh_frame_prev_register): Ditto.
2862 (sh_frame_this_id): Ditto.
2863 (sh_frame_unwind): New structure defining the heuristic frame
2864 sniffer interface.
2865 (sh_frame_sniffer): New function.
2866 (sh_unwind_sp): Ditto.
2867 (sh_unwind_pc): Ditto.
2868 (sh_unwind_dummy_id): Ditto.
2869 (sh_frame_base_address): Ditto.
2870 (sh_frame_base): New structure defining new frame base code.
2871 (sh_in_function_epilogue_p): New function.
2872 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2873 code and to call all new code instead. Initialize dwarf2 and
2874 heuristic frame sniffer.
2875
5f9769d1
PH
28762003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2877
a8f4cde1
RM
2878 * parser-defs.h (struct exp_descriptor): New definition, containing
2879 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2880 evaluating expressions.
2881 (exp_descriptor_standard): Declare new variable.
2882 (print_subexp): Make global and declare here (from expprint.c).
2883 (dump_subexp): Ditto.
2884 (dump_subexp_body_standard): Declare.
2885 (operator_length_standard): Declare.
2886 (op_name_standard): Declare.
2887 (print_subexp): Declare.
2888 (print_subexp_standard): Declare.
2889
2890 * language.h (struct language_defn): Add la_exp_desc field to hold
2891 pointer to table for language-specific operators.
2892 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2893
2894 * parse.c (operator_length): Move most code to new
5f9769d1 2895 operator_length_standard function. Use language-specific information.
a8f4cde1 2896 (operator_length_standard): New function taking most code from
5f9769d1
PH
2897 operator_length.
2898 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2899
2900 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2901 and OP_EXTENDED_LAST.
a8f4cde1
RM
2902
2903 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2904 Make global; remove static declaration.
2905 Move most code to print_subexp_standard.
a8f4cde1 2906 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2907 print_subexp.
2908 (op_name): Add expression to argument signature.
a8f4cde1 2909 Use langauge-specific op_name.
5f9769d1
PH
2910 Move most code to op_name_standard.
2911 (op_name_standard): New function, containing code formerly in op_name.
2912 (dump_subexp): Use new version of op_name function.
2913 Use language-specific dump_subexp_body, and move most existing code to
2914 dump_subexp_body_standard.
2915 (dump_raw_expression): Use new op_name interface.
2916 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2917 (dump_subexp_body_standard): New function, containing code formerly
2918 in dump_subexp_body.
a8f4cde1 2919
5f9769d1
PH
2920 * language.c (unknown_language): Add default la_exp_desc field and
2921 remove evaluate_exp field.
2922 (auto_language): Ditto.
2923 (local_language): Ditto.
2924 * f-lang.c (f_language_defn): Ditto.
2925 * c-lang.c (c_language_defn): Ditto.
2926 (cplus_language_defn): Ditto.
2927 (asm_language_defn): Ditto.
2928 (minimal_language_defn): Ditto.
2929 * p-lang.c (pascal_language_defn): Ditto.
2930 * m2-lang.c (m2_language_defn): Ditto.
2931 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2932
2933 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2934 Java-specific expression evaluator.
2935 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2936 field.
a8f4cde1 2937 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2938 Scheme-specific expression evaluator.
2939 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2940 field.
2941 * objc-lang.c (print_object_command): Take evaluate_exp from the
2942 la_exp_desc field.
a8f4cde1 2943
5f9769d1 2944 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2945
2946 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2947 la_exp_desc's type.
2948 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2949
24daaebc
PH
29502003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2951
2952 * parser-defs.h (operator_length): Declare.
a8f4cde1 2953
24daaebc
PH
2954 * parse.c (length_of_subexp): Use operator_length to get operator
2955 lengths and arities for operators.
2956 Move most code to new operator_length function.
a8f4cde1 2957 (operator_length): New function absorbing most code from
24daaebc
PH
2958 length_of_subexp.
2959 (prefixify_subexp): Remove large case and use operator_length instead.
2960 (parse_exp_1): Use renamings:
a8f4cde1 2961 dump_prefix_expression => dump_raw_expression and
24daaebc 2962 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2963
24daaebc
PH
2964 * expression.h (dump_prefix_expression): Rename to ...
2965 (dump_raw_expression): New name.
2966 (dump_postfix_expression): Rename to ...
2967 (dump_prefix_expression): New name.
a8f4cde1 2968
24daaebc
PH
2969 * expprint.c (dump_subexp): Make global. Add comment.
2970 Move most existing code to dump_subexp_body.
2971 (dump_subexp_body): New function.
2972 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2973 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2974 work before the expression is prefixified.
2975 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2976 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2977 that's what it does.
a8f4cde1 2978 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2979 prefixified expression.
2980 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2981
8c2957c4
JB
29822003-09-22 Jim Blandy <jimb@redhat.com>
2983
2984 * dwarf2read.c (read_array_type): When building the type for an
2985 array of unspecified length, make sure to choose the upper bound
2986 so that the array's total length comes out to be zero --- that's
2987 how we represent such arrays.
2988
592e3010
MC
29892003-09-22 Michael Chastain <mec@shout.net>
2990
2991 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2992
365c70b1
JJ
29932003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2994
2995 * top.c (quit_force): Fix indirect call to quit_target so
2996 a struct qt_args pointer is passed.
2997
5d6eb653
AC
29982003-09-22 Andrew Cagney <cagney@redhat.com>
2999
3000 * arch-utils.h (init_frame_pc_noop): Delete declaration.
3001 * arch-utils.c (init_frame_pc_noop): Delete function.
3002 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3003 "init_frame_pc".
3004 * mips-tdep.c (mips_gdbarch_init): Ditto.
3005 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3006 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
3007 declaration.
3008 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3009 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
3010 declaration.
3011 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3012
b222a67f
AG
30132003-09-22 Anthony Green <green@redhat.com>
3014
3015 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
3016 declaration.
3017
d5b5ac79
AC
30182003-09-20 Andrew Cagney <cagney@redhat.com>
3019
deafb061
AC
3020 * breakpoint.c: Eliminate ARGSUSED.
3021 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
3022 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
3023 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
3024 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
3025 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
3026 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
3027 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
3028 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
3029 * wince.c, remote-vx.c: Ditto.
3030
d5b5ac79
AC
3031 * cli/cli-script.c: Remove "register" attributes.
3032 * config/pa/tm-hppa.h: Ditto.
3033 * cli/cli-decode.c: Ditto.
3034 * cli/cli-cmds.c: Ditto.
3035
c6316faa
AC
30362003-09-19 Andrew Cagney <cagney@redhat.com>
3037
3038 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
3039 DEPRECATED_NPC_REGNUM.
3040 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
3041
f4f99b11
CF
30422003-09-19 Christopher Faylor <cgf@redhat.com>
3043
3044 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3045
1708f284
JB
30462003-09-19 Jim Blandy <jimb@redhat.com>
3047
3048 * macrotab.c (macro_include): Use the correct comparison to find
3049 the appropriate place for this inclusion in the list.
3050
b9fbf434
AC
30512003-09-19 Andrew Cagney <cagney@redhat.com>
3052
3053 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3054 (DEPRECATED_HPUX_TEXT_END): Define.
3055 (deprecated_hpux_text_end): Declare.
3056 (struct target_ops): Declare opaque.
3057 * hppah-nat.c (text_end): Make static.
3058 (deprecated_hpux_text_end): New function.
3059 * exec.c (text_end): Delete global variable.
3060 (NEED_TEXT_START_END): Do not define.
3061 (exec_file_attach): Replace code computing "text_end" code with
3062 call to DEPRECATED_HPUX_TEXT_END.
3063
5b03f266
AC
30642003-09-19 Andrew Cagney <cagney@redhat.com>
3065
3066 * utils.c (align_up, align_down): New functions.
3067 * defs.h (align_up, align_down): Declare.
3068 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3069 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3070 and "align_down".
3071 (round_up, round_down): Delete functions.
3072 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3073 "align_down".
3074 (ROUND_DOWN, ROUND_UP): Delete macros.
3075 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3076 * h8300-tdep.c: Replace "round_up" and "round_down" with
3077 "align_up" and "align_down".
3078 (round_up, round_down): Delete macros.
3079 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3080 "align_down".
3081 (ROUND_UP, ROUND_DOWN): Delete macros.
3082
51db5742
JB
30832003-09-18 J. Brobecker <brobecker@gnat.com>
3084
3085 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3086 hard-coded constant. Use the proper machine name instead.
3087
77949794
AC
30882003-09-17 Andrew Cagney <cagney@redhat.com>
3089
3090 * sparc-tdep.c (legacy_register_name): Delete function.
3091 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3092 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3093 * infcmd.c (gdb_register_name): Delete variable.
3094 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3095 REGISTER_NAME and "tm.h".
3096 * gdbarch.h, gdbarch.c: Regenerate.
3097 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3098 REGISTER_NAMES in comments.
3099 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3100 * m68klinux-nat.c (regmap): Ditto.
3101
b55c33cc
JB
31022003-09-17 Jim Blandy <jimb@redhat.com>
3103
3104 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3105
957e27ac
AC
31062003-09-17 Andrew Cagney <cagney@redhat.com>
3107
3108 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3109 (ppcnbsd_init_abi): Set "use_struct_convention" to
3110 "ppcnbsd_use_struct_convention".
3111
192cb3d4
MK
31122003-09-17 Mark Kettenis <kettenis@gnu.org>
3113
3114 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3115 * gdbarch.h, gdbarch.c: Regenerate.
3116 (stabs_argument_has_addr): New architecture method.
3117 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3118 * arch-utils.c: Include "buildsym.h".
3119 (default_stabs_argument_has_addr): New function.
3120 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3121 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3122
efe59759
AC
31232003-09-17 Andrew Cagney <cagney@redhat.com>
3124
3125 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3126 * gdbarch.h, gdbarch.c: Regenerate.
3127 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3128 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3129 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3130 * sparcnbsd-tdep.c: Update.
a8f4cde1 3131
62700349
AC
31322003-09-17 Andrew Cagney <cagney@redhat.com>
3133
3134 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3135 * gdbarch.h, gdbarch.c: Regenerate.
3136 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3137 * d10v-tdep.c, frame.c: Update.
3138 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3139 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3140 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3141 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3142 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3143 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3144 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3145 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3146 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3147 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3148 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3149 * config/pa/nm-hppah.h: Update.
3150
b9ff3018
AC
31512003-09-16 Andrew Cagney <cagney@redhat.com>
3152
3153 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3154 "use_struct_convention" to "ppc_linux_use_struct_convention".
3155 (ppc_linux_use_struct_convention): New function.
3156 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3157 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3158 "rs6000_use_struct_convention".
3159 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3160 declaration.
3161 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3162 Delete function.
3163
aa1ee363
AC
31642003-09-16 Andrew Cagney <cagney@redhat.com>
3165
3166 * buildsym.c: Remove more occurances of "register".
3167 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3168 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3169 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3170 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3171 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3172 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3173 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3174 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3175
f2ea0907
CV
31762003-09-16 Corinna Vinschen <vinschen@redhat.com>
3177
3178 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3179 numbers to enumeration values.
3180 * sh-tdep.c: Accomodate above change.
3181 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3182 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3183 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3184 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3185 (IS_FPUSH): Rename from IS_FMOV.
3186 (sh_extract_struct_value_address): Remove useless comment.
3187 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3188 instead of own local values.
3189 (sh_dump_tdep): Remove.
3190 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3191 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3192
1c704f11
AC
31932003-09-15 Andrew Cagney <cagney@redhat.com>
3194
3195 * doublest.c (convert_floatformat_to_doublest): No longer need to
3196 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3197
ac79b88b
DJ
31982003-09-15 Daniel Jacobowitz <drow@mvista.com>
3199
3200 * values.c (unpack_double): Call floatformat_is_valid.
3201
1c671366
MK
32022003-09-15 Mark Kettenis <kettenis@gnu.org>
3203
de5227fb
MK
3204 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3205 ps_strings into a long.
3206
1c671366
MK
3207 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3208 _initialize_am64fbsd_nat.
3209
a604369a
KB
32102003-09-15 Kevin Buettner <kevinb@redhat.com>
3211
3212 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3213 associated with DW_AT_ranges attribute is out of bounds.
3214
b3cacbee
DL
32152003-09-15 David Lecomber <dsl@sources.redhat.com>
3216
3217 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3218
d0f37bb2
MC
32192003-09-14 Michael Chastain <mec@shout.net>
3220
3221 * config/m68k/nm-apollo68v.h: Delete.
3222 * config/m68k/xm-apollo68v.h: Delete.
3223
69517000
AC
32242003-09-14 Andrew Cagney <cagney@redhat.com>
3225
3226 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3227 * dcache.c: Update copyrights and descriptions.
3228 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3229
ef8b349d
AC
32302003-09-14 Andrew Cagney <cagney@redhat.com>
3231
3232 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3233 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3234
52f0bd74
AC
32352003-09-14 Andrew Cagney <cagney@redhat.com>
3236
3237 * alpha-nat.c: Remove some occurances of "register".
3238 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3239 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3240 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3241 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3242 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3243 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3244 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3245 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3246 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3247 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3248 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3249 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3250 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3251 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3252 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3253 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3254 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3255 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3256 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3257 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3258 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3259 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3260
4a4b3fed
AC
32612003-09-13 Andrew Cagney <cagney@redhat.com>
3262
3263 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3264 * ppc-tdep.h (struct regcache): Declare opaque.
3265 * objfiles.h (struct objfile_data): Declare opaque.
3266 * cp-support.h (struct objfile): Declare opaque.
3267 * linux-nat.h (target_waitstatus): Declare opaque.
3268
2110b94f
MK
32692003-09-14 Mark Kettenis <kettenis@gnu.org>
3270
1c671366
MK
3271 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3272 (stabs_argument_has_addr): New architecture method.
3273 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3274 * arch-utils.c: Include "buildsym.h".
3275 (default_stabs_argument_has_addr): New function.
3276 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3277 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3278
2110b94f
MK
3279 * cris-tdep.c (cris_gdbarch_init): Set
3280 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3281 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3282 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3283 * mips-tdep.c (mips_gdbarch_init): Likewise.
3284 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3285 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3286
48436ce6
AC
32872003-09-13 Andrew Cagney <cagney@redhat.com>
3288
3289 * values.c (using_struct_return): Delete "function" and "funcaddr"
3290 parameters.
3291 * value.h (using_struct_return): Update declaration.
3292 * infcmd.c (finish_command_continuation): Update.
3293 (finish_command): Update.
3294 * infcall.c (call_function_by_hand): Update.
3295 * eval.c (evaluate_subexp_standard): Update.
3296
403d9909
CF
32972003-09-13 Christopher Faylor <cgf@redhat.com>
3298
3299 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3300 SSE registers since gdb will not operate correctly without this.
3301 Restore include file ordering munged in previous change.
3302 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3303
ebf7d56b
MK
33042003-09-13 Mark Kettenis <kettenis@gnu.org>
3305
8e823e25
MK
3306 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3307 REG_STRUCT_HAS_ADDR.
3308 * gdbarch.c, gdbarch.h: Updated.
3309 * infcall.c (call_function_by_hand): Update.
3310 * stabsread.c (define_symbol): Updated.
a8f4cde1 3311
ebf7d56b
MK
3312 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3313
d3f13f72
CF
33142003-09-12 Christopher Faylor <cgf@redhat.com>
3315
3316 * win32-nat.c: Reorganize so that defines used by target headers are
3317 actually defined by the system headers.
3318 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3319 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3320
14f75137
JB
33212003-09-12 Jim Blandy <jimb@redhat.com>
3322
d646061f
JB
3323 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3324 the file has no .data, .bss, or .rodata sections. Instead wait
3325 until we see a variable alleged to live in one of those sections.
3326
2a13f9bc
JB
3327 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3328 .bss section, presume that any variables we find live in the
3329 .rodata section.
3330
4f49b26b
JB
3331 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3332 offsets for global and static variables.
3333
14f75137
JB
3334 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3335 symbol types are, by definition, in the .data section, so it is
3336 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3337 If there is no .data section, there should be no N_DATA or N_DATA
3338 | N_EXT symbols.
3339
212c460c
MK
33402003-09-12 Mark Kettenis <kettenis@gnu.org>
3341
3342 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3343 (amd64fbsd_sigcontext_addr): Rewrite.
3344 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3345 with correct values.
3346 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3347 (amd64fbsd_init_abi): Fix typo.
3348
68856ea3
AC
33492003-09-12 Andrew Cagney <cagney@redhat.com>
3350
3351 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3352 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3353
627b3ba2
AC
33542003-09-12 Andrew Cagney <cagney@redhat.com>
3355
3356 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3357 "entry_file_highpc". Update comments.
3358 * defs.h (deprecated_inside_entry_file): Rename
3359 "inside_entry_file".
3360 * blockframe.c (deprecated_inside_entry_file): Rename
3361 "inside_entry_file".
3362 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3363 * vax-tdep.c (vax_frame_chain): Update.
3364 * sh64-tdep.c (sh64_frame_chain): Update.
3365 * sh-tdep.c (sh_frame_chain): Update.
3366 * rs6000-tdep.c (rs6000_frame_chain): Update.
3367 * ns32k-tdep.c (ns32k_frame_chain): Update.
3368 * mips-tdep.c (mips_frame_chain): Update.
3369 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3370 * m32r-tdep.c (m32r_frame_this_id): Update.
3371 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3372 * frv-tdep.c (frv_frame_this_id): Update.
3373 * d10v-tdep.c (d10v_frame_this_id): Update.
3374 * cris-tdep.c (cris_frame_chain): Update.
3375 * blockframe.c (legacy_frame_chain_valid): Update.
3376 * avr-tdep.c (avr_frame_this_id): Update.
3377 * arm-tdep.c (arm_prologue_this_id): Update.
3378 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3379 * objfiles.c (objfile_relocate): Update.
3380 * mipsread.c (mipscoff_symfile_read): Update.
3381 (mipscoff_symfile_read): Update.
3382 * mdebugread.c (parse_partial_symbols): Update.
3383 * dwarfread.c (read_file_scope): Update.
3384 * dwarf2read.c (read_file_scope): Update.
3385 * dbxread.c (read_dbx_symtab): Update.
3386 (read_dbx_symtab): Update.
3387 * coffread.c (complete_symtab): Update.
3388
b0abbc58
JJ
33892003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3390
3391 * top.c (quit_target): New static helper function.
3392 (quit_force): Moved code to quit_target(). Call quit_target()
3393 via catch_errors() to catch errors during quit.
3394
a1632d59
DC
33952003-09-11 David Carlton <carlton@kealia.com>
3396
3397 * buildsym.c (finish_block): Use allocate_block to allocate the
3398 block.
3399 * mdebugread.c (new_block): Add FIXME.
3400
5c4e30ca
DC
34012003-09-11 David Carlton <carlton@kealia.com>
3402
3403 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3404 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3405 (recursive_dump_type): Ditto.
3406 * printcmd.c (print_formatted): Ditto.
3407 * typeprint.c (print_type_scalar): Ditto.
3408 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3409 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3410 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3411 maint_cplus_cmd_list.
3412 * cp-support.c: Make maint_cplus_cmd_list extern.
3413 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3414 command.h.
3415 (lookup_symbol_file): Look in possible namespace blocks when
3416 appropriate.
3417 (initialize_namespace_symtab): New.
3418 (get_possible_namespace_block, free_namespace_block)
3419 (check_possible_namespace_symbols)
3420 (check_possible_namespace_symbols_loop)
3421 (check_one_possible_namespace_symbol)
3422 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3423 (_initialize_cp_namespace): Ditto.
3424 * block.h: Declare allocate_block.
3425 * block.c (allocate_block): New.
3426 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3427 allocate_block.
3428 * symfile.h: Update declaration of add_psymbol_to_list.
3429 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3430 question.
3431 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3432 scan_partial_symbols_call.
3433 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3434 helper functions.
3435 (add_partial_symbol): If necessary, scan mangled names for names
3436 of namespaces.
3437 (add_partial_namespace): Add NAMESPACE argument; generate partial
3438 symbols associated to namespaces.
3439 (add_partial_enumeration): Add NAMESPACE argument.
3440 (new_symbol): Allow namespace syms.
3441 (read_namespace): Generate namespace syms.
3442 * objfiles.h: Add opaque declaration of struct symtab.
3443 (struct objfile): Add cp_namespace_symtab member.
3444 * objfiles.c (allocate_objfile): Set
3445 objfile->cp_namespace_symtab.
3446 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3447 dictionary_h, command_h.
3448
33a7c2fc
AC
34492003-09-11 Andrew Cagney <cagney@redhat.com>
3450
3451 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3452 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3453 near the function's end.
3454 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3455 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3456 regcache_raw_write_signed to set SP_REGNUM.
3457
63cd24fe
EZ
34582003-09-11 Elena Zannoni <ezannoni@redhat.com>
3459
3460 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3461 orig_addrs is set up properly.
3462
f27dd7fd
AC
34632003-09-11 Andrew Cagney <cagney@redhat.com>
3464
3465 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3466 * gdbarch.h, gdbarch.c: Re-generate.
3467 * infcall.c (call_function_by_hand): Update.
3468 * hppa-tdep.c (hppa_push_arguments): Update.
3469 * ada-lang.c (place_on_stack): Update.
3470 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3471 * sparc-tdep.c (sparc_gdbarch_init): Update.
3472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3473 * hppa-tdep.c (hppa_gdbarch_init): Update.
3474 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3475 stack_align.
3476
f630a401
DJ
34772003-09-11 Daniel Jacobowitz <drow@mvista.com>
3478
3479 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3480 register do need a frame.
3481
0ddabb4c
AC
34822003-09-11 Andrew Cagney <cagney@redhat.com>
3483
3484 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3485 buildable since GDB 5.0.
3486 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3487 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3488 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3489 * irix4-nat.c: Delete file.
3490 * config/mips/irix4.mh: Delete file.
3491 * config/mips/irix3.mh: Delete file.
3492 * config/mips/irix3.mt: Delete file.
3493 * config/mips/tm-irix3.h: Delete file.
3494 * config/mips/nm-irix3.h: Delete file.
3495 * config/mips/xm-irix3.h: Delete file.
3496 * config/mips/nm-irix4.h: Delete file.
3497 * config/mips/xm-irix4.h: Delete file.
3498 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3499
fde2cceb
JB
35002003-09-10 J. Brobecker <brobecker@gnat.com>
3501
3502 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3503 * Makefile.in (hppa-tdep.o): Update dependencies.
3504
66f667f5
JW
35052003-09-10 James E Wilson <wilson@specifixinc.com>
3506
ef5fd69f
JW
3507 * MAINTAINERS: Change my e-mail address. Move to paper trail
3508 section.
66f667f5 3509
53e8aaea
KB
35102003-09-10 Kevin Buettner <kevinb@redhat.com>
3511
3512 * MAINTAINERS (frv): New ISA entry.
3513
dcc6aaff
KB
35142003-09-10 Kevin Buettner <kevinb@redhat.com>
3515
3516 * frv-tdep.c (dis-asm.h): Include.
3517 * Makefile.in (frv-tdep.o): Update dependencies.
3518
932644f0
JJ
35192003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3520
3521 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3522 Fix typo for high range of floating registers.
3523
91c24f0a
DC
35242003-09-09 David Carlton <carlton@kealia.com>
3525
3526 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3527 highpc initialization here out of scan_partial_symbols.
3528 (scan_partial_symbols): Restructure into a recursive version,
3529 calling add_partial_namespace and add_partial_enumeration when
3530 appropriate.
3531 (add_partial_namespace): New.
3532 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3533
c9263853
AC
35342003-09-09 Andrew Cagney <cagney@redhat.com>
3535
e56a0ecc
AC
3536 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3537 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3538 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3539 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3540
794a477a
AC
3541 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3542 (rs6000_push_dummy_call): Set the "TOC" register.
3543
c9263853
AC
3544 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3545 methods "max_register_raw_size", "max_register_virtual_size" or
3546 "register_virtual_size".
3547
afa7d0b2
ILT
35482003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3549
3550 * MAINTAINERS: Update my e-mail address.
3551
7a41266b
AC
35522003-09-09 Andrew Cagney <cagney@redhat.com>
3553
3554 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3555 (rs6000_push_dummy_call): Store the struct return address.
3556 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3557
77b2b6d4
AC
35582003-09-09 Andrew Cagney <cagney@redhat.com>
3559
3560 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3561 "ppc_sysv_abi_push_arguments".
3562 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3563 "ppc_sysv_abi_push_arguments".
3564 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3565 instead of "push_arguments".
3566 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3567
e8a7b686
AC
35682003-09-09 Andrew Cagney <cagney@redhat.com>
3569
3570 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3571 instead of CALL_DUMMY_ADDRESS.
3572
f86f5ca3
PH
35732003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3574
3575 * p-lang.c: Eliminate "register".
3576 * c-lang.c: Ditto.
3577 * expprint.c: Ditto.
3578 * f-lang.c: Ditto.
3579 * jv-lang.c: Ditto.
3580 * language.c: Ditto.
3581 * m2-lang.c: Ditto.
3582 * parse.c: Ditto.
3583 * scm-lang.c: Ditto.
3584 * objc-lang.c: Ditto.
3585
83ee270e
NC
35862003-09-09 Nick Clifton <nickc@redhat.com>
3587
3588 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3589
a89aa300
AC
35902003-09-04 Andrew Cagney <cagney@redhat.com>
3591
3592 * avr-tdep.c: Include "dis-asm.h".
3593 * cris-tdep.c: Include "dis-asm.h".
3594 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3595 instead of corresponding typedef.
3596 * h8300-tdep.c: Include "dis-asm.h".
3597 * ia64-tdep.c: Include "dis-asm.h".
3598 * i386-tdep.c: Include "dis-asm.h".
3599 (i386_print_insn): Use "struct disassemble_info" instead of
3600 corresponding typedef.
3601 * m68k-tdep.c: Include "dis-asm.h".
3602 * mcore-tdep.c: Include "dis-asm.h".
3603 * mips-tdep.c: Include "dis-asm.h".
3604 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3605 instead of corresponding typedef.
3606 * ns32k-tdep.c: Include "dis-asm.h".
3607 * s390-tdep.c: Include "dis-asm.h".
3608 * sparc-tdep.c: Include "dis-asm.h".
3609 * vax-tdep.c: Include "dis-asm.h".
3610 * v850-tdep.c: Include "dis-asm.h".
3611 * mn10300-tdep.c: Include "dis-asm.h".
3612 * rs6000-tdep.c: Include "dis-asm.h".
3613 * xstormy16-tdep.c: Include "dis-asm.h".
3614 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3615 print_insn_xstormy16.
3616 * Makefile.in (v850-tdep.o): Update dependencies.
3617 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3618 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3619 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3620 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3621 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3622 (gdbarch_h): Remove $(dis_asm_h).
3623 * disasm.c: Include "dis-asm.h".
3624 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3625 corresponding typedef.
3626 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3627 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3628 * gdbarch.sh: Do not include "dis-asm.h".
3629 (struct disassemble_info): Declare opaque.
3630 (TARGET_PRINT_INSN): Update declaration.
3631 * gdbarch.h, gdbarch.c: Re-generate.
3632
88a82a65
AC
36332003-09-08 Andrew Cagney <cagney@redhat.com>
3634
3635 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3636 CALL_DUMMY_ADDRESS, change to a predicate.
3637 * gdbarch.h, gdbarch.c: Re-generate.
3638 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3639 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3640 * infcall.c (call_function_by_hand): Ditto.
3641 * sparc-tdep.c (sparc_push_return_address): Ditto.
3642 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3643 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3644 CALL_DUMMY_ADDRESS with entry_point_address.
3645 * v850-tdep.c (v850_push_return_address): Ditto.
3646 * s390-tdep.c (s390_push_return_address): Ditto.
3647 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3648 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3649 * mcore-tdep.c (mcore_push_return_address): Ditto.
3650 * cris-tdep.c (cris_push_return_address): Ditto.
3651 * arm-tdep.c (arm_push_return_address): Ditto.
3652
3e2c4033
AC
36532003-09-08 Andrew Cagney <cagney@redhat.com>
3654
3655 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3656 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3657 and REG_UNMODIFIED to REG_SAME_VALUE.
3658 (execute_cfa_program): Update.
3659 (dwarf2_frame_cache): Update. Initialize table to
3660 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3661 location.
3662 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3663
39efb398
AC
36642003-09-08 Andrew Cagney <cagney@redhat.com>
3665
3666 * gnu-nat.c: Remove "inline" function attribute.
3667 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3668
f5cb5aca
KB
36692003-09-08 Kevin Buettner <kevinb@redhat.com>
3670
3671 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3672 target.
3673
1cb761c7
KB
36742003-09-08 Kevin Buettner <kevinb@redhat.com>
3675
3676 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3677 (frame_extra_info): Rename this struct to frv_unwind_cache.
3678 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3679 Add fields ``prev_sp'' and ``base''.
3680 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3681 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3682 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3683 Delete.
3684 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3685 Revise all callers. Fill in the unwind cache argument and make
3686 other adjustments to account for new frame mechanisms.
3687 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3688 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3689 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3690 (frv_frame_unwind, frv_frame_base): New structs.
3691 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3692 additional arguments expected by this method and adjust function
3693 body accordingly.
3694 (frv_gdbarch_init): Remove calls to the following functions:
3695 set_gdbarch_deprecated_init_frame_pc(),
3696 set_gdbarch_deprecated_saved_pc_after_call(),
3697 set_gdbarch_deprecated_frame_chain(),
3698 set_gdbarch_deprecated_frame_saved_pc(),
3699 set_gdbarch_deprecated_frame_init_saved_regs(),
3700 set_gdbarch_deprecated_push_arguments(),
3701 set_gdbarch_deprecated_push_return_address(),
3702 set_gdbarch_deprecated_pop_frame(),
3703 set_gdbarch_deprecated_call_dummy_words(),
3704 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3705 set_gdbarch_deprecated_init_extra_frame_info(),
3706 set_gdbarch_deprecated_dummy_write_sp(), and
3707 set_gdbarch_deprecated_pc_in_call_dummy().
3708 Add calls to the following functions:
3709 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3710 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3711 frame_base_set_default().
3712 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3713
68f6cf99
MK
37142003-09-09 Mark Kettenis <kettenis@gnu.org>
3715
3716 * dwarf2-frame.c (read_encoded_value): Add support for
3717 DW_EH_PE_aligned encoding.
3718
73b65bb0
DJ
37192003-09-08 Daniel Jacobowitz <drow@mvista.com>
3720
3721 * infrun.c (normal_stop): Don't print a message if the inferior
3722 has exited.
3723
7c8a5605
JB
37242003-09-08 Jim Blandy <jimb@redhat.com>
3725
3726 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3727 * dbxread.c: #include "gdb_assert.h".
3728 (read_dbx_symtab): If the objfile has no .data section, use the
3729 section index for the .bss section instead.
3730
7dd88986
DJ
37312003-09-08 Daniel Jacobowitz <drow@mvista.com>
3732
3733 * frame.c (deprecated_safe_get_selected_frame): New function.
3734 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3735 * findvar.c (read_var_value): Call it.
3736
55ff77ac
CV
37372003-09-08 Corinna Vinschen <vinschen@redhat.com>
3738
3739 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3740 (sh64-tdep.o): Add dependencies.
3741 * configure.tgt: Add FIXME to sh-*-linux*.
3742 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3743 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3744 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3745 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3746 * sh64-tdep.c: New file, containing all sh64 related code from
3747 sh-tdep.c.
3748 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3749 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3750 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3751 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3752 * config/sh/wince.mt (TDEPFILES): Ditto.
3753
bfb39158
DJ
37542003-09-07 Daniel Jacobowitz <drow@mvista.com>
3755
3756 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3757 (stop_wait_callback): Handle !lp->signalled also.
3758 (lin_lwp_has_pending, flush_callback): New functions.
3759 (lin_lwp_wait): Call flush_callback.
3760 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3761 (linux_proc_pending_signals): New function.
3762 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3763
9407de8e
DJ
37642003-09-07 Daniel Jacobowitz <drow@mvista.com>
3765
3766 From Nick Kelsey <nickk@ubicom.com>:
3767 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3768 when the stop PC is at the beginning of a function also.
3769
2ef47cd0
DJ
37702003-09-06 Daniel Jacobowitz <drow@mvista.com>
3771
3772 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3773 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3774
6f4492c8
MK
37752003-09-06 Mark Kettenis <kettenis@gnu.org>
3776
3777 * sol-thread.c: Include "gdb_string.h".
3778
d3420b2f
MK
37792003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3780
3781 * gcore.c: Reorder include files in alphabetical order. Include
3782 "gdb_assert.h". Various coding style fixes.
3783 (derive_stack_segment, derive_heap_segment): Replace check for
3784 non-null BOTTOM and TOP with gdb_assert.
3785 (derive_heap_segment): Replace check for successful creation of
3786 ZERO with gdb_assert.
3787 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3788
5220ea4c
AC
37892003-09-04 Andrew Cagney <cagney@redhat.com>
3790
3791 * thread-db.c (verbose_dlsym): New function.
3792 (thread_db_load): Use verbose_dlsym
3793 (thread_db_new_objfile): Print that libthread_db was loaded, and
3794 that thread debugging was enabled.
3795
6e8c2c06
AC
37962003-09-04 Andrew Cagney <cagney@redhat.com>
3797
3798 * configure.tgt: Add "mips64*-*-*" target. Delete
3799 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3800 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3801 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3802 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3803 mips*-sony-*, and mips64*-*-elf* targets.
3804 * config/mips/embedl.mt: Delete file.
3805 * config/mips/embedl64.mt: Delete file.
3806 * config/mips/mips.mt: Delete file.
3807 * config/mips/mips64.mt: Delete file.
3808 * config/mips/tm-embed.h: Delete file.
3809 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3810 * config/mips/embed64.mt: Delete out-of-date comment.
3811
3a3bc038
AC
38122003-09-04 Andrew Cagney <cagney@redhat.com>
3813
3814 * hppa-tdep.c (hppa_gdbarch_init): Set
3815 "have_nonsteppable_watchpoint".
3816 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3817 * mips-tdep.c (mips_dump_tdep): Do not print
3818 HAVE_NONSTEPPABLE_WATCHPOINT.
3819 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3820 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3821 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3822 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3823
a957e642
CV
38242003-09-04 Corinna Vinschen <vinschen@redhat.com>
3825
3826 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3827 unused code. Add comment.
3828
a6fbcf2f
CV
38292003-09-04 Corinna Vinschen <vinschen@redhat.com>
3830
3831 * breakpoint.c (watchpoint_check): Check for pc being in an
3832 epilogue if watchpoint frame couldn't be found.
3833
c14a44d5
AC
38342003-09-04 Andrew Cagney <cagney@redhat.com>
3835
3836 * Makefile.in: Re-generate all dependencies.
3837
f6c40618
AC
38382003-09-03 Andrew Cagney <cagney@redhat.com>
3839
3840 * arch-utils.h (legacy_print_insn): Delete declaration.
3841 * arch-utils.c (legacy_print_insn): Delete function.
3842 * disasm.c (deprecated_tm_print_insn_info): Delete.
3843 (_initialize_disasm): Delete function, contained code initializing
3844 deprecated_tm_print_insn_info.
3845 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3846 (deprecated_tm_print_insn_info): Delete.
3847 (TARGET_PRINT_INSN): Do not provide a default.
3848 * gdbarch.h, gdbarch.c: Re-generate.
3849
242e8be5
AC
38502003-09-03 Andrew Cagney <cagney@redhat.com>
3851
3852 * disasm.c (fprintf_disasm): New function.
3853 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3854 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3855 reverts 2003-08-14 change.
3856 (_initialize_disasm): Call "init_disassemble_info", instead of
3857 INIT_DISASSEMBLE_INFO_NO_ARCH.
3858
3ffc3dda
MS
38592003-09-03 Michael Snyder <msnyder@redhat.com>
3860
3861 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3862
52d16ba8
AC
38632003-09-03 Andrew Cagney <cagney@redhat.com>
3864
3865 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3866 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3867 * symfile.c (syms_from_objfile): Update.
3868 (reread_symbols): `Update
3869 * exec.c (exec_file_attach): Update.
3870 (exec_file_attach): Update.
3871 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3872 2003-08-29 change.
3873 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3874
eb5492fa
DJ
38752003-09-03 Daniel Jacobowitz <drow@mvista.com>
3876
3877 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3878 trad-frame.h.
3879 (arm_get_cache): Delete macro.
3880 (struct arm_prologue_cache): Update comments. Make saved_regs into
3881 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3882 to prev_sp.
3883 (thumb_scan_prologue): Update for cache changes. Don't call
3884 DEPRECATED_PC_IN_CALL_DUMMY.
3885 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3886 argument and use it in desperation search for our prologue. Do not
3887 search past the specified PC.
3888 (arm_make_prologue_cache): Simplify.
3889
3890 (arm_prologue_this_id, arm_prologue_prev_register)
3891 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3892 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3893 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3894 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3895 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3896
3897 (arm_frame_chain_valid, arm_find_callers_reg)
3898 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3899 (arm_pop_frame): Delete obsolete methods.
3900 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3901
3902 (arm_gdbarch_init): Update for new frame methods. Register prologue
3903 and sigtramp unwinders. Set the default frame base method.
3904
3905 * Makefile.in (arm-tdep.o): Update dependencies.
3906 * varobj.c (find_frame_addr_in_frame_chain): Call
3907 get_frame_base_address.
3908 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3909
24de872b
DJ
39102003-09-03 Daniel Jacobowitz <drow@mvista.com>
3911
3912 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3913 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3914 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3915 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3916 Take NEXT_FRAME and CACHE arguments. Call
3917 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3918 Set unwound_pc in CACHE instead of modifying the frame argument.
3919 Don't bother checking the frame type when looking for sigtramp
3920 frames.
3921 (arm_make_prologue_cache, arm_frame_chain)
3922 (arm_init_extra_frame_info): New functions.
3923
9b8d791a
DJ
39242003-09-03 Daniel Jacobowitz <drow@mvista.com>
3925
3926 * arm-tdep.c (arm_get_cache): Define.
3927 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3928 unwound_sp, unwound_pc, and saved_regs.
3929 (thumb_scan_prologue): Take a cache instead of the frame.
3930 (arm_scan_prologue): Likewise.
3931 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3932 instead of a temporary frame.
3933 (arm_init_extra_frame_info): Allocate and use a cache.
3934 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3935
7ee3275f
AC
39362003-09-03 Andrew Cagney <cagney@redhat.com>
3937
3938 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3939 * config/mips/wince.mt (TM_CLIBS): Ditto.
3940 * config/sh/wince.mt (TM_CLIBS): Ditto.
3941 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3942 * config/sparc/sp64.mt (CC): Delete.
3943
57b29be7
AC
39442003-09-03 Andrew Cagney <cagney@redhat.com>
3945
3946 * defs.h: Do not include "arch-utils.h".
3947 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3948 GDB_MULTI_ARCH_PURE.
3949 * configure.in (GDB_MULTI_ARCH): Do not define.
3950 * configure, config.in: Regenerate.
3951 * configure.tgt: Do not set variable "gdb_multi_arch".
3952 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3953 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3954 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3955 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3956 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3957 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3958 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3959 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3960 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3961 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3962 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3963 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3964 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3965 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3966 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3967 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3968 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3969 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3970
12e035e2
MC
39712003-08-30 Michael Chastain <mec@shout.net>
3972
3973 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3974 * config/m68k/nm-hp300hpux.h: Delete.
3975 * config/m68k/tm-hp300hpux.h: Delete.
3976 * config/m68k/xm-hp300hpux.h: Delete.
3977 * config/m68k/xm-hp300bsd.h: Delete.
3978 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3979 tm-hp300hpux.h, xm-hp300hpux.h.
3980 * somsolib.c: Remove comment about hp300 shared libraries.
3981
bda34dc2
MK
39822003-08-31 Mark Kettenis <kettenis@gnu.org>
3983
5bca7895
MK
3984 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3985 Only define PTRACE_GET_THREAD_AREA is not already defined.
3986 Various style fixes in code and comments and some additional
3987 spelling fixes in comments. Move after functions dealing with
3988 debug registers.
3989 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3990 Fix coding-style.
3991
bda34dc2
MK
3992 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3993 frame_unwind_register_unsigned instead of
3994 frame_unwind_unsigned_register.
3995
c890192f
MK
39962003-08-30 Mark Kettenis <kettenis@gnu.org>
3997
3998 * configure.in: Search for gethostbyname in libnsl.
3999 * configure: Regenerated.
4000
60fac5b8
MK
40012003-08-29 Mark Kettenis <kettenis@gnu.org>
4002
e294916c
MK
4003 * configure.in: Remove redundant AC_MSG_RESULT in check for
4004 uintptr_t in stdint.h.
4005 * configure: Regenerated.
4006
c40d267a
MK
4007 * amd64-nat.h (struct regcache): Add opaque declaration.
4008
60fac5b8
MK
4009 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
4010 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
4011 Change "register array" to "register cache" in comments.
4012 (x86_64_linux_gregset64_reg_offset): New variable.
4013 (GETREGS_SUPPLIES): Remove macro.
4014 (supply_gregset): Call amd64_supply_native_gregset instead of
4015 x86_64_linux_supply_gregset.
4016 (fill_gregset): Rename `regno' to `regnum'. Call
4017 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
4018 (store_regs): Rename `regno' to `regnum'.
4019 (store_fpregs): Rename `regno' to `regnum'.
4020 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
4021 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4022 Reorganize function a bit.
4023 (store_inferior_registers): Rename `regno' to `regnum'. Use
4024 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4025 Reorganize function a bit.
4026 (_initialize_x86_64_linux_nat): New function.
4027 * config/i386/x86-64linux.mh.
4028
546143b6
AC
40292003-08-29 Andrew Cagney <cagney@redhat.com>
4030
4031 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
4032 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
4033 (target_remove_watchpoint): Delete macro.
4034 (target_insert_watchpoint): Delete macro.
4035 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
4036 (remote_mips_stopped_by_watchpoint): Delete declaration.
4037 (remote_mips_remove_watchpoint): Delete declaration.
4038 (remote_mips_set_watchpoint): Delete declaration.
4039 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
4040 * remote-mips.c (_initialize_remote_mips): Set
4041 "to_insert_watchpoint", "to_stopped_by_watchpoint",
4042 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4043 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4044 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4045 (mips_stopped_by_watchpoint): Rename
4046 remote_mips_stopped_by_watchpoint.
4047 (mips_can_hardware_watchpoint): Rename
4048 remote_mips_can_use_hardware_watchpoint, update function
4049 signature.
4050
7bace51b
MK
40512003-08-29 Mark Kettenis <kettenis@gnu.org>
4052
b0f5c6f2
MK
4053 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4054 USER_DS. We haven't given them a register number yet.
4055
2a6d284d
MK
4056 * amd64-nat.h: New file.
4057 * amd64-nat.c: New file.
4058 * amd64fbsd-nat.c: Include "amd64-nat.h".
4059 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4060 (amd64fbsd32_r_reg_offset): New variable.
4061 (supply_gregset): Simply call amd64_supply_native_gregset.
4062 (fill_gregset): Rename `regno' to `regnum'. Simply call
4063 amd64_collect_native_gregset.
4064 (fill_fpregset): Rename `regno' to `regnum'.
4065 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
4066 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4067 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4068 `fpregset_t'. Call amd64_supply_native_gregset instead of
4069 supply_gregset. Call x86_64_supply_fxsave instead of
4070 supply_fpregset.
4071 (store_inferior_registers): Rename `regno' to `regnum'. Replace
4072 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4073 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4074 `fpregset_t'. Call amd64_collect_native_gregset instead of
4075 fill_gregset. Call x86_64_collect_fxsave instead of
4076 fill_fpregset.
4077 (_initialize_am64fbsd_nat): Initialize
4078 amd64_native_gregset32_reg_offset and
4079 amd64_native_gregset64_reg_offset.
4080 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4081
a16d75cc
MK
4082 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4083 null pointer. Fix typo in comment.
4084
7bace51b
MK
4085 * regcache.c (supply_register): Reimplement to call
4086 regcache_raw_supply.
4087 (regcache_collect): Reimplement by calling regcache_raw_collect.
4088
9a661b68
MK
40892003-08-28 Mark Kettenis <kettenis@gnu.org>
4090
4091 * regcache.c (register_buffer): Consitify first argument.
4092 (regcache_raw_supply, regcache_raw_collect): New
4093 functions.
4094
e94cc8fa
DJ
40952003-08-28 Daniel Jacobowitz <drow@mvista.com>
4096
4097 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4098 by Nathan J. Williams.
4099
c64bd0ce
DJ
41002003-08-28 Daniel Jacobowitz <drow@mvista.com>
4101
4102 * lin-lwp.c (wait_lwp): New function, copied from
4103 stop_wait_callback. Clean up.
4104 (stop_wait_callback): Use wait_lwp.
4105
e5ab0dce
AC
41062003-08-28 Andrew Cagney <cagney@redhat.com>
4107
4108 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4109 flavour and disassembler options.
4110 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4111 (mips_gdbarch_init): Set "print_insn". Delete initialization of
4112 deprecated_tm_print_insn_info.
a8f4cde1 4113
a788de9b
AC
41142003-08-27 Andrew Cagney <cagney@redhat.com>
4115
4116 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4117 Use target_read_memory.
4118 (s390_get_frame_info): Update. Do not reference
4119 deprecated_tm_print_insn_info.
4120 (s390_check_function_end, s390_is_sigreturn): Ditto.
4121
36482093
AC
41222003-08-27 Andrew Cagney <cagney@redhat.com>
4123
4124 * Makefile.in (cris-tdep.o): Update dependencies.
4125 * cris-tdep.c: Include "gdb_assert.h".
4126 (cris_gdbarch_init): Set print_insn.
4127 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4128 (cris_delayed_get_disassembler): Simplify, directly call the
4129 disassembler returned by cris_get_disassembler.
4130 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4131 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4132 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4133 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4134 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4135 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4136 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4137 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4138 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4139 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4140 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4141 (gdb_print_insn_sparc): Delete function.
4142 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4143 deprecated_tm_print_insn_info.
4144 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4145 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4146 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4148 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4149 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4150 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4151 (s390_gdbarch_init): Set print_insn.
4152
0285512f
AC
41532003-08-27 Andrew Cagney <cagney@redhat.com>
4154
4155 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4156 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4157 * infcall.c (call_function_by_hand): Convert the entry point
4158 address into a code address.
4159
cdcd5552
AC
41602003-08-27 Andrew Cagney <cagney@redhat.com>
4161
4162 * dsrec.c: Include "gdb_string.h".
4163 * Makefile.in (dsrec.o): Update dependencies.
4164
e85cddad
MC
41652003-08-27 Michael Chastain <mec@shout.net>
4166
4167 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4168
8bbfbb23
AC
41692003-08-27 Andrew Cagney <cagney@redhat.com>
4170
4171 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4172 (alpha_osf1_init_abi): Do not set call_dummy_address.
4173
ba058b66
DC
41742003-08-27 David Carlton <carlton@kealia.com>
4175
4176 From Randolph Chung <tausq@debian.org>:
4177 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4178 compiles with -Wformat-nonliteral -Werror.
4179
87f84c9d
JB
41802003-08-26 Jim Blandy <jimb@redhat.com>
4181
4182 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4183 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4184 bfd_lookup_symbol, since we only want symbols in code sections.
4185 (look_for_base): Pass zero as the SECT_FLAGS argument to
4186 bfd_lookup_symbol, since we're not concerned about which section
4187 the symbol is in.
4188
102d615a
JJ
41892003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4190
4191 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 4192 we are frameless or the return address register is already known.
102d615a 4193
cc7ad3ea
AC
41942003-08-26 Andrew Cagney <cagney@redhat.com>
4195
4196 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4197 in size. Add comments.
4198
af8b88dd
JJ
41992003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4200
4201 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 4202 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 4203
e0a4f5a1
JM
42042003-08-26 Jason Merrill <jason@redhat.com>
4205
4206 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4207 case out of #ifdef MIPS block.
4208
4ae9ee8e
DJ
42092003-08-25 Daniel Jacobowitz <drow@mvista.com>
4210
4211 PR java/1322
4212 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4213 available before calling SECT_OFF_TEXT.
3c164570 4214 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 4215
004d836a
JJ
42162003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4217
a8f4cde1 4218 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
4219 bof, and nat0-nat127 as pseudo-registers.
4220 (ia64_frame_cache): New struct used to cache frame info.
4221 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 4222 register grouping so registers without names are still saved and
004d836a 4223 restored.
a8f4cde1 4224 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
4225 pseudo values.
4226 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4227 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 4228 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
4229 ia64_frame_cache.
4230 (examine_prologue): Change prototype to add next_frame pointer.
4231 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 4232 current frame matches the cfm that should occur for the prologues
004d836a
JJ
4233 alloc insn and if equal, mark as not frameless. At end of routine,
4234 if not frameless, calculate registers for the previous frame and store
4235 in the cache, if a cache is provided.
4236 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4237 and pass 0 for next_frame.
4238 (ia64_store_return_value): Change to use convert_typed_floating()
4239 instead of calling ia64_convert_to_raw().
4240 (ia64_extract_return_value): Change to use convert_typed_floating()
4241 instead of calling ia64_convert_to_virtual().
4242 (ia64_frame_cache): New routine to support new frame model.
4243 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4244 (ia64_frame_sniffer): Ditto.
4245 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4246 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4247 (ia64_sigtramp_frame_prev_register): Ditto.
4248 (ia64_sigtramp_frame_sniffer): Ditto.
4249 (ia64_frame_base_address): Ditto.
4250 (ia64_extract_struct_value_address): Change to issue error message.
4251 (ia64_frame_align): New routine to align sp.
4252 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4253 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4254 ia64_push_dummy_call().
4255 (ia64_push_return_address): Ditto.
4256 (ia64_unwind_dummy_id): New function.
4257 (ia64_unwind_pc): Ditto.
4258 (ia64_convert_register_p): Ditto.
4259 (ia64_register_to_value): Ditto.
4260 (ia64_value_to_register): Ditto.
4261 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4262 (ia64_register_byte, ia64_register_raw_size): Ditto.
4263 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4264 (ia64_saved_pc_after_call): Ditto.
4265 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4266 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4267 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4268 (ia64_register_convert_to_raw): Ditto.
4269 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4270 (ia64_init_extra_frame_info): Ditto.
4271 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4272 (ia64_gdbarch_init): Remove registering of deprecated functions that
4273 are no longer used. Add registration of new gdbarch functions.
4274 Remove registering deprecated_write_sp. Replace
4275 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4276 Delete set_gdbarch_deprecated_register_convertible(),
4277 set_gdbarch_deprecated_register_convert_to_virtual(), and
4278 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4279 set_gdbarch_deprecated_register_size(),
4280 set_gdbarch_deprecated_register_bytes(),
4281 set_gdbarch_pcregnum(),
4282 set_gdbarch_deprecated_register_byte(),
4283 set_gdbarch_deprecated_register_raw_size(),
4284 set_gdbarch_deprecated_max_register_raw_size(),
4285 set_gdbarch_deprecated_register_virtual_size(),
4286 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4287 Replace set_gdbarch_deprecated_extract_return_value() with
4288 set_gdbarch_extract_return_value(). Remove calls to:
4289 set_gdbarch_deprecated_saved_pc_after_call();
4290 set_gdbarch_deprecated_frame_chain(),
4291 set_gdbarch_deprecated_frame_saved_pc(),
4292 set_gdbarch_deprecated_frame_init_saved_regs(),
4293 set_gdbarch_deprecated_get_saved_register(),
4294 set_gdbarch_deprecated_call_dummy_words(),
4295 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4296 set_gdbarch_deprecated_init_extra_frame_info(),
4297 set_gdbarch_deprecated_frame_args_address(),
4298 set_gdbarch_deprecated_frame_locals_address(),
4299 and set_gdbarch_deprecated_dummy_write_sp().
4300 Add set_gdbarch_convert_register_p(),
4301 set_gdbarch_register_to_value(),
4302 set_gdbarch_value_to_register(),
4303 set_gdbarch_push_dummy_call(),
4304 set_gdbarch_frame_align(),
4305 set_gdbarch_unwind_dummy_id(),
4306 set_gdbarch_unwind_pc(),
4307 frame_unwind_append_sniffer(),
4308 frame_unwind_append_sniffer(),
4309 and frame_base_set_default().
4310
aede7613
CD
43112003-08-25 Chris Demetriou <cgd@broadcom.com>
4312
4313 * configure.tgt: Document need for special "mipsisa64" handling.
4314 (mipsisa64*-*-linux64): Handle as target linux64.
4315 (mipsisa64*-*-*): Handle as target embed64.
4316
43c3a82e
MC
43172003-08-18 Michael Chastain <mec@shout.net>
4318
4319 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4320 objfile bug.
4321
6564f77d
MK
43222003-08-24 Mark Kettenis <kettenis@gnu.org>
4323
2de139ba
MK
4324 * i387-tdep.h: Update copyright date.
4325 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4326
6564f77d
MK
4327 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4328 CFLAGS games to reflect reality.
4329
42cf1509
AC
43302003-08-24 Andrew Cagney <cagney@redhat.com>
4331
4332 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4333 GDB_MULTI_ARCH is always non-zero.
4334 * osabi.c (_initialize_gdb_osabi): Ditto.
4335 (gdbarch_init_osabi): Ditto.
4336 * sparc-tdep.c: Ditto for #if code.
4337
0485f6ad
MK
43382003-08-23 Mark Kettenis <kettenis@gnu.org>
4339
4340 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4341 Update comments.
4342 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4343 comments.
4344 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4345 x86_64_supply_fxsave.
4346 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4347 x86_64_supply_fxsave.
4348 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4349 x86_64_supply_fxsave.
4350
c7716133
AJ
43512003-08-23 Andreas Jaeger <aj@suse.de>
4352
4353 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4354 i387_supply_fxsave.
4355
ed504bdf
MK
43562003-08-23 Mark Kettenis <kettenis@gnu.org>
4357
4358 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4359 i387_supply_register.
4360 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4361 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4362 i387_supply_fsave.
4363 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4364 i387_supply_fxsave.
4365 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4366 i387_supply_fsave.
4367 * i386bsd-nat.c (supply_fpregset): Adjust call to
4368 i387_supply_fsave.
4369 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4370 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4371 supply_fpregset.
4372 (store_inferior_registers): Remove extraneous whitespace. Call
4373 i387_fill_fsave instead of fill_fpregset.
4374 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4375 (supply_fpregset): Likewise.
4376 * i386v4-nat.c (supply_fpregset): Adjust call to
4377 i387_supply_fsave.
4378 * i386-interix-nat.c (supply_fpregset): Adjust call to
4379 i387_supply_fsave.
4380 * i386-linux-nat.c (supply_fpregset): Adjust call to
4381 i387_supply_fsave.
4382 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4383 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4384 i387supply_fsave and i387_supply_fxsave.
4385 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4386 Incorporate code from `i387_supply_register.
4387 (i387_supply_register): Remove.
4388 (i387_supply_fxsave): Add `regnum' argument.
4389 Update comments.
4390 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4391 prototype.
4392 (i387_supply_register): remove prototype.
4393 Update comments.
a8f4cde1 4394
4be5d520
MC
43952003-08-22 Michael Chastain <mec@shout.net>
4396
4397 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4398 Add lines for files in gdb/testsuite/gdb.cp/* that are
4399 still not 8.3 unique.
4400
7ed85d26
DJ
44012003-08-22 Daniel Jacobowitz <drow@mvista.com>
4402
4403 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4404 TYPE_VPTR_FIELDNO is valid.
4405
eb0d3137
MK
44062003-08-19 Mark Kettenis <kettenis@gnu.org>
4407
4408 * utils.c (set_width_command): Remove prototypes.
4409 (set_screen_size): New prototype.
4410 (init_page_info): Simplify by fetching the screen size from
4411 Readline. Call set_screen_size.
4412 (set_screen_size): New function.
4413 (set_width): Add missing whitespace in comment.
4414 (set_width_command): Call set_screen_size.
4415 (set_height_command): New function.
4416 (initialize_utils): Fix formatting. Make "set height" command
4417 call set_height_command. Remove redundant code that turns off
4418 pagination if output isn't a terminal. Remove redundant call to
4419 set_width_command.
a8f4cde1 4420
7e6d0ac8
MK
44212003-08-22 Mark Kettenis <kettenis@gnu.org>
4422
3567a8ea
MK
4423 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4424 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4425 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4426 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4427 `case' keyword.
4428 (sparc64_register_info): Give the reister with number
4429 SPARC64_STATE_REGNUM a name.
4430 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4431 %asi and %ccr.
4432 (sparc64_push_dummy_call): Take BIAS into account when checking
4433 stcak alignment.
4434 (sparc_software_single_step): Remove assertions that check whether
4435 NPC and NNPC were zero.
4436 (sparc_supply_rwindow): Make public. Merge functionality with
4437 sparc64_supply_rwindow.
4438 (sparc_fill_rwindow): Make public. Merge functionality with
4439 sparc64_fill_rwindow.
4440 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4441 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4442 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4443 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4444 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4445
7e6d0ac8
MK
4446 * reggroups.c: Add whitespace after declarations of local
4447 variables in functions.
4448
72e5f484
MC
44492003-08-21 Michael Chastain <mec@shout.net>
4450
4451 * gdbtypes.h: Change array bound type from an int to enum.
4452
435ac228
AC
44532003-08-21 Andrew Cagney <cagney@redhat.com>
4454
4455 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4456 * config/sparc/tm-sparc.h: Ditto.
4457 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4458 unconditionally.
4459 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4460
0d0e1a63
MK
44612003-07-13 Mark Kettenis <kettenis@gnu.org>
4462
4463 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4464 (register_objfile_data, set_objfile_data, objfile_data): New
4465 prototypes.
4466 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4467 prototypes.
4468 (allocate_objfile): Call objfile_alloc_data.
4469 (free_objfile): Call objfile_free_data.
4470 (struct objfile_data): New.
4471 (struct objfile_data_registration): New.
4472 (struct objfile_data_registry): New.
4473 (objfile_data_registry): New variable.
4474 (register_objfile_data): New function.
4475 (objfile_alloc_data, objfile_free_data): New functions.
4476 (set_objfile_data, objfile_data): New functions.
4477 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4478 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4479 (_initialize_dwarf2_frame): New function and prototype.
4480
d90cf509
AC
44812003-08-21 Andrew Cagney <cagney@redhat.com>
4482
4483 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4484 a specific architecture.
4485 * arch-utils.h (set_architecture_from_arch_mach): Delete
4486 declaration.
4487 (target_architecture_hook): Delete declaration.
4488 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4489 (default_float_format): Assume GDB_MULTI_ARCH.
4490 (default_double_format): Assume GDB_MULTI_ARCH.
4491 (set_endian_from_file): Delete function.
4492 (arch_ok): Delete function.
4493 (set_arch): Delete function.
4494 (set_architecture_from_arch_mach): Delete function.
4495 (set_architecture_from_file): Delete function.
4496 (set_architecture): Assume GDB_MULTI_ARCH.
4497 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4498
8b39fe56
MK
44992003-08-21 Mark Kettenis <kettenis@gnu.org>
4500
4501 Rewrite FreeBSD/sparc64 native configuration.
4502 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4503 * sparc64fbsd-nat.c: New file.
4504 * sparc64fbsd-tdep.c: New file.
4505 * sparc64-tdep.c sparc64-tdep.h: New files.
4506 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4507 sparc64fbsd-tdep.o): New dependencies.
4508 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4509 and sparc64fbsd-tdep.c.
4510 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4511 * config/sparc/fbsd.mh: Remove copyright notice.
4512 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4513 sparcbsd-nat.o.
4514 * config/sparc/fbsd.mt: Remove copyright notice.
4515 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4516 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4517 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4518 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4519 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4520 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4521 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4522 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4523 "sparc/tm-sp64.h".
4524 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4525 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4526
a7f19c79
MC
45272003-08-21 Michael Chastain <mec@shout.net>
4528
4529 * symtab.h: Add doco on the space critical structures and
4530 some measurements of space usage.
4531
da08ea5b
MS
45322003-08-21 Michael Snyder <msnyder@redhat.com>
4533
4534 * tracepoint.c (trace_dump_command): Trace break address
4535 is subject to DECR_PC_AFTER_BREAK.
4536 (set_traceframe_context): Make "trace_line" an int.
4537 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4538
6df2bf50
MS
45392003-08-20 Michael Snyder <msnyder@redhat.com>
4540
4541 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4542 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4543 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4544 argument passing.
a8f4cde1 4545 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4546 functions, replace sh_push_dummy_call.
4547 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4548
0955bbf0
MC
45492003-08-20 Michael Chastain <mec@shout.net>
4550
4551 * gdbtypes.h (struct main_type): Rearrange to save space.
4552
260a4188
MS
45532003-08-20 Michael Snyder <msnyder@redhat.com>
4554
4555 * trad-frame.c: Comment typo fix.
4556
8baa6f92
KB
45572003-08-20 Michael Snyder <msnyder@redhat.com>
4558 Kevin Buettner <kevinb@redhat.com>
4559
4560 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4561 (frv_frame_init_saved_regs): Add declaration.
4562 (frame_extra_info): Add new field ``saved_regs''.
4563 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4564 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4565 Update frame related code.
4566 (frv_extract_struct_value_address): Adjust formatting.
4567 * Makefile.in (frv-tdep.o): Update dependencies.
4568 * config/frv/tm-frv.h (target_insert_watchpoint)
4569 (target_remove_watchpoint, target_insert_hw_breakpoint)
4570 (target_remove_hw_breakpoint): Delete these macros.
4571 (remote_insert_watchpoint, remote_remove_watchpoint)
4572 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4573 these declarations.
4574
87193939
MC
45752003-08-20 Michael Chastain <mec@shout.net>
4576
4577 * defs.h (ENUM_BITFIELD): New macro.
4578 * symtab.h (ENUM_BITFIELD): Use it.
4579 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4580
062103ba
SA
45812003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4582
4583 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4584
8b148df9
AC
45852003-08-18 Andrew Cagney <cagney@redhat.com>
4586
4587 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4588 * gdbarch.h, gdbarch.c: Re-generate.
4589 * infcall.c (call_function_by_hand): Adjust the SP by
4590 frame_red_zone_size before allocating any stack space.
4591 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4592 * x86-64-tdep.c (x86_64_frame_align): New function.
4593 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4594
4595 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4596 Remove code adjusting SP so that it skips over the Red Zone.
4597
954a4db8
MK
45982003-08-18 Mark Kettenis <kettenis@gnu.org>
4599
4600 * NEWS (New native configurations): Mention FreeBSD/amd64.
4601
1a241548
AC
46022003-08-18 Andrew Cagney <cagney@redhat.com>
4603
4604 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4605 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4606 "m68k_frame_p".
4607 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4608
f82b2acd
MK
46092003-08-18 Mark Kettenis <kettenis@gnu.org>
4610
4611 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4612
4056d258
ML
46132003-08-18 Michal Ludvig <mludvig@suse.cz>
4614
4615 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4616 Define.
4617 * i386-linux-nat.c: Include "linux-nat.h".
4618 (child_post_startup_inferior): New function.
a8f4cde1 4619
99ab4326
MK
46202003-08-18 Mark Kettenis <kettenis@gnu.org>
4621
4622 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4623 at the start of a frameless function. This probably fixes PR
4624 backtrace/1338.
4625
c8d5f0d6
MC
46262003-08-17 Michael Chastain <mec@shout.net>
4627
4628 * symfile.c (find_sym_fns): Remove special case for apollo target.
4629
9016a515
DJ
46302003-08-17 Daniel Jacobowitz <drow@mvista.com>
4631
4632 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4633 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4634 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4635 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4636 (linux_supports_tracevforkdone): New function.
4637 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4638 TRACEVFORKDONE.
4639 (child_follow_fork): Handle vfork.
4640 (linux_handle_extended_wait): Likewise. Also handle exec.
4641 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4642 * NEWS: Mention fork tracing.
4643
c538c11c
DJ
46442003-08-17 Daniel Jacobowitz <drow@mvista.com>
4645
4646 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4647
4de4c07c
DJ
46482003-08-17 Daniel Jacobowitz <drow@mvista.com>
4649
4650 * Makefile.in (i386-linux-nat.o): Update dependencies.
4651 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4652 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4653 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4654 * i386-linux-nat.c: Include "linux-nat.h".
4655 (child_post_startup_inferior): New function.
4656 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4657 * infptrace.c (kill_inferior): Wrap in #ifdef.
4658 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4659 attaching to each LWP.
4660 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4661 (init_lin_lwp_ops): Fill in some more operations.
4662 * linux-nat.h (linux_enable_event_reporting)
4663 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4664 prototypes.
4665 * linux-nat.c (linux_enable_event_reporting): New function.
4666 (child_post_attach, linux_child_post_startup_inferior)
4667 (child_post_startup_inferior, child_follow_fork)
4668 (linux_handle_extended_wait, kill_inferior): New functions.
4669
7996bcec
AC
46702003-08-16 Andrew Cagney <cagney@redhat.com>
4671
4672 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4673 * gdbarch.h, gdbarch.c: Re-generate.
4674
3d48a7a0
MK
46752003-08-16 Mark Kettenis <kettenis@gnu.org>
4676
4677 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4678
7989c619
AC
46792003-08-16 Andrew Cagney <cagney@redhat.com>
4680
4681 * NEWS: Mention that "set prompt-escape-char" was deleted.
4682 * top.c (get_prompt_1): Delete function.
4683 (gdb_prompt_escape):
4684 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4685 prompt-escape-char" command.
4686 (MAX_PROMPT_SIZE): Delete macro.
4687 (get_prompt): Simplify, do not call get_prompt_1.
4688
07978cd8
AC
46892003-08-16 Andrew Cagney <cagney@redhat.com>
4690
4691 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4692 -Werror. -Wformat-nonliteral problems.
4693
3ff7cf9e
JB
46942003-08-15 J. Brobecker <brobecker@gnat.com>
4695
4696 Further multiarching work mostly for hppa64-*-hpux11:
4697 * hppa-tdep.h: New file.
4698 * hppa-tdep.c: #include hppa-tdep.c.
4699 (hppa32_num_regs): Renamed from hppa_num_regs.
4700 (hppa64_num_regs): New constant.
4701 (hppa64_call_dummy_breakpoint_offset): New constant.
4702 (hppa32_call_dummy_length): New constant.
4703 (hppa64_call_dummy_length): New constant.
4704 (hppa32_stack_align): Make name 32bit explicit.
4705 (hppa32_register_virtual_type): Likewise.
4706 (hppa32_extract_return_value): Likewise.
4707 (hppa32_use_struct_convention): Likewise.
4708 (hppa32_store_return_value): Likewise.
4709 (hppa64_register_virtual_type): New function.
4710 (hppa64_extract_return_value): New function.
4711 (hppa64_use_struct_convention): New function.
4712 (hppa64_store_return_value): New function.
4713 (hppa_frame_locals_address): Remove declaration, function does
4714 not exist anymore.
4715 (hppa_register_byte): Add support for PA64 ABI.
4716 (hppa_gdbarch_init): Add support for PA64 ABI.
4717 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4718 Make name 32bit explicit.
4719 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4720 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4721 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4722 (hppa64_hpux_frame_base_before_sigtramp): New function.
4723 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4724 * config/pa/tm-hppa64.h: Remove macros that are no longer
4725 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4726 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4727 * config/pa/tm-hppah.h: Update function calls in macros
4728 following the function renaming in hppa-hpux-tdep.c.
4729 * Makefile.in (hppa_tdep_h): New variable.
4730 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4731
5d05ca6d
MS
47322003-08-14 Michael Snyder <msnyder@redhat.com>
4733
4734 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4735
37ba2569
JB
47362003-08-13 J. Brobecker <brobecker@gnat.com>
4737
4738 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4739 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4740 routine.
4741
aed7f26a
MS
47422003-08-13 Michael Snyder <msnyder@redhat.com>
4743
4744 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4745 (frv_saved_pc_after_call): Use deprecated ftype.
4746 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4747 (frv_remote_translate_xfer_address): Remove.
4748 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4749
752d4ac1
JB
47502003-08-13 J. Brobecker <brobecker@gnat.com>
4751
4752 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4753 initialization after the common gdbarch initialization, not before.
4754
1426ac1d
JB
47552003-08-13 J. Brobecker <brobecker@gnat.com>
4756
4757 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4758 (ADDR_BITS_REMOVE): Remove, redundant.
4759
b6fbdd1d
JB
47602003-08-13 J. Brobecker <brobecker@gnat.com>
4761
4762 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4763 gdbarch method to clear the 2 low bits of text addresses.
4764
44160db3
AC
47652003-08-12 Andrew Cagney <cagney@redhat.com>
4766
4767 * Makefile.in (dsrec.o): Update dependencies.
4768 * dsrec.c: Include "gdb_assert.h".
4769 (make_srec): Use snprintf instead of sprintf, use a literal format
4770 string.
4771
bcf7d3ca
AC
47722003-08-12 Andrew Cagney <cagney@redhat.com>
4773
4774 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4775 FRAME_OBSTACK_ZALLOC.
4776
49ed40de
KB
47772003-08-12 Kevin Buettner <kevinb@redhat.com>
4778
4779 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4780 SSE registers.
4781
b246147c
MK
47822003-08-10 Mark Kettenis <kettenis@gnu.org>
4783
4784 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4785 amd64fbsd_sc_reg_offset): Add extern declarations.
4786 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4787 declarations.
4788
d95fdc0d
BE
47892003-08-11 Ben Elliston <bje@wasabisystems.com>
4790
4791 * MAINTAINERS (write after approval): Update my mail address.
4792
cf6a0e73
AC
47932003-08-10 Andrew Cagney <cagney@redhat.com>
4794
4795 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4796
f837910f
MK
47972003-08-10 Mark Kettenis <kettenis@gnu.org>
4798
e2dbbd2d
MK
4799 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4800 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4801 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4802 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4803 i386bsd_sc_reg_offset): Add extern declarations.
4804 * i386obsd-nat.c: Include "i386-tdep.h"
4805 (_initialize_i386obsd_nat): Remove extern declarations.
4806 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4807 declarations.
4808 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4809 declarations.
4810
f837910f
MK
4811 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4812 instead of frame_read_register.
4813 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4814 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4815 SP_REGNUM.
4816 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4817 instead of frame_unwind_unsigned_register. Use
4818 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4819 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4820 instead of read_register. Use builtin_type_void_data_ptr instead
4821 of builtin_type_void_func_ptr when extracting the address of the
4822 jmp_buf.
4823 (i386_extract_return_value, i386_store_return_value,
4824 i386_pseudo_register_read, i386_pseudo_register_write): Use
4825 register_size instead REGISTER_RAW_SIZE.
4826
edcf254d
AC
48272003-08-10 Andrew Cagney <cagney@redhat.com>
4828
4829 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4830 sprintf. Make "name" constant.
4831
26604a34
MK
48322003-08-10 Mark Kettenis <kettenis@gnu.org>
4833
192285c6
MK
4834 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4835 instead of frame_read_register.
f837910f
MK
4836 (i387_print_float_info): Use get_frame_register and
4837 get_frame_register_unsigned instead of frame_register_read.
192285c6 4838
f0925262
MK
4839 * i386fbsd-nat.c: Include "i386-tdep.h".
4840 (child_resume): Make `eflags' an ULONGEST. Use
4841 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4842 instead of register_read and register_write.
4843
a144416f
MK
4844 * i386bsd-nat.c (fetch_inferior_registers,
4845 store_inferior_registers): Don't use && at the end of a line.
4846 (_initialize_i386bsd_nat): Fix typo.
4847
fec74868
MK
4848 * frame.c (_initialize_frame): Add missing backslash.
4849
87232496
MK
4850 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4851 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4852 and supply_register instead of manipulating the register buffer
4853 directly.
4854
c9b9de0b
MK
4855 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4856 * config/i386/nm-i386sol2.h
4857 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4858
26604a34
MK
4859 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4860 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4861 instructions that GCC likes to mingle into the prologue. Fixes
4862 gdb/1253 and gdb/1255.
4863
25d29d70
AC
48642003-08-09 Andrew Cagney <cagney@redhat.com>
4865
4866 Fix GDB PR cli/926.
4867 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4868 * command.h (add_setshow_uinteger_cmd): Declare.
4869 * frame.c (set_backtrace_cmd): New function.
4870 (show_backtrace_cmd): New function.
4871 * frame.c (_initialize_frame): Replace "set/show
4872 backtrace-below-main" with "set/show backtrace past-main". Add
4873 command "set/show backtrace limit".
4874 (backtrace_past_main): Rename "backtrace_below_main".
4875 (backtrace_limit): New variable.
4876 (get_prev_frame): Update. Check the backtrace_limit.
4877
9ebf4acf
AC
48782003-08-09 Andrew Cagney <cagney@redhat.com>
4879
4880 * defs.h (xstrprintf): Declare.
4881 * utils.c (xstrprintf): New function.
4882 * breakpoint.c (insert_breakpoints): Replace sprintf and
4883 non-literal format strings, with xstrprintf and cleanups.
4884 (delete_breakpoint,breakpoint_re_set): Ditto.
4885 (commands_command, insert_breakpoints): Ditto.
4886 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4887 (break_at_finish_command_1): Ditto.
4888
3771659b
AC
48892003-08-09 Andrew Cagney <cagney@redhat.com>
4890
4891 * MAINTAINERS (language support): List Adam Fedor as Objective C
4892 maintainer.
4893
b4263afa
JB
48942003-08-08 J. Brobecker <brobecker@gnat.com>
4895
4896 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4897 are now multiarched.
4898
d84defb1
JB
48992003-08-08 J. Brobecker <brobecker@gnat.com>
4900
4901 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4902 longer necessary now that hppa64 is partially multiarch'ed.
4903
f786f615
AC
49042003-08-08 Andrew Cagney <cagney@redhat.com>
4905
4906 * interps.c (interp_set): Check for a NULL "old_interp".
4907
c938e9b0
L
49082003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4909
4910 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4911 (install-only): Support DESTDIR.
4912 (uninstall): Likewise.
4913 (install-gdbtk): Likewise.
4914
9a146a11
EZ
49152003-08-08 Elena Zannoni <ezannoni@redhat.com>
4916
4917 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4918 contains something meaningful at all times.
4919
4920Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4921
62599e99 4922 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4923
56296155
BC
4924Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4925
62599e99 4926 * MAINTAINERS (write after approval): Added self.
56296155 4927
9710e734
AC
49282003-08-07 Andrew Cagney <cagney@redhat.com>
4929
4930 * inferior.h (AT_SYMBOL): Define.
4931 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4932 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4933 * mips-tdep.c (mips_call_dummy_address): Delete function.
4934 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4935 set call_dummy_address.
4936
98b3ab73
AC
49372003-08-07 Andrew Cagney <cagney@redhat.com>
4938
4939 * language.c (op_error): Delete function.
4940 (binop_type_check): Delete function.
4941 * language.h (type_op_error, range_op_error): Delete macros.
4942 (op_error): Delete declaration.
4943
2fcf52f0
AC
49442003-08-07 Andrew Cagney <cagney@redhat.com>
4945
4946 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4947
abd4220e 49482003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4949
abd4220e 4950 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4951 (x86_64_push_arguments): Skip the red zone.
abd4220e 4952
9dd5f34f
AC
49532003-08-05 Andrew Cagney <cagney@redhat.com>
4954
4955 * reggroups.c (reggroup_next): Check for the final entry.
4956
e5e78edc
AC
49572003-08-04 Andrew Cagney <cagney@redhat.com>
4958
ab4e3d93
AC
4959 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4960 * cli/cli-script.c (define_command): Call query directly, instead
4961 of passing it a buffer.
4962 * ocd.c (ocd_error): Pass error a constant format string.
4963 * remote-mips.c (mips_error): Use fputs_filtered.
4964
1062ca82
AC
4965 * solib-svr4.c (_initialize_svr4_solib): Update
4966 register_gdbarch_data call.
4967 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4968
fcc1c85c
AC
4969 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4970 (register_gdbarch_data): Delete "free" parameter. Update
4971 comments.
4972 * gdbarch.h, gdbarch.c: Re-generate.
4973 * reggroups.c (_initialize_reggroup): Update.
4974 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4975 * frame-base.c (_initialize_frame_base): Update.
4976 * frame-unwind.c (_initialize_frame_unwind): Update.
4977 * user-regs.c (_initialize_user_regs): Update.
4978 * remote.c (_initialize_remote): Update.
4979 * regcache.c (_initialize_regcache): Update.
4980
116f06ea
AC
4981 * regcache.c (xfree_regcache_descr): Delete function.
4982 (_initialize_regcache): Update call to register_gdbarch_data.
4983 (init_regcache_descr, init_legacy_regcache_descr): Use
4984 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4985
e5e78edc
AC
4986 * remote.c (free_remote_state): Delete function.
4987 (_initialize_remote): Update register_gdbarch_data.
4988 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4989 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4990
6c7d17ba
AC
49912003-08-04 Andrew Cagney <cagney@redhat.com>
4992
4993 * reggroups.c (struct reggroup_el): Define.
4994 (struct reggroups): Delete field "nr_group". Replace array
4995 "group" with a "first" to "last" linked list.
4996 (reggroups_init): Update. Allocate using gdbarch's obstack.
4997 (reggroups_free): Delete function.
4998 (add_group): Update. Add "el" parameter.
4999 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
5000 (default_groups): Update.
5001 (reggroup_next): Replace reggroups.
5002 (reggroups_dump): Update.
5003 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
5004 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
5005 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
5006
89b7795b
DJ
50072003-08-04 Daniel Jacobowitz <drow@mvista.com>
5008
5009 * Makefile.in (tui-interp.o): Update dependencies.
5010
306d9ac5
DC
50112003-08-04 David Carlton <carlton@kealia.com>
5012
5013 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
5014 to internal_error call.
5015 * source.c (forward_search_command): Add "%s" format argument.
5016 (reverse_search_command): Ditto.
5017 * top.c (quit_confirm): Ditto.
5018 * cli/cli-setshow.c (do_setshow_command): Ditto.
5019 * cp-valprint.c (cp_print_class_method): Replace
5020 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
5021 (cp_print_class_member): Ditto.
5022 * event-top.c (command_line_handler): Ditto.
5023 * linux-proc.c (linux_info_proc_cmd): Ditto.
5024 * p-typeprint.c (pascal_type_print_base): Ditto.
5025 * p-valprint.c (pascal_object_print_class_method): Ditto.
5026 (pascal_object_print_class_member): Ditto.
5027 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
5028 * remote.c (remote_cisco_section_offsets): Ditto.
5029 * top.c (command_line_input): Ditto.
5030 * utils.c (vwarning,error_stream,quit): Ditto.
5031 * valprint.c (print_floating,print_binary_chars)
5032 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
5033
57bfe177
AC
50342003-08-04 Andrew Cagney <cagney@redhat.com>
5035
5036 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
5037
e546b999
AC
50382003-08-02 Andrew Cagney <cagney@redhat.com>
5039
5040 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
5041 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5042 amd64fbsd-nat.c.
5043
91092ee5
AC
50442003-08-02 Andrew Cagney <cagney@redhat.com>
5045
5046 * Makefile.in: Update all dependencies and definitions.
5047
889f28e2
AF
50482003-08-02 Adam Fedor <fedor@gnu.org>
5049
5050 * linespec.c (is_objc_method_format): New function
5051 (decode_line_1, locate_first_half): Use it.
5052 Fixes PR objc/1298
5053
880bc914
AC
50542003-08-01 Andrew Cagney <cagney@redhat.com>
5055
5056 * NEWS: Mention that m32r is multi-arch.
5057 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5058 * configure.tgt: Recognize m32r-*-*.
5059 * config/m32r/tm-m32r.h: Delete file.
5060 * config/m32r/m32r.mt: New file.
a8f4cde1 5061 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
5062 gethostname succeeds, in order to avoid a compilation
5063 warning.
5064 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5065 compiler warning.
5066
19f59343
MS
50672003-08-01 Michael Snyder <msnyder@redhat.com>
5068
5069 * sh-tdep.c (sh_frame_align): New gdbarch method.
5070 (sh_gdbarch_init): Set up frame_align method.
5071
4e7d7511
MS
50722003-07-31 Michael Snyder <msnyder@redhat.com>
5073
5074 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5075 which is already covered by the new frames infrastructure.
5076
63022984
AC
50772003-07-31 Andrew Cagney <cagney@redhat.com>
5078
5079 * user-regs.c (struct user_reg): Add "next" link.
5080 (struct user_regs): Replace "user" with "first" and "last" links.
5081 (append_user_reg): Add pre-allocated "reg" parameter.
5082 (builtin_user_regs): Provide initial value for "last".
5083 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5084 (user_regs_init): Allocate memory from the gdbarch obstack.
5085 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5086 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5087 linked list.
5088 (usernum_to_user_reg): New function.
5089 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5090 (value_of_user_reg): Use usernum_to_user_reg.
5091 (user_regs_free): Delete function.
5092 (_initialize_user_regs): Update register_gdbarch_data call.
5093
7cf6e574
DJ
50942003-07-31 Daniel Jacobowitz <drow@mvista.com>
5095
5096 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5097
c48a845b
MS
50982003-07-30 Michael Snyder <msnyder@redhat.com>
5099
4e7d7511 5100 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 5101 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
5102 value_being_returned.
5103 * infcmd.c (print_return_value): Pass zero as struct_addr.
5104 * values.c (value_being_returned): If struct_addr is passed,
5105 use it instead of trying to recover it from the inferior.
5106
f0d8db19
KB
51072003-07-30 Kevin Buettner <kevinb@redhat.com>
5108
5109 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5110 the prologue analyzer won't need to attempt to extract the pc
5111 value from the woefully incomplete dummy frame.
5112 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5113 possible. Disable code which modifies the frame.
5114
e5c113a1
AC
51152003-07-28 Andrew Cagney <cagney@redhat.com>
5116
5117 * annotate.c (annotate_breakpoints_headers): Restrict annotation
5118 to level 2.
5119 (annotate_breakpoints_table, annotate_record): Ditto.
5120 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5121 (annotate_field_name_end, annotate_field_value): Ditto.
5122 (annotate_field_end, annotate_frame_source_begin): Ditto.
5123 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5124 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5125 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5126 (annotate_frame_address_end, annotate_frame_address): Ditto.
5127 (annotate_frame_args, annotate_frame_end): Ditto.
5128 (annotate_frame_where, annotate_arg_begin): Ditto.
5129 (annotate_arg_name_end, annotate_arg_value): Ditto.
5130 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5131 (annotate_function_call, annotate_signal_name): Ditto.
5132 (annotate_signal_string, annotate_signal_name_end): Ditto.
5133 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5134 (annotate_value_begin, annotate_value_history_value): Ditto.
5135 (annotate_value_history_end, annotate_value_end): Ditto.
5136 (annotate_display_begin, annotate_display_number_end): Ditto.
5137 (annotate_display_format, annotate_display_expression): Ditto.
5138 (annotate_display_expression_end, annotate_display_value): Ditto.
5139 (annotate_display_end, annotate_array_section_begin): Ditto.
5140 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5141 (annotate_elt, annotate_array_section_end): Ditto.
5142
bb1db049
AC
51432003-07-28 Andrew Cagney <cagney@redhat.com>
5144
5145 * regcache.c (struct regcache_descr): Update comments on
5146 nr_raw_registers.
5147 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5148 sizeof_raw_register_valid_p.
5149 (init_regcache_descr): Set nr_raw_registers and
5150 sizeof_raw_register_valid_p before calling
5151 init_legacy_regcache_descr.
5152
20e6603c
AC
51532003-07-28 Andrew Cagney <cagney@redhat.com>
5154
5155 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5156 MOD NUM_REGS.
5157
db742940
DJ
51582003-07-28 Daniel Jacobowitz <drow@mvista.com>
5159
5160 * thread.c (info_threads_command): Use get_selected_frame ().
5161 Check that there is at least one non-sentinel frame.
5162
ce7f4371
SC
51632003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5164
5165 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5166 (m68hc11_pop_frame): Remove.
5167 (m68hc11_frame_saved_pc): Remove.
5168 (m68hc11_frame_chain): Remove.
5169 (m68hc11_frame_init_saved_regs): Remove.
5170 (m68hc11_init_extra_frame_info): Remove.
5171 (m68hc11_store_struct_return): Remove.
5172 (m68hc11_saved_pc_after_call): Remove.
5173
1ea653ae
SC
51742003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5175
5176 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5177 frame unwind information.
5178 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5179 and adapted for frame unwinding.
5180 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5181 (m68hc11_unwind_pc): New function.
5182 (m68hc11_frame_unwind_cache): New function to analyze frames.
5183 (m68hc11_frame_this_id): New function to create new frame struct.
5184 (m68hc11_frame_prev_register): New function to unwind a register from
5185 the frame.
5186 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5187 (m68hc11_frame_p): New function for the above.
5188 (m68hc11_frame_base_address): New function to return fp of frame.
5189 (m68hc11_frame_args_address): Update for frame.
5190 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5191 (m68hc11_unwind_sp): New function.
5192 (m68hc11_unwind_dummy_id): New function.
5193 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5194 calls.
5195
c8a7f6ac
SC
51962003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5197
5198 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5199 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5200 when we are beyond the current pc.
5201
3dc990bf
SC
52022003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5203
5204 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5205 from m68hc11_push_arguments.
5206 (m68hc11_push_arguments): Remove.
5207 (m68hc11_push_return_address): Remove.
5208 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5209 handlers; remove deprecated_extra_stack_alignment_needed.
5210
222e5d1d
AC
52112003-07-27 Andrew Cagney <cagney@redhat.com>
5212
5213 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5214 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5215 REAL_PC and not the pointer.
5216 * hppa-hpux-tdep.c: Include frame.h
5217
a7e9a47e
AC
52182003-07-27 Andrew Cagney <cagney@redhat.com>
5219
5220 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5221 GDB_MULTI_ACH_PARTIAL.
5222
7e3dd49e
AC
52232003-07-27 Andrew Cagney <cagney@redhat.com>
5224
5225 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5226 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5227 operator at start and not end of line.
5228 (decode_prologue): Ditto.
5229 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5230 frame_unwind_register_unsigned instead of
5231 frame_unwind_unsigned_register.
5232 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5233 read_register.
5234 (m32r_push_dummy_call): Use register_size instead of
5235 REGISTER_RAW_SIZE.
5236 (m32r_frame_sniffer): Replace m32r_frame_p.
5237 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5238 * m32r-rom.c (report_transfer_performance): Delete extern
5239 declaration.
5240 (m32r_load, m32r_upload_command): Use print_transfer_performance
5241 instead of report_transfer_performance.
5242 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5243 / add_show_from_set.
5244
0880807f
AC
52452003-07-26 Andrew Cagney <cagney@redhat.com>
5246
5247 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5248 store_return_value and extract_struct_value_address.
5249
64ae9269
DJ
52502003-07-26 Daniel Jacobowitz <drow@mvista.com>
5251
5252 PR c++/1267
5253 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5254 NULL, default to the section containing PC.
5255
e286caf2
SC
52562003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5257
5258 * NEWS: Mention "regs" deprecated for m68hc11 too.
5259
5260 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5261 (m68hc11_print_register): New function to print out one register.
5262 (m68hc11_print_registers_info): New function to print registers.
5263 (show_regs): Deprecate and use the above.
5264 (m68hc11_gdbarch_init): Install the print_registers_info.
5265
705b278b
JJ
52662003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5267
5268 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5269 that we have a SIGTRAP before returning non-zero.
5270
63cd4198
EZ
52712003-07-23 Michal Ludvig <mludvig@suse.cz>
5272 Elena Zannoni <ezannoni@redhat.com>
5273
a8f4cde1 5274 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5275 find_function_start_sal() returns empty record.
5276
6926787d
AS
52772003-07-23 Andreas Schwab <schwab@suse.de>
5278
5279 * ia64-tdep.c (ia64_print_insn): New function.
5280 (ia64_gdbarch_init): Set print_insn to it.
5281 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5282 deprecated_tm_print_insn_info.
5283
708cc1b6
MS
52842003-07-22 Michael Snyder <msnyder@redhat.com>
5285
5286 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5287 handle 8-bit returns (long long).
5288 (h8300h_extract_return_value): Ditto.
5289 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5290
aebd7893
AC
52912003-07-22 Andrew Cagney <cagney@redhat.com>
5292
5293 * gdbarch.c Include "gdb_obstack.h".
5294 (struct gdbarch): Add an "obstack".
5295 (alloc_gdbarch_data): Allocate the gdbarch data using
5296 GDBARCH_OBSTACK_CALLOC.
5297 (free_gdbarch_data): Delete function.
5298 (gdbarch_obstack_zalloc): New function.
5299 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5300 Assert that the architecture is not initialized.
5301 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5302 vector from the obstack.
5303 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5304 architecture obstack.
5305 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5306 (set_gdbarch_data): Assert that the data is not initialized.
5307 (struct gdbarch_data): Delete member "free".
5308 (register_gdbarch_data): Do not initialize "free".
5309 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5310
153721e6
AC
53112003-07-22 Andrew Cagney <cagney@redhat.com>
5312
5313 * configure.in (build_warnings): Add -Wformat-nonliteral.
5314 * configure: Re-generate.
5315
c193f044 53162003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5317
5318 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5319
c3228f12
EZ
53202003-07-22 Elena Zannoni <ezannoni@redhat.com>
5321
5322 * findvar.c (read_var_value): Remove case for thread local storage
5323 variables. It is now entirely handled by the dwarf2 location
5324 expression code.
5325 * printcmd.c (address_info): Ditto.
5326 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5327 enumeration value.
5328 (struct symbol): Remove objfile field, which was used by
5329 LOC_THREAD_LOCAL_STATIC only.
5330 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5331 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5332 usage of objfile pointer.
5333 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5334 thread local variables.
5335 Add include of objfiles.h.
5336 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5337 storage variables.
5338 * Makefile.in (dwarf2loc.o): Update dependencies.
5339
aef9bcd2
AC
53402003-07-22 Andrew Cagney <cagney@redhat.com>
5341
5342 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5343 get_frame_base.
5344 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5345 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5346 (struct value): Add opaque declaration.
5347 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5348
d95a8903
AC
53492003-07-21 Andrew Cagney <cagney@redhat.com>
5350
5351 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5352 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5353
4db73d49
SC
53542003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5355
a8f4cde1 5356 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5357 regcache_cooked_read_unsigned instead of read_register.
5358 (m68hc11_saved_pc_after_call): Likewise.
5359 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5360 instead of write_register.
5361 (m68hc11_register_type): New function.
5362 (m68hc11_register_virtual_type): Remove.
5363 (m68hc11_store_return_value): Convert to use the regcache.
5364 (m68hc11_extract_struct_value_address): Likewise.
5365 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5366 m68hc11_register_type; undeprecate store_return_value and
5367 extract_struct_value_address.
5368
ef2b8fcd
SC
53692003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5370
5371 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5372 and translate to use regcache.
5373 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5374
625b0b97
AC
53752003-07-18 Andrew Cagney <cagney@redhat.com>
5376
5377 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5378 * gdbarch.h, gdbarch.c: Re-generate.
5379 * i386-tdep.c (i386_gdbarch_init): Do not set
5380 DWARF2_BUILD_FRAME_INFO.
5381 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5382 unconditionally.
5383 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5384 DWARF2_BUILD_FRAME_INFO.
5385
22b0d388
AC
53862003-07-18 Andrew Cagney <cagney@redhat.com>
5387
5388 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5389 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5390
1ce5d6dd
AC
53912003-07-18 Andrew Cagney <cagney@redhat.com>
5392
5393 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5394 frame_unwind_address_in_block, instead of frame_pc_unwind.
5395 (dwarf2_frame_cache): Ditto.
5396
e6e5e94c
AC
53972003-07-18 Andrew Cagney <cagney@redhat.com>
5398
5399 * user-regs.h (struct gdbarch): Declare opaque.
5400 * ui-out.h (struct ui_file): Declare opaque.
5401 * dwarf2-frame.h (struct frame_info): Declare opaque.
5402
5483d879
KW
54032003-07-18 Kris Warkentin <kewarken@qnx.com>
5404
5405 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5406 #include "...".
5407 (procfs_meminfo): Change strerror to safe_strerror.
5408 (procfs_can_run): Remove K&R badness.
5409
278a7cf7
MS
54102003-07-17 Michael Snyder <msnyder@redhat.com>
5411
5412 * remote-sim.c: Comment typo fix.
5413
606e3b82
AC
54142003-07-17 Andrew Cagney <cagney@redhat.com>
5415
5416 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5417 configure.
5418 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5419 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5420 GDB_MULTI_ARCH_PARTIAL.
5421
c43af07c
EZ
54222003-07-17 Elena Zannoni <ezannoni@redhat.com>
5423
5424 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5425 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5426 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5427
3b85b0f1
TR
54282003-07-16 Theodore A. Roth <troth@openavr.org>
5429
5430 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5431 found.
5432 (avr_frame_unwind_cache): Don't unwind FP for main.
5433 Update a comment.
5434 Save the computed prev_sp.
5435 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5436 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5437 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5438
336d1bba
AC
54392003-07-16 Andrew Cagney <cagney@redhat.com>
5440
5441 * frame-base.h (frame_base_p_ftype): Delete definition.
5442 (frame_base_append_predicate): Delete declaration.
5443 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5444 (frame_unwind_append_predicate): Delete declaration.
5445 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5446 (append_predicate): Delete parameter "p".
5447 (frame_unwind_append_predicate): Delete function.
5448 (frame_unwind_append_sniffer): Update call to append_predicate.
5449 (frame_unwind_free): Delete function.
5450 (_initialize_frame_unwind): Pass NULL as "free" to
5451 register_gdbarch_data.
5452 (frame_unwind_init): Append the dummy_frame_sniffer.
5453 (frame_unwind_find_by_frame): Simplify.
5454 * frame-base.c (struct frame_base_table): Delete field "p".
5455 (append_predicate): Delete parameter "p".
5456 (frame_base_append_predicate): Delete function.
5457 (frame_base_append_sniffer): Update call to append_predicate.
5458 (frame_base_free): Delete function.
5459 (frame_base_find_by_frame): Simplify.
5460 (_initialize_frame_base): Pass NULL as "free" to
5461 register_gdbarch_data.
5462 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5463 (x86_64_sigtramp_frame_sniffer): Replace
5464 "x86_64_sigtramp_frame_p".
5465 (x86_64_init_abi): Set the frame unwind sniffers.
5466 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5467 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5468 (m68k_gdbarch_init): Set the frame unwind sniffers.
5469 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5470 "i386_sigtramp_frame_p".
5471 (i386_frame_sniffer): Replace "i386_frame_p".
5472 (i386_gdbarch_init): Set the frame unwind sniffers.
5473 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5474 (avr_gdbarch_init): Set the frame unwind sniffers.
5475 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5476 "alpha_sigtramp_frame_p"
5477 (alpha_heuristic_frame_sniffer): Replace
5478 "alpha_heuristic_frame_p".
5479 (alpha_gdbarch_init): Set the frame unwind sniffers.
5480 (alpha_dwarf2_init_abi): Ditto.
5481 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5482 "alpha_debug_frame_p".
5483 (alpha_mdebug_frame_base_sniffer): Replace
5484 "alpha_mdebug_frame_base_p".
5485 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5486 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5487 (d10v_gdbarch_init): Set the frame unwind sniffer.
5488 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5489 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5490 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5491 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5492 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5493 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5494
48db5a3c
CV
54952003-07-16 Michael Snyder <msnyder@redhat.com>
5496
5497 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5498 should go thru sh_dsp_register_sim_regno, else the dsp regs
5499 will not get the right values.
5500
55012003-07-16 Corinna Vinschen <vinschen@redhat.com>
5502
5503 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5504 deprecated_store_floating by call to store_typed_floating.
5505 (sh_sh4_register_convert_to_raw): Substitute call to
5506 deprecated_extract_floating by call to extract_typed_floating.
5507
55082003-07-16 Corinna Vinschen <vinschen@redhat.com>
5509
5510 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5511
55122003-07-16 Corinna Vinschen <vinschen@redhat.com>
5513
5514 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5515 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5516 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5517 as possible.
5518 (do_pseudo_register): Remove.
5519 (sh_push_dummy_code): New function.
5520 (sh64_store_struct_return): Rename from sh_store_struct_return.
5521 Only called for sh64 now.
5522 (sh_extract_struct_value_address): Regcache'ify.
5523 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5524 and accomodate new tasks.
5525 (sh64_push_return_address): Rename from sh_push_return_address.
5526 Only called for sh64 now.
5527 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5528 Regcache'ify.
5529 (sh3e_sh4_extract_return_value): Regcache'ify.
5530 (sh_default_store_return_value): Ditto.
5531 (sh3e_sh4_store_return_value): Ditto.
5532 (sh_default_register_byte): Remove.
5533 (sh_sh4_register_byte): Remove.
5534 (sh_default_register_raw_size): Remove.
5535 (sh_sh4_register_raw_size): Remove.
5536 (sh_register_virtual_size): Remove.
5537 (sh_sh3e_register_virtual_type): Remove.
5538 (sh_sh3e_register_type): New function.
5539 (sh_sh4_register_virtual_type): Remove.
5540 (sh_sh4_register_type): New function.
5541 (sh_default_register_virtual_type): Remove.
5542 (sh_default_register_type): New function.
5543 (do_fv_register_info): Add parameters to accomodate call from
5544 sh_print_registers_info.
5545 (do_dr_register_info): Ditto.
5546 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5547 Add parameters to accomodate call from sh_print_registers_info.
5548 (sh_do_fp_register): Ditto.
5549 (sh64_do_pseudo_register): Call do_dr_register_info,
5550 do_fv_register_info and sh_do_fp_register with default parameters.
5551 (sh_do_register): Add parameters to accomodate call from
5552 sh_print_registers_info.
5553 (sh_print_register): Ditto.
5554 (sh_print_registers_info): Rename from sh_do_registers_info.
5555 Add parameters to be used as gdbarch_print_registers_info
5556 implementation. Accomodate removed do_pseudo_register function
5557 pointer.
5558 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5559 function pointer. Call sh_print_register with default parameters.
5560 (sh64_do_registers_info): Call sh_print_registers_info instead of
5561 sh_do_registers_info.
5562 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5563 detection of deprecated vs. non-deprecated functionality.
5564 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5565 function pointer assignments by direct function calls.
5566
e8a89fe2
AC
55672003-07-15 Andrew Cagney <cagney@redhat.com>
5568
5569 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5570 (frame_register_unwind, create_new_frame): Ditto.
5571 (legacy_get_prev_frame, get_frame_type): Ditto.
5572 (get_frame_base_address): Use frame_base_find_by_frame.
5573 (get_frame_locals_address): Use frame_base_find_by_frame.
5574 (get_frame_args_address): Use frame_base_find_by_frame.
5575 * frame-base.h (frame_base_sniffer_ftype): Declare.
5576 (frame_base_append_sniffer): Declare.
5577 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5578 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5579 (frame_base_append_sniffer): New function.
5580 (frame_base_append_predicate): Add a NULL sniffer.
5581 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5582 (struct frame_base_table): Add "sniffer".
5583 (frame_base_free): Free the "sniffer" table.
5584 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5585 (frame_unwind_append_sniffer): Declare.
5586 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5587 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5588 (struct frame_unwind_table): Add "sniffer", delete "middle".
5589 (append_predicate): Add "sniffer" parameter, append the sniffer.
5590 (frame_unwind_init): Update append_predicate call.
5591 (frame_unwind_append_sniffer): New function.
5592 (frame_unwind_append_predicate): Update append_predicate call.
5593 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5594
0714963c
AC
55952003-07-15 Andrew Cagney <cagney@redhat.com>
5596
5597 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5598 before code inhibiting repeated unwind attempts. Add to
5599 commentary on that test's problems.
5600 * blockframe.c (inside_main_func): Look for "main" in the minimal
5601 symbol table.
5602 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5603 identical.
5604
d9170e22
AC
56052003-07-15 Andrew Cagney <cagney@redhat.com>
5606
5607 * complaints.c (struct explanation): Define.
5608 (struct complaints): Change type of "explanation" to "struct
5609 explanation".
5610 (symfile_explanations): Convert to a "struct explanation" table.
5611 (vcomplaint): Update.
5612
eba29c8c
ML
56132003-07-15 Michal Ludvig <mludvig@suse.cz>
5614
5615 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5616 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5617 x86_64_linux_(fill,supply)_gregset functions.
5618 * x86-64-linux-tdep.c (USER_*): New defines.
5619 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5620 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5621 New functions.
5622 (fetch_core_registers): Ditto.
5623 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5624 * x86-64-linux-tdep.h: New file.
5625 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5626 and core-regset.o.
5627 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5628
68cc0bfb
MK
56292003-07-13 Mark Kettenis <kettenis@gnu.org>
5630
88a115f7
MK
5631 * x86-64-tdep.c (x86_64_store_return_value): Use
5632 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5633
68cc0bfb
MK
5634 * configure.host: Add x86_64-*-freebsd*.
5635 * configure.tgt: Add x86_64-*-freebsd*.
5636 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5637 * amd64fbsd-nat.c: New file.
5638 * amd64fbsd-tdep.c: New file.
5639 * config/i386/nm-fbsd64.h: New file.
5640 * config/i386/fbsd64.mh: New file.
5641 * config/i386/fbsd64.mt: New file.
5642
138e7be5
MK
56432003-07-11 Mark Kettenis <kettenis@gnu.org>
5644
5645 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5646 `sc_regs_offset' and `sc_fpregs_offset'.
5647 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5648 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5649 (alpha_sigtramp_register_address): Rewrite to use new members of
5650 `struct gdbarch_tdep'.
5651 (alpha_gdbarch_init): Initialize new members of struct
5652 gdbarch_tdep'.
5653 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5654 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5655 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5656 (alphafbsd_pc_in_sigtramp): Implement.
5657 (alphafbsd_sigtramp_offset): New function.
5658 (alphafbsd_sigcontext_addr): New function.
5659 (alphafbsd_init_abi): Initialize signal trampoline related members
5660 of `struct gdbarch_tdep'.
5661 (_initialize_alphafbsd_tdep): Add prototype.
5662
95303a68
TR
56632003-07-11 Theodore A. Roth <troth@openavr.org>
5664
ba292e4c
TR
5665 * Makefile.in (install-only): Quote sed expression when generating
5666 transformed_name.
95303a68 5667
6896c0c7
RH
56682003-07-11 Richard Henderson <rth@redhat.com>
5669
5670 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5671 * dwarf2-frame.c: Include complaints.h.
5672 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5673 variable initialization; return NULL on error.
5674 (decode_frame_entry): New.
5675
8edd5d01
AC
56762003-07-11 Andrew Cagney <cagney@redhat.com>
5677
c4a09524
AC
5678 * frame.h (frame_address_in_block): Delete declaration.
5679 * blockframe.c (frame_address_in_block): Delete function.
5680 (get_frame_block): Use get_frame_address_in_block.
5681 (block_innermost_frame): Ditto.
5682 * stack.c (print_frame, backtrace_command_1): Ditto.
5683
8edd5d01
AC
5684 * frame.h (get_frame_address_in_block): Declare.
5685 (frame_unwind_address_in_block): Declare.
5686 * frame.c (frame_unwind_address_in_block): New function.
5687 (get_frame_address_in_block): New function.
5688
f7968451
AC
56892003-07-10 Andrew Cagney <cagney@redhat.com>
5690
5691 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5692 pre-default. Note: re-generate has no effect.
a8f4cde1 5693
ae99b398
AC
56942003-07-10 Andrew Cagney <cagney@redhat.com>
5695
5696 * gdbarch.sh: When a variable, but not a function, compare against
5697 0. Fix problem in previous patch.
5698 * gdbarch.c: Re-generate.
a8f4cde1 5699
956ac328
AC
57002003-07-10 Andrew Cagney <cagney@redhat.com>
5701
5702 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5703 functions against NULL, not 0.
5704 * gdbarch.c: Re-generate.
a8f4cde1 5705
287c3240
FF
57062003-07-10 Fred Fish <fnf@ninemoons.com>
5707
5708 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5709 null string instead of a null pointer.
5710 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5711
32f63c4b
MS
57122003-07-09 Michael Snyder <msnyder@redhat.com>
5713
5714 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5715
402ecd56
MK
57162003-07-09 Mark Kettenis <kettenis@gnu.org>
5717
5718 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5719 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5720 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5721 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5722 * x86-64-tdep.c: ... from here.
5723
c481dac7
AS
57242003-07-09 Andreas Schwab <schwab@suse.de>
5725
5726 * m68k-tdep.h (enum struct_return): Define.
5727 (struct gdbarch_tdep): Add struct_return.
5728 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5729 bytes are padded to the right, not to the left. Pass struct value
5730 address in register %a1, not on stack.
5731 (m68k_use_struct_convention): New function.
5732 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5733 struct_return in tdep to pcc_struct_return.
5734 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5735 reg_struct_return.
5736
a8f4cde1 57372003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5738
a8f4cde1 5739 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5740
96a4ee76
AC
57412003-07-09 Andrew Cagney <cagney@redhat.com>
5742
5743 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5744 Add comments about the checks.
5745
1517c6d1
AC
57462003-07-08 Andrew Cagney <cagney@redhat.com>
5747
5748 * Makefile.in: Make dependency section headers consistent.
5749 (config_h): Move to $BUILD headers section.
5750 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5751 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5752 (ada-exp.tab.c): Move to YACC/LEX section.
5753 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5754 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5755
dc5dd1eb
KW
57562003-07-08 Kris Warkentin <kewarken@qnx.com>
5757
5758 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5759 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5760 of strerror with safe_strerror, use ISO C function definitions,
5761 and replace instances of sprintf with snprintf.
dc5dd1eb 5762
612dde91
AC
57632003-07-07 Andrew Cagney <cagney@redhat.com>
5764
5765 * frame.c (get_prev_frame): Enable check for identical frames.
5766 Update comments. Update error messages.
5767
492c11d3
JB
57682003-07-07 Joel Brobecker <brobecker@gnat.com>
5769
5770 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5771
376a5a49
JB
57722003-07-07 Joel Brobecker <brobecker@gnat.com>
5773
5774 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5775 sort_symtab_syms, no longer necessary.
5776
22b4a9ad
JB
57772003-07-07 Joel Brobecker <brobecker@gnat.com>
5778
5779 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5780
5bbcb741
JB
57812003-07-07 Joel Brobecker <brobecker@gnat.com>
5782
5783 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5784 (mips_register_byte): Likewise.
5785
c139e7d9
DJ
57862003-07-07 Daniel Jacobowitz <drow@mvista.com>
5787
5788 * Makefile.in (sparc_tdep_h): New.
5789 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5790 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5791 * sparc-linux-nat.c: Include "sparc-tdep.h".
5792 * sparc-nat.c: Likewise.
5793 * sparc-tdep.c: Likewise.
5794 * sparc64nbsd-nat.c: Likewise.
5795 * sparcnbsd-nat.c: Likewise.
5796 * sparcnbsd-tdep.c: Likewise.
5797 * sparc-tdep.h: New file.
5798 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5799 and sparc_npc_regnum.
5800
fd8f87c5
DJ
58012003-07-07 Daniel Jacobowitz <drow@mvista.com>
5802
5803 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5804 (mips_linux_cannot_store_register): List supported instead of
5805 unsupported registers.
5806
13adf674
DJ
58072003-07-07 Daniel Jacobowitz <drow@mvista.com>
5808
5809 * disasm.c (dump_insns): Separate instructions from addresses.
5810
8de307e0
AS
58112003-07-07 Andreas Schwab <schwab@suse.de>
5812
5813 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5814 dependencies.
5815 * m68k-tdep.c (NUM_FREGS): Delete.
5816 (SIG_PC_FP_OFFSET): Delete.
5817 (TARGET_M68K): Delete.
5818 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5819 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5820 P_MOVEL_SP, P_MOVEML_SP): Define.
5821 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5822 P_TRAP): Delete.
5823 (m68k_register_raw_size): Delete.
5824 (m68k_register_virtual_size): Delete.
5825 (m68k_register_type): Renamed from m68k_register_virtual_type and
5826 add gdbarch argument.
5827 (m68k_store_struct_return): Delete.
5828 (m68k_deprecated_extract_return_value): Delete.
5829 (m68k_deprecated_extract_struct_value_address): Delete.
5830 (m68k_frame_chain): Delete.
5831 (m68k_frame_saved_pc): Delete.
5832 (m68k_fix_call_dummy): Delete.
5833 (m68k_push_dummy_frame): Delete.
5834 (m68k_pop_frame): Delete.
5835 (m68k_extract_return_value): New function.
5836 (m68k_store_return_value): Rewrite using regcache.
5837 (m68k_extract_struct_value_address): Rewrite using regcache.
5838 (m68k_push_dummy_call): New function.
5839 (struct m68k_frame_cache): Define.
5840 (m68k_alloc_frame_cache): New function.
5841 (m68k_analyze_frame_setup): New function.
5842 (m68k_analyze_register_saves): New function.
5843 (m68k_analyze_prologue): New function.
5844 (m68k_skip_prologue): Rewrite using above functions.
5845 (m68k_unwind_pc): New function.
5846 (m68k_frame_cache): New function.
5847 (m68k_frame_this_id): New function.
5848 (m68k_frame_prev_register): New function.
5849 (m68k_frame_unwind): New variable.
5850 (m68k_frame_p): New function.
5851 (m68k_sigtramp_frame_cache): New function.
5852 (m68k_sigtramp_frame_this_id): New function.
5853 (m68k_sigtramp_frame_prev_register): New function.
5854 (m68k_sigtramp_frame_unwind): New variable.
5855 (m68k_sigtramp_frame_p): New function.
5856 (m68k_frame_base_address): New function.
5857 (m68k_frame_base): New function.
5858 (m68k_unwind_dummy_id): New function.
5859 (fill_gregset): Use regcache_collect.
5860 (fill_fpregset): Likewise.
5861 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5862 defined.
5863 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5864 deprecated_init_frame_pc, deprecated_store_struct_return,
5865 deprecated_extract_return_value, deprecated_store_return_value,
5866 deprecated_frame_chain, deprecated_frame_saved_pc,
5867 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5868 deprecated_register_virtual_size,
5869 deprecated_max_register_raw_size,
5870 deprecated_max_register_virtual_size,
5871 deprecated_register_virtual_type, deprecated_register_size,
5872 deprecated_register_byte, deprecated_register_bytes,
5873 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5874 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5875 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5876 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5877 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5878 deprecated_push_dummy_frame, deprecated_pop_frame,
5879 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5880 only if SYSCALL_TRAP is defined. Set extract_return_value,
5881 store_return_value, extract_struct_value_address, register_type,
5882 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5883 predicates.
5884 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5885 M68K_MAX_REGISTER_SIZE): Define.
5886 (struct m68k_sigtramp_info): Define.
5887 (struct gdbarch_tdep): Add get_sigtramp_info.
5888 * m68klinux-nat.c (fetch_register): Use register_size instead of
5889 REGISTER_RAW_SIZE. Don't put assignment in if.
5890 (store_register): Likewise.
5891 (fetch_inferior_registers): Likewise.
5892 (store_inferior_registers): Likewise.
5893 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5894 (m68k_linux_frame_saved_pc): Delete.
5895 (m68k_linux_sigcontext_reg_offset,
5896 m68k_linux_ucontext_reg_offset): Define.
5897 (m68k_linux_get_sigtramp_info): New function.
5898 (m68k_linux_extract_return_value): Rewrite using regcache.
5899 (m68k_linux_store_return_value): Likewise.
5900 (m68k_linux_extract_struct_value_address): Likewise.
5901 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5902 Don't set deprecated_frame_saved_pc,
5903 deprecated_extract_return_value, deprecated_store_return_value,
5904 deprecated_extract_struct_value_address. Set
5905 extract_return_value, store_return_value,
5906 extract_struct_value_address.
5907
eb8bc282
AC
59082003-07-07 Andrew Cagney <cagney@redhat.com>
5909
5910 * expprint.c: Include "user-regs.h" instead of "frame.h".
5911 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5912 frame_map_regnum_to_name.
5913 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5914 (frame_map_name_to_regnum): Simplify, call
5915 user_reg_map_name_to_regnum.
5916 (frame_map_regnum_to_name): Simplify, call
5917 user_reg_map_regnum_to_name.
5918 (frame_register_unwind): Update.
5919 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5920 (_initialize_frame_reg): Call user_reg_add_builtin.
5921 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5922 (value_of_register): Use value_of_user_reg.
5923 * eval.c (evaluate_subexp_standard): Update.
5924 * parse.c (write_dollar_variable): Update.
5925 * d10v-tdep.c (d10v_print_registers_info): Update.
5926 * infcmd.c (registers_info): Update.
5927 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5928 (builtin_regs_h): Delete macro.
5929 (user_regs_h): Define.
5930 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5931 (builtin-regs.o): Delete target.
5932 (user-regs.o): Specify dependencies.
5933 (expprint.o): Update dependencies.
5934 (findvar.o): Update dependencies.
5935 (frame.o): Update dependencies.
5936 (std-regs.o): Update dependencies.
5937
9f476a01
CF
59382003-07-06 Christopher Faylor <cgf@redhat.com>
5939
5940 * win32-nat.c (solib_symbols_add): Use one variable for all section
5941 address stuff. Pass variable rather than address of variable to
5942 safe_symbol_file_add.
5943
a731b831
AS
59442003-07-06 Andreas Schwab <schwab@suse.de>
5945
5946 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5947
9f83329d
JB
59482003-07-04 Joel Brobecker <brobecker@gnat.com>
5949
5950 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5951
27e28cc5
KW
59522003-07-04 Kris Warkentin <kewarken@qnx.com>
5953
5954 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5955
59562003-07-04 Kris Warkentin <kewarken@qnx.com>
5957
5958 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5959 * config/i386/nto.mh: New file.
5960 * config/i386/nm-nto.h: New file.
5961 * configure.host: Add i[3456]86-*-nto*.
5962
100f2e98
JB
59632003-07-03 Joel Brobecker <brobecker@gnat.com>
5964
5965 * remote-vx.c (vx_add_symbols): Fix compilation error.
5966
e23457df
AC
59672003-07-03 Andrew Cagney <cagney@redhat.com>
5968
5969 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5970 * gdbarch.h, gdbarch.c: Re-generate.
5971 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5972 (legacy_register_name): Declare.
5973 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5974 (REGISTER_NAME): Define.
5975 * sparc-tdep.c (legacy_register_name): New function.
5976 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5977 (REGISTER_NAME): Define.
5978 (hppa64_register_name): Declare.
5979 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5980 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5981 (hppa64_register_name): New function.
5982 (hppa_register_name): New function.
5983 * arch-utils.c (legacy_register_name): Delete.
5984 * arch-utils.h (legacy_register_name): Delete.
5985
38caaeec
DJ
59862003-07-03 Daniel Jacobowitz <drow@mvista.com>
5987
5988 * cli/cli-interp.c (cli_interpreter_resume): Update the
5989 cli_uiout's stream to gdb_stdout.
5990
dadd712e
AC
59912003-07-03 Andrew Cagney <cagney@redhat.com>
5992
5993 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5994 predicate.
5995 * gdbarch.h, gdbarch.c: Re-generate.
5996 * regcache.c (init_regcache_descr): Use legacy code when either
5997 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5998
c7f1390e
DJ
59992003-07-02 Daniel Jacobowitz <drow@mvista.com>
6000
6001 * NEWS: Move "set logging" entry into GDB 6.0 section.
6002
4bc8c588
JB
60032003-07-02 Jim Blandy <jimb@redhat.com>
6004
a9dd42f1
JB
6005 * s390-tdep.c (struct frame_extra_info): new member:
6006 'stack_bought_valid'.
6007 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
6008 initialize fextra_info->stack_bought.
6009 (s390_frameless_function_invocation): Don't trust the value of
6010 fextra_info_ptr->stack_bought unless
6011 fextra_info->stack_bought_valid is set.
6012
4bc8c588
JB
6013 New S390 prologue analyzer.
6014 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
6015 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
6016 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
6017 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
6018 compute_x_addr, s390_on_stack, s390_store,
6019 s390_get_signal_frame_info): New functions.
6020 (S390_NUM_SPILL_SLOTS): New macro.
6021 (s390_get_frame_info): Rewritten.
6022 (is_arg_reg): Deleted.
6023
6024 Break out the decoding of S/390 instructions into separate
6025 functions, to make it more legible, and easier to check
6026 against the spec.
6027 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
6028 is_rx, is_rxe): New functions.
6029 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
6030 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
6031 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
6032 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
6033 enums for opcode values. (Is this an improvement?)
6034
fd13a04a
AC
60352003-07-02 Andrew Cagney <cagney@redhat.com>
6036
6037 * i386-tdep.c: Revert change committed as part of trad-frame code
6038 below.
6039
3f8091c1
DJ
60402003-07-02 Daniel Jacobowitz <drow@mvista.com>
6041
6042 * breakpoint.c (insert_catchpoint): Make static.
6043
8dd5115e
AS
60442003-07-02 Andreas Schwab <schwab@suse.de>
6045
6046 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6047 former ia64_push_arguments and ia64_push_return_address, and use
6048 regcache functions instead of read/write_register.
6049 (ia64_gdbarch_init): Set push_dummy_call instead of
6050 deprecated_push_arguments and deprecated_push_return_address.
6051
a2229c23
AJ
60522003-07-01 Andreas Jaeger <aj@suse.de>
6053
6054 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6055 before the call.
6056 Set %rax only to number of SSE registers used.
6057
3b3850e8
AC
60582003-07-01 Andrew Cagney <cagney@redhat.com>
6059
6060 * trad-frame.h: Update comments, a -1 .addr is reserved.
6061 (trad_frame_value_p, trad_frame_addr_p): Declare.
6062 (trad_frame_reg_p): Declare.
6063 (trad_frame_set_value): Rename trad_frame_register_value.
6064 (trad_frame_set_unknown): Declare.
6065 * trad-frame.c (trad_frame_realreg_p): New function.
6066 (trad_frame_addr_p, trad_frame_value_p): New function.
6067 (trad_frame_set_unknown): New function.
6068 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6069 (trad_frame_prev_register): Use trad_frame_realreg_p,
6070 trad_frame_addr_p and trad_frame_value_p.
6071 (trad_frame_set_value): Rename trad_frame_register_value.
6072 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6073 and trad_frame_set_value.
a2229c23 6074
4d819d0e
JB
60752003-06-30 Jim Blandy <jimb@redhat.com>
6076
6077 Patch from IBM (authors unspecified, probably Ulrich Weigand and
6078 Gerhard Tonn) for argument passing on the S/390 and S/390x:
6079 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6080 for 16 registers, and then 32 more bytes.
6081 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6082 New macros.
6083 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6084 Move up in the file, since it's now used by is_simple_arg.
6085 (is_simple_arg): Don't assume registers are four bytes long.
6086 Exclude all double arguments. Extended floats are not simple
6087 args.
6088 (is_power_of_two): New function.
6089 (pass_by_copy_ref): Call is_power_of_two, and check that the
6090 length fits in a register, rather than listing all the acceptable
6091 sizes. Extended floats are not passed by reference.
6092 (s390_push_arguments): Don't assume registers are four bytes long.
6093 Reserve an argument register to point to the buffer for structures
6094 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
6095 S390_STACK_FRAME_OVERHEAD.
6096
1ad828f1
AS
60972003-06-30 Andreas Schwab <schwab@suse.de>
6098
6099 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6100 format error message.
6101
39b00981
JB
61022003-06-30 Joel Brobecker <brobecker@gnat.com>
6103
6104 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6105
b2a7f303
DC
61062003-06-30 David Carlton <carlton@kealia.com>
6107
6108 Band-aid for PR c++/1245.
6109 * Makefile.in (cp-support.o): Depend on complaints_h.
6110 * cp-support.c: Include complaints.h. Add declaration for
6111 find_last_component.
6112 (cp_find_first_component): Separate code into
6113 cp_find_first_component_aux.
6114 (cp_find_first_component_aux): Call demangled_name_complaint.
6115 (demangled_name_complaint): New.
6116
a257b5bb
AC
61172003-06-30 Andrew Cagney <cagney@redhat.com>
6118
6119 * remote.c (remote_write_bytes): Explicitly compute and then use
6120 the payload size. Update comments to reflect. Fixes problem of
6121 GDB not sending small packets as found by Fred Fish.
6122
0a2cfde4
AC
61232003-06-30 Andrew Cagney <cagney@redhat.com>
6124
6125 * remote.c (remote_async_wait): Fix -Wformat problem.
6126
3fcb8548
AC
61272003-06-29 Andrew Cagney <cagney@redhat.com>
6128
6129 * remote.c (remote_wait): Call error, and not warning, when the
6130 packet is corrupt.
6131 (remote_async_wait): Ditto.
6132
9f9970a3
DJ
61332003-06-29 Daniel Jacobowitz <drow@mvista.com>
6134
6135 * sparc-tdep.c (sparc_y_regnum): Make external again.
6136
83a8ccca
DJ
61372003-06-29 Daniel Jacobowitz <drow@mvista.com>
6138
6139 * cli/cli-logging.c (pop_output_files): Add void to function
6140 definition.
6141
d2cf594a
AC
61422003-06-29 Andrew Cagney <cagney@redhat.com>
6143
6144 * frame.c (frame_register_unwind): Use unsigned char when dumping
6145 the buffer contents.
6146
0fac0b41
DJ
61472003-06-28 Daniel Jacobowitz <drow@mvista.com>
6148
6149 * cli/cli-logging.c: New file.
6150 * cli-out.c (struct ui_out_data): Add original_stream.
6151 (cli_redirect): New function.
6152 (cli_ui_out_impl): Add cli_redirect.
6153 (cli_out_new): Initialize original_stream.
6154 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6155 (uo_redirect, ui_out_redirect): New.
6156 * ui-out.h (struct ui_out_impl): Add redirect member.
6157 (redirect_ftype): New.
6158 (ui_out_redirect): Add prototype.
6159 * Makefile.in: Add rules for cli-logging.c.
6160 * NEWS: Mention "set logging".
6161
88a07d7c
EZ
61622003-06-27 Elena Zannoni <ezannoni@redhat.com>
6163
6164 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6165
4eb58876
AC
61662003-06-27 Andrew Cagney <cagney@redhat.com>
6167
6168 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6169 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6170 * avr-tdep.c (avr_call_dummy_address): Delete function.
6171 (avr_gdbarch_init): Do not set call_dummy_address.
6172
1549f619
EZ
61732003-06-27 Elena Zannoni <ezannoni@redhat.com>
6174
6175 * symfile.c (syms_from_objfile): Move variables to inner block.
6176 Move the checks for the non-mainline case a bit earlier to avoid
6177 doing some useless computations.
6178
3cb3398d
EZ
61792003-06-27 Elena Zannoni <ezannoni@redhat.com>
6180
6181 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6182
3799ccc6
EZ
61832003-06-26 Elena Zannoni <ezannoni@redhat.com>
6184
6185 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6186 sections.
6187
ce1f6491
MC
61882003-06-26 Michael Chastain <mec@shout.net>
6189
6190 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6191 gdb/testsuite/gdb.c++/pr-1210.exp.
6192
d958dfd0
AC
61932003-06-26 Andrew Cagney <cagney@redhat.com>
6194
6195 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6196 altivec_expression.h and altivec_registers.h.
6197
d31431ed
AC
61982003-06-26 Andrew Cagney <cagney@redhat.com>
6199
6200 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6201 info->mach when MIPS16. Patch suggested by Fred Fish.
6202
714b1282
AC
62032003-06-26 Andrew Cagney <cagney@redhat.com>
6204
6205 * utils.c (internal_vproblem): Print the problem to a reason
6206 buffer and then pass to query. Make the msg variable more local.
6207
42efa47a
AC
62082003-06-26 Andrew Cagney <cagney@redhat.com>
6209
6210 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6211 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6212 * gdbarch.h, gdbarch.c: Re-generate.
6213 * frame-base.c (default_frame_args_address): Update. Use
6214 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6215 not available.
6216 (default_frame_locals_address): Ditto for
6217 DEPRECATED_FRAME_LOCALS_ADDRESS.
6218 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6219 (vax_frame_num_args): Update.
6220 (vax_gdbarch_init): Update.
6221 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6222 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6223 * mcore-tdep.c (mcore_gdbarch_init): Update.
6224 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6225 * ia64-tdep.c (ia64_gdbarch_init): Update.
6226 * symtab.h (address_class): Update comments.
6227 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6228 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6229 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6230 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6231 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6232 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6233 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6234 * alpha-mdebug-tdep.c: Update.
6235 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6236
8ffd9b1b
AJ
62372003-06-26 Andreas Jaeger <aj@suse.de>
6238
6239 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6240 of SSE registers so that varargs functions work. Rework handling
6241 of passing arguments on the stack.
6242 (x86_64_store_return_value): Return double and float values in SSE
6243 register.
6244
e8ac10a6
MC
62452003-06-24 Michael Chastain <mec@shout.net>
6246
6247 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6248 the "constructor breakpoints ignored" bug.
6249
986af8e6
DC
62502003-06-25 David Carlton <carlton@kealia.com>
6251
6252 * MAINTAINERS: Update e-mail address.
6253
d64558a5
JB
62542003-06-24 Jim Blandy <jimb@redhat.com>
6255
e538d2d7
JB
6256 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6257
02631ec0
JB
6258 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6259 function.
6260 (ppc_linux_init_abi): Register it as the
6261 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6262
e716d87a
JB
6263 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6264 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6265 method.
6266
d64558a5
JB
6267 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6268 (ppc64_standard_linkage_target): Use it.
6269
449a5da4
AC
62702003-06-23 Andrew Cagney <cagney@redhat.com>
6271
6272 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6273 for 0 "int0" and 4 "int32" sized registers.
6274 * gdbtypes.c (builtin_type_int0): Define.
6275 (build_gdbtypes): Initialize builtin_type_int0.
6276 * gdbtypes.h (builtin_type_int0): Declare.
6277
b2a02dda
SC
62782003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6279
6280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6281 as characters are unsigned.
6282
fba3138e
DJ
62832003-06-22 Daniel Jacobowitz <drow@mvista.com>
6284
6285 PR gdb/1179
6286 * dwarfread.c (struct_type): Skip static fields without crashing.
6287
f6c8180b
AC
62882003-06-22 Andrew Cagney <cagney@redhat.com>
6289
6290 GDB 6.0 branch created.
f2c06f52
AC
6291 * README: Update.
6292 * PROBLEMS: Update. Empty.
6293 * NEWS: Update.
f6c8180b 6294
ae822768
DJ
62952003-06-22 Daniel Jacobowitz <drow@mvista.com>
6296
6297 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6298 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6299
261de166
AC
63002003-06-22 Andrew Cagney <cagney@redhat.com>
6301
6302 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6303 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6304 Velikov.
6305
30e94205
DJ
63062003-06-22 Daniel Jacobowitz <drow@mvista.com>
6307
6308 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6309 compilers.
6310
9e14d721
DJ
63112003-06-21 Daniel Jacobowitz <drow@mvista.com>
6312
6313 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6314 argument of val_print.
6315 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6316 to the address argument of baseclass_offset or target_read_memory.
6317 Do add it to the argument of cp_print_value_fields.
6318
a4b8ebc8
AC
63192003-06-21 Andrew Cagney <cagney@redhat.com>
6320
6321 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6322 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6323 instead of 0..NUM_REGS.
6324 (mips_register_reggroup_p): New function.
6325 (mips_pseudo_register_write): New function.
6326 (mips_pseudo_register_read): New function.
6327 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6328 based on the register's type.
6329 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6330 cooked.
6331 (mips_get_saved_register): Simplify. Assert that REGNO is a
6332 pseudo / cooked.
6333 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6334 (mips_register_type): Replace mips_register_virtual_type. Map
6335 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6336 when available.
6337 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6338 that the register is cooked / virtual.
6339 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6340 Only get the extra info when needed.
6341 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6342 (mips32_heuristic_proc_desc): Fetch the cooked register.
6343 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6344 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6345 (mips_print_register): Use gdbarch_register_type, instead of
6346 REGISTER_VIRTUAL_TYPE.
6347 (print_gp_register_row): Use gdbarch_register_type, instead of
6348 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6349 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6350 Print the pseudo / cooked registers.
6351 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6352 Print the pseudo / cooked registers.
6353 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6354 REG_NUM is pseudo / cooked.
6355 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6356 (mips_n32n64_xfer_return_value): Ditto.
6357 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6358 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6359 (mips_register_sim_regno): New function.
6360 (mips_gdbarch_init): Set deprecated_register_byte,
6361 register_group_p, pseudo_register_write, pseudo_register_read,
6362 register_sim_regno, and num_pseudo_regs. Set register_type,
6363 instead of register_virtual_type.
6364 * Makefile.in (mips-tdep.o): Update dependencies.
6365 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6366 REGISTER_VIRTUAL_TYPE.
6367 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6368 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6369 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6370 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6371 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6372
325ed089
DJ
63732003-06-21 Daniel Jacobowitz <drow@mvista.com>
6374
6375 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6376 * cli/cli-cmds.c: Include "gdb_vfork.h".
6377 (shell_escape): Use vfork.
6378
f0e7d0e8
AC
63792003-06-21 Andrew Cagney <cagney@redhat.com>
6380
c57bb9fa
AC
6381 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6382 32 bit floating-point register saves.
6383
6e51443a
AC
6384 * frame.h (deprecated_unwind_get_saved_register): Delete.
6385 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6386 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6387 and deprecated_get_next_frame_hack instead of
6388 deprecated_unwind_get_saved_register.
6389
ed183c7c
AC
6390 * mips-tdep.c (mips_dump_tdep): Do not print
6391 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6392
f0e7d0e8
AC
6393 * frame.c (get_frame_register): New function.
6394 (frame_unwind_register_signed): New function.
6395 (get_frame_register_signed): New function.
6396 (frame_unwind_register_unsigned): New function.
6397 (get_frame_register_unsigned): New function.
6398 * frame.h: Add comments on naming schema.
6399 (get_frame_register, frame_unwind_register_signed): Declare.
6400 (get_frame_register_signed, get_frame_register_signed): Declare.
6401 (frame_unwind_register_unsigned): Declare.
6402 (get_frame_register_unsigned): Declare.
6403
2224d941
TR
64042003-06-20 Theodore A. Roth <troth@openavr.org>
6405
6406 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6407
8619218d
TR
64082003-06-20 Theodore A. Roth <troth@openavr.org>
6409
6410 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6411 (avr_read_sp): Ditto.
6412
0b1b50c0
DJ
64132003-06-20 Daniel Jacobowitz <drow@mvista.com>
6414
6415 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6416 * config/arm/nm-linux.h: Likewise.
6417 * config/arm/tm-linux.h: Likewise.
6418 * config/ia64/nm-linux.h: Likewise.
6419 * config/ia64/tm-ia64.h: Likewise.
6420 * config/s390/tm-linux.h: Likewise.
6421 * config/s390/tm-s390.h: Likewise.
6422 * s390-nat.c: Likewise.
6423 * s390-tdep.c: Likewise.
6424
6425 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6426 * config/ia64/linux.mt: Likewise.
6427 * config/m68k/linux.mh: Likewise.
6428 * config/mips/linux.mt: Likewise.
6429 * config/powerpc/linux.mh: Likewise.
6430 * config/sh/linux.mt: Likewise.
6431
c8c18e65
KW
64322003-06-19 Kris Warkentin <kewarken@qnx.com>
6433
6434 * solib.c (solib_open): Change tests for whether to search
6435 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6436 comments.
6437
dcccef2e
TR
64382003-06-19 Theodore A. Roth <troth@openavr.org>
6439
6440 * avr-tdep.c (avr_frame_address): Delete function.
6441 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6442 set_gdbarch_frame_args_address.
6443
5861a190
AC
64442003-06-19 Andrew Cagney <cagney@redhat.com>
6445
6446 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6447 (REGISTER_CONVERT_FROM_TYPE): Delete.
6448 (mips_register_convert_to_type): Delete declaration.
6449 (mips_register_convert_from_type): Delete declaration.
6450 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6451 kernel/.
6452
0274a8ce
MS
64532003-06-19 Michael Snyder <msnyder@redhat.com>
6454
6455 * linux-nat.h: New file.
6456 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6457 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6458 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6459 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6460 (linux_make_note_section): Iterate over lwps instead of threads.
6461 (linux_do_thread_registers): Use lwp instead of merged pid.
6462 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6463 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6464 Add dependency on linux_nat_h.
6465
adf5f719
TR
64662003-06-19 Theodore A. Roth <troth@openavr.org>
6467
6468 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6469
6766a268
DJ
64702003-06-19 Daniel Jacobowitz <drow@mvista.com>
6471
6472 * varobj.c (get_type, get_target_type): Use check_typedef.
6473
1171114a
DJ
64742003-06-19 Daniel Jacobowitz <drow@mvista.com>
6475
6476 * breakpoint.c (insert_catchpoint): Call internal_error.
6477
adcf68a2
TR
64782003-06-19 Theodore A. Roth <troth@openavr.org>
6479
6480 * avr-tdep.c (avr_push_dummy_code): Delete function.
6481 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6482
ea67f13b
DJ
64832003-06-19 Daniel Jacobowitz <drow@mvista.com>
6484
6485 * arch-utils.c (default_prepare_to_proceed): Remove.
6486 (generic_prepare_to_proceed): Remove.
6487 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6488 (generic_prepare_to_proceed): Remove prototype.
6489 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6490 * gdbarch.c: Regenerate.
6491 * gdbarch.h: Regenerate.
6492 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6493 * hppah-nat.c (hppa_switched_threads): Remove.
6494 * infrun.c (prepare_to_proceed): New static function, copied from
6495 generic_prepare_to_proceed. Remove select_it argument.
6496 (proceed): Call prepare_to_proceed.
6497 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6498 variables.
6499 (ptrace_wait): Don't set the removed variables.
6500 (hppa_switched_threads): Remove.
6501 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6502 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6503 (lin_lwp_prepare_to_proceed): Remove prototype.
6504 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6505 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6506
4add8633
TR
65072003-06-18 Theodore A. Roth <troth@openavr.org>
6508
6509 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6510 trad-frame.h.
6511 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6512 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6513 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6514 (AVR_PROLOGUE_*): Enumerate prologue types.
6515 (struct frame_extra_info): Remove.
6516 (struct avr_unwind_cache): Define.
6517 (avr_write_sp): Delete function.
6518 (avr_read_fp): Ditto.
6519 (avr_init_extra_frame_info): Ditto.
6520 (avr_pop_frame): Ditto.
6521 (avr_frame_saved_pc): Ditto.
6522 (avr_saved_pc_after_call): Ditto.
6523 (avr_push_return_address): Ditto.
6524 (avr_frame_chain): Ditto.
6525 (avr_store_struct_return): Ditto.
6526 (avr_push_arguments): Ditto.
6527 (avr_scan_prologue): Update comments. Changed to set up the info for
6528 cache unwinding. Now returns end of prologue PC.
6529 (avr_skip_prologue): Better handling of functions lacking a prologue
6530 by using avr_scan_prologue.
6531 (avr_scan_arg_moves): New function.
6532 (avr_saved_regs_unwinder): Ditto.
6533 (avr_frame_unwind_cache): Ditto.
6534 (avr_unwind_pc): Ditto.
6535 (avr_frame_this_id): Ditto.
6536 (avr_frame_prev_register): Ditto.
6537 (avr_frame_p): Ditto.
6538 (avr_frame_base_address ): Ditto.
6539 (avr_unwind_dummy_id): Ditto.
6540 (avr_push_dummy_code): Ditto.
6541 (push_stack_item): Ditto.
6542 (pop_stack_item): Ditto.
6543 (avr_push_dummy_call): Ditto.
6544 (struct stack_item): Define.
6545 (avr_frame_unwind): Declare structure.
6546 (avr_frame_base): Ditto.
6547 (avr_gdbarch_init): Remove calls to
6548 set_gdbarch_deprecated_init_frame_pc,
6549 set_gdbarch_deprecated_target_read_fp,
6550 set_gdbarch_deprecated_dummy_write_sp,
6551 set_gdbarch_deprecated_fp_regnum,
6552 set_gdbarch_deprecated_push_arguments,
6553 set_gdbarch_deprecated_push_return_address,
6554 set_gdbarch_deprecated_pop_frame,
6555 set_gdbarch_deprecated_store_struct_return,
6556 set_gdbarch_deprecated_frame_init_saved_regs,
6557 set_gdbarch_deprecated_init_extra_frame_info,
6558 set_gdbarch_deprecated_frame_chain,
6559 set_gdbarch_deprecated_frame_saved_pc,
6560 set_gdbarch_deprecated_saved_pc_after_call.
6561 Add calls to set_gdbarch_push_dummy_call,
6562 set_gdbarch_push_dummy_code,
6563 frame_unwind_append_predicate,
6564 frame_base_set_default,
6565 set_gdbarch_unwind_dummy_id,
6566 set_gdbarch_unwind_pc.
6567 Wrap a long line.
6568
7be04a68
MS
65692003-06-18 Corinna Vinschen <vinschen@redhat.com>
6570
6571 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6572 registers for H8/300S.
6573 (h8300_print_registers_info): Ditto.
8ffd9b1b 6574 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6575
ae087d01
DJ
65762003-06-18 Daniel Jacobowitz <drow@mvista.com>
6577
6578 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6579 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6580 (lin_lwp_wait): Likewise. Update comments.
6581 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6582 (pull_pid_from_list, linux_record_stopped_pid): New.
6583
07d8f827
SC
65842003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6585
6586 * ada-lang.c (scan_discrim_bound): Name first argument.
6587 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6588 declared by ALL_BLOCK_SYMBOLS.
6589
7cb47b14
SC
65902003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6591
6592 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6593 ("regcache.h"): Include it.
6594 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6595
6ad8ae5c
DJ
65962003-06-17 Daniel Jacobowitz <drow@mvista.com>
6597
6598 * NEWS: Mention gdbserver detach change and "disconnect" command.
6599 * infcmd.c (disconnect_command): New function.
6600 (_initialize_infcmd): Add ``disconnect'' command.
6601 * remote.c (remote_async_detach): Delete.
6602 (remote_detach): Merge remote_async_detach.
6603 (remote_disconnect): New.
6604 (init_remote_ops): Set to_disconnect.
6605 (init_remote_cisco_ops): Likewise.
6606 (init_remote_async_ops): Likewise. Use remote_detach.
6607 * target.c (cleanup_target): Default to_disconnect.
6608 (update_current_target): Inherit to_disconnect.
6609 (target_disconnect, debug_to_disconnect): New functions.
6610 (setup_target_debug): Set to_disconnect.
6611 * target.h (struct target_ops): Add to_disconnect.
6612 (target_disconnect): Add prototype.
6613
687595f9
DJ
66142003-06-17 Daniel Jacobowitz <drow@mvista.com>
6615
6616 * breakpoint.c (insert_catchpoint): New function.
6617 (insert_breakpoints): Use catch_exceptions to call
6618 insert_catchpoint. Disable catchpoints if they fail to insert.
6619
29239a8f
DJ
66202003-06-17 Daniel Jacobowitz <drow@mvista.com>
6621
6622 * symfile.c (reread_symbols): Clear sym_private.
6623
2cdf3c63
AC
66242003-06-17 Andrew Cagney <cagney@redhat.com>
6625
6626 * trad-frame.h (struct frame_info): Add opaque declaration.
6627 * remote-fileio.h (struct cmd_list_element): Add opaque
6628 declaration.
6629 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6630 comments.
6631
cf0e1e0d
DJ
66322003-06-17 Daniel Jacobowitz <drow@mvista.com>
6633
6634 * remote.c (remote_prepare_to_store): Replace call to
6635 deprecated_read_register_bytes with multiple regcache_raw_read
6636 calls.
6637
192cdb19
KW
66382003-06-17 Kris Warkentin <kewarken@qnx.com>
6639
6640 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6641 (nto_find_and_open_solib): Likewise.
6642 (nto_init_solib_absolute_prefix): Likewise.
6643 (_initialize_nto_tdep): Fix indentation.
6644
89929b45
KW
66452003-06-17 Kris Warkentin <kewarken@qnx.com>
6646
6647 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6648
46019f27
KW
66492003-06-17 Kris Warkentin <kewarken@qnx.com>
6650
6651 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6652
1a38736e
JB
66532003-06-17 Jim Blandy <jimb@redhat.com>
6654
6655 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6656
3605c34a
TR
66572003-06-16 Theodore A. Roth <troth@openavr.org>
6658
6659 * avr-tdep.c (avr_extract_return_value): New function.
6660 (avr_gdbarch_init): Set extract_return_value method.
6661
870b3035
AC
66622003-06-16 Andrew Cagney <cagney@redhat.com>
6663
6664 * frame.h (deprecated_get_next_frame_hack): Declare.
6665 * frame.c (legacy_saved_regs_prev_register): Only require
6666 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6667 there are always saved regs.
6668 (deprecated_generic_get_saved_register): Do not require
6669 DEPRECATED_FRAME_INIT_SAVED_REGS.
6670 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6671 use frame ID unwind instead.
6672 (deprecated_get_next_frame_hack): New function.
6673
63d47a7d
CV
66742003-06-16 Corinna Vinschen <vinschen@redhat.com>
6675
6676 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6677 (h8300_push_dummy_call): ...this function. Some minor optimization.
6678 (h8300_push_return_address): Remove.
6679 (h8300_gdbarch_init): Remove calls to
6680 set_gdbarch_deprecated_dummy_write_sp,
6681 set_gdbarch_deprecated_push_arguments and
6682 set_gdbarch_deprecated_push_return_address.
6683 Add call to set_gdbarch_push_dummy_call.
6684
4bb1dc5e
CV
66852003-06-16 Corinna Vinschen <vinschen@redhat.com>
6686
6687 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6688 (E_PSEUDO_EXR_REGNUM): Ditto.
6689 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6690 registers into safe registers.
4bb1dc5e
CV
6691 (h8300_skip_prologue): Check for stm instruction to push registers
6692 used for register variables onto stack.
6693 (gdb_print_insn_h8300): Remove.
6694 (h8300_examine_prologue): Add a comment.
6695 (h8300_register_name): Take pseudo registers into account.
6696 (h8300s_register_name): Ditto.
6697 (h8300sx_register_name): Ditto.
6698 (h8300_print_register): Ditto.
6699 (h8300_print_registers_info): Define "nice" printing order.
6700 (h8300_saved_pc_after_call): Take pseudo registers into account.
6701 (h8300_register_type): Ditto. Return type used for remote connection
6702 when requesting real CCR or EXR register, return actual type when
6703 requesting pseudo CCR or EXR.
6704 (h8300_pseudo_register_read): New function.
6705 (h8300_pseudo_register_write): Ditto.
6706 (h8300_dbg_reg_to_regnum): Ditto.
6707 (h8300s_dbg_reg_to_regnum): Ditto.
6708 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6709 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6710 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6711 set_gdbarch_print_insn architecture dependent.
6712 Call set_gdbarch_pseudo_register_read and
6713 set_gdbarch_pseudo_register_write.
6714 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6715
a59fe496
AC
67162003-06-16 Andrew Cagney <cagney@redhat.com>
6717
6718 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6719 * gdbarch.h, gdbarch.c: Re-generate.
6720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6721 * s390-tdep.c (s390_gdbarch_init): Update.
6722 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6723 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6724 * mips-tdep.c (mips_gdbarch_init): Update.
6725 * mcore-tdep.c (mcore_gdbarch_init): Update.
6726 * cris-tdep.c (cris_gdbarch_init): Update.
6727 * infcall.c (call_function_by_hand): Update.
6728 * ia64-tdep.c (ia64_push_arguments): Update comment.
6729 * frame.c (legacy_get_prev_frame): Do not assume
6730 SAVE_DUMMY_FRAME_TOS_P.
6731 * dummy-frame.c (find_dummy_frame): Update comment.
6732
6f4e5a41
AC
67332003-06-16 Andrew Cagney <cagney@redhat.com>
6734
6735 * regcache.c (do_cooked_read): Do not use register_valid_p.
6736
72fab697
TR
67372003-06-15 Theodore A. Roth <troth@openavr.org>
6738
6739 * avr-tdep.c (avr_register_type): Remove a blank line.
6740 (avr_scan_prologue): Correct some comments.
6741
e3d8b004
TR
67422003-06-15 Theodore A. Roth <troth@openavr.org>
6743
6744 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6745 prologue types.
8ffd9b1b 6746 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6747 option.
6748 Add code to scan -mcall-prologues for mega devices.
6749
866b76ea
TR
67502003-06-15 Theodore A. Roth <troth@openavr.org>
6751
6752 * avr-tdep.c (avr_register_byte): Delete function.
6753 (avr_register_raw_size): Delete function.
6754 (avr_register_virtual_size): Delete function.
6755 (avr_register_virtual_type): Delete function.
6756 (avr_register_type): New function.
6757 (avr_address_to_pointer): Remove unused code.
6758 (avr_read_fp): Need to read FP as two separate bytes due to change to
6759 avr_register_type() usage.
6760 (avr_gdbarch_init): Don't set deprecated_register_size.
6761 Don't set deprecated_register_bytes.
6762 Don't set deprecated_register_byte.
6763 Don't set deprecated_register_raw_size.
6764 Don't set deprecated_max_register_raw_size.
6765 Don't set deprecated_register_virtual_size.
6766 Don't set deprecated_max_register_virtual_size.
6767 Don't set deprecated_register_virtual_type.
6768 Set register_type method.
6769
3993f6b1
DJ
67702003-06-15 Daniel Jacobowitz <drow@mvista.com>
6771
6772 * Makefile.in (linux-nat.o): Add rule.
6773 * linux-nat.c: New file.
6774 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6775 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6776 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6777 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6778 * config/arm/linux.mh (NATDEPFILES): Likewise.
6779 * config/i386/linux.mh (NATDEPFILES): Likewise.
6780 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6781 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6782 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6783 * config/mips/linux.mh (NATDEPFILES): Likewise.
6784 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6785 * config/s390/s390.mh (NATDEPFILES): Likewise.
6786 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6787
786a90bb
MK
67882003-06-15 Mark Kettenis <kettenis@gnu.org>
6789
6790 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6791 replace out-of-date comment.
6792
3bd3f01e
AC
67932003-06-15 Andrew Cagney <cagney@redhat.com>
6794
6795 * rdi-share/host.h (Fail): Change to a varargs function.
6796 * remote-rdi.c (Fail): Update.
8ffd9b1b 6797
de5b9bb9
MK
67982003-06-15 Mark Kettenis <kettenis@gnu.org>
6799
6800 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6801 (i386_convert_register_p, i386_register_to_value,
6802 i386_register_from_value): Handle types longer than 8 bytes.
6803
d532c08f
MK
68042003-06-15 Mark Kettenis <kettenis@gnu.org>
6805
6806 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6807 Move floating-point code to new function in i387-tdep.c.
6808 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6809 New functions containing code moved here from i386-tdep.c.
6810 * i387-tdep.h: Add opaque declaration for `struct type'.
6811 (i387_register_to_value, i387_value_to_register): New prototypes.
6812 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6813 (x86_64_init_abi): Set convert_register_p, register_to_value and
6814 value_to_register here.
8ffd9b1b 6815
42c466d7
AC
68162003-06-14 Andrew Cagney <cagney@redhat.com>
6817
6818 * mips-tdep.c (mips_register_to_value): Make static.
6819 (mips_value_to_register): Make static.
6820 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6821 * ia64-tdep.c (ia64_register_raw_size): Make static.
6822 (ia64_register_virtual_size): Make static.
6823 (ia64_register_byte): Make static.
6824 * i387-tdep.c: Include "i387-tdep.h".
6825 (print_387_control_word): Delete function.
6826 (print_387_status_word): Delete function.
6827 (print_387_status_bits): Delete function.
6828 (print_387_control_bits): Delete function.
6829 * Makefile.in (i387-tdep.o): Update dependencies.
6830 * rdi-share/host.h (Fail): Declare.
6831 * remote-rdi.c (Fail): Update to match declaration.
6832
2a9cda49
AC
68332003-06-14 Andrew Cagney <cagney@redhat.com>
6834
6835 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6836 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6837 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6838 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6839 * README: Delete reference to remote-array.
6840 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6841 (remote-array.o): Delete target.
6842 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6843 * remote-array.c: Delete file.
6844
ff2e87ac
AC
68452003-06-14 Andrew Cagney <cagney@redhat.com>
6846 Mark Kettenis <kettenis@gnu.org>
6847
6848 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6849 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6850 parameter with "frame".
6851 * gdbarch.h, gdbarch.c: Re-generate.
6852 * frame.h (put_frame_register): Declare.
6853 * frame.c (put_frame_register): New function.
6854 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6855 (legacy_register_to_value): Rewrite, use "frame" to get the
6856 register value.
6857 (legacy_value_to_register): Rewrite, use "frame" to find the
6858 register's location before storing.
6859 * arch-utils.h (legacy_convert_register_p): Update.
6860 (legacy_register_to_value, legacy_value_to_register): Update.
6861 * findvar.c (value_from_register): Rewrite, eliminate use of
6862 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6863 "frame" to REGISTER_TO_VALUE.
6864 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6865 lval_reg_frame_relative + lval_register branch of the switch. Do
6866 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6867 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6868 I386_EDI_REGNUM): New defines.
6869 (i386_next_regnum, i386_convert_register_p,
6870 i386_register_to_value, i386_value_to_register): New functions.
6871 (i386_register_convertible, i386_register_convert_to_virtual,
6872 i386_convert_to_raw): Remove functions.
6873 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6874 value_to_register instead of register_convertible,
6875 register_convert_to_virtual and register_convert_to_raw.
6876 * mips-tdep.c (mips_convert_register_p): New function.
6877 (mips_value_to_register): Replace mips_register_convert_from_type.
6878 (mips_register_to_value): Replace mips_register_convert_to_type.
6879 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6880 register_to_value.
6881 * alpha-tdep.c (alpha_convert_register_p): Update.
6882 (alpha_value_to_register): Update, store the register.
6883 (alpha_register_to_value): Update, fetch the register.
6884
98be1e77
TR
68852003-06-14 Theodore A. Roth <troth@openavr.org>
6886
6887 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6888 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6889 Don't set deprecated_call_dummy_words.
6890 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6891 Don't set remote_translate_xfer_address.
6892 (avr_io_reg_read_command): Remove commented out debug printf.
6893 Wrap a long line.
6894
57bc6122
TR
68952003-06-14 Theodore A. Roth <troth@openavr.org>
6896
6897 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6898 causes gdb to seg fault.
6899
eb01fc62
DJ
69002003-06-14 Daniel Jacobowitz <drow@mvista.com>
6901
6902 * sparc-nat.c (fetch_inferior_registers): Correct
6903 a reference to "registers".
6904
3b3e6bee
DJ
69052003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6906
6907 * Makefile.in (exc_request_U_h): Define
6908 (exc_request_S_h): Likewise.
6909 (msg_reply_S_h): Likewise.
6910 (msg_U_h): Likewise.
6911 (notify_S_h): Likewise.
6912 (process_reply_S_h): Likewise.
6913 (gnu-nat.o): Depend on gdb_obstack_h
6914 * gnu-nat.c: Include "gdb_obstack.h".
6915
b8de8283
AC
69162003-06-13 Andrew Cagney <cagney@redhat.com>
6917
6918 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6919 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6920
f3be58bc
AC
69212003-06-13 Andrew Cagney <cagney@redhat.com>
6922
6923 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6924 when deprecated REGISTER macros can be deleted.
6925 * gdbarch.h, gdbarch.c: Re-generate.
6926
4c0122c8
JB
69272003-06-13 Jim Blandy <jimb@redhat.com>
6928
6929 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6930 Linux entry point symbols for _dl_debug_state, too.
6931
3e210248
AC
69322003-06-13 Andrew Cagney <cagney@redhat.com>
6933
6934 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6935 available, do not use the FP register, and always save the TOS.
6936 * dummy-frame.c (dummy_frame_this_id): Do not assert
6937 SAVE_DUMMY_FRAME_TOS.
6938 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6939 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6940 (i386_push_dummy_call): Add 8 to the returned SP.
6941 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6942 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6943 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6944 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6945 (x86_64_push_dummy_call): Return "sp + 16".
6946 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6947 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6948 save_dummy_frame_tos.
6949
0b65af49
JB
69502003-06-13 Jim Blandy <jimb@redhat.com>
6951
6952 * frv-tdep.c (frv_use_struct_convention): Delete static
6953 declaration for function deleted in my change of 2003-06-12.
6954
4ea2465e
TR
69552003-06-13 Theodore A. Roth <troth@openavr.org>
6956
6957 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6958 (avr_pointer_to_address): Shift code addrs left 1 bit.
6959 (avr_convert_from_func_ptr_addr): Delete function since operation is
6960 better handled by avr_address_to_pointer and avr_pointer_to_address.
6961 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6962
1581182a
MK
69632003-06-13 Mark Kettenis <kettenis@gnu.org>
6964
6965 From Kelley Cook <kelleycook@wideopenwest.com>:
6966 * configure.host: Accept i[34567]86 variants.
6967 * configure.tgt: Likewise.
6968 * nlm/configure.in: Likewise.
6969 * nlm/configure: Regenerated.
6970
7aa1783e
RE
69712003-06-13 Richard Earnshaw <rearnsha@arm.com>
6972
6973 * arm-tdep.c (solib-svr4.h): Dont' include it.
6974 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6975 * arm-linux-tdep.c: ... here. Make static.
6976 (arm_linux_init_abi): Register it.
6977 (solib-svr4.h): Include it.
6978 * Makefile.in: Update dependencies.
6979 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6980 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6981
0261a0d0
CV
69822003-06-13 Corinna Vinschen <vinschen@redhat.com>
6983
6984 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6985 indicate registers used for return values.
6986 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6987 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6988 members.
6989 (h8300_init_extra_frame_info): Ditto.
6990 (h8300_frame_locals_address): Removed.
6991 (h8300_frame_args_address): Removed.
6992 (h8300_extract_return_value): Use new regcache structure. Only care
6993 for 16 bit CPUs.
6994 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6995 (h8300_store_return_value): Use new regcache structure. Only care
6996 for 16 bit CPUs.
6997 (h8300h_store_return_value): Same function for 32 bit CPUs.
6998 (h8300_store_struct_return): Removed.
6999 (h8300_extract_struct_value_address): Use new regcache structure.
7000 (h8300h_extract_struct_value_address): Removed.
7001 (h8300_push_dummy_code): New function.
7002 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
7003 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
7004 set_gdbarch_store_return_value architecture dependent.
7005 Call set_gdbarch_push_dummy_code and
7006 set_gdbarch_extract_struct_value_address.
7007 Remove calls to set_gdbarch_frame_args_address,
7008 set_gdbarch_frame_locals_address,
7009 set_gdbarch_deprecated_store_struct_return,
7010 set_gdbarch_deprecated_extract_return_value,
7011 set_gdbarch_deprecated_extract_struct_value_address,
7012 set_gdbarch_deprecated_call_dummy_words and
7013 set_gdbarch_deprecated_sizeof_call_dummy_words.
7014
055c394a
CV
70152003-06-13 Corinna Vinschen <vinschen@redhat.com>
7016
7017 * h8300-tdep.c (h8300_register_byte): Remove.
7018 (h8300h_register_byte): Remove.
7019 (h8300_register_virtual_type): Remove. Substitute by...
7020 (h8300_register_type): New function.
7021 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
7022 (h8300h_extract_struct_value_address): Ditto.
7023 (h8300_gdbarch_init): Drop calls to
7024 set_gdbarch_deprecated_register_byte and
7025 set_gdbarch_deprecated_register_virtual_type.
7026 Add call to set_gdbarch_register_type.
7027
9c04cab7
AC
70282003-06-13 Andrew Cagney <cagney@redhat.com>
7029
7030 * gdbarch.sh: Update comments on registers.
7031 (deprecated_register_byte): Rename register_byte.
7032 (deprecated_register_raw_size): Rename register_raw_size.
7033 (deprecated_register_virtual_size): Rename register_virtual_size.
7034 (deprecated_register_virtual_type): Rename register_virtual_type.
7035 * gdbarch.h, gdbarch.c: Re-generate.
7036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7037 * vax-tdep.c (vax_gdbarch_init): Update.
7038 * v850-tdep.c (v850_gdbarch_init): Update.
7039 * sparc-tdep.c (sparc_gdbarch_init): Update.
7040 * sh-tdep.c (sh_gdbarch_init): Update.
7041 * s390-tdep.c (s390_gdbarch_init): Update.
7042 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7043 * ns32k-tdep.c: Update.
7044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7045 * mips-tdep.c (mips_gdbarch_init): Update.
7046 * mcore-tdep.c (mcore_gdbarch_init): Update.
7047 * m68k-tdep.c (m68k_gdbarch_init): Update.
7048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7049 * ia64-tdep.c (ia64_gdbarch_init): Update.
7050 * hppa-tdep.c (hppa_gdbarch_init): Update.
7051 * h8300-tdep.c (h8300_gdbarch_init): Update.
7052 * frv-tdep.c (frv_gdbarch_init): Update.
7053 * cris-tdep.c (cris_gdbarch_init): Update.
7054 * avr-tdep.c (avr_gdbarch_init): Update.
7055 * alpha-tdep.c (alpha_gdbarch_init): Update.
7056 * arm-tdep.c (arm_gdbarch_init): Update.
7057
b060cbea
AC
70582003-06-13 Andrew Cagney <cagney@redhat.com>
7059
7060 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7061 mips_o32_use_struct_convention with always_use_struct_convention.
7062
0fc9922a
DC
70632003-06-12 David Carlton <carlton@kealia.com>
7064
7065 * cp-namespace.c (cp_set_block_scope): Comment out
7066 processing_has_namespace_info branch.
7067
1fd35568
JB
70682003-06-12 Jim Blandy <jimb@redhat.com>
7069
f470a70a
JB
7070 Recognize and skip 64-bit PowerPC Linux linkage functions.
7071 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7072 insn_pattern, insns_match_pattern, d_field, ds_field): New
7073 functions, macros, and types for working with PPC instructions.
7074 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7075 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7076 ppc64_skip_trampoline_code): New functions, variables, and macros
7077 for recognizing and skipping linkage functions.
7078 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7079 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7080
49ff75ad
JB
7081 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7082 register offsets for both the 32- and 64-bit interfaces.
7083
bd918c83
JB
7084 Actually finish the job started by my change of 2003-05-29.
7085 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7086 other #definition of this.
7087 (ppc_linux_skip_trampoline_code): Remove declaration.
7088 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7089 static.
7090 (ppc_linux_init_abi): Register it as the skip_trampoline_code
7091 method for GDBARCH.
7092
7093 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7094 'long' on ppc64-*-linux*.
7095
f8c59253
JB
7096 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7097 isn't #defined, assume the register doesn't exist: act as if
7098 tdep->ppc_mq_regnum were -1.
7099
8fbb30b1
JB
7100 * configure.host, configure.tgt: Add entries for
7101 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7102 powerpc/linux.mt.
7103 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7104 New files.
7105
1fd35568
JB
7106 * arch-utils.c (always_use_struct_convention): New function.
7107 * arch-utils.h (always_use_struct_convention): New prototype.
7108 * alpha-tdep.c (alpha_use_struct_convention): Delete.
7109 (alpha_gdbarch_init): Register always_use_struct_convention,
7110 instead of alpha_use_struct_convention.
7111 * cris-tdep.c (cris_use_struct_convention): Delete.
7112 (cris_gdbarch_init): Register always_use_struct_convention,
7113 instead of cris_use_struct_convention.
7114 * frv-tdep.c (frv_use_struct_convention): Delete.
7115 (frv_gdbarch_init): Register always_use_struct_convention,
7116 instead of frv_use_struct_convention.
7117 * h8300-tdep.c (h8300_use_struct_convention): Delete.
7118 (h8300_gdbarch_init): Register always_use_struct_convention,
7119 instead of h8300_use_struct_convention.
e3305dd9 7120 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
7121 (mips_o32_gdbarch_init): Register always_use_struct_convention,
7122 instead of mips_o32_use_struct_convention.
7123
e14e6e9c
AC
71242003-06-12 Andrew Cagney <cagney@redhat.com>
7125
7126 * wince.c: Include "mips-tdep.h".
7127 * mips-tdep.h (mips_next_pc): Declare.
7128 * mcore-tdep.c: Make more local functions static.
7129 * Makefile.in (wince.o): Update dependencies.
7130
2335f48e
DC
71312003-06-12 David Carlton <carlton@kealia.com>
7132
7133 * symtab.c (lookup_symbol_aux_minsyms): Replace
7134 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7135 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7136 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7137 SYMBOL_NATURAL_NAME.
7138
f70a7d61
AS
71392003-06-12 Andreas Schwab <schwab@suse.de>
7140
7141 * Makefile.in (tuiDisassem.o): Update dependencies.
7142
b6429628
DC
71432003-06-12 David Carlton <carlton@bactrian.org>
7144
7145 * symtab.h: Delete declaration of make_symbol_overload_list.
7146 Add declaration of lookup_partial_symbol.
7147 * symtab.c (remove_params): Move to cp-support.c.
7148 (overload_list_add_symbol, make_symbol_overload_list)
7149 (sym_return_val_size, sym_return_val_index): Ditto.
7150 (lookup_partial_symbol): Make extern.
7151 * cp-support.h: Add declaration of make_symbol_overload_list.
7152 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7153 symtab.h, and block.h.
7154 (remove_params): Move here from symtab.c.
7155 (overload_list_add_symbol, make_symbol_overload_list)
7156 (sym_return_val_size, sym_return_val_index): Ditto.
7157 * valops.c: Include cp-support.h.
7158 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7159 frame_h, and block_h.
7160 (valops.o): Depend on cp_support_h.
7161
084edea5
CV
71622003-06-12 Corinna Vinschen <vinschen@redhat.com>
7163
7164 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7165 substitute by NUM_REGS throughout.
7166 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7167 (h8300s_register_name): New function for H8S registers.
7168 (h8300sx_register_name): Ditto for H8SX registers.
7169 (h8300_print_register): Revise register printing, avoid depending
7170 on 32 bit long.
0261a0d0 7171 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
7172 (h8300h_register_byte): New function for any other architecture.
7173 (h8300_register_raw_size): Remove.
7174 (h8300_register_virtual_type): Revise to return actually useful
7175 type.
7176 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7177 (h8300h_extract_struct_value_address): New function for any other
7178 architecture.
7179 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7180 set_gdbarch_register_name, set_gdbarch_register_byte,
7181 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7182 Remove calls to set_gdbarch_deprecated_register_size,
7183 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7184 set_gdbarch_deprecated_max_register_raw_size,
7185 set_gdbarch_register_virtual_size and
7186 set_gdbarch_deprecated_max_register_virtual_size entirely.
7187 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7188 set_gdbarch_long_double_bit.
7189
06194148
JJ
71902003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7191
8ffd9b1b
AJ
7192 * doublest.c (convert_doublest_to_floatformat): When dealing
7193 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
7194 processing a full 32 bits of mantissa.
7195
de4f826b
DC
71962003-06-11 David Carlton <carlton@bactrian.org>
7197
7198 * dictionary.h: New.
7199 * dictionary.c: New.
7200 * block.h: Add opaque declaration for struct dictionary.
7201 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7202 'sym' members.
7203 (BLOCK_DICT): New macro.
7204 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7205 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7206 BLOCK_SHOULD_SORT.
7207 (ALL_BLOCK_SYMBOLS): Update definition.
7208 * Makefile.in (SFILES): Add dictionary.c.
7209 (dictionary_h): New.
7210 (COMMON_OBS): Add dictionary.o.
7211 (dictionary.o): New.
7212 (ada-lang.o): Depend on dictionary_h.
7213 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7214 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7215 (mi-cmd-stack.o): Ditto.
7216 (gdbtk-cmds.o): Update dependencies.
7217 (gdbtk-stack.o): Ditto.
7218 * ada-lang.c: Include dictionary.h.
7219 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7220 (fill_in_ada_prototype, debug_print_block): Ditto.
7221 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7222 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7223 'is_sorted'.
7224 * mdebugread.c: Include dictionary.h.
7225 (struct parse_stack): Delete 'maxsyms' member.
7226 (parse_symbol): Update calls to new_block. Delete calls to
7227 shrink_block. Use dictionary methods.
7228 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7229 Update calls to new_symtab. Don't maintain maxsyms data.
7230 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7231 (add_symbol): Just call dict_add_symbol.
7232 (new_symtab): Delete 'maxsyms' argument.
7233 (new_symtab): Update calls to new_block.
7234 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7235 (shrink_block): Delete function.
7236 (fixup_sigtramp): Update call to new_block. Add symbol via
7237 dict_add_symbol.
7238 * jv-lang.c: Include dictionary.h.
7239 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7240 appropriately. Set class_symtab->free_func. Make sure the
7241 blockvector is big enough to hold two blocks.
7242 (add_class_symtab_symbol): Use dictionary methods.
7243 (free_class_block): New function.
7244 (type_from_class): Replace explicit iteration by
7245 ALL_BLOCK_SYMBOLS.
7246 * symtab.h (struct symtab): Replace 'free_ptr' method by
7247 'free_func'.
7248 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7249 sort_symtab_syms.
7250 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7251 sort_symtab_syms.
7252 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7253 Include dictionary.h.
7254 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7255 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7256 sort_symtab_syms.
7257 * objfiles.c: Include dictionary.h.
7258 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7259 * buildsym.c: Include dictionary.h.
7260 (finish_block): Use dictionary methods.
7261 (end_symtab): Set free_func to NULL, not free_ptr.
7262 * tracepoint.c: Include dictionary.h.
7263 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7264 (scope_info): Ditto.
7265 * stack.c: Include dictionary.h.
7266 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7267 (print_block_frame_labels, print_frame_arg_vars)
7268 (print_frame_args): Ditto.
7269 * symmisc.c (free_symtab_block): Use dictionary methods.
7270 (dump_symtab): Ditto.
7271 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7272 Include dictionary.h.
7273 * symfile.h: Delete declarations of sort_block_syms,
7274 sort_symtab_syms.
7275 * symfile.c (sort_block_syms): Delete.
7276 (sort_symtab_syms): Delete.
7277 * symtab.c: Include dictionary.h.
7278 (lookup_block_symbol): Use dictionary iterators.
7279 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7280 (search_symbols, make_symbol_completion_list): Ditto.
7281 (make_symbol_overload_list): Ditto.
7282 * valops.c (value_of_local): Use dict_empty.
7283 Include dictionary.h.
7284
a31f978c
JB
72852003-06-11 J. Brobecker <brobecker@gnat.com>
7286
7287 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7288
526e70c0
DC
72892003-06-11 David Carlton <carlton@bactrian.org>
7290
7291 * block.h (BLOCK_SHOULD_SORT): Delete.
7292 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7293 blocks.
7294 * ada-lang.c (ada_add_block_symbols): Ditto.
7295 * symfile.c (sort_block_syms): Delete.
7296 (sort_symtab_syms): Ditto.
7297 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7298 declarations.
7299 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7300 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7301 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7302 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7303 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7304 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7305 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7306
33c08150
JJ
73072003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7308
8ffd9b1b 7309 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7310 bits to 128.
7311
781a750d
AC
73122003-06-11 Andrew Cagney <cagney@redhat.com>
7313
7314 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7315 REGISTER_CONVERTIBLE.
7316 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7317 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7318 * gdbarch.h, gdbarch.c: Re-generate.
7319 * arch-utils.h (deprecated_register_convertible_not): Rename
7320 generic_register_convertible_not.
7321 * arch-utils.c (deprecated_register_convertible_not): Rename
7322 generic_register_convertible.
7323 (legacy_convert_register_p, legacy_register_to_value): Update.
7324 * sh-tdep.c (sh64_push_arguments): Update.
7325 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7326 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7327 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7328 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7329 * arch-utils.c (legacy_value_to_register): Update.
7330 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7331 (rs6000_register_convert_to_raw): Make parameter "from" const.
7332 * mips-tdep.c (mips_gdbarch_init): Update.
7333 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7334 * infcmd.c (default_print_registers_info): Update.
7335 * ia64-tdep.c (ia64_gdbarch_init): Update.
7336 (ia64_register_convert_to_raw): Make parameter "from" const.
7337 * i386-tdep.c (i386_gdbarch_init): Update.
7338 (i386_register_convert_to_raw): Update.
7339
cd90e54f
AC
73402003-06-11 Andrew Cagney <cagney@redhat.com>
7341
7342 * remote-fileio.c: Include "remote-fileio.h".
7343 * Makefile.in (remote-fileio.o): Update dependencies.
7344 (remote_fileio_h): Fix typo.
7345
a78f21af
AC
73462003-06-11 Andrew Cagney <cagney@redhat.com>
7347
7348 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7349 (xstormy16_save_dummy_frame_tos): Make static.
7350 (_initialize_xstormy16_tdep): Add declaration.
7351 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7352 * v850-tdep.c: Make local functions static.
7353 (_initialize_v850_tdep): Add declaration.
7354 * sparc-tdep.c: Make local functions static.
7355 (_initialize_sparc_tdep): Add declaration.
7356 * sh-tdep.c: Make local functions static.
7357 (_initialize_sh_tdep): Add declaration.
7358 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7359 * s390-tdep.c: Make local functions static.
7360 (_initialize_s390_tdep): Add declaration.
7361 * dbxread.c (find_stab_function_addr): Make static.
7362 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7363 * ocd.c (_initialize_remote_ocd): Add declaration.
7364 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7365 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7366 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7367 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7368 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7369 * remote-array.c (_initialize_array): Add declaration.
7370 (_initialize_remote_monitors): Add declaration.
7371 * remote-mips.c: Make local functions static.
7372 (_initialize_remote_mips): Add declaration.
7373 * mcore-tdep.c: Make all local functions static.
7374 (_initialize_mcore_tdep): Add declaration.
7375 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7376 * abug-rom.c (_initialize_abug_rom): Add declaration.
7377 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7378 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7379 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7380 * remote-est.c (_initialize_est): Add declaration.
7381 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7382 (m68hc11_call_dummy_address): Make static.
7383 * ia64-tdep.c: Make local functions static.
7384 (_initialize_ia64_tdep): Add declaration.
7385 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7386 * monitor.c (monitor_wait_filter): Make static.
7387 (_initialize_remote_monitors): Add declaration.
7388 * remote-hms.c (_initialize_remote_hms): Add declaration.
7389 * remote-e7000.c (fetch_regs_from_dump): Make static.
7390 (expect_n): Make static.
7391 (_initialize_remote_e7000): Add declaration.
7392 * ser-e7kpc.c: Always include "defs.h".
7393 (_initialize_ser_e7000pc): Add declaration.
7394 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7395 * cris-tdep.c: Make all but one function static.
7396 (_initialize_cris_tdep): Add declaration.
7397 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7398 * solib.c (update_solib_list): Make static.
7399 (_initialize_solib): Add declaration.
7400 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7401 (_initialize_avr_tdep): Add declaration.
7402 * remote-rdi.c (voiddummy): Make static.
7403 (_initialize_remote_rdi): Add declaration.
7404 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7405 * remote-rdp.c (send_rdp): Make static.
7406 (_initialize_remote_rdp): Add declaration.
7407 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7408
cbcdb1f5
CV
74092003-06-11 Corinna Vinschen <vinschen@redhat.com>
7410
7411 * remote-fileio.c: Make ari happy.
7412
a191ea8d
JB
74132003-06-10 J. Brobecker <brobecker@gnat.com>
7414
7415 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7416 fetching the trailing bytes of the buffer we are about to write.
7417
0ef75e11
AC
74182003-06-10 Andrew Cagney <cagney@redhat.com>
7419
7420 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7421 * Makefile.in (remote-fileio.o): Update dependencies.
7422 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7423 include <setjmp.h>, or <sys/types.h> conditional on USG.
7424 (remote_fio_jmp_buf): Delete global variable.
7425
449092f6 74262003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7427 Martin M. Hunt <hunt@redhat.com>
449092f6 7428
559fa028
AC
7429 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7430 (SFILES): Add remote-fileio.c.
7431 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7432 dependencies for building remote.o.
449092f6
CV
7433 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7434 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7435 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7436 static storage class.
7437 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7438 'F' packet.
7439 (_initialize_remote): Call initialize_remote_fileio().
7440 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7441 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7442 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7443 (captured_main): Initialize new ui_files.
7444 * ui-file.c: Add read and fgets input functions.
7445 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7446 (null_file_read): New function.
7447 (ui_file_read): New function.
7448 (set_ui_file_read): New function.
7449 (stdio_file_read): New function.
7450 * ui-file.h: New type ui_file_read_ftype.
7451 (set_ui_file_read): Declare.
7452 (ui_file_read): Declare.
7453
248de703
AC
74542003-06-09 Andrew Cagney <cagney@redhat.com>
7455
7456 * frame.h (deprecated_unwind_get_saved_register): Rename
7457 generic_unwind_get_saved_register, update comments.
7458 * mips-tdep.c (mips_get_saved_register): Update.
7459 * frame.c (deprecated_unwind_get_saved_register): Update.
7460
0ed8aa57
AC
74612003-06-09 Andrew Cagney <cagney@redhat.com>
7462
7463 * vax-tdep.c (vax_frame_locals_address): Delete function.
7464 (vax_gdbarch_init): Do not set frame_locals_address.
7465 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7466 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7467 * s390-tdep.c (s390_frame_args_address): Delete function.
7468 (s390_gdbarch_init): Do not set frame_args_address or
7469 frame_locals_address.
7470 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7471 (ns32k_gdbarch_init): Do not set frame_locals_address.
7472 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7473 (hppa_frame_locals_address): Delete function.
7474 (hppa_gdbarch_init): Do not set frame_args_address, or
7475 frame_locals_address.
7476 * arm-tdep.c (arm_frame_args_address): Delete.
7477 (arm_frame_locals_address): Delete.
7478 (arm_gdbarch_init): Do not set frame_args_address, or
7479 frame_locals_address.
7480
983a287a
AC
74812003-06-09 Andrew Cagney <cagney@redhat.com>
7482
7483 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7484 * gdbarch.h, gdbarch.c: Re-generate.
7485 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7486 * arch-utils.c (frame_num_args_unknown): Delete function.
7487 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7488 (frame_info): Use FRAME_NUM_ARGS_P.
7489 * arm-tdep.c (arm_frame_num_args): Delete function.
7490 (arm_gdbarch_init): Do not set frame_num_args.
7491 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7492 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7493 (hppa_gdbarch_init): Do not set frame_num_args.
7494 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7496 frame_num_args to default frame_num_args_unknown.
7497 * v850-tdep.c (v850_gdbarch_init): Ditto.
7498 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7499 * sh-tdep.c (sh_gdbarch_init): Ditto.
7500 * s390-tdep.c (s390_gdbarch_init): Ditto.
7501 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7502 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7503 * mips-tdep.c (mips_gdbarch_init): Ditto.
7504 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7505 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7507 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7508 * i386-tdep.c (i386_gdbarch_init): Ditto.
7509 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7510 * frv-tdep.c (frv_gdbarch_init): Ditto.
7511 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7512 * cris-tdep.c (cris_gdbarch_init): Ditto.
7513 * avr-tdep.c (avr_gdbarch_init): Ditto.
7514 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7515
8d3b0994
AC
75162003-06-09 Andrew Cagney <cagney@redhat.com>
7517
7518 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7519 (print_frame_args): Moved to "stack.c".
7520 * stack.c: Include "gdb_assert.h".
7521 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7522 (print_frame_args): Moved from "printcmd.c".
7523 * frame.h (print_frame_args): Delete declaration.
7524 * Makefile.in (stack.o): Update dependencies.
7525
25e3a86b
AC
75262003-06-08 Andrew Cagney <cagney@redhat.com>
7527
7528 * frame.c (get_prev_frame): Remove reference to
7529 frame_args_address_correct in comments.
7530 * frame-base.c (default_frame_args_address): Delete code
7531 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7532 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7533 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7534 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7535 (vax_frame_args_address_correct): Delete declaration.
7536
a9e5fdc2
AC
75372003-06-08 Andrew Cagney <cagney@redhat.com>
7538
7539 * gdbarch.sh (UNWIND_SP): Add.
7540 * gdbarch.h, gdbarch.c: Re-generate.
7541 * frame.c (frame_sp_unwind): New function.
7542 (get_frame_sp): New function.
7543 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7544 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7545 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7546 value.
7547 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7548 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7549
8983bd83
AC
75502003-06-08 Andrew Cagney <cagney@redhat.com>
7551
7fec2c59
AC
7552 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7553 REMOTE_BREAKPOINT.
7554 * remote.c: Update.
7555 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7556 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7557 * config/m68k/tm-sun3.h: Update.
7558 * config/m68k/tm-m68klynx.h: Update.
7559 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7560
8983bd83
AC
7561 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7562 trad_frame". Update comments.
7563 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7564 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7565 (trad_frame_register_value, trad_frame_prev_register): Update.
7566
b9362cc7
AC
75672003-06-08 Andrew Cagney <cagney@redhat.com>
7568
7569 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7570 from GCC's acinclude.m4.
7571 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7572 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7573 * main.c (error_init): Delete declaration.
7574 * defs.h (error_init): Declare.
7575 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7576 (rs6000_convert_from_func_ptr_addr): Make static.
7577 (_initialize_rs6000_tdep): Add declaration.
7578 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7579 (show_commands, set_verbose, show_history): Delete declaration.
7580 * top.h (set_verbose): Add declaration.
7581 (show_history, set_history, show_commands): Add declaration.
7582 (do_restore_instream_cleanup): Add declaration.
7583 * objc-lang.c (specialcmp): Make static.
7584 (print_object_command): Make static.
7585 (find_objc_msgsend): Make static.
7586 (find_objc_msgcall_submethod_helper): Make static.
7587 (find_objc_msgcall_submethod): Make static.
7588 (_initialize_objc_language): Add declaration.
7589 (find_implementation_from_class): Make static.
7590 (find_implementation): Make static.
7591 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7592 * objc-lang.h (lookup_struct_typedef): Add declaration.
7593 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7594 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7595 (do_restore_user_call_depth): Make static.
7596 (do_restore_instream_cleanup): Delete declaration.
7597 (dont_repeat): Delete declaration.
7598 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7599 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7600 * reggroups.c (_initialize_reggroup): Add declaration.
7601 * cp-support.c (_initialize_cp_support): Add declaration.
7602 * cp-abi.c (_initialize_cp_abi): Add declaration.
7603 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7604 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7605 (_initialize_gnu_v3_abi): Add declaration.
7606 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7607 (_initialize_gnu_v2_abi): Add declaration.
7608 * frame-base.c (_initialize_frame_base): Add declaration.
7609 * doublest.c (floatformat_from_length): Make static.
7610 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7611 * frame.c (create_sentinel_frame): Make static.
7612 (_initialize_frame): Add declaration.
7613 * top.c (do_catch_errors): Make static.
7614 (gdb_rl_operate_and_get_next_completion): Make static.
7615 * typeprint.c: Include "typeprint.h".
7616 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7617 (sentinel_frame_this_id): Make static.
7618 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7619 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7620 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7621 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7622 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7623 * maint.c (maintenance_print_architecture): Make static.
7624 * signals/signals.c (_initialize_signals): Add declaration.
7625 * std-regs.c (_initialize_frame_reg): Add declaration.
7626 * jv-exp.y (push_variable): ISO C definition.
7627 (push_qualified_expression_name): Ditto.
7628 * memattr.c (_initialize_mem): Add declaration.
7629 * remote.c (remote_check_watch_resources): Make static.
7630 (remote_stopped_by_watchpoint): Make static.
7631 (remote_stopped_data_address): Make static.
7632 * d10v-tdep.c (nr_dmap_regs): Make static.
7633 (a0_regnum): Make static.
7634 (d10v_frame_unwind_cache): Make static.
7635 (d10v_frame_p): Make static.
7636 * osabi.c (show_osabi): Make static.
7637 (_initialize_gdb_osabi): Add extern declaration.
7638 * gdbtypes.c (make_qualified_type): Make static.
7639 (safe_parse_type): Make static.
7640 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7641 * macrotab.c (macro_bcache_free): Make static.
7642 * interps.c (interp_set_quiet): Make static.
7643 (interpreter_exec_cmd): Make static.
7644 * stack.h (select_frame_command): New file.
7645 * stack.c: Include "stack.h".
7646 (select_frame_command_wrapper): Delete function.
7647 (select_frame_command): Make global.
7648 * infcall.c: Include "infcall.h".
7649 * linespec.c: Include "linespec.h".
7650 * symfile.c (sections_overlap): Make static.
7651 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7652 * charset.c (_initialize_charset): Add missing prototype.
7653 * regcache.c (init_legacy_regcache_descr): Make static.
7654 (do_regcache_xfree): Make static.
7655 (regcache_xfer_part): Make static.
7656 (_initialize_regcache): Add missing prototype.
7657 * breakpoint.c (parse_breakpoint_sals): Make static.
7658 (breakpoint_sals_to_pc): Make static.
7659 * interps.h (clear_interpreter_hooks): ISO C declaration.
7660 * Makefile.in (stack_h): Define.
7661 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7662 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7663
a0f267c7
AC
76642003-06-08 Andrew Cagney <cagney@redhat.com>
7665
7666 * Makefile.in (d10v-tdep.o): Update dependencies.
7667 (SFILES): Add trad-frame.c.
7668 (trad_frame_h): Define.
7669 (COMMON_OBS): Add trad-frame.o.
7670 (trad-frame.o): Specify dependencies.
7671 * d10v-tdep.c: Include "trad-frame.h".
7672 (saved_regs_unwinder): Delete function.
7673 (d10v_frame_prev_register): Use trad_frame_prev_register.
7674 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7675 trad_frame", delete "regs" and "prev_sp".
7676 (prologue_find_regs): Use trad-frame.
7677 * trad-frame.h, trad-frame.c: New files.
7678
4538b4f4
MK
76792003-06-08 Mark Kettenis <kettenis@gnu.org>
7680
7681 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7682
a0273b2f
AF
76832003-06-07 Adam Fedor <fedor@gnu.org>
7684
7685 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7686 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7687 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7688 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7689 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7690 Use it.
7691
3a6c3343
AC
76922003-06-07 Andrew Cagney <cagney@redhat.com>
7693
7694 * symfile.h: Re-indent, clean up comments.
7695
b46e02f6
AC
76962003-06-07 Andrew Cagney <cagney@redhat.com>
7697
7698 * inferior.h (deprecated_write_sp): Replace
7699 generic_target_write_sp.
7700 * regcache.c (deprecated_write_sp): Replace
7701 generic_target_write_sp.
7702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7703 * vax-tdep.c (vax_gdbarch_init): Update.
7704 * v850-tdep.c (v850_gdbarch_init): Update.
7705 * sparc-tdep.c (sparc_gdbarch_init): Update.
7706 * sh-tdep.c (sh_gdbarch_init): Update.
7707 * s390-tdep.c (s390_gdbarch_init): Update.
7708 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7709 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7710 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7711 * mcore-tdep.c (mcore_gdbarch_init): Update.
7712 * m68k-tdep.c (m68k_gdbarch_init): Update.
7713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7714 * ia64-tdep.c (ia64_gdbarch_init): Update.
7715 * h8300-tdep.c (h8300_gdbarch_init): Update.
7716 * frv-tdep.c (frv_gdbarch_init): Update.
7717 * cris-tdep.c (cris_gdbarch_init): Update.
7718 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7719
a42e117c
AC
77202003-06-07 Andrew Cagney <cagney@redhat.com>
7721
7722 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7723 Assert that PC_REGNUM is valid.
7724 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7725
bd1ce8ba
AC
77262003-06-07 Andrew Cagney <cagney@redhat.com>
7727
7728 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7729 * gdbarch.h, gdbarch.c: Regenerate.
7730 * mn10300-tdep.c: Include "gdb_assert.h".
7731 (mn10300_read_fp): New function.
7732 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7733 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7734 * ia64-tdep.c: Include "gdb_assert.h".
7735 (ia64_read_fp): New function.
7736 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7737 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7738 * regcache.c (generic_target_read_sp): Delete function.
7739 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7740 * inferior.h (generic_target_read_sp): Delete declaration.
7741 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7742 generic_target_read_sp.
7743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7744 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7745 * sh-tdep.c (sh_gdbarch_init): Ditto.
7746 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7747 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7748
ec5cbaec
AC
77492003-06-07 Andrew Cagney <cagney@redhat.com>
7750
7751 * gdbarch.sh: Comment each field of startup_gdbarch.
7752 * gdbarch.h, gdbarch.c: Re-generate.
7753
cde9ea48
AC
77542003-06-07 Andrew Cagney <cagney@redhat.com>
7755
7756 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7757 * gdbarch.h, gdbarch.c: Re-generate.
7758 * regcache.c: Update comments on read_pc et.al.
7759 (generic_target_read_pc): Delete function.
7760 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7761 * inferior.h (generic_target_read_pc): Delete declaration.
7762 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7763 generic_target_read_pc.
7764 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7765 * sh-tdep.c (sh_gdbarch_init): Ditto.
7766 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7768
9a90a780
AC
77692003-06-07 Andrew Cagney <cagney@redhat.com>
7770
7771 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7772 "index" with "special_local_sect". Use strcmp instead of STREQ.
7773 Append period to coments.
7774
a39a16c4
MM
77752003-06-06 Mark Mitchell <mark@codesourcery.com>
7776
7777 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7778 (elfstab_offset_sections): Likewise.
7779 * gdb-stabs.h (stab_section_info): Likewise.
7780 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7781 * objfiles.c (objfile_relocate): Likewise.
7782 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7783 * remote.c (get_offsets): Likewise.
7784 (remote_cisco_objfile_relocate): Likewise.
7785 * somread.c (som_symfile_offsets): Likewise.
7786 * symfile.c (alloc_section_addr_info): New function.
7787 (build_section_addr_info_from_section_tab): Use it.
7788 (free_section_addr_info): Adjust.
7789 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7790 (syms_from_objfile): Allocate local_addr dynamically.
7791 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7792 dynamically.
7793 (add_symbol_file_command): Allocate sect_opts dynamically.
7794 (reread_symbols): Avoid use of SECT_OFF_MAX.
7795 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7796 (alloc_section_addr_info): Declare it.
7797 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7798 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7799 dynamically.
7800 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7801
20c6c2f8
AC
78022003-06-06 Andrew Cagney <cagney@redhat.com>
7803
7804 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7805 (d10v_frame_unwind_cache): Do not set "return_pc".
7806
884a26c8
MS
78072003-06-06 Michael Snyder <msnyder@redhat.com>
7808
7809 * h8300-tdep.c: Make tidy (long lines).
7810
088ce440
ML
78112003-06-06 Michal Ludvig <mludvig@suse.cz>
7812
8ffd9b1b 7813 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7814 to regcache_collect().
7815
7d773d96
JB
78162003-06-05 J. Brobecker <brobecker@gnat.com>
7817
7818 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7819 pc_in_sigtramp multiarch method.
7820 (hppa_hpux_som_init_abi): Use it.
7821 (hppa_hpux_elf_init_abi): Likewise.
7822 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7823 macro has been multiarched.
7824 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7825 macro here, as hppa64 isn't multiarched yet.
7826
1df6926e
AC
78272003-06-05 Andrew Cagney <cagney@redhat.com>
7828
7829 * Makefile.in (value_h): Add $(frame_h).
7830 * value.h: Include "frame.h".
7831 (struct value): Replace "frame_addr" with "frame_id".
7832 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7833 * values.c (allocate_value): Use VALUE_FRAME_ID.
7834 (value_copy): Use VALUE_FRAME_ID.
7835 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7836 * valops.c (value_assign): Update. Use frame_find_by_id.
7837
6b53acc6
ML
78382003-06-05 Michal Ludvig <mludvig@suse.cz>
7839
7840 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7841 in each pass.
7842
4d9850d3
JJ
78432003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7844
7845 * thread-db.c (check_event): For create/death event breakpoints,
7846 loop through all messages to ensure that we read the message
7847 corresponding to the breakpoint we are at.
7848
8efca6ba
MS
78492003-06-04 Michael Snyder <msnyder@redhat.com>
7850
7851 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7852
0912c7f2
MK
78532003-06-04 Mark Kettenis <kettenis@gnu.org>
7854
7855 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7856 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7857 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7858 when handling .eh_frame sections.
7859
4e370325
JB
78602003-06-04 J. Brobecker <brobecker@gnat.com>
7861
7862 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7863 prepare_to_proceed procedure instead of the hppa-specific one.
7864 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7865
b757528f 78662003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7867
b757528f
JJ
7868 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7869 * config.in: Regenerated.
7870 * configure.in: Add test for syscall function and check for
7871 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7872 * configure: Regenerated.
7873 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7874 <sys/syscall.h>.
7875 (kill_lwp): New function that uses tkill syscall or
7876 uses kill, depending on whether threading model is nptl or not.
7877 All callers of kill() changed to use kill_lwp().
7878 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7879 see if all threads have already exited in the nptl model.
7880 (stop_and_resume_callback): New callback function used by the
7881 lin_lwp_wait thread exit handling code.
7882 (stop_wait_callback): Check for threads already having exited and
7883 delete such threads fromt the lwp list when discovered.
7884 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7885
b757528f
JJ
7886 Roland McGrath <roland@redhat.com>
7887 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7888 nptl libthread_db.
7889
087779b1
RH
78902003-06-03 Richard Henderson <rth@redhat.com>
7891
b21fd293
RH
7892 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7893 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7894 (alpha_sigtramp_frame_prev_register): Likewise.
7895 (alpha_heuristic_frame_prev_register): Likewise.
7896 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7897
8ffd9b1b 7898 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7899 alpha-specific register id names.
7900 (alpha_mdebug_frame_unwind_cache): Likewise.
7901 (alpha_mdebug_frame_prev_register): Likewise.
7902
baa490c4
RH
79032003-06-03 Richard Henderson <rth@redhat.com>
7904
7905 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7906 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7907 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7908 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7909 unwind routines.
7910 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7911 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7912 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7913
7914 * alpha-linux-tdep.c: Remove unnecessary includes.
7915 * Makefile.in (alpha-linux-tdep.o): Update.
7916
79172003-06-03 Richard Henderson <rth@redhat.com>
7918
7919 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7920 (alphabsd_fill_fpreg): Likewise.
7921
f534e522
JB
79222003-06-03 J. Brobecker <brobecker@gnat.com>
7923
7924 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7925 references to struct frame_info fields by calls to the equivalent
7926 accessors. Necessary now that frame_info is opaque.
7927
4035536b
JB
79282003-06-03 J. Brobecker <brobecker@gnat.com>
7929
7930 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7931 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7932 structure, field no longer exists.
7933
0bd79c5c
JB
79342003-06-03 J. Brobecker <brobecker@gnat.com>
7935
7936 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7937 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7938
37bb6d9f
JB
79392003-06-03 J. Brobecker <brobecker@gnat.com>
7940
7941 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7942 references to struct frame_info fields by calls to the equivalent
7943 accessors. Necessary now that frame_info is opaque.
7944
852ee05c
JB
79452003-06-03 J. Brobecker <brobecker@gnat.com>
7946
7947 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7948 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7949 structure, field no longer exists.
7950
7d58c67d
TR
79512003-06-03 Theodore A. Roth <troth@openavr.org>
7952
8ffd9b1b 7953 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7954 accumulation of the size of all registers instead of blindly using
7955 DEPRECATED_REGISTER_BYTES.
7956
0a48e7e8
MS
79572003-06-03 Michael Snyder <msnyder@redhat.com>
7958
7959 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7960 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7961 for h8300sx.
7962
9798ab0d
JB
79632003-06-03 J. Brobecker <brobecker@gnat.com>
7964
7965 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7966 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7967
00b037e2
AC
79682003-06-03 Andrew Cagney <cagney@redhat.com>
7969
7970 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7971 (sparc_convert_to_raw): Delete function.
7972 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7973 register_convert_to_virtual.
7974
043b2f77
JJ
79752003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7976
7977 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7978 layer if not dealing with a statically-linked threaded program.
7979
f43caff8
KW
79802003-06-03 Kris Warkentin <kewarken@qnx.com>
7981
7982 * solib.c (solib_open): Update comment to reflect actual search order.
7983
ae1e7417
AC
79842003-06-03 Andrew Cagney <cagney@redhat.com>
7985
7986 * frame.c (get_frame_memory_signed): New function.
7987 (get_frame_memory, get_frame_memory_unsigned): New function.
7988 (get_frame_arch): New function.
7989 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7990 (get_frame_memory, get_frame_unsigned_memory): Declare.
7991 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7992 get_frame_memory_unsigned and get_frame_arch.
7993 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7994
cb123844
RG
79952003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7996
7997 * MAINTAINERS (write after approval): Add myself.
7998
1bb792e9
JB
79992003-06-03 Jim Blandy <jimb@redhat.com>
8000
8001 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
8002 elements of gregset_t are 64 bits each, but access registers
8003 are still 32 bits, so they're packed two per gregset_t
8004 element. Unpack/pack them properly.
8005
aee8d8ba
DC
80062003-06-02 David Carlton <carlton@bactrian.org>
8007
8008 * linespec.c (find_methods): Break out code into
8009 add_matching_methods and add_constructors.
8010 (add_matching_methods): New.
8011 (add_constructors): Ditto.
8012
bf7488d2
AC
80132003-06-02 Andrew Cagney <cagney@redhat.com>
8014
bf7488d2
AC
8015 * sparc-tdep.c (sparc_print_registers): Delete call to
8016 REGISTER_CONVERTIBLE.
8017 (sparc_gdbarch_init): Do not set register_convertible.
8018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8019 * frv-tdep.c (frv_gdbarch_init): Ditto.
8020 * cris-tdep.c (cris_gdbarch_init): Ditto.
8021
adedef68
EZ
80222003-06-02 Elena Zannoni <ezannoni@redhat.com>
8023
8ffd9b1b 8024 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
8025 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
8026 (syms_from_objfile): Ditto.
8027
650fcc91
AS
80282003-06-03 Andreas Schwab <schwab@suse.de>
8029
8030 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
8031 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
8032
df4a182b
RH
80332003-06-02 Richard Henderson <rth@redhat.com>
8034
8035 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
8036 a member of all_reggroup.
8037
c483c494
RH
80382003-06-02 Richard Henderson <rth@redhat.com>
8039
8040 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
8041 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8042 (alpha_lds, alpha_sts): New.
8043 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 8044 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
8045 restructure and fail for type sizes other than 4 or 8.
8046 (alpha_value_to_register): Similarly.
8047 (alpha_extract_return_value): Use alpha_sts.
8048 (alpha_store_return_value): Use alpha_lds.
8049 (alpha_gdbarch_init): Update hooks.
8050
b38b6be2
RH
80512003-06-02 Richard Henderson <rth@redhat.com>
8052
8053 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8054 regnum identifiers.
8055 (alpha_sigtramp_register_address): Likewise.
8056
98a8e1e5
RH
80572003-06-02 Richard Henderson <rth@redhat.com>
8058
8059 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8060 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8061 * alpha-tdep.h: Declare them.
8062
8063 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8064 Remove zerobuf. Don't error on UNIQUE.
8065 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8066 (ALPHA_REGSET_UNIQUE): Provide default.
8067 (supply_gregset): Use alpha_supply_int_regs.
8068 (fill_gregset): Use alpha_fill_int_regs.
8069 (supply_fpregset): Use alpha_supply_fp_regs.
8070 (fill_fpregset): Use alpha_fill_fp_regs.
8071 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8072 (alphabsd_supply_reg): Use alpha_supply_int_regs.
8073 (alphabsd_fill_reg): Use alpha_fill_int_regs.
8074 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8075 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8076 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8077
67dfac52
RH
80782003-06-02 Richard Henderson <rth@redhat.com>
8079
f75d70cc
RH
8080 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8081
67dfac52
RH
8082 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8083 (alpha_store_return_value): Likewise.
8084
0cf566ec
DC
80852003-06-02 David Carlton <carlton@math.stanford.edu>
8086
8087 * block.c (contained_in): Add 'const' to arguments.
8088 (block_function): Ditto.
8089 * block.h: Update declarations for block_function and
8090 contained_in.
8091
cdef89d0
DC
80922003-06-02 David Carlton <carlton@math.stanford.edu>
8093
8094 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8095 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8096 * p-valprint.c (pascal_val_print): Ditto.
8097 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8098
72667056
RH
80992003-06-02 Richard Henderson <rth@redhat.com>
8100
98a8e1e5
RH
8101 * alpha-tdep.c (alpha_push_dummy_call): Use
8102 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 8103
8ffd9b1b 8104 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
8105 sign-extension of 32-bit values.
8106 (alpha_store_return_value): Similarly.
0ede8eca 8107
98a8e1e5
RH
8108 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8109 (alpha_extract_return_value): Likewise.
8110 (alpha_store_return_value): Likewise.
7b5e1cb3 8111
98a8e1e5
RH
8112 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8113 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 8114
98a8e1e5
RH
8115 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8116 (alpha_extract_struct_value_address): Likewise.
8117 (alpha_store_return_value): Likewise.
8118 (alpha_store_struct_return): Remove.
8119 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 8120
98a8e1e5
RH
8121 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8122 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8123 macros where appropriate.
8124 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8125 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 8126
98a8e1e5
RH
8127 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8128 for SP, GP; void_func_ptr for PC; non-language-specific types
8129 for all others.
8130 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 8131
6dd77b81
RH
81322003-06-02 Richard Henderson <rth@redhat.com>
8133
8134 * top.h (lim_at_start): Declare.
8135 * main.c (captured_main): Set it.
8136 * top.c (lim_at_start): Define.
8137 (command_loop): Use it instead of &environ.
8138 * event-top.c (command_handler): Likewise.
8139
f4dbdb54
JT
81402003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8141
8142 * mipsnbsd-tdep.c: Update copyright years.
8143 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8144
8f285956
RH
81452003-06-01 Richard Henderson <rth@redhat.com>
8146
98a8e1e5
RH
8147 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8148 (alpha-linux-tdep.o): Update dependencies.
8149 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8150 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 8151
615967cb
RH
81522003-06-01 Richard Henderson <rth@redhat.com>
8153
98a8e1e5
RH
8154 * alpha-tdep.c (alpha_register_reggroup_p): New.
8155 (alpha_gdbarch_init): Register it.
615967cb 8156
b59661bd
AC
81572003-06-02 Andrew Cagney <cagney@redhat.com>
8158
8159 * dwarfread.c: Eliminate "register"
8160 (decode_die_type): Eliminate assignment within "if".
8161 (struct_type, decode_array_element_type): Ditto.
8162 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8163 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8164 (decode_modified_type, completedieinfo): Ditto.
8165 * block.c: Eliminate "register".
8166 (blockvector_for_pc_sect): Eliminate assignment within "if".
8167 * cp-support.h (struct symbol): Opaque declaration.
8168 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8169
5ef165c2
RH
81702003-06-01 Richard Henderson <rth@redhat.com>
8171
98a8e1e5
RH
8172 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8173 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 8174
143985b7
AF
81752003-06-01 Adam Fedor <fedor@gnu.org>
8176
8177 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8178 * gdbarch.[ch]: Regenerate.
8179 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8180 (hppa_gdbarch_init): Set it in the gdbarch vector.
8181 * i386-tdep.c (i386_fetch_pointer_argument): New
8182 (i386_gdbarch_init): Set it into gdbarch.
8183 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8184 (rs6000_gdbarch_init): Set it in gdbarch.
8185 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8186 (sparc_gdbarch_init): Set it in gdbarch.
8187
ae0167b9
AC
81882003-06-01 Andrew Cagney <cagney@redhat.com>
8189
7c0b4a20
AC
8190 * defs.h (extract_address): Delete declaration.
8191 * findvar.c (extract_address): Delete function.
8192 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8193 extract_address with the inline equivalent,
8194 extract_unsigned_integer.
8195 (xstormy16_extract_struct_value_address): Ditto.
8196 (xstormy16_pointer_to_address): Ditto.
8197 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8198 * v850-tdep.c (v850_push_arguments): Ditto.
8199 (v850_extract_return_value): Ditto.
8200 (v850_extract_struct_value_address): Ditto.
8201 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8202 (sparcnbsd_get_longjmp_target_64): Ditto.
8203 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8204 (get_longjmp_target): Ditto.
8205 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8206 (sh64_extract_struct_value_address): Ditto.
8207 (sh_push_arguments): Ditto.
8208 (sh64_push_arguments): Ditto.
8209 * remote-vxsparc.c (vx_read_register): Ditto.
8210 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8211 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8212 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8213 * mipsv4-nat.c (get_longjmp_target): Ditto.
8214 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8215 * mips-nat.c (get_longjmp_target): Ditto.
8216 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8217 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8218 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8219 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8220 * irix5-nat.c (get_longjmp_target): Ditto.
8221 * irix4-nat.c (get_longjmp_target): Ditto.
8222 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8223 (ia64_push_arguments): Ditto.
8224 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8225 * h8300-tdep.c (h8300_push_arguments): Ditto.
8226 (h8300_store_return_value): Ditto.
8227 (h8300_extract_struct_value_address): Ditto.
8228 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8229 (frv_push_arguments): Ditto.
8230 * avr-tdep.c (avr_pointer_to_address): Ditto.
8231 (avr_push_arguments): Ditto.
8232 * arm-tdep.c (arm_push_dummy_call): Ditto.
8233 (arm_get_longjmp_target): Ditto.
8234 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8235 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8236 (alpha_get_longjmp_target): Ditto.
8237
ae0167b9
AC
8238 * solib-irix.c (extract_mips_address): Inline extract_address,
8239 replacing it with extract_signed_integer.
8240 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8241 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8242 (first_link_map_member, open_symbol_file_object): Ditto.
8243 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8244 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8245 (LM_NEXT, LM_NAME): Ditto.
8246
44d88583
RH
82472003-06-01 Richard Henderson <rth@redhat.com>
8248
98a8e1e5
RH
8249 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8250 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8251 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8252 (alpha_cannot_store_register): Likewise.
8253 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8254 * alpha-nat.c (supply_gregset): Likewise.
8255 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8256
310e9b6a
AC
82572003-06-01 Andrew Cagney <cagney@redhat.com>
8258
8259 * infcall.c (call_function_by_hand): Update comment on
8260 DEPRECATED_DUMMY_WRITE_SP.
8261
8262 * mips-tdep.c (mips_gdbarch_init): Do not set
8263 deprecated_dummy_write_sp.
8264 (mips_eabi_push_dummy_call): Set the SP register.
8265 (mips_o64_push_dummy_call): Set the SP register.
8266 (mips_o32_push_dummy_call): Set the SP register.
8267 (mips_n32n64_push_dummy_call): Set the SP register.
8268
5ab84872
RH
82692003-06-01 Richard Henderson <rth@redhat.com>
8270
98a8e1e5
RH
8271 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8272 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8273 (supply_gregset): Likewise.
8274 * alpha-tdep.c (alpha_store_return_value): Likewise.
8275 (alpha_get_longjmp_target): Likewise.
8276 (alpha_register_name): Constify array.
8277 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8278 deprecated_register_size, deprecated_register_bytes,
8279 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8280 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8281 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8282
09cc52fd
RH
82832003-06-01 Richard Henderson <rth@redhat.com>
8284
8285 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8286 from arg_reg_buffer to regcache to avoid double conversion.
8287
c7f16359
MK
82882003-06-01 Mark Kettenis <kettenis@gnu.org>
8289
8290 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8291 SP_REGNUM.
8292 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8293 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8294
7131cb6e
RH
82952003-06-01 Richard Henderson <rth@redhat.com>
8296
98a8e1e5
RH
8297 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8298 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8299
f3e0f90b
RH
83002003-06-01 Richard Henderson <rth@redhat.com>
8301
98a8e1e5
RH
8302 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8303 not overlapping PC_REGNUM.
f3e0f90b 8304
c88e30c0
RH
83052003-06-01 Richard Henderson <rth@redhat.com>
8306
98a8e1e5
RH
8307 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8308 alpha_push_arguments. Don't dump argument register data to
8309 the target stack. Fix float and 128-bit long double semantics.
8310 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8311 (alpha_fix_call_dummy): Remove.
8312 (alpha_call_dummy_words): Remove.
8313 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8314
f1a559ae
RH
83152003-06-01 Richard Henderson <rth@redhat.com>
8316
8317 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8318
5e045346
AC
83192003-06-01 Andrew Cagney <cagney@redhat.com>
8320
95404a3e
AC
8321 * mips-tdep.c (is_mips16_addr): New function.
8322 (make_mips16_addr, unmake_mips16_addr): New functions.
8323 (pc_is_mips16, mips_fetch_instruction): Use.
8324 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8325 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8326 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8327 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8328 TARGET_MIPS.
8329 * config/mips/tm-mips.h: Update copyright.
8330 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8331 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8332 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8333 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8334 (TM_PRINT_INSN_MACH): Delete.
8335 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8336
5e045346
AC
8337 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8338 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8339 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8340 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8341 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8342 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8343 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8344 mips*-*-riscos* and mips*-*-sysv* onto mips.
8345 * config/mips/mips64.mt: New file.
8346 * config/mips/mips.mt: New file.
8347 * config/mips/littlemips.mt: Delete file.
8348 * config/mips/decstation.mt: Delete file.
8349 * config/mips/vr4300el.mt: Delete file.
8350 * config/mips/vr5000el.mt: Delete file.
8351 * config/mips/vr5000.mt: Delete file.
8352 * config/mips/vr4100.mt: Delete file.
8353 * config/mips/vr4xxxel.mt: Delete file.
8354 * config/mips/vr4300.mt: Delete file.
8355 * config/mips/vr4xxx.mt: Delete file.
8356 * config/mips/bigmips.mt: Delete file.
8357 * config/mips/bigmips64.mt: Delete file.
8358 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8359 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8360 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8361 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8362 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8363 "tm-bigmips.h".
8364 * config/mips/tm-irix3.h: Ditto.
8365 * config/mips/tm-mipsv4.h: Ditto.
8366 * config/mips/tm-embed.h: Ditto.
8367 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8368 "tm-bigmips64.h".
8369 * config/mips/tm-vr5000el.h: Delete file.
8370 * config/mips/tm-tx39l.h: Delete file.
8371 * config/mips/tm-vr4300el.h: Delete file.
8372 * config/mips/tm-vr4xxxel.h: Delete file.
8373 * config/mips/tm-vr4300.h: Delete file.
8374 * config/mips/tm-vr4100.h: Delete file.
8375 * config/mips/tm-vr4xxx.h: Delete file.
8376 * config/mips/tm-vr5000.h: Delete file.
8377 * config/mips/tm-embedl64.h: Delete file.
8378 * config/mips/tm-embedl.h: Delete file.
8379 * config/mips/tm-embed64.h: Delete file.
8380 * config/mips/tm-bigmips64.h: Delete file.
8381 * config/mips/tm-bigmips.h: Delete file.
8382
2473a4a9
MK
83832003-06-01 Mark Kettenis <kettenis@gnu.org>
8384
97a5b208
MK
8385 Fix gdb/1216.
8386 * shnbsd-nat.c: Include "sh-tdep.h".
8387
2473a4a9
MK
8388 From Richard Henderson <rth@redhat.com>:
8389 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8390
e0f7ec59
AC
83912003-05-31 Andrew Cagney <cagney@redhat.com>
8392
8393 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8394 forward declaration.
8395 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8396 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8397 (mips_find_saved_regs): Use set_reg_offset.
8398 (mips_frame_init_saved_regs): Delete function.
8399 (mips_pop_frame): Call mips_find_saved_regs instead of
8400 DEPRECATED_FRAME_INIT_SAVED_REGS.
8401
68dcc709
AC
84022003-05-31 Andrew Cagney <cagney@redhat.com>
8403
8404 * mips-tdep.c (mips_gdbarch_init): Do not set
8405 deprecated_max_register_raw_size, register_virtual_size, and
8406 deprecated_max_register_virtual_size.
8407
cfc14b3a
MK
84082003-05-31 Mark Kettenis <kettenis@gnu.org>
8409
6405b0a6
MK
8410 * i386-tdep.c: Include "dwarf2-frame.h".
8411 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8412 * Makefile.in (i386-tdep.o): Update dependencies.
8413
cfc14b3a
MK
8414 * dwarf2-frame.c, dwarf2-frame.h: New files.
8415 * Makefile.in (SFILES): Add dwarf2-frame.c.
8416 (dwarf2_frame_h): Define.
8417 (COMMON_OBS): Add dwarf2-frame.o.
8418 (dwarf2-frame.o): Add dependencies.
8419
6a2751d2
AJ
84202003-05-31 Andreas Jaeger <aj@suse.de>
8421
8422 * x86-64-linux-nat.c: Fix comment.
8423
1c3545ae
MK
84242003-05-31 Mark Kettenis <kettenis@gnu.org>
8425
10f93086
MK
8426 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8427 function signature.
8428
1c3545ae
MK
8429 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8430 have a sigcontext_addr handler.
8431 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8432 sigcontext_addr handler.
8433
e11c53d2
AC
84342003-05-31 Andrew Cagney <cagney@redhat.com>
8435
8436 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8437 (print_fp_register_row): Replace do_fp_register_row.
8438 (mips_print_fp_register): Add "file" and "frame" parameters.
8439 (mips_print_register): Add "file" and "frame" parameters.
8440 (mips_print_registers_info): Replace mips_do_registers_info.
8441 (mips_gdbarch_init): Set print_registers_info instead of
8442 deprecated_do_registers_info.
8443 (mips_read_fp_register_single): Add "frame" parameter.
8444 (mips_read_fp_register_double): Add "frame" parameter.
8445
a3386186
MK
84462003-05-31 Mark Kettenis <kettenis@gnu.org>
8447
70913449
MK
8448 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8449 Fixes a bug where GDB would print the wrong register names for
8450 targets without SSE.
8451
2b5e0749
MK
8452 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8453 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8454 registers.
8455
8456 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8457 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8458 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8459 TDEP->sc_sp_offset.
8460
a3386186
MK
8461 From Michal Ludvig <mludvig@suse.cz>:
8462 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8463 and `sc_num_regs'.
8464 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8465 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8466 I386_ST0_REGNUM): Move here from...
8467 * i386-tdep.c: ... here.
8468 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8469 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8470 registers if possible.
8471 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8472 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8473 Remove variables.
8474 (i386bsd_sc_reg_offset): New variable.
8475 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8476 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8477 TDEP->sc_sp_offset.
8478 (i386fbsd_sc_reg_offset): New variable.
8479 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8480 TDEP->sc_num_regs.
8481 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8482 variables.
8483 (i386fbsd4_sc_reg_offset): New variable.
8484 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8485 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8486 TDEP->sc_sp_offset.
8487 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8488 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8489 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8490 Remove variables.
8491 (i386nbsd_sc_reg_offset): New variable.
8492 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8493 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8494 TDEP->sc_sp_offset.
8495 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8496 Remove variables.
8497 (i386obsd_sc_reg_offset): New variable.
8498 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8499 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8500 TDEP->sc_sp_offset.
8501 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8502 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8503 for frame pointer offset in `struct sigcontext'.
8504
25ab4790
AC
85052003-05-31 Andrew Cagney <cagney@redhat.com>
8506
8507 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8508 architecture methods call_dummy_words, sizeof_call_dummy_words,
8509 push_return_address, store_struct_return, and fix_call_dummy. Set
8510 push_dummy_call instead of deprecated_push_arguments.
8511 (mips_store_struct_return): Delete function.
8512 (mips_fix_call_dummy): Delete function.
8513 (mips_push_return_address): Delete function.
8514 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8515 RA_REGNUM and T9_REGNUM.
8516 (mips_n32n64_push_dummy_call): Ditto for
8517 mips_n32n64_push_arguments.
8518 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8519 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8520
6a65450a
AC
85212003-05-31 Andrew Cagney <cagney@redhat.com>
8522
8523 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8524 "dummy_addr" to "bp_addr".
8525 * infcall.c (call_function_by_hand): Pass "funaddr" to
8526 gdbarch_push_dummy_call.
8527 * gdbarch.h, gdbarch.c: Re-generate.
8528 * i386-tdep.c (i386_push_dummy_call): Update.
8529 * arm-tdep.c (arm_push_dummy_call): Update.
8530 * d10v-tdep.c (d10v_push_dummy_call): Update.
8531
c4f35dd8
MK
85322003-05-31 Mark Kettenis <kettenis@gnu.org>
8533
8534 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8535 variable declarations.
8536 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8537 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8538 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8539 x86_64_init_frame_pc, x86_64_init_frame_pc,
8540 x86_64_function_has_prologue): Remove prototypes.
8541 (X86_64_NUM_GREGS): New define.
8542 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8543 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8544 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8545 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8546 XMM1_REGNUM): Remove defines.
8547 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8548 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8549 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8550 X86_64_XMM1_REGNUM): New defines.
8551 (struct x86_64_register_info): Renamed from `struct
8552 register_info'. Remove `size' member.
8553 (x86_64_register_info_table): Remove variable.
8554 (x86_64_register_info): New variable.
8555 (X86_64_NUM_REGS): New define.
8556 (X86_64_NUM_GREGS): Remove define.
8557 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8558 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8559 Remove variables.
8560 (x86_54_dwarf2_reg_to_regnum): Remove function.
8561 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8562 (x86_64_dwarf_reg_to_regnum): New function.
8563 (x86_64_register_name): Rewrite.
8564 (x86_64_register_raw_size): Remove function.
8565 (x86_64_register_byte_table): Remove variable.
8566 (x86_64_register_byte): Remove function.
8567 (x86_64_register_virtual_type): Remove function.
8568 (x86_64_register_type): New function.
8569 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8570 x86_64_register_convert_to_raw): Remove functions.
8571 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8572 (x86_64_use_struct_convention): Make static. Adjust for renamed
8573 defines.
8574 (x86_64_frame_init_saved_regs): Remove function.
8575 (x86_64_push_arguments): Make static. Change to accept a regcache
8576 as argument.
8577 (x86_64_store_return_value, x86_64_extract_return_value): Make
8578 static. Rewrite based on i386 counterparts.
8579 (x86_64_push_dummy_call): New function.
8580 (X86_64_NUM_SAVED_REGS): New define.
8581 (x86_64_register_number): Remove function.
8582 (x86_64_store_struct_return): Remove function.
8583 (x86_64_frameless_function_invocation,
8584 x86_64_function_has_prologue): Remove functions.
8585 (PROLOG_BUFSIZE): Remove define.
8586 (struct x86_64_frame_cache): New structure.
8587 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8588 x86_64_frame_cache, x86_64_frame_this_id,
8589 x86_64_frame_prev_register, x86_64_frame_p,
8590 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8591 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8592 functions.
8593 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8594 variables.
8595 (x86_64_skip_prologue): Rewrite in terms of
8596 x86_64_analyze_prologue.
8597 (x86_64_frame_base_address): New function.
8598 (x86_64_frame_base): New variable.
8599 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8600 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8601 set deprecated_fp_regnum, deprecated_register_size,
8602 deprecated_register_bytes, register_raw_size, register_byte,
8603 register_virtual_type, register_convertiable,
8604 register_convert_to_virtual, convert_to_raw,
8605 deprecated_get_saved_register, deprecated_target_read_fp,
8606 deprecated_push_arguments, deprecated_push_return_address,
8607 deprecated_pop_frame, deprecated_store_struct_return,
8608 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8609 frameless_function_invocation, deprecated_frame_saved_pc,
8610 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8611 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8612 deprecated_init_frame_pc and virtual_frame_pointer. Call
8613 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8614 and x86_64_frame_p. Call frame_base_set_default to register
8615 x86_64_frame_base.
8616 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8617 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8618 (_initialize_x86_64_tdep): Remove function.
8619 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8620 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8621 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8622 define.
8623 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8624 (x86_64_linux_sigcontext_addr): Rewrite.
8625 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8626 x86_64_linux_frame_saved_pc): Remove functions.
8627 (x86_64_linux_pc_in_sigtramp): Renamed from
8628 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8629 trampoline.
8630 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8631 Remove_functions.
8632 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8633 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8634 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8635 (x86_64_regmap): Rename to regmap.
8636 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8637 x86_64_num_gregs.
8638 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8639 x86_64_regmap.
8640 (x86_64_fxsave_offset): Remove function.
8641 (supply_fpregset): Simply call x86_64_supply_fxsave.
8642 (fill_fpregset): Simply call x86_64_fill_fxsave.
8643 (fetch_inferior_registers, store_inferior_registers): Avoid
8644 asignment in if-statement.
8645 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8646 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8647 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8648 (fetch_core_registers): Remove function.
8649 (linux_elf_core_fns): Remove.
8650 (offsetoff): Don't define.
8651 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8652 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8653 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8654 add core-regset.o.
8655 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8656 protection against multiple includes instead of NM_X86_64_h. Add
8657 various comments. Include "config/nm-linux.h". Don't include
8658 <signal.h>.
8659 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8660 GET_THREAD_SIGNALS): Remove defines.
8661 (x86_64_register_u_addr, kernel_u_size,
8662 lin_thread_get_thread_signals): Remove prototypes.
8663 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8664 [HAVE_LINK_H]: Don't include "solib.h".
8665 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8666 * config/i386/tm-x86-64linux.h: Fix comments.
8667 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8668 x86-64-tdep.o): Update dependencies.
8669
c25083af
AC
86702003-05-30 Andrew Cagney <cagney@redhat.com>
8671
c8f55a7b
AC
8672 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8673 Change parameter type to a "struct regcache *".
8674
c25083af
AC
8675 * gdbarch.sh: Regardless of the multi-arch level, always define
8676 the macro when not already defined.
8677 * gdbarch.h, gdbarch.c: Re-generate.
8678
fbe586ae
RH
86792003-05-30 Richard Henderson <rth@redhat.com>
8680
8681 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8682 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8683 (alpha_mdebug_frame_this_id): Likewise.
8684 (alpha_mdebug_frame_prev_register): Likewise.
8685 (alpha_mdebug_frame_base_address): Likewise.
8686 (alpha_mdebug_frame_locals_address): Likewise.
8687 (alpha_mdebug_frame_args_address): Likewise.
8688 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8689 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8690 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8691 loop increment.
8692 (alpha_heuristic_frame_this_id): Make static.
8693 (alpha_heuristic_frame_prev_register): Likewise.
8694 (alpha_heuristic_frame_base_address): Likewise.
8695 * alpha-tdep.h: Update.
8696
acd5c798
MK
86972003-05-30 Mark Kettenis <kettenis@gnu.org>
8698
8699 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8700 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8701 defenitions.
8702 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8703 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8704 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8705 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8706 I386_ST0_REGNUM): New defines.
8707 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8708 codestream_get): Remove define.
8709 (codestream_next_addr, condestream_addr, condestream_buf,
8710 codestream_off, codestream_cnt): Remove variables.
8711 (codestream_fill, codestream_seek, codestream_read): Remove
8712 functions.
8713 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8714 functionality.
8715 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8716 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8717 i386_frame_saved_pc, i386_saved_pc_after_call,
8718 i386_frame_num_args, i386_frame_init_saved_regs,
8719 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8720 i386_push_arguments): Remove functions.
8721 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8722 functionality. Use i386_analyze_prologue instead of
8723 i386_get_frame_setup.
8724 (I386_NUM_SAVED_REGS): New define.
8725 (struct i386_frame_cache): New structure.
8726 (i386_alloc_frame_cache, i386_analyze_struct_return,
8727 i386_skip_probe, i386_analyze_frame_setup,
8728 i386_analyze_register_saves, i386_analyze_prologue,
8729 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8730 i386_frame_prev_register, i386_sigtramp_frame_cache,
8731 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8732 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8733 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8734 New functions.
8735 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8736 New variables.
8737 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8738 I386_EAX_REGNUM and I386_EDX_REGNUM.
8739 (i386_extract_return_value, i386_store_return_value): Use
8740 I386_ST0_REGNUM where appropriate.
8741 (i386_extract_struct_value_address): Rewrite to use extract_address.
8742 (i386_svr4_pc_in_sigtramp): Add comment.
8743 (i386_svr4_sigcontext_addr): Rewrite.
8744 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8745 TDEP->sc_sp_offset.
8746 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8747 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8748 of new defines. Set push_dummy_call, don't set
8749 deprecated_push_arguments, deprecated_push_return_address,
8750 deprecated_pop_frame. Don't set parm_boundary. Don't set
8751 deprecated_frame_chain, deprecated_frame_saved_pc,
8752 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8753 save_dummy_frame_tos, unwind_pc. Call
8754 frame_unwind_append_predicate and frame_base_set_default. Don't
8755 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8756 Don't set frameless_function_invocation. Don't set
8757 deprecated_register_bytes, deprecated_register_size,
8758 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8759 * i386-linux-tdep.c: Fix formatting in some comments.
8760 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8761 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8762 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8763 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8764 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8765 redundant parentheses.
8766 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8767 (i386_linux_sigcontext_addr): Use it. Rewrite.
8768 (find_minsym_and_objfile): Change name of second argument.
8769 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8770 changed. Use frame_pc_unwind instead of
8771 DEPRECATED_SAVED_PC_AFTER_CALL.
8772 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8773 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8774 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8775 unwinder.
8776 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8777 "dummy-frame.h".
8778 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8779 (_initialize_i386_cygwin_tdep): New prototype.
8780 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8781 deprecated_frame_chain_valid.
8782 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8783 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8784 Rely on the SVR4 defaults.
8785 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8786 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8787
c89b70f1
AC
87882003-05-30 Andrew Cagney <cagney@redhat.com>
8789
8790 * infcall.c (call_function_by_hand): Always call
8791 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8792
85b32d22
RH
87932003-05-30 Richard Henderson <rth@redhat.com>
8794
c89b70f1
AC
8795 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8796 increment.
85b32d22 8797
bfe51b1e
JB
87982003-05-29 Jim Blandy <jimb@redhat.com>
8799
8800 Use gdbarch methods for solib stuff on PowerPC Linux.
8801 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8802 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8803 show through.
8804 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8805 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8806 giving the same effect as the #definitions above.
8807
1abf022c
AF
88082003-05-29 Adam Fedor <fedor@gnu.org>
8809
8810 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8811 (find_implementation_from_class): Replace it with the standard
8812 case i.e. do nothing.
8813
d2427a71
RH
88142003-05-29 Richard Henderson <rth@redhat.com>
8815
8816 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8817 (alpha_linux_sigtramp_offset): Use it. Make static.
8818 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8819 update for new frame model.
8820 * alpha-mdebug-tdep.c: New file.
8821 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8822 (alpha_osf1_init_abi): Install it.
8823 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8824 (linked_proc_desc_table): Remove.
8825 (alpha_frame_past_sigtramp_frame): Remove.
8826 (alpha_dynamic_sigtramp_offset): Remove.
8827 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8828 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8829 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8830 (push_sigtramp_desc): Remove.
8831 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8832 (alpha_cannot_store_register): Likewise.
8833 (alpha_sigcontext_addr): Remove.
8834 (alpha_find_saved_regs): Remove.
8835 (alpha_frame_init_saved_regs): Remove.
8836 (alpha_init_frame_pc_first): Remove.
8837 (read_next_frame_reg): Remove.
8838 (alpha_frame_saved_pc): Remove.
8839 (alpha_saved_pc_after_call): Remove.
8840 (temp_proc_desc, temp_saved_regs): Remove.
8841 (alpha_about_to_return): Remove.
8842 (cached_proc_desc): Remove.
8843 (alpha_frame_chain): Remove.
8844 (alpha_print_extra_frame_info): Remove.
8845 (alpha_init_extra_frame_info): Remove.
8846 (alpha_frame_locals_address): Remove.
8847 (alpha_frame_args_address): Remove.
8848 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8849 (alpha_push_dummy_frame): Remove.
8850 (alpha_pop_frame): Remove.
8851 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8852 (alpha_read_insn): New.
8853 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8854 for different insn encodings.
8855 (alpha_in_lenient_prologue): Remove.
8856 (struct alpha_sigtramp_unwind_cache): New.
8857 (alpha_sigtramp_frame_unwind_cache): New.
8858 (alpha_sigtramp_register_address): New.
8859 (alpha_sigtramp_frame_this_id): New.
8860 (alpha_sigtramp_frame_prev_register): New.
8861 (alpha_sigtramp_frame_unwind): New.
8862 (alpha_sigtramp_frame_p): New.
8863 (struct alpha_heuristic_unwind_cache): New.
8864 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8865 don't count nop insns that occur between functions.
8866 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8867 heuristic_proc_desc, but without the mdebug wrapping.
8868 (alpha_heuristic_frame_this_id): New.
8869 (alpha_heuristic_frame_prev_register): New.
8870 (alpha_heuristic_frame_unwind): New.
8871 (alpha_heuristic_frame_p): New.
8872 (alpha_heuristic_frame_base_address): New.
8873 (alpha_heuristic_frame_base): New.
8874 (alpha_unwind_dummy_id): New.
8875 (alpha_unwind_pc): New.
8876 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8877 frame related deprecated initializations; install replacements.
8878 (alpha_dump_tdep): Remove.
8879 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8880 (alpha_read_insn, alpha_after_prologue,
8881 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8882 alpha_heuristic_frame_prev_register,
8883 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8884 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8885 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8886 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8887
93ec1121
AC
88882003-05-29 Andrew Cagney <cagney@redhat.com>
8889
8890 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8891 dependant on the availability of ASSERT_FUNCTION.
8892 (ASSERT_FUNCTION): Do not define when there is no function name.
8893
98f08d3d
KB
88942003-05-29 Kevin Buettner <kevinb@redhat.com>
8895
8896 From Jimi X <jimix@watson.ibm.com>:
8897 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8898
0897f59b
JB
88992003-05-28 Jim Blandy <jimb@redhat.com>
8900
8901 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8902 argument to ptrace to int; the system headers should give it the
8903 right type, and pointers don't fit in ints on powerpc64-*-*.
8904
14898363
L
89052003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8906
8907 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8908 DW_TAG_catch_block.
8909
a7a48797
EZ
89102003-05-26 Elena Zannoni <ezannoni@redhat.com>
8911
8912 * stabsread.c (dbx_lookup_type): Make static.
8913 (read_type): Ditto.
8914 (add_undefined_type): Ditto.
8915 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8916 not export.
8917
f5479e9c
EZ
89182003-05-26 Elena Zannoni <ezannoni@redhat.com>
8919
8920 * hpread.c (hpread_has_name): Make static.
8921 (hpread_psymtab_to_symtab): Ditto.
8922 (file_exists): Ditto.
8923 (hpread_call_pxdb): Ditto.
8924 (hpread_pxdb_needed): Ditto.
8925 (hpread_quick_traverse): Ditto.
8926 (hpread_get_header): Ditto.
8927 (hpread_get_lntt): Ditto.
8928 (hpread_get_slt): Ditto.
8929 (class_of): Ditto.
8930
eb2e12d7
AS
89312003-05-25 Andreas Schwab <schwab@suse.de>
8932
78bf922a
AS
8933 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8934 stack_align and deprecated_extra_stack_alignment_needed.
8935 (m68k_stack_align): Delete.
8936
eb2e12d7
AS
8937 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8938 (m68k_register_virtual_size): Likewise.
8939 (altos_skip_prologue): Remove obsolete function.
8940 (isi_frame_num_args): Likewise.
8941 (news_frame_num_args): Likewise.
8942 (m68k_fix_call_dummy): Make static.
8943 (m68k_push_dummy_frame): Likewise.
8944 (m68k_pop_frame): Likewise.
8945 (m68k_skip_prologue): Likewise.
8946 (m68k_frame_init_saved_regs): Likewise.
8947 (m68k_saved_pc_after_call): Likewise.
8948 (m68k_get_longjmp_target): Make multi-arch.
8949 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8950 structure. Register m68k_get_longjmp_target if enabled.
8951 * m68k-tdep.h (struct gdbarch_tdep): Define.
8952 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8953
8954 * Makefile.in (config.status): Also depend on configure.tgt
8955 and configure.host.
8956 (m68klinux-tdep.o): Update dependencies.
8957 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8958 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8959 (M68K_LINUX_JB_PC): Define.
8960 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8961 and take additional parameter.
8962 (m68k_linux_sigtramp_saved_pc): Update.
8963 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8964 m68k_linux_pc_in_sigtramp, in_plt_section,
8965 find_solib_trampoline_target.
8966 * config/m68k/tm-linux.h: Don't include any tm headers.
8967 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8968 (JB_ELEMENT_SIZE): Likewise.
8969 (JB_PC): Likewise.
8970 (GET_LONGJMP_TARGET): Likewise.
8971 (IN_SIGTRAMP): Likewise.
8972 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8973
eb2c22dc
MK
89742003-05-25 Mark Kettenis <kettenis@gnu.org>
8975
8976 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8977 (sparc32_push_arguments): Re-implement by calling
8978 sparc32_do_push_arguments.
8979
44b7b84e
MK
89802003-05-25 Mark Kettenis <kettenis@gnu.org>
8981
8982 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8983 SPARC_O1_REGNUM): New defines.
8984 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8985 (sparc32_store_return_value): New function.
8986 (sparc_extract_struct_value_address): Rewrite to operate on a
8987 regcache.
8988 (sparc_gdbarch_init): Don't set
8989 deprecated_extract_struct_value_address. Set
8990 extract_struct_value_address instead. Don't set
8991 deprecated_extract_return_value and deprecated_store_return_value
8992 for 32-bit targets. Set extract_return_value and
8993 store_return_value instead.
8994 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8995 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8996 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8997 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8998 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8999 (sparc_store_return_value): Remove prototype.
9000 (sparc32_store_return_value): New prototype.
9001 (sparc32_extract_return_value, sparc_extract_struct_value_address):
9002 Adjust prototypes.
9003
f6ad61e3
MK
90042003-05-24 Mark Kettenis <kettenis@gnu.org>
9005
9006 * sparcnbsd-tdep.c: Include "gdb_string.h".
9007
b276f1bb
AC
90082003-05-23 Andrew Cagney <cagney@redhat.com>
9009
9010 * p-valprint.c (pascal_val_print): Replace extract_address with
9011 the inline equivalent extract_unsigned_integer.
9012 * jv-valprint.c (java_value_print): Ditto.
9013 * ada-valprint.c (ada_val_print_1): Ditto.
9014 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
9015
e76c5fcc
TR
90162003-05-23 Theodore A. Roth <troth@openavr.org>
9017
9018 * blockframe.c (frameless_look_for_prologue): Remove unused
9019 after_prologue variable.
9020
2cdd89cb
MK
90212003-05-23 Mark Kettenis <kettenis@gnu.org>
9022
9023 * blockframe.c (get_pc_function_start): Rewrite to avoid
9024 asignments in if-statements.
9025
182d43bc
EZ
90262003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
9027
9028 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 9029 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
9030 files, don't relocate absolute symbols (and do use mst_abs).
9031
e8f3fcdd
AC
90322003-05-23 Andrew Cagney <cagney@redhat.com>
9033
9034 * objc-lang.c: Include "gdb_assert.h".
9035 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
9036 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
9037 (gdb_check, gdb_check_fatal): Delete functions.
9038 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
9039 gdb_assert.
9040 (parse_selector, parse_method, find_methods, find_imps): Ditto.
9041 * Makefile.in (objc-lang.o): Update dependencies.
9042
3c23e6fb
ILT
90432003-05-22 Ian Lance Taylor <ian@airs.com>
9044
9045 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9046 with fprintf_filtered, not fprintf_unfiltered.
9047
af1342ab
AC
90482003-05-22 Andrew Cagney <cagney@redhat.com>
9049
9050 * stack.c (frame_info): Inline extract_address, replacing it with
9051 extract_unsigned_integer.
9052 * findvar.c (unsigned_pointer_to_address): Ditto.
9053 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9054 * dwarf2expr.c (dwarf2_read_address): Ditto.
9055 * frame.c (frame_pc_unwind): Update comment.
9056 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9057
47e242ec
JJ
90582003-05-22 Jeff Johnston <jjohnstn@redhat.com>
9059
9060 * infptrace.c (detach): Call print_sys_errmsg rather than
9061 perror_with_name to issue warning message when errno is non-zero
9062 after calling ptrace detach.
9063
e2ac8128
JB
90642003-05-21 J. Brobecker <brobecker@gnat.com>
9065
9066 * config/pa/tm-hppa.h: Delete some unused macros. Move some
9067 macro definitions from here...
9068 * hppa-tdep.c: ...to there.
9069
92b3541e
KB
90702003-05-20 Kevin Buettner <kevinb@redhat.com>
9071
9072 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9073 register_ptrace_addr(). Fix all callers.
9074
55809acb
AS
90752003-05-21 Andreas Schwab <schwab@suse.de>
9076
9077 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9078 dependencies.
9079 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9080 end.
9081 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9082 (_initialize_m68k_linux_tdep): New function.
9083 (m68k_linux_frame_saved_pc): Make static.
9084 (m68k_linux_extract_return_value): Likewise.
9085 (m68k_linux_store_return_value): Likewise.
9086 (m68k_linux_extract_struct_value_address): Likewise.
9087 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9088 Remove.
9089 (DEPRECATED_STORE_RETURN_VALUE): Remove.
9090 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9091 (DEPRECATED_FRAME_SAVED_PC): Remove.
9092
0fbc10f7
KW
90932003-05-20 Kris Warkentin <kewarken@qnx.com>
9094
9095 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9096 regset numbering rather than our own.
9097
58da2eb2
DC
90982003-05-19 David Carlton <carlton@bactrian.org>
9099
9100 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9101
1fcb5155
DC
91022003-05-19 David Carlton <carlton@bactrian.org>
9103
9104 Partial fix for PR c++/827.
9105 * cp-support.h: Include symtab.h.
9106 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9107 * cp-namespace.c: Update contributors.
9108 (cp_lookup_symbol_nonlocal): New.
9109 (lookup_namespace_scope, cp_lookup_symbol_namespace)
9110 (lookup_symbol_file): Ditto.
9111 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9112 * block.h: Declare block_scope, block_using, block_global_block.
9113 * block.c (block_scope): New.
9114 (block_using, block_global_block): Ditto.
9115 * Makefile.in (cp_support_h): Depend on symtab_h.
9116 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9117
5f9a71c3
DC
91182003-05-19 David Carlton <carlton@bactrian.org>
9119
9120 * language.h (struct language_defn): Add 'la_value_of_this'
9121 and 'la_lookup_symbol_nonlocal' members.
9122 * symtab.h: Declare basic_lookup_symbol_nonlocal,
9123 lookup_symbol_static, lookup_symbol_global,
9124 lookup_symbol_aux_block.
9125 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9126 if we should search fields of this and how to do static/global
9127 lookup.
9128 (lookup_symbol_aux_block): Make extern.
9129 (basic_lookup_symbol_nonlocal): New.
9130 (lookup_symbol_static, lookup_symbol_global): Ditto.
9131 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9132 'la_lookup_symbol_nonlocal' members.
9133 * c-lang.c (c_language_defn, cplus_language_defn)
9134 (asm_language_defn, minimal_language_defn): Ditto.
9135 * jv-lang.c (java_language_defn): Ditto.
9136 * language.c (unknown_language_defn, auto_language_defn)
9137 (local_language_defn): Ditto.
9138 * m2-lang.c (m2_language_defn): Ditto.
9139 * objc-lang.c (objc_language_defn): Ditto.
9140 * scm-lang.c (scm_language_defn): Ditto.
9141 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9142 * p-lang.c (pascal_language_defn): Ditto for both.
9143 * Makefile.in (f-lang.o): Depend on value_h.
9144 (p-lang.o): Ditto.
9145
89a9d1b1
DC
91462003-05-19 David Carlton <carlton@bactrian.org>
9147
9148 * block.h: Declare block_static_block.
9149 * block.c (block_static_block): New.
9150 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9151 lookup_symbol_aux_local, calling block_static_block instead.
9152 (lookup_symbol_aux_local): Delete 'static_block' argument.
9153
eed3f8ab
DC
91542003-05-19 David Carlton <carlton@bactrian.org>
9155
9156 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9157
a09d8bda
ML
91582003-05-19 Michal Ludvig <mludvig@suse.cz>
9159
9160 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9161 register numbers mapping.
9162
69636828
AF
91632003-05-18 Adam Fedor <fedor@gnu.org>
9164
9165 * symtab.c (completion_list_objc_symbol): New function.
9166 (make_symbol_completion_list): Use it to add ObjC symbols
9167 when looking though the list.
9168 (language_search_unquoted_string): New function.
9169 (make_file_symbol_completion_list): Use it.
9170
55baeb84
AS
91712003-05-18 Andreas Schwab <schwab@suse.de>
9172
d0b45d99
AS
9173 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9174 dependencies.
9175 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9176 as m68k_linux_extract_return_value.
9177 (DEPRECATED_STORE_RETURN_VALUE): Define as
9178 m68k_linux_store_return_value.
9179 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9180 m68k_linux_extract_struct_value_address.
9181 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9182 get_next_frame, get_frame_base, get_frame_pc.
9183 (m68k_linux_frame_saved_pc): Use get_frame_base.
9184 (m68k_linux_extract_return_value): New function.
9185 (m68k_linux_store_return_value): New function.
9186 (m68k_linux_extract_struct_value_address): New function.
9187 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9188
55baeb84
AS
9189 * c-exp.y (typebase): Remove duplicate occurence of
9190 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 9191 of lookup_signed_typename.
55baeb84 9192
b6b08ebf
MK
91932003-05-18 Mark Kettenis <kettenis@gnu.org>
9194
9195 * dwarf2loc.c (find_location_expression): Change type of second
9196 argument to `size_t *'.
9197 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9198 for size variable.
9199
5ad1c190
DC
92002003-05-18 David Carlton <carlton@bactrian.org>
9201
9202 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9203 'linkage_name'. Add comment.
9204 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9205 'linkage_name'.
9206 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9207 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9208 (lookup_block_symbol): Ditto.
9209
b8b527c5
AC
92102003-05-16 Andrew Cagney <cagney@redhat.com>
9211
9212 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9213 * gdbarch.h, gdbarch.c: Re-generate.
9214 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9215 * TODO (REGISTER_BYTES): Delete reference.
9216 * alpha-tdep.c (alpha_gdbarch_init): Update.
9217 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9218 * x86-64-tdep.c (x86_64_init_abi): Update.
9219 * vax-tdep.c (vax_gdbarch_init): Update.
9220 * v850-tdep.c (v850_gdbarch_init): Update.
9221 * sparc-tdep.c (sparc_gdbarch_init): Update.
9222 * sh-tdep.c (sh_gdbarch_init): Update.
9223 * s390-tdep.c (s390_gdbarch_init): Update.
9224 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9225 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9226 (ns32k_gdbarch_init_32382): Update.
9227 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9228 * mcore-tdep.c (mcore_gdbarch_init): Update.
9229 * m68k-tdep.c (m68k_gdbarch_init): Update.
9230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9231 * ia64-tdep.c (ia64_gdbarch_init): Update.
9232 * i386-tdep.c (i386_gdbarch_init): Update.
9233 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9234 * hppa-tdep.c (hppa_gdbarch_init): Update.
9235 * h8300-tdep.c (h8300_gdbarch_init): Update.
9236 * frv-tdep.c (frv_gdbarch_init): Update.
9237 * cris-tdep.c (cris_gdbarch_init): Update.
9238 * avr-tdep.c (avr_gdbarch_init): Update.
9239 * arm-tdep.c (arm_gdbarch_init): Update.
9240 * sparc-tdep.c (sparc_pop_frame): Update.
9241 * rs6000-tdep.c (rs6000_pop_frame): Update.
9242 * remote.c (init_remote_state): Update.
9243 (remote_prepare_to_store): Update.
9244 * remote-vx.c (vx_prepare_to_store): Update.
9245 * remote-sds.c (sds_fetch_registers): Update.
9246 (sds_prepare_to_store): Update.
9247 * remote-array.c: Update.
9248 * regcache.c (init_legacy_regcache_descr): Update.
9249 (init_regcache_descr): Update.
9250 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9251 (mips_o64_extract_return_value): Update.
9252 * irix5-nat.c (fetch_core_registers): Update.
9253 * irix4-nat.c (fetch_core_registers): Update.
9254 * i386-tdep.h: Update.
9255 * hppa-tdep.c (pa_do_registers_info): Update.
9256 (pa_do_strcat_registers_info): Update.
9257 * cris-tdep.c (cris_register_bytes_ok): Update.
9258 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9259 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9260 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9261 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9262 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9263 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9264 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9265 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9266 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9267 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9268 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9269 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9270 (REGISTER_BYTES_OK): Update.
9271 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9272 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9273
ee2842e2
ILT
92742003-05-16 Ian Lance Taylor <ian@airs.com>
9275
9276 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9277 (vax_print_insn, print_insn_arg): Remove static functions.
9278 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9279 print_insn_vax from opcodes library.
9280 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9281
973177d3
AC
92822003-05-15 Andrew Cagney <cagney@redhat.com>
9283
aaab4dba
AC
9284 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9285 * target.h (memory_breakpoint_from_pc): Delete declaration.
9286 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9287 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9288 * monitor.c (monitor_insert_breakpoint): Use
9289 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9290 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9291 * gdbarch.h, gdbarch.c: Re-generate.
9292 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9293 (sparc_gdbarch_init): Set breakpoint_from_pc to
9294 sparc_breakpoint_from_pc.
9295 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9296 (BREAKPOINT_FROM_PC): Define.
9297 (sparc_breakpoint_from_pc): Declare.
9298 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9299 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9300 (BREAKPOINT_FROM_PC): Define.
9301 (BREAKPOINT): Delete macro.
9302 * target.h: Update comment.
9303 * s390-tdep.c (s390_gdbarch_init): Update comments.
9304 * remote.c: Update comments.
9305 * remote-mips.c: Update comments.
9306 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9307 * mem-break.c: Update comment.
9308 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9309 (ia64_memory_insert_breakpoint): Update.
9310 * config/sparc/tm-sparc.h: Update comment.
9311 * config/pa/tm-hppa64.h: Update comment.
9312 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9313 (rs6000_breakpoint_from_pc): Update.
9314 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9315 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9316 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9317 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9318 (mips_breakpoint_from_pc): Update.
9319 (mips_dump_tdep): Update.
9320
e06963ff
AC
9321 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9322 * minsyms.c (lookup_minimal_symbol): Inline
9323 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9324
973177d3
AC
9325 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9326 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9327 * p-lang.c (pascal_printstr): Ditto.
9328 * objc-lang.c (objc_printstr): Ditto.
9329 * m2-lang.c (m2_printstr): Ditto.
9330 * jv-valprint.c (java_print_value_fields): Ditto.
9331 * f-lang.c (f_printstr): Ditto.
9332 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9333 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9334 for repeat_count_threshold.
9335 * Makefile.in (cp-valprint.o): Update dependencies.
9336
5ea2bd7f 93372003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9338
5ea2bd7f
JJ
9339 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9340 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9341 they start with mov r2,r12. Support skipping over indirect stores
9342 of the input registers. Upon hitting a non-nop branch instruction
9343 or predicated instruction, bail out by setting lim_pc to the current
9344 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9345 beyond our calculated value and we have trust_limit set,
9346 use the lim_pc value.
9347
cc8c88f3
AC
93482003-05-15 Andrew Cagney <cagney@redhat.com>
9349
9350 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9351 generic_find_dummy_frame.
9352 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9353 (deprecated_generic_find_dummy_frame): Update.
9354 (deprecated_read_register_dummy): Update.
9355 * frame.c (deprecated_generic_get_saved_register): Update.
9356
909cd28e
TR
93572003-05-15 Theodore A. Roth <troth@openavr.org>
9358
9359 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9360 (avr_gdbarch_init): Set breakpoint_from_pc method.
9361
b923b08d
AC
93622003-05-15 Andrew Cagney <cagney@redhat.com>
9363
9364 * regcache.c (build_regcache): Set deprecated_register_valid
9365 directly.
9366 (deprecated_grub_regcache_for_register_valid): Delete function.
9367 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9368 declaration.
9369
ae2f03ac 93702003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9371
9372 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9373 * symtab.c (lookup_symbol_aux): Delete calls to
9374 lookup_symbol_aux_minsyms.
9375 (lookup_symbol_aux_minsyms): Comment out function and
9376 prototype. Delete lookup by mangled name.
ae2f03ac 9377
18ec9831
KB
93782003-05-14 Kevin Buettner <kevinb@redhat.com>
9379
9380 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9381 correctly indicate an empty stack and ``stack_allocated'' to the
9382 indicate the number of elements initially allocated.
9383 (dwarf_expr_grow_stack): Simplify method for computing new
9384 stack size. Don't loop infinitely if ``stack_len'' is zero.
9385 (execute_stack_op): Move ``ctx->in_reg'' initialization
9386 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9387 be used in conjuction with DW_OP_piece. Revise error message
9388 accordingly.
9389
de18ac1f
TR
93902003-05-14 Theodore A. Roth <troth@openavr.org>
9391
9392 * MAINTAINERS: Update my email address.
9393 * avr-tdep.c: Ditto.
9394
176620f1
EZ
93952003-05-14 Elena Zannoni <ezannoni@redhat.com>
9396
9397 * symtab.h (enum domain_enum): Rename from namespace_enum.
9398 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9399 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9400 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9401 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9402 TYPES_NAMESPACE, METHODS_NAMESPACE.
9403 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9404 (struct symbol, struct partial_symbol): Rename field
9405 'namespace_enum namespace' to 'domain_enum domain'.
9406 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9407 Delete old define kludge for namespace.
9408
9409 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9410 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9411 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9412 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9413 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9414 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9415 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9416 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9417 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9418 occurrences of the above.
9419
b7f31508
ILT
94202003-05-14 Ian Lance Taylor <ian@airs.com>
9421
9422 * Makefile.in (install-only): Use $(SHELL) when running
9423 mkinstalldirs.
9424
2fdbdd39
ILT
94252003-05-13 Ian Lance Taylor <ian@airs.com>
9426
a208d82c
ILT
9427 * MAINTAINERS (write after approval): Add myself.
9428
2fdbdd39
ILT
9429 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9430 second and third arguments.
9431 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9432 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9433
fbd9dcd3
AC
94342003-05-13 Andrew Cagney <cagney@redhat.com>
9435
9436 * defs.h (store_address): Delete declaration.
9437 findvar.c (store_address): Delete function.
9438 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9439 store_unsigned_integer.
9440 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9441 * v850-tdep.c (v850_push_arguments): Ditto.
9442 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9443 * sh-tdep.c (sh64_get_saved_register): Ditto.
9444 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9445 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9446 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9447 (mips_get_saved_register): Ditto.
9448 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9449 (find_func_descr, ia64_push_arguments): Ditto.
9450 * i386-tdep.c (i386_push_arguments): Ditto.
9451 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9452 * frv-tdep.c (frv_push_arguments): Ditto.
9453 * frame.c (legacy_saved_regs_prev_register): Ditto.
9454 (deprecated_generic_get_saved_register): Ditto.
9455 * findvar.c (unsigned_address_to_pointer): Ditto.
9456 * dwarf2read.c (dwarf2_const_value): Ditto.
9457 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9458 * alpha-tdep.c (alpha_push_arguments): Ditto.
9459
6760f9e6
JB
94602003-05-12 J. Brobecker <brobecker@gnat.com>
9461
9462 * NEWS: Mention that the hppa-hpux port has been partially
9463 multiarched (32bit ABIT only, so far).
9464
30e221b4
AC
94652003-05-11 Andrew Cagney <cagney@redhat.com>
9466
9467 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9468 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9469 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9470 sim/testsuite/sim/arm/misaligned2.ms, and
9471 sim/testsuite/sim/arm/misaligned3.ms.
9472 * disasm.h (struct ui_file): Add opaque struct declaration.
9473 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9474 * frame.h (struct ui_file): Ditto.
9475
dea7f9ba
MK
94762003-05-11 Mark Kettenis <kettenis@gnu.org>
9477
9478 * value.h: Pretty print.
9479
01986c48
MK
94802003-05-10 Mark Kettenis <kettenis@gnu.org>
9481
9482 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9483
123a958e
AC
94842003-05-08 Andrew Cagney <cagney@redhat.com>
9485
9486 * regcache.h (max_register_size): Delete declaration.
9487 * regcache.c (max_register_size): Delete function.
9488 (struct regcache_descr): Delete field "max_register_size".
9489 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9490 registers fit in MAX_REGISTER_SIZE.
9491 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9492 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9493 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9494 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9495 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9496 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9497 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9498 * dve3900-rom.c, hppa-tdep.c: Ditto.
9499
eb294659
DC
95002003-05-08 David Carlton <carlton@math.stanford.edu>
9501
9502 * valops.c (push_word): Fix typo.
9503
d9d9c31f
AC
95042003-05-08 Andrew Cagney <cagney@redhat.com>
9505
9506 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9507 * gdbarch.h: Re-generate.
9508 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9509 (legacy_max_register_raw_size): Delete declaration.
9510 * regcache.c (legacy_max_register_raw_size): Delete function.
9511 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9512 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9513 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9514 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9515 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9516 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9517 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9518 * findvar.c, dwarf2cfi.c: Ditto.
9519
22540ece
AC
95202003-05-08 Andrew Cagney <cagney@redhat.com>
9521
9522 * mips-tdep.c (read_signed_register): New function, moved to here
9523 from "regcache.c".
9524 (read_signed_register_pid): Ditto.
9525 * regcache.c (read_signed_register_pid): Delete function, moved to
9526 "mips-tdep.c".
9527 (read_signed_register): Ditto.
9528 * regcache.h (read_signed_register): Delete declaration.
9529 (read_signed_register_pid): Delete declaration.
9530
0c92afe8
AC
95312003-05-08 Andrew Cagney <cagney@redhat.com>
9532
9533 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9534 * gdbarch.h: Re-generate.
9535 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9536 (legacy_max_register_virtual_size): Delete declaration.
9537 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9538 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9539 * tracepoint.c (memrange_sortmerge): Ditto.
9540 * sparc-tdep.c (sparc_print_registers): Ditto.
9541 * regcache.c (legacy_max_register_virtual_size): Delete function.
9542
6037b830
JB
95432002-05-08 J. Brobecker <brobecker@gnat.com>
9544
9545 * fork-child.c (escape_bang_in_quoted_argument): New function.
9546 (fork_inferior): Escape '!' characters in quoted arguments
9547 only when needed.
9548
5d62c8b1
JB
95492003-05-08 J. Brobecker <brobecker@gnat.com>
9550
9551 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9552 the language of the CU is not currently supported by GDB.
9553
20a0e81d
JB
95542003-05-08 J. Brobecker <brobecker@gnat.com>
9555
9556 * defs.h (language): Add language_minimal enum value.
9557 * c-lang.c (minimal_language_defn): New language definition.
9558 (_initialize_c_language): Add the new minimal language to the list
9559 of languages known to GDB.
9560
710ee10a
KB
95612003-05-08 Kevin Buettner <kevinb@redhat.com>
9562
9563 * frame.c (get_frame_type): Don't attempt to lazily initialize
9564 frame's unwinder for legacy frames.
9565
1750fa04
AC
95662003-05-07 Andrew Cagney <cagney@redhat.com>
9567
9568 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9569 and "regcache" parameters.
9570 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9571
ddf9f258 95722003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9573
9574 * dwarf2read.c (dwarf_decode_lines): Only use output of
9575 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9576 the current address.
9577
87767c29
AC
95782003-05-07 Andrew Cagney <cagney@redhat.com>
9579
9580 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9581 code.
9582
5e7b2f39
JB
95832003-05-07 Jim Blandy <jimb@redhat.com>
9584
9585 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9586 'maint info symtabs' and 'maint info psymtabs'.
9587 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9588 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9589 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9590 Declarations updated.
9591 * maint.c (maintenance_list_command): Delete.
9592 (_initialize_maint_cmds): Update calls to add_cmd.
9593 * gdbcmd.h (maintenancelistlist): Delete declaration.
9594 * cli/cli-cmds.c (maintenancelistlist): Delete.
9595 (init_cmd_lists): Don't initialize it.
9596 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9597
f6684c31
AC
95982003-05-07 Andrew Cagney <cagney@redhat.com>
9599
9600 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9601 "regcache".
9602 (d10v_print_registers_info): Update.
9603 (d10v_dmap_register, d10v_imap_register): Delete functions.
9604 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9605 and "imap_register".
9606 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9607 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9608 * arch-utils.c (generic_remote_translate_xfer_address): Add
9609 "regcache" and "gdbarch" parameters.
9610 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9611 parameter. Change class to multi-arch.
9612 * gdbarch.h, gdbarch.c: Re-generate.
9613 * remote.c (remote_xfer_memory): Use
9614 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9615
e4846b08
JJ
96162003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9617
9618 * infrun.c (prev_pc): Move declaration ahead of proceed().
9619 (proceed): Refresh prev_pc value before resuming.
9620 (stop_stepping): Remove code to refresh prev_pc.
9621
6b71b8ac
KW
96222003-05-06 Kris Warkentin <kewarken@qnx.com>
9623
9624 * nto-tdep.c: Removed stray comment.
9625
47979a4b
KW
96262003-05-06 Kris Warkentin <kewarken@qnx.com>
9627
9628 * i386-nto-tdep.c: Fix old K&R function definitions.
9629 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9630 Also change add_show_from_set() call to add_setshow_cmd().
9631 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9632
00905d52
AC
96332003-05-05 Andrew Cagney <cagney@redhat.com>
9634
9635 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9636 (fprint_dummy_frames): New function.
9637 (maintenance_print_dummy_frames): New function.
9638 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9639 * frame.c (fprint_frame_id): Make global.
9640 * frame.h (fprint_frame_id): Declare.
9641 * Makefile.in (dummy-frame.o): Update dependencies.
9642
b1e29e33
AC
96432003-05-05 Andrew Cagney <cagney@redhat.com>
9644
9645 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9646 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9647 SIZEOF_CALL_DUMMY_WORDS.
9648 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9649 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9650 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9651 CALL_DUMMY_BREAKPOINT_OFFSET.
9652 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9653 CALL_DUMMY_START_OFFSET.
9654 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9655 * gdbarch.h, gdbarch.c: Re-generate.
9656 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9657 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9658 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9659 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9660 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9661 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9662 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9663 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9664 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9665 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9666 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9667 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9668 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9669 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9670 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9671
96722003-05-05 Kris Warkentin <kewarken@qnx.com>
9673
9674 * configure.tgt: Add i[3456]86-*-nto*.
9675 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9676 * nto-tdep.c: New file. Neutrino target support routines.
9677 * nto-tdep.h: New file. Neutrino target header.
9678 * config/tm-qnxnto.h: New file.
9679 * config/i386/i386nto.mt: New file.
9680 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9681
0ce3d317
AC
96822003-05-04 Andrew Cagney <cagney@redhat.com>
9683
9684 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9685 (load_infrun_state): Ditto.
9686 (struct thread_info): Drop "prev_func_name" field.
9687 * thread.c (load_infrun_state): Update.
9688 (save_infrun_state): Update.
9689 * infrun.c (prev_func_name): Delete variable.
9690 (init_wait_for_inferior): Do not clear prev_func_name.
9691 (stop_stepping, keep_going, context_switch): Do not swap
9692 prev_func_name.
9693 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9694 instead of PC_IN_SIGTRAMP.
9695
46654a5b
AC
96962003-05-04 Andrew Cagney <cagney@redhat.com>
9697
9698 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9699 REGISTER_BYTE with register_offset_hack.
9700 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9701 that REGISTER_BYTE is consistent with the regcache.
9702 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9703 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9704
14b08c1b
MK
97052003-05-04 Mark Kettenis <kettenis@gnu.org>
9706
04c8243f
MK
9707 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9708 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9709
14b08c1b
MK
9710 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9711
c7a11e01
JB
97122003-05-03 J. Brobecker <brobecker@gnat.com>
9713
9714 From Thierry Schneider <tpschneider1@yahoo.com>
9715 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9716 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9717 (mi-cmd-symbol.o): Add rule.
9718
7043d8dc
AC
97192003-05-03 Andrew Cagney <cagney@redhat.com>
9720
9721 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9722 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9723 * gdbarch.h, gdbarch.c: Re-generate.
9724 * d10v-tdep.c (d10v_push_dummy_code): New function.
9725 (d10v_gdbarch_init): Set push_dummy_code.
9726 * infcall.c (legacy_push_dummy_code): New function.
9727 (generic_push_dummy_code): New function.
9728 (push_dummy_code): New function.
9729 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9730 instead of dummy_addr, to push_dummy_call. Move call to
9731 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9732 switch.
9733 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9734
92bf2b80
AC
97352003-05-03 Andrew Cagney <cagney@redhat.com>
9736
9737 * disasm.h (print_insn): Declare.
9738 * disasm.c (init_gdb_disassemble_info): New function.
9739 (gdb_disassembly): Call init_gdb_disassemble_info.
9740 (gdb_print_insn): New function.
9741 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9742 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9743 * mcore-tdep.c: Include "disasm.h"
9744 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9745 * d10v-tdep.c: Include "disasm.h".
9746 (display_trace): Call gdb_print_insn, instead of print_insn.
9747 (print_insn): Delete function.
9748 * printcmd.c: Include "disasm.h".
9749 (print_insn): Delete function.
9750 (print_formatted): Call gdb_print_insn, instead of print_insn.
9751 * Makefile.in (printcmd.o): Update dependencies.
9752 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9753
27d94c49
AC
97542003-05-02 Andrew Cagney <cagney@redhat.com>
9755
82de1e5b
AC
9756 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9757 PC_REGNUM, re-indent.
9758 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9759 PC_REGNUM isn't set.
9760
27d94c49
AC
9761 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9762 * gdbarch.h, gdbarch.c: Re-generate.
9763 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9764 register_virtual_size, pc_regnum, or register_bytes.
9765 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9766 (d10v_register_type): Use D10V_PC_REGNUM.
9767 (d10v_print_registers_info, d10v_read_pc): Ditto.
9768 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9769 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9770
a9c0dc7f
DC
97712003-05-02 David Carlton <carlton@bactrian.org>
9772
9773 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9774 the name with mstrsave.
9775
e33d66ec
EZ
97762003-05-02 Elena Zannoni <ezannoni@redhat.com>
9777
9778 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9779 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9780 (host_charset_name, target_charset_name): New vars for use by
9781 set/show commands.
9782 (host_charset_enum, target_charset_enum): New enums for set/show
9783 commands.
9784 (set_charset_sfunc, set_host_charset_sfunc,
9785 set_target_charset_sfunc): New functions.
9786 (set_host_charset, set_target_charset): Make static.
9787 (list_charsets, set_host_charset_command,
9788 set_target_charset_command): Delete functions.
9789 (show_charset_command): Rewrite as....
9790 (show_charset): Hook this up with the set/show command mechanism.
9791 (_initialize_charset): Change names of charsets to match the
9792 set/show enums. Use host_charset_name and target_charset_name.
9793 Use set/show mechanism for charset, host-charset, target-charset
9794 commands. Do not make 'show host-charset' and 'show
9795 target-charset' be aliases of 'show charset'.
9796
9797 * charset.h (set_host_charset, set_target_charset): Don't export,
9798 they are not used outside the file.
9799
2b6fd0d8
AC
98002003-05-01 Andrew Cagney <cagney@redhat.com>
9801
9802 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9803 (gdb_disassembly): Make "di" non static, always initialize and
9804 cleanup. Always use dis_asm_read_memory.
9805 (gdb_dis_asm_read_memory): Delete function.
9806
6ae2f580
AC
98072003-05-01 Andrew Cagney <cagney@redhat.com>
9808
9809 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9810 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9811
810ecf9f
AC
98122003-04-30 Andrew Cagney <cagney@redhat.com>
9813
9814 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9815 "tm_print_insn_info".
9816 (TARGET_PRINT_INSN_INFO): Delete macro.
9817 (dis_asm_read_memory): Delete function declaration.
9818 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9819 (tm_print_insn_info): Delete variable definition.
9820 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9821 * gdbarch.h, gdbarch.c: Re-generate.
9822 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9823 "deprecated_tm_print_insn_info".
9824 * mcore-tdep.c (mcore_dump_insn): Ditto.
9825 * mips-tdep.c (mips_gdbarch_init): Ditto.
9826 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9827 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9828 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9829 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9830 instead of TARGET_PRINT_INSN_INFO, add comment.
9831 * s390-tdep.c (s390_get_frame_info): Instead of
9832 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9833 (s390_check_function_end, s390_is_sigreturn): Ditto.
9834 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9835 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9836 * disasm.c: Include "gdbcore.h".
9837 (_initialize_disasm): New function, initialize
9838 "deprecated_tm_print_insn_info".
9839 (deprecated_tm_print_insn_info): New variable.
9840 (dis_asm_read_memory): Moved from "corefile.c", made static.
9841 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9842 * Makefile.in (disasm.o): Update dependencies.
9843
07020390
AC
98442003-04-30 Andrew Cagney <cagney@redhat.com>
9845
9846 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9847
a9fa03de
AF
98482003-04-29 Adam Fedor <fedor@gnu.org>
9849
9850 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9851 * infcall.c (find_function_addr): Make non-static.
9852 * infcall.h (find_function_addr): Declare.
9853 * Makefile.in (eval.o): Update dependencies.
9854
1bae87b9
AF
98552003-04-28 Adam Fedor <fedor@gnu.org>
9856
9857 * symtab.c (symbol_find_demangled_name): Check for and demangle
9858 ObjC symbols.
9859 (symbol_init_demangled_name): Init for language_objc as well.
9860
0ba6dca9
AC
98612003-04-28 Andrew Cagney <cagney@redhat.com>
9862
9863 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9864 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9865 * gdbarch.h, gdbarch.c: Re-generate.
9866 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9867 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9868 * inferior.h (deprecated_read_fp): Rename read_fp.
9869 (generic_target_read_fp): Delete declaration.
9870 * regcache.c (generic_target_read_fp): Delete function.
9871 (deprecated_read_fp): Replace read_fp, use
9872 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9873 * d10v-tdep.c (d10v_read_fp): Delete function.
9874 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9875
9876 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9877 deprecated_target_read_fp to generic_target_read_fp.
9878 * sh-tdep.c (sh_gdbarch_init): Ditto.
9879 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9881 * frv-tdep.c (frv_gdbarch_init): Ditto.
9882
9883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9884 deprecated_fp_regnum.
9885 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9886 * vax-tdep.c (vax_gdbarch_init): Ditto.
9887 * v850-tdep.c (v850_gdbarch_init): Ditto.
9888 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9889 * sh-tdep.c (sh_gdbarch_init): Ditto.
9890 * s390-tdep.c (s390_gdbarch_init): Ditto.
9891 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9892 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9893 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9894 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9896 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9897 * i386-tdep.c (i386_gdbarch_init): Ditto.
9898 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9899 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9900 * frv-tdep.c (frv_gdbarch_init): Ditto.
9901 * cris-tdep.c (cris_gdbarch_init): Ditto.
9902 * avr-tdep.c (avr_gdbarch_init): Ditto.
9903 * arm-tdep.c (arm_gdbarch_init): Ditto.
9904 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9905
9906 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9907 * v850-tdep.c (v850_gdbarch_init): Ditto.
9908 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9909 * sh-tdep.c (sh_gdbarch_init): Ditto.
9910 * s390-tdep.c (s390_gdbarch_init): Ditto.
9911 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9912 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9913 * mips-tdep.c (mips_gdbarch_init): Ditto.
9914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9915 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9916 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9917 * frv-tdep.c (frv_gdbarch_init): Ditto.
9918 * avr-tdep.c (avr_gdbarch_init): Ditto.
9919 * arm-tdep.c (arm_gdbarch_init): Ditto.
9920
9921 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9922 DEPRECATED_FP_REGNUM.
9923 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9924 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9925 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9926 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9927 (sparc32_register_virtual_type): Ditto.
9928 * sh-tdep.c (sh64_frame_chain): Ditto.
9929 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9930 (sh_nofp_frame_init_saved_regs): Ditto.
9931 (sh64_nofp_frame_init_saved_regs): Ditto.
9932 (sh_fp_frame_init_saved_regs): Ditto.
9933 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9934 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9935 * procfs.c (procfs_fetch_registers): Ditto.
9936 (procfs_store_registers): Ditto.
9937 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9938 (store_inferior_registers, fetch_core_registers): Ditto.
9939 (fetch_kcore_registers, clear_regs): Ditto.
9940 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9941 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9942 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9943 * nlm/i386.c (do_status): Ditto.
9944 * mipsv4-nat.c (supply_gregset): Ditto.
9945 * mips-tdep.c: Ditto for comments.
9946 * mips-nat.c (fetch_inferior_registers): Ditto.
9947 (store_inferior_registers, fetch_core_registers): Ditto.
9948 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9949 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9950 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9951 (i386_do_pop_frame, i386_register_type): Ditto.
9952 * hppa-tdep.c (hppa_frame_chain): Ditto.
9953 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9954 (hppa_pop_frame, hppa_read_fp): Ditto.
9955 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9956 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9957 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9958 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9959 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9960 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9961 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9962 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9963 * blockframe.c: Ditto for comments.
9964 * arch-utils.h: Ditto for comments.
9965 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9966 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9967 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9968 * alpha-tdep.h: Ditto for comments.
9969 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9970 (alpha_cannot_store_register): Ditto.
9971 (alpha_push_dummy_frame): Ditto.
9972 * alpha-nat.c (supply_gregset): Ditto.
9973
9974 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9975 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9976 * config/sparc/tm-sparc.h: Update comment.
9977
9978 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9979 deprecated_read_fp instead of TARGET_READ_FP.
9980 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9981 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9982 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9983 deprecated_read_fp instead of read_fp.
9984 * s390-tdep.c (s390_push_arguments): Ditto.
9985 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9986 * frame.h: Ditto in comments.
9987 * frame.c (legacy_get_prev_frame): Ditto.
9988 * dummy-frame.c (dummy_frame_this_id): Ditto.
9989 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9990
d7a27068
AC
99912003-04-28 Andrew Cagney <cagney@redhat.com>
9992
9993 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9994 * gdbarch.h, gdbarch.c: Re-generate.
9995 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9996 * vax-tdep.c (_initialize_vax_tdep): Update.
9997 * v850-tdep.c (_initialize_v850_tdep): Update.
9998 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9999 * s390-tdep.c (_initialize_s390_tdep): Update.
10000 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
10001 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
10002 * mips-tdep.c (_initialize_mips_tdep): Update.
10003 * mcore-tdep.c (_initialize_mcore_tdep): Update.
10004 * m68k-tdep.c (_initialize_m68k_tdep): Update.
10005 * ia64-tdep.c (_initialize_ia64_tdep): Update.
10006 * hppa-tdep.c (_initialize_hppa_tdep): Update.
10007 * h8300-tdep.c (_initialize_h8300_tdep): Update.
10008 * frv-tdep.c (_initialize_frv_tdep): Update.
10009 * cris-tdep.c (cris_delayed_get_disassembler): Update.
10010 (_initialize_cris_tdep): Update.
10011 * arch-utils.c (legacy_print_insn): Update.
10012 * alpha-tdep.c (_initialize_alpha_tdep): Update.
10013
d2630e69
AF
100142003-04-26 Adam Fedor <fedor@gnu.org>
10015
10016 * linespec.c (decode_objc): New function to decode ObjC calls
10017 (decode_line_1): Check for ObjC calls (using decode_objc)
10018 * Makefile (linespec.o): Update dependencies.
10019
3086aeae
DJ
100202003-04-26 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * breakpoint.h (struct breakpoint_ops): New.
10023 (struct breakpoint): Add ops member.
10024
10025 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
10026 (mention): Use new breakpoint ops member.
10027 (set_raw_breakpoint): Initialize ops field to NULL.
10028 (print_exception_catchpoint, print_one_exception_catchpoint)
10029 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
10030 (gnu_v3_exception_catchpoint_ops): New.
10031 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
10032
1fbec6c3
AF
100332003-04-25 Adam Fedor <fedor@gnu.org>
10034
10035 * Makefile.in (COMMON_OBS): Add objc-lang.o
10036
0ef21242
AC
100372003-04-25 Andrew Cagney <cagney@redhat.com>
10038
10039 * d10v-tdep.c (print_insn): Delete function.
10040 (display_trace): Use TARGET_PRINT_INSN.
10041 (_initialize_d10v_tdep): Do not set tm_print_insn.
10042 (d10v_gdbarch_init): Set print_insn.
10043
f75493ed
AC
100442003-04-25 Andrew Cagney <cagney@redhat.com>
10045
10046 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10047 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10048 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10049 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10050 (nr_dmap_regs, a0_regnum): ... new functions.
10051 (d10v_print_registers_info): Use a0_regnum, use register_size.
10052 (d10v_register_byte): Delete function.
10053 (d10v_register_raw_size): Delete function.
10054 (d10v_register_type): Use a0_regnum.
10055 (d10v_print_registers_info): Use a0_regnum.
10056 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10057 (d10v_gdbarch_init): Do not set register_byte or
10058 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10059 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10060 extract_address.
10061 (trace_command): Use XCALLOC.
10062 (print_insn): Delete reference to tm_print_insn.
10063 (saved_regs_unwinder): Use store_unsigned_integer instead of
10064 store_address.
10065 * frame.h (FRAME_OBSTACK_CALLOC): Define
10066
2202b100
DC
100672003-04-25 David Carlton <carlton@bactrian.org>
10068
10069 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10070
4e45ca2e
AF
100712003-04-24 Adam Fedor <fedor@gnu.org>
10072
10073 * objc-lang.c: Include "valprint.h"
10074 * Makefile.in (objc-lang.o): Update dependencies.
10075
93de3e7f
AF
100762003-04-24 Adam Fedor <fedor@gnu.org>
10077
8ffd9b1b 10078 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
10079 architecture dependant compilation and mark as unimplemented
10080 (until they get put in the gdbarch vector).
10081
0f20eeea
DC
100822003-04-23 David Carlton <carlton@bactrian.org>
10083
10084 * cp-support.c (cp_find_first_component): Accept 'operator' in
10085 more locations.
10086
74cfe982
AC
100872003-04-23 Andrew Cagney <cagney@redhat.com>
10088
10089 * infcall.c (call_function_by_hand): Eliminate redundant
10090 indentation. Move "saved_async" and "old_cleanups" to where they
10091 are needed.
8ffd9b1b 10092
52557533
AC
100932003-04-23 Andrew Cagney <cagney@redhat.com>
10094
10095 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10096 and "buffer". Move the "name" code to where it is needed.
10097
158775de
AC
100982003-04-23 Andrew Cagney <cagney@redhat.com>
10099
10100 * infcall.c (call_function_by_hand): Move variables "start_sp",
10101 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10102 code to ON_STACK switch branch.
8ffd9b1b 10103
ebc7896c
AC
101042003-04-23 Andrew Cagney <cagney@redhat.com>
10105
10106 * infcall.c (call_function_by_hand): Make declaration of "i",
10107 "sal", "bpt" and "old_sp" more local to their use. Delete #if
10108 lint.
10109
d727590f
AC
101102003-04-23 Andrew Cagney <cagney@redhat.com>
10111
10112 * infcall.c (call_function_by_hand): Delete variable
10113 "n_method_args". Localize "param_type"'s declaration to the loop
10114 that it is used. Reinstate code assigning to said variable -
10115 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
10116 Rationalize code using "param_type".
10117
d585e13a
AC
101182003-04-22 Andrew Cagney <cagney@redhat.com>
10119
10120 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10121 compute the breakpoint address. Only call FIX_CALL_DUMMY when
10122 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
10123 to DEPRECATED_PUSH_RETURN_ADDRESS.
10124
051caad9
KB
101252003-04-22 Kevin Buettner <kevinb@redhat.com>
10126
10127 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10128 on the DWARF2 register number prior to fetching a register.
10129
77296879
JB
101302003-04-22 J. Brobecker <brobecker@gnat.com>
10131
10132 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10133 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 10134 this macro was always set to 0.
77296879
JB
10135 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10136 considering the fact that this macro was always set to 0.
10137 * hppa-tdep.h (hppa_store_return_value): Likewise.
10138 (hppa_extract_return_value): Likewise.
10139
4252f1df
JB
101402003-04-22 J. Brobecker <brobecker@gnat.com>
10141
10142 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10143 the hppa-pro target only.
10144
14604c6b
JB
101452003-04-21 J. Brobecker <brobecker@gnat.com>
10146
10147 Ongoing multi-arch conversion effort for HP/UX:
10148 * config/pa/tm-hppa.h: Move all macro that are no longer
10149 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10150 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10151
77eb01d1
JB
101522003-04-21 J. Brobecker <brobecker@gnat.com>
10153
10154 * config/pa/tm-hppa.h: Obsolete a section that was only used
10155 for hppa-pro.
10156
61995b3b
JB
101572003-04-21 J. Brobecker <brobecker@gnat.com>
10158
10159 Ongoing multi-arch conversion for HP/UX.
10160 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10161 if already defined (allows hppa64 to stay non-multiarched for now).
10162 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10163
4aa79dcc
AC
101642003-04-21 Andrew Cagney <cagney@redhat.com>
10165
10166 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10167
0f751ff2
AC
101682003-04-21 Andrew Cagney <cagney@redhat.com>
10169
10170 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10171 "i386_num_mmx_regs".
10172
04714b91
AC
101732003-04-21 Andrew Cagney <cagney@redhat.com>
10174
10175 * infcall.c: New file.
10176 * infcall.h: New file.
10177 * valarith.c: Include "infcall.h".
10178 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10179 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10180 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10181 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10182 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10183 (SFILES): Add "infcall.c"
10184 (COMMON_OBS): Add "infcall.o".
10185 (infcall.o): Specify dependencies.
10186 * value.h (call_function_by_hand): Delete declaration.
10187 * inferior.h (run_stack_dummy): Delete declaration.
10188 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10189 (run_stack_dummy): Move to "infcall.c", merged into
10190 call_function_by_hand.
10191 * valops.c (call_function_by_hand): Moved to "infcall.c".
10192 (find_function_addr, value_arg_coerce): Ditto.
10193 (unwindonsignal_p, coerce_float_to_double): Ditto.
10194 (_initialize_valops): Move "set/show coerce-float-to-double", and
10195 "set/show unwindonsignal" commands to "infcall.c".
10196 * v850-tdep.c, target.h: Update comments.
10197 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10198 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10199 (sh64_init_extra_frame_info): Update comments.
10200 * mn10300-tdep.c: Update comments.
10201 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10202 * config/sparc/tm-sparc.h: Update comments.
10203 * breakpoint.h: Update comments.
10204 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10205 * arm-tdep.c: Update comment.
10206
f9d3c2a8
MK
102072003-04-19 Mark Kettenis <kettenis@gnu.org>
10208
c40e1eab
MK
10209 * i386-tdep.c (i386_num_register_names): New variable.
10210 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10211 (MM0_REGNUM): Remove redundant parentheses in define.
10212 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10213 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10214 i386_mxcsr_regnum_p): Remove redundant parentheses.
10215 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 10216
94ea66b3
MK
10217 * i386-tdep.c (i386_extract_return_value,
10218 i386_store_return_value): Correct check for availability of
10219 floating-point registers.
10220
54299a1d
MK
10221 * i386-tdep.c (i386_frame_num_args): Remove function.
10222 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10223
c86c27af
MK
10224 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10225 mmx_regnum_to_fp_regnum. Adjust all callers.
10226
f9d3c2a8
MK
10227 * i386-tdep.c (i386_get_longjmp_target): Use
10228 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10229 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10230 extract_address.
10231
94ba74a9
MK
102322003-04-19 Mark Kettenis <kettenis@gnu.org>
10233
10234 * core-regset.c: Update comments to reflect reality. Re-order
10235 includes.
10236 (fetch_core_registers): Use switch instead of if. Remove
10237 redundant prototype.
10238
4074e13c
JB
102392003-04-18 Jim Blandy <jimb@redhat.com>
10240
10241 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 10242 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 10243
e3ab4aba
RH
102442003-04-17 Richard Henderson <rth@redhat.com>
10245
10246 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10247
627bf7c1
EZ
102482003-04-17 Michael Snyder <msnyder@redhat.com>
10249 Karen Bennet <bennet@redhat.com>
10250
10251 Committed by Elena Zannoni <ezannoni@redhat.com>
10252 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10253
514621a9
EZ
102542003-04-17 Elena Zannoni <ezannoni@redhat.com>
10255
10256 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10257 value if the return type is void.
514621a9 10258
b4acd559
JJ
102592003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10260
10261 * thread-db.c: Reindented.
8ffd9b1b 10262
530b167e 102632003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10264
10265 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10266 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10267 as types.
10268
0a48e7e8
MS
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
8ffd9b1b 10292
ab9fe00e
KB
102932003-04-16 Kevin Buettner <kevinb@redhat.com>
10294
610a3745 10295 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10296 the size of ``long double'' to 16, instead of 8.
10297
e64a344c
MK
102982003-04-16 Mark Kettenis <kettenis@gnu.org>
10299
10300 * i386-linux-nat.c: Add some whitespace to make things more
10301 readable.
10302 (fetch_register, store_register, fetch_inferior_registers,
10303 store_inferior_registers): Get rid of assignment in if-statement.
10304 (store_register): Fix typo in error message.
10305
25d41031
AC
103062003-04-16 Andrew Cagney <cagney@redhat.com>
10307
10308 * utils.c (xmmalloc): Always allocate something, matches
10309 libiberty/xmalloc's semantics.
10310 (xmrealloc, xmcalloc): Ditto.
10311
c50901fd
AC
103122003-04-16 Andrew Cagney <cagney@redhat.com>
10313
10314 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10315 update comments.
10316 (get_frame_type): Initialize unwind and type when needed.
10317 (get_frame_id, frame_register_unwind): Ditto.
10318
f81824a9
AC
103192003-04-16 Andrew Cagney <cagney@redhat.com>
10320
10321 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10322 obsolete.
10323 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10324 * sparcl-stub.c: Obsolete file.
10325 * config/sparc/tm-sparclet.h: Obsolete file.
10326 * sparclet-stub.c: Obsolete file.
10327 * sparclet-rom.c: Obsolete file.
10328 * sparcl-tdep.c: Obsolete file.
10329 * config/sparc/tm-sparclite.h: Obsolete file.
10330 * config/sparc/sparclite.mt: Obsolete file.
10331 * config/sparc/sparclet.mt: Obsolete file.
10332 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10333 sparc86x-*-* obsolete.
10334
9219021c
DC
103352003-04-15 David Carlton <carlton@math.stanford.edu>
10336
10337 * Makefile.in (SFILES): Add cp-namespace.c.
10338 (COMMON_OBS): Add cp-namespace.o.
10339 (block.o): Depend on gdb_obstack_h and cp_support_h.
10340 (buildsym.o): Depend on cp_support_h.
10341 (cp-namespace.o): New.
10342 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10343 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10344 (dwarf2read.o): Depend on cp_support_h.
10345 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10346 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10347 processing_current_namespace.
10348 (read_namespace): Update processing_current_namespace; check for
10349 anonymous namespaces.
10350 (dwarf2_name): New function.
10351 (dwarf2_extension): Ditto.
10352 * cp-support.h: Update copyright, contributors.
10353 Add inclusion guards.
10354 Add opaque declaration for structs obstack, block, symbol.
10355 (struct using_direct): New struct.
10356 Add declarations for cp_find_first_component,
10357 cp_entire_prefix_len, processing_has_namespace_info,
10358 processing_current_namespace, cp_is_anonymous,
10359 cp_add_using_directive, cp_initialize_namespace,
10360 cp_finalize_namespace, cp_set_block_scope,
10361 cp_scan_for_anonymous_namespaces.
10362 * cp-namespace.c: New file.
10363 * cp-support.c: Update copyright.
10364 Include ctype.h, gdb_assert.h, gdbcmd.h.
10365 New variable maint_cplus_cmd_list.
10366 (cp_find_first_component): New function.
10367 (cp_entire_prefix_len, maint_cplus_command)
10368 (first_component_command, _initialize_cp_support): Ditto.
10369 * buildsym.c: Include cp-support.h.
10370 New variable using_list.
10371 (add_symbol_to_list): Check for anonymous namespaces.
10372 (finish_block): Set block's scope.
10373 (start_symtab): Initialize C++ namespace support.
10374 (end_symtab): Finalize C++ namespace support.
10375 * block.h: Add opaque declarations for structs
10376 block_namespace_info, using_direct, and obstack.
10377 Add declarations for block_set_scope and block_set_using.
10378 (struct block): Add 'language_specific' member.
10379 (BLOCK_NAMESPACE): New macro.
10380 * block.c: Include gdb_obstack.h and cp-support.h.
10381 (struct block_namespace_info): New struct.
10382 (block_set_scope): New function.
10383 (block_set_using, block_initialize_namespace): Ditto.
10384
d5a921c9
KB
103852003-04-14 Kevin Buettner <kevinb@redhat.com>
10386
10387 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10388 (locate_base): Return early if there aren't any link map offsets.
10389 (svr4_solib_create_inferior_hook): Warn if shared library support
10390 is unavailable.
10391
d2a52b27
DC
103922003-04-14 David Carlton <carlton@math.stanford.edu>
10393
10394 * symtab.c (symbol_set_names): Add prefix when storing Java names
10395 in hash table. Fix for PR java/1039.
10396
980cae7a
DC
103972003-04-14 David Carlton <carlton@math.stanford.edu>
10398
10399 * symtab.c (symbol_set_names): Rename 'name' arg to
10400 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10401 * symtab.h: Change 'name' argument in declaration of
10402 symbol_set_names to 'linkage_name'.
10403 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10404
e227b13c
AC
104052003-04-14 Andrew Cagney <cagney@redhat.com>
10406
10407 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10408 return the fully sign-extended register value.
10409 (get_frame_pointer): Ditto.
10410 (mips_pop_frame): Initialize "proc_desc" after checking for a
10411 dummy frame.
10412
36712a20
AC
104132003-04-14 Andrew Cagney <cagney@redhat.com>
10414
10415 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10416 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10417 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10418 (mips_push_register): Delete function.
10419 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10420 PUSH_FP_REGNUM.
10421
44ea7b70
JB
104222003-04-14 Jim Blandy <jimb@redhat.com>
10423
10424 * symmisc.c: #include "gdb_regex.h".
10425 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10426 functions.
10427 * maint.c (maintenance_list_command): New function.
10428 (_initialize_maint_cmds): Register the above as commands.
10429 * symtab.h (maintenance_list_symtabs,
10430 maintenance_list_psymtabs): New declarations.
10431 * cli/cli-cmds.c (maintenancelistlist): New variable.
10432 (init_cmd_lists): Initialize it.
10433 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10434 * gdbcmd.h (maintenancelistlist): New declaration.
10435 * Makefile.in (symmisc.o): Update dependencies.
10436
2d0c7962
EZ
104372003-04-14 Elena Zannoni <ezannoni@redhat.com>
10438
10439 * s390-nat.c: Include asm/types.h for addr_t.
10440
1947a811
CV
104412003-04-14 Corinna Vinschen <vinschen@redhat.com>
10442
10443 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10444 actually incoming type.
10445
adb616d7
AC
104462003-04-13 Andrew Cagney <cagney@redhat.com>
10447
10448 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10449 get_next_frame and get_frame_saved_regs.
10450
9b5e151c
AC
104512003-04-13 Andrew Cagney <cagney@redhat.com>
10452
10453 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10454 of gdbarch_num_regs.
10455
ef6e7e13
AC
104562003-04-13 Andrew Cagney <cagney@redhat.com>
10457
10458 * frame.h: Mention what replaced what in "struct frame_info".
10459 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10460 deprecated_update_frame_base_hack and
10461 deprecated_update_frame_pc_hack.
10462 * hppa-tdep.c: Ditto.
10463
61fbb938
DJ
104642003-04-13 Daniel Jacobowitz <drow@mvista.com>
10465
10466 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10467 to read_reg and update its comment. Remove regnum member.
10468 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10469 Don't call read_reg when setting in_reg. Call read_reg to get
10470 the frame base if it's in a register. Return the register number
10471 on the stack instead of in the context. Remove extra arguments
10472 to read_reg.
10473 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10474 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10475 the register number on the expression stack.
10476 (needs_frame_read_reg): Remove extra arguments.
10477
0d53c4c4
DJ
104782003-04-13 Daniel Jacobowitz <drow@mvista.com>
10479
10480 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10481 made non-static.
10482 (execute_stack_op): All callers updated.
10483 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10484 * dwarf2loc.c (find_location_expression): New function.
10485 (dwarf_expr_frame_base): Call it.
10486 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10487 (dwarf2_tracepoint_var_ref): New function, broken out from
10488 locexpr_tracepoint_var_ref.
10489 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10490 Make static.
10491 (loclist_read_variable, loclist_read_needs_frame): New functions.
10492 (loclist_describe_location, loclist_tracepoint_var_ref): New
10493 functions.
10494 (dwarf2_loclist_funcs): New struct location_funcs.
10495 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10496 (struct dwarf2_locexpr_baton): Add comments.
10497 (dwarf2_loclist_funcs): New extern.
10498 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10499 base_address and base_known.
10500 (dwarf_loc_buffer): New variable.
10501 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10502 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10503 (dwarf2_has_info): Initialize dwarf_loc_offset.
10504 (dwarf2_build_psymtabs): Read in .debug_loc.
10505 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10506 DWARF_LOC_SIZE.
10507 (psymtab_to_symtab_1): Likewise. Move base address calculation
10508 here, from...
10509 (dwarf2_get_pc_bounds): ... here. Use the base address from
10510 cu_header.
10511 (dwarf2_symbol_mark_computed): Handle location lists.
10512
6aca59a3
DJ
105132003-04-13 Daniel Jacobowitz <drow@mvista.com>
10514
10515 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10516 if the linkage name demangled successfully.
10517
aca1fcd0
MK
105182003-04-13 Mark Kettenis <kettenis@gnu.org>
10519
97095916
MK
10520 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10521 disassmbly_flavour): Removed.
10522
aca1fcd0
MK
10523 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10524
562a961f
MK
105252003-04-13 Mark Kettenis <kettenis@gnu.org>
10526
10527 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10528
bd013d54
AC
105292003-04-12 Andrew Cagney <cagney@redhat.com>
10530
10531 * frame.h (struct frame_info): Move definition from here ...
10532 * frame.c (struct frame_info): ... to here.
10533
167ef8b1
AC
105342003-04-12 Andrew Cagney <cagney@redhat.com>
10535
10536 * gdbthread.h (save_infrun_state): Delete parameter
10537 "prev_func_start".
10538 (struct thread_info): Delete field "prev_func_start".
10539 (load_infrun_state): Ditto.
10540 * thread.c (load_infrun_state, save_infrun_state): Update.
10541 * infrun.c (prev_func_start): Delete variable.
10542 (context_switch, init_wait_for_inferior): Update.
10543 (stop_stepping, keep_going): Update.
10544
da3331ec
AC
105452003-04-12 Andrew Cagney <cagney@redhat.com>
10546
10547 * gdbarch.sh: Add missing opaque declarations.
10548 * gdbarch.h: Regnerate.
10549 * symtab.h: Add missing opaque declarations.
10550 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10551 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10552 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10553 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10554 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10555 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10556 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10557 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10558 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10559 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10560 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10561 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10562 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10563
18adea3f
AC
105642003-04-11 Andrew Cagney <cagney@redhat.com>
10565
10566 * frame.c (get_frame_id): Return this frame's "id".
10567 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10568 function start.
10569 (legacy_saved_regs_this_id): Replace function body with
10570 internal-error.
10571 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10572 FRAME_OBSTACK_ZALLOC.
10573 (create_new_frame): Mark the frame ID as valid.
10574
2252e863
AO
105752003-04-11 Alexandre Oliva <aoliva@redhat.com>
10576
10577 * Makefile.in (libbfd_h): Added missing setting.
10578 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10579 according to the selected ABI.
10580
a8245ab8
JJ
105812003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10582
10583 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10584
6913c89a
AC
105852003-04-11 Andrew Cagney <cagney@redhat.com>
10586
10587 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10588 SAVED_PC_AFTER_CALL.
10589 * gdbarch.h, gdbarch.c: Regenerate.
10590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10591 * x86-64-tdep.c (x86_64_init_abi): Update.
10592 * vax-tdep.c (vax_gdbarch_init): Update.
10593 * v850-tdep.c (v850_gdbarch_init): Update.
10594 * sparc-tdep.c (sparc_gdbarch_init): Update.
10595 * sh-tdep.c (sh_gdbarch_init): Update.
10596 * s390-tdep.c (s390_gdbarch_init): Update.
10597 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10598 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10599 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10600 * mips-tdep.c (mips_gdbarch_init): Update.
10601 * mcore-tdep.c (mcore_gdbarch_init): Update.
10602 * m68k-tdep.c (m68k_gdbarch_init): Update.
10603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10604 * ia64-tdep.c (ia64_gdbarch_init): Update.
10605 (ia64_saved_pc_after_call): Update declaration.
10606 * i386ly-tdep.c (i386lynx_init_abi): Update.
10607 * i386-tdep.c (i386_gdbarch_init): Update.
10608 * hppa-tdep.c (hppa_gdbarch_init): Update.
10609 * h8300-tdep.c (h8300_gdbarch_init): Update.
10610 * frv-tdep.c (frv_gdbarch_init): Update.
10611 * cris-tdep.c (cris_gdbarch_init): Update.
10612 * avr-tdep.c (avr_gdbarch_init): Update.
10613 * arm-tdep.c (arm_gdbarch_init): Update.
10614 * alpha-tdep.c (alpha_gdbarch_init): Update.
10615 * ns32knbsd-nat.c (frame_num_args): Update.
10616 * ns32k-tdep.c (umax_frame_num_args): Update.
10617 * mips-tdep.c (mips_init_frame_pc_first): Update.
10618 * infrun.c (step_over_function): Update.
10619 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10620 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10621 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10622 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10623 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10624 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10625 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10626 * arch-utils.c (init_frame_pc_default): Update.
10627 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10628 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10629 declaration.
8ffd9b1b 10630
38edeab8
AC
106312003-04-11 Andrew Cagney <cagney@redhat.com>
10632
10633 * i387-tdep.c: Update copyright.
10634 (i387_to_double): Delete function.
10635 (double_to_i387): Delete function.
10636
81f8a206
AC
106372003-04-10 Andrew Cagney <cagney@redhat.com>
10638
10639 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10640 frame's function's address. Simplify.
10641 (d10v_frame_unwind_cache): Check that the frame's function is
10642 non-zero.
10643
6e691f7a
JB
106442003-04-10 Jim Blandy <jimb@redhat.com>
10645
10646 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10647 call to set_gdbarch_deprecated_push_arguments.
10648
7f78e237
AC
106492003-04-10 Andrew Cagney <cagney@redhat.com>
10650
10651 * frame.c (fprint_frame_id): New function.
10652 (fprint_frame_type, fprint_frame): New function.
10653 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10654 (create_sentinel_frame, get_frame_id): Ditto.
10655 (frame_id_p, frame_id_eq): Ditto.
10656 (frame_id_inner, create_new_frame): Ditto.
10657 (legacy_get_prev_frame, get_prev_frame): Ditto.
10658 (deprecated_update_frame_pc_hack): Ditto.
10659 (frame_register_unwind): Ditto.
10660 (deprecated_update_frame_base_hack): Ditto.
10661
f870b49b
CV
106622003-04-10 Corinna Vinschen <vinschen@redhat.com>
10663
10664 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10665 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10666 frame_chain function.
10667 * Makefile.in: Add dependencies due to above change.
10668
7c86889b
CV
106692003-04-10 Corinna Vinschen <vinschen@redhat.com>
10670
10671 * blockframe.c (legacy_frame_chain_valid): Move call to
10672 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10673 inside_entry_file.
10674
d0a55772
AC
106752003-04-09 Andrew Cagney <cagney@redhat.com>
10676
10677 * frame.h (struct frame_id): Replace "pc" and "base" with
10678 "stack_addr" and "code_addr". Update comments.
10679 (frame_id_build): Update parameter names and comment.
10680 (struct frame_info): Replace "id_p" and "id" with "this_id".
10681 * dummy-frame.c (dummy_frame_this_id): Update.
10682 * breakpoint.c (print_one_breakpoint): Update.
10683 * frame.c (get_frame_id): Update.
10684 (get_frame_base, frame_id_build): Update.
10685 (create_sentinel_frame, legacy_get_prev_frame): Update.
10686 (deprecated_update_frame_base_hack): Update.
10687 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10688 (frame_id_inner): Ditto.
10689
ac16bf07
AC
106902003-04-09 Andrew Cagney <cagney@redhat.com>
10691
10692 * defs.h (gdb_print_host_address): Make "addr" parameter a
10693 pointer constant.
10694 * utils.c (gdb_print_host_address): Update.
10695
366cfc9e
KB
106962003-04-09 Kevin Buettner <kevinb@redhat.com>
10697
10698 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10699 register number for R0 is 0.
10700
cd983b5c
JB
107012003-04-09 J. Brobecker <brobecker@gnat.com>
10702
10703 * frame.h (struct gdbarch): Add opaque structure definition
10704 to avoid a compilation warning on LynxOS 4.0.
10705
d1340264
AC
107062003-04-09 Andrew Cagney <cagney@redhat.com>
10707
10708 * frame.h (struct frame_info): Delete field "pc". Replace
10709 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10710 structure.
10711 * frame.c (frame_pc_unwind): Update.
10712 (create_sentinel_frame): Do not set "pc".
10713 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10714 (get_frame_pc): Call frame_pc_unwind.
10715 (deprecated_update_frame_pc_hack): Update.
10716 (create_new_frame): Use "pc" not "->pc".
10717
90a6fffb
AC
107182003-04-09 Andrew Cagney <cagney@redhat.com>
10719
10720 * frame.c (get_frame_id): Eliminate code updating "frame".
10721 (legacy_get_prev_frame): Ditto.
10722 (get_frame_base): Return id.base directly.
10723 (deprecated_update_frame_base_hack): Update "id.base".
10724 * frame.h (struct frame_info): Delete field "frame".
10725
2fbce691
AC
107262003-04-09 Andrew Cagney <cagney@redhat.com>
10727
10728 * NEWS: Mention that the "Sequent family" is obsolete.
10729 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10730 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10731 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10732 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10733 * config/i386/tm-ptx4.h: Obsolete file.
10734 * config/i386/tm-ptx.h: Obsolete file.
10735 * symm-tdep.c: Obsolete file.
10736 * config/i386/symmetry.mt: Obsolete file.
10737 * config/i386/tm-symmetry.h: Obsolete file.
10738 * symm-nat.c: Obsolete file.
10739 * config/i386/nm-symmetry.h: Obsolete file.
10740 * config/i386/xm-symmetry.h: Obsolete file.
10741 * config/i386/symmetry.mh: Obsolete file.
10742 * config/i386/nm-ptx4.h: Obsolete file.
10743 * config/i386/ptx4.mh: Obsolete file.
10744 * config/i386/ptx.mt: Obsolete file.
10745 * config/i386/ptx.mh: Obsolete file.
10746 * config/i386/xm-ptx4.h: Obsolete file.
10747 * config/i386/xm-ptx.h: Obsolete file.
10748
78c43945
AC
107492003-04-09 Andrew Cagney <cagney@redhat.com>
10750
10751 Obsolete mips*-*-mach3*.
10752 * NEWS: Mention that mips*-*-mach3* is obsolete.
10753 * m3-nat.c: Obsolete file.
10754 * config/nm-m3.h: Obsolete file.
10755 * config/mips/tm-mipsm3.h: Obsolete file.
10756 * config/mips/mipsm3.mt: Obsolete file.
10757 * config/mips/mipsm3.mh: Obsolete file.
10758 * config/mips/xm-mipsm3.h: Obsolete file.
10759 * mipsm3-nat.c: Obsolete file.
10760 * configure.host: Obsolete mips-dec-mach3*.
10761 * configure.tgt: Obsolete mips*-*-mach3*.
10762
f1908289
AC
107632003-04-09 Andrew Cagney <cagney@redhat.com>
10764
10765 * doublest.h: Update copyright.
10766 (deprecated_store_floating, deprecated_extract_floating): Rename
10767 store_floating and extract_floating. Update comments.
10768 * doublest.c: Update copyright.
10769 (extract_floating_by_length): Replace extract_floating.
10770 (store_floating_by_length): Replace store_floating.
10771 (deprecated_extract_floating): New function.
10772 (deprecated_store_floating): New function.
10773 (extract_typed_floating): Call extract_floating_by_length.
10774 (store_typed_floating): Call store_floating_by_length.
10775 * x86-64-tdep.c (x86_64_store_return_value): Update.
10776 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10777 (sh64_extract_return_value): Update.
10778 (sh_sh4_register_convert_to_virtual): Update.
10779 (sh_sh64_register_convert_to_virtual): Update.
10780 (sh_sh4_register_convert_to_raw): Update.
10781 (sh_sh64_register_convert_to_raw): Update.
10782 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10783 (rs6000_register_convert_to_raw): Update.
10784 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10785 (ia64_register_convert_to_raw): Update.
10786 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10787 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10788 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10789 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10790 (alpha_register_convert_to_raw): Update.
10791
4443bd83
AC
107922003-04-08 Andrew Cagney <cagney@redhat.com>
10793
10794 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10795 * gdbarch.h, gdbarch.c: Re-generate.
10796 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10797 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10798 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10799 conditionally, use frame_pc_unwind as an alternative. Add
10800 comments.
10801 * arch-utils.c (init_frame_pc_default): Only call
10802 SAVED_PC_AFTER_CALL when available.
10803
c0236d92
EZ
108042003-04-08 Elena Zannoni <ezannoni@redhat.com>
10805
fbe586ae 10806 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10807 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10808 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10809 (start_remote): Ditto.
10810 (handle_inferior_event): Ditto.
10811 (save_inferior_status): Ditto.
10812 (restore_inferior_status): Ditto.
10813 * infcmd.c (attach_command): Ditto.
10814 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10815 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10816 * alpha-tdep.c (heuristic_proc_start): Ditto.
10817 * mips-tdep.c (heuristic_proc_start): Ditto.
10818 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10819 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10820 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10821 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10822 * remote-vx.c (vx_create_inferior): Ditto.
10823
108242003-04-08 Elena Zannoni <ezannoni@redhat.com>
10825
10826 * infrun.c (stop_soon_quietly): Make it an enum, to better
10827 override the default behavior of handle_inferior_event.
10828 (clear_proceed_status): Update uses of stop_soon_quietly to
10829 reflect that it is now an enum.
10830 (start_remote): Ditto.
10831 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10832 is set to handle the new GNU/Linux kernel behavior for
10833 attach/sigstop. Update uses of stop_soon_quietly.
10834 * inferior.h (enum stop_kind): New enum.
10835 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10836 Reset normal handle_inferior_event behavior, afterwards.
10837 * fork-child.c (startup_inferior): Update.
10838 * alpha-tdep.c (heuristic_proc_start): Update.
10839 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10840 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10841 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10842 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10843 * remote-vx.c (vx_create_inferior): Update.
10844 * mips-tdep.c (heuristic_proc_start): Update.
10845
1211bce3
EZ
108462003-04-07 Elena Zannoni <ezannoni@redhat.com>
10847
10848 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10849 be freed more than once, causing wild memory corruptions.
1211bce3 10850 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10851 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10852 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10853 with the "core" target.
1211bce3 10854
f0ef6b29
KB
108552003-04-07 Kevin Buettner <kevinb@redhat.com>
10856
10857 * mips-tdep.c (mips_print_fp_register): New function, created from
10858 do_fp_register_row(). Registers are now (also) printed as hex.
10859 Only one register is printed per row.
10860 (mips_print_register, do_fp_register_row): Print floating point
10861 registers with mips_print_fp_register().
10862
8cf71652
AC
108632003-04-06 Andrew Cagney <cagney@redhat.com>
10864
5e488a7b
AC
10865 * valprint.h (inspect_it): Add extern declaration.
10866 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10867 (selectors_info, classes_info): Ditto.
10868 (find_objc_msgcall): Fix indentation.
10869 (objc_printstr): Delete extern declarations.
10870
8cf71652
AC
10871 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10872
e6ba3bc9
AC
108732003-04-06 Andrew Cagney <cagney@redhat.com>
10874
10875 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10876 Update comment.
10877 * frame.c (legacy_saved_regs_this_id): Update.
10878 (legacy_get_prev_frame): Update.
10879 * xstormy16-tdep.c: Update comment.
10880 * sparc-tdep.c (sparc_frame_chain): Update comment.
10881 * blockframe.c (legacy_frame_chain_valid): Update.
10882
55e1d7e7
AC
108832003-04-06 Andrew Cagney <cagney@redhat.com>
10884
996179ee
AC
10885 * valprint.c (val_print_type_code_int): Delete #ifdef
10886 PRINT_TYPELESS_INTEGER code.
10887
55e1d7e7
AC
10888 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10889 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10890 multi-arch definition.
10891 * gdbarch.h: Re-generate.
10892
43bd9a9e
AC
108932003-04-05 Andrew Cagney <cagney@redhat.com>
10894
10895 Eliminate FRAME_FIND_SAVED_REGS.
10896 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10897 Change FSR parameter to a pointer.
10898 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10899 Assume FSR parameter is a pointer.
10900 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10901 Make fsr a pointer.
10902 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10903 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10904 saved_regs a pointer.
10905 (hppa_frame_saved_pc): Ditto.
10906 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10907 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10908 pointer.
10909 (restore_pc_queue): Make fsr a pointer.
10910 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10911 (hppa_frame_chain): Make saved_regs a pointer, call
10912 hppa_frame_init_saved_regs.
10913 * sparc-tdep.c: Include "gdb_assert.h".
10914 (sparc_frame_find_saved_regs): Replace internal_error with
10915 gdb_assert.
10916 * remote-vxsparc.c (vx_read_register): Delete reference to
10917 FRAME_FIND_SAVED_REGS.
10918 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10919 * gdbarch.h: Regenerate.
10920 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10921 (deprecated_get_frame_saved_regs): Delete declaration.
10922 (struct frame_saved_regs): Delete definition.
10923 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10924 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10925 (hppa_frame_find_saved_regs): Delete declaration.
10926 (FRAME_FIND_SAVED_REGS): Delete macro.
10927 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10928 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10929 FRAME_FIND_SAVED_REGS in comment.
10930
be41e9f4
AC
109312003-04-05 Andrew Cagney <cagney@redhat.com>
10932
10933 * frame.c (frame_func_unwind, get_frame_func): New functions.
10934 * frame.h (get_frame_func, frame_func_unwind): Declare.
10935 (struct frame_info): Add field "prev_func" for caching the
10936 previous frame's function address.
10937 * arm-tdep.c (arm_frameless_function_invocation): Combine
10938 get_pc_function_start and get_frame_pc into get_frame_func.
10939 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10940 (sh64_nofp_frame_init_saved_regs): Ditto.
10941 * s390-tdep.c (s390_function_start): Ditto.
10942 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10943 (rs6000_frameless_function_invocation): Ditto.
10944 (rs6000_frame_saved_pc): Ditto.
10945 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10946 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10947 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10948 (i386_frame_init_saved_regs): Ditto.
10949 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10950 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10951 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10952 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10953 * blockframe.c (frameless_look_for_prologue): Ditto.
10954
a01dd7cc
AC
109552003-04-05 Andrew Cagney <cagney@redhat.com>
10956
10957 * frame.c (legacy_get_prev_frame): Link prev to next at the
10958 function start. Update comments.
10959
5e5592e6
AC
109602003-04-05 Andrew Cagney <cagney@redhat.com>
10961
10962 * frame.c (get_frame_id): Update comment.
10963 (legacy_get_prev_frame): Update comment.
10964 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10965 * gdbarch.h: Regenerate.
10966 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10967 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10968
6fba5002
AC
109692003-04-05 Andrew Cagney <cagney@redhat.com>
10970
10971 * stack.c (print_frame_info): Use get_frame_pc.
10972
7df05f2b
AC
109732003-04-04 Andrew Cagney <cagney@redhat.com>
10974
10975 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10976 the frame's type from the unwinder.
10977 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10978 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10979 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10980 (get_frame_base_address): Use get_frame_type.
10981 (get_frame_locals_address, get_frame_args_address): Ditto.
10982 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10983 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10984 (struct frame_info): Add comment explaining why the frame contains
10985 a "type" field.
10986 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10987 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10988 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10989 NORMAL_FRAME.
10990 * frame-unwind.h: Include "frame.h".
10991 (struct frame_unwind): Add "type" field.
10992 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10993
11889732
AC
109942003-04-04 Andrew Cagney <cagney@redhat.com>
10995
10996 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10997 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10998 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10999 get_frame_base.
11000 (d10v_unwind_dummy_id): Use frame_id_build.
11001 * frame.c (find_frame_sal): Use get_frame_pc.
11002 (create_new_frame): Use deprecated_update_frame_pc_hack and
11003 deprecated_update_frame_base_hack.
11004 (create_sentinel_frame): Add comment about ->pc going away.
11005 (get_prev_frame): Add comment about ->pc going away.
11006 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
11007 frame_id_build, deprecated_update_frame_pc_hack and
11008 deprecated_update_frame_base_hack.
11009 (select_frame): Use get_frame_pc.
11010 (legacy_saved_regs_this_id): Use frame_id_build.
11011
50c46a0d
EZ
110122003-04-04 Elena Zannoni <ezannoni@redhat.com>
11013
fbe586ae
RH
11014 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
11015 signed integer case.
11016 (classify_argument): Handle enumerations and references.
50c46a0d 11017
50bbdbd9
AC
110182003-04-04 Andrew Cagney <cagney@redhat.com>
11019
11020 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
11021 ID to NULL.
11022
36018d2e
AF
110232003-04-01 Adam Fedor <fedor@gnu.org>
11024
11025 * gdb/objc-lang.c (selectors_info): Replace calls to
11026 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
11027 SYMBOL_NATURAL_NAME.
11028 (classes_info, find_methods): Likewise.
11029
35cec841
KB
110302003-04-03 Kevin Buettner <kevinb@redhat.com>
11031
11032 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
11033 ``mach'' to the value determined by bfd_default_set_arch_mach().
11034
43136899
BR
110352003-04-02 Bob Rossi <bob_rossi@cox.net>
11036
11037 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
11038 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
11039 (mi-cmd-file.o): Update dependencies.
11040
040b99fd
KB
110412003-04-01 Kevin Buettner <kevinb@redhat.com>
11042
11043 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11044 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11045
9a3d7dfd
AF
110462003-04-01 Adam Fedor <fedor@gnu.org>
11047
11048 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11049 * language.h (struct language_defn): Add la_demangle.
11050 (language_demangle): Declare.
11051 * language.c (language_demangle): New function.
11052 (unk_lang_demangle): Likewise.
11053 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 11054 Add ukn_lang_demangle.
9a3d7dfd 11055 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 11056 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
11057 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11058 (cplus_language_defn): Add cplus_demangle for la_demangle element.
11059 * jv-lang.c (java_demangle): New function
11060 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
11061 * objc-lang.c (objc_demangle): Add options argument
11062 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
11063 * maint.c (maintenance_demangle): Replace switch with
11064 call to language_demangle.
11065 * utils.c (fprintf_symbol_filtered): Likewise.
11066
5e074003
AC
110672003-04-01 Andrew Cagney <cagney@redhat.com>
11068
11069 * printcmd.c (print_frame_nameless_args): Delete #ifdef
11070 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11071 PRINT_TYPELESS_INTEGER.
11072 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11073 PUSH_RETURN_ADDRESS.
11074
270cb5d6
AC
110752003-04-01 Andrew Cagney <cagney@redhat.com>
11076
11077 * Makefile.in (d10v-tdep.o): Update dependencies.
11078 * d10v-tdep.c: Include "frame-base.h".
11079 (d10v_frame_unwind): Make constant.
11080 (d10v_frame_base_address): New function.
11081 (d10v_frame_base): New variable.
11082 (d10v_gdbarch_init): Set frame_base default.
11083 (struct d10v_unwind_cache): Add the field "prev_sp". Update
11084 comment for base.
11085 (d10v_frame_unwind_cache): Set and use "prev_sp".
11086 (d10v_frame_this_id): Use the previous frame's inner most stack
11087 address and this frame's func address for the frame ID. Use
11088 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 11089
6bfb3e36
AC
110902003-04-01 Andrew Cagney <cagney@redhat.com>
11091
11092 * frame.h (get_frame_locals_address, get_frame_args_address):
11093 Refer to the base address, instead of the address of the first
11094 local or parameter.
8ffd9b1b 11095
da62e633
AC
110962003-04-01 Andrew Cagney <cagney@redhat.com>
11097
11098 Add frame debug info addresses:
11099 * frame-base.c: New file.
11100 * frame-base.h: New file.
11101 * frame.h (struct frame_base): Add opaque declaration.
11102 (get_frame_base): Update comment.
11103 (get_frame_base_address): Declare.
11104 (get_frame_locals_address): Declare.
11105 (get_frame_args_address): Declare.
11106 (struct frame_info): Add "base" and "base_cache". Update
11107 comments on the unwinder.
11108 * frame.c: Include "frame-base.h".
11109 (get_frame_locals_address): New function.
11110 (get_frame_base_address): New function.
11111 (get_frame_args_address): New function.
11112 * findvar.c (read_var_value): Use get_frame_locals_address and
11113 get_frame_args_address.
11114 * stack.c (frame_info): Use get_frame_locals_address and
11115 get_frame_args_address.
11116 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11117 moved to "frame-base.c".
11118 * printcmd.c (print_frame_nameless_args): Ditto.
11119 * symtab.h (address_class): Update comments.
11120 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11121 get_frame_base_address.
11122 * dwarf2expr.c (execute_stack_op): Ditto.
11123 * Makefile.in (frame_base_h): Define.
11124 (frame.o): Update dependencies.
11125 (frame-base.o): Add dependencies.
11126 (SFILES): Add frame-base.c.
11127 (COMMON_OBS): Add frame-base.o.
11128
3d30e9c2
AC
111292003-04-01 Andrew Cagney <cagney@redhat.com>
11130
11131 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11132 CALL_DUMMY_LENGTH): Ditto.
11133 * gdbarch.c: Re-generate.
11134 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11135 (CALL_DUMMY_LENGTH): Delete macro.
11136 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11137 * arm-tdep.c (arm_gdbarch_init): Ditto.
11138 * avr-tdep.c (avr_gdbarch_init): Ditto.
11139 * cris-tdep.c (cris_gdbarch_init): Ditto.
11140 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11141 * frv-tdep.c (frv_gdbarch_init): Ditto.
11142 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11143 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11144 * i386-tdep.c (i386_gdbarch_init): Ditto.
11145 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11147 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11148 * mips-tdep.c (mips_gdbarch_init): Ditto.
11149 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11150 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11151 * s390-tdep.c (s390_gdbarch_init): Ditto.
11152 * sh-tdep.c (sh_gdbarch_init): Ditto.
11153 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11154 * v850-tdep.c (v850_gdbarch_init): Ditto.
11155 * vax-tdep.c (vax_gdbarch_init): Ditto.
11156 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11157
ce0c7262
CV
111582003-04-01 Corinna Vinschen <vinschen@redhat.com>
11159
11160 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11161
73dd234f
AC
111622003-04-01 Andrew Cagney <cagney@redhat.com>
11163
11164 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11165 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11166 * gdbarch.h, gdbarch.c: Re-generate.
11167 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11168 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11169 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11170 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11171 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11172 * infcmd.c (run_stack_dummy): Simplify assuming
11173 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11174 * infrun.c (handle_inferior_event): Ditto.
11175 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11176 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11177 * arm-tdep.c (arm_gdbarch_init): Ditto.
11178 * avr-tdep.c (avr_gdbarch_init): Ditto.
11179 * cris-tdep.c (cris_gdbarch_init): Ditto.
11180 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11181 * frv-tdep.c (frv_gdbarch_init): Ditto.
11182 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11183 * i386-tdep.c (i386_gdbarch_init): Ditto.
11184 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11186 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11187 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11188 * mips-tdep.c (mips_gdbarch_init): Ditto.
11189 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11190 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11191 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11192 * s390-tdep.c (s390_gdbarch_init): Ditto.
11193 * sh-tdep.c (sh_gdbarch_init): Ditto.
11194 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11195 * v850-tdep.c (v850_gdbarch_init): Ditto.
11196 * vax-tdep.c (vax_gdbarch_init): Ditto.
11197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11198
97606a13
DJ
111992003-04-01 Daniel Jacobowitz <drow@mvista.com>
11200
11201 * symfile.c (symfile_relocate_debug_section): Update call to
11202 bfd_simple_get_relocated_section_contents.
11203
e8ab51f7
AC
112042003-03-31 Andrew Cagney <cagney@redhat.com>
11205
11206 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11207 * gdbarch.h, gdbarch.c: Regenerate.
11208 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11209 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11210 available.
11211 * frame.h (generic_fix_call_dummy): Delete declaration.
11212 * dummy-frame.h: Update comment.
11213 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11215 fix_call_dummy.
11216 * sh-tdep.c (sh_gdbarch_init): Ditto.
11217 * s390-tdep.c (s390_gdbarch_init): Ditto.
11218 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11221 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11222 * i386-tdep.c (i386_gdbarch_init): Ditto.
11223 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11224 * frv-tdep.c (frv_gdbarch_init): Ditto.
11225 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11226 * cris-tdep.c (cris_gdbarch_init): Ditto.
11227 * avr-tdep.c (avr_gdbarch_init): Ditto.
11228 * arm-tdep.c (arm_gdbarch_init): Ditto.
11229
018d1b48
JB
112302003-03-31 J. Brobecker <brobecker@gnat.com>
11231
11232 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11233 (INIT_FRAME_AP): Likewise.
11234 (EXTRA_FRAME_INFO): Likewise.
11235
e9a2674e
AC
112362003-03-31 Andrew Cagney <cagney@redhat.com>
11237
11238 * gdbarch.sh: Include "symfile.h".
11239 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11240 * gdbarch.h, gdbarch.c: Re-generate.
11241 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11243 call_dummy_address, the default is at entry_point_address.
11244 * v850-tdep.c (v850_gdbarch_init): Ditto.
11245 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11246 * sh-tdep.c (sh_gdbarch_init): Ditto.
11247 * s390-tdep.c (s390_gdbarch_init): Ditto.
11248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11249 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11250 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11251 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11252 * i386-tdep.c (i386_gdbarch_init): Ditto.
11253 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11254 * frv-tdep.c (frv_gdbarch_init): Ditto.
11255 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11256 * cris-tdep.c (cris_gdbarch_init): Ditto.
11257 * arm-tdep.c (arm_gdbarch_init): Ditto.
11258
e8a8712a
AC
112592003-03-31 Andrew Cagney <cagney@redhat.com>
11260
11261 * gdbarch.sh (CALL_DUMMY_P): Delete.
11262 * gdbarch.h, gdbarch.c: Re-generate.
11263 * inferior.h (CALL_DUMMY_P): Delete macro.
11264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11265 * vax-tdep.c (vax_gdbarch_init): Update.
11266 * v850-tdep.c (v850_gdbarch_init): Update.
11267 * sparc-tdep.c (sparc_gdbarch_init): Update.
11268 * sh-tdep.c (sh_gdbarch_init): Update.
11269 * s390-tdep.c (s390_gdbarch_init): Update.
11270 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11271 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11272 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11273 * mips-tdep.c (mips_gdbarch_init): Update.
11274 * mcore-tdep.c (mcore_gdbarch_init): Update.
11275 * m68k-tdep.c (m68k_gdbarch_init): Update.
11276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11277 * ia64-tdep.c (ia64_gdbarch_init): Update.
11278 * i386-tdep.c (i386_gdbarch_init): Update.
11279 * h8300-tdep.c (h8300_gdbarch_init): Update.
11280 * frv-tdep.c (frv_gdbarch_init): Update.
11281 * d10v-tdep.c (d10v_gdbarch_init): Update.
11282 * cris-tdep.c (cris_gdbarch_init): Update.
11283 * breakpoint.c (deprecated_frame_in_dummy): Update.
11284 * avr-tdep.c (avr_gdbarch_init): Update.
11285 * alpha-tdep.c (alpha_gdbarch_init): Update.
11286 * arm-tdep.c (arm_gdbarch_init): Update.
11287 * dummy-frame.c (dummy_frame_this_id): Update comments.
11288 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11289 * frame.c (legacy_get_prev_frame): Ditto.
11290 * valops.c (call_function_by_hand): Delete function.
11291 (hand_function_call): Rename to call_function_by_hand
11292
ed234cf8
AC
112932003-03-30 Andrew Cagney <cagney@redhat.com>
11294
11295 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11296 * value.h (struct value): Update comment.
ed234cf8 11297
06c77151
AC
112982003-03-30 Andrew Cagney <cagney@redhat.com>
11299
6c2b5168
AC
11300 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11301 D10V_FP_REGNUM.
11302 (d10v_gdbarch_init): Do not set fp_regnum.
11303
06c77151
AC
11304 * frame.c (get_frame_base): Force ID initialization.
11305 (get_prev_frame): Move computation of the frame ID from here ...
11306 (get_frame_id): ... to here.
11307 (legacy_get_prev_frame): Mark the frame ID as valid.
11308 * frame.h (struct frame_info): Add field "id_p".
11309
97a1a11c
MK
113102003-03-30 Mark Kettenis <kettenis@gnu.org>
11311
11312 * i386-tdep.c (i386_store_struct_return): Removed.
11313 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11314
6c0e89ed
AC
113152003-03-30 Andrew Cagney <cagney@redhat.com>
11316
11317 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11318 * gdbarch.h, gdbarch.c: Regenerate.
11319 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11321 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11322 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11323 * i386-tdep.c (i386_gdbarch_init): Ditto.
11324 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11325 * cris-tdep.c (cris_gdbarch_init): Ditto.
11326 * vax-tdep.c (vax_gdbarch_init): Ditto.
11327 * s390-tdep.c (s390_gdbarch_init): Ditto.
11328 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11330 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11331 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11332 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11333 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11334 * sparc-tdep.c (sparc_gdbarch_init): Update.
11335 * sh-tdep.c (sh_gdbarch_init): Update.
11336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11337 * mips-tdep.c (mips_gdbarch_init): Update.
11338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11339 * ia64-tdep.c (ia64_gdbarch_init): Update.
11340 * frv-tdep.c (frv_gdbarch_init): Update.
11341 * avr-tdep.c (avr_gdbarch_init): Update.
11342 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11343 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11344 instead of when push_dummy_call is not available.
8ffd9b1b 11345
f7dd6af2
AC
113462003-03-30 Andrew Cagney <cagney@redhat.com>
11347
11348 * infttrace.c: Include "gdbthread.h".
11349 (parent_attach_all): Fix function signature.
11350 (call_ptrace): Update call.
11351 * Makefile.in (infttrace.o): Update dependencies.
11352
28f617b3
AC
113532003-03-30 Andrew Cagney <cagney@redhat.com>
11354
11355 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11356 PUSH_RETURN_ADDRESS.
11357 * gdbarch.h, gdbarch.c: Regenerate.
11358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11359 * x86-64-tdep.c (x86_64_init_abi): Update.
11360 * v850-tdep.c (v850_gdbarch_init): Update.
11361 * sparc-tdep.c (sparc_gdbarch_init): Update.
11362 * sh-tdep.c (sh_gdbarch_init): Update.
11363 * s390-tdep.c (s390_gdbarch_init): Update.
11364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11365 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11366 * mips-tdep.c (mips_gdbarch_init): Update.
11367 * mcore-tdep.c (mcore_gdbarch_init): Update.
11368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11369 * ia64-tdep.c (ia64_gdbarch_init): Update.
11370 * i386-tdep.c (i386_gdbarch_init): Update.
11371 * h8300-tdep.c (h8300_gdbarch_init): Update.
11372 * frv-tdep.c (frv_gdbarch_init): Update.
11373 * cris-tdep.c (cris_gdbarch_init): Update.
11374 * avr-tdep.c (avr_gdbarch_init): Update.
11375 * arm-tdep.c (arm_gdbarch_init): Update.
11376 * valops.c (hand_function_call): Update.
11377
4d628cd7
AC
113782003-03-29 Andrew Cagney <cagney@redhat.com>
11379
11380 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11381 sizeof_call_dummy_words.
11382 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11383 define.
11384 * gdbarch.h: Regenerate.
8ffd9b1b 11385
65e82032
AC
113862003-03-29 Andrew Cagney <cagney@redhat.com>
11387
11388 * infttrace.h: New file.
11389 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11390 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11391 (hpread_read_doc_function_type): Detect an initialized type1.
11392 (hpread_quick_traverse): Initialize mod_name_string.
11393 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11394 (som_solib_get_solib_by_pc): Declare.
11395 (so_lib_thread_start_addr): Declare.
11396 (no_shared_libraries): Declare.
11397 * somread.c (init_import_symbols): Make static. Add forward
11398 declaration.
11399 * config/pa/nm-hppah.h: Include "infttrace.h" for
11400 parent_attach_all.
11401 (hppa_insert_hw_watchpoint): Declare.
11402 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11403 * hppah-nat.c: Include "gdb_string.h".
11404 (parent_attach_all): Delete extern declaration, moved to
11405 "infttrace.h".
11406 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11407 int.
11408 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11409 * Makefile.in (infttrace_h): Define.
11410 (hpread.o): Update dependencies.
11411 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11412 * hppa-hpux-tdep.c: Include "gdb_string.h".
11413 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11414 * infrun.c (handle_inferior_event): Always initialize
11415 stepped_after_stopped_by_watchpoint. Add default and remove
11416 fallthrough in switch statement.
11417 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11418 parameter to int.
11419 (hppa_remove_hw_watchpoint): Ditto.
11420
2c3bbe77
AC
114212003-03-29 Andrew Cagney <cagney@redhat.com>
11422
11423 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11424 offset.
11425
2dd604e7
RE
114262003-03-29 Richard Earnshaw <rearnsha@arm.com>
11427
11428 * arm-tdep.c (arm_push_arguments): Delete.
11429 (struct stack_item): New type.
11430 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11431 (arm_store_struct_return): Delte.
11432 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11433 arm_push_arguments or arm_store_struct_return.
11434
e8933a55
AC
114352003-03-28 Andrew Cagney <cagney@redhat.com>
11436
11437 * Makefile.in (d10v-tdep.o): Update dependencies.
11438 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11439 * d10v-tdep.c: Include "remote.h".
11440 (target_resume_hook): Delete extern declaration.
11441 (target_wait_loop_hook): Ditto.
11442 (tdisassemble_command): Eliminate assignment in "if" conditional.
11443 (d10v_ts2_register_sim_regno): Eliminate call to
11444 legacy_register_sim_regno.
11445 (d10v_ts3_register_sim_regno): Ditto.
11446
6949171e
JJ
114472003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11448
11449 * thread.c: Reindented.
11450 * lin-lwp.c: Ditto.
11451 * linux-proc.c: Ditto.
11452
98c7071f
BR
114532003-03-28 Bob Rossi <bob_rossi@cox.net>
11454
fbe586ae 11455 * MAINTAINERS (write after approval): Add myself.
98c7071f 11456
5edc9ca6
TR
114572003-03-27 Theodore A. Roth <troth@openavr.org>
11458
11459 * objc-exp.y: Add missing semi-colons.
11460
378bfd1b
AC
114612003-03-27 Andrew Cagney <cagney@redhat.com>
11462
11463 * regcache.c (write_sp): Delete function and references.
11464 * inferior.h (write_sp): Delete declaration.
11465 * valops.c (hand_function_call): Replace write_sp with
11466 TARGET_WRITE_SP.
11467 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11468 (sparc_pop_frame): Ditto.
8ffd9b1b 11469
56056df7
AC
114702003-03-27 Andrew Cagney <cagney@redhat.com>
11471
11472 * NEWS: Mention removal of support for hppa*-*-bsd* and
11473 hppa*-*-osf* natives, and hppa*-*-pro* target.
11474 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11475 * config/pa/xm-pa.h: Obsolete file.
11476 * config/pa/xm-hppab.h: Obsolete file.
11477 * config/pa/nm-hppab.h: Obsolete file.
11478 * config/pa/tm-hppab.h: Obsolete file.
11479 * config/pa/tm-hppao.h: Obsolete file.
11480 * config/pa/nm-hppao.h: Obsolete file.
11481 * config/pa/tm-pro.h: Obsolete file.
11482 * config/pa/hppaosf.mt: Obsolete file.
11483 * config/pa/hppaosf.mh: Obsolete file.
11484 * config/pa/hppapro.mt: Obsolete file.
11485 * config/pa/hppabsd.mt: Obsolete file.
11486 * config/pa/hppabsd.mh: Obsolete file.
11487 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11488 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11489 hppa*-*-osf*.
11490
5873a88d
AC
114912003-03-27 Andrew Cagney <cagney@redhat.com>
11492
11493 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11494 push_arguments. Don't set push_return_address or write_sp.
11495 (d10v_push_dummy_call): Replace d10v_push_arguments.
11496 (d10v_push_return_address, d10v_write_sp): Delete function,
11497 handled by push_dummy_call.
11498
b81774d8
AC
114992003-03-26 Andrew Cagney <cagney@redhat.com>
11500
11501 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11502 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11503 regcache and dummy_addr parameters.
11504 * gdbarch.h, gdbarch.c: Re-generate.
11505 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11506 available; assume it will handle stack alignment and return
11507 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11508 legacy_push_arguments.
11509 (legacy_push_arguments): Rename default_push_arguments.
11510 * value.h (legacy_push_arguments): Rename default_push_arguments.
11511 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11512 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11513 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11514 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11515 * config/i386/tm-symmetry.h: Update.
11516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11517 * x86-64-tdep.c (x86_64_init_abi): Update.
11518 * v850-tdep.c (v850_gdbarch_init): Update.
11519 * sparc-tdep.c (sparc_gdbarch_init): Update.
11520 * sh-tdep.c (sh_gdbarch_init): Update.
11521 * s390-tdep.c (s390_gdbarch_init): Update.
11522 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11524 * mips-tdep.c (mips_gdbarch_init): Update.
11525 * mcore-tdep.c (mcore_gdbarch_init): Update.
11526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11527 * ia64-tdep.c (ia64_gdbarch_init): Update.
11528 * i386-tdep.c (i386_gdbarch_init): Update.
11529 * hppa-tdep.c (hppa_gdbarch_init): Update.
11530 * h8300-tdep.c (h8300_gdbarch_init): Update.
11531 * frv-tdep.c (frv_gdbarch_init): Update.
11532 * d10v-tdep.c (d10v_gdbarch_init): Update.
11533 * cris-tdep.c (cris_gdbarch_init): Update.
11534 * avr-tdep.c (avr_gdbarch_init): Update.
11535 * arm-tdep.c (arm_gdbarch_init): Update.
11536 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11537 * alpha-tdep.c (alpha_gdbarch_init): Update.
11538
f541410f
DJ
115392003-03-26 Daniel Jacobowitz <drow@mvista.com>
11540
11541 * signals/signals.c (do_target_signal_to_host): Correct realtime
11542 signal range test.
11543
69f567ae
DJ
115442003-03-26 Daniel Jacobowitz <drow@mvista.com>
11545
11546 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11547 (struct sal_chain, map_catch_names): Remove.
11548 (catch_exception_command_1): Don't call
11549 handle_gnu_4_16_catch_command.
11550
d5d14a5a
DJ
115512003-03-26 Daniel Jacobowitz <drow@mvista.com>
11552
11553 From Mark Dettinger <dettinge@de.ibm.com>:
11554 * dwarf2cfi.c (read_2u): Increment pointer by two.
11555
bdd73e22
DJ
115562003-03-26 Daniel Jacobowitz <drow@mvista.com>
11557
11558 * signals/signals.c: Fix typos in last change.
11559
960cb555
DJ
115602003-03-26 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11563 not already defined. Use __SIGRTMIN if available.
11564 (target_signal_from_host): Remove SIGRTMIN block.
11565 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11566 the signal is within the realtime range.
11567
f636b87d
AF
115682003-03-25 Adam Fedor <fedor@gnu.org>
11569
11570 * Makefile.in (infrun.o): Add $(language_h)
11571 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11572 for language specific trampolines.
11573 * language.h (struct language_defn): Add skip_trampoline.
11574 (skip_language_trampoline): Declare.
11575 * language.c (unk_lang_trampoline, skip_language_trampoline):
11576 New functions.
11577 (unknown_language_defn, auto_language_defn, local_language_defn):
11578 Add ukn_lang_trampoline.
11579 * ada-lang.c (ada_language_defn): Add NULL for language
11580 specific skip_trampoline.
11581 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11582 scm-lang.c: Likewise.
11583 * objc-lang.c (objc_skip_trampoline): New function.
11584 (objc_language_defn): Add objc_skip_trampoline.
11585
28f617b3 115862003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11587
11588 * frame.c (get_prev_frame): Delay validating a frame's ID -
11589 non-NULL, didn't go backwards - until an attempt to unwind it to
11590 the previous frame.
11591
f933a9c5
AC
115922003-03-25 Andrew Cagney <cagney@redhat.com>
11593
11594 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11595 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11596 * gdbarch.h, gdbarch.c: Re-generate.
11597 * config/sparc/tm-sparc.h
11598 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11599 * sparc-tdep.c (sparc_gdbarch_init): Set
11600 deprecated_extra_stack_alignment_needed.
11601 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11603 extra_stack_alignment_needed.
11604 * v850-tdep.c (v850_gdbarch_init): Ditto.
11605 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11606 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11607 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11608 * cris-tdep.c (cris_gdbarch_init): Ditto.
11609 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11610 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11611
4183d812
AC
116122003-03-25 Andrew Cagney <cagney@redhat.com>
11613
11614 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11615 STORE_STRUCT_RETURN.
11616 * gdbarch.h, gdbarch.c: Regenerate.
11617 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11618 (d10v_push_arguments): Set the struct return register.
11619 (d10v_gdbarch_init): Update.
11620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11621 * x86-64-tdep.c (x86_64_init_abi): Update.
11622 * vax-tdep.c (vax_gdbarch_init): Update.
11623 * v850-tdep.c (v850_gdbarch_init): Update.
11624 * sparc-tdep.c (sparc_gdbarch_init): Update.
11625 * sh-tdep.c (sh_gdbarch_init): Update.
11626 * s390-tdep.c (s390_gdbarch_init): Update.
11627 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11628 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11629 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11630 * mips-tdep.c (mips_gdbarch_init): Update.
11631 * mcore-tdep.c (mcore_gdbarch_init): Update.
11632 * m68k-tdep.c (m68k_gdbarch_init): Update.
11633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11634 * ia64-tdep.c (ia64_gdbarch_init): Update.
11635 * i386-tdep.c (i386_gdbarch_init): Update.
11636 * hppa-tdep.c (hppa_gdbarch_init): Update.
11637 * h8300-tdep.c (h8300_gdbarch_init): Update.
11638 * frv-tdep.c (frv_gdbarch_init): Update.
11639 * cris-tdep.c (cris_gdbarch_init): Update.
11640 * avr-tdep.c (avr_gdbarch_init): Update.
11641 * arm-tdep.c (arm_gdbarch_init): Update.
11642 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11643
1bf6d5cc
AC
116442003-03-25 Andrew Cagney <cagney@redhat.com>
11645
11646 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11647 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11648 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11649 * gdbarch.h, gdbarch.c: Regenerate.
11650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11651 call_dummy_stack_adjust_p.
11652 * vax-tdep.c (vax_gdbarch_init): Ditto.
11653 * v850-tdep.c (v850_gdbarch_init): Ditto.
11654 * sh-tdep.c (sh_gdbarch_init): Ditto.
11655 * s390-tdep.c (s390_gdbarch_init): Ditto.
11656 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11657 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11659 * mips-tdep.c (mips_gdbarch_init): Ditto.
11660 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11661 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11663 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11664 * i386-tdep.c (i386_gdbarch_init): Ditto.
11665 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11666 * frv-tdep.c (frv_gdbarch_init): Ditto.
11667 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11668 * cris-tdep.c (cris_gdbarch_init): Ditto.
11669 * avr-tdep.c (avr_gdbarch_init): Ditto.
11670 * arm-tdep.c (arm_gdbarch_init): Ditto.
11671 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11672 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11673 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11674 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11675 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11676 call_dummy_stack_adjust_p.
11677 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11678 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11679 * sparc-tdep.c (sparc32_push_arguments): Update.
11680 * valops.c (hand_function_call): Update.
11681
71c08af0
CV
116822003-03-25 Corinna Vinschen <vinschen@redhat.com>
11683
11684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11685 set_gdbarch_char_signed.
11686
30757f90
RE
116872003-03-25 Richard Earnshaw <rearnsha@arm.com>
11688
11689 PR cli/548
11690 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11691
03d48a7d
RE
116922003-03-25 Richard Earnshaw <rearnsha@arm.com>
11693
11694 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11695 (_initialize_arm_tdep): Don't set tm_print_insn.
11696
2cf6873c
AF
116972003-03-24 Adam Fedor <fedor@gnu.org>
11698
11699 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11700 * objc-lang.h: Add multiple inclusion protection.
11701 (start_msglist, add_msglist, end_msglist): Additional declarations.
11702
17c0759e
RE
117032003-03-24 Richard Earnshaw <rearnsha@arm.com>
11704
11705 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11706 value was renamed to ARM_FLOAT_SOFT_FPA.
11707
618ce49f
AC
117082003-03-23 Andrew Cagney <cagney@redhat.com>
11709
11710 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11711 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11712 * gdbarch.h, gdbarch.c: Regenerate.
11713 * valops.c (hand_function_call): Update.
11714 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11715 * frame.c (legacy_saved_regs_this_id): Update.
11716 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11717 * dummy-frame.h: Update.
11718 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11719 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11720 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11721 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11722 * config/m68k/tm-sun3.h: Update.
11723 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11725 * x86-64-tdep.c (x86_64_init_abi): Update.
11726 * vax-tdep.c (vax_gdbarch_init): Update.
11727 * v850-tdep.c (v850_gdbarch_init): Update.
11728 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11729 * sh-tdep.c (sh_gdbarch_init): Update.
11730 * s390-tdep.c (s390_gdbarch_init): Update.
11731 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11732 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11733 (frame_get_saved_regs): Update.
11734 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11735 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11736 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11737 * mips-tdep.c (mips_gdbarch_init): Update.
11738 * mcore-tdep.c (mcore_gdbarch_init): Update.
11739 * m68k-tdep.c (m68k_gdbarch_init): Update.
11740 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11741 * ia64-tdep.c (ia64_gdbarch_init): Update.
11742 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11743 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11744 (i386_interix_back_one_frame): Update.
11745 * hppa-tdep.c (hppa_gdbarch_init): Update.
11746 (hppa_init_extra_frame_info): Update.
11747 * h8300-tdep.c (h8300_gdbarch_init): Update.
11748 * frv-tdep.c (frv_gdbarch_init): Update.
11749 * cris-tdep.c (cris_gdbarch_init): Update.
11750 * avr-tdep.c (avr_gdbarch_init): Update.
11751 * arm-tdep.c (arm_gdbarch_init): Update.
11752 * alpha-tdep.c (alpha_gdbarch_init): Update.
11753
fd50bc42
RE
117542003-03-22 Richard Earnshaw <rearnsha@arm.com>
11755
11756 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11757 (arm_get_fp_model): Declare.
11758 * arm-tdep.c (fp_model_strings): New string array.
11759 (arm_fp_model, current_fp_model): New variables.
11760 (arm_get_fp_model): New function.
11761 (arm_set_fp): New function.
11762 (set_fp_model_sfunc): New function.
11763 (show_fp_model): New function.
11764 (_initialize_arm_tdep): Add new command to set/show the FPU.
11765 (arm_extract_return_value): Use arm_get_fp_model.
11766 (arm_store_return_value): Likewise.
11767 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11768 to initialize the floating-point data types.
11769 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11770 model is FPA.
11771
26304000
RE
117722003-03-22 Richard Earnshaw <rearnsha@arm.com>
11773
11774 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11775 the current setting of each value.
11776 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11777 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11778 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11779 commands and add new version as subcommands of "set/show arm".
11780
afd7eef0
RE
117812003-03-22 Richard Earnshaw <rearnsha@arm.com>
11782
11783 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11784 (set_arm_command, show_arm_command): New functions.
11785 (_initialize_arm_tdep): Add them.
11786 (num_disassembly_options): Renamed from num_flavor_options.
11787 (valid_disassembly_styles): Renamed from valid_flavors.
11788 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11789 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11790 set_disassembly_flavor_sfunc.
11791 (set_disassembly_style): Renamed from set_disassembly_flavor.
11792 (arm_othernames): Updated.
11793 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11794 command. Add "set/show arm disassembly" commands. Deprecate
11795 "othernames" command.
11796
299a7944
RE
117972003-03-22 Richard Earnshaw <rearnsha@arm.com>
11798
11799 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11800 (arm-tdep.o): Depend on elf_arm_h.
11801
c1dac9e6
RE
118022003-03-22 Richard Earnshaw <rearnsha@arm.com>
11803
11804 * Makefile.in (coff_internal_h): Define.
11805 (arm-tdep.o): Update dependencies.
11806
2702d96c
RE
118072003-03-22 Richard Earnshaw <rearnsha@arm.com>
11808
11809 * arm-tdep.c (prologue_cache): Delete.
11810 (check_prologue_cache, save_prologue_cache): Delete.
11811 (arm_scan_prologue): Don't check or update the prologue_cache.
11812 (arm_gdb_arch_init): Don't initialize it.
11813 (_initialize_arm_tdep): Likewise.
11814
27d5d74b
SC
118152003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11816
11817 * MAINTAINERS (tui): Maintainer of tui code.
11818
1762d96d
CV
118192003-03-21 Corinna Vinschen <vinschen@redhat.com>
11820
11821 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11822 (i386-cygwin-tdep.o): Add dependencies.
11823 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11824 * i386-cygwin-tdep.c: New file.
11825 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11826 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11827
4c2e2391
AC
118282003-03-20 Andrew Cagney <cagney@redhat.com>
11829
f20d38b7
AC
11830 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11831 (handle_inferior_event): Remove code calling
11832 DYNAMIC_TRAMPOLINE_NEXTPC.
11833
0022b738
AC
11834 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11835 already has a full path.
11836
864dbc90
AC
11837 * main.c (gdb_main): Return 1.
11838 (captured_main): Call error to report an invalid interpreter.
11839
4c2e2391
AC
11840 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11841 * alpha-osf1-tdep.c: Include "gdb_string.h".
11842
5ef7553b
JB
118432003-03-19 J. Brobecker <brobecker@gnat.com>
11844
11845 Continuing work to convert the hppa targets to multiarch partial.
11846
11847 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11848 method, now that hppa_push_dummy_frame has a conformant prototype.
11849 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11850 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11851 for the switch to multiarch partial.
11852
7bde8967
KB
118532003-03-19 Kevin Buettner <kevinb@redhat.com>
11854
11855 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11856 when iss is issNull.
11857
b006a9e9
KB
118582003-03-18 Kevin Buettner <kevinb@redhat.com>
11859
11860 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11861 NUM_REGS bounds check.
11862
5e2e9765
KB
118632003-03-18 Kevin Buettner <kevinb@redhat.com>
11864
11865 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11866 * mips-tdep.c (gdb_assert.h): Include.
11867 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11868 (mips_register_name): Handle integer registers explicitly. Add
11869 bounds checking.
11870 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11871 (mips_lsi33k_reg_names): Don't list integer registers; they're
11872 handled by mips_register_name() now.
11873 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11874 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11875 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11876 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11877 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11878
a2867626
AC
118792003-03-18 Andrew Cagney <cagney@redhat.com>
11880
11881 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11882 a void pointer.
11883 * gdbtypes.h (print_scalar_formatted): Update declaration.
11884 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11885
06600e06
JB
118862003-03-18 J. Brobecker <brobecker@gnat.com>
11887
11888 * infrun.c (observer.h): Add #include.
11889 (normal_stop): Add call to observer_notify_normal_stop.
11890 * Makefile.in (infrun.o): Add dependency on observer.h.
11891
7daf4f5b
JB
118922003-03-18 J. Brobecker <brobecker@gnat.com>
11893
11894 Continuing work to convert the hppa targets to multiarch partial.
11895 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11896 parameter. Reformat comment.
11897 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11898 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11899 to match new profile.
11900
3371ccc0
JB
119012003-03-18 J. Brobecker <brobecker@gnat.com>
11902
11903 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11904 appear to be working in any case.
11905
4fbe891e
JB
119062003-03-18 J. Brobecker <brobecker@gnat.com>
11907
11908 * observer.c (observer_test_first_observer): New static variable.
11909 (observer_test_second_observer): Likewise.
11910 (observer_test_third_observer): Likewise.
11911 (observer_test_first_notification_function): New static function.
11912 (observer_test_second_notification_function): Likewise.
11913 (observer_test_third_notification_function): Likewise.
11914
a7ff40e7
JB
119152003-03-17 J. Brobecker <brobecker@gnat.com>
11916
11917 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11918 * somsolib.c (gdb_assert.h): Likewise.
11919 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11920 (somsolib.o): Likewise.
11921
26ca4152
AC
119222003-03-17 Andrew Cagney <cagney@redhat.com>
11923
11924 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11925 BFD. Simplify setting of di.endian.
11926
0a613259
AC
119272003-03-17 Andrew Cagney <cagney@redhat.com>
11928
11929 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11930 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11931
11932 From Elena Zannoni <ezannoni@redhat.com>
11933 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11934 vector and floating-point parameters.
11935 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11936 convention.
11937 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11938
1132738f
FN
119392003-03-17 Fernando Nasser <fnasser@redhat.com>
11940
11941 * MAINTAINERS: Remove my name from several maintainership roles.
11942
6dc42492
AC
119432003-03-17 Andrew Cagney <cagney@redhat.com>
11944
11945 Fix frame off-by-one bug.
11946 * frame-unwind.h (frame_this_id_ftype): Replace
11947 frame_unwind_id_ftype.
11948 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11949 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11950 with "prev_register".
11951 * frame-unwind.c (frame_unwind_find_by_pc): Return
11952 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11953 comment.
11954 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11955 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11956 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11957 (dummy_frame_unwind): Update.
11958 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11959 sentinel_frame_register_unwind.
11960 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11961 (sentinel_frame_unwinder): Update.
11962 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11963 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11964 * frame.c (create_sentinel_frame): Update. Initialize
11965 "prologue_cache" instead of "unwind_cache".
11966 (frame_register_unwind): Call this frame's prev_register with the
11967 next frame and this frame's prologue cache.
11968 (get_prev_frame): Simplify. Always call prev frame's this_id with
11969 this frame and prev frame's prologue cache. Document that this
11970 call is shifted one to the left when compared to the
11971 frame_register_unwind call.
11972 (legacy_saved_regs_prev_register): Replace
11973 frame_saved_regs_register_unwind.
11974 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11975 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11976 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11977 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11978 (d10v_frame_unwind): Update.
11979 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11980 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11981 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11982 "saved_regs" with "this_saved_regs".
11983
efd710d6
AC
119842003-03-16 Andrew Cagney <cagney@redhat.com>
11985
11986 * frame.c (frame_pop): Don't call target_store_registers. Fix
11987 problem reported by Mark Kettenis.
11988
4e259f09
MK
119892003-03-16 Mark Kettenis <kettenis@gnu.org>
11990
11991 * i386-tdep.c (i386_register_type): Renamed from
11992 i386_register_virtual_type. Adjust function signature.
11993 (i386_gdbarch_init): Set register_type instead of
11994 deprecated_max_register_raw_size,
11995 deprecated_max_register_virtual_size and register_virtual_type.
11996
055bb976
AC
119972003-03-14 Andrew Cagney <cagney@redhat.com>
11998
11999 * frame.c (get_prev_frame): When a legacy frame, always call
12000 legacy_get_prev_frame. Simplify unwind code using assumption that
12001 the unwinder is new.
12002 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
12003 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
12004 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12005
ac2adee5
AC
120062003-03-14 Andrew Cagney <cagney@redhat.com>
12007
12008 * frame.c (get_saved_register): Delete function.
12009 * frame.h (get_saved_register): Delete declaration.
12010 * xstormy16-tdep.c: Update comment.
12011 * regcache.h: Update comments.
12012 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
12013 get_saved_register and extract_address, use
12014 frame_read_unsigned_register.
12015 (sparc_frame_saved_pc): Ditto.
12016 (sparc_get_saved_register): Instead of get_saved_register, use
12017 frame_register.
12018 (sparc_pop_frame): Ditto.
12019 * findvar.c: Update comments.
12020 (value_of_register): Call frame_register instead of
12021 get_saved_register.
12022 (value_from_register): Ditto.
12023 * config/sparc/tm-sparc.h: Update comment.
12024 * breakpoint.c: Update comment.
12025
129c1cd6
AC
120262003-03-14 Andrew Cagney <cagney@redhat.com>
12027
12028 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
12029 GET_SAVED_REGISTER.
12030 * gdbarch.h, gdbarch.c: Re-generate.
12031 * frame.h: Update comments.
12032 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12033 * x86-64-tdep.c (x86_64_init_abi): Update.
12034 * sparc-tdep.c (sparc_gdbarch_init): Update.
12035 * sh-tdep.c (sh_gdbarch_init): Update.
12036 * mips-tdep.c (mips_gdbarch_init): Update.
12037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12038 * cris-tdep.c (cris_gdbarch_init): Update.
12039 * ia64-tdep.c (ia64_gdbarch_init): Update.
12040 * frame.c (frame_register): Update.
12041 (get_saved_register): Update.
12042 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 12043
749b82f6
AC
120442003-03-13 Andrew Cagney <cagney@redhat.com>
12045
12046 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12047 * gdbarch.h, gdbarch.c: Regenerate.
12048 * valops.c (hand_function_call): Update comment.
12049 * stack.c (return_command): Update comment.
12050 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12051 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12053 * x86-64-tdep.c (x86_64_init_abi): Update.
12054 * vax-tdep.c (vax_gdbarch_init): Update.
12055 * v850-tdep.c (v850_gdbarch_init): Update.
12056 * sparc-tdep.c (sparc_gdbarch_init): Update.
12057 * sh-tdep.c (sh_gdbarch_init): Update.
12058 * s390-tdep.c (s390_gdbarch_init): Update.
12059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12060 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12061 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12062 * mips-tdep.c (mips_gdbarch_init): Update.
12063 * mcore-tdep.c (mcore_gdbarch_init): Update.
12064 * m68k-tdep.c (m68k_gdbarch_init): Update.
12065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12066 * ia64-tdep.c (ia64_gdbarch_init): Update.
12067 * i386-tdep.c (i386_gdbarch_init): Update.
12068 * hppa-tdep.c (hppa_gdbarch_init): Update.
12069 * h8300-tdep.c (h8300_gdbarch_init): Update.
12070 * frv-tdep.c (frv_gdbarch_init): Update.
12071 * cris-tdep.c (cris_gdbarch_init): Update.
12072 * avr-tdep.c (avr_gdbarch_init): Update.
12073 * arm-tdep.c (arm_gdbarch_init): Update.
12074 * alpha-tdep.c (alpha_gdbarch_init): Update.
12075
1594fa56
AC
120762003-03-13 Andrew Cagney <cagney@redhat.com>
12077
12078 * frame.c (legacy_frame_p): New function.
12079 (get_prev_frame): Use legacy_frame_p.
12080 * frame.h (legacy_frame_p): Declare.
12081
7717fda3
V
120822003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12083
fbe586ae 12084 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
12085 listing corrected.
12086
0c67cbe9
V
120872003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12088
fbe586ae 12089 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 12090
03febf99
AC
120912003-03-12 Andrew Cagney <cagney@redhat.com>
12092
12093 * frame.c (get_prev_frame): Rename the frame parameter to
12094 "this_frame".
12095 (get_next_frame, legacy_get_prev_frame): Ditto.
12096
0a1e1ca1
AC
120972003-03-12 Andrew Cagney <cagney@redhat.com>
12098
12099 * frame.c (get_current_frame): Check target_has_registers before
12100 checking target_has_stack.
12101 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12102 instead of deprecated_selected_frame.
12103 * findvar.c (value_of_register): Pass "frame", not
12104 deprecated_selected_frame, to value_of_builtin_reg.
12105
a66a9c23
AC
121062003-03-12 Andrew Cagney <cagney@redhat.com>
12107
12108 * regcache.c (regcache_cooked_write_signed): New function.
12109 (regcache_cooked_write_unsigned): New function.
12110 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12111 (regcache_cooked_read_signed): Fix regnum in range assertion.
12112 * regcache.h (regcache_cooked_write_signed): Declare.
12113 (regcache_cooked_write_unsigned): Declare.
12114
8bedc050
AC
121152003-03-12 Andrew Cagney <cagney@redhat.com>
12116
12117 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12118 * gdbarch.h, gdbarch.c: Re-generate.
12119 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12120 * x86-64-tdep.h: Update.
12121 * x86-64-tdep.c (x86_64_init_abi): Update.
12122 * v850-tdep.c (v850_gdbarch_init): Update.
12123 * sparc-tdep.c (sparc_gdbarch_init): Update.
12124 * sh-tdep.c (sh_gdbarch_init): Update.
12125 * s390-tdep.c (s390_gdbarch_init): Update.
12126 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12127 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12128 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12129 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12130 * mips-tdep.c (mips_gdbarch_init): Update.
12131 * mcore-tdep.c (mcore_gdbarch_init): Update.
12132 * m68k-tdep.c (m68k_gdbarch_init): Update.
12133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12134 * ia64-tdep.c (ia64_gdbarch_init): Update.
12135 * i386-tdep.c (i386_gdbarch_init): Update.
12136 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12137 * hppa-tdep.c (hppa_gdbarch_init): Update.
12138 * h8300-tdep.c (h8300_gdbarch_init): Update.
12139 * frv-tdep.c (frv_gdbarch_init): Update.
12140 * cris-tdep.c (cris_gdbarch_init): Update.
12141 * avr-tdep.c (avr_gdbarch_init): Update.
12142 * arm-tdep.c (arm_gdbarch_init): Update.
12143 * alpha-tdep.c (alpha_gdbarch_init): Update.
12144 * sh-tdep.c (sh_init_extra_frame_info): Update.
12145 (sh64_init_extra_frame_info): Update.
12146 * ns32knbsd-nat.c (frame_num_args): Update.
12147 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12148 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12149 (xstormy16_frame_chain_valid): Update.
12150 * vax-tdep.c (vax_saved_pc_after_call): Update.
12151 * v850-tdep.c (v850_frame_chain): Update.
12152 (v850_pop_frame): Update.
12153 (v850_init_extra_frame_info): Update.
12154 * sparc-tdep.c (setup_arbitrary_frame): Update.
12155 * ns32k-tdep.c (umax_frame_num_args): Update.
12156 * s390-tdep.c (s390_pop_frame_regular): Update.
12157 * mn10300-tdep.c (mn10300_frame_chain): Update.
12158 (mn10300_pop_frame_regular): Update.
12159 (mn10300_init_extra_frame_info): Update.
12160 * mips-tdep.c (mips_init_frame_pc_first): Update.
12161 (mips_frame_chain): Update.
12162 (mips_pop_frame): Update.
12163 * mcore-tdep.c (mcore_frame_chain): Update.
12164 (mcore_pop_frame): Update.
12165 (mcore_init_extra_frame_info): Update.
12166 * arch-utils.c (init_frame_pc_default): Update.
12167 * m68k-tdep.c (isi_frame_num_args): Update.
12168 (delta68_frame_num_args): Update.
12169 (news_frame_num_args): Update.
12170 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12171 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12172 (alpha_frame_chain): Update.
12173 (alpha_pop_frame): Update.
12174 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12175 (hppa_init_extra_frame_info): Update.
12176 (hppa_frame_chain): Update.
12177 (hppa_frame_chain_valid): Update.
12178 * cris-tdep.c (cris_init_extra_frame_info): Update.
12179 * avr-tdep.c (avr_init_extra_frame_info): Update.
12180 * arm-tdep.c (arm_frame_chain_valid): Update.
12181 (arm_init_extra_frame_info): Update.
12182 (arm_pop_frame): Update.
12183 * frame.c (frame_pc_unwind): Update.
12184 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12185 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12186 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12187 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12188 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12189 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12190
7a25a7c1
AC
121912003-03-12 Andrew Cagney <cagney@redhat.com>
12192
12193 Eliminate the need for POP_FRAME.
12194 * frame.c (do_frame_unwind_register): New function.
12195 (frame_pop): When no POP_FRAME, pop the frame using register
12196 unwind and a scratch regcache.
12197 (frame_saved_regs_pop): Delete function.
12198 (trad_frame_unwinder): Update.
12199 * d10v-tdep.c (d10v_frame_pop): Delete function.
12200 (d10v_frame_unwind): Update.
12201 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12202 (sentinel_frame_unwinder): Update.
12203 * dummy-frame.c (dummy_frame_pop): Delete function.
12204 (dummy_frame_unwind): Update.
12205 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12206 (struct frame_unwind): Update.
12207
2f38ef89
KB
122082003-03-11 Kevin Buettner <kevinb@redhat.com>
12209
12210 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12211 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12212 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12213 Do range checks on register number obtained from debugging info.
12214 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12215 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12216 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12217 mapping function.
12218 (do_fp_register_row): Fix typo which caused double type to be
12219 used when attempting to unpack a float.
12220
552f4abf
JB
122212003-03-11 J. Brobecker <brobecker@gnat.com>
12222
12223 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12224
e0d2ae16
AC
122252003-03-11 Andrew Cagney <cagney@redhat.com>
12226
12227 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12228 frame. Problem found by Corinna Vinschen.
12229
ddbfdd06
PM
122302003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12231
12232 * doublest.c (floatformat_from_length): Accept also
12233 the real size of 'long double' type.
12234
088b2ddc 122352003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 12236
088b2ddc 12237 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
12238 * breakpoint.c (bpstat_copy): Copy the command lines as well
12239 as the old value, to match what is freed in bpstat_clear.
12240
f56f77c1
DC
122412003-03-10 David Carlton <carlton@math.stanford.edu>
12242
12243 * minsyms.c (add_minsym_to_hash_table): Replace
12244 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12245 (compare_minimal_symbols, compact_minimal_symbols)
12246 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12247 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12248 of DEPRECATED_SYMBOL_MATCHES_NAME.
12249 (lookup_minimal_symbol_solib_trampoline): Ditto.
12250
5602984a
AC
122512003-03-10 Andrew Cagney <cagney@redhat.com>
12252
12253 * regcache.h (regcache_cooked_read_ftype): Define.
12254 (regcache_save, regcache_restore): Add a cooked_read parameter.
12255 * regcache.c (regcache_save, regcache_restore): Update.
12256 (do_cooked_read): New function.
12257 (regcache_cpy): Pass do_cooked_read to regcache_save and
12258 regcache_restore.
12259
8bedc050
AC
122602003-03-10 Andrew Cagney <cagney@redhat.com>
12261
12262 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12263 * gdbarch.h, gdbarch.c: Re-generate.
12264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12265 * x86-64-tdep.h: Update.
12266 * x86-64-tdep.c (x86_64_init_abi): Update.
12267 * v850-tdep.c (v850_gdbarch_init): Update.
12268 * sparc-tdep.c (sparc_gdbarch_init): Update.
12269 * sh-tdep.c (sh_gdbarch_init): Update.
12270 * s390-tdep.c (s390_gdbarch_init): Update.
12271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12272 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12275 * mips-tdep.c (mips_gdbarch_init): Update.
12276 * mcore-tdep.c (mcore_gdbarch_init): Update.
12277 * m68k-tdep.c (m68k_gdbarch_init): Update.
12278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12279 * ia64-tdep.c (ia64_gdbarch_init): Update.
12280 * i386-tdep.c (i386_gdbarch_init): Update.
12281 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12282 * hppa-tdep.c (hppa_gdbarch_init): Update.
12283 * h8300-tdep.c (h8300_gdbarch_init): Update.
12284 * frv-tdep.c (frv_gdbarch_init): Update.
12285 * cris-tdep.c (cris_gdbarch_init): Update.
12286 * avr-tdep.c (avr_gdbarch_init): Update.
12287 * arm-tdep.c (arm_gdbarch_init): Update.
12288 * alpha-tdep.c (alpha_gdbarch_init): Update.
12289 * sh-tdep.c (sh_init_extra_frame_info): Update.
12290 (sh64_init_extra_frame_info): Update.
12291 * ns32knbsd-nat.c (frame_num_args): Update.
12292 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12293 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12294 (xstormy16_frame_chain_valid): Update.
12295 * vax-tdep.c (vax_saved_pc_after_call): Update.
12296 * v850-tdep.c (v850_frame_chain): Update.
12297 (v850_pop_frame): Update.
12298 (v850_init_extra_frame_info): Update.
12299 * sparc-tdep.c (setup_arbitrary_frame): Update.
12300 * ns32k-tdep.c (umax_frame_num_args): Update.
12301 * s390-tdep.c (s390_pop_frame_regular): Update.
12302 * mn10300-tdep.c (mn10300_frame_chain): Update.
12303 (mn10300_pop_frame_regular): Update.
12304 (mn10300_init_extra_frame_info): Update.
12305 * mips-tdep.c (mips_init_frame_pc_first): Update.
12306 (mips_frame_chain): Update.
12307 (mips_pop_frame): Update.
12308 * mcore-tdep.c (mcore_frame_chain): Update.
12309 (mcore_pop_frame): Update.
12310 (mcore_init_extra_frame_info): Update.
12311 * arch-utils.c (init_frame_pc_default): Update.
12312 * m68k-tdep.c (isi_frame_num_args): Update.
12313 (delta68_frame_num_args): Update.
12314 (news_frame_num_args): Update.
12315 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12316 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12317 (alpha_frame_chain): Update.
12318 (alpha_pop_frame): Update.
12319 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12320 (hppa_init_extra_frame_info): Update.
12321 (hppa_frame_chain): Update.
12322 (hppa_frame_chain_valid): Update.
12323 * cris-tdep.c (cris_init_extra_frame_info): Update.
12324 * avr-tdep.c (avr_init_extra_frame_info): Update.
12325 * arm-tdep.c (arm_frame_chain_valid): Update.
12326 (arm_init_extra_frame_info): Update.
12327 (arm_pop_frame): Update.
12328 * frame.c (frame_pc_unwind): Update.
12329 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12330 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12331 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12332 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12333 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12334 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12335
12cc2063
AC
123362003-03-10 Andrew Cagney <cagney@redhat.com>
12337
12338 * gdbarch.sh (gdbarch_unwind_pc): New method.
12339 * gdbarch.h, gdbarch.c: Regenerate.
12340 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12341 but use read_pc and FRAME_SAVED_PC as fall backs.
12342 (frame_saved_regs_pc_unwind): Delete function.
12343 (trad_frame_unwinder): Update.
12344 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12345 (struct frame_unwind): Update.
12346 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12347 (dummy_frame_unwind): Update.
12348 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12349 (sentinel_frame_unwinder): Update.
12350 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12351 (d10v_frame_unwind): Update.
12352 (d10v_unwind_pc): New function.
12353 (d10v_gdbarch_init): Set unwind_pc.
12354
ef840a37
AC
123552003-03-10 Andrew Cagney <cagney@redhat.com>
12356
a2ce2e56
AC
12357 * gdbarch.h: Re-generate.
12358
ef840a37
AC
12359 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12360 PC.
12361 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12362 the PC register.
12363
08f3424b
MK
123642003-03-08 Mark Kettenis <kettenis@gnu.org>
12365
12366 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12367
1248ede2
AC
123682003-03-08 Andrew Cagney <cagney@redhat.com>
12369
12370 * cli-out.c: Update copyright.
12371 (cli_out_data): Define typedef. Use instead of ui_out_data.
12372
f49bacc8
AC
123732003-03-08 Andrew Cagney <cagney@redhat.com>
12374
12375 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12376 the result.
12377
9b05f993
AC
123782003-03-07 Andrew Cagney <cagney@redhat.com>
12379
12380 * gdbarch.sh: Don't generate two macro definitions when an
12381 undefined macro taking no arguments.
12382 * gdbarch.h: Regenerate.
8ffd9b1b 12383
166f4c7b
ML
123842002-03-07 Michal Ludvig <mludvig@suse.cz>
12385
12386 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12387 (x86_64_unwind_dummy_id): New functions.
12388 (x86_64_init_abi): Register these two new functions.
12389
6d686a84
ML
123902003-03-07 Michal Ludvig <mludvig@suse.cz>
12391
12392 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12393 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12394 separate function.
12395 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12396
6314f104
AC
123972003-03-05 Andrew Cagney <cagney@redhat.com>
12398
12399 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12400 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12401 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12402 to use unwind_dummy_id when a dummy frame.
12403 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12404 predicate.
12405 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12406
ceea5145
AC
124072003-03-05 Andrew Cagney <cagney@redhat.com>
12408
12409 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12410 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12411 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12412 values.
12413
0d843116
AC
124142003-03-05 Andrew Cagney <cagney@redhat.com>
12415
12416 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12417 (struct d10v_unwind_cache): Delete field "frameless". Replace
12418 "next_addr" with "sp_offset". Add "r11_offset".
12419 (d10v_frame_unwind_cache): Update.
12420 (prologue_find_regs): Update. When "mv r11, sp", save the
12421 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12422 RN was saved in r11_offset.
12423
b2579786
AC
124242003-03-05 Andrew Cagney <cagney@redhat.com>
12425
12426 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12427 cached PC value in the next frame.
12428
218e5956
AC
124292003-03-05 Andrew Cagney <cagney@redhat.com>
12430
12431 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12432 "id_unwind_cache" with "id".
12433 (frame_id_unwind): Delete declaration.
12434 * frame.c (frame_id_unwind): Delete function.
12435 (get_prev_frame): Call the frame id unwind method directly. Store
12436 the returned next frame's ID value in NEXT_FRAME. Note that there
12437 is a problem with the wrong unwind ID being called with the wrong
12438 unwind cache.
12439
ed363b1b
DJ
124402003-03-05 Daniel Jacobowitz <drow@mvista.com>
12441
12442 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12443
fe1f4a5e
DJ
124442003-03-05 James Ingham <jingham@apple.com>
12445 Daniel Jacobowitz <drow@mvista.com>
12446
12447 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12448 (auto_cp_abi): New variable.
12449 (current_cp_abi, num_cp_abis): Make static.
12450 (CP_ABI_MAX): Define.
12451 (cp_abis): Turn into an array.
12452 (value_virtual_fn_field): Fix formatting.
12453 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12454 takes a pointer.
12455 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12456 (list_cp_abis, _initialize_cp_abi): New functions.
12457 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12458 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12459 switch_to_cp_abi. Update prototype for register_cp_abi.
12460 * Makefile.in (cp-abi.o): Update dependencies.
12461 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12462 instead of switch_to_cp_abi.
12463 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12464 register_cp_abi.
12465 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12466 register_cp_abi.
12467 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12468
e4adbba9
DJ
124692003-03-05 Daniel Jacobowitz <drow@mvista.com>
12470
12471 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12472 * dwarf2loc.c: Include "regcache.h".
12473 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12474 register_size.
12475 * Makefile.in (dwarf2loc.o): Update dependencies.
12476
91ccbfc1
TR
124772003-03-04 Theodore A. Roth <troth@openavr.org>
12478
12479 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12480 number of io registers reported by remote target is not a multiple of
12481 step.
12482
3d4e8fd2
DC
124832003-03-04 David Carlton <carlton@math.stanford.edu>
12484
12485 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12486 (lookup_symbol_aux_psymtabs): Update call to
12487 lookup_partial_symbol.
12488 (lookup_transparent_type, find_main_psymtab)
12489 (make_symbol_overload_list): Ditto.
12490
ed42d87b
KH
124912003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12492
12493 * MAINTAINERS (Write after approval): Update my email address.
12494
a0ed5532
AC
124952003-03-03 Andrew Cagney <cagney@redhat.com>
12496
12497 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12498 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12499 predicate. Replace MAX_REGISTER_RAW_SIZE.
12500 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12501 MAX_REGISTER_VIRTUAL_SIZE.
12502 * regcache.c (legacy_max_register_raw_size): New function.
12503 (legacy_max_register_virtual_size): New function.
12504 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12505 (MAX_REGISTER_RAW_SIZE): Define.
12506 (legacy_max_register_raw_size): Declare.
12507 (legacy_max_register_virtual_size): Declare.
12508 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12509 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12510 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12511 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12512 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12513 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12514 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12515 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12516 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12518 * vax-tdep.c (vax_gdbarch_init): Update.
12519 * v850-tdep.c (v850_gdbarch_init): Update.
12520 * sparc-tdep.c (sparc_gdbarch_init): Update.
12521 * sh-tdep.c (sh_gdbarch_init): Update.
12522 * s390-tdep.c (s390_gdbarch_init): Update.
12523 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12524 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12525 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12526 * mips-tdep.c (mips_gdbarch_init): Update.
12527 * mcore-tdep.c (mcore_gdbarch_init): Update.
12528 * m68k-tdep.c (m68k_gdbarch_init): Update.
12529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12530 * ia64-tdep.c (ia64_gdbarch_init): Update.
12531 * i386-tdep.c (i386_gdbarch_init): Update.
12532 * hppa-tdep.c (hppa_gdbarch_init): Update.
12533 * h8300-tdep.c (h8300_gdbarch_init): Update.
12534 * frv-tdep.c (frv_gdbarch_init): Update.
12535 * cris-tdep.c (cris_gdbarch_init): Update.
12536 * avr-tdep.c (avr_gdbarch_init): Update.
12537 * arm-tdep.c (arm_gdbarch_init): Update.
12538 * alpha-tdep.c (alpha_gdbarch_init): Update.
12539 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12540 max_register_raw_size or max_register_virtual_size.
12541
8e437497
DC
125422003-03-03 David Carlton <carlton@math.stanford.edu>
12543
12544 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12545 SYMBOL_MATCHES_NAME, add comment.
12546 (SYMBOL_MATCHES_NATURAL_NAME): New.
12547 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12548 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12549 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12550 * symtab.c (lookup_partial_symbol): Use
12551 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12552 unhelpful comment.
12553 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12554 SYMBOL_MATCHES_NAME.
12555 Fix for PR c++/33.
12556
25120b0d
DC
125572003-03-03 David Carlton <carlton@math.stanford.edu>
12558
12559 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12560 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12561 by regexp matching against SYMBOL_NATURAL_NAME.
12562
78a11fb4
DC
125632003-03-03 David Carlton <carlton@math.stanford.edu>
12564
12565 * linespec.c (find_method): Extract code into collect_methods.
12566 (collect_methods): New.
12567
645dd519
MK
125682003-03-02 Mark Kettenis <kettenis@gnu.org>
12569
b4700d91
MK
12570 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12571 get_frame_base.
12572
645dd519
MK
12573 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12574 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12575
0aa7e1aa
SC
125762003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12577
8ffd9b1b 12578 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12579 and not regnum when summing the size of all registers up to regnum.
12580
f30ee0bc
AC
125812003-03-01 Andrew Cagney <cagney@redhat.com>
12582
12583 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12584 FRAME_INIT_SAVED_REGS.
12585 * gdbarch.h, gdbarch.c: Regenerate.
12586 * stack.c (frame_info): Update.
12587 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12588 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12589 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12590 * ns32k-tdep.c (ns32k_pop_frame): Update.
12591 * mips-tdep.c (mips_pop_frame): Update.
12592 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12593 * ia64-tdep.c (ia64_frame_chain): Update.
12594 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12595 (ia64_frameless_function_invocation): Update.
12596 (ia64_init_extra_frame_info): Update.
12597 (ia64_pop_frame_regular): Update.
12598 * frame.h (struct frame_info): Update comment.
12599 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12600 * frame.c (frame_saved_regs_register_unwind): Update.
12601 (frame_saved_regs_register_unwind): Update.
12602 (deprecated_generic_get_saved_register): Update.
12603 * cris-tdep.c: Update comment.
12604 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12605 Rename macro.
12606 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12607 * x86-64-tdep.c (x86_64_init_abi): Update.
12608 * vax-tdep.c (vax_gdbarch_init): Update.
12609 * v850-tdep.c (v850_gdbarch_init): Update.
12610 * sparc-tdep.c (sparc_gdbarch_init): Update.
12611 * sh-tdep.c (sh_gdbarch_init): Update.
12612 * s390-tdep.c (s390_gdbarch_init): Update.
12613 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12614 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12615 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12616 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12617 * mips-tdep.c (mips_gdbarch_init): Update.
12618 * mcore-tdep.c (mcore_gdbarch_init): Update.
12619 * m68k-tdep.c (m68k_gdbarch_init): Update.
12620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12621 * ia64-tdep.c (ia64_gdbarch_init): Update.
12622 * i386-tdep.c (i386_gdbarch_init): Update.
12623 * frv-tdep.c (frv_gdbarch_init): Update.
12624 * avr-tdep.c (avr_gdbarch_init): Update.
12625 * arm-tdep.c (arm_gdbarch_init): Update.
12626 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12627
42fa7c0f
AC
126282003-03-01 Andrew Cagney <cagney@redhat.com>
12629
12630 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12631 option enum and switch. When no windows, set the interpreter to
12632 INTERP_CONSOLE.
8ffd9b1b 12633
49c7e338
AC
126342003-03-01 Andrew Cagney <cagney@redhat.com>
12635
12636 * main.c (captured_main): Replace magic option characters with an
12637 enum.
12638
e9582e71
AC
126392003-03-01 Andrew Cagney <cagney@redhat.com>
12640
12641 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12642 INIT_EXTRA_FRAME_INFO.
12643 * gdbarch.h, gdbarch.c: Regenerate.
12644 * arm-tdep.c: Update comments.
12645 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12646 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12647 * frame.h, avr-tdep.c: Ditto.
12648 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12649 (create_new_frame, legacy_get_prev_frame): Ditto.
12650 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12651 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12653 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12654 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12655 * v850-tdep.c (v850_gdbarch_init): Ditto.
12656 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12657 * sh-tdep.c (sh_gdbarch_init): Ditto.
12658 * s390-tdep.c (s390_gdbarch_init): Ditto.
12659 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12660 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12661 * mips-tdep.c (mips_gdbarch_init): Ditto.
12662 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12664 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12665 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12666 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12667 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12668 * frv-tdep.c (frv_gdbarch_init): Ditto.
12669 * cris-tdep.c (cris_gdbarch_init): Ditto.
12670 * avr-tdep.c (avr_gdbarch_init): Ditto.
12671 * arm-tdep.c (arm_gdbarch_init): Ditto.
12672 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12673 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12674
35cac7cf
AC
126752003-03-01 Andrew Cagney <cagney@redhat.com>
12676
12677 * gdbarch.sh (register_type): New function with predicate.
12678 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12679 * gdbarch.h, gdbarch.c: Re-generate.
12680 * arch-utils.c (generic_register_byte): Use generic_register_size.
12681 (generic_register_size): When available, use
12682 gdbarch_register_type.
12683 * regcache.c (init_regcache_descr): When available, initialize the
12684 register type array using gdbarch_register_type. If the
12685 architecture supplies gdbarch_register_type, do not use the legacy
12686 regcache layout.
12687 * d10v-tdep.c (d10v_register_type): Replace
12688 d10v_register_virtual_type.
12689 (d10v_gdbarch_init): Set register_type instead of
12690 register_virtual_type.
12691
7b83296f
AC
126922003-03-01 Andrew Cagney <cagney@redhat.com>
12693
12694 * Makefile.in (ax-gdb.o): Update dependencies.
12695 * ax-gdb.c: Include "regcache.h".
12696 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12697 * findvar.c (value_of_register): Ditto.
12698 * infcmd.c (default_print_registers_info): Ditto.
12699
eadc1c87
MK
127002003-03-01 Mark Kettenis <kettenis@gnu.org>
12701
12702 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12703 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12704
14143612
MK
127052003-03-01 Mark Kettenis <kettenis@gnu.org>
12706
12707 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12708 of STREQ.
12709
a55cc764
DJ
127102003-02-28 Daniel Jacobowitz <drow@mvista.com>
12711
12712 * Makefile.in (dwarf2loc.o): Update dependencies.
12713 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12714 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12715 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12716 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12717 (locexpr_tracepoint_var_ref): New function.
12718 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12719
08a617da
AC
127202003-02-28 Andrew Cagney <cagney@redhat.com>
12721
12722 * regcache.c (register_size): New function.
12723 * regcache.h (register_size): Declare
12724 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12725 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12726
4224873a
DC
127272003-02-28 David Carlton <carlton@math.stanford.edu>
12728
12729 * linespec.c (decode_compound): Extract code into find_method.
12730 (find_method): New.
12731
ccdc5d7f
JB
127322003-02-28 J. Brobecker <brobecker@gnat.com>
12733
12734 * Makefile.in: Add rules to build and link in observer.o.
12735
974e8ced
JB
127362003-02-27 J. Brobecker <brobecker@gnat.com>
12737
12738 * observer.c: Minor comments edits.
12739
7a28f973
JB
127402003-02-27 J. Brobecker <brobecker@gnat.com>
12741
12742 * observer.h, observer.c: New file.
12743
27cddce2
AC
127442003-02-27 Andrew Cagney <cagney@redhat.com>
12745
12746 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12747
b94a41a1
SC
127482003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12749
12750 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12751 (M6812_OP_STS_EXT): Likewise.
12752 (m6811_prologue): Use the above to recognize prologue.
12753 (m6812_prologue): Likewise.
12754
c8be8951
DC
127552003-02-27 David Carlton <carlton@math.stanford.edu>
12756
12757 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12758 SYMBOL_PRINT_NAME.
12759 (compare_psymbols): Ditto.
12760 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12761
d05bb1fc
MS
127622003-02-27 Michael Snyder <msnyder@redhat.com>
12763
4e845cd3
MS
12764 * f-lang.c (build_fortran_types): New function.
12765 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12766 * doublest.c (extract_floating): Fix warning text.
12767
f3824013
AC
127682003-02-27 Andrew Cagney <cagney@redhat.com>
12769
12770 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12771 predicate. Replaces PUSH_DUMMY_FRAME.
12772 * gdbarch.h, gdbarch.c: Regnerate.
12773 * valops.c (hand_function_call): Update. Call
12774 generic_push_dummy_frame directly.
12775 * vax-tdep.c (vax_gdbarch_init): Update.
12776 * sparc-tdep.c (sparc_gdbarch_init): Update.
12777 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12778 * m68k-tdep.c (m68k_gdbarch_init): Update.
12779 * hppa-tdep.c (hppa_gdbarch_init): Update.
12780 * alpha-tdep.c (alpha_gdbarch_init): Update.
12781 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12782 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12783 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12784 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12785 push_dummy_frame to generic_push_dummy_frame.
12786 * v850-tdep.c (v850_gdbarch_init): Ditto.
12787 * sh-tdep.c (sh_gdbarch_init): Ditto.
12788 * s390-tdep.c (s390_gdbarch_init): Ditto.
12789 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12790 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12791 * mips-tdep.c (mips_gdbarch_init): Ditto.
12792 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12794 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12795 * i386-tdep.c (i386_gdbarch_init): Ditto.
12796 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12797 * frv-tdep.c (frv_gdbarch_init): Ditto.
12798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12799 * cris-tdep.c (cris_gdbarch_init): Ditto.
12800 * avr-tdep.c (avr_gdbarch_init): Ditto.
12801 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12802
ad188201
KB
128032003-02-26 Kevin Buettner <kevinb@redhat.com>
12804
12805 * mips-tdep.c (show_mips_abi): New function.
12806 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12807 command ``show mips abi''.
12808
6b37567a 128092003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12810
6b37567a 12811 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12812 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12813 more sline entries have been seen for the function.
12814
d3e0a5bf
MC
128152003-02-26 Michael Chastain <mec@shout.net>
12816
12817 * configure: Regenerate with autoconf 000227.
12818
18972eea
MC
128192003-02-26 Michael Chastain <mec@shout.net>
12820
12821 Close PR build/660.
12822 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12823 for old libc5/glibc.
12824 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12825
0bbde931
KW
128262003-02-26 Kris Warkentin <kewarken@qnx.com>
12827
12828 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12829 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12830
27ca5dad
MC
128312003-02-26 Michael Chastain <mec@shout.net>
12832
12833 * configure.in: New variable HAVE_UINTPTR_T.
12834 * configure, config.in: Regenerated.
12835
6f88d630
DJ
128362003-02-26 Daniel Jacobowitz <drow@mvista.com>
12837
12838 Fix PR build/1097.
12839 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12840
b14185ce
AC
128412003-02-25 Andrew Cagney <cagney@redhat.com>
12842
12843 * frame.c (get_prev_frame): Add comment on check for
12844 inside_entry_func. Only check for inside_entry_file when not a
12845 dummy and not a sentinel. Check that the new frame is not inner
12846 to the old frame.
12847
ac2bd0a9
AC
128482003-02-25 Andrew Cagney <cagney@redhat.com>
12849
12850 * frame.c (frame_debug): New variable.
12851 (_initialize_frame): Add "set/show debug frame" command.
12852 (get_prev_frame): When frame_debug, print reason why unwind
12853 failed.
12854
b18a0fd2
MC
128552003-02-25 Michael Chastain <mec@shout.net>
12856
12857 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12858 to avoid uintptr_t definition problems.
12859
22abf04a
DC
128602003-02-25 David Carlton <carlton@math.stanford.edu>
12861
12862 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12863 (SYMBOL_LINKAGE_NAME): Ditto.
12864 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12865 SYMBOL_LINKAGE_NAME.
12866 (struct general_symbol_info): Expand comment.
12867 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12868 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12869 (SYMBOL_MATCHES_REGEXP): Ditto.
12870 * symtab.c (symbol_natural_name): New function.
12871 * objfiles.h: Replace all uses of SYMBOL_NAME by
12872 DEPRECATED_SYMBOL_NAME.
12873 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12874 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12875 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12876 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12877 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12878 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12879 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12880 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12881 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12882 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12883 * ada-exp.y: Ditto.
12884 * ada-exp.y: Update copyright.
12885 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12886 * cp-valprint.c: Ditto.
12887
1a5848f6
JJ
128882003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12889
12890 * infptrace.c (detach): Do not flag error if ptrace detach fails
12891 and errno is set to ESRCH.
12892
7343d46a
AC
128932003-02-24 Andrew Cagney <cagney@redhat.com>
12894
12895 * infptrace.c (udot_info): Change type of udot_off to long. Use
12896 paddr when printing udot_off's value.
12897
49fa1dc2
DC
128982003-02-24 David Carlton <carlton@math.stanford.edu>
12899
12900 * symtab.c (make_symbol_overload_list): Only read in partial
12901 symtabs containing a matching partial symbol.
12902
0fe19209
DC
129032003-02-24 David Carlton <carlton@math.stanford.edu>
12904
12905 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12906 do the comparison, not strcmp.
12907 * symfile.c (compare_psymbols): Ditto.
12908 * defs.h: Declare strcmp_iw_ordered.
12909 * utils.c (strcmp_iw_ordered): New function.
12910
8e3ee7b5
JB
129112003-02-24 Jim Blandy <jimb@redhat.com>
12912
12913 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12914 support, shared libs): Remove my name from here, to better reflect
12915 reality.
12916
7df1a324
KW
129172003-02-24 Kris Warkentin <kewarken@qnx.com>
12918
12919 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12920 (target_ops): Add to_have_continuable_watchpoint.
12921 * target.c (update_current_target): Add INHERIT line for
12922 to_have_continuable_watchpoint.
12923 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12924 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12925 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12926 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12927
d1c76907
EZ
129282003-02-24 Elena Zannoni <ezannoni@redhat.com>
12929
12930 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12931 maintainership.
12932
2610b0bf
KW
129332003-02-24 Kris Warkentin <kewarken@qnx.com>
12934
f46169db
KW
12935 * solib.c (solib_open): Call target defined search function after
12936 failing with solib-search-path.
12937 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12938 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12939
9a3c34fe
KW
129402003-02-24 Kris Warkentin <kewarken@qnx.com>
12941
f46169db 12942 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12943
2417dd25
SC
129442003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12945
12946 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12947
b631436b
SC
129482003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12949
12950 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12951 (m68hc11_add_reggroups): New function.
12952 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12953 (m68hc11_gdbarch_init): Install the reggroups.
12954 (_initialize_m68hc11_tdep): Initialize them.
12955
0aa8c1e4
JW
129562003-02-21 James E Wilson <wilson@tuliptree.org>
12957
12958 * MAINTAINERS: Update my email address.
12959
50ceaba5
DC
129602003-02-21 David Carlton <carlton@math.stanford.edu>
12961
12962 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12963
4c2df51b
DJ
129642003-02-21 Daniel Jacobowitz <drow@mvista.com>
12965
12966 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12967 * symtab.h: Add opaque declarations of struct axs_value and
12968 struct agent_expr.
12969 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12970 (struct location_funcs): New type.
12971 (struct symbol): Add "loc" to aux_value.
12972 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12973 * dwarf2read.c: Include "dwarf2expr.h".
12974 (dwarf2_symbol_mark_computed): New function.
12975 (read_func_scope): Use it.
12976 (var_decode_location): New function.
12977 (new_symbol): Use it.
12978 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12979
12980 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12981 (dwarf2expr_h, dwarf2loc_h): New variables.
12982 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12983 (dwarf2expr.o, dwarf2loc.o): New rules.
12984 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12985 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12986 LOC_COMPUTED_ARG.
12987 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12988 * m2-exp.y (yylex): Likewise.
12989 * printcmd.c (address_info, print_frame_args): Likewise.
12990 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12991 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12992 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12993 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12994 * symtab.c (lookup_block_symbol): Likewise.
12995
5784d15e
AF
129962003-02-20 Adam Fedor <fedor@gnu.org>
12997
12998 * symtab.h: Remove objc_specific struct
12999 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
13000 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
13001 Have language_objc use cplus_specific struct.
13002
d4cad8db
TT
130032003-02-20 Tom Tromey <tromey@redhat.com>
13004
13005 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
13006 TYPE_NAME, when printing a String value. PR java/1075.
13007
2f9a90b4
AF
130082003-02-20 Adam Fedor <fedor@gnu.org>
13009
d38074a8 13010 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 13011 * objc-lang.c (find_methods): Make static.
2f9a90b4 13012
6f17862b
CF
130132003-02-20 Christopher Faylor <cgf@redhat.com>
13014
13015 * win32-nat.c (get_image_name): Check return value from
13016 ReadProcessMemory.
13017 (child_xfer_memory): Ditto.
13018
715d1656
AO
130192003-02-20 Alexandre Oliva <aoliva@redhat.com>
13020
13021 * configure.in (TARGET_SYSTEM_ROOT): Set default to
13022 ${exec_prefix}/${target_alias}/sys-root. Match explicit
13023 '${exec_prefix}' (in addition to the expansion thereof) as
13024 relocatable.
13025 * configure: Rebuilt.
13026
b1262a02
DC
130272003-02-20 David Carlton <carlton@math.stanford.edu>
13028
13029 * symtab.c (search_symbols): Revert the search_symbols part of my
13030 2002-12-23 patch. Add comment.
13031
7134143f
DJ
130322002-02-20 Daniel Jacobowitz <drow@mvista.com>
13033
13034 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
13035 * dbxread.c (elfstab_build_psymtabs): Don't call
13036 install_minimal_symbols.
13037 (stabsect_build_psymtabs): Likewise.
13038 * elfread.c (elf_symfile_read): Call install_minimal_symbols
13039 earlier.
13040 * somread.c (som_symfile_read): Call install_minimal_symbols
13041 and do_cleanups earlier.
13042 * nlmread.c (nlm_symfile_read): Likewise.
13043 * mdebugread.c (elfmdebug_build_psymtabs): Call
13044 install_minimal_symbols and make appropriate cleanups.
13045
cf466558
KB
130462003-02-20 Kevin Buettner <kevinb@redhat.com>
13047
13048 * solib.c (reload_shared_libraries): New function.
13049 (_initialize_solib): Add callbacks for ``set solib-search-path''
13050 and ``set solib-absolute-prefix''.
13051
de5ad195
DC
130522003-02-20 David Carlton <carlton@math.stanford.edu>
13053
13054 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13055 expand comment.
13056 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13057 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13058 * ada-typeprint.c (ada_typedef_print): Ditto.
13059 * ax-gdb.c (gen_var_ref): Ditto.
13060 * breakpoint.c (print_one_breakpoint): Ditto.
13061 * buildsym.c (finish_block): Ditto.
13062 * c-valprint.c (c_val_print): Ditto.
13063 * expprint.c (print_subexp): Ditto.
13064 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
13065 * infcmd.c (jump_command): Ditto.
13066 * linespec.c (decode_line_2, decode_compound): Ditto.
13067 * maint.c (maintenance_translate_address): Ditto.
13068 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
13069 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13070 Ditto.
8ffd9b1b
AJ
13071 * p-valprint.c (pascal_val_print): Ditto.
13072 * stabsread.c (define_symbol): Ditto.
de5ad195 13073 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
13074 (print_frame_arg_vars, return_command): Ditto.
13075 * symfile.c (compare_symbols, compare_psymbols): Ditto.
13076 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
13077 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13078 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
13079 (rbreak_command): Ditto.
13080 * tracepoint.c (tracepoints_info): Ditto.
13081 * typeprint.c (typedef_print): Ditto.
13082 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
13083 * cli/cli-cmds.c (edit_command, list_command): Ditto.
13084 * ada-typeprint.c: Update Copyright.
13085 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13086 * tracepoint.c, cli/cli-cmds.c: Ditto.
13087
f796e4be
KB
130882003-02-20 Kevin Buettner <kevinb@redhat.com>
13089
13090 * frame.c (generic_unwind_get_saved_register): Make non-static.
13091 * frame.h (generic_unwind_get_saved_register): Declare.
13092 * mips-tdep.c (read_next_frame_reg): Fetch register from
13093 current regcache when frame is NULL.
13094 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13095 that must be NULL.
13096 (mips_get_saved_register): Call generic_unwind_get_saved_register()
13097 instead of frame_register_unwind().
13098
836cc9f4
AC
130992003-02-20 Andrew Cagney <ac131313@redhat.com>
13100
13101 * remote-sim.c (gdbsim_insert_breakpoint)
13102 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13103 code.
13104
501eef12
AC
131052003-02-20 Andrew Cagney <ac131313@redhat.com>
13106
13107 * remote.c (_initialize_remote): Add commands "set/show remote
13108 hardware-watchpoint-limit" and "set/show remote
13109 hardware-breakpoint-limit".
13110 (remote_hw_watchpoint_limit): Initialize to -1.
13111 (remote_hw_breakpoint_limit): Ditto.
13112 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13113
1b6bc7e0
CF
131142003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
13115
13116 * coff-pe-read.c: New file - support reading of minimal symbols from a
13117 portable executable using the export table.
13118 * coff-pe-read.h: New file.
13119 * coffread.c: Include coff-pe-read.h.
13120 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13121 debugging symbols found.
13122 * Makefile.in (SFILES): Add coff-pe-read.o.
13123 (coff_pe_read_h): Define.
13124 (COMMON_OBS): Add coff-pe-read.o.
13125 (coffread.o): Add coff_pe_read_h dependency.
13126 (coff-pe-read.o): New target.
13127
fe898f56
DC
131282003-02-19 David Carlton <carlton@math.stanford.edu>
13129
13130 * Makefile.in (SFILES): Add block.c.
13131 (block_h): New.
13132 (COMMON_OBS): Add block.o.
13133 (block.o): New.
13134 (x86-64-tdep.o): Add $(block_h).
13135 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13136 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13137 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13138 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13139 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13140 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13141 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13142 * value.h: Add opaque declaration for struct block.
13143 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13144 * ada-lang.h: Ditto.
13145 * x86-64-tdep.c: #include "block.h"
13146 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13147 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13148 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13149 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13150 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13151 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13152 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13153 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13154 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13155 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13156 * symtab.c (block_function): Ditto.
13157 (contained_in): Ditto.
13158 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13159 block.h. Add opaque declaration for struct block.
13160 * symtab.h: Move block_function and contained_in declarations to
13161 block.h. Add opaque declarations for struct block, struct
13162 blockvector.
13163 (struct block): Move to block.h.
13164 (struct blockvector): Ditto.
13165 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13166 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13167 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13168 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13169 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13170 Ditto.
13171 * block.c: New file.
13172 * block.h: New file.
13173
173345b5
TR
131742003-02-19 Theodore A. Roth <troth@openavr.org>
13175
13176 * avr-tdep.c (avr_extract_return_value): Remove function.
13177 (avr_store_return_value): Remove function.
13178 (avr_extract_struct_value_address): Remove function.
13179 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13180
338ef23d
AC
131812003-02-19 Andrew Cagney <ac131313@redhat.com>
13182
13183 * rs6000-tdep.c: Include "gdb_assert.h".
13184 (registers_e500): Add "acc" and "spefscr".
13185 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13186 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13187 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13188 really is "r0".
13189 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13190
5412f5f3
KS
131912003-02-18 Keith Seitz <keiths@redhat.com>
13192
13193 * Makefile.in: Add gdbtk-interps.c.
13194
881324eb
KB
131952003-02-18 Kevin Buettner <kevinb@redhat.com>
13196
13197 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13198 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13199
6a2f5abf
AC
132002003-02-18 Andrew Cagney <cagney@redhat.com>
13201
13202 * symtab.h (struct objfile): Add opaque declaration.
13203
54c7009d
EZ
132042003-02-18 Elena Zannoni <ezannoni@redhat.com>
13205
13206 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
13207 * dbxread.c (process_one_symbol): Use last_function_start rather
13208 than function_start_offset to find the real beginning of the
13209 current function. The latter is just the text section offset on
13210 some systems, the former is always the real function start.
54c7009d 13211
7ee6d7eb
AC
132122003-02-17 Andrew Cagney <cagney@redhat.com>
13213
13214 * configure.in: Revert ${target} != ${host}.
13215
2846da9b
AC
132162003-02-17 Andrew Cagney <ac131313@redhat.com>
13217
13218 * configure.in (Makefile): Use the test ${target} != ${host},
13219 instead of the absence of the "nm.h" file, to determine of the
13220 configuration non-native.
13221 * configure: Regenerate.
8ffd9b1b 13222
3b27aeea
EZ
132232003-02-14 Elena Zannoni <ezannoni@redhat.com>
13224
fbe586ae 13225 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
13226
13227 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13228 conditionalize tui_active test.
13229 (lookup_cmd_1): Ditto.
13230
b0b1c2c0
MK
132312003-02-14 Mark Kettenis <kettenis@gnu.org>
13232
13233 * configure.in: Add check for _etext.
13234 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13235 available.
13236 * config.in, configure: regenerated.
13237
8f05cde5
DJ
132382003-02-14 Daniel Jacobowitz <drow@mvista.com>
13239
13240 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13241
021e7609
AC
132422003-02-14 Andrew Cagney <ac131313@redhat.com>
13243
13244 * main.c (tui_version): Delete variable.
13245 (captured_main): When --tui, set interpreter_p to "tui" instead of
13246 enabling tui_version.
13247 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13248 tui_version.
13249 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13250 * cli/cli-cmds.c (disassemble_command): Ditto.
13251 * defs.h (tui_version): Delete declaration.
13252 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13253 (tui-interp.o): Add rules.
13254 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13255
e325dcec
CF
132562003-02-14 Christopher Faylor <cgf@redhat.com>
13257
36ffb041 13258 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13259 just-loaded dll.
13260
c4f90d87
JM
132612003-02-12 Jason Molenda (jmolenda@apple.com)
13262
fbe586ae
RH
13263 * symmisc.c (print_objfile_statistics): Include information about
13264 the number of psymtabs and symtabs in each object file.
c4f90d87 13265
e46e5ccd
KS
132662003-02-13 Keith R Seitz <keiths@redhat.com>
13267
13268 * main.h (struct captured_main_args): Add interpreter_p.
13269 * main.c (captured_main): Initialize interpreter_p from context.
13270 * gdb.c (main): Set interpreter_p argument.
13271 * Makefile.in (gdb.o): Add dependency for interps.h.
13272
fe97fe9c
AC
132732003-02-12 Andrew Cagney <ac131313@redhat.com>
13274
13275 * event-top.c (cli_command_loop): Delete declaration.
13276 (_initialize_event_loop): Delete function setting event_loop_hook.
13277 * event-top.h (cli_command_loop): Declare. Update copyright.
13278 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13279 * interps.c (current_interp_command_loop): When event_loop_p, call
13280 cli_command_loop.
13281
1cdac4ef
AC
132822003-02-12 Andrew Cagney <ac131313@redhat.com>
13283
13284 * interps.h (interp_command_loop_ftype): Change return type to
13285 void.
13286
48037ead
ML
132872003-02-12 Michal Ludvig <mludvig@suse.cz>
13288
13289 * x86-64-tdep.c (x86_64_extract_return_value)
13290 (x86_64_store_return_value): Use regcache instead of regbuf.
13291 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13292 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13293
033afc63
AC
132942003-02-11 Andrew Cagney <ac131313@redhat.com>
13295
13296 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13297 * aclocal.m4: Regenerate.
13298 * configure: Regenerate.
13299
13300 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13301 TCL_LD_SEARCH_FLAGS.
13302
40d02bca
ML
133032003-02-10 Michal Ludvig <mludvig@suse.cz>
13304
13305 * dwarf2cfi.c: Reindented.
13306
11308a41
AC
133072003-02-09 Andrew Cagney <ac131313@redhat.com>
13308
13309 * interps.c (clear_interpreter_hooks): Convert function definition
13310 to ISO C.
13311
e1c1c0f6
DC
133122003-02-07 David Carlton <carlton@math.stanford.edu>
13313
13314 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13315
ab5d3da6
KB
133162003-02-07 Kevin Buettner <kevinb@redhat.com>
13317
13318 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13319 (struct type): ...to here.
13320 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13321 field.
13322 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13323 (replace_type): Set length on all type variants for a given type.
13324
b8a92b82
AC
133252003-02-07 Andrew Cagney <ac131313@redhat.com>
13326
13327 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13328 <sys/stat.h>.
13329 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13330
5cb316ef
AC
133312003-02-06 Andrew Cagney <ac131313@redhat.com>
13332
2555fe1a
AC
13333 * Makefile.in (symm-nat.o): Update dependencies.
13334 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13335 (lynx-nat.o, ia64-linux-nat.): Ditto.
13336 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13337 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13338 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13339
44270758
AC
13340 * Makefile.in (inflow_h): Define.
13341 (procfs.o, inflow.o, procfs.o): Update dependencies.
13342 * inftarg.c (child_stop): Delete extern declaration of
13343 inferior_process_group. Include "inflow.h".
13344 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13345 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13346 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13347 (our_process_group, inferior_process_group): Extern declarations.
13348
df8f7274
AC
13349 * procfs.c: Include "gdb_assert.h".
13350
5cb316ef
AC
13351 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13352 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13353 * jv-typeprint.c (java_type_print_base): Ditto.
13354 * typeprint.c (typedef_print): Eliminate STREQ.
13355 * cli/cli-script.c (define_command, define_command): Ditto.
13356 * main.c (captured_main): Ditto.
13357 * values.c (lookup_internalvar): Ditto.
13358 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13359 within `if' conditional.
13360 * linespec.c (decode_line_2): Ditto.
13361 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13362 (bfd_openw_with_cleanup): Ditto.
13363
2a28ccea
MK
133642003-02-07 Mark Kettenis <kettenis@gnu.org>
13365
13366 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13367 legacy_extract_return_value and store_return_value to
13368 legacy_return_value.
13369
786b8124
CF
133702003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13371
13372 * win32-nat.c (get_relocated_section_addrs): New function. Find
13373 section load addresses for symbol handling in relocated DLLs.
13374 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13375
b871e4ec
FF
133762003-02-05 Fred Fish <fnf@intrinsity.com>
13377
13378 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13379 '=' and '!='.
13380 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13381 with '&' and '=='.
13382 (angel_RDI_info): Ditto.
13383 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13384 with '&' and '!='.
13385 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13386
4389a95a 133872003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13388 Keith Seitz <keiths@redhat.com>
13389 Elena Zannoni <ezannoni@redhat.com>
13390 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13391
13392 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13393 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13394 (SUBDIR_MI_OBS): Add "mi-interp.o".
13395 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13396 (SFILES): Add "interps.c".
13397 (COMMON_OBS): Add "interps.o".
13398 (interps_h, mi_main_h): Define.
13399 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13400 (mi-main.o, main.o, event-top.o): Update dependencies.
13401 * cli/cli-interp.c: New file.
13402 * interps.h, interps.c: New files.
13403 * top.c: (gdb_init): Don't install the default interpreter, handed
13404 by captured_main.
13405 * main.c: Include "interps.h".
13406 (interpreter_p): Note that it should malloc'ed.
13407 (captured_command_loop): Call current_interp_command_loop.
13408 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13409 xfree and xstrdup when updating interpreter_p. Install the
13410 default interpreter. Add hack to stop mi1's copyright notice
13411 being encoded.
13412 * event-top.h (gdb_setup_readline): Declare.
13413 (gdb_disable_readline): Declare.
13414 * event-top.c: Include "interps.h".
13415 (display_gdb_prompt): Call current_interp_display_prompt_p.
13416 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13417 gdb_stdlog, and gdb_stdtarg.
13418 (_initialize_event_loop): Don't call gdb_setup_readline.
13419 * cli-out.c (cli_out_set_stream): New function.
13420 * cli-out.h (cli_out_set_stream): Declare.
13421
ff3b5810
MK
134222003-02-06 Mark Kettenis <kettenis@gnu.org>
13423
13424 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13425 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13426 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13427 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13428 config/i386/i386v42mp.mt: Removed.
13429
5b729aa5
MK
134302003-02-05 Mark Kettenis <kettenis@gnu.org>
13431
13432 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13433 GDB_OSABI_SOLARIS.
13434
8cc15142
MC
134352003-02-05 Michael Chastain <mec@shout.net>
13436
13437 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13438 2.12.1 and earlier versions.
13439
5aa5d4b9
AC
134402003-02-05 Andrew Cagney <ac131313@redhat.com>
13441
13442 Remove orphaned hosts, targets and files.
13443 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13444 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13445 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13446 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13447 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13448 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13449 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13450 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13451 * config/sparc/tm-sp64sim.h: Delete.
13452 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13453 hosts.
13454 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13455 mips*-dec-mach3* targets.
13456
b68767c1
MC
134572003-02-04 Michael Chastain <mec@shout.net>
13458
13459 * NEWS: Fix typo: sepcifying -> specifying.
13460
5ae7ca1d
MC
134612003-02-04 Michael Chastain <mec@shout.net>
13462
13463 * dwarfread.c: Add documentation on the state of dwarf-1,
13464 looking towards obsoletion.
13465
d08a4280
MC
134662003-02-03 Michael Chastain <mec@shout.net>
13467
13468 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13469 gdb/testsuite/gdb.c++/pr-1023.exp.
13470
e9be73e4
AC
134712003-02-04 Andrew Cagney <ac131313@redhat.com>
13472
13473 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13474 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13475
13476 * utils.c (init_page_info): Delete reference to MPW in comments.
13477 * main.c (captured_main): Delete #ifdef MPW.
13478
05d57f6f
AC
134792003-02-04 Andrew Cagney <ac131313@redhat.com>
13480
8ffd9b1b 13481 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13482 * monitor.c (monitor_expect): Obsolete reference to m32r.
13483 * configure.tgt: Mark m32r-*-elf* as obsolete.
13484 * MAINTAINERS: Mark m32k as obsolete.
13485 * m32r-rom.c: Obsolete file.
13486 * config/m32r/m32r.mt: Obsolete file.
13487 * config/m32r/tm-m32r.h: Obsolete file.
13488 * m32r-stub.c: Obsolete file.
13489 * m32r-tdep.c: Obsolete file.
13490
8b0e5691
AC
134912003-02-04 Andrew Cagney <ac131313@redhat.com>
13492
13493 * NEWS: Mention that the z8k-zilog-none is obsolete.
13494 * MAINTAINERS: Mark z8k as obsolete.
13495 * configure.tgt: Obsolete the z8k-*-coff* target.
13496 * config/z8k/z8k.mt: Obsolete file.
13497 * config/z8k/tm-z8k.h: Obsolete file.
13498 * z8k-tdep.c: Obsolete file.
13499
67f16606
AC
135002003-02-04 Andrew Cagney <ac131313@redhat.com>
13501
13502 * NEWS: Mention that the mn10200-elf is obsolete.
13503 * configure.tgt: Obsolete mn10200-*-* target.
13504 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13505 mention that the mn10200 is obsolete.
13506 * breakpoint.h: Ditto.
13507 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13508 * config/mn10200/mn10200.mt: Obsolete file.
13509 * config/mn10200/tm-mn10200.h: Obsolete file.
13510 * mn10200-tdep.c: Obsolete file.
13511
fd2299bd
AC
135122003-02-04 Andrew Cagney <ac131313@redhat.com>
13513
13514 * MAINTAINERS: Mark h8500 as obsolete.
13515 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13516 * findvar.c (value_from_register): Ditto.
13517 * h8500-tdep.c: Mark file as obsolete.
13518 * config/h8500/h8500.mt: Ditto.
13519 * config/h8500/tm-h8500.h: Ditto.
13520 * NEWS: Mention that h8500 is obsolete.
13521
eb9a305d
DC
135222003-02-04 David Carlton <carlton@math.stanford.edu>
13523
13524 * objfiles.c (allocate_objfile): Always set name. Add comment at
13525 start of function.
13526 * jv-lang.c (get_dynamics_objfile): Add comment.
13527
406fc7fb
DC
135282003-02-04 David Carlton <carlton@math.stanford.edu>
13529
13530 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13531 * printcmd.c (build_address_symbolic): Replace uses of
13532 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13533 SYMBOL_NAME, and asm_demangle.
13534 Update copyright.
13535
93d91629
DC
135362003-02-04 David Carlton <carlton@math.stanford.edu>
13537
13538 * linespec.c (decode_compound): Extract code into
13539 lookup_prefix_sym.
13540 (lookup_prefix_sym): New function.
13541
1c5cb38e
DC
135422003-02-04 David Carlton <carlton@math.stanford.edu>
13543
13544 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13545 FLOAT_COERCION_BADNESS.
13546 * gdbtypes.c (rank_one_type): Replace all uses of
13547 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13548
0cf824c9
JB
135492003-02-04 Jim Blandy <jimb@redhat.com>
13550
13551 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13552 section, let dwarf_macinfo_section point to it, not
13553 dwarf_loc_section.
13554
a2d356b0
DJ
135552003-02-04 Daniel Jacobowitz <drow@mvista.com>
13556
13557 Pointed out by Anton Blanchard <anton@samba.org>.
13558 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13559 (ppc_linux_at_sigtramp_return_path): Use it.
13560
2de7ced7
DJ
135612003-02-04 Daniel Jacobowitz <drow@mvista.com>
13562
13563 * defs.h (streq): Add prototype.
13564 * utils.c (streq): New function.
13565
13566 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13567 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13568 * mdebugread.c (new_symbol): Likewise.
13569 * stabsread.c (define_symbol): Likewise.
13570 * coffread.c (process_coff_symbol): Likewise.
13571 * dwarfread.c (new_symbol): Likewise.
13572
13573 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13574 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13575 here.
13576 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13577 SYMBOL_INIT_DEMANGLED_NAME.
13578 * objfiles.c: Include "hashtab.h".
13579 (allocate_objfile): Call htab_set_functions_ex for the
13580 demangled_names_hash.
13581 (free_objfile): Call htab_delete for the demangled_names_hash.
13582 * objfiles.h (struct htab): Add declaration.
13583 (struct objfile): Add demangled_names_hash.
13584 * symfile.c: Include "hashtab.h".
13585 (reread_symbols): Call htab_delete for the demangled_names_hash.
13586 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13587 SYMBOL_NAME in the bcache.
13588 * symtab.c: Include "hashtab.h". Update comments.
13589 (create_demangled_names_hash, symbol_set_names): New functions.
13590 (symbol_find_demangled_name): New function, broken out from
13591 symbol_init_demangled_names.
13592 (symbol_init_demangled_names): Use it.
13593 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13594 (SYMBOL_SET_NAMES): New macro.
13595 (symbol_set_names): Add prototype.
13596
15831452
JB
135972003-02-03 Jim Blandy <jimb@redhat.com>
13598
13599 Use a single, consistent representation for an empty minimal
13600 symbol table in an objfile.
13601 * objfiles.c (terminate_minimal_symbol_table): New function.
13602 (allocate_objfile): Call it.
13603 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13604 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13605 non-NULL.
15831452
JB
13606 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13607 objfile has minimal symbols, compare minimal_symbol_count to zero,
13608 instead of comparing msymbols with NULL.
13609 * objfiles.c (have_minimal_symbols): Same.
13610 * solib-sunos.c (solib_add_common_symbols): Call
13611 terminate_minimal_symbol_table.
13612 * symfile.c (reread_symbols): Same.
8ffd9b1b 13613
ffc65945
KB
136142003-02-03 Kevin Buettner <kevinb@redhat.com>
13615
13616 * s390-tdep.c (s390_address_class_type_flags)
13617 (s390_address_class_type_flags_to_name)
13618 (s390_address_class_name_to_type_flags): New functions.
13619 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13620 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13621
f211c6d4
MS
136222003-02-03 Michael Snyder <msnyder@redhat.com>
13623
13624 * arm-tdep.c: Fix spell-o in comment.
13625
659b0389
ML
136262003-02-03 Michal Ludvig <mludvig@suse.cz>
13627
13628 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13629 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13630 error messages to contain BFD filename.
659b0389 13631
3b31d625
EZ
136322003-02-02 Elena Zannoni <ezannoni@redhat.com>
13633
997b089a 13634 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13635 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13636 (do_mixed_source_and_assembly): Use
13637 make_cleanup_ui_out_tuple_begin_end and
13638 make_cleanup_ui_out_tuple_begin_end.
13639 (do_mixed_source_and_assembly): Ditto.
13640 * thread.c (do_captured_list_thread_ids): Ditto.
13641 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13642 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13643 ui_out_tuple_end): Delete prototypes.
13644 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13645 ui_out_list_end, ui_out_tuple_end): Delete.
13646
13647 From Kevin Buettner <kevinb@redhat.com>:
13648 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13649 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13650 (do_cleanup_table_end): New functions.
13651 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13652 Use cleanups to invoke_ui_out_tuple_end().
13653 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13654 * cli/cli-setshow.c (cmd_show_list): Use
13655 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13656
5b181d62
AC
136572003-02-02 Andrew Cagney <ac131313@redhat.com>
13658
13659 * frame.c (frame_unwind_register): New function.
13660 (frame_unwind_unsigned_register): Use.
13661 (frame_unwind_signed_register): Use.
13662 (frame_read_register): New function.
13663 * frame.h (frame_unwind_register): Declare.
13664 (frame_read_register): Declare.
13665
13666 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13667 and frame_unwind_register instead of read_memory, write_register
13668 and deprecated_write_register_bytes.
13669
5f601589
AC
136702003-02-02 Andrew Cagney <ac131313@redhat.com>
13671
13672 * frame.h: Note that namelen can be negative.
13673 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13674 NAME's length.
13675
13676 * NEWS: Mention that the d10v's `regs' command is deprecated.
13677 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13678 (d10v_print_registers_info): New function.
13679 (show_regs): Call d10v_print_registers_info.
13680 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13681
6a3fe0a4
MK
136822003-02-02 Mark Kettenis <kettenis@gnu.org>
13683
13684 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13685 lost in the previous patch.
13686
075559bc
AC
136872003-02-01 Andrew Cagney <ac131313@redhat.com>
13688
13689 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13690 * stack.c (print_frame_info_base): Output complete FRAME tuple
13691 for synthesized frames.
075559bc 13692
6789195b
AC
136932003-02-02 Andrew Cagney <ac131313@redhat.com>
13694
13695 * mips-nat.c (zerobuf): Delete.
13696 (fetch_inferior_registers): Alloc local zerobuf.
13697 (fetch_core_registers): Alloc local zerobuf.
13698 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13699 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13700 * thread-db.c (thread_db_store_registers): Ditto.
13701 * sh-tdep.c (sh_do_register): Ditto.
13702 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13703 * remote-sim.c (gdbsim_store_register): Ditto.
13704 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13705 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13706 * monitor.c (monitor_supply_register): Ditto.
13707 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13708 * mips-nat.c (fetch_inferior_registers): Ditto.
13709 * m68klinux-nat.c (fetch_register): Ditto.
13710 * lynx-nat.c (fetch_inferior_registers): Ditto.
13711 (fetch_inferior_registers): Ditto.
13712 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13713 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13714 (hpux_thread_store_registers): Ditto.
13715 * hppah-nat.c (fetch_register): Ditto.
13716 * hppab-nat.c (fetch_register): Ditto.
13717 * hppa-tdep.c (pa_register_look_aside): Ditto.
13718 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13719 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13720
e669114a
AC
137212003-02-01 Andrew Cagney <ac131313@redhat.com>
13722
13723 * gdbarch.sh: Explictly specify all method levels. When a
13724 variable with an empty level, provide a non-multi-arch default.
13725 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13726 * gdbarch.h: Re-generate.
13727 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13728 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13729
9a043c1d
AC
137302003-02-01 Andrew Cagney <ac131313@redhat.com>
13731
13732 * defs.h (host_pointer_to_address): Delete declaration.
13733 (address_to_host_pointer): Delete declaration.
13734 * utils.c (host_pointer_to_address): Delete function.
13735 (address_to_host_pointer): Delete function.
13736 * procfs.c (procfs_address_to_host_pointer): New function.
13737 * procfs.c (proc_set_watchpoint): Use.
13738 (procfs_can_use_hw_breakpoint): Update comments.
13739 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13740 (som_solib_add): Use.
13741 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13742 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13743
7ca9f392
AC
137442003-02-01 Andrew Cagney <ac131313@redhat.com>
13745
94bbfd30
AC
13746 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13747 strlen d_name.
13748
7ca9f392
AC
13749 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13750 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13751 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13752 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13753 (define_symbol): Update.
13754 * symfile.c (generic_load): Remove references to nindy.
13755 * symtab.c: Remove references to nindy.
13756
31a85ea2
AC
137572003-02-01 Andrew Cagney <ac131313@redhat.com>
13758
13759 * infcmd.c (print_float_info): Delete code conditional on
13760 FLOAT_INFO.
13761 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13762 * config/m68k/nm-apollo68b.h: Ditto.
13763 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13764 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13765 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13766
f6e85fc8
MK
137672003-02-01 Mark Kettenis <kettenis@gnu.org>
13768
6015b6a0
MK
13769 * config/i386/tm-i386os9k.h: Removed.
13770
f7a30bdf
MK
13771 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13772 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13773 they're identical to i[3456]86-*-sysv* now.
13774 * config/i386/i386v32.mh: Removed.
13775 * config/i386/xm-i386v32.h: Removed.
13776 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13777
28d52111
MK
13778 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13779
4d3f6bce
MK
13780 * config/i386/i386dgux.mh: Removed.
13781 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13782
f6e85fc8
MK
13783 * configure.in: Fix typo.
13784 * configure: Regenerated.
13785
53955967
DC
137862003-01-31 David Carlton <carlton@math.stanford.edu>
13787
13788 * dwarf2read.c (dwarf2_locate_sections): Set
13789 dwarf_ranges_section.
13790
b1364885
AC
137912003-01-31 Andrew Cagney <ac131313@redhat.com>
13792
8dbb1c65
AC
13793 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13794 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13795
8731e58e
AC
13796 * utils.c: Re-indent.
13797
b1364885
AC
13798 * config/djgpp/fnchange.lst: Delete nindy files.
13799 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13800 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13801 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13802 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13803 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13804 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13805 * Makefile.in (init.c): Remove nindy references.
13806 (saber_gdb): Delete rule.
13807 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13808 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13809 and a68v-nat.c.
13810 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13811 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13812 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13813 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13814 nindy-share/stop.h.
13815 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13816 * saber.suppress: Delete file.
13817
086df311
DJ
138182003-01-31 Daniel Jacobowitz <drow@mvista.com>
13819
13820 * dbxread.c (stabs_data): New static variable.
13821 (fill_symbuf): Support an in-memory buffer for stabs data.
13822 (stabs_seek): New function.
13823 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13824 (read_ofile_symtab): Use stabs_seek.
13825 (elfstab_build_psymtabs): Take an asection* instead of
13826 an offset and size. Relocate the stabs data if necessary.
13827 Save the section* for dbx_psymtab_to_symtab.
13828 * dwarf2read.c: Add section variables for each debug section.
13829 (dwarf2_locate_sections): Fill them in.
13830 (dwarf2_read_section): Take an asection* argument.
13831 Relocate the section contents if necessary.
13832 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13833 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13834 it to dwarf2_read_section.
13835 (dwarf2_build_frame_info): Update callers.
13836 * elfread.c (elf_symfile_read): Update call to
13837 elfstab_build_psymtabs.
13838 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13839 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13840 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13841 * symfile.c (symfile_dummy_outputs): New function.
13842 (symfile_relocate_debug_section): New function.
13843 * symfile.h (symfile_relocate_debug_section): Add prototype.
13844
87d1b352
RH
138452003-01-31 Richard Henderson <rth@redhat.com>
13846
13847 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13848 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13849 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13850 * alpha-tdep.c (alpha_register_name): Add "unique".
13851 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13852 (ALPHA_UNIQUE_REGNUM): New.
13853 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13854
c48861fb
AC
138552003-01-31 Andrew Cagney <ac131313@redhat.com>
13856
13857 * README: Remove reference to Ericsson 1800 monitor.
13858 * Makefile.in (remote-es.o): Delete rule.
13859 (ALLDEPFILES): Delete remote-es.c.
13860 * remote-es.c: Delete file.
13861 * config/m68k/es1800.mt: Delete file.
13862 * config/djgpp/fnchange.lst: Update.
13863 * configure.tgt: Delete m68*-ericsson-* target.
13864
d764a824
AF
138652003-01-31 Adam Fedor <fedor@gnu.org>
13866
13867 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13868 Remove duplicate/shadowing variable of same name.
13869
fe36c4f4
JB
138702003-01-30 Jim Blandy <jimb@redhat.com>
13871
13872 * symfile.c (find_separate_debug_file): Assert that the objfile's
13873 directory name we compute ends with a slash, and then assume that
13874 that's so everywhere we use it.
13875
cb741690
DJ
138762003-01-30 Daniel Jacobowitz <drow@mvista.com>
13877
13878 * valops.c (value_assign): Flush frame cache after stores to memory
13879 also.
13880
96ee5227
AC
138812003-01-30 Andrew Cagney <ac131313@redhat.com>
13882
13883 * Makefile.in (mon960-rom.o): Delete rule.
13884 * mon960-rom.c: Delete file.
13885
7f6104a9
AC
138862003-01-30 Andrew Cagney <ac131313@redhat.com>
13887
13888 * d10v-tdep.c: Include "frame-unwind.h".
13889 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13890 list.
13891 (next_addr, uses_frame): Delete.
13892 (struct d10v_unwind_cache): Define.
13893 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13894 Use info instead of next_addr and uses_frame globals.
13895 (d10v_frame_init_saved_regs): Delete function.
13896 (d10v_init_extra_frame_info): Delete function.
13897 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13898 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13899 init_frame_pc or frame_saved_pc.
13900 (d10v_pop_frame): Delete function.
13901 (do_d10v_pop_frame): Delete function.
13902 (d10v_frame_chain): Delete function.
13903 (d10v_frame_chain_valid): Delete function.
13904 (d10v_frame_pc_unwind): New function.
13905 (d10v_frame_id_unwind): New function.
13906 (saved_regs_unwinder): New function.
13907 (d10v_frame_register_unwind): New function.
13908 (d10v_frame_pop): New function.
13909 (d10v_frame_unwind): New variable.
13910 (d10v_frame_p): New function.
13911 (d10v_frame_saved_pc): Delete function.
13912 * Makefile.in (d10v-tdep.o): Update dependencies.
13913
cad2e848
JB
139142003-01-30 J. Brobecker <brobecker@gnat.com>
13915
13916 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13917 causing some regressions due to a change in the default value
13918 for this macro.
13919
af34e669
DJ
139202003-01-29 Richard Henderson <rth@redhat.com>
13921 Elena Zannoni <ezannoni@redhat.com>
13922 Daniel Jacobowitz <drow@mvista.com>
13923
13924 Fix PR gdb/961.
8ffd9b1b 13925 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13926 variables.
13927 (RANGES_SECTION): New.
13928 (dwarf_ranges_buffer): New variable.
13929 (struct comp_unit_head): Add member "die".
13930 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13931 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13932 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13933 (dwarf2_locate_sections): Likewise.
13934 (dwarf2_build_psymtabs): Read .debug_ranges.
13935 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13936 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13937 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13938 Look for DW_AT_ranges and return the bounding box.
13939
baa93fa6
CF
139402003-01-29 Brian Ford <ford@vss.fsi.com>
13941
13942 * win32-nat.c (cygwin_pid): Removed as unused.
13943 (child_attach): Try fall back to Cygwin pid.
13944
c63f977f
JB
139452003-01-29 Jim Blandy <jimb@redhat.com>
13946
13947 * objfiles.h (struct objfile): Doc fix.
13948
d62d1979
AC
139492003-01-29 Andrew Cagney <ac131313@redhat.com>
13950
13951 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13952 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13953 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13954 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13955 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13956 (FRAME_SAVED_PC): Change to a function with predicate.
13957 * gdbarch.h, gdbarch.c: Re-generate.
13958
1ae18a04
AC
139592003-01-28 Andrew Cagney <ac131313@redhat.com>
13960
52287340
AC
13961 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13962
1ae18a04
AC
13963 * complaints.c (complain): Delete function.
13964 * complaints.h (struct deprecated_complaint): Delete definition.
13965 (complain): Delete declaration.
13966
f2c16bd6
KB
139672003-01-28 Kevin Buettner <kevinb@redhat.com>
13968
13969 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13970 dummy frames.
13971
a94dd1fd
AC
139722003-01-27 Andrew Cagney <ac131313@redhat.com>
13973
13974 * sentinel-frame.h, sentinel-frame.c: New files.
13975 * Makefile.in (frame.o): Update dependencies.
13976 (SFILES): Add sentinel-frame.c.
13977 (sentinel_frame_h): Define.
13978 (COMMON_OBS): Add sentinel-frame.o.
13979 (sentinel-frame.o): Specify dependencies.
13980 * frame.c: Include "sentinel-frame.h".
13981 (frame_register_unwind): Rewrite assuming that there is always a a
13982 ->next frame.
13983 (frame_register, generic_unwind_get_saved_register): Ditto.
13984 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13985 (create_sentinel_frame, unwind_to_current_frame): New functions.
13986 (get_current_frame): Rewrite using create_sentinel_frame and
13987 unwind_to_current_frame. When possible, always create a frame.
13988 (create_new_frame): Set next to the sentinel frame.
13989 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13990 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13991 ID cache when necessary.
13992 (frame_saved_regs_id_unwind): Use frame_relative_level.
13993 (deprecated_generic_get_saved_register): Use frame_relative_level,
13994 get_frame_saved_regs, get_frame_pc, get_frame_base and
13995 get_next_frame.
13996 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13997 frame_register.
13998
5378adc4
DJ
139992003-01-27 Daniel Jacobowitz <drow@mvista.com>
14000
14001 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
14002
51ee2ddc
DJ
140032003-01-27 Daniel Jacobowitz <drow@mvista.com>
14004
14005 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
14006 (maintenance_set_profile_cmd): Use error () instead of warning ().
14007
d9feb4e7
DJ
140082003-01-27 Daniel Jacobowitz <drow@mvista.com>
14009
14010 * configure.in: Check that -pg works if using --enable-profiling.
14011 Check for monstartup and _mcleanup regardless of --enable-profiling.
14012 * maint.c: Check for monstartup and _mcleanup before using them.
14013 * config.in: Regenerated.
14014 * configure: Regenerated.
14015
2d188dd3
NC
140162003-01-24 Nick Clifton <nickc@redhat.com>
14017
14018 * Add sh2e support:
14019
14020 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
14021
14022 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
14023 (sh2e_show_regs): New.
14024 (sh_gdbarch_init): Handle bfd_mach_sh2e.
14025 * config/sh/tm-sh.h: Added sh2e to comments.
14026
cb3c37b2
JB
140272003-01-23 Jim Blandy <jimb@redhat.com>
14028
14029 * symfile.c (syms_from_objfile): Don't print the "(no debugging
14030 symbols found)" message here; we haven't checked for a separate
14031 debug info file yet, so we don't know yet.
14032 (symbol_file_add_with_addrs_or_offsets): Print it here, after
14033 we've looked everywhere. Also, there's no need to print a special
14034 message when we're loading the separate debug info file: the one
14035 symbol_file_add prints is fine.
14036
5b5d99cf
JB
140372003-01-23 Alexander Larsson <alexl@redhat.com>
14038 Jim Blandy <jimb@redhat.com>
14039
14040 Add support for executables whose debug info has been separated
14041 out into a separate file, leaving only a link behind.
14042 * objfiles.h (struct objfile): New fields: separate_debug_objfile
14043 and separate_debug_objfile_backlink.
14044 (put_objfile_before): New declaration.
14045 * symfile.c: #include "filenames.h".
14046 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14047 debug info in a separate file, read that, too. Save the addrs
14048 argument, so we can use it again to read the separated debug info;
14049 syms_from_objfile modifies the table we pass it.
14050 (reread_symbols): After re-reading an objfile, call
14051 reread_separate_symbols to refresh its separate debug info
14052 objfile, if it has one.
14053 (reread_separate_symbols, find_separate_debug_file,
14054 get_debug_link_info, separate_debug_file_exists): New functions.
14055 (debug_file_directory): New global var.
14056 (_initialize_symfile): Initialize debug_file_directory, and
14057 provide the new `set debug-file-directory' command to let the user
14058 change it.
14059 * objfiles.c (free_objfile): If this objfile has its debug info in
14060 a separate objfile, free that one too. If this is itself a
14061 separate debug info objfile, clear our parent's backlink.
14062 (put_objfile_before): New function.
14063 * utils.c (gnu_debuglink_crc32): New function.
14064 * defs.h (gnu_debuglink_crc32): New declaration.
14065 * Makefile.in (symfile.o): Note dependency on "filenames.h".
14066 * configure.in: Handle --with-separate-debug-dir config option.
14067 * acinclude.m4 (AC_DEFINE_DIR): New macro.
14068 * acconfig.h (DEBUGDIR): New macro.
14069 * configure, aclocal.m4, config.in: Regenerated.
14070
7e8580c1
JB
140712003-01-22 Jim Blandy <jimb@redhat.com>
14072
7904e09f
JB
14073 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14074 like the old symbol_file_add, but taking new arguments: you can
14075 now pass in either a `struct section_addr_info' list to say where
14076 each section is loaded, or a `struct section_offsets' table. Pass
14077 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 14078 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
14079 with the appropriate quiescent values for the new arguments.
14080
7e8580c1
JB
14081 * symfile.c: #include "gdb_assert.h".
14082 (syms_from_objfile): Add the ability to pass in a section offset
14083 table directly, as an alternative to the section_addr_info table.
14084 Document arguments better.
14085 (symbol_file_add): Pass extra arguments to syms_from_objfile.
14086 * symfile.h (syms_from_objfile): Update declaration.
14087 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14088 syms_from_objfile.
14089 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14090
d28f9cdf
DJ
140912003-01-22 Daniel Jacobowitz <drow@mvista.com>
14092
14093 Original patch by Tom Tromey <tromey@cygnus.com> and
14094 Jason Molenda <jmolenda@apple.com>.
14095 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14096 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14097 * NEWS: Mention profiling.
14098 * configure.in (--enable-gdbtk): Fix typo.
14099 (--enable-profiling): New. Set PROFILE_CFLAGS.
14100 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14101 Fill in function.
14102 (profiling_state): New variable.
14103 (mcleanup_wrapper): New function.
14104 (_initialize_maint): Remove NOTYET, fix call to
14105 add_setshow_boolean_cmd for "maint set profile".
14106 * configure: Regenerated.
14107
df21e465
MH
141082003-01-21 Martin M. Hunt <hunt@redhat.com>
14109
14110 * Makefile.in (install-gdbtk): Install PNG images too.
14111
73c1f219
AC
141122003-01-21 Andrew Cagney <ac131313@redhat.com>
14113
14114 * exec.c (text_start): Delete global variable.
14115 (exec_file_attach): Make text_start local to the function.
14116 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14117 * valops.c (hand_function_call): Delete code that handles
14118 BEFORE_TEXT_END and AFTER_TEXT_END.
14119 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14120 of CALL_DUMMY_LOCATION.
14121 * gdbarch.c: Regenerate.
14122 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14123 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14124 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14125 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14126 (text_end): Delete extern declaration.
14127
eb4f72c5
AC
141282003-01-21 Andrew Cagney <ac131313@redhat.com>
14129
14130 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14131 * blockframe.c (backtrace_below_main): Move to "frame.c".
14132 (frame_chain_valid): Delete check for backtrace_below_main.
14133 (_initialize_blockframe): Delete initialization, move ``set
14134 backtrace-below-main'' command to "frame.c".
14135 (do_flush_frames_sfunc): Delete function.
14136 * frame.c: Include "command.h" and "gdbcmd.h".
14137 (frame_type_from_pc): New function.
14138 (create_new_frame): Use frame_type_from_pc.
14139 (legacy_get_prev_frame): New function.
14140 (get_prev_frame): Rewrite. When an old style frame, call
14141 legacy_get_prev_frame. Otherwize, unwind the PC first.
14142 (_initialize_frame): Add ``set backtrace-below-main'' command.
14143 * Makefile.in (frame.o): Update dependencies.
14144
778ce8cc
AC
141452003-01-19 Andrew Cagney <ac131313@redhat.com>
14146
14147 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14148 DEPRECATED_REGISTERS_INFO.
14149
01c193c8
AC
141502003-01-19 Andrew Cagney <ac131313@redhat.com>
14151
14152 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14153 Maintainers'. Update `Various Maintainers'.
14154
dedc2a2b
AC
141552003-01-19 Andrew Cagney <ac131313@redhat.com>
14156
14157 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14158 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14159 Suppress actual parameters when `-'.
14160 * gdbarch.h, gdbarch.c: Regenerate.
14161
b7261c70
AC
141622003-01-19 Andrew Cagney <ac131313@redhat.com>
14163
14164 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14165 code handling dummy frames.
14166
dbe9fe58
AC
141672003-01-19 Andrew Cagney <ac131313@redhat.com>
14168
14169 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14170 (struct frame_unwind): Add field pop.
14171 * frame.h (frame_pop): Declare.
14172 * frame.c (frame_saved_regs_pop): New function.
14173 (trad_frame_unwinder): Add frame_saved_regs_pop.
14174 (frame_pop): New function.
14175 * dummy-frame.c (dummy_frame_pop): New function.
14176 (discard_innermost_dummy): New function.
14177 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14178 (dummy_frame_unwind): Add dummy_frame_pop.
14179 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14180 * valops.c (hand_function_call): Ditto.
14181 * stack.c (return_command): Ditto.
14182
570b8f7c
AC
141832003-01-18 Andrew Cagney <ac131313@redhat.com>
14184
14185 * cris-tdep.c: Fix function declaration indentation.
14186 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14187 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14188 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14189 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14190 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14191 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14192
141932003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
14194
14195 * README (Unpacking and Installation -- quick overview):
14196 Warn against ".../gdb-5.3/gdb/configure".
14197
494cca16
AC
141982003-01-18 Andrew Cagney <ac131313@redhat.com>
14199
14200 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14201 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14202 (struct frame_unwind): Declare opaque.
14203 (dummy_frame_p): Declare function.
14204 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14205 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14206 * dummy-frame.c: Include "frame-unwind.h".
14207 (dummy_frame_p): New function.
14208 (dummy_frame_unwind): New variable.
14209 * frame.c: Include "frame-unwind.h".
14210 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14211 to use the new unwind field.
14212 (set_unwind_by_pc): Delete function.
14213 (create_new_frame, get_prev_frame): Set unwind field using
14214 frame_unwind_find_by_pc.
14215 (trad_frame_unwind, trad_frame_unwinder): New variables.
14216 * frame.h (trad_frame_unwind): Declare variable.
14217 (frame_id_unwind_ftype): Delete declaration.
14218 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14219 (struct frame_unwind): Declare opaque.
14220 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14221 register_unwind with a single unwind pointer.
14222 * frame-unwind.h, frame-unwind.c: New files.
14223 * Makefile.in (SFILES): Add frame-unwind.c.
14224 (frame_unwind_h): Define.
14225 (COMMON_OBS): Add frame-unwind.o.
14226 (frame-unwind.o): Specify dependencies.
14227 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 14228
4efb68b1
AC
142292003-01-18 Andrew Cagney <ac131313@redhat.com>
14230
14231 * ada-valprint.c: Eliminate PTR.
14232 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14233 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14234 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14235 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14236 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14237 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14238 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 14239
a84d24ee
AC
142402003-01-17 Andrew Cagney <ac131313@redhat.com>
14241
762f08a3
AC
14242 * main.c (captured_main): Don't use PTR.
14243 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14244 * gdbtypes.c (lookup_primitive_typename): Ditto.
14245 (lookup_struct_elt_type): Ditto.
14246 * f-valprint.c (info_common_command): Ditto.
14247 (list_all_visible_commons): Ditto.
14248 * jv-typeprint.c (java_type_print_base): Ditto.
14249
a84d24ee
AC
14250 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14251 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14252 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14253 i386-interix-nat.c and i386-interix-tdep.c. Rename
14254 m68klinux-nat.c and m68klinux-tdep.c. Rename
14255 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14256 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14257 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14258 * main.c (captured_main): Use xfree, not free.
14259
c170fb60
AC
142602003-01-16 Andrew Cagney <ac131313@redhat.com>
14261
14262 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14263 ID back using a parameter.
14264 * frame.c (frame_id_unwind): Update call.
14265 (frame_saved_regs_id_unwind): Update.
14266 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14267 * dummy-frame.h (struct frame_id): Add opaque declaration.
14268 (dummy_frame_id_unwind): Update declaration.
14269
867f3898
AC
142702003-01-15 Andrew Cagney <ac131313@redhat.com>
14271
14272 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14273
40622be8 142742003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14275
40622be8 14276 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14277
ae66c1fc
EZ
142782003-01-14 Elena Zannoni <ezannoni@redhat.com>
14279
997b089a 14280 Fix PR gdb/898
ae66c1fc
EZ
14281 * breakpoint.c (until_break_command): Add new argument. Use it to
14282 decide whether to stop only at the current frame or not.
14283 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14284 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14285 call.
14286 (advance_command): New function.
14287 (_initialize_infcmd): Update help string for 'until' command.
14288 Add new 'advance' command.
14289
a04257e6
DC
142902003-01-14 David Carlton <carlton@math.stanford.edu>
14291
14292 * linespec.c (decode_line_1): Normalize comments.
14293 (set_flags): Ditto.
14294 (locate_first_half): Ditto.
14295 (decode_compound): Ditto.
14296 (symtab_from_filename): Ditto.
14297 (decode_all_digits): Ditto.
14298 (decode_dollar): Ditto.
14299 (find_methods): Ditto.
14300 (find_toplevel_char): Ditto.
14301
1bac305b
AC
143022003-01-13 Andrew Cagney <ac131313@redhat.com>
14303
14304 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14305 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14306 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14307 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14308 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14309 * language.c, language.h, m32r-tdep.c: Update copyright.
14310 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14311 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14312 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14313 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14314 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14315 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14316
25caa7a8
EZ
143172003-01-13 Elena Zannoni <ezannoni@redhat.com>
14318
14319 * stabsread.h (process_later, resolve_cfront_continuation):
14320 Obsolete.
14321 Update copyright years.
14322 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14323 Update copyright year.
14324 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14325 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14326 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14327 Update copyright year.
14328 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14329 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14330 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14331 (parse_partial_symbols): Obsolete cfront support.
14332 * stabsread.c
14333 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14334 macros.
14335 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14336 read_cfront_baseclasses, read_cfront_member_functions,
14337 resolve_cfront_continuation,read_cfront_static_fields,
14338 copy_cfront_struct_fields): Obsolete functions.
14339 (define_symbol, read_one_struct_field): Obsolete cfront support.
14340 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14341 Update Copyright year.
14342
7789c6f5
EZ
143432003-01-13 Elena Zannoni <ezannoni@redhat.com>
14344
14345 * stack.c (print_frame_info, print_stack_frame_base_stub,
14346 print_stack_frame_base, show_and_print_stack_frame_stub,
14347 show_and_print_stack_frame, print_only_stack_frame_stub,
14348 print_only_stack_frame): Delete functions.
14349 (print_stack_frame_stub): Call print_frame_info instead of
14350 print_frame_info_base.
14351 (print_frame_info_base): Rename to print_frame_info.
14352 (backtrace_command_1): Call print_frame_info, instead of
14353 print_frame_info_base.
14354 (current_frame_command): Call print_stack_frame, instead of
14355 print_only_stack_frame.
14356 (frame_command): Call print_stack_frame, instead of
14357 show_and_print_stack_frame.
14358 (up_command): Ditto.
14359 (down_command): Ditto.
14360 * frame.h (print_only_stack_frame): Delete prototype.
14361 * infrun.c (normal_stop): Call print_stack_frame, instead of
14362 show_and_print_stack_frame.
14363 * thread.c (info_threads_command): Call print_stack_frame, instead
14364 of print_only_stack_frame.
14365
3f5a3016
AC
143662003-01-13 Andrew Cagney <ac131313@redhat.com>
14367
d99ba314
AC
14368 * README (Graphical interface to GDB): Update URL. Point at
14369 gdb/links/.
14370
3f5a3016
AC
14371 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14372 version match.
14373
083ae935
DJ
143742003-01-13 Daniel Jacobowitz <drow@mvista.com>
14375
14376 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14377 lines.
14378
5365276c
DJ
143792003-01-13 Daniel Jacobowitz <drow@mvista.com>
14380
14381 * thread-db.c (attach_thread): Prototype.
14382 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14383 thread information (ti), and valid flags (th_valid, ti_valid).
14384 (attach_thread): Move target_pid_to_str call to after the thread
14385 is added to GDB's list. Initialize the cache.
14386 (thread_get_info_callback, thread_db_map_id2thr)
14387 (thread_db_get_info): New functions.
14388 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14389 (thread_db_store_registers, thread_db_thread_alive)
14390 (thread_db_get_thread_local_address): Use them.
14391 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14392 of calling error() for threads in unknown state.
14393
14394 (clear_lwpid_callback): New function.
14395 (thread_db_resume): Use it to clear the cache.
14396
9fc30b6b
DJ
143972003-01-13 Daniel Jacobowitz <drow@mvista.com>
14398
14399 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14400 (resume_callback): Remove dead code.
14401
8f871025
AC
144022003-01-13 Andrew Cagney <ac131313@redhat.com>
14403
14404 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14405 predicate.
14406 * gdbarch.h, gdbarch.c: Regenerate.
14407 * stack.c (frame_info): Only initialize the saved registers when
14408 FRAME_INIT_SAVED_REGS_P.
14409 * frame.c (frame_saved_regs_register_unwind): Assert
14410 FRAME_INIT_SAVED_REGS_P.
14411 (deprecated_generic_get_saved_register): Ditto.
14412
3f565f1e
DJ
144132003-01-13 Daniel Jacobowitz <drow@mvista.com>
14414
14415 * source.c (openp): Squelch warning about "filename".
14416
072b1022
DJ
144172003-01-13 Daniel Jacobowitz <drow@mvista.com>
14418
14419 * source.c (openp): If the file does not exist don't necessarily
14420 search the path.
14421
973ccf8b
DJ
144222003-01-13 Daniel Jacobowitz <drow@mvista.com>
14423
14424 Fix PR gdb/872.
14425 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14426 (integer_types_same_name_p): New function.
14427 (rank_one_type): Use it.
14428 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14429
030292b7
DJ
144302003-01-13 Daniel Jacobowitz <drow@mvista.com>
14431
14432 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14433 variables.
14434 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14435 * configure.in: Add --with-sysroot.
14436 * configure: Regenerated.
14437 * main.c (gdb_sysroot): New variable.
14438 (captured_main): Initialize gdb_sysroot.
14439 * defs.h (gdb_sysroot): New extern declaration.
14440 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14441
afb5d334
MC
144422003-01-12 Michael Chastain <mec@shout.net>
14443
14444 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14445
751ceeb4
MC
144462003-01-12 Michael Chastain <mec@shout.net>
14447
14448 * top.c (print_gdb_version): Bump copyright year to 2003.
14449
94cd26f8
DC
144502003-01-12 David Carlton <carlton@bactrian.org>
14451
14452 * linespec.c (symtab_from_filename): Rename variable 's' to
14453 'file_symtab'.
14454
1ce79225
AC
144552003-01-12 Andrew Cagney <ac131313@redhat.com>
14456
14457 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14458 dummy frame.
14459 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14460
fa1fd571
AC
144612003-01-12 Andrew Cagney <ac131313@redhat.com>
14462
14463 * d10v-tdep.c: Include "gdb_assert.h".
14464 (d10v_store_return_value): Rewrite to match current interface.
14465 (d10v_extract_struct_value_address): Ditto.
14466 (d10v_extract_return_value): Ditto.
14467 (d10v_gdbarch_init): Set store_restore_value,
14468 extract_struct_value_address and extract_return_value.
14469
68b8d23e
JB
144702003-01-12 J. Brobecker <brobecker@gnat.com>
14471
14472 * hpread.c (set_namestring): New procedure replacing the
14473 SET_NAMESTRING macro.
14474 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14475 by calls to set_namestring.
14476
144772003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14478
14479 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14480 a compilation warning.
14481 (hpread_process_one_debug_symbol): Likewise.
14482
88d262ca
DC
144832003-01-10 David Carlton <carlton@math.stanford.edu>
14484
14485 * linespec.c (decode_line_1): Rename variable 's' to
14486 'file_symtab'.
14487 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14488 (decode_dollar): Ditto.
14489 (decode_variable): Ditto.
14490 (symbol_found): Ditto.
14491
86669319
MC
144922003-01-09 Michael Chastain <mec@shout.net>
14493
14494 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14495
616a9dc4
CV
144962003-01-07 Corinna Vinschen <vinschen@redhat.com>
14497
14498 * win32-nat.c (set_process_privilege): New function.
14499 (child_attach): Call set_process_privilege() to enable the
14500 SE_DEBUG_NAME user privilege if available in process token.
14501
3269bcfa
JB
145022003-01-10 J. Brobecker <brobecker@gnat.com>
14503
14504 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14505 compilation error in the previous revision.
14506
2b0ee454
DC
145072003-01-09 David Carlton <carlton@math.stanford.edu>
14508
14509 * linespec.c: Update copyright.
14510
b3ba1b44
DJ
145112003-01-09 Daniel Jacobowitz <drow@mvista.com>
14512
14513 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14514 than inferior_ptid.
14515 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14516
4ef3f3be
AC
145172003-01-09 Andrew Cagney <ac131313@redhat.com>
14518
479ab5a0
AC
14519 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14520 Update comments.
14521 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14522 (frame_saved_regs_zalloc): Update.
14523 (frame_saved_regs_register_unwind): Update.
14524 (create_new_frame): Update.
14525 (get_prev_frame): Update.
14526 (frame_extra_info_zalloc): Update.
14527 (deprecated_get_frame_saved_regs): Update.
14528 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14529 * cris-tdep.c: Update comment.
14530
bde58177
AC
14531 * somsolib.h: Fix function indentation.
14532 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14533 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14534 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14535 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14536 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14537
4ef3f3be
AC
14538 * infrun.c (follow_fork): Use ISO C definition.
14539 * expprint.c (print_subexp): Use xfree instead of free.
14540 * charset.c: Include "gdb_string.h" instead of <string.h>.
14541 (register_iconv_charsets): Use ISO C definition.
14542 (host_charset, target_charset): Ditto.
14543 * Makefile.in (charset.o): Update dependencies.
14544 (mi-cmd-env.o): Update dependencies.
14545
1c615f7a
AC
145462003-01-08 Andrew Cagney <cagney@redhat.com>
14547
14548 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14549 get_frame_base.
14550
c9a1dc08
AC
145512003-01-08 Andrew Cagney <ac131313@redhat.com>
14552
14553 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14554 build directories. Save edited gdb output in Mbuild.log. If a
14555 build fails, remove any final GDB executable.
14556
dbad9d94
AC
145572003-01-08 Andrew Cagney <ac131313@redhat.com>
14558
14559 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14560 replacing hex constants with function names and stripping leading
14561 file name directory prefixes.
14562
8d357cca
AC
145632003-01-08 Andrew Cagney <cagney@redhat.com>
14564
14565 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14566 get_frame_base.
14567
bca02a8a
DC
145682003-01-08 David Carlton <carlton@math.stanford.edu>
14569
14570 * linespec.c (decode_line_1): Move code into decode_variable.
14571 (decode_variable): New function.
14572
7f8ab3a0
AC
145732003-01-08 Andrew Cagney <ac131313@redhat.com>
14574
14575 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14576
7b5849cc
AC
145772003-01-08 Andrew Cagney <cagney@redhat.com>
14578
14579 * cris-tdep.c (cris_frame_init_saved_regs): Use
14580 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14581 saved_regs buffer.
14582 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14583 (sh64_nofp_frame_init_saved_regs): Ditto.
14584 (sh_fp_frame_init_saved_regs): Ditto.
14585 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14586 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14587 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14588 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14589
72a5efb3
DJ
145902003-01-08 Daniel Jacobowitz <drow@mvista.com>
14591
14592 * minsyms.c (lookup_minimal_symbol): Update comment.
14593 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14594 (lookup_minimal_symbol_solib_trampoline): Likewise.
14595
11c02a10
AC
145962003-01-08 Andrew Cagney <cagney@redhat.com>
14597
aab3ea25
AC
14598 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14599 frame_relative_level.
14600
da50a4b7
AC
14601 * alpha-tdep.c: Use get_frame_extra_info.
14602 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14603 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14604 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14605 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14606
11c02a10
AC
14607 * alpha-tdep.c: Use get_next_frame.
14608 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14609 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14610 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14611 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14612 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14613 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14614 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14615
1e2330ba
AC
146162003-01-07 Andrew Cagney <cagney@redhat.com>
14617
14618 * alpha-tdep.c: Use get_frame_base.
14619 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14620 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14621 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14622 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14623 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14624 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14625 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14626 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14627
2d75187b
AC
146282003-01-07 Andrew Cagney <cagney@redhat.com>
14629
14630 * frame.c (deprecated_get_frame_context): New function.
14631 (deprecated_set_frame_context): New function.
14632 * frame.h (deprecated_get_frame_context): Declare.
14633 (deprecated_set_frame_context): Declare.
14634 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14635 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14636
483d36b2
AC
146372003-01-07 Andrew Cagney <cagney@redhat.com>
14638
14639 * frame.c (deprecated_set_frame_next_hack): New function.
14640 (deprecated_set_frame_prev_hack): New function.
14641 * frame.h (deprecated_set_frame_next_hack): Declare.
14642 (deprecated_set_frame_prev_hack): Declare.
14643 * mcore-tdep.c (analyze_dummy_frame): Use
14644 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14645 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14646
14e91ac5
DC
146472003-01-07 David Carlton <carlton@math.stanford.edu>
14648
14649 * linespec.c (decode_line_1): Move code into decode_dollar.
14650 (decode_dollar): New function.
14651
b0c6b05c
AC
146522003-01-07 Andrew Cagney <cagney@redhat.com>
14653
14654 * arm-tdep.c (arm_init_extra_frame_info): Use
14655 deprecated_update_frame_base_hack.
14656 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14657 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14658 (fix_frame_pointer): Ditto.
14659 (mn10300_analyze_prologue): Ditto.
14660
a00a19e9
AC
146612003-01-07 Andrew Cagney <cagney@redhat.com>
14662
14663 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14664 extra_info using frame_extra_info_zalloc.
14665 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14666 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14667 (sh64_init_extra_frame_info): Ditto.
14668 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14669 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14670 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14671 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14672 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14673 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14674 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14675 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14676 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14677 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14678 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14679 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14680
14681 * mn10300-tdep.c (analyze_dummy_frame): Use
14682 deprecated_set_frame_extra_info_hack.
14683 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14684
1fb4c65b
JB
146852003-01-07 J. Brobecker <brobecker@gnat.com>
14686
14687 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14688 class is not scText. These do not define "real" procedures.
14689 (parse_partial_symbols): Likewise.
14690
9fe7d6bf
MS
146912003-01-06 Michael Snyder <msnyder@redhat.com>
14692
14693 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14694
f6c609c4
AC
146952003-01-06 Andrew Cagney <ac131313@redhat.com>
14696
14697 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14698 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14699 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14700 deprecated_frame_xmalloc_with_cleanup.
14701 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14702 deprecated_frame_xmalloc.
14703 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14704 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14705
d995ff4b
AC
147062003-01-06 Andrew Cagney <cagney@redhat.com>
14707
84dc46cb
AC
14708 * x86-64-linux-tdep.c: Include "osabi.h".
14709 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14710
d995ff4b
AC
14711 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14712
66140c26
AC
147132003-01-06 Andrew Cagney <cagney@redhat.com>
14714
14715 * MAINTAINERS (Target Instruction Set Architectures): Update
14716 arm-elf. Can be built with -Werror, has been multiarched.
14717
14718 * value.h (unpack_long): Make buffer parameter constant.
14719 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14720 * scm-lang.h (scm_parse): Ditto.
14721 * defs.h (extract_typed_address, extract_address): Ditto.
14722 (extract_long_unsigned_integer): Ditto.
14723 * inferior.h (unsigned_pointer_to_address): Ditto.
14724 (signed_pointer_to_address): Ditto.
14725 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14726 * gdbarch.h, gdbarch.c: Regenerate.
14727 * findvar.c (extract_long_unsigned_integer): Update.
14728 (extract_address): Update.
14729 (extract_typed_address): Update.
14730 (unsigned_pointer_to_address): Update.
14731 * values.c (unpack_long): Update.
14732 (unpack_double): Update.
14733 (unpack_pointer): Update.
14734 (unpack_field_as_long): Update.
14735 * d10v-tdep.c (d10v_pointer_to_address): Update.
14736 * avr-tdep.c (avr_pointer_to_address): Update.
14737 * scm-lang.c (scm_unpack): Update.
14738 * findvar.c (signed_pointer_to_address): Update.
14739
b089b3da
ML
147402003-01-06 Michal Ludvig <mludvig@suse.cz>
14741
8ffd9b1b 14742 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14743 since it is in i386-tdep.c.
14744
aff87235
JB
147452003-01-06 J. Brobecker <brobecker@gnat.com>
14746
14747 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14748 failure introduced in the previous change.
14749
34f5e845
MC
147502003-01-05 Michael Chastain <mec@shout.net>
14751
14752 * README: Remove references to deleted remote-*.c files:
14753 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14754 remote-nrom.c, remote-os9k.c, remote-udi.c.
14755
28bcfd30
MK
147562003-01-05 Mark Kettenis <kettenis@gnu.org>
14757
14758 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14759 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14760 i386_get_longjmp_target.
14761
15a5b3ee
AC
147622003-01-05 Andrew Cagney <ac131313@redhat.com>
14763
14764 * arm-tdep.c (prologue_cache): Change to a pointer.
14765 (_initialize_arm_tdep): Allocate prologue_cache.
14766 (check_prologue_cache): Update.
14767 (save_prologue_cache): Update.
14768 (arm_gdbarch_init): Update.
14769
c263362b
DJ
147702003-01-04 Daniel Jacobowitz <drow@mvista.com>
14771
14772 * stabsread.c (update_method_name_from_physname): Call complaint()
14773 instead of error.
14774
51603483
DJ
147752003-01-04 Daniel Jacobowitz <drow@mvista.com>
14776
14777 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14778 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14779 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14780
14781 * blockframe.c: Include "gdbcmd.h" and "command.h".
14782 (backtrace_below_main): New variable.
14783 (file_frame_chain_valid, func_frame_chain_valid)
14784 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14785 (generic_func_frame_chain_valid): Remove functions.
14786 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14787 (_initialize_blockframe): New function.
14788 * Makefile.in (blockframe.o): Update dependencies.
14789 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14790 comment. Call frame_chain_valid ().
14791 * frame.h: Remove old prototypes. Add prototype for
14792 frame_chain_valid and update comments to match.
14793 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14794 Remove old comment.
14795 * gdbarch.h: Regenerated.
14796 * gdbarch.c: Regenerated.
14797
14798 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14799 set_gdbarch_frame_chain_valid.
14800 * avr-tdep.c (avr_gdbarch_init): Likewise.
14801 * cris-tdep.c (cris_gdbarch_init): Likewise.
14802 * frv-tdep.c (frv_gdbarch_init): Likewise.
14803 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14804 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14805 (i386_nw_init_abi): Likewise.
14806 (i386_gdbarch_init): Likewise.
14807 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14809 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14810 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14811 * mips-tdep.c (mips_gdbarch_init): Likewise.
14812 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14813 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14814 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14815 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14816 * s390-tdep.c (s390_gdbarch_init): Likewise.
14817 * sh-tdep.c (sh_gdbarch_init): Likewise.
14818 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14819 * v850-tdep.c (v850_gdbarch_init): Likewise.
14820 * vax-tdep.c (vax_gdbarch_init): Likewise.
14821 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14822
14823 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14824 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14825 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14826 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14827 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14828 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14829 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14830 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14831
b00a8037
DJ
148322002-01-04 Daniel Jacobowitz <drow@mvista.com>
14833
14834 * Makefile.in (acconfig_h): Remove incorrect macro.
14835 (config_h): Define.
14836 (osabi.o): Update dependencies.
14837 * configure.tgt: Set gdb_osabi based on target triplet.
14838 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14839 * configure: Regenerated.
14840 * config.in: Regenerated.
14841 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14842 (GDB_OSABI_DEFAULT): Define if not already defined.
14843 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14844 (set_osabi_string): New variables.
14845 (gdbarch_register_osabi): Add new OS ABI to
14846 gdb_osabi_available_names.
14847 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14848 (set_osabi, show_osabi): New functions.
14849 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14850
4be87837
DJ
148512003-01-04 Daniel Jacobowitz <drow@mvista.com>
14852
14853 * arch-utils.c (gdbarch_info_init): Set osabi to
14854 GDB_OSABI_UNINITIALIZED.
14855 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14856 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14857 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14858 * gdbarch.c: Regenerated.
14859 * gdbarch.h: Regenerated.
14860 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14861 there's no BFD.
14862 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14863 * osabi.h (enum gdb_osabi): Move to defs.h.
14864 (gdbarch_init_osabi): Update prototype.
14865 * defs.h (enum gdb_osabi): Moved here.
14866 * Makefile.in: Update dependencies.
14867
14868 * alpha-tdep.h: Don't include "osabi.h".
14869 (struct gdbarch_tdep): Remove osabi member.
14870 * alpha-tdep.c: Include "osabi.h".
14871 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14872 iterate over arches. Update call to gdbarch_init_osabi.
14873 (alpha_dump_tdep): Don't dump osabi.
14874 * alpha-linux-tdep.c: Include "osabi.h".
14875 * alpha-osf1-tdep.c: Include "osabi.h".
14876 * alphafbsd-tdep.c: Include "osabi.h".
14877 * alphanbsd-tdep.c: Include "osabi.h".
14878
14879 * arm-tdep.h: Don't include "osabi.h".
14880 (struct gdbarch_tdep): Remove osabi member.
14881 * arm-tdep.c: Include "osabi.h".
14882 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14883 iterate over arches. Update call to gdbarch_init_osabi.
14884 (arm_dump_tdep): Don't dump osabi.
14885 * arm-linux-tdep.c: Include "osabi.h".
14886 * armnbsd-tdep.c: Include "osabi.h".
14887
14888 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14889 Update call to gdbarch_init_osabi.
14890
14891 * i386-tdep.h: Don't include "osabi.h".
14892 (struct gdbarch_tdep): Remove osabi member.
14893 * i386-tdep.c: Include "osabi.h".
14894 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14895 iterate over arches. Update call to gdbarch_init_osabi.
14896 (i386_dump_tdep): Don't dump osabi.
14897 * i386-linux-tdep.c: Include "osabi.h".
14898 * i386-sol2-tdep.c: Include "osabi.h".
14899 * i386bsd-tdep.c: Include "osabi.h".
14900 * i386gnu-tdep.c: Include "osabi.h".
14901 * i386ly-tdep.c: Include "osabi.h".
14902 * i386nbsd-tdep.c: Include "osabi.h".
14903 * i386obsd-tdep.c: Include "osabi.h".
14904
14905 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14906 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14907 check osabi when iterating over arches. Update call to
14908 gdbarch_init_osabi.
14909 (mips_dump_tdep): Don't dump osabi.
14910
14911 * ns32k-tdep.h: Don't include "osabi.h".
14912 (struct gdbarch_tdep): Remove.
14913 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14914 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14915 allocate tdep. Update call to gdbarch_init_osabi.
14916 (ns32k_dump_tdep): Remove.
14917 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14918 * ns32knbsd-tdep.c: Include "osabi.h".
14919
14920 * ppc-tdep.h: Don't include "osabi.h".
14921 (struct gdbarch_tdep): Remove osabi member.
14922 * rs6000-tdep.c: Include "osabi.h".
14923 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14924 osabi when iterating over arches. Update call to
14925 gdbarch_init_osabi.
14926 (rs6000_dump_tdep): Don't dump osabi.
14927 * ppc-linux-tdep.c: Include "osabi.h".
14928 * ppcnbsd-tdep.c: Include "osabi.h".
14929
14930 * sh-tdep.h: Don't include "osabi.h".
14931 (struct gdbarch_tdep): Remove osabi member.
14932 * sh-tdep.c: Include "osabi.h".
14933 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14934 iterate over arches. Update call to gdbarch_init_osabi.
14935 (sh_dump_tdep): Don't dump osabi.
14936 * shnbsd-tdep.c: Include "osabi.h".
14937
14938 * sparc-tdep.c: Include "osabi.h".
14939 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14940 iterate over arches. Update call to gdbarch_init_osabi.
14941 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14942 tdep structure.
14943
14944 * vax-tdep.h: Don't include "osabi.h".
14945 (struct gdbarch_tdep): Remove.
14946 * vax-tdep.c: Include "osabi.h".
14947 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14948 iterate over arches. Don't allocate tdep. Update call
14949 to gdbarch_init_osabi.
14950 (vax_dump_tdep): Remove.
14951 (_initialize_vax_tdep): Update call to gdbarch_register.
14952
a881cf8e
DJ
149532003-01-04 Daniel Jacobowitz <drow@mvista.com>
14954
14955 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14956 entirely.
14957 (breakpoint_re_set_one): Don't fetch the value for a disabled
14958 watchpoint.
14959
1e698235
DJ
149602003-01-04 Daniel Jacobowitz <drow@mvista.com>
14961
14962 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14963 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14964 (COERCE_FLOAT_TO_DOUBLE): Remove.
14965 * gdbarch.c: Regenerate.
14966 * gdbarch.h: Regenerate.
14967 * Makefile.in: Remove value_h from gdbarch_h.
14968 * valops.c (coerce_float_to_double): New variable.
14969 (default_coerce_float_to_double): Remove.
14970 (standard_coerce_float_to_double): Remove.
14971 (value_arg_coerce): Use coerce_float_to_double.
14972 (_initialize_valops): Add "set coerce-float-to-double".
14973 * value.h (default_coerce_float_to_double): Remove prototype.
14974 (standard_coerce_float_to_double): Remove prototype.
14975
14976 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14977 prototyped.
14978 * mdebugread.c (parse_symbol): Likewise.
14979 * stabsread.c (define_symbol): Mark all functions as prototyped.
14980
14981 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14982 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14983 set_gdbarch_coerce_float_to_double.
14984 * arm-tdep.c (arm_gdbarch_init): Likewise.
14985 * frv-tdep.c (frv_gdbarch_init): Likewise.
14986 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14987 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14988 * mips-tdep.c (mips_gdbarch_init): Likewise.
14989 (mips_coerce_float_to_double): Remove.
14990 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14991 (rs6000_coerce_float_to_double): Remove.
14992 * s390-tdep.c (s390_gdbarch_init): Likewise.
14993 * sh-tdep.c (sh_gdbarch_init): Likewise.
14994 (sh_coerce_float_to_double): Remove.
14995 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14996 (sparc_coerce_float_to_double): Remove.
14997 * v850-tdep.c (v850_gdbarch_init): Likewise.
14998 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14999 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15000 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
15001 (hppa_coerce_float_to_double): Remove prototype.
15002 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15003
f436a26a
DJ
150042003-01-04 Daniel Jacobowitz <drow@mvista.com>
15005
15006 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
15007
248f8055
DJ
150082003-01-04 Daniel Jacobowitz <drow@mvista.com>
15009
15010 Suggested by Stewart Brown <sb24@avaya.com>:
15011 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
15012 in recursive calls. Handle TYPE_CODE_TYPEDEF.
15013 (c_type_print_varspec_suffix): Likewise.
15014
72cfdc76
MK
150152003-01-04 Mark Kettenis <kettenis@gnu.org>
15016
bfd260bb
MK
15017 * configure.in: Don't set and AC_SUBST SUBDIRS.
15018 * configure: Regenerated.
15019
72cfdc76
MK
15020 * configure.in: Remove code dealing with shared libraries.
15021 * Makefile.in: Remove HLDFLAGS and HLDENV.
15022 * configure: Regenerated.
15023
c8b8a898
AC
150242003-01-04 Andrew Cagney <ac131313@redhat.com>
15025
15026 * frame.c (deprecated_frame_xmalloc): New function.
15027 (deprecated_set_frame_saved_regs_hack): New function.
15028 (deprecated_set_frame_extra_info_hack): New function.
15029 * frame.h (deprecated_frame_xmalloc): Declare.
15030 (deprecated_set_frame_saved_regs_hack): Declare.
15031 (deprecated_set_frame_extra_info_hack): Declare.
15032
14abd0fb
MK
150332003-01-04 Mark Kettenis <kettenis@gnu.org>
15034
8ee53726
MK
15035 * configure.in: Move code that provides the --enable-gdbtk option
15036 right after the code that handles the --enable-tui option, and
15037 polish it somewhat.
15038 * configure: Regenerated.
15039
14abd0fb
MK
15040 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
15041 AC_CHECK_FUNCS and remove the old check for pread64.
15042 * acinclude.m4 (AC_GNU_SOURCE): New macro.
15043 * acconfig.h (_GNU_SOURCE): Add.
15044 (HAVE_PREAD64): Remove.
15045 * configure, aclocal.m4, config.in: Regenerated.
15046
b2fb4676
AC
150472003-01-03 Andrew Cagney <ac131313@redhat.com>
15048
15049 * alpha-tdep.c: Use get_frame_saved_regs.
15050 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15051 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15052 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15053 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15054 * vax-tdep.c, xstormy16-tdep.c: Ditto.
15055
8dcde887
MK
150562003-01-03 Mark Kettenis <kettenis@gnu.org>
15057
15058 * configure.in: Remove all use of the SUBDIRS variable; add
15059 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
15060 code providing the --enable-multi-ice option, and move it right in
15061 front of the code that checks whether gdbserver is supported.
15062 Polish that too.
15063 * configure: Regenerated.
15064 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15065 @SUBDIRS@.
15066
8ccd593b
AC
150672003-01-03 Andrew Cagney <cagney@redhat.com>
15068
15069 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15070 * avr-tdep.c, cris-tdep.c: Ditto.
15071 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15072 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 15073
91151a06
MK
150742003-01-03 Mark Kettenis <kettenis@gnu.org>
15075
15076 * configure.in: Remove --enable-netrom option.
15077 * configure: Regenerated.
15078
8fe84d01
MK
150792003-01-03 Mark Kettenis <kettenis@gnu.org>
15080
15081 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15082 declaration for `struct re_pattern_buffer' instead.
15083 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15084
f0394be6
JB
150852003-01-03 J. Brobecker <brobecker@gnat.com>
15086
15087 * mdebugread.c (parse_symbol): Count until the stEnd matching
15088 the structure name.
15089
27e9bf90
MK
150902003-01-02 Mark Kettenis <kettenis@gnu.org>
15091
93d331ba
MK
15092 * configure.in: Remove --with-cpu option.
15093 subscripts. Remove evil changequotes here.
15094 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15095 * config.in, configure: Regenerated.
8ffd9b1b 15096
27e9bf90
MK
15097 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15098 * configure.in: Cleanup section that sources GDB and BFD configure
15099 subscripts. Remove evil changequotes here.
15100 * config.in, configure: Regenerated.
15101
50abf9e5
AC
151022003-01-02 Andrew Cagney <ac131313@redhat.com>
15103
15104 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15105 frame accessor methods.
15106 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15107 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15108 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15109 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15110 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15111 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15112 * z8k-tdep.c: Ditto.
8ffd9b1b 15113
287c1a40
MK
151142003-01-02 Mark Kettenis <kettenis@gnu.org>
15115
f5dbc56d
MK
15116 * configure.in: Remove UI_OUT configuration code.
15117 * ada-lang.c: Update assuming UI_OUT is always true.
15118 * Makefile.in (UIOUT_CFLAGS): Remove.
15119 * configure: Regenerated.
15120 * TODO: Remove blurb about elimination of -DUI_OUT.
15121
627af7ea
MK
15122 * configure.in: Move code that provides the --enable-gdbcli,
15123 --enable-gdbmi options right before the code that handles the
15124 --enable-tui option. Polish a bit.
15125 * configure: Regenerated.
15126
06825bd1
MK
15127 * configure.in: Rewrite check for GNU regex and the
15128 --without-included regex option, and move it into the "Checks for
15129 library functions" section. This makes us use the system regex
15130 again by default on systems with version 2 of the GNU C library.
15131 This was apparently broken.
15132 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15133 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15134 * config.in, configure: Regenerated.
15135
287c1a40
MK
15136 * configure.in: Move code that provides the --enable-tui option
15137 before the "Checks for libraries" section. Polish the code
15138 somewhat and set need_curses to yes if we build the TUI. Rewrite
15139 code that looks for a library providing termcap functionality to
15140 match more closely what's done in the Readline library, and move
15141 it into to the "Checks for libraries" section.
15142 * configure: Regenerated.
15143 * Makefile.in (TERMCAP): Remove variable.
15144 * config/i386/go32.mh (TERMCAP): Remove variable.
15145
684e56bf
AC
151462003-01-02 Andrew Cagney <ac131313@redhat.com>
15147
15148 * MAINTAINERS: Mention gdb_mbuild.sh.
15149 * gdb_mbuild.sh: Rewrite.
15150
e1ea1d75
MK
151512003-01-02 Mark Kettenis <kettenis@gnu.org>
15152
15153 * configure.in: Fix typo in last change.
15154 * config.in, configure: Regenerated.
15155
1b831c93
AC
151562003-01-02 Andrew Cagney <ac131313@redhat.com>
15157
15158 * valarith.c (value_binop): Delete obsolete code and comments.
15159 * configure.host: Ditto.
15160 * buildsym.h (make_blockvector): Ditto.
15161 * buildsym.c (make_blockvector): Ditto.
15162 * defs.h (enum language): Ditto.
15163 (chill_demangle): Ditto.
15164 * elfread.c (elf_symtab_read): Ditto.
15165 * dwarfread.c (CHILL_PRODUCER): Ditto.
15166 (set_cu_language): Ditto.
15167 (handle_producer): Ditto.
15168 * expprint.c (print_subexp): Ditto.
15169 * gdbtypes.c (chill_varying_type): Ditto.
15170 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15171 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15172 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15173 (chill_varying_type): Ditto.
15174 * language.h (_LANG_chill): Ditto.
15175 * language.c (binop_result_type, integral_type): Ditto.
15176 (character_type, string_type, structured_type): Ditto.
15177 (lang_bool_type, binop_type_check): Ditto.
15178 * stabsread.h (os9k_stabs): Ditto.
15179 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15180 (define_symbol, read_type, read_struct_fields): Ditto.
15181 (read_array_type, read_enum_type, read_huge_number): Ditto.
15182 (read_range_type, start_stabs): Ditto.
15183 * symfile.c (init_filename_language_table): Ditto.
15184 (add_psymbol_with_dem_name_to_list): Ditto.
15185 * symtab.c (symbol_init_language_specific): Ditto.
15186 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15187 * symtab.h (struct general_symbol_info): Ditto.
15188 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15189 * typeprint.c (typedef_print): Ditto.
15190 * utils.c (fprintf_symbol_filtered): Ditto.
15191 * valops.c (value_cast, search_struct_field, value_slice): Delete
15192 obsolete code.
15193 (varying_to_slice): Delete function.
15194 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15195 (varying_to_slice): Delete declaration.
15196 * MAINTAINERS: Update.
15197
8bb2c122
MK
151982003-01-02 Mark Kettenis <kettenis@gnu.org>
15199
97bf5e38
MK
15200 * configure.in: Reorganize "Checks for library functions section"
15201 a bit. Remove check for `btowc' and `isascii' functions.
15202 * configure: Regenerated.
15203
5ee754fc
MK
15204 * acconfig.h (_MSE_INT_H): Remove.
15205 * configure.in: Create "Checks for header files" section, and move
15206 appropriate tests there. Don't check for objlist.h, wchar.h,
15207 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15208 misdetection fix. Also add "Checks for types", "Checks for
15209 compiler characteristics" and "Checks for library functions"
15210 sections.
15211 * config.in, configure: Regenerated.
15212
8bb2c122
MK
15213 * configure.in: Create "Checks for programs" section, and move
15214 appropriate tests there.
15215
9a156167
MK
152162003-01-01 Mark Kettenis <kettenis@gnu.org>
15217
15218 * configure.in: Create "Checks for libraries" section, and move
15219 appropriate tests there. Cleanup check for wctype in libw. Use
15220 AC_SEARCH_LIBS to see whether we need libsocket.
15221 * configure: Regenerated.
15222
a80e2bcb 15223For older changes see ChangeLog-2002
c906108c
SS
15224\f
15225Local Variables:
15226mode: change-log
15227left-margin: 8
15228fill-column: 74
15229version-control: never
15230End:
This page took 1.170338 seconds and 4 git commands to generate.