* i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5daa5b4e
MK
12003-12-14 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
4 for `subl' and `xorl' instructions.
5
e481341f
JB
62003-12-13 Jim Blandy <jimb@redhat.com>
7
27bfe10e
JB
8 * dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
9 Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
10 to strcmp and strncmp.
11
e481341f
JB
12 * osabi.c (gdbarch_init_osabi): Reformat error message with better
13 line breaks.
14
f614e9d9
MK
152003-12-13 Mark Kettenis <kettenis@gnu.org>
16
17 * blockframe.c (inside_main_func): Reformat. Introduce new local
18 variables to prevent long lines. Update comments to reflect
19 reality.
20
503ff15d
KB
212003-12-12 Kevin Buettner <kevinb@redhat.com>
22
23 From David Mosberger <davidm@hpl.hp.com>:
24 * libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
25 with a single unw_dyn_info_t pointer.
26 (libunwind_find_dyn_list): Likewise.
27 * libunwind-frame.h: Likewise.
28 * ia64-tdep.c (ia64_find_unwind_table): Switch to using
29 UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
30 entire unwind-table at once. Support for this table format has
31 been added to libunwind v0.95.
32 (ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
33 (ia64_get_dyn_info_list): Adjust for interface change for
34 libunwind_find_dyn_list().
35
468d015d
JJ
362003-12-12 Jeff Johnston <jjohnstn@redhat.com>
37
38 * breakpoint.c (breakpoint_enabled): New function to test whether
39 breakpoint is active and enabled.
40 (insert_bp_location, insert_breakpoints): Call new function to test
41 for enabled breakpoint.
42 (remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
43 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
44 (disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
45 (disable_watchpoints_before_interactive_call_start)
46 (breakpoint_re_set_one): Ditto.
47 (bpstat_stop_status): Use new function and simplify test.
48
f82de61c
MK
492003-12-11 Mark Kettenis <kettenis@gnu.org>
50
51 * observer.c (observer_test_first_observer)
52 (observer_test_second_observer, observer_test_third_observer):
53 Don't define as `static'.
54 (observer_test_first_notification_function)
55 (observer_test_second_notification_function)
56 (observer_test_third_notification_function): Likewise.
57
9db7c108
MK
582003-12-10 Mark Kettenis <kettenis@gnu.org>
59
60 * solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
61 of (0).
62
8bfdb672
DD
632003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
64
65 * MAINTAINERS (write after approval): Add myself.
66
454d0511
DD
672003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
68
69 * config/h8300/tm-h8300.h (h8300hmode): Remove.
70 (h8300hmode): Likewise.
71 (h8300smode): Likewise.
72 (h8300sxmode): Likewise.
73 (h8300_normal_mode): Likewise.
74 (GDB_TARGET_IS_H8300): Likewise.
75 (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
76 * h8300-tdep.c (is_h8300hmode): New function.
77 (is_h8300smode): New function.
78 (is_h8300sxmode): New function.
79 (is_h8300_normal_mode): New function.
80 (BINWORD): Use new functions.
81 (h8300_examine_prologue): Likewise.
82 (h8300_print_register): Likewise.
83 (h8300_print_registers_info): Likewise.
84 (h8300_register_type): Likewise.
85 (h8300_gdbarch_init): Remove use of globals like h8300hmode.
86 * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
87 (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
88 (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
89
7ae4c3a5
JB
902003-12-10 J. Brobecker <brobecker@gnat.com>
91
92 * frame.c (select_frame): Get the current frame PC using
93 get_frame_address_in_block() instead of get_frame_pc().
94 * stack.c (get_frame_language): Likewise.
95
9b74d5d3
KB
962003-12-08 Kevin Buettner <kevinb@redhat.com>
97
98 * remote.c (remote_open_1, remote_cisco_open): Avoid closing
99 remote_desc more than once.
100
e7ebf6d6
AC
1012003-12-07 Andrew Cagney <cagney@redhat.com>
102
103 * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
104 directly calling strcmp equivalents. Add disclaimer.
105
8ccc1287
AC
1062003-12-06 Andrew Cagney <cagney@redhat.com>
107
108 * remote.c (remote_fetch_registers): For short packets, explicitly
109 supply a zero value. Use regcache_raw_supply. Fix suggested by
110 Jonathan Larmour.
111
32edc941
JJ
1122003-12-05 Jeff Johnston <jjohnstn@redhat.com>
113
114 * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
115 format to be the i387 extended float format which is used for
116 long doubles stored in memory.
117
2af2aeb0
MK
1182003-12-05 Mark Kettenis <kettenis@gnu.org>
119
120 From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
121 * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
122 column instead of translating it.
123
362ff856
MC
1242003-12-04 Michael Chastain <mec.gnu@mindspring.com>
125
126 Partial fix for PR c++/1465.
127 Fix for PR c++/1377.
128 * cp-support.h (cp_lookup_rtti_type): New function.
129 * cp-support.c (cp_lookup_rtti_type): New function.
130 * gnu-v2-abi.c: Update copyright years.
131 (gnuv2_rtti_type): Call cp_lookup_rtti_type.
132 * gnu-v3-abi.c: Update copyright years.
133 (gnuv3_rtti_type): Call cp_lookup_rtti_type.
134
149d821b
JB
1352003-12-04 J. Brobecker <brobecker@gnat.com>
136
137 * stabsread.c (read_type): Save a reference to types that are defined
138 as cross references to other types.
139
77f091dd
RM
1402003-12-02 Roland McGrath <roland@redhat.com>
141
142 * thread-db.c (enable_thread_event): Change return type to
143 td_err_e. Return TD_OK or error code.
144 (enable_thread_event_reporting): Update callers.
145
59659be2
ILT
1462003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
147
148 * NEWS: Mention new C++ demangler code.
149
56d0d96a
AC
1502003-12-03 Andrew Cagney <cagney@redhat.com>
151
152 * ppc-linux-nat.c (store_register, fetch_register): Convert
153 between ptrace and regcache's wordsize.
154 (ppc_register_u_addr): Use the ptrace wordsize.
155
251a3ae3
KB
1562003-12-02 Kevin Buettner <kevinb@redhat.com>
157
158 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
159
188dd5d6
DJ
1602003-12-02 Daniel Jacobowitz <drow@mvista.com>
161
162 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
163 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
164 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
165 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
166 Delete.
167 (dwarf2_read_section): Remove offset and size arguments. Use
168 bfd_get_section_size_before_reloc and sectp->filepos.
169 (dwarf2_has_info): Clear section variables instead of offsets.
170 (dwarf2_locate_sections): Don't initialize the deleted variables.
171 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
172 (dwarf2_build_psymtabs_easy): Likewise.
173 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
174 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
175 declarations.
176 (dwarf2_read_section): Update prototype.
177 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
178 Use bfd_get_section_size_before_reloc instead of global size
179 variables.
180
013be872
MC
1812003-12-01 Michael Chastain <mec.gnu@mindspring.com>
182
183 * dwarfread.c: Update documentation on the state of dwarf-1.
184
5994185b
AC
1852003-12-01 Andrew Cagney <cagney@redhat.com>
186
0748d941
AC
187 Obsolete old MIPS SVr3 and SVr4 systems.
188 * NEWS: Mention obsoleted systems.
189 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
190 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
191 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
192 obsolete.
193 * config/mips/decstation.mh: Mark as obsolete.
194 * config/mips/littlemips.mh: Mark as obsolete.
195 * config/mips/nm-mips.h: Mark as obsolete.
196 * config/mips/xm-mips.h: Mark as obsolete.
197 * config/mips/news-mips.mh: Mark as obsolete.
198 * config/mips/nm-news-mips.h: Mark as obsolete.
199 * config/mips/riscos.mh: Mark as obsolete.
200 * config/mips/nm-riscos.h: Mark as obsolete.
201 * config/mips/xm-riscos.h: Mark as obsolete.
202 * config/mips/mipsv4.mt: Mark as obsolete.
203 * config/mips/tm-mipsv4.h: Mark as obsolete.
204 * config/mips/xm-mipsv4.h: Mark as obsolete.
205
5994185b
AC
206 Obsolete old m68k systems.
207 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
208 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
209 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
210 m680[01]0-sun-sunos3* as obsolete.
211 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
212 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
213 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
214 * config/m68k/sun3os4.mh: Mark file obsolete.
215 * config/m68k/xm-sun3os4.h: Mark file obsolete.
216 * config/m68k/sun3os3.mh: Mark file obsolete.
217 * config/m68k/nm-sun3.h: Mark file obsolete.
218 * config/m68k/xm-sun3.h: Mark file obsolete.
219 * config/m68k/sun2os4.mh: Mark file obsolete.
220 * config/m68k/sun2os3.mh: Mark file obsolete.
221 * config/m68k/nm-sun2.h: Mark file obsolete.
222 * config/m68k/xm-sun2.h: Mark file obsolete.
223 * config/m68k/m68kv4.mh: Mark file obsolete.
224 * config/m68k/nm-sysv4.h: Mark file obsolete.
225 * config/m68k/xm-m68kv4.h: Mark file obsolete.
226 * config/m68k/m68klynx.mh: Mark file obsolete.
227 * config/m68k/nm-m68klynx.h: Mark file obsolete.
228 * config/m68k/dpx2.mh: Mark file obsolete.
229 * config/m68k/xm-dpx2.h: Mark file obsolete.
230 * config/m68k/nm-dpx2.h: Mark file obsolete.
231 * config/m68k/delta68.mh: Mark file obsolete.
232 * config/m68k/xm-delta68.h: Mark file obsolete.
233 * config/m68k/nm-delta68.h: Mark file obsolete.
234 * config/m68k/3b1.mh: Mark file obsolete.
235 * config/m68k/xm-3b1.h: Mark file obsolete.
236 * config/m68k/sun3os4.mt: Mark file obsolete.
237 * config/m68k/tm-sun3os4.h: Mark file obsolete.
238 * config/m68k/sun3os3.mt: Mark file obsolete.
239 * config/m68k/tm-sun3.h: Mark file obsolete.
240 * config/m68k/sun2os4.mt: Mark file obsolete.
241 * config/m68k/tm-sun2os4.h: Mark file obsolete.
242 * config/m68k/sun2os3.mt: Mark file obsolete.
243 * config/m68k/tm-sun2.h: Mark file obsolete.
244 * config/m68k/m68kv4.mt: Mark file obsolete.
245 * config/m68k/tm-m68kv4.h: Mark file obsolete.
246 * config/m68k/m68klynx.mt: Mark file obsolete.
247 * config/m68k/tm-m68klynx.h: Mark file obsolete.
248 * config/m68k/dpx2.mt: Mark file obsolete.
249 * config/m68k/tm-dpx2.h: Mark file obsolete.
250 * config/m68k/delta68.mt: Mark file obsolete.
251 * config/m68k/tm-delta68.h: Mark file obsolete.
252 * config/m68k/3b1.mt: Mark file obsolete.
253 * config/m68k/tm-3b1.h: Mark file obsolete.
254
720aa428
MK
2552003-11-29 Mark Kettenis <kettenis@gnu.org>
256
257 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
258 (x86_64_reg_class): Remove enum.
259 (merge_classes, classify_argument, examine_argument): Remove
260 functions.
261 (INT_REGS, SSE_REGS): Remove macros.
262 (x86_64_push_arguments): Remove function.
263 (amd64_push_arguments): New function.
264 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
265 x86_64_push_arguments.
266
35883a3f
MK
2672003-11-28 Mark Kettenis <kettenis@gnu.org>
268
269 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
270 zero. Reorganize code a bit.
271
597684c5
MK
2722003-11-27 Mark Kettenis <kettenis@gnu.org>
273
3e74aeed
MK
274 * dwarf2-frame.c: Fix another comment.
275
efb1c01c
MK
276 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
277 (x86_64_use_struct_convention, x86_64_extract_return_value,
278 x86_64_store_return_value): Remove.
279 (amd64_reg_class): New enum.
280 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
281 amd64_return_value): New functions.
282 (x86_64_init_abi): Don't set extract_return_value,
283 store_return_value and use_struct_convention. Set return_value to
284 amd64_return_value.
285 * i387-tdep.h (i387_return_value): New prototype.
286 * i387-tdep.c (i387_return_value): New function.
287
e4e9607c
MK
288 * dwarf2-frame.c: Fix some comments and whitespace problems.
289
13739f4d
MK
290 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
291 "gdb_assert.h" and "gdb_string.h".
292 (i386nbsd_r_reg_offset): Rename from regmap.
293 (SIZEOF_STRUCT_REG): Remove.
294 (i386nbsd_supply_reg, fetch_core_registers,
295 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
296 Remove.
297 (i386nbsd_aout_supply_regset,
298 i386nbsd_aout_regset_from_core_section): New functions.
299 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
300 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
301 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
302 initialize TDEP->sc_num_regs.
303 (i386nbsdaout_init_abi): New function.
304 (i386nbsdelf_init_abi): Remove initialization of
305 TDEP->num_xmm_regs. Don't set num_regs here.
306 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
307 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
308
597684c5
MK
309 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
310 .note.netbsdcore.procinfo section to recognize NetBSD core files.
311
37e79b6b
MC
3122003-11-26 Michael Chastain <mec.gnu@mindspring.com>
313
314 * cp-abi.c: Update copyright years.
315
24557e30
AC
3162003-11-25 Andrew Cagney <cagney@redhat.com>
317
318 * thread-db.c (enable_thread_event): New function. Ensure that BP
319 is a code address.
320 (enable_thread_event_reporting): Use enable_thread_event.
77f091dd 321
78c63a3b
MS
3222003-11-25 Michael Snyder <msnyder@redhat.com>
323
324 * mips-tdep.c (mips_o64_extract_return_value): Correct for
325 NUM_REGS (see changes 2003-06-21).
326 (mips_eabi_extract_return_value): Ditto.
327
aff6338a
AC
3282003-11-25 Andrew Cagney <cagney@redhat.com>
329
330 * infrun.c: Don't include "exec.h".
331 (handle_inferior_event): Pass current_target, instead of exec_ops,
332 to SOLIB_ADD. Add comments.
333 * Makefile.in (infrun.o): Update dependencies.
334
9e08b29b
DJ
3352003-11-24 Daniel Jacobowitz <drow@mvista.com>
336
337 * NEWS: Mention improved location expression support.
338
603942cc
AC
3392003-11-23 Andrew Cagney <cagney@redhat.com>
340
341 * Makefile.in (infrun.o): Update dependencies.
342 * infrun.c: Include "exec.h".
343 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
344
66c57289
AC
3452003-11-23 Andrew Cagney <cagney@redhat.com>
346
dd3ecc14
AC
347 * frame.c (frame_unwind_signed_register): Delete function.
348 * frame.h (frame_unwind_register_signed): Delete declaration.
349 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
350
eec1a560
AC
351 * arch-utils.h (generic_cannot_extract_struct_value_address):
352 Delete declaration.
353
cb137aa5
AC
354 * defs.h (DEPRECATED_STREQN): Rename STREQN.
355 (DEPRECATED_STREQ): Rename STREQ.
356 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
357 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
358 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
359 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
360 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
361 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
362 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
363 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
364 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 365
cb137aa5 366 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
367 * elfread.c (elf_symtab_read): Delete STREQ from comment.
368
29dfb2ac
AC
3692003-11-22 Andrew Cagney <cagney@redhat.com>
370
213cc0ad
AC
371 * frame.c (deprecated_frame_xmalloc): Delete function.
372 (deprecated_set_frame_extra_info_hack): Delete function.
373 (deprecated_set_frame_saved_regs_hack): Delete function.
374 * frame.h (deprecated_frame_xmalloc): Delete declaration.
375 (deprecated_set_frame_extra_info_hack): Delete declaration.
376 (deprecated_set_frame_saved_regs_hack): Delete declaration.
377 * mcore-tdep.c (analyze_dummy_frame): Instead of
378 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
379 and deprecated_set_frame_extra_info_hack use
380 deprecated_frame_xmalloc_with_cleanup.
381 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
382 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
383 deprecated_set_frame_saved_regs_hack.
384
35bb18ac
AC
385 * mips-tdep.c (mips_frame_chain): Delete call to
386 deprecated_inside_entry_file.
387
38a7ce4b
AC
388 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
389 (deprecated_set_frame_prev_hack): Delete declaration.
390 * frame.c (deprecated_set_frame_next_hack): Delete function.
391 (deprecated_set_frame_prev_hack): Delete function.
392 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
393 "deprecated_set_frame_next_hack" and
394 "deprecated_set_frame_prev_hack".
395 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
396
47ebcfbe
AC
397 * mips-tdep.c (mips_register_convertible): Delete function.
398 (mips_register_convert_to_virtual): Delete function.
399 (mips_register_convert_to_raw): Delete function.
400 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
401 "deprecated_register_convert_to_virtual", or
402 "deprecated_register_convert_to_raw".
403 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
404 32/64 cooked to raw register conversions.
405
2a9264f1 406 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 407 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
408 (struct frame_info): Delete member "context".
409 * frame.h (deprecated_get_frame_context): Delete declaration.
410 (deprecated_set_frame_context): Delete declaration.
411
7af6341f
AC
412 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
413 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
414 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
415 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
416
10a08821
AC
417 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
418 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
419 mips_regsize.
420 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
421 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
422 * config/mips/tm-irix5.h: Update copyright.
423 (SIGFRAME_REG_SIZE): Delete macro.
424
00d33403
AC
425 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
426 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
427 declaration.
428 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
429 * infcall.c (call_function_by_hand): Delete #ifdef
430 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
431 * infcmd.c (print_return_value): Ditto.
432
74da7425
AC
433 * mips-tdep.c (skip_prologue_using_sal): New function.
434 (mips32_skip_prologue, mips16_skip_prologue): Use
435 skip_prologue_using_sal to get an upper bound on the search.
436
369864a4
AC
437 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
438 #if 0'ed macro.
439 * infrun.c (step_into_function): Delete #ifdef
440 PROLOGUE_FIRSTLINE_OVERLAP code.
441 * symtab.c (find_function_start_sal): Ditto.
442
a5a12285
AC
443 * remote-rdp.c: Update copyright.
444 (rdp_init): #if 0 references to "target_byte_order".
445
29dfb2ac
AC
446 * mips-tdep.c (mips_o32_store_return_value): Delete function.
447 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
448 (mips_o32_extract_return_value): Delete function.
449 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
450 (mips_n32n64_extract_return_value): Delete function.
451 (mips_n32n64_store_return_value): Delete function.
452 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
453 instead of "store_return_value", "extract_return_value", and
454 "use_struct_convention".
455 (mips_n32n64_use_struct_convention): Delete function.
456
3a3da38c
KB
4572003-11-21 Kevin Buettner <kevinb@redhat.com>
458
459 * frv-tdep.c (frv_frame_this_id): Eliminate call to
460 inside_entry_func().
461
c5e656c1
MK
4622003-11-20 Mark Kettenis <kettenis@gnu.org>
463
464 * i386-tdep.c (i386_extract_return_value,
465 i386_store_return_value): Add gdbarch argument. Use it instead of
466 determining it from REGCACHE. Remove recursive call for
467 structures with a single member.
468 (i386_use_struct_convention): Remove.
469 (i386_reg_struct_return_p): New function.
470 (i386_return_value): New function.
471 (i386_gdbarch_init): Set return_value, don't set
472 extract_return_value, store_return_value and
473 use_struct_convention.
474 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
475
515cc92e
JB
4762003-11-20 Jim Blandy <jimb@redhat.com>
477
478 * osabi.c (_initialize_gdb_osabi): Don't return before registering
479 the 'set osabi' and 'show osabi' commands.
480
3f1d7f16
MK
4812003-11-19 Mark Kettenis <kettenis@gnu.org>
482
483 * frame.c (get_prev_frame): Use result from
484 get_frame_address_in_block instead of get_frame_pc as argument to
485 inside_main_func. Fixes PR backtrace/1435.
486
667e784f
AC
4872003-11-19 Andrew Cagney <cagney@redhat.com>
488
489 * stack.c (return_command): Handle "void", "legacy" and "unknown
490 location" return values separatly.
491 * values.c (using_struct_return): Return 0 for a "void" return
492 type. Mention "register_value_being_returned".
493 (register_value_being_returned): Mention "using_struct_return".
494
4cecd739
DJ
4952003-11-19 Daniel Jacobowitz <drow@mvista.com>
496
497 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
498 (frame_base_offset): Delete.
499 (read_func_scope): Delete call to decode_locdesc.
500 (decode_locdesc): Update comments. Don't set the removed variables.
501 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
502 DW_OP_fbreg support.
503
6b992462
DJ
5042003-11-18 Daniel Jacobowitz <drow@mvista.com>
505
506 * dwarf2read.c (optimized_out, islocal): Remove.
507 (decode_locdesc): Update comments. Don't set optimized_out
508 or islocal.
509
968d1cb4
JJ
5102003-11-17 Jeff Johnston <jjohnstn@redhat.com>
511 David Mosberger <davidm@hpl.hp.com>
512
513 * ia64-tdep.c: Include elf.h.
77f091dd 514 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
968d1cb4
JJ
515 libunwind-ia64.h.
516 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
517 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
518 (ia64_is_fpreg, ia64_access_reg): Ditto.
519 (ia64_access_fpreg, ia64_access_mem): Ditto.
520 (get_kernel_table): Ditto.
521 (ia64_find_unwind_table): Ditto.
522 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
523 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
524 (ia64_libunwind_frame_prev_register): Ditto.
525 (ia64_libunwind_frame_sniffer): Ditto.
526 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
77f091dd
RM
527 sniffer. Register libunwind functions needed by generic
528 libunwind frame code using libunwind_frame_set_descr().
968d1cb4 529
d29caefc
DJ
5302003-11-16 Daniel Jacobowitz <drow@mvista.com>
531
532 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
533 bp_shlib_disabled breakpoint if there is a shared library mapped
534 at its expected address.
535
691c0433
AC
5362003-11-16 Andrew Cagney <cagney@redhat.com>
537
96cb1c2f
AC
538 * configure.tgt: Delete mips*tx39*-elf*.
539 * config/mips/tm-tx39.h: Delete file.
540 * config/mips/tx39.mt: Delete file.
541 * config/mips/tx39.mt: Delete file.
542
691c0433
AC
543 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
544 * remote-mips.c (common_open): Instead of
545 "mips_read_register_type" and "mips_set_processor_type_command"
546 call "deprecated_mips_set_processor_regs_hack".
547 * config/mips/tm-mips.h (mips_read_processor_type): Delete
548 declaration.
549 (mips_set_processor_type_command): Delete declaration.
550 * mips-tdep.c (mips_gdbarch_init): Update comment.
551 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
552 (mips_set_processor_type): Delete function.
553 (NUM_MIPS_PROCESSOR_REGS): Define.
554 (mips_show_processor_type_command): Delete function.
555 (mips_set_processor_type_command): Delete function.
556 (tmp_mips_processor_type): Delete.
557 (mips_processor_type): Delete.
558 (mips_processor_type_table): Delete.
559 (mips_r3051_reg_names): Delete.
560 (mips_r3081_reg_names): Delete.
561 (mips_lsi33k_reg_names): Delete.
562 (mips_processor_reg_names): Delete.
563 (mips_read_processor_type): Delete function.
564 (deprecated_mips_set_processor_regs_hack): New function.
565 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
566 (mips_register_name): Get the processor names from the tdep.
567 (mips_tx39_reg_names): New array.
568 (mips_generic_reg_names): Wire to a standard set of names.
77f091dd 569 (mips_gdbarch_init): Set "mips_processor_reg_names".
691c0433
AC
570 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
571 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
572 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
573
56cea623
AC
5742003-11-16 Andrew Cagney <cagney@redhat.com>
575
576 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
577 (mips_fpa0_regnum, mips_regnum): New function.
578 (mips_gdbarch_init): Fill in the "regnum" fields.
579 * mips-tdep.h (struct mips_regnum): Define.
580 (mips_regnum): Declare.
581 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
582 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
583 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
584 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
585 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
586 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
587 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
588 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
589 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
590 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
591 * remote-mips.c: Include "mips-tdep.h". Update.
592 * mipsnbsd-tdep.c: Update.
593 * mipsv4-nat.c: Update.
594 * mips-tdep.c: Update.
595 * mips-nat.c: Update.
596 * mips-linux-tdep.c: Update.
597 * mips-linux-nat.c: Update.
598 * irix5-nat.c: Update.
599 * dve3900-rom.c: Include "mips-tdep.h". Update.
600 (ignore_packet): Supress GCC warning.
601 * config/mips/nm-riscos.h: Update.
602
719ec221
AC
6032003-11-16 Andrew Cagney <cagney@redhat.com>
604
605 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
606 register_size.
607 (mips_register_raw_size): Delete function.
608 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
609 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
610 Check and set "mips64_transfers_32bit_regs_p".
611 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
612 (mips_register_convertible): Check the architecture's
613 "mips64_transfers_32bit_regs_p".
614 (set_mips64_transfers_32bit_regs): New function.
615 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
616 "set remote-mips64-transfers-32bit-regs" command. Specify
617 set_mips64_transfers_32bit_regs as the set function.
56cea623 618 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 619
20187ed5
MK
6202003-11-16 Mark Kettenis <kettenis@gnu.org>
621
622 * i386-tdep.h (i386_supply_gregset): Provide prototype.
623 * i386-tdep.c (i386_supply_gregset): Make public.
624
6771c427
AC
6252003-11-16 Andrew Cagney <cagney@redhat.com>
626
627 * mips-tdep.c (mips_register_byte): Delete function.
628 (mips_gdbarch_init): Do not set "deprecated_register_byte".
629 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
630 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
631 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
632
c8048956
MK
6332003-11-16 Mark Kettenis <kettenis@gnu.org>
634
635 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
636
cc8a868a
AC
6372003-11-16 Andrew Cagney <cagney@redhat.com>
638
639 * config/mips/linux64.mt: Delete file.
640 * config/mips/tm-linux64.h: Delete file.
641 * config/mips/tm-mips64.h: Delete file.
642 * config/mips/embed64.mt: Delete file.
643 * config/djgpp/fnchange.lst: Update.
644 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
645 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
646 * config/mips/tm-irix6.h: Update copyright. Include
647 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
648 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
649 "OP_LDGPR".
650
5ef80fb0
AC
6512003-11-15 Andrew Cagney <cagney@redhat.com>
652
653 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
654 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
655 n32 registers 64 bit.
656 (mips_register_raw_size, mips_register_byte): For pseudo
657 registers, use the register's pseudo size and not the
658 corresponding raw register's size.
659 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
660 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
661 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
662 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
663
4246e332
AC
6642003-11-15 Andrew Cagney <cagney@redhat.com>
665
8fa9cfa1
AC
666 * mips-tdep.c (struct gdbarch_tdep): Delete member
667 gdb_target_is_mips64.
668 (GDB_TARGET_IS_MIPS64): Delete macro.
669 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
670 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
671 (mips_addr_bits_remove): Simplify.
672
c73e8f27
AC
673 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
674 register_size.
675
4246e332
AC
676 Replace MIPS_REGSIZE with mips_regsize.
677 * mips-tdep.c (mips_regsize): New function.
678 * mips-tdep.h (mips_regsize): Declare.
679 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
680 (SIZEOF_STRUCT_REG): Update.
681 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
682 (mipsnbsd_fill_reg): Update.
683 (mipsnbsd_supply_fpreg): Update.
684 (mipsnbsd_fill_fpreg): Update.
685 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
686 * mips-tdep.c (mips_register_raw_size): Update.
687 (mips_register_type): Update.
688 (SIGFRAME_BASE): Update.
689 (SIGFRAME_PC_OFF): Update.
690 (SIGFRAME_REGSAVE_OFF): Update.
691 (SIGFRAME_FPREGSAVE_OFF): Update.
692 (SIGFRAME_REG_SIZE): Update.
693 (mips32_heuristic_proc_desc): Update.
694 (print_gp_register_row): Update.
695 (mips_dump_tdep): Do not print MIPS_REGSIZE.
696 * irix5-nat.c (supply_gregset): Update.
697 (fetch_core_registers): Update.
698 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
699 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
700 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
701 (MIPS_REGISTER_BYTE): Update.
702 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
703
5e044b1e
AC
7042003-11-15 Andrew Cagney <cagney@redhat.com>
705
706 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
707 USE_REGISTER_NOT_ARG.
708 * stabsread.c (define_symbol): Update.
709
3a16a68c
AC
7102003-11-15 Andrew Cagney <cagney@redhat.com>
711
712 * bcache.h (deprecated_bcache): Declare.
713 (bcache): Make returned buffer constant.
714 * bcache.c (deprecated_bcache): New function.
715 (bcache_data): New function.
716 (bcache): Call bcache data.
717 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
718 (add_psymbol_with_dem_name_to_list): Ditto.
719
bb41a796
MK
7202003-11-15 Mark Kettenis <kettenis@gnu.org>
721
722 * glibc-tdep.h (struct gdbarch): Declare opaque.
723 (glibc_skip_solib_resolver): Adjust prototype.
724 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
725 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
726 (arm_linux_init_abi): Set skip_solib_resolver.
727 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
728 (i386_linux_init_abi): Set skip_solib_resolver.
729 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
730 (arm_linux_skip_solib_resolver): Remove prototype.
731 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
732 (i386_linux_skip_solib_resolver): Remove prototype.
733
4c8c40e6
MK
7342003-11-14 Mark Kettenis <kettenis@gnu.org>
735
736 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
737 function.
738 * gdbarch.c, gdbarch.h: Regenerate.
739 * infrun.c (handle_inferior_event): Call
740 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
741 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
742 definition.
743 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
744 prototype.
745
0e5d83e3
JJ
7462003-11-14 Jeff Johnston <jjohnstn@redhat.com>
747
748 * libunwind-frame.c: New file.
749 * libunwind-frame.h: New file.
750 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
751 * configure.in: Add --with-libunwind option support. Define
77f091dd 752 HAVE_LIBUNWIND if libunwind support selected / defaulted.
0e5d83e3
JJ
753 Also check for libunwind.h and libunwind-ia64.h headers.
754 * configure: Regenerated.
755 * Makefile.in: Add support for libunwind-frame.o.
756 * config.in: Regenerated.
757
287a334e 7582003-11-14 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 759
287a334e
JJ
760 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
761 set up the ia64 linux native target method for getting the kernel
762 unwind table.
763 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
764 * inftarg.c (child_xfer_partial): Enable section of code to
765 handle TARGET_OBJECT_UNWIND_TABLE.
766 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
767
140be7b8
ILT
7682003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
769
770 * config/arm/nbsd.mt (TM_FILE): Define.
771 * config/arm/tm-nbsd.h: New file.
772
0a90bcdd
AC
7732003-11-14 Andrew Cagney <cagney@redhat.com>
774
775 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
776 * ppc-sysv-tdep.c: Include "objfiles.h".
777 (ppc64_sysv_abi_push_dummy_call): Provide the
778 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
779
780 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
781 "name_of_malloc" to ".malloc".
782
087f1027
MK
7832003-11-13 Mark Kettenis <kettenis@gnu.org>
784
785 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
786
3882f37a
DC
7872003-11-13 David Carlton <carlton@kealia.com>
788
789 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
790
a8cf2722
AC
7912003-11-13 Andrew Cagney <cagney@redhat.com>
792
793 * arch-utils.h (selected_architecture_name): Declare.
794 (selected_byte_order): Declare.
795 * arch-utils.c (selected_byte_order): New function.
796 (selected_architecture_name): New function.
797 (target_architecture_auto): Make static.
798 (set_architecture_string): Make static.
799 (target_byte_order): Make static.
800 (target_byte_order_auto): Make static.
801 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
802 non-multi-arch definition.
803 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
804 (target_byte_order, target_architecture): Delete declaration.
805 (target_byte_order_auto, target_architecture_auto): Ditto.
806 * gdbarch.h: Re-generate.
807 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
808 "selected_byte_order".
77f091dd 809
475b6ddd
AC
8102003-11-13 Andrew Cagney <cagney@redhat.com>
811
812 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
813
a22286a9
JB
8142003-11-13 Jim Blandy <jimb@redhat.com>
815
816 * cp-namespace.c: Doc fix.
817
7bb11558
MS
8182003-11-12 Michael Snyder <msnyder@redhat.com>
819
39add00a
MS
820 * sh64_tdep.c: Regularize some names.
821 (sh_sh64_register_name): Rename to sh64_register_name.
822 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
823 (sh_sh64_register_byte): Rename to sh64_register_byte.
77f091dd 824 (sh_sh64_build_float_register_type):
39add00a 825 Rename to sh64_build_float_register_type.
77f091dd 826 (sh_sh64_register_convert_to_virtual):
39add00a 827 Rename to sh64_register_convert_to_virtual.
77f091dd 828 (sh_sh64_register_convert_to_raw):
39add00a
MS
829 Rename to sh64_register_convert_to_raw.
830
77f091dd
RM
831 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
832 sh64_media_reg_base_num, sh64_compact_reg_base_num,
2a314ed5 833 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd
RM
834 sh64_extract_return_value, sh64_show_media_regs,
835 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
2a314ed5 836 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
77f091dd 837 sh64_pseudo_register_read, sh64_pseudo_register_write,
2a314ed5
MS
838 sh64_do_pseudo_register, sh_compact_print_registers_info):
839 Delete unused variable 'tdep'.
840
7bb11558
MS
841 * sh64-tdep.c: Coding standard and spelling comment fixes.
842 (sh64_extract_return_value): Replace deprecated_store_floating
843 with store_typed_floating.
77f091dd 844 (sh_sh64_register_convert_to_raw): Replace
7bb11558
MS
845 deprecated_store_floating with store_typed_floating.
846 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
847 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
848 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd 849 sh64_extract_struct_value_address, sh64_pop_frame,
7bb11558 850 sh64_extract_return_value, sh64_store_return_value,
77f091dd 851 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
7bb11558
MS
852 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
853 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
854 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
855 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
856 deprecated_register_virtual_type, deprecated_register_raw_size,
77f091dd 857 deprecated_max_register_raw_size, or
7bb11558
MS
858 deprecated_max_register_virtual_size. Instead, just set
859 gdbarch_register_type.
39add00a
MS
860 (sh_sh64_register_raw_size): Delete.
861 (sh_sh64_register_virtual_size): Delete.
7bb11558 862
e7c27a73
DJ
8632003-11-12 Daniel Jacobowitz <drow@mvista.com>
864
865 * dwarf2read.c (struct dwarf2_cu): New type.
866
867 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
868 dwarf2_cu structure to pass down.
869
870 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
871 (add_partial_enumeration, locate_pdi_sibling, process_die)
872 (read_file_scope, read_func_scope)
873 (read_lexical_block_scope, dwarf2_get_pc_bounds)
874 (dwarf2_add_field, dwarf2_attach_fields_to_type)
875 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
876 (read_structure_scope, read_enumeration, read_array_type)
877 (read_common_block, read_namespace, read_tag_pointer_type)
878 (read_tag_ptr_to_member_type, read_tag_reference_type)
879 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
880 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
881 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
882 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
883 (read_full_die. read_attribute_value, read_attribute)
884 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
885 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
886 (die_containing_type, type_at_offset, tag_type_to_type)
887 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
888 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
889
1640b821
DJ
8902003-11-12 Daniel Jacobowitz <drow@mvista.com>
891
892 PR breakpoints/1450
893 * breakpoint.c (insert_bp_location): Fix a logic error by returning
894 0 after a catchpoint fails.
895
d7891507
MC
8962003-11-11 Michael Chastain <mec.gnu@mindspring.com>
897
898 * mips-tdep.c (msymbol_size): Delete.
899
f594e5e9
MC
9002003-11-07 Michael Chastain <mec@shout.net>
901
902 * symtab.h (struct minimal_symbol): Add size.
903 * dbxread.c: Use it.
904 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
905 Rename to record_minimal_symbol.
906 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
907 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
908 (install_minimal_symbols): Ditto.
909 * objfiles.c (terminate_minimal_symbol_table): Ditto.
910 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
911 * m68hc11-tdep.c: Ditto.
912 * mips-tdep.c: Ditto.
913 * sh64-tdep.c: Ditto.
914
68e39e73
MC
9152003-11-10 Michael Chastain <mec.gnu@mindspring.com>
916
917 * MAINTAINERS: Change my e-mail address.
918
b60eb90d
AC
9192003-11-10 Andrew Cagney <cagney@redhat.com>
920
963e2bb7
AC
921 * gdbarch.sh (return_value): Replace "inval" and "outval" with
922 "readbuf" and "writebuf".
923 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
924 * d10v-tdep.c (d10v_return_value): Ditto.
925 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
926 (ppc_sysv_abi_broken_return_value): Ditto.
927 (ppc64_sysv_abi_return_value): Ditto.
928 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
929 (ppc_sysv_abi_return_value): Ditto.
930 (ppc_sysv_abi_broken_return_value): Ditto.
931 (ppc64_sysv_abi_return_value): Ditto.
932 * values.c (register_value_being_returned): Update call.
933 * stack.c (return_command): Update call.
934 * gdbarch.h, gdbarch.c: Re-generate.
935
8aa91c1e
AC
936 * target.h (struct target_ops): Order xfer buffer parameters "read
937 write" not "write read".
938 * bfd-target.c (target_bfd_xfer_partial): Update.
939 * remote.c (remote_xfer_partial): Update.
940 * inftarg.c (child_xfer_partial): Update.
941 * target.c (default_xfer_partial): Update.
942 (target_read_partial, target_write_partial): Update.
943 (debug_to_xfer_partial): Update.
944
100bcc3f
AC
945 * arch-utils.h, arch-utils.c: Fix typo in comment.
946
b60eb90d
AC
947 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
948 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
949 (set_gdbarch_from_file): Call
950 "deprecated_current_gdbarch_select_hack".
b60eb90d 951
bf922ad9
AC
9522003-11-09 Andrew Cagney <cagney@redhat.com>
953
ebdba546
AC
954 * arch-utils.c (gdbarch_update_p): New function.
955 * gdbarch.sh (gdbarch_update_p): Delete function.
956 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 957 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
958 * gdbarch.c: Re-generate.
959
7de2341d
AC
960 * gdbarch.sh (clear_gdbarch_swap): Delete function.
961 (swapout_gdbarch_swap): Delete function.
962 (swapin_gdbarch_swap): Delete function.
963 (init_gdbarch_swap): Delete function.
964 (initialize_non_multiarch): Delete function.
965 (current_gdbarch_swap_in_hack): New function.
966 (current_gdbarch_swap_out_hack): New function.
967 (current_gdbarch_swap_init_hack): New function.
968 * gdbarch.c: Re-generate.
969
db446970
AC
970 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
971 parameter to "current_gdbarch". Add comment explaining why.
972 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
973 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
974 * gdbarch.c: Re-generate.
77f091dd 975
341e3d11
AC
976 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
977 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
978 * config/s390/xm-linux.h: Delete file.
979 * config/m88k/xm-delta88v4.h: Delete stray.
980
bf922ad9
AC
981 * Makefile.in (arch-utils.o): Update dependencies.
982 * arch-utils.c: Include "osabi.h".
983 (gdbarch_info_fill): New function.
984 * arch-utils.h (gdbarch_info_fill): Declare.
985 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
986 * gdbarch.c: Re-generate.
987
a3640c75
MK
9882003-11-09 Mark Kettenis <kettenis@gnu.org>
989 David S. Miller <davem@redhat.com>
990
991 * glibc-tdep.c, glibc-tdep.h: New files.
992 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
993 * config/i386/linux.mt (TDEPFILES): Likewise.
994 * i386-linux-tdep.c (glibc-tdep.h): Include.
995 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
996 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
997 * arm-linux-tdep.c (glibc-tdep.h): Include.
998 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
999 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1000 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
1001 (glibc_tdep_h): Define.
1002 (glibc-tdep.o): Add dependencies.
1003 (arm-linux-tdep.o): Update dependencies.
1004 (i386-linux-tdep.o): Likewise.
1005
e60e0ab2
AC
10062003-11-09 Andrew Cagney <cagney@redhat.com>
1007
1008 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
1009 * config/mips/nm-irix6.h: Delete file.
1010 * config/mips/nm-linux.h: Update copyright.
1011 (MIPS_GNULINUX_TARGET): Delete macro.
1012 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
1013 * config/mips/xm-irix6.h: Delete file.
1014 * config/mips/linux.mh (XM_FILE): Delete definition.
1015 * config/mips/xm-linux.h: Delete file.
1016
181555e9
AC
10172003-11-09 Andrew Cagney <cagney@redhat.com>
1018
1019 * d10v-tdep.c (d10v_return_value): New function.
1020 (d10v_use_struct_convention): Delete function.
1021 (d10v_store_return_value): Delete function.
1022 (d10v_extract_struct_value_address): Delete function.
1023 (d10v_gdbarch_init): Set "return_value" instead of
1024 "extract_return_value", "store_return_value",
1025 "extract_struct_value_address", and "use_struct_convention".
1026 (RET1_REGNUM): Delete const.
1027
dea0c52f
MK
10282003-11-09 Mark Kettenis <kettenis@gnu.org>
1029
1030 From David S. Miller <davem@redhat.com>:
1031 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
1032 * gdbarch.c, gdbarch.h: Regenerated.
1033 * arch-utils.c (generic_skip_solib_resolver): New function.
1034 * arch-utils.h (generic_skip_solib_resolver): New prototype.
1035 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
1036
6314a349
AC
10372003-11-07 Andrew Cagney <cagney@redhat.com>
1038
1039 * top.c (print_gdb_version): Replace STREQ with strcmp.
1040 * valops.c (value_struct_elt_for_reference): Ditto.
1041 (value_struct_elt_for_reference): Ditto.
1042 * symtab.c (gdb_mangle_name): Ditto.
1043 (find_line_symtab): Ditto.
1044 * symmisc.c (maintenance_print_symbols): Ditto.
1045 * symfile.c (symbol_file_command): Ditto.
1046 * stabsread.c (define_symbol, read_type): Ditto.
1047 (cleanup_undefined_types, scan_file_globals): Ditto.
1048 * solib.c (solib_map_sections): Ditto.
1049 * solib-svr4.c (bfd_lookup_symbol): Ditto.
1050 * rs6000-tdep.c (skip_prologue): Ditto.
1051 * p-valprint.c (pascal_value_print): Ditto.
1052 (pascal_object_is_vtbl_ptr_type): Ditto.
1053 * objfiles.c (in_plt_section): Ditto.
1054 * minsyms.c (lookup_minimal_symbol): Ditto.
1055 (compact_minimal_symbols): Ditto.
1056 (find_solib_trampoline_target): Ditto.
1057 * mdebugread.c (parse_type): Ditto.
1058 * language.c (set_language_command): Ditto.
1059 (set_type_command, set_range_command): Ditto.
1060 * f-lang.c (add_common_block): Ditto.
1061 (add_common_block): Ditto.
1062 (find_first_common_named): Ditto.
1063 (patch_all_commons_by_name): Ditto.
1064 * elfread.c (elf_locate_sections): Ditto.
1065 (elf_locate_sections): Ditto.
1066 (elfstab_offset_sections): Ditto.
1067 * dwarf2read.c (dwarf2_locate_sections): Ditto.
1068 * dbxread.c (add_old_header_file): Ditto.
1069 (find_corresponding_bincl_psymtab): Ditto.
1070 (read_dbx_symtab, process_one_symbol): Ditto.
1071 * coffread.c (patch_opaque_types): Ditto.
1072 * cli/cli-decode.c (delete_cmd): Ditto.
1073 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1074 * c-typeprint.c (c_type_print_base): Ditto.
1075 * breakpoint.c (bpstat_stop_status): Ditto.
1076 (clear_command, breakpoint_re_set_one): Ditto.
1077
49df298f
AC
10782003-11-07 Andrew Cagney <cagney@redhat.com>
1079
1080 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
1081 * bcache.c (struct bstring): Make "length" an unsigned short, add
1082 "half_hash".
1083 (struct bcache): Add "half_hash_error_count".
1084 (bcache): Compute and save the "half_hash". Compare the
1085 "half_hash" before comparing the length. Update
1086 half_hash_error_count.
1087
f168dd80
AC
10882003-11-07 Andrew Cagney <cagney@redhat.com>
1089
1090 * inftarg.c (child_xfer_partial): New function
1091 (init_child_ops): Set "to_xfer_partial".
1092
05580c65
AC
10932003-11-07 Andrew Cagney <cagney@redhat.com>
1094
1095 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1096 set "return_value" instead of "use_struct_convention".
1097 (ppc_linux_use_struct_convention): Delete function.
1098 (ppc_linux_return_value): New function.
1099 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1100 (ppc_sysv_abi_broken_return_value): New function.
1101 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1102 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1103 static.
1104 (ppc_sysv_abi_extract_return_value): Delete function.
1105 (ppc_sysv_abi_broken_extract_return_value): Delete function.
1106 (ppc_sysv_abi_store_return_value): Delete function.
1107 (ppc_sysv_abi_broken_store_return_value): Delete function.
1108 (ppc_sysv_abi_use_struct_convention): Delete function.
1109 (ppc64_sysv_abi_use_struct_convention): Delete function.
1110 (ppc64_sysv_abi_extract_return_value): Delete function.
1111 (ppc64_sysv_abi_store_return_value): Delete function.
1112 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1113 (ppcnbsd_init_abi): Set "return_value", instead of
1114 "use_struct_convention", "extract_return_value", and
1115 "store_return_value".
1116 (ppcnbsd_use_struct_convention): Delete function.
1117 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1118 (ppc_sysv_abi_return_value): Declare.
1119 (ppc_sysv_abi_broken_return_value): Declare.
1120 (ppc_sysv_abi_use_struct_convention): Delete.
1121 (ppc_sysv_abi_store_return_value): Delete.
1122 (ppc_sysv_abi_extract_return_value): Delete.
1123 (ppc_sysv_abi_broken_store_return_value): Delete.
1124 (ppc_sysv_abi_broken_extract_return_value): Delete.
1125 (ppc64_sysv_abi_use_struct_convention): Delete.
1126 (ppc64_sysv_abi_extract_return_value): Delete.
1127 (ppc64_sysv_abi_store_return_value): Delete.
1128 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1129 set "return_value" instead of "extract_return_value",
1130 "store_return_value", and "use_struct_convention".
1131
1763fba4
MK
11322003-11-07 Mark Kettenis <kettenis@gnu.org>
1133
22c7ba1a
MK
1134 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1135
1763fba4
MK
1136 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1137 fscanf.
1138
fc07cc2d
MK
11392003-11-07 Mark Kettenis <kettenis@gnu.org>
1140
1141 * fbsd-proc.c: Fix formatting.
1142
6a748db6
KB
11432003-11-06 Kevin Buettner <kevinb@redhat.com>
1144
1145 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1146 Define.
1147 (new_variant): Set name for iacc0_regnum.
1148 (frv_register_name): Accommodate pseudo-registers.
1149 (frv_register_type): Add case for iacc0_regnum.
1150 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1151 (frv_gdbarch_init): Set number of pseudo registers. Establish
1152 pseudo-register read/write methods.
1153
bf896cb0
AC
11542003-11-06 Andrew Cagney <cagney@redhat.com>
1155
1156 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1157 * top.c (command_line_input): Ditto.
1158 * objc-exp.y (yylex): Ditto.
1159 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1160 * jv-exp.y (yylex): Ditto.
1161 * f-exp.y (yylex): Ditto.
1162 * event-top.c (command_line_handler): Ditto.
1163 * environ.c (get_in_environ): Ditto.
1164 (set_in_environ): Ditto.
1165 * dwarfread.c (handle_producer): Ditto.
1166 * dbxread.c (process_one_symbol): Ditto.
1167 * c-typeprint.c (c_type_print_base): Ditto.
1168 * c-exp.y (yylex): Ditto.
1169
0b603eba
AC
11702003-11-06 Andrew Cagney <cagney@redhat.com>
1171 Jeff Johnston <jjohnstn@redhat.com>
1172
1173 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1174 (init_dummy_target): Set "to_xfer_partial".
1175
9cedbfec
AC
11762003-11-06 Andrew Cagney <cagney@redhat.com>
1177
1178 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1179 REGISTER_CONVENTION.
1180
26bb91f3
DJ
11812003-11-06 Daniel Jacobowitz <drow@mvista.com>
1182
1183 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1184 static.
1185
0bde7532
DJ
11862003-11-06 Daniel Jacobowitz <drow@mvista.com>
1187
1188 * breakpoint.c (remove_breakpoint): Take an bp_location
1189 instead of a breakpoint argument. Check the bp_location's type.
1190 Fix a reversed condition for hardware breakpoints.
1191
1192 (insert_bp_location): Update call to remove_breakpoint.
1193 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1194 (remove_hw_watchpoints): Likewise.
1195 (reattach_breakpoints): Likewise.
1196 (detach_breakpoints): Likewise.
1197 (delete_breakpoint): Likewise.
1198
075f6582
DJ
11992003-11-06 Daniel Jacobowitz <drow@mvista.com>
1200
1201 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1202 (beakpoint_init_inferior): Likewise.
1203 (breakpoint_here_p): Likewise. Only check addresses for software
1204 or hardware breakpoints.
1205 (breakpoint_inserted_here_p): Likewise.
1206 (breakpoint_thread_match): Likewise. Correct comment.
1207 (bpstat_have_active_hw_watchpoints): Likewise.
1208 (check_duplicates): Likewise.
1209
879bfdc2
DJ
12102003-11-06 Daniel Jacobowitz <drow@mvista.com>
1211
1212 * breakpoints.c (insert_bp_location): New function, broken out
1213 from insert_breakpoints. Work on an bp_location instead of a
1214 breakpoint.
1215 (insert_breakpoints): Use it.
1216
cf3a9e5b
DJ
12172003-11-06 Daniel Jacobowitz <drow@mvista.com>
1218
1219 * breakpoint.h (struct bp_location): Add section.
1220 (struct breakpoint): Remove section.
1221 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1222 (breakpoint_here_p, breakpoint_inserted_here_p)
1223 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1224 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1225 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1226 section through loc.
1227
ffce0d52
DJ
12282003-11-06 Daniel Jacobowitz <drow@mvista.com>
1229
1230 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1231 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1232
e049a4b5
DJ
12332003-11-06 Daniel Jacobowitz <drow@mvista.com>
1234
1235 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1236 arguments. Initialize owner and type for the new breakpoint
1237 location item.
1238 (set_raw_breakpoint): Update call to allocate_bp_location.
1239
7cc221ef
DJ
12402003-11-06 Daniel Jacobowitz <drow@mvista.com>
1241
1242 * breakpoint.h (struct bp_location): Add a chain pointer.
1243 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1244 macros.
1245 (bp_location_chain): New variable.
1246 (allocate_bp_location): New function.
1247 (set_raw_breakpoint): Use it.
1248 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1249
5cab636d
DJ
12502003-11-06 Daniel Jacobowitz <drow@mvista.com>
1251
1252 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1253 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 1254 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
1255 * breakpoint.c (condition_command, read_memory_nobpt)
1256 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1257 (reattach_breakpoints, update_breakpoints_after_exec)
1258 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1259 (breakpoint_init_inferior, breakpoint_here_p)
1260 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1261 (breakpoint_thread_match, bpstat_stop_status)
1262 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1263 (describe_other_breakpoints, check_duplicates)
1264 (make_breakpoint_permanent, create_thread_event_breakpoint)
1265 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1266 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1267 (watch_command_1, print_one_exception_catchpoint)
1268 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1269 use the breakpoint's ->loc.
1270 (set_raw_breakpoint): Likewise. Initialize ->loc.
1271 (delete_breakpoint): Likewise. Free ->loc.
1272
7be0c536
AC
12732003-11-05 Andrew Cagney <cagney@redhat.com>
1274
4c7d882e
AC
1275 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1276 macro.
1277 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1278 * config/i386/tm-cygwin.h
1279 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1280 * config/powerpc/tm-linux.h
1281 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1282 (at_subroutine_call_instruction_target): Delete declaration.
1283 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1284 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1285 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1286
7be0c536
AC
1287 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1288 "struct bfd_section" and "struct bfd".
1289 * target.h (struct section_table): Ditto.
1290 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1291 * solib-svr4.c (elf_locate_base): Ditto.
1292 * pa64solib.c (dld_cache_t): Ditto.
1293 * objfiles.h (struct obj_section): Ditto.
1294 * objfiles.c (add_to_objfile_sections): Ditto.
1295 * exec.c (bfdsec_to_vmap): Ditto.
1296 (add_to_section_table): Ditto.
1297 (build_section_table): Ditto.
1298 * corelow.c (get_core_register_section): Ditto.
1299 * coffread.c (find_linenos): Ditto.
1300 * elfread.c (elf_interpreter): Delete #if0'd function.
1301
1302 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1303 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1304 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1305 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1306
1307 * arch-utils.h (generic_cannot_extract_struct_value_address):
1308 Delete declaration.
1309 * wince.c (_initialize_wince): Fix multi-line string.
1310 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1311
d8fe84e3
EZ
13122003-11-05 Elena Zannoni <ezannoni@redhat.com>
1313
1314 * top.c (execute_command): Fix broken logic for command execution
1315 while inferior is running in async mode.
1316
cbdfc7c0
MK
13172003-11-06 Mark Kettenis <kettenis@gnu.org>
1318
1319 * dwarf2-frame.c (execute_cfa_program): Mark register as
1320 REG_SAVED_REG for DW_CFA_register opcode.
1321
dac94105
MK
13222003-11-05 Mark Kettenis <kettenis@gnu.org>
1323
1324 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1325 %rsp, %rip and %eflags to match ABI-change.
1326
85bf2b91
JJ
13272003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1328
1329 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
77f091dd
RM
1330 (ia64_gdbarch_init): Don't bother calculating the os.
1331 Instead use the gdbarch_info struct and look at the osabi field.
1332 Also use gdbarch_list_lookup_by_info() to look for a
1333 candidate gdbarch.
85bf2b91 1334
cd31fb03
KB
13352003-11-05 Kevin Buettner <kevinb@redhat.com>
1336
1337 * frv-tdep.c (frv_register_byte): Delete.
1338 (frv_extract_return_value, frv_store_return_value)
1339 (frv_extract_struct_value_address): Don't call frv_register_byte().
1340 Convert to non-deprecated form.
1341 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1342 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1343 set_gdbarch_deprecated_store_return_value(), and
1344 set_gdbarch_deprecated_extract_struct_value_address() into
1345 non-deprecated forms.
1346
0a056982
AC
13472003-11-05 Andrew Cagney <cagney@redhat.com>
1348
1349 * mips-tdep.c (mips_dump_tdep): Do not print
1350 PRINT_EXTRA_FRAME_INFO.
1351 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1352 Rename PRINT_EXTRA_FRAME_INFO.
1353 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1354 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1355 (mips_print_extra_frame_info): Delete declaration.
1356 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1357
29e0a062
EZ
13582003-11-05 Elena Zannoni <ezannoni@redhat.com>
1359
1360 * coffread.c (coff_symtab_read): Remove passing of info parameter
1361 to prim_record_minimal_symbol_and_info.
1362
8af580fc
EZ
13632003-11-05 Elena Zannoni <ezannoni@redhat.com>
1364
1365 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1366 (decode_base_type): Delete ifdeffed out code.
1367
507836c0
AC
13682003-11-04 Andrew Cagney <cagney@redhat.com>
1369
1370 * symtab.c (find_active_alias): Delete function.
1371 (lookup_block_symbol): Delete alias code.
1372 * stabsread.c (resolve_live_range): Delete function.
1373 (add_live_range): Delete function.
1374 (resolve_symbol_reference): Delete function.
1375 (define_symbol): Delete live range and alias code.
1376 (scan_file_globals): Delete alias code.
1377 * symtab.h (SYMBOL_RANGES): Delete macro.
1378 (struct range_list): Delete structure.
1379 (struct symbol): Delete field "ranges".
1380 (SYMBOL_ALIASES): Delete macro.
1381 (struct alias_list): Delete structure.
1382 (struct symbol): Delete field "aliases".
1383
1083b3bc
MS
13842003-11-04 Michael Snyder <msnyder@redhat.com>
1385
77f091dd 1386 * MAINTAINERS: Remove myself as owner of breakpoints and
1083b3bc
MS
1387 of sparc/solaris.
1388
474e5826
CV
13892003-11-03 Corinna Vinschen <vinschen@redhat.com>
1390
1391 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1392 (sh_sh4al_dsp_register_name): Ditto.
1393 (sh4_nofpu_show_regs): Ditto.
1394 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1395 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1396
2160782c
AC
13972003-11-03 Andrew Cagney <cagney@redhat.com>
1398
1399 * bcache.c: Include "gdb_assert.h".
1400 (struct bcache): Add fields "expand_count" and
1401 "expand_hash_count".
1402 (expand_hash_table): Update the expand counts.
1403 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1404 on object sizes and hashes.
1405 * Makefile.in (bcache.o): Update dependencies.
1406
85302095
AC
14072003-11-03 Andrew Cagney <cagney@redhat.com>
1408
1409 * exec.c (xfer_memory): Eliminate xfer_fn.
1410
526eef89
KB
14112003-10-31 Kevin Buettner <kevinb@redhat.com>
1412
1413 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1414 (opcodes/frv-desc.h): Include.
1415 (iacc0h_regnum, iacc0l_regnum): Define.
1416 (last_spr_regnum, frv_num_regs): Update.
1417 (new_variant): Don't supply default names for holes in the SPRs.
1418 Supply names for iacc0h_regnum and iacc0l_regnum.
1419 (frv_register_type): Use symbolic constants first_fpr_regnum and
1420 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1421 builtin_type_int instead of builtin_type_int32.
1422 (frv_register_sim_regno): New function.
1423 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1424 * Makefile.in (gdb_sim_frv_h): Define.
1425 (frv-tdep.o): Update dependencies.
1426
9e815ec2
AC
14272003-10-31 Andrew Cagney <cagney@redhat.com>
1428
1429 * avr-tdep.c (avr_frame_this_id): Do not call
1430 deprecated_inside_entry_file.
1431 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1432 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1433 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1434 * arm-tdep.c (arm_prologue_this_id): Ditto.
1435 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1436
e372db49
JB
14372003-10-31 Jim Blandy <jimb@redhat.com>
1438
1439 * elfread.c (elf_symtab_read): Allocate correct number of tail
1440 elements to sectinfo structure. (Fix from Woody LaRue.)
1441
e8bcf01f
AC
14422003-10-31 Andrew Cagney <cagney@redhat.com>
1443
1444 * stack.c (return_command): Use get_frame_type, instead of
1445 CALL_DUMMY_HAS_COMPLETED.
1446 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1447 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1448
4c05fe53
MK
14492003-10-31 Mark Kettenis <kettenis@gnu.org>
1450
1451 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1452 explicitly specify size of array.
1453 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1454 TDEP->sc_num_regs.
1455
c8b91b89
AC
14562003-10-31 Andrew Cagney <cagney@redhat.com>
1457
1458 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1459 function.
1460 (s390_gdbarch_init): Set extract_struct_value_address.
1461 * arch-utils.c (generic_cannot_extract_struct_value_address):
1462 Delete function.
1463 * arch-utils.h (generic_cannot_extract_struct_value_address):
1464 Delete definition.
1465
fdfb6fc8
MK
14662003-10-31 Mark Kettenis <kettenis@gnu.org>
1467
1468 * i386-linux-nat.c (fetch_core_registers): Remove.
1469 (linux_elf_core_fns): Remove.
1470 (_initialize_i386_linux_nat): Remove.
1471
2f4950cd
AC
14722003-10-31 Andrew Cagney <cagney@redhat.com>
1473
1474 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1475 "exec.h".
1476 (exec_entry_point): New function.
1477 (enable_break): Create a "tmp_bfd_target", use that and
1478 entry_point_address when computing the relocation offset.
1479 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1480 * Makefile.in (solib-svr4.o): Update dependencies.
1481
bba2d28d
AC
14822003-10-31 Andrew Cagney <cagney@redhat.com>
1483
1484 * defs.h (XZALLOC): Define.
1485 * target.h (struct target_ops): Add "to_data";
1486 * bfd-target.h, bfd-target.c: New files.
1487 * Makefile.in (SFILES): Add "bfd-target.c".
1488 (COMMON_OBS): Add "bfd-target.o".
1489 (bfd-target.o): Specify dependencies.
1490 (bfd_target_h): Define.
1491 * defs.h (XZALLOC): Define.
1492
6066c3de
AC
14932003-10-31 Andrew Cagney <cagney@redhat.com>
1494
1495 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1496 adjust_breakpoint_address.
1497 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1498 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1499 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1500 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1501
4b8a223f
AC
15022003-10-31 Andrew Cagney <cagney@redhat.com>
1503
1504 * target.h (struct target_ops): Replace "to_read_partial" and
1505 "to_write_partial" with "to_xfer_partial". Update comments.
1506 * target.c (debug_to_write_partial): Delete function.
1507 (debug_to_xfer_partial): Replace debug_to_read_partial.
1508 (add_target, update_current_target, setup_target_debug): Set
1509 "to_xfer_partial" instead of "to_read_partial" and
1510 "to_write_partial".
1511 (default_xfer_partial): Replace "default_write_partial".
1512 (default_read_partial): Delete.
1513 (target_read_partial, target_write_partial): Call
1514 "to_xfer_partial".
1515 * remote.c (init_remote_ops): Set "to_xfer_partial".
1516 (init_remote_async_ops): Ditto.
1517 (remote_xfer_partial): Replace "remote_read_partial".
1518
66a72d25
MK
15192003-10-31 Mark Kettenis <kettenis@gnu.org>
1520
1521 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1522 registers in `fxsave' format.
1523 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1524
9a12a2a0
MK
15252003-10-30 Mark Kettenis <kettenis@gnu.org>
1526
e9f1aad5
MK
1527 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1528 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1529 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1530
bb489b3c
MK
1531 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1532 specify size of array.
1533 (i386_linux_init_abi): Remove initialization of
1534 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1535 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1536
da285bc4
MK
1537 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1538 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1539 core-regset.o.
1540
9a12a2a0
MK
1541 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1542 the ELF header.
1543
0e24ac5d
MK
15442003-10-29 Mark Kettenis <kettenis@gnu.org>
1545
6d6d8e9c
MK
1546 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1547 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1548 core-regset.o.
1549
25e60c9b
MK
1550 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1551
0e24ac5d
MK
1552 * corelow.c: Include "arch-utils.h", "regset.h" and
1553 "gdb_assert.h".
1554 (core_gdbarch): New variable.
1555 (sniff_core_bfd): Don't sniff if we have support for register sets
1556 in CORE_GDBARCH.
1557 (core_close): Reset CORE_GDBARCH.
1558 (core_open): Initialize CORE_GDBARCH.
1559 (get_core_register_section): Use register sets if they are
1560 supported by CORE_GDBARCH.
1561 (get_core_registers): Don't print error message if we have support
1562 for register sets in CORE_GDBARCH.
1563
0a0a4ac3
AC
15642003-10-29 Andrew Cagney <cagney@redhat.com>
1565
1566 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1567 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1568
7b097ae3
MK
15692003-10-29 Mark Kettenis <kettenis@gnu.org>
1570
1571 * objfiles.h (clear_objfile_data): New prototype.
1572 * objfiles.c (clear_objfile_data): New function.
1573 * symfile.c (reread_symbols): Clear per-objfile data.
1574
46f45a4a 15752003-10-28 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 1576
46f45a4a
JJ
1577 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1578 printf_unfiltered instead of printf_filtered for output messages.
1579 (add_symbol_file_command): Ditto.
1580 (reread_symbols): Ditto.
1581 (overlay_auto_command): Ditto.
1582 (overlay_manual_command): Ditto.
1583 (overlay_off_command): Ditto.
1584
2b026650
MK
15852003-10-27 Mark Kettenis <kettenis@gnu.org>
1586
1587 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1588 (gdbarch_from_bfd): New function.
1589 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1590 deprecated_select_gdbarch_hack.
1591 * arch-utils.h (gdbarch_from_bfd): New prototype.
1592
0bcad584 15932003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1594
1595 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1596 arch_info. Use warning instead of fprintf_filtered. Do not use
1597 deprecated bfd_printable_arch_mach.
1598
7f398216
KB
15992003-10-26 Kevin Buettner <kevinb@redhat.com>
1600
1601 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1602 Delete.
1603 (frv_register_type): Rename from frv_register_virtual_type. Add
1604 ``struct gdbarch *'' parameter.
1605 (frv_gdbarch_init): Delete calls to the following functions:
1606 set_gdbarch_deprecated_size(),
1607 set_gdbarch_deprecated_register_bytes(),
1608 set_gdbarch_deprecated_register_raw_size(),
1609 set_gdbarch_deprecated_max_register_raw_size(),
1610 set_gdbarch_deprecated_register_virtual_size(),
1611 set_gdbarch_deprecated_max_register_virtual_size(),
1612 set_gdbarch_deprecated_register_virtual_size(),
1613 set_gdbarch_deprecated_register_virtual_type().
1614 Add call to function set_gdbarch_register_type().
1615
bcf48cc7
MK
16162003-10-26 Mark Kettenis <kettenis@gnu.org>
1617
6c7de422
MK
1618 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1619 FDOFF_REGNUM): Remove defines.
1620 * win32-nat.c (do_child_fetch_inferior_registers): Include
1621 "i387-tdep.h".
3e685d41 1622 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1623 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1624 undefine I387_ST0_REGNUM.
1625
f783586b
MK
1626 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1627 * x86-64-tdep.c (x86_64_store_return_value): Use
1628 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1629
bcf48cc7
MK
1630 Change register numbers to enumartion values.
1631 * i386-tdep.h (enum i386_regnum): New.
1632 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1633 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1634 I386_ST0_REGNUM): Remove defines.
1635 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1636 I386_EDI_REGNUM): Remove defines.
1637
b6591e8b
AC
16382003-10-24 Andrew Cagney <cagney@redhat.com>
1639
1640 * target.c: Include "gdbcore.h".
1641 (get_target_memory, get_target_memory_unsigned): New functions.
1642 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1643 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1644 Use get_target_memory_unsigned.
1645 * Makefile.in (target.o): Update dependencies.
1646
5f724446
AC
16472003-10-24 Andrew Cagney <cagney@redhat.com>
1648
ce2826aa
AC
1649 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1650 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1651 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1652 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1653 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1654
5f724446
AC
1655 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1656 (can_run_code_for): Use the OO term "singleton".
1657
fc70c2a0
AC
16582003-10-23 Andrew Cagney <cagney@redhat.com>
1659
1660 * Makefile.in (stack.o): Add $(regcache_h).
1661 * stack.c: Include "regcache.h"
1662 (return_command): Rewrite. Use get_frame_id and
1663 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1664 about unhandled return-values.
1665 * value.h (set_return_value): Delete declaration.
1666 * values.c (set_return_value): Delete function.
1667
4afcc598
JJ
16682003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1669
1670 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1671 (pseudo_regs): Add comment regarding register stack registers.
1672 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1673 (floatformat_valid): New static routine.
1674 (floatformat_ia64_ext): Add name field and set up is_valid routine
1675 to floatformat_valid().
1676 (examine_prologue): For the previous cfm, use
1677 frame_unwind_register()
1678 if the cfm is not stored in a register-stack register. Save the
1679 previous cfm value in the prev_cfm field. Add debug output.
1680 (ia64_frame_this_id): Use frame_id_build_special() to also register
1681 the bsp. Add debug output.
1682 (ia64_sigtramp_frame_this_id): Ditto.
1683 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1684 registers and also add some checks for framelessness before accepting
1685 current register values for fields such as return address. For cfm,
1686 use the cached prev_cfm field if available. Add comment to explain
1687 PSR logic. Add debug output.
1688 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1689 as part of initialization.
1690 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1691 calculated. Cache the bsp and cfm values.
1692 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1693 instead of using ia64_frame_prev_register() which doesn't expect most
1694 registers to be saved. The saved values for bsp and sp
1695 can be taken from the cache. Add debug output.
1696 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1697 the bsp.
1698
6cfae0bc
JB
16992003-10-23 Jim Blandy <jimb@redhat.com>
1700
1701 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1702 architecture the current arch can run code for --- but not if it's
1703 a superset.
1704 (can_run_code_for): New function.
1705
fcd182f9
JW
17062003-10-22 James E Wilson <wilson@specifixinc.com>
1707
1708 * MAINTAINERS: Move myself from paper trail section back to write
1709 after approval section.
1710
4646aa9d
AC
17112003-10-22 Andrew Cagney <cagney@redhat.com>
1712
1713 * exec.h: New file.
1714 * win32-nat.c: Include "exec.h".
1715 * solib.c: Include "exec.h".
1716 * target.h (build_section_table): Delete declaration.
1717 * somsolib.c: Include "exec.h".
1718 (exec_ops): Delete extern declaration.
1719 * rs6000-nat.c: Update copyright. Include "exec.h".
1720 (exec_ops): Delete extern declaration.
1721 * pa64solib.c: Update copyright. Include "exec.h".
1722 (exec_ops): Delete extern declaration.
1723 * exec.c: Update copyright. Include "exec.h".
1724 * corelow.c: Update dependencies. Include "exec.h".
1725 * Makefile.in (exec_h): Define.
1726 (exec.o, somsolib.o): Update dependencies.
1727 (pa64solib.o, corelow.o): Update dependencies.
1728
0088c768
AC
17292003-10-22 Andrew Cagney <cagney@redhat.com>
1730
1731 * target.c: Include "gdb_assert.h" (target_read): Call
1732 "target_read_partial", not "target_write_partial".
1733 (default_read_partial, default_write_partial): New function.
1734 (target_read_partial, target_write_partial): Simplify, assume that
1735 there is always a read/write method.
1736 (update_current_target, add_target): Always set "to_read_partial"
1737 and "to_write_partial".
1738 (target_write, target_read): Fail on a zero byte transfer.
1739 * Makefile.in (target.o): Update dependencies.
1740 * target.h: Update copyright date.
1741 (target_object): Fix typo.
1742
e2d0e7eb
AC
17432003-10-22 Andrew Cagney <cagney@redhat.com>
1744
1745 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1746 multi-arch method, add "targ" parameter.
77f091dd 1747 (struct target_ops): Declare.
e2d0e7eb
AC
1748 * gdbarch.h, gdbarch.c: Re-generate.
1749 * Makefile.in (c-valprint.o): Update dependencies.
1750 * arch-utils.h: Update copyright.
1751 (convert_from_func_ptr_addr_identity): Declare.
1752 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1753 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1754 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1755 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1756 * infcall.c (find_function_addr, call_function_by_hand): Update.
1757 * c-valprint.c: Include "target.h".
1758 (print_function_pointer_address): Update.
1759
f1c07ab0
AC
17602003-10-22 Andrew Cagney <cagney@redhat.com>
1761
1762 * target.c (target_close): New function.
1763 (debug_to_close): Use "target_close".
1764 (push_target): Use "target_close".
1765 (unpush_target): Use "target_close".
1766 (pop_target): Use "target_close".
1767 * target.h (struct target_ops): Add "to_xclose".
1768 (target_open): Delete macro. Move comment to "to_open".
1769 (target_close): Replace macro with function that takes a target.
1770 * top.c (quit_target): Pass "current_target" to "target_close".
1771
5520a790
EZ
17722003-10-21 Elena Zannoni <ezannoni@redhat.com>
1773
1774 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1775 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1776 * symtab.h (lookup_minimal_symbol_text): Update.
1777 * breakpoint.c (create_overlay_event_breakpoint,
1778 create_longjmp_breakpoint): Update callers.
1779 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1780 * symtab.c (find_pc_sect_line): Ditto.
1781
caa92b73
AC
17822003-10-21 Andrew Cagney <cagney@redhat.com>
1783
1784 * target.c (errno): Delete extern declaration.
1785
aa2a9a3c
JJ
17862003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1787
1788 * ia64-tdep.c: Change all occurrences of
1789 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1790 (ia64_frame_prev_register): Minor whitespace change.
1791
4beec2b7
MC
17922003-10-20 Michael Chastain <mec@shout.net>
1793
1794 * config/djgpp/fnchange.lst: Add lines for:
1795 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1796 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1797 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1798 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1799 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1800 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1801 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1802
92ad9cd9
AC
18032003-10-20 Andrew Cagney <cagney@redhat.com>
1804
1805 * values.c (register_value_being_returned): Update comments. Use
1806 "gdbarch_return_value" when available.
1807 (using_struct_return): Ditto.
1808 (set_return_value): Ditto. Use "gdbarch_return_value" when
1809 available.. Print a warning, and not an error, when an unhandled
1810 return type is encountered.
1811 * infcmd.c: Include "gdb_assert.h".
1812 (print_return_value): When gdbarch_return_value_p, and using
1813 struct return, assume that the value is not available.
1814 * defs.h (return_value_convention): Define.
1815 * gdbarch.sh (gdbarch_return_value): New predicate method.
1816 * gdbarch.h, gdbarch.c: Re-generate
1817 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1818
198beae2
AC
18192003-10-20 Andrew Cagney <cagney@redhat.com>
1820
1821 * symtab.c: Replace "struct sec" with "struct bfd_section".
1822 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1823
24d693a6 18242003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1825
1826 * config/djgpp/fnchange.lst: Add lines for:
1827 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1828 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1829 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1830
21ad8dc3
MK
18312003-10-19 Mark Kettenis <kettenis@gnu.org>
1832
1833 * amd64fbsd-nat.c (fetch_inferior_registers,
1834 store_inferior_registers): Remove functions.
1835 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1836
cced5e27
MK
18372003-10-18 Mark Kettenis <kettenis@gnu.org>
1838
1839 Add NetBSD/amd64 native configuration:
1840 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1841 * amd64nbsd-tdep.c: New file.
1842 * amd64nbsd-nat.c: New file.
1843 * amd64bsd-nat.c: New file.
1844 * config/i386/nbsd64.mh: New file.
1845 * config/i386/nbsd64.mt: New file.
1846 * configure.host: Add x86_64-*-netbsd*.
1847 * configure.tgt: Add x86_64-*-netbsd*.
1848 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1849 New targets.
1850 * NEWS (New native configurations): Mention NetBSD/amd64.
1851
666de3fd
MC
18522003-10-17 Michael Chastain <mec@shout.net>
1853
1854 * config/djgpp/fnchange.lst: Remove dead lines for:
1855 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1856 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1857 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1858 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1859 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1860 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1861 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1862 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1863 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1864 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1865 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1866 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1867 gdb/config/sparc/tm-sparclite.h,
1868 gdb/gdbtk/generic/ChangeLog-2001,
1869 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1870 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1871 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1872 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1873 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1874 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1875 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1876 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1877 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1878 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1879 itcl/iwidgets3.0.0/demos/fileselectionbox,
1880 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1881 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1882 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1883 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1884 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1885 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1886 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1887 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1888 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1889 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1890 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1891 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1892 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1893 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1894 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1895 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1896 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1897 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1898 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1899 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1900 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1901 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1902 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1903 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1904 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1905 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1906 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1907 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1908 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1909 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1910 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1911 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1912 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1913 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1914 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1915 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1916 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1917 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1918 itcl/iwidgets3.0.0/demos/scrolledframe,
1919 itcl/iwidgets3.0.0/demos/scrolledhtml,
1920 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1921 itcl/iwidgets3.0.0/demos/scrolledtext,
1922 itcl/iwidgets3.0.0/demos/selectionbox,
1923 itcl/iwidgets3.0.0/demos/selectiondialog,
1924 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1925 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1926 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1927 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1928 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1929 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1930 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1931 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1932 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1933 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1934 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1935 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1936 itcl/iwidgets3.0.0/doc/selectionbox.n,
1937 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1938 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1939 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1940 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1941 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1942 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1943 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1944 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1945 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1946 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1947 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1948 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1949 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1950 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1951 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1952 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1953 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1954 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1955 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1956 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1957 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1958 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1959 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1960 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1961 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1962 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1963 itcl/iwidgets3.0.0/tests/selectionbox.test,
1964 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1965 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1966 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1967 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1968 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1969 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1970 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1971 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1972 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1973 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1974 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1975 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1976 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1977 tk/mac/tkMacProjects.sit.hqx.
1978
1e3ff5ad
AC
19792003-10-17 Andrew Cagney <cagney@redhat.com>
1980
8db32d44
AC
1981 * target.c (target_section_by_addr): New function.
1982 (do_xfer_memory): Use "target_section_by_addr".
1983 * target.h (target_section_by_addr): Declare.
1984
1e3ff5ad
AC
1985 * target.h (struct target_ops): Add "to_read_partial" and
1986 "to_write_partial", delete "to_query".
1987 (target_read_partial, target_write_partial): Declare.
1988 (target_read, target_write): Declare.
1989 (target_query): Delete macro.
1990 * target.c (target_read_partial): New function.
1991 (target_write_partial, target_read, target_write): New function.
1992 (update_current_target): Delete inheritance of "to_query". Add
1993 comments about "to_read_partial" and "to_write_partial".
1994 (debug_to_partial_read, debug_to_partial_write): New functions.
1995 (debug_to_query): Delete function.
1996 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1997 instead of "to_query".
1998 * remote.c (remote_read_partial): Replace "remote_query".
1999 (init_remote_ops): Set "to_read_partial" instead of "to_query".
2000 (init_remote_async_ops): Ditto.
2001 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
2002 "target_read_partial" instead of "target_query".
2003 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
2004 Use "target_read_partial" instead of "target_query".
2005
48c66725
JJ
20062003-10-17 Jeff Johnston <jjohnstn@redhat.com>
2007
2008 * frame.h (struct frame_id): Add new field: special_addr.
2009 (frame_id_build_special): New prototype.
2010 * frame.c (frame_id_build_special): New function.
2011 (frame_id_build): Change to call frame_id_build_special().
77f091dd
RM
2012 (frame_id_eq): Change to also test special_addr field.
2013 (frame_id_inner): Update comment.
48c66725 2014
7998dfc3
AC
20152003-10-17 Andrew Cagney <cagney@redhat.com>
2016
2017 * target.c (update_current_target): Perform the target cleanup.
2018 Put the target stack beneath the squashed "current_target".
2019 (add_target): Delete disabled call to "cleanup_target".
2020 (cleanup_target): Delete function.
2021 (push_target, unpush_target): Do not call "cleanup_target".
2022
9c04404e 20232003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
2024
2025 * target.c (target_stack): Change to a static target_ops.
2026 (update_current_target): Walk the "struct target_ops" stack.
2027 (pop_target, do_xfer_memory, target_info): Ditto.
2028 (find_target_beneath): Ditto.
2029 (push_target): Rewrite to use the "struct target_ops" stack.
2030 (unpush_target): Ditto.
2031 * target.h (struct target_stack_item): Delete definition.
2032 (target_stack): Delete declaration.
2033 (struct target_ops): Add field "beneath".
2034
c98a2b49 20352003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
2036
2037 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
2038 declaration.
2039 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
2040 (h8300_examine_prologue): Use h8300_normal_mode flag
2041 (h8300_gdbarch_init): Set architecture info for normal mode
2042
506fb367
DJ
20432003-10-16 Daniel Jacobowitz <drow@mvista.com>
2044
2045 * remote.c (remote_protocol_vcont): New variable.
2046 (set_remote_protocol_vcont_packet_cmd): New function.
2047 (show_remote_protocol_vcont_packet_cmd): New function.
2048 (init_all_packet_configs): Handle remote_protocol_vcont.
2049 (remote_vcont_probe): New function.
2050 (remote_vcont_resume): New function.
2051 (remote_resume): Use it.
2052 (remote_async_resume): Call remote_resume.
2053 (_initialize_remote): Add verbose-resume packet commands.
2054
65815ea1
AC
20552003-10-16 Andrew Cagney <cagney@redhat.com>
2056
2057 * infrun.c (handle_inferior_event): Add comment about
2058 "frame_id_inner" being too weak.
2059
40324f1b
EZ
20602003-10-16 Elena Zannoni <ezannoni@redhat.com>
2061
2062 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2063 second parameter, which is always null. Remove
2064 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2065 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2066 accordingly.
2067 * somsolib.c (som_solib_create_inferior_hook,
2068 som_solib_desire_dynamic_linker_symbols): Update callers.
2069 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
2070
20712003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
2072
2073 * remote-m32r-sdi.c : New file, interface to m32r on-chip
2074 debug interface, SDI (Scalable Debug Interface).
2075 * NEWS: Mention m32r SDI protocol was supported.
2076 * Makefile.in (remote-m32r-sdi.o): Add build rule.
2077 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2078
51931cbb
JJ
20792003-10-15 Jeff Johnston <jjohnstn@redhat.com>
2080
2081 * ia64-linux-tdep.c: Include gdbcore.h.
2082 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2083 (ia64_linux_sigcontext_register_addr): Find the address of the
2084 sigcontext area stored in the sigframe instead of using
77f091dd 2085 a magic offset constant.
51931cbb 2086
84e7fd53
AC
20872003-10-15 Andrew Cagney <cagney@redhat.com>
2088
2089 * remote.c (remote_search): Delete function.
2090 * target.h (target_search): Delete disabled macro.
2091 (struct target_ops): Delete disabled field "to_search".
2092
0f4d7c52
KB
20932003-10-14 Kevin Buettner <kevinb@redhat.com>
2094
2095 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2096 instead of deprecated_inside_entry_file().
2097
2e952408
CV
20982003-10-14 Corinna Vinschen <vinschen@redhat.com>
2099
2100 * sh-tdep.c: Fix copy/paste hangover in comment.
2101 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2102 mode.
2103 (sh3e_sh4_extract_return_value): Ditto.
2104
7e86466e
RH
21052003-10-13 Richard Henderson <rth@redhat.com>
2106
2107 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2108 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
2109 match c_val_print a bit closer.
2110
46a16dba
KB
21112003-10-13 Kevin Buettner <kevinb@redhat.com>
2112
2113 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2114 (frv_gdbarch_adjust_breakpoint_address): New function.
2115 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2116 method.
2117
76897487
KB
21182003-10-13 Kevin Buettner <kevinb@redhat.com>
2119
2120 * breakpoint.h (struct breakpoint): Add new member
2121 ``requested_address''.
2122 * breakpoint.c (breakpoint_adjustment_warning)
2123 (adjust_breakpoint_address): New static functions.
2124 (print_it_typical): Issue warning if breakpoint's address is different
2125 from its requested address.
2126 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2127 (breakpoint_re_set_one): Set breakpoint's
2128 ``requested_address'' field. Set ``address'' field to the
2129 result of calling adjust_breakpoint_address() on the requested
2130 address.
2131
a1131521
KB
21322003-10-13 Kevin Buettner <kevinb@redhat.com>
2133
2134 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2135 * gdbarch.h, gdbarch.c: Regenerate.
2136
6ce6d90f
MK
21372003-10-11 Mark Kettenis <kettenis@gnu.org>
2138
155c1d33
MK
2139 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2140 TDEP->sc_num_regs.
2141
8a96bc77
MK
2142 * i386fbsd-tdep.c: New file.
2143 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2144 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2145 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2146 i386bsd-tdep.c.
2147 (_initialize_i386fbsd_tdep): New function.
2148 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2149 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2150 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2151 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2152 TDEP->sc_num_regs.
2153 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2154 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2155 to initialize TDEP->sc_num_regs.
2156 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2157 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2158 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2159 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2160 FreeBSD ELF OS/ABI's here.
2161 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2162 (i386fbsd-tdep.o): New target.
2163 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2164 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2165
477f40d1
MK
2166 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2167 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2168 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2169 in initialization of TDEP->sc_num_regs.
2170
c6b33596
MK
2171 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2172 (x86_64_init_abi): Initialize regset_from_core_section if
2173 appropriate.
2174
8446b36a
MK
2175 * i386-tdep.c (i386_regset_from_core_section): New function.
2176 (i386_gdbarch_init): Initialize regset_from_core_section if
2177 appropriate.
2178 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2179
c783cbd6
MK
2180 * i386-tdep.h (struct regset): Declare opaque.
2181
6ce6d90f
MK
2182 * gdbarch.sh (regset_from_core_section): New method.
2183 (struct regset): Declare opaque.
2184 * gdbarch.c, gdbarch.h: Regenerated.
2185
b98ed7be
AM
21862003-10-11 Alan Modra <amodra@bigpond.net.au>
2187
2188 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2189 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2190 Correct test for pc within section.
2191
f6214256
MK
21922003-10-11 Mark Kettenis <kettenis@gnu.org>
2193
2194 * gdbarch.sh: Remove trailing whitepsace from comments.
2195
a8f4cde1
RM
21962003-10-08 Roland McGrath <roland@redhat.com>
2197
2198 * gcore.c (make_mem_sec): Function removed, folded into ...
2199 (gcore_create_callback): ... here. To omit a section, clear its
2200 SEC_LOAD bit rather than zeroing its size.
2201 Omit read-only sections only if they correspond to a known disk file.
2202 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2203
74276724
MS
22042003-10-10 Michael Snyder <msnyder@redhat.com>
2205
2206 * d10v-tdep.c: Fix typo in comment.
2207
e754ae69
AC
22082003-10-10 Andrew Cagney <cagney@redhat.com>
2209
2210 * rs6000-tdep.c (e500_store_return_value): Delete function.
2211 (e500_extract_return_value): Delete function.
2212 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2213 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2214 "ppc_sysv_abi_restore_return_value" where applicable.
2215 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2216 (ppc_sysv_abi_extract_return_value): Declare.
2217 (ppc_sysv_abi_broken_store_return_value): Declare.
2218 (ppc_sysv_abi_broken_extract_return_value): Declare.
2219 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2220 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2221 start of file.
2222 (do_ppc_sysv_return_value): New function.
2223 (ppc_sysv_abi_extract_return_value): New function.
2224 (ppc_sysv_abi_store_return_value): New function.
2225 (ppc_sysv_abi_broken_extract_return_value): New function.
2226 (ppc_sysv_abi_broken_store_return_value): New function.
2227 (ppc_sysv_abi_use_struct_convention): Call
2228 do_ppc_sysv_return_value.
2229
8d4ce20a
JB
22302003-10-10 J. Brobecker <brobecker@gnat.com>
2231
2232 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2233 to lookup the main function symbol.
2234
afce3d2a
CV
22352003-10-10 Corinna Vinschen <vinschen@redhat.com>
2236
2237 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2238 types correctly.
2239 (sh_push_dummy_call_fpu): Fix argument passing rules.
2240 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2241 float types.
2242 (sh3e_sh4_store_return_value): Ditto.
2243
7fe958be
EZ
22442003-10-10 Elena Zannoni <ezannoni@redhat.com>
2245
2246 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2247 comment.
2248
3f997a97
CV
22492003-10-10 Corinna Vinschen <vinschen@redhat.com>
2250
2251 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2252 more readable code. Accomodate passing of bitfields.
2253
8be9034a
AC
22542003-10-10 Andrew Cagney <cagney@redhat.com>
2255
2256 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2257 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2258 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2259 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2260 (ppc64_sysv_abi_push_dummy_call): New function.
2261 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2262 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2263 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2264
85a453d5
KI
22652003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2266
2267 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2268 * README: Ditto.
2269 * d10v-tdep.c: Ditto.
2270 * h8300-tdep.c: Ditto.
2271 * remote-e7000.c: Ditto.
2272 * remote-hms.c: Ditto.
2273 * ser-e7kpc.c: Ditto.
2274 * sh-stub.c: Ditto.
2275 * sh-tdep.c: Ditto.
2276 * sh-tdep.h: Ditto.
2277 * sh3-rom.c: Ditto.
2278 * sh64-tdep.c: Ditto.
2279 * top.c: Ditto.
2280 * wince.c: Ditto.
2281 * config/d10v/d10v.mt: Ditto.
2282 * config/sh/embed.mt: Ditto.
2283 * config/sh/linux.mt: Ditto.
2284 * config/sh/tm-linux.h: Ditto.
2285 * config/sh/tm-sh.h: Ditto.
2286 * config/sh/wince.mt: Ditto.
2287
221c12ff
AC
22882003-10-09 Andrew Cagney <cagney@redhat.com>
2289
2290 * ppc-tdep.h (struct type): Declare opaque.
2291 * x86-64-tdep.h (struct regcache): Declare opaque.
2292 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2293 coding style.
2294
ef5200c1
AC
22952003-10-09 Andrew Cagney <cagney@redhat.com>
2296
2297 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2298 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2299 (SOFTWARE_SINGLE_STEP_P): Ditto.
2300 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2301 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2302 (SOFTWARE_SINGLE_STEP_P): Ditto.
2303 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2304 software_single_step to rs6000_software_single_step.
a8f4cde1 2305
9644bbdd
AC
23062003-10-09 Andrew Cagney <cagney@redhat.com>
2307
2308 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2309
db72fa6b
MS
23102003-10-09 Michael Snyder <msnyder@redhat.com>
2311
f3efb16c
MS
2312 * frame.h: Fix typo in comment.
2313 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2314 * d10v-tdep.c: Random whitespace/comment tweaks.
2315
9a5cef92
EZ
23162003-10-09 Elena Zannoni <ezannoni@redhat.com>
2317
2318 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2319 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2320 on stack.
a8f4cde1 2321
9a5cef92
EZ
2322 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2323 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2324 in detail.
a8f4cde1 2325
0f317a0c
DJ
23262003-10-09 Daniel Jacobowitz <drow@mvista.com>
2327
2328 * remote-mips.c (mips_initialize): Remove unneeded call to
2329 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2330
bbab2f46
DJ
23312003-10-09 Daniel Jacobowitz <drow@mvista.com>
2332
2333 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2334 a memory pointer.
2335
550950b8
JJ
23362003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2337
2338 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2339 for any lwp we resume.
2340 (running_callback): Add lwps that have pending status events
2341 against them to be considered running.
2342
15c69bc7
KI
23432003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2344
2345 * m32r-tdep.c : Include "dis-asm.h".
2346 * Makefile.in (m32r-tdep.o): Update dependencies.
2347
51065942
JB
23482003-10-06 J. Brobecker <brobecker@gnat.com>
2349
2350 * completer.h (get_gdb_completer_word_break_characters): Delete.
2351 * completer.c: include language.h.
2352 (gdb_completer_word_break_characters): Delete.
2353 (get_gdb_completer_word_break_characters): Delete.
2354 (location_completer): Use the word break characters of the current
2355 language.
2356 (complete_line): Likewise.
2357 (line_completion_function): Likewise.
2358 (skip_quoted_chars): Likewise.
2359 * Makefile.in (completer.o): Add dependency on language.h.
2360 * top.c (init_main): Set the readline word break characters
2361 to GDB's default word break characters.
2362
6084f43a
JB
23632003-10-06 J. Brobecker <brobecker@gnat.com>
2364
2365 * language.h (language_defn): new field, la_word_break_characters.
2366 * language.c (unknown_language_defn): Set new field to
2367 default_word_break_characters.
2368 (auto_language_defn): Likewise.
2369 (local_language_defn): Likewise.
2370 * ada-lang.c (ada_language_defn): Likewise.
2371 * c-lang.c (c_language_defn): Likewise.
2372 (cplus_language_defn): Likewise.
2373 (asm_language_defn): Likewise.
2374 (minimal_language_defn): Likewise.
2375 * f-lang.c (f_language_defn): Likewise.
2376 * jv-lang.c (java_language_defn): Likewise.
2377 * m2-lang.c (m2_language_defn): Likewise.
2378 * objc-lang.c (objc_language_defn): Likewise.
2379 * p-lang.c (pascal_language_defn): Likewise.
2380 * scm-lang.c (scm_language_defn): Likewise.
2381
944fcfab
AC
23822003-10-06 Andrew Cagney <cagney@redhat.com>
2383
2384 * ppc-sysv-tdep.c: Re-indent.
2385
9f0a5303
JB
23862003-10-06 J. Brobecker <brobecker@gnat.com>
2387
2388 * language.h (default_word_break_characters): Add prototype.
2389 * language.c (default_word_break_characters): New function.
2390
7270b6ed
AS
23912003-10-06 Andreas Schwab <schwab@suse.de>
2392
2393 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2394 with %eax.
2395
a5d61f66
AC
23962003-10-06 Andrew Cagney <cagney@redhat.com>
2397
2398 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2399 "h8500-tdep.c".
2400 (z8k-tdep.o): Delete custom build rule.
2401
28a86f5c
AC
24022003-10-06 Andrew Cagney <cagney@redhat.com>
2403
1bfd8a83
AC
2404 * Makefile.in: Update all dependencies.
2405
17144ef8
AC
2406 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2407 No longer list PA as as obsolete candidate. List m32r as
2408 broken instead of obsolete.
a8f4cde1 2409
a5679ae5
AC
2410 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2411 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2412 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2413 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2414 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2415 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2416 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2417 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2418 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2419 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2420 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2421 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2422 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2423 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2424 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2425 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2426 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2427 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2428 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2429 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2430 * config/z8k/z8k.mt: Ditto.
2431
4a8269c0
AC
2432 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2433 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2434 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2435 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2436 sparclite were removed.
2437 * configure.host, configure.tgt: Remove corresponding tuples.
2438
41989fcd
AC
2439 * breakpoint.c, breakpoint.h: Remove obsolete code.
2440 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2441 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2442 * stabsread.h, xcoffread.c: Ditto.
2443
28a86f5c
AC
2444 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2445 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2446 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2447 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2448
4efdaa0d
DL
24492003-10-06 David Lecomber <dsl@sources.redhat.com>
2450
2451 * f-valprint.c: Reformatting
2452
ae53de43
MK
24532003-10-06 Mark Kettenis <kettenis@gnu.org>
2454
a8bb57e7
MK
2455 * x86-64-tdep.c: Remove duplicate comment.
2456
ae53de43
MK
2457 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2458 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2459 names for return values. This fixes a bug since we looked at %rbx
2460 instead of %rdx.
2461
473f17b0
MK
24622003-10-05 Mark Kettenis <kettenis@gnu.org>
2463
2c261fae
MK
2464 * x86-64-tdep.c: Include "regset.h".
2465
473f17b0
MK
2466 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2467 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2468 sizeof_fpregset.
2469 * i386-tdep.c: Include "regset.h".
2470 (i386_supply_gregset): New function.
2471 (i386_supply_fpregset): New function.
2472 (i386_gdbarch_init): Initialze register set-related members of
2473 TDEP.
2474 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2475 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2476
afd48b75
AC
24772003-10-03 Andrew Cagney <cagney@redhat.com>
2478
2479 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2480 set extract_return_value, store_return_value and
2481 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2482 ppc64_sysv_abi_store_return_value and
2483 ppc64_sysv_abi_use_struct_convention.
2484 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2485 (ppc64_sysv_abi_store_return_value): Declare.
2486 (ppc64_sysv_abi_use_struct_convention): Declare.
2487 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2488 (ppc64_sysv_abi_extract_return_value): New function.
2489 (ppc64_sysv_abi_store_return_value): New function.
2490 (ppc64_sysv_abi_use_struct_convention): New function.
2491 (ppc64_sysv_abi_return_value): New function.
2492
9b540880
AC
24932003-10-03 Andrew Cagney <cagney@redhat.com>
2494
2495 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2496 convert a descriptor to a function when it's in the ".opd"
2497 section.
2498
8748518b
CV
24992003-10-03 Corinna Vinschen <vinschen@redhat.com>
2500
2501 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2502 reg_size to keep GCC silent.
2503
0fd85043
CV
25042003-10-03 Corinna Vinschen <vinschen@redhat.com>
2505
2506 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2507 base for DW_EH_PE_textrel encodings.
2508 (read_encoded_value): Add a DW_EH_PE_textrel case.
2509 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2510 section.
2511
37b517aa
MK
25122003-10-03 Mark Kettenis <kettenis@gnu.org>
2513
2514 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2515
12c266ea
AC
25162003-10-02 Andrew Cagney <cagney@redhat.com>
2517
2518 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2519 REGISTER_RAW_SIZE.
2520 * gdbarch.h, gdbarch.c: Re-generate.
2521 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2522 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2523 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2524 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2525 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2526 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2527 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2528 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2529 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2530 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2531 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2532 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2533 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2534 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2535 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2536 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2537
78ba4af6
JB
25382003-10-02 Jim Blandy <jimb@redhat.com>
2539
2540 * dwarf2read.c (struct die_info): Doc fix.
2541
617daa0e
CV
25422003-10-02 Corinna Vinschen <vinschen@redhat.com>
2543
2544 * sh-tdep.c: Running thru gdb_indent.sh.
2545
e5e33cd9
CV
25462003-10-02 Corinna Vinschen <vinschen@redhat.com>
2547
2548 * sh-tdep.c (sh_justify_value_in_reg): New function.
2549 (sh_stack_allocsize): Ditto.
2550 (flt_argreg_array): New array used for floating point argument
2551 passing.
2552 (sh_init_flt_argreg): New function.
a8f4cde1 2553 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2554 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2555 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2556 Fix argument passing strategy.
2557 (sh_push_dummy_call_nofpu): Ditto.
2558
5fe830e4
AC
25592003-10-01 Andrew Cagney <cagney@redhat.com>
2560
2561 * value.h (register_value_being_returned): Declare. Replace
2562 "value_being_returned".
2563 * infcall.c (call_function_by_hand): Use
2564 register_value_being_returned.
2565 * infcmd.c (print_return_value): Call
2566 "register_value_being_returned", handle struct return locally.
2567 * values.c (register_value_being_returned): New function. Replace
2568 "value_being_returned".
a8f4cde1 2569
5fe830e4 25702003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2571
2572 * linux-proc.c (linux_do_registers): New function.
2573 (linux_make_note_section): Use linux_do_registers in case of
2574 single threaded inferior programs.
2575
64f395bf
AC
25762003-10-01 Andrew Cagney <cagney@redhat.com>
2577
2578 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2579 use STRUCT_ADDR. When not using "struct return convention", pass
2580 "0" to "value_being_returned". Add FIXMEs.
2581 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2582 value_being_returned. Add comments.
2583 * values.c (value_being_returned): Add fixme.
2584 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2585 (hppa_value_returned_from_stack): Add FIXME.
2586
639d11d3
DC
25872003-09-30 David Carlton <carlton@kealia.com>
2588
2589 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2590 'has_children' and 'next' by 'child' and 'sibling'.
2591 (read_comp_unit): Rework algorithm, breaking body into
2592 read_die_and_children and read_die_and_siblings.
2593 (read_die_and_children, read_die_and_siblings): New.
2594 (read_full_die): Add 'has_children' argument; set it instead of
2595 the die's 'has_children' field. Minor formatting cleanup.
2596 (free_die_list): Use die->child and die->sibling instead of
2597 die->next.
2598 (dump_die_list): Ditto.
2599 (sibling_die): Use die->sibling.
2600 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2601 'has_children' and 'next' fields.
a8f4cde1
RM
2602 (process_die, read_file_scope, read_func_scope)
2603 (read_lexical_block_scope, read_structure_scope)
2604 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2605 (read_namespace, read_subroutine_type, dump_die): Ditto.
2606
5bffac25
AC
26072003-09-30 Andrew Cagney <cagney@redhat.com>
2608
2609 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2610 to 224, not 220.
2611
f30992d4
AC
26122003-09-30 Andrew Cagney <cagney@redhat.com>
2613
2614 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2615 REGISTER_VIRTUAL_SIZE.
2616 * gdbarch.h, gdbarch.c: Regenerate.
2617 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2618 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2619 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2620
2e092625
AC
26212003-09-29 Andrew Cagney <cagney@redhat.com>
2622
2623 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2624 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2625 * gdbarch.h, gdbarch.c: Regenerate.
2626 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2627 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2628
2629 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2630 * remote-vxmips.c (vx_read_register): Ditto.
2631 * remote-vx68.c (vx_read_register): Ditto.
2632 * gnu-nat.c (inf_validate_procs): Ditto.
2633
7a5dd6ee
JB
26342003-09-29 J. Brobecker <brobecker@gnat.com>
2635
2636 * infcall.c (call_function_by_hand): Fix build failure
2637 introduced in the previous change to this file.
2638
1fe43d45
AC
26392003-09-29 Andrew Cagney <cagney@redhat.com>
2640
2641 * NEWS: Mention Objective-C.
2642
e28a332c
JG
26432003-09-29 Jerome Guitton <guitton@act-europe.fr>
2644
2645 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2646 test if the register has been saved on the stack.
2647 (arm_scan_prologue_cache): When analysing the instruction
2648 "str lr, [sp, #-4]", save the address where lr has been stored.
2649
9ff63c35
AC
26502003-09-28 Andrew Cagney <cagney@redhat.com>
2651
7f5f525d
AC
2652 * frame.c (frame_read_unsigned_register): Delete function.
2653 * frame.h (frame_read_unsigned_register): Delete declaration.
2654 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2655 get_frame_register_unsigned.
2656 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2657 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2658 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2659
7f5f525d
AC
2660 * frame.h (frame_read_register): Delete declaration.
2661 * frame.c (frame_read_register): Delete function.
2662 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2663 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2664 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2665 * mips-tdep.c (mips_register_to_value): Ditto.
2666 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2667 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2668
2669 * frame.c (frame_read_signed_register): Delete function.
2670 (frame_read_unsigned_register): Update comments.
2671 * frame.h (frame_read_signed_register): Delete declaration.
2672 * h8300-tdep.c (h8300_print_register): Use
2673 get_frame_register_signed.
2674 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2675
9ff63c35
AC
2676 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2677 Rename VALUE_RETURNED_FROM_STACK.
2678 * infcmd.c (print_return_value): Update.
2679 * infcall.c (call_function_by_hand): Update.
2680
41d041d6
MK
26812003-09-28 Mark Kettenis <kettenis@gnu.org>
2682
2683 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2684 regcache argument and reverse the order of the other two
2685 arguments. Remove local regcache variable. Determine
2686 architecture from REGCACHE. Update comments.
2687 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2688 reverse the order of the other two arguments. Remove local
2689 regcache variable. Determine architecture from REGCACHE. Update
2690 comments.
2691 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2692 prototypes. Update comments.
2693 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2694 comment.
2695 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2696 Update.
2697 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2698 * i386-interix-nat.c (supply_fpregset): Update.
2699 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2700 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2701 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2702 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2703 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2704 Update.
2705 * i386obsd-tdep.c (fetch_core_registers): Update.
2706 * i386v4-nat.c (supply_fpregset): Update.
2707 * x86-64-linux-nat.c (supply_fpregset): Update.
2708 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2709
1cb97e17
MK
27102003-09-27 Mark Kettenis <kettenis@gnu.org>
2711
5716833c
MK
2712 * i386-tdep.h: Put opaque declarations in alphabetical
2713 order. Remove spurious whitespace.
2714 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2715 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2716 * i386-tdep.c (MM0_REGNUM): Remove define.
2717 (i386_mmx_regnum_p): Add gdbarch argument.
2718 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2719 Rewrite using new macro definitions for FPU/SSE registers.
2720 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2721 definitions from i387-tdep.h.
2722 (i386_register_name): Update.
2723 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2724 new macro definitions for FPU/SSE registers.
2725 (i386_extract_return_value): Determine whether floating-point
2726 registers are present by examining REGCACHE's architecture.
2727 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2728 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2729 FPU/SSE registers.
2730 (i386_register_type): Update.
2731 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2732 definitions for FPU registers. Use REGCACHE's architecture to
2733 determine the appropriate register numbers.
2734 (i386_pseudo_register_read, i386_pseudo_register_write,
2735 i386_register_reggroup_p): Update.
2736 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2737 TDEP->mm0_regnum.
2738 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2739 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2740 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2741 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2742 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2743 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2744 *' to `void *'.
2745 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2746 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2747 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2748 definitions for FPU/SSE registers.
2749 (FXSAVE_MXCSR_ADDR): New define.
2750 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2751 TDEP->mm0_regnum.
2752 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2753 (I387_ST0_REGNUM): Define.
2754
41d35cb0
MK
2755 * regcache.h (get_regcache_arch): New prototype.
2756 * regcache.c (get_regcache_arch): New function.
2757
54e74f72
MK
2758 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2759 whitespace.
2760
1cb97e17
MK
2761 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2762 Initialize using ARRAY_SIZE.
2763
0968aa8c
AC
27642003-09-27 Andrew Cagney <cagney@redhat.com>
2765
2766 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2767 "init_frame_pc_default".
2768 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2770 * vax-tdep.c (vax_gdbarch_init): Update.
2771 * v850-tdep.c (v850_gdbarch_init): Update.
2772 * sh64-tdep.c (sh64_gdbarch_init): Update.
2773 * s390-tdep.c (s390_gdbarch_init): Update.
2774 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2775 * mcore-tdep.c (mcore_gdbarch_init): Update.
2776 * h8300-tdep.c (h8300_gdbarch_init): Update.
2777 * cris-tdep.c (cris_gdbarch_init): Update.
2778 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2779
54c84734
MK
27802003-09-26 Mark Kettenis <kettenis@gnu.org>
2781
2782 * regset.h: New file.
2783 * Makefile.in (regset_h): Add.
2784
1b1d3794
AC
27852003-09-25 Andrew Cagney <cagney@redhat.com>
2786
2787 * frame.h (deprecated_frame_saved_regs): Rename
2788 get_frame_saved_regs.
2789 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2790 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2791 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2792 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2793 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2794
e6beb428
AC
27952003-09-25 Andrew Cagney <cagney@redhat.com>
2796
2797 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2798 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2799 and Java.
2800 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2801 arm*-*-* do not use the new frame code.
2802
710122da
DC
28032003-09-25 David Carlton <carlton@kealia.com>
2804
2805 * c-exp.y: Remove 'register' declarations.
2806 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2807
79c2c32d
DC
28082003-09-25 David Carlton <carlton@kealia.com>
2809
2810 * c-exp.y: Include cp-support.h. Add qualified_type.
2811 (yylex): Delete nested type hack; add comments.
2812 * cp-namespace.c (cp_lookup_nested_type): New function.
2813 * cp-support.h: Declare cp_lookup_nested_type.
2814 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2815 instead of value_struct_elt_for_reference.
2816 * valops.c: Include cp-support.h.
2817 (value_aggregate_elt): New function.
2818 (value_namespace_elt): Ditto.
2819 (value_struct_elt_for_reference): Make static.
2820 * value.h: Delete declaration of value_struct_elt_for_reference;
2821 add declaration for value_aggregate_elt.
2822 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2823 (valops.o): Ditto.
2824
898c62f5
DJ
28252003-09-25 Daniel Jacobowitz <drow@mvista.com>
2826
2827 * stack.c: Include "reggroups.h".
2828 (frame_info): Only display registers in all_reggroup.
2829 * Makefile.in (stack.o): Update dependencies.
2830
28cd8767
JG
28312003-09-25 Jerome Guitton <guitton@act-europe.fr>
2832
2833 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2834 "add ip, sp #n" in the prologue.
2835 (arm_scan_prologue): Ditto.
2836
a4ab2b5d
JG
28372003-09-25 Jerome Guitton <guitton@act-europe.fr>
2838
2839 * MAINTAINERS (write after approval): Add myself.
2840
3f244638
AS
28412003-09-25 Andreas Schwab <schwab@suse.de>
2842
2843 * m68k-tdep.c: Include "dwarf2-frame.h".
2844 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2845 * Makefile.in (m68k-tdep.o): Update dependencies.
2846
1c0159e0
CV
28472003-09-25 Corinna Vinschen <vinschen@redhat.com>
2848
2849 * sh-tdep.c (struct frame_extra_info): Remove.
2850 (struct sh_frame_cache): New structure.
2851 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2852 (GET_TARGET_REG): Ditto but target register.
2853 (GET_PUSHED_REG): Remove.
2854 (IS_MOV_ARG_TO_REG): New macro.
2855 (IS_MOV_ARG_TO_IND_R14): New macro.
2856 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2857 (IS_MOVW_PCREL_TO_REG): New macro.
2858 (IS_MOVL_PCREL_TO_REG): New macro.
2859 (IS_SUB_REG_FROM_SP): New macro.
2860 (IS_ARG_MOV): Remove.
2861 (IS_MOV_TO_R14): Remove.
2862 (IS_RESTORE_FP): New macro.
2863 (IS_RTS): New macro.
2864 (IS_LDS): New macro.
2865 (IS_MOV_FP_SP): New macro.
2866 (IS_ADD_REG_TO_FP): New macro.
2867 (IS_ADD_IMM_FP): New macro.
2868 (sh_skip_prologue_hard_way): Remove.
2869 (sh_saved_pc_after_call): Remove.
2870 (sh_frame_chain): Remove.
2871 (sh_find_callers_reg): Remove.
a8f4cde1 2872 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2873 (sh_fp_frame_init_saved_regs): Remove.
2874 (sh_init_extra_frame_info): Remove.
2875 (sh_analyze_prologue): New function.
2876 (sh_skip_prologue): Remove deprecated code. Rely on new function
2877 sh_analyze_prologue when after_prologue fails.
2878 (sh_frame_saved_pc): Remove.
2879 (sh_alloc_frame_cache): New function.
2880 (sh_frame_cache): Ditto.
2881 (sh_frame_prev_register): Ditto.
2882 (sh_frame_this_id): Ditto.
2883 (sh_frame_unwind): New structure defining the heuristic frame
2884 sniffer interface.
2885 (sh_frame_sniffer): New function.
2886 (sh_unwind_sp): Ditto.
2887 (sh_unwind_pc): Ditto.
2888 (sh_unwind_dummy_id): Ditto.
2889 (sh_frame_base_address): Ditto.
2890 (sh_frame_base): New structure defining new frame base code.
2891 (sh_in_function_epilogue_p): New function.
2892 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2893 code and to call all new code instead. Initialize dwarf2 and
2894 heuristic frame sniffer.
2895
5f9769d1
PH
28962003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2897
a8f4cde1
RM
2898 * parser-defs.h (struct exp_descriptor): New definition, containing
2899 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2900 evaluating expressions.
2901 (exp_descriptor_standard): Declare new variable.
2902 (print_subexp): Make global and declare here (from expprint.c).
2903 (dump_subexp): Ditto.
2904 (dump_subexp_body_standard): Declare.
2905 (operator_length_standard): Declare.
2906 (op_name_standard): Declare.
2907 (print_subexp): Declare.
2908 (print_subexp_standard): Declare.
2909
2910 * language.h (struct language_defn): Add la_exp_desc field to hold
2911 pointer to table for language-specific operators.
2912 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2913
2914 * parse.c (operator_length): Move most code to new
5f9769d1 2915 operator_length_standard function. Use language-specific information.
a8f4cde1 2916 (operator_length_standard): New function taking most code from
5f9769d1
PH
2917 operator_length.
2918 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2919
2920 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2921 and OP_EXTENDED_LAST.
a8f4cde1
RM
2922
2923 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2924 Make global; remove static declaration.
2925 Move most code to print_subexp_standard.
a8f4cde1 2926 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2927 print_subexp.
2928 (op_name): Add expression to argument signature.
a8f4cde1 2929 Use langauge-specific op_name.
5f9769d1
PH
2930 Move most code to op_name_standard.
2931 (op_name_standard): New function, containing code formerly in op_name.
2932 (dump_subexp): Use new version of op_name function.
2933 Use language-specific dump_subexp_body, and move most existing code to
2934 dump_subexp_body_standard.
2935 (dump_raw_expression): Use new op_name interface.
2936 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2937 (dump_subexp_body_standard): New function, containing code formerly
2938 in dump_subexp_body.
a8f4cde1 2939
5f9769d1
PH
2940 * language.c (unknown_language): Add default la_exp_desc field and
2941 remove evaluate_exp field.
2942 (auto_language): Ditto.
2943 (local_language): Ditto.
2944 * f-lang.c (f_language_defn): Ditto.
2945 * c-lang.c (c_language_defn): Ditto.
2946 (cplus_language_defn): Ditto.
2947 (asm_language_defn): Ditto.
2948 (minimal_language_defn): Ditto.
2949 * p-lang.c (pascal_language_defn): Ditto.
2950 * m2-lang.c (m2_language_defn): Ditto.
2951 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2952
2953 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2954 Java-specific expression evaluator.
2955 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2956 field.
a8f4cde1 2957 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2958 Scheme-specific expression evaluator.
2959 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2960 field.
2961 * objc-lang.c (print_object_command): Take evaluate_exp from the
2962 la_exp_desc field.
a8f4cde1 2963
5f9769d1 2964 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2965
2966 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2967 la_exp_desc's type.
2968 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2969
24daaebc
PH
29702003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2971
2972 * parser-defs.h (operator_length): Declare.
a8f4cde1 2973
24daaebc
PH
2974 * parse.c (length_of_subexp): Use operator_length to get operator
2975 lengths and arities for operators.
2976 Move most code to new operator_length function.
a8f4cde1 2977 (operator_length): New function absorbing most code from
24daaebc
PH
2978 length_of_subexp.
2979 (prefixify_subexp): Remove large case and use operator_length instead.
2980 (parse_exp_1): Use renamings:
a8f4cde1 2981 dump_prefix_expression => dump_raw_expression and
24daaebc 2982 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2983
24daaebc
PH
2984 * expression.h (dump_prefix_expression): Rename to ...
2985 (dump_raw_expression): New name.
2986 (dump_postfix_expression): Rename to ...
2987 (dump_prefix_expression): New name.
a8f4cde1 2988
24daaebc
PH
2989 * expprint.c (dump_subexp): Make global. Add comment.
2990 Move most existing code to dump_subexp_body.
2991 (dump_subexp_body): New function.
2992 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2993 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2994 work before the expression is prefixified.
2995 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2996 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2997 that's what it does.
a8f4cde1 2998 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2999 prefixified expression.
3000 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 3001
8c2957c4
JB
30022003-09-22 Jim Blandy <jimb@redhat.com>
3003
3004 * dwarf2read.c (read_array_type): When building the type for an
3005 array of unspecified length, make sure to choose the upper bound
3006 so that the array's total length comes out to be zero --- that's
3007 how we represent such arrays.
3008
592e3010
MC
30092003-09-22 Michael Chastain <mec@shout.net>
3010
3011 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
3012
365c70b1
JJ
30132003-09-22 Jeff Johnston <jjohnstn@redhat.com>
3014
3015 * top.c (quit_force): Fix indirect call to quit_target so
3016 a struct qt_args pointer is passed.
3017
5d6eb653
AC
30182003-09-22 Andrew Cagney <cagney@redhat.com>
3019
3020 * arch-utils.h (init_frame_pc_noop): Delete declaration.
3021 * arch-utils.c (init_frame_pc_noop): Delete function.
3022 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3023 "init_frame_pc".
3024 * mips-tdep.c (mips_gdbarch_init): Ditto.
3025 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3026 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
3027 declaration.
3028 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3029 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
3030 declaration.
3031 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3032
b222a67f
AG
30332003-09-22 Anthony Green <green@redhat.com>
3034
3035 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
3036 declaration.
3037
d5b5ac79
AC
30382003-09-20 Andrew Cagney <cagney@redhat.com>
3039
deafb061
AC
3040 * breakpoint.c: Eliminate ARGSUSED.
3041 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
3042 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
3043 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
3044 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
3045 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
3046 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
3047 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
3048 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
3049 * wince.c, remote-vx.c: Ditto.
3050
d5b5ac79
AC
3051 * cli/cli-script.c: Remove "register" attributes.
3052 * config/pa/tm-hppa.h: Ditto.
3053 * cli/cli-decode.c: Ditto.
3054 * cli/cli-cmds.c: Ditto.
3055
c6316faa
AC
30562003-09-19 Andrew Cagney <cagney@redhat.com>
3057
3058 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
3059 DEPRECATED_NPC_REGNUM.
3060 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
3061
f4f99b11
CF
30622003-09-19 Christopher Faylor <cgf@redhat.com>
3063
3064 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3065
1708f284
JB
30662003-09-19 Jim Blandy <jimb@redhat.com>
3067
3068 * macrotab.c (macro_include): Use the correct comparison to find
3069 the appropriate place for this inclusion in the list.
3070
b9fbf434
AC
30712003-09-19 Andrew Cagney <cagney@redhat.com>
3072
3073 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3074 (DEPRECATED_HPUX_TEXT_END): Define.
3075 (deprecated_hpux_text_end): Declare.
3076 (struct target_ops): Declare opaque.
3077 * hppah-nat.c (text_end): Make static.
3078 (deprecated_hpux_text_end): New function.
3079 * exec.c (text_end): Delete global variable.
3080 (NEED_TEXT_START_END): Do not define.
3081 (exec_file_attach): Replace code computing "text_end" code with
3082 call to DEPRECATED_HPUX_TEXT_END.
3083
5b03f266
AC
30842003-09-19 Andrew Cagney <cagney@redhat.com>
3085
3086 * utils.c (align_up, align_down): New functions.
3087 * defs.h (align_up, align_down): Declare.
3088 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3089 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3090 and "align_down".
3091 (round_up, round_down): Delete functions.
3092 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3093 "align_down".
3094 (ROUND_DOWN, ROUND_UP): Delete macros.
3095 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3096 * h8300-tdep.c: Replace "round_up" and "round_down" with
3097 "align_up" and "align_down".
3098 (round_up, round_down): Delete macros.
3099 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3100 "align_down".
3101 (ROUND_UP, ROUND_DOWN): Delete macros.
3102
51db5742
JB
31032003-09-18 J. Brobecker <brobecker@gnat.com>
3104
3105 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3106 hard-coded constant. Use the proper machine name instead.
3107
77949794
AC
31082003-09-17 Andrew Cagney <cagney@redhat.com>
3109
3110 * sparc-tdep.c (legacy_register_name): Delete function.
3111 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3112 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3113 * infcmd.c (gdb_register_name): Delete variable.
3114 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3115 REGISTER_NAME and "tm.h".
3116 * gdbarch.h, gdbarch.c: Regenerate.
3117 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3118 REGISTER_NAMES in comments.
3119 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3120 * m68klinux-nat.c (regmap): Ditto.
3121
b55c33cc
JB
31222003-09-17 Jim Blandy <jimb@redhat.com>
3123
3124 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3125
957e27ac
AC
31262003-09-17 Andrew Cagney <cagney@redhat.com>
3127
3128 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3129 (ppcnbsd_init_abi): Set "use_struct_convention" to
3130 "ppcnbsd_use_struct_convention".
3131
192cb3d4
MK
31322003-09-17 Mark Kettenis <kettenis@gnu.org>
3133
3134 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3135 * gdbarch.h, gdbarch.c: Regenerate.
3136 (stabs_argument_has_addr): New architecture method.
3137 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3138 * arch-utils.c: Include "buildsym.h".
3139 (default_stabs_argument_has_addr): New function.
3140 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3141 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3142
efe59759
AC
31432003-09-17 Andrew Cagney <cagney@redhat.com>
3144
3145 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3146 * gdbarch.h, gdbarch.c: Regenerate.
3147 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3148 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3149 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3150 * sparcnbsd-tdep.c: Update.
a8f4cde1 3151
62700349
AC
31522003-09-17 Andrew Cagney <cagney@redhat.com>
3153
3154 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3155 * gdbarch.h, gdbarch.c: Regenerate.
3156 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3157 * d10v-tdep.c, frame.c: Update.
3158 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3159 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3160 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3161 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3162 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3163 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3164 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3165 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3166 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3167 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3168 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3169 * config/pa/nm-hppah.h: Update.
3170
b9ff3018
AC
31712003-09-16 Andrew Cagney <cagney@redhat.com>
3172
3173 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3174 "use_struct_convention" to "ppc_linux_use_struct_convention".
3175 (ppc_linux_use_struct_convention): New function.
3176 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3177 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3178 "rs6000_use_struct_convention".
3179 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3180 declaration.
3181 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3182 Delete function.
3183
aa1ee363
AC
31842003-09-16 Andrew Cagney <cagney@redhat.com>
3185
3186 * buildsym.c: Remove more occurances of "register".
3187 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3188 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3189 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3190 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3191 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3192 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3193 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3194 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3195
f2ea0907
CV
31962003-09-16 Corinna Vinschen <vinschen@redhat.com>
3197
3198 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3199 numbers to enumeration values.
3200 * sh-tdep.c: Accomodate above change.
3201 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3202 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3203 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3204 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3205 (IS_FPUSH): Rename from IS_FMOV.
3206 (sh_extract_struct_value_address): Remove useless comment.
3207 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3208 instead of own local values.
3209 (sh_dump_tdep): Remove.
3210 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3211 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3212
1c704f11
AC
32132003-09-15 Andrew Cagney <cagney@redhat.com>
3214
3215 * doublest.c (convert_floatformat_to_doublest): No longer need to
3216 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3217
ac79b88b
DJ
32182003-09-15 Daniel Jacobowitz <drow@mvista.com>
3219
3220 * values.c (unpack_double): Call floatformat_is_valid.
3221
1c671366
MK
32222003-09-15 Mark Kettenis <kettenis@gnu.org>
3223
de5227fb
MK
3224 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3225 ps_strings into a long.
3226
1c671366
MK
3227 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3228 _initialize_am64fbsd_nat.
3229
a604369a
KB
32302003-09-15 Kevin Buettner <kevinb@redhat.com>
3231
3232 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3233 associated with DW_AT_ranges attribute is out of bounds.
3234
b3cacbee
DL
32352003-09-15 David Lecomber <dsl@sources.redhat.com>
3236
3237 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3238
d0f37bb2
MC
32392003-09-14 Michael Chastain <mec@shout.net>
3240
3241 * config/m68k/nm-apollo68v.h: Delete.
3242 * config/m68k/xm-apollo68v.h: Delete.
3243
69517000
AC
32442003-09-14 Andrew Cagney <cagney@redhat.com>
3245
3246 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3247 * dcache.c: Update copyrights and descriptions.
3248 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3249
ef8b349d
AC
32502003-09-14 Andrew Cagney <cagney@redhat.com>
3251
3252 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3253 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3254
52f0bd74
AC
32552003-09-14 Andrew Cagney <cagney@redhat.com>
3256
3257 * alpha-nat.c: Remove some occurances of "register".
3258 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3259 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3260 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3261 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3262 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3263 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3264 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3265 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3266 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3267 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3268 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3269 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3270 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3271 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3272 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3273 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3274 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3275 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3276 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3277 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3278 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3279 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3280
4a4b3fed
AC
32812003-09-13 Andrew Cagney <cagney@redhat.com>
3282
3283 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3284 * ppc-tdep.h (struct regcache): Declare opaque.
3285 * objfiles.h (struct objfile_data): Declare opaque.
3286 * cp-support.h (struct objfile): Declare opaque.
3287 * linux-nat.h (target_waitstatus): Declare opaque.
3288
2110b94f
MK
32892003-09-14 Mark Kettenis <kettenis@gnu.org>
3290
1c671366
MK
3291 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3292 (stabs_argument_has_addr): New architecture method.
3293 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3294 * arch-utils.c: Include "buildsym.h".
3295 (default_stabs_argument_has_addr): New function.
3296 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3297 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3298
2110b94f
MK
3299 * cris-tdep.c (cris_gdbarch_init): Set
3300 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3301 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3302 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3303 * mips-tdep.c (mips_gdbarch_init): Likewise.
3304 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3305 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3306
48436ce6
AC
33072003-09-13 Andrew Cagney <cagney@redhat.com>
3308
3309 * values.c (using_struct_return): Delete "function" and "funcaddr"
3310 parameters.
3311 * value.h (using_struct_return): Update declaration.
3312 * infcmd.c (finish_command_continuation): Update.
3313 (finish_command): Update.
3314 * infcall.c (call_function_by_hand): Update.
3315 * eval.c (evaluate_subexp_standard): Update.
3316
403d9909
CF
33172003-09-13 Christopher Faylor <cgf@redhat.com>
3318
3319 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3320 SSE registers since gdb will not operate correctly without this.
3321 Restore include file ordering munged in previous change.
3322 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3323
ebf7d56b
MK
33242003-09-13 Mark Kettenis <kettenis@gnu.org>
3325
8e823e25
MK
3326 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3327 REG_STRUCT_HAS_ADDR.
3328 * gdbarch.c, gdbarch.h: Updated.
3329 * infcall.c (call_function_by_hand): Update.
3330 * stabsread.c (define_symbol): Updated.
a8f4cde1 3331
ebf7d56b
MK
3332 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3333
d3f13f72
CF
33342003-09-12 Christopher Faylor <cgf@redhat.com>
3335
3336 * win32-nat.c: Reorganize so that defines used by target headers are
3337 actually defined by the system headers.
3338 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3339 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3340
14f75137
JB
33412003-09-12 Jim Blandy <jimb@redhat.com>
3342
d646061f
JB
3343 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3344 the file has no .data, .bss, or .rodata sections. Instead wait
3345 until we see a variable alleged to live in one of those sections.
3346
2a13f9bc
JB
3347 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3348 .bss section, presume that any variables we find live in the
3349 .rodata section.
3350
4f49b26b
JB
3351 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3352 offsets for global and static variables.
3353
14f75137
JB
3354 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3355 symbol types are, by definition, in the .data section, so it is
3356 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3357 If there is no .data section, there should be no N_DATA or N_DATA
3358 | N_EXT symbols.
3359
212c460c
MK
33602003-09-12 Mark Kettenis <kettenis@gnu.org>
3361
3362 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3363 (amd64fbsd_sigcontext_addr): Rewrite.
3364 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3365 with correct values.
3366 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3367 (amd64fbsd_init_abi): Fix typo.
3368
68856ea3
AC
33692003-09-12 Andrew Cagney <cagney@redhat.com>
3370
3371 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3372 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3373
627b3ba2
AC
33742003-09-12 Andrew Cagney <cagney@redhat.com>
3375
3376 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3377 "entry_file_highpc". Update comments.
3378 * defs.h (deprecated_inside_entry_file): Rename
3379 "inside_entry_file".
3380 * blockframe.c (deprecated_inside_entry_file): Rename
3381 "inside_entry_file".
3382 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3383 * vax-tdep.c (vax_frame_chain): Update.
3384 * sh64-tdep.c (sh64_frame_chain): Update.
3385 * sh-tdep.c (sh_frame_chain): Update.
3386 * rs6000-tdep.c (rs6000_frame_chain): Update.
3387 * ns32k-tdep.c (ns32k_frame_chain): Update.
3388 * mips-tdep.c (mips_frame_chain): Update.
3389 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3390 * m32r-tdep.c (m32r_frame_this_id): Update.
3391 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3392 * frv-tdep.c (frv_frame_this_id): Update.
3393 * d10v-tdep.c (d10v_frame_this_id): Update.
3394 * cris-tdep.c (cris_frame_chain): Update.
3395 * blockframe.c (legacy_frame_chain_valid): Update.
3396 * avr-tdep.c (avr_frame_this_id): Update.
3397 * arm-tdep.c (arm_prologue_this_id): Update.
3398 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3399 * objfiles.c (objfile_relocate): Update.
3400 * mipsread.c (mipscoff_symfile_read): Update.
3401 (mipscoff_symfile_read): Update.
3402 * mdebugread.c (parse_partial_symbols): Update.
3403 * dwarfread.c (read_file_scope): Update.
3404 * dwarf2read.c (read_file_scope): Update.
3405 * dbxread.c (read_dbx_symtab): Update.
3406 (read_dbx_symtab): Update.
3407 * coffread.c (complete_symtab): Update.
3408
b0abbc58
JJ
34092003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3410
3411 * top.c (quit_target): New static helper function.
3412 (quit_force): Moved code to quit_target(). Call quit_target()
3413 via catch_errors() to catch errors during quit.
3414
a1632d59
DC
34152003-09-11 David Carlton <carlton@kealia.com>
3416
3417 * buildsym.c (finish_block): Use allocate_block to allocate the
3418 block.
3419 * mdebugread.c (new_block): Add FIXME.
3420
5c4e30ca
DC
34212003-09-11 David Carlton <carlton@kealia.com>
3422
3423 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3424 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3425 (recursive_dump_type): Ditto.
3426 * printcmd.c (print_formatted): Ditto.
3427 * typeprint.c (print_type_scalar): Ditto.
3428 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3429 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3430 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3431 maint_cplus_cmd_list.
3432 * cp-support.c: Make maint_cplus_cmd_list extern.
3433 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3434 command.h.
3435 (lookup_symbol_file): Look in possible namespace blocks when
3436 appropriate.
3437 (initialize_namespace_symtab): New.
3438 (get_possible_namespace_block, free_namespace_block)
3439 (check_possible_namespace_symbols)
3440 (check_possible_namespace_symbols_loop)
3441 (check_one_possible_namespace_symbol)
3442 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3443 (_initialize_cp_namespace): Ditto.
3444 * block.h: Declare allocate_block.
3445 * block.c (allocate_block): New.
3446 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3447 allocate_block.
3448 * symfile.h: Update declaration of add_psymbol_to_list.
3449 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3450 question.
3451 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3452 scan_partial_symbols_call.
3453 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3454 helper functions.
3455 (add_partial_symbol): If necessary, scan mangled names for names
3456 of namespaces.
3457 (add_partial_namespace): Add NAMESPACE argument; generate partial
3458 symbols associated to namespaces.
3459 (add_partial_enumeration): Add NAMESPACE argument.
3460 (new_symbol): Allow namespace syms.
3461 (read_namespace): Generate namespace syms.
3462 * objfiles.h: Add opaque declaration of struct symtab.
3463 (struct objfile): Add cp_namespace_symtab member.
3464 * objfiles.c (allocate_objfile): Set
3465 objfile->cp_namespace_symtab.
3466 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3467 dictionary_h, command_h.
3468
33a7c2fc
AC
34692003-09-11 Andrew Cagney <cagney@redhat.com>
3470
3471 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3472 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3473 near the function's end.
3474 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3475 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3476 regcache_raw_write_signed to set SP_REGNUM.
3477
63cd24fe
EZ
34782003-09-11 Elena Zannoni <ezannoni@redhat.com>
3479
3480 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3481 orig_addrs is set up properly.
3482
f27dd7fd
AC
34832003-09-11 Andrew Cagney <cagney@redhat.com>
3484
3485 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3486 * gdbarch.h, gdbarch.c: Re-generate.
3487 * infcall.c (call_function_by_hand): Update.
3488 * hppa-tdep.c (hppa_push_arguments): Update.
3489 * ada-lang.c (place_on_stack): Update.
3490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3491 * sparc-tdep.c (sparc_gdbarch_init): Update.
3492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3493 * hppa-tdep.c (hppa_gdbarch_init): Update.
3494 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3495 stack_align.
3496
f630a401
DJ
34972003-09-11 Daniel Jacobowitz <drow@mvista.com>
3498
3499 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3500 register do need a frame.
3501
0ddabb4c
AC
35022003-09-11 Andrew Cagney <cagney@redhat.com>
3503
3504 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3505 buildable since GDB 5.0.
3506 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3507 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3508 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3509 * irix4-nat.c: Delete file.
3510 * config/mips/irix4.mh: Delete file.
3511 * config/mips/irix3.mh: Delete file.
3512 * config/mips/irix3.mt: Delete file.
3513 * config/mips/tm-irix3.h: Delete file.
3514 * config/mips/nm-irix3.h: Delete file.
3515 * config/mips/xm-irix3.h: Delete file.
3516 * config/mips/nm-irix4.h: Delete file.
3517 * config/mips/xm-irix4.h: Delete file.
3518 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3519
fde2cceb
JB
35202003-09-10 J. Brobecker <brobecker@gnat.com>
3521
3522 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3523 * Makefile.in (hppa-tdep.o): Update dependencies.
3524
66f667f5
JW
35252003-09-10 James E Wilson <wilson@specifixinc.com>
3526
ef5fd69f
JW
3527 * MAINTAINERS: Change my e-mail address. Move to paper trail
3528 section.
66f667f5 3529
53e8aaea
KB
35302003-09-10 Kevin Buettner <kevinb@redhat.com>
3531
3532 * MAINTAINERS (frv): New ISA entry.
3533
dcc6aaff
KB
35342003-09-10 Kevin Buettner <kevinb@redhat.com>
3535
3536 * frv-tdep.c (dis-asm.h): Include.
3537 * Makefile.in (frv-tdep.o): Update dependencies.
3538
932644f0
JJ
35392003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3540
3541 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3542 Fix typo for high range of floating registers.
3543
91c24f0a
DC
35442003-09-09 David Carlton <carlton@kealia.com>
3545
3546 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3547 highpc initialization here out of scan_partial_symbols.
3548 (scan_partial_symbols): Restructure into a recursive version,
3549 calling add_partial_namespace and add_partial_enumeration when
3550 appropriate.
3551 (add_partial_namespace): New.
3552 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3553
c9263853
AC
35542003-09-09 Andrew Cagney <cagney@redhat.com>
3555
e56a0ecc
AC
3556 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3557 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3558 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3559 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3560
794a477a
AC
3561 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3562 (rs6000_push_dummy_call): Set the "TOC" register.
3563
c9263853
AC
3564 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3565 methods "max_register_raw_size", "max_register_virtual_size" or
3566 "register_virtual_size".
3567
afa7d0b2
ILT
35682003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3569
3570 * MAINTAINERS: Update my e-mail address.
3571
7a41266b
AC
35722003-09-09 Andrew Cagney <cagney@redhat.com>
3573
3574 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3575 (rs6000_push_dummy_call): Store the struct return address.
3576 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3577
77b2b6d4
AC
35782003-09-09 Andrew Cagney <cagney@redhat.com>
3579
3580 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3581 "ppc_sysv_abi_push_arguments".
3582 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3583 "ppc_sysv_abi_push_arguments".
3584 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3585 instead of "push_arguments".
3586 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3587
e8a7b686
AC
35882003-09-09 Andrew Cagney <cagney@redhat.com>
3589
3590 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3591 instead of CALL_DUMMY_ADDRESS.
3592
f86f5ca3
PH
35932003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3594
3595 * p-lang.c: Eliminate "register".
3596 * c-lang.c: Ditto.
3597 * expprint.c: Ditto.
3598 * f-lang.c: Ditto.
3599 * jv-lang.c: Ditto.
3600 * language.c: Ditto.
3601 * m2-lang.c: Ditto.
3602 * parse.c: Ditto.
3603 * scm-lang.c: Ditto.
3604 * objc-lang.c: Ditto.
3605
83ee270e
NC
36062003-09-09 Nick Clifton <nickc@redhat.com>
3607
3608 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3609
a89aa300
AC
36102003-09-04 Andrew Cagney <cagney@redhat.com>
3611
3612 * avr-tdep.c: Include "dis-asm.h".
3613 * cris-tdep.c: Include "dis-asm.h".
3614 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3615 instead of corresponding typedef.
3616 * h8300-tdep.c: Include "dis-asm.h".
3617 * ia64-tdep.c: Include "dis-asm.h".
3618 * i386-tdep.c: Include "dis-asm.h".
3619 (i386_print_insn): Use "struct disassemble_info" instead of
3620 corresponding typedef.
3621 * m68k-tdep.c: Include "dis-asm.h".
3622 * mcore-tdep.c: Include "dis-asm.h".
3623 * mips-tdep.c: Include "dis-asm.h".
3624 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3625 instead of corresponding typedef.
3626 * ns32k-tdep.c: Include "dis-asm.h".
3627 * s390-tdep.c: Include "dis-asm.h".
3628 * sparc-tdep.c: Include "dis-asm.h".
3629 * vax-tdep.c: Include "dis-asm.h".
3630 * v850-tdep.c: Include "dis-asm.h".
3631 * mn10300-tdep.c: Include "dis-asm.h".
3632 * rs6000-tdep.c: Include "dis-asm.h".
3633 * xstormy16-tdep.c: Include "dis-asm.h".
3634 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3635 print_insn_xstormy16.
3636 * Makefile.in (v850-tdep.o): Update dependencies.
3637 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3638 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3639 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3640 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3641 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3642 (gdbarch_h): Remove $(dis_asm_h).
3643 * disasm.c: Include "dis-asm.h".
3644 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3645 corresponding typedef.
3646 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3647 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3648 * gdbarch.sh: Do not include "dis-asm.h".
3649 (struct disassemble_info): Declare opaque.
3650 (TARGET_PRINT_INSN): Update declaration.
3651 * gdbarch.h, gdbarch.c: Re-generate.
3652
88a82a65
AC
36532003-09-08 Andrew Cagney <cagney@redhat.com>
3654
3655 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3656 CALL_DUMMY_ADDRESS, change to a predicate.
3657 * gdbarch.h, gdbarch.c: Re-generate.
3658 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3659 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3660 * infcall.c (call_function_by_hand): Ditto.
3661 * sparc-tdep.c (sparc_push_return_address): Ditto.
3662 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3663 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3664 CALL_DUMMY_ADDRESS with entry_point_address.
3665 * v850-tdep.c (v850_push_return_address): Ditto.
3666 * s390-tdep.c (s390_push_return_address): Ditto.
3667 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3668 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3669 * mcore-tdep.c (mcore_push_return_address): Ditto.
3670 * cris-tdep.c (cris_push_return_address): Ditto.
3671 * arm-tdep.c (arm_push_return_address): Ditto.
3672
3e2c4033
AC
36732003-09-08 Andrew Cagney <cagney@redhat.com>
3674
3675 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3676 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3677 and REG_UNMODIFIED to REG_SAME_VALUE.
3678 (execute_cfa_program): Update.
3679 (dwarf2_frame_cache): Update. Initialize table to
3680 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3681 location.
3682 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3683
39efb398
AC
36842003-09-08 Andrew Cagney <cagney@redhat.com>
3685
3686 * gnu-nat.c: Remove "inline" function attribute.
3687 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3688
f5cb5aca
KB
36892003-09-08 Kevin Buettner <kevinb@redhat.com>
3690
3691 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3692 target.
3693
1cb761c7
KB
36942003-09-08 Kevin Buettner <kevinb@redhat.com>
3695
3696 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3697 (frame_extra_info): Rename this struct to frv_unwind_cache.
3698 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3699 Add fields ``prev_sp'' and ``base''.
3700 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3701 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3702 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3703 Delete.
3704 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3705 Revise all callers. Fill in the unwind cache argument and make
3706 other adjustments to account for new frame mechanisms.
3707 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3708 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3709 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3710 (frv_frame_unwind, frv_frame_base): New structs.
3711 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3712 additional arguments expected by this method and adjust function
3713 body accordingly.
3714 (frv_gdbarch_init): Remove calls to the following functions:
3715 set_gdbarch_deprecated_init_frame_pc(),
3716 set_gdbarch_deprecated_saved_pc_after_call(),
3717 set_gdbarch_deprecated_frame_chain(),
3718 set_gdbarch_deprecated_frame_saved_pc(),
3719 set_gdbarch_deprecated_frame_init_saved_regs(),
3720 set_gdbarch_deprecated_push_arguments(),
3721 set_gdbarch_deprecated_push_return_address(),
3722 set_gdbarch_deprecated_pop_frame(),
3723 set_gdbarch_deprecated_call_dummy_words(),
3724 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3725 set_gdbarch_deprecated_init_extra_frame_info(),
3726 set_gdbarch_deprecated_dummy_write_sp(), and
3727 set_gdbarch_deprecated_pc_in_call_dummy().
3728 Add calls to the following functions:
3729 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3730 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3731 frame_base_set_default().
3732 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3733
68f6cf99
MK
37342003-09-09 Mark Kettenis <kettenis@gnu.org>
3735
3736 * dwarf2-frame.c (read_encoded_value): Add support for
3737 DW_EH_PE_aligned encoding.
3738
73b65bb0
DJ
37392003-09-08 Daniel Jacobowitz <drow@mvista.com>
3740
3741 * infrun.c (normal_stop): Don't print a message if the inferior
3742 has exited.
3743
7c8a5605
JB
37442003-09-08 Jim Blandy <jimb@redhat.com>
3745
3746 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3747 * dbxread.c: #include "gdb_assert.h".
3748 (read_dbx_symtab): If the objfile has no .data section, use the
3749 section index for the .bss section instead.
3750
7dd88986
DJ
37512003-09-08 Daniel Jacobowitz <drow@mvista.com>
3752
3753 * frame.c (deprecated_safe_get_selected_frame): New function.
3754 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3755 * findvar.c (read_var_value): Call it.
3756
55ff77ac
CV
37572003-09-08 Corinna Vinschen <vinschen@redhat.com>
3758
3759 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3760 (sh64-tdep.o): Add dependencies.
3761 * configure.tgt: Add FIXME to sh-*-linux*.
3762 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3763 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3764 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3765 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3766 * sh64-tdep.c: New file, containing all sh64 related code from
3767 sh-tdep.c.
3768 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3769 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3770 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3771 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3772 * config/sh/wince.mt (TDEPFILES): Ditto.
3773
bfb39158
DJ
37742003-09-07 Daniel Jacobowitz <drow@mvista.com>
3775
3776 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3777 (stop_wait_callback): Handle !lp->signalled also.
3778 (lin_lwp_has_pending, flush_callback): New functions.
3779 (lin_lwp_wait): Call flush_callback.
3780 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3781 (linux_proc_pending_signals): New function.
3782 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3783
9407de8e
DJ
37842003-09-07 Daniel Jacobowitz <drow@mvista.com>
3785
3786 From Nick Kelsey <nickk@ubicom.com>:
3787 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3788 when the stop PC is at the beginning of a function also.
3789
2ef47cd0
DJ
37902003-09-06 Daniel Jacobowitz <drow@mvista.com>
3791
3792 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3793 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3794
6f4492c8
MK
37952003-09-06 Mark Kettenis <kettenis@gnu.org>
3796
3797 * sol-thread.c: Include "gdb_string.h".
3798
d3420b2f
MK
37992003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3800
3801 * gcore.c: Reorder include files in alphabetical order. Include
3802 "gdb_assert.h". Various coding style fixes.
3803 (derive_stack_segment, derive_heap_segment): Replace check for
3804 non-null BOTTOM and TOP with gdb_assert.
3805 (derive_heap_segment): Replace check for successful creation of
3806 ZERO with gdb_assert.
3807 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3808
5220ea4c
AC
38092003-09-04 Andrew Cagney <cagney@redhat.com>
3810
3811 * thread-db.c (verbose_dlsym): New function.
3812 (thread_db_load): Use verbose_dlsym
3813 (thread_db_new_objfile): Print that libthread_db was loaded, and
3814 that thread debugging was enabled.
3815
6e8c2c06
AC
38162003-09-04 Andrew Cagney <cagney@redhat.com>
3817
3818 * configure.tgt: Add "mips64*-*-*" target. Delete
3819 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3820 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3821 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3822 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3823 mips*-sony-*, and mips64*-*-elf* targets.
3824 * config/mips/embedl.mt: Delete file.
3825 * config/mips/embedl64.mt: Delete file.
3826 * config/mips/mips.mt: Delete file.
3827 * config/mips/mips64.mt: Delete file.
3828 * config/mips/tm-embed.h: Delete file.
3829 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3830 * config/mips/embed64.mt: Delete out-of-date comment.
3831
3a3bc038
AC
38322003-09-04 Andrew Cagney <cagney@redhat.com>
3833
3834 * hppa-tdep.c (hppa_gdbarch_init): Set
3835 "have_nonsteppable_watchpoint".
3836 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3837 * mips-tdep.c (mips_dump_tdep): Do not print
3838 HAVE_NONSTEPPABLE_WATCHPOINT.
3839 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3840 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3841 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3842 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3843
a957e642
CV
38442003-09-04 Corinna Vinschen <vinschen@redhat.com>
3845
3846 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3847 unused code. Add comment.
3848
a6fbcf2f
CV
38492003-09-04 Corinna Vinschen <vinschen@redhat.com>
3850
3851 * breakpoint.c (watchpoint_check): Check for pc being in an
3852 epilogue if watchpoint frame couldn't be found.
3853
c14a44d5
AC
38542003-09-04 Andrew Cagney <cagney@redhat.com>
3855
3856 * Makefile.in: Re-generate all dependencies.
3857
f6c40618
AC
38582003-09-03 Andrew Cagney <cagney@redhat.com>
3859
3860 * arch-utils.h (legacy_print_insn): Delete declaration.
3861 * arch-utils.c (legacy_print_insn): Delete function.
3862 * disasm.c (deprecated_tm_print_insn_info): Delete.
3863 (_initialize_disasm): Delete function, contained code initializing
3864 deprecated_tm_print_insn_info.
3865 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3866 (deprecated_tm_print_insn_info): Delete.
3867 (TARGET_PRINT_INSN): Do not provide a default.
3868 * gdbarch.h, gdbarch.c: Re-generate.
3869
242e8be5
AC
38702003-09-03 Andrew Cagney <cagney@redhat.com>
3871
3872 * disasm.c (fprintf_disasm): New function.
3873 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3874 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3875 reverts 2003-08-14 change.
3876 (_initialize_disasm): Call "init_disassemble_info", instead of
3877 INIT_DISASSEMBLE_INFO_NO_ARCH.
3878
3ffc3dda
MS
38792003-09-03 Michael Snyder <msnyder@redhat.com>
3880
3881 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3882
52d16ba8
AC
38832003-09-03 Andrew Cagney <cagney@redhat.com>
3884
3885 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3886 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3887 * symfile.c (syms_from_objfile): Update.
3888 (reread_symbols): `Update
3889 * exec.c (exec_file_attach): Update.
3890 (exec_file_attach): Update.
3891 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3892 2003-08-29 change.
3893 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3894
eb5492fa
DJ
38952003-09-03 Daniel Jacobowitz <drow@mvista.com>
3896
3897 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3898 trad-frame.h.
3899 (arm_get_cache): Delete macro.
3900 (struct arm_prologue_cache): Update comments. Make saved_regs into
3901 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3902 to prev_sp.
3903 (thumb_scan_prologue): Update for cache changes. Don't call
3904 DEPRECATED_PC_IN_CALL_DUMMY.
3905 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3906 argument and use it in desperation search for our prologue. Do not
3907 search past the specified PC.
3908 (arm_make_prologue_cache): Simplify.
3909
3910 (arm_prologue_this_id, arm_prologue_prev_register)
3911 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3912 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3913 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3914 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3915 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3916
3917 (arm_frame_chain_valid, arm_find_callers_reg)
3918 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3919 (arm_pop_frame): Delete obsolete methods.
3920 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3921
3922 (arm_gdbarch_init): Update for new frame methods. Register prologue
3923 and sigtramp unwinders. Set the default frame base method.
3924
3925 * Makefile.in (arm-tdep.o): Update dependencies.
3926 * varobj.c (find_frame_addr_in_frame_chain): Call
3927 get_frame_base_address.
3928 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3929
24de872b
DJ
39302003-09-03 Daniel Jacobowitz <drow@mvista.com>
3931
3932 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3933 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3934 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3935 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3936 Take NEXT_FRAME and CACHE arguments. Call
3937 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3938 Set unwound_pc in CACHE instead of modifying the frame argument.
3939 Don't bother checking the frame type when looking for sigtramp
3940 frames.
3941 (arm_make_prologue_cache, arm_frame_chain)
3942 (arm_init_extra_frame_info): New functions.
3943
9b8d791a
DJ
39442003-09-03 Daniel Jacobowitz <drow@mvista.com>
3945
3946 * arm-tdep.c (arm_get_cache): Define.
3947 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3948 unwound_sp, unwound_pc, and saved_regs.
3949 (thumb_scan_prologue): Take a cache instead of the frame.
3950 (arm_scan_prologue): Likewise.
3951 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3952 instead of a temporary frame.
3953 (arm_init_extra_frame_info): Allocate and use a cache.
3954 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3955
7ee3275f
AC
39562003-09-03 Andrew Cagney <cagney@redhat.com>
3957
3958 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3959 * config/mips/wince.mt (TM_CLIBS): Ditto.
3960 * config/sh/wince.mt (TM_CLIBS): Ditto.
3961 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3962 * config/sparc/sp64.mt (CC): Delete.
3963
57b29be7
AC
39642003-09-03 Andrew Cagney <cagney@redhat.com>
3965
3966 * defs.h: Do not include "arch-utils.h".
3967 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3968 GDB_MULTI_ARCH_PURE.
3969 * configure.in (GDB_MULTI_ARCH): Do not define.
3970 * configure, config.in: Regenerate.
3971 * configure.tgt: Do not set variable "gdb_multi_arch".
3972 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3973 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3974 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3975 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3976 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3977 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3978 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3979 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3980 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3981 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3982 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3983 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3984 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3985 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3986 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3987 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3988 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3989 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3990
12e035e2
MC
39912003-08-30 Michael Chastain <mec@shout.net>
3992
3993 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3994 * config/m68k/nm-hp300hpux.h: Delete.
3995 * config/m68k/tm-hp300hpux.h: Delete.
3996 * config/m68k/xm-hp300hpux.h: Delete.
3997 * config/m68k/xm-hp300bsd.h: Delete.
3998 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3999 tm-hp300hpux.h, xm-hp300hpux.h.
4000 * somsolib.c: Remove comment about hp300 shared libraries.
4001
bda34dc2
MK
40022003-08-31 Mark Kettenis <kettenis@gnu.org>
4003
5bca7895
MK
4004 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
4005 Only define PTRACE_GET_THREAD_AREA is not already defined.
4006 Various style fixes in code and comments and some additional
4007 spelling fixes in comments. Move after functions dealing with
4008 debug registers.
4009 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
4010 Fix coding-style.
4011
bda34dc2
MK
4012 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
4013 frame_unwind_register_unsigned instead of
4014 frame_unwind_unsigned_register.
4015
c890192f
MK
40162003-08-30 Mark Kettenis <kettenis@gnu.org>
4017
4018 * configure.in: Search for gethostbyname in libnsl.
4019 * configure: Regenerated.
4020
60fac5b8
MK
40212003-08-29 Mark Kettenis <kettenis@gnu.org>
4022
e294916c
MK
4023 * configure.in: Remove redundant AC_MSG_RESULT in check for
4024 uintptr_t in stdint.h.
4025 * configure: Regenerated.
4026
c40d267a
MK
4027 * amd64-nat.h (struct regcache): Add opaque declaration.
4028
60fac5b8
MK
4029 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
4030 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
4031 Change "register array" to "register cache" in comments.
4032 (x86_64_linux_gregset64_reg_offset): New variable.
4033 (GETREGS_SUPPLIES): Remove macro.
4034 (supply_gregset): Call amd64_supply_native_gregset instead of
4035 x86_64_linux_supply_gregset.
4036 (fill_gregset): Rename `regno' to `regnum'. Call
4037 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
4038 (store_regs): Rename `regno' to `regnum'.
4039 (store_fpregs): Rename `regno' to `regnum'.
4040 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
4041 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4042 Reorganize function a bit.
4043 (store_inferior_registers): Rename `regno' to `regnum'. Use
4044 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4045 Reorganize function a bit.
4046 (_initialize_x86_64_linux_nat): New function.
4047 * config/i386/x86-64linux.mh.
4048
546143b6
AC
40492003-08-29 Andrew Cagney <cagney@redhat.com>
4050
4051 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
4052 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
4053 (target_remove_watchpoint): Delete macro.
4054 (target_insert_watchpoint): Delete macro.
4055 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
4056 (remote_mips_stopped_by_watchpoint): Delete declaration.
4057 (remote_mips_remove_watchpoint): Delete declaration.
4058 (remote_mips_set_watchpoint): Delete declaration.
4059 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
4060 * remote-mips.c (_initialize_remote_mips): Set
4061 "to_insert_watchpoint", "to_stopped_by_watchpoint",
4062 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4063 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4064 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4065 (mips_stopped_by_watchpoint): Rename
4066 remote_mips_stopped_by_watchpoint.
4067 (mips_can_hardware_watchpoint): Rename
4068 remote_mips_can_use_hardware_watchpoint, update function
4069 signature.
4070
7bace51b
MK
40712003-08-29 Mark Kettenis <kettenis@gnu.org>
4072
b0f5c6f2
MK
4073 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4074 USER_DS. We haven't given them a register number yet.
4075
2a6d284d
MK
4076 * amd64-nat.h: New file.
4077 * amd64-nat.c: New file.
4078 * amd64fbsd-nat.c: Include "amd64-nat.h".
4079 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4080 (amd64fbsd32_r_reg_offset): New variable.
4081 (supply_gregset): Simply call amd64_supply_native_gregset.
4082 (fill_gregset): Rename `regno' to `regnum'. Simply call
4083 amd64_collect_native_gregset.
4084 (fill_fpregset): Rename `regno' to `regnum'.
4085 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
4086 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4087 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4088 `fpregset_t'. Call amd64_supply_native_gregset instead of
4089 supply_gregset. Call x86_64_supply_fxsave instead of
4090 supply_fpregset.
4091 (store_inferior_registers): Rename `regno' to `regnum'. Replace
4092 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4093 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4094 `fpregset_t'. Call amd64_collect_native_gregset instead of
4095 fill_gregset. Call x86_64_collect_fxsave instead of
4096 fill_fpregset.
4097 (_initialize_am64fbsd_nat): Initialize
4098 amd64_native_gregset32_reg_offset and
4099 amd64_native_gregset64_reg_offset.
4100 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4101
a16d75cc
MK
4102 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4103 null pointer. Fix typo in comment.
4104
7bace51b
MK
4105 * regcache.c (supply_register): Reimplement to call
4106 regcache_raw_supply.
4107 (regcache_collect): Reimplement by calling regcache_raw_collect.
4108
9a661b68
MK
41092003-08-28 Mark Kettenis <kettenis@gnu.org>
4110
4111 * regcache.c (register_buffer): Consitify first argument.
4112 (regcache_raw_supply, regcache_raw_collect): New
4113 functions.
4114
e94cc8fa
DJ
41152003-08-28 Daniel Jacobowitz <drow@mvista.com>
4116
4117 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4118 by Nathan J. Williams.
4119
c64bd0ce
DJ
41202003-08-28 Daniel Jacobowitz <drow@mvista.com>
4121
4122 * lin-lwp.c (wait_lwp): New function, copied from
4123 stop_wait_callback. Clean up.
4124 (stop_wait_callback): Use wait_lwp.
4125
e5ab0dce
AC
41262003-08-28 Andrew Cagney <cagney@redhat.com>
4127
4128 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4129 flavour and disassembler options.
4130 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4131 (mips_gdbarch_init): Set "print_insn". Delete initialization of
4132 deprecated_tm_print_insn_info.
a8f4cde1 4133
a788de9b
AC
41342003-08-27 Andrew Cagney <cagney@redhat.com>
4135
4136 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4137 Use target_read_memory.
4138 (s390_get_frame_info): Update. Do not reference
4139 deprecated_tm_print_insn_info.
4140 (s390_check_function_end, s390_is_sigreturn): Ditto.
4141
36482093
AC
41422003-08-27 Andrew Cagney <cagney@redhat.com>
4143
4144 * Makefile.in (cris-tdep.o): Update dependencies.
4145 * cris-tdep.c: Include "gdb_assert.h".
4146 (cris_gdbarch_init): Set print_insn.
4147 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4148 (cris_delayed_get_disassembler): Simplify, directly call the
4149 disassembler returned by cris_get_disassembler.
4150 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4151 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4152 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4153 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4154 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4155 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4156 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4157 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4158 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4159 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4160 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4161 (gdb_print_insn_sparc): Delete function.
4162 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4163 deprecated_tm_print_insn_info.
4164 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4165 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4166 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4168 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4169 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4170 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4171 (s390_gdbarch_init): Set print_insn.
4172
0285512f
AC
41732003-08-27 Andrew Cagney <cagney@redhat.com>
4174
4175 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4176 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4177 * infcall.c (call_function_by_hand): Convert the entry point
4178 address into a code address.
4179
cdcd5552
AC
41802003-08-27 Andrew Cagney <cagney@redhat.com>
4181
4182 * dsrec.c: Include "gdb_string.h".
4183 * Makefile.in (dsrec.o): Update dependencies.
4184
e85cddad
MC
41852003-08-27 Michael Chastain <mec@shout.net>
4186
4187 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4188
8bbfbb23
AC
41892003-08-27 Andrew Cagney <cagney@redhat.com>
4190
4191 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4192 (alpha_osf1_init_abi): Do not set call_dummy_address.
4193
ba058b66
DC
41942003-08-27 David Carlton <carlton@kealia.com>
4195
4196 From Randolph Chung <tausq@debian.org>:
4197 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4198 compiles with -Wformat-nonliteral -Werror.
4199
87f84c9d
JB
42002003-08-26 Jim Blandy <jimb@redhat.com>
4201
4202 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4203 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4204 bfd_lookup_symbol, since we only want symbols in code sections.
4205 (look_for_base): Pass zero as the SECT_FLAGS argument to
4206 bfd_lookup_symbol, since we're not concerned about which section
4207 the symbol is in.
4208
102d615a
JJ
42092003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4210
4211 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 4212 we are frameless or the return address register is already known.
102d615a 4213
cc7ad3ea
AC
42142003-08-26 Andrew Cagney <cagney@redhat.com>
4215
4216 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4217 in size. Add comments.
4218
af8b88dd
JJ
42192003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4220
4221 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 4222 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 4223
e0a4f5a1
JM
42242003-08-26 Jason Merrill <jason@redhat.com>
4225
4226 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4227 case out of #ifdef MIPS block.
4228
4ae9ee8e
DJ
42292003-08-25 Daniel Jacobowitz <drow@mvista.com>
4230
4231 PR java/1322
4232 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4233 available before calling SECT_OFF_TEXT.
3c164570 4234 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 4235
004d836a
JJ
42362003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4237
a8f4cde1 4238 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
4239 bof, and nat0-nat127 as pseudo-registers.
4240 (ia64_frame_cache): New struct used to cache frame info.
4241 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 4242 register grouping so registers without names are still saved and
004d836a 4243 restored.
a8f4cde1 4244 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
4245 pseudo values.
4246 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4247 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 4248 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
4249 ia64_frame_cache.
4250 (examine_prologue): Change prototype to add next_frame pointer.
4251 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 4252 current frame matches the cfm that should occur for the prologues
004d836a
JJ
4253 alloc insn and if equal, mark as not frameless. At end of routine,
4254 if not frameless, calculate registers for the previous frame and store
4255 in the cache, if a cache is provided.
4256 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4257 and pass 0 for next_frame.
4258 (ia64_store_return_value): Change to use convert_typed_floating()
4259 instead of calling ia64_convert_to_raw().
4260 (ia64_extract_return_value): Change to use convert_typed_floating()
4261 instead of calling ia64_convert_to_virtual().
4262 (ia64_frame_cache): New routine to support new frame model.
4263 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4264 (ia64_frame_sniffer): Ditto.
4265 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4266 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4267 (ia64_sigtramp_frame_prev_register): Ditto.
4268 (ia64_sigtramp_frame_sniffer): Ditto.
4269 (ia64_frame_base_address): Ditto.
4270 (ia64_extract_struct_value_address): Change to issue error message.
4271 (ia64_frame_align): New routine to align sp.
4272 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4273 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4274 ia64_push_dummy_call().
4275 (ia64_push_return_address): Ditto.
4276 (ia64_unwind_dummy_id): New function.
4277 (ia64_unwind_pc): Ditto.
4278 (ia64_convert_register_p): Ditto.
4279 (ia64_register_to_value): Ditto.
4280 (ia64_value_to_register): Ditto.
4281 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4282 (ia64_register_byte, ia64_register_raw_size): Ditto.
4283 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4284 (ia64_saved_pc_after_call): Ditto.
4285 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4286 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4287 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4288 (ia64_register_convert_to_raw): Ditto.
4289 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4290 (ia64_init_extra_frame_info): Ditto.
4291 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4292 (ia64_gdbarch_init): Remove registering of deprecated functions that
4293 are no longer used. Add registration of new gdbarch functions.
4294 Remove registering deprecated_write_sp. Replace
4295 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4296 Delete set_gdbarch_deprecated_register_convertible(),
4297 set_gdbarch_deprecated_register_convert_to_virtual(), and
4298 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4299 set_gdbarch_deprecated_register_size(),
4300 set_gdbarch_deprecated_register_bytes(),
4301 set_gdbarch_pcregnum(),
4302 set_gdbarch_deprecated_register_byte(),
4303 set_gdbarch_deprecated_register_raw_size(),
4304 set_gdbarch_deprecated_max_register_raw_size(),
4305 set_gdbarch_deprecated_register_virtual_size(),
4306 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4307 Replace set_gdbarch_deprecated_extract_return_value() with
4308 set_gdbarch_extract_return_value(). Remove calls to:
4309 set_gdbarch_deprecated_saved_pc_after_call();
4310 set_gdbarch_deprecated_frame_chain(),
4311 set_gdbarch_deprecated_frame_saved_pc(),
4312 set_gdbarch_deprecated_frame_init_saved_regs(),
4313 set_gdbarch_deprecated_get_saved_register(),
4314 set_gdbarch_deprecated_call_dummy_words(),
4315 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4316 set_gdbarch_deprecated_init_extra_frame_info(),
4317 set_gdbarch_deprecated_frame_args_address(),
4318 set_gdbarch_deprecated_frame_locals_address(),
4319 and set_gdbarch_deprecated_dummy_write_sp().
4320 Add set_gdbarch_convert_register_p(),
4321 set_gdbarch_register_to_value(),
4322 set_gdbarch_value_to_register(),
4323 set_gdbarch_push_dummy_call(),
4324 set_gdbarch_frame_align(),
4325 set_gdbarch_unwind_dummy_id(),
4326 set_gdbarch_unwind_pc(),
4327 frame_unwind_append_sniffer(),
4328 frame_unwind_append_sniffer(),
4329 and frame_base_set_default().
4330
aede7613
CD
43312003-08-25 Chris Demetriou <cgd@broadcom.com>
4332
4333 * configure.tgt: Document need for special "mipsisa64" handling.
4334 (mipsisa64*-*-linux64): Handle as target linux64.
4335 (mipsisa64*-*-*): Handle as target embed64.
4336
43c3a82e
MC
43372003-08-18 Michael Chastain <mec@shout.net>
4338
4339 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4340 objfile bug.
4341
6564f77d
MK
43422003-08-24 Mark Kettenis <kettenis@gnu.org>
4343
2de139ba
MK
4344 * i387-tdep.h: Update copyright date.
4345 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4346
6564f77d
MK
4347 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4348 CFLAGS games to reflect reality.
4349
42cf1509
AC
43502003-08-24 Andrew Cagney <cagney@redhat.com>
4351
4352 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4353 GDB_MULTI_ARCH is always non-zero.
4354 * osabi.c (_initialize_gdb_osabi): Ditto.
4355 (gdbarch_init_osabi): Ditto.
4356 * sparc-tdep.c: Ditto for #if code.
4357
0485f6ad
MK
43582003-08-23 Mark Kettenis <kettenis@gnu.org>
4359
4360 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4361 Update comments.
4362 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4363 comments.
4364 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4365 x86_64_supply_fxsave.
4366 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4367 x86_64_supply_fxsave.
4368 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4369 x86_64_supply_fxsave.
4370
c7716133
AJ
43712003-08-23 Andreas Jaeger <aj@suse.de>
4372
4373 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4374 i387_supply_fxsave.
4375
ed504bdf
MK
43762003-08-23 Mark Kettenis <kettenis@gnu.org>
4377
4378 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4379 i387_supply_register.
4380 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4381 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4382 i387_supply_fsave.
4383 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4384 i387_supply_fxsave.
4385 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4386 i387_supply_fsave.
4387 * i386bsd-nat.c (supply_fpregset): Adjust call to
4388 i387_supply_fsave.
4389 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4390 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4391 supply_fpregset.
4392 (store_inferior_registers): Remove extraneous whitespace. Call
4393 i387_fill_fsave instead of fill_fpregset.
4394 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4395 (supply_fpregset): Likewise.
4396 * i386v4-nat.c (supply_fpregset): Adjust call to
4397 i387_supply_fsave.
4398 * i386-interix-nat.c (supply_fpregset): Adjust call to
4399 i387_supply_fsave.
4400 * i386-linux-nat.c (supply_fpregset): Adjust call to
4401 i387_supply_fsave.
4402 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4403 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4404 i387supply_fsave and i387_supply_fxsave.
4405 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4406 Incorporate code from `i387_supply_register.
4407 (i387_supply_register): Remove.
4408 (i387_supply_fxsave): Add `regnum' argument.
4409 Update comments.
4410 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4411 prototype.
4412 (i387_supply_register): remove prototype.
4413 Update comments.
a8f4cde1 4414
4be5d520
MC
44152003-08-22 Michael Chastain <mec@shout.net>
4416
4417 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4418 Add lines for files in gdb/testsuite/gdb.cp/* that are
4419 still not 8.3 unique.
4420
7ed85d26
DJ
44212003-08-22 Daniel Jacobowitz <drow@mvista.com>
4422
4423 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4424 TYPE_VPTR_FIELDNO is valid.
4425
eb0d3137
MK
44262003-08-19 Mark Kettenis <kettenis@gnu.org>
4427
4428 * utils.c (set_width_command): Remove prototypes.
4429 (set_screen_size): New prototype.
4430 (init_page_info): Simplify by fetching the screen size from
4431 Readline. Call set_screen_size.
4432 (set_screen_size): New function.
4433 (set_width): Add missing whitespace in comment.
4434 (set_width_command): Call set_screen_size.
4435 (set_height_command): New function.
4436 (initialize_utils): Fix formatting. Make "set height" command
4437 call set_height_command. Remove redundant code that turns off
4438 pagination if output isn't a terminal. Remove redundant call to
4439 set_width_command.
a8f4cde1 4440
7e6d0ac8
MK
44412003-08-22 Mark Kettenis <kettenis@gnu.org>
4442
3567a8ea
MK
4443 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4444 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4445 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4446 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4447 `case' keyword.
4448 (sparc64_register_info): Give the reister with number
4449 SPARC64_STATE_REGNUM a name.
4450 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4451 %asi and %ccr.
4452 (sparc64_push_dummy_call): Take BIAS into account when checking
4453 stcak alignment.
4454 (sparc_software_single_step): Remove assertions that check whether
4455 NPC and NNPC were zero.
4456 (sparc_supply_rwindow): Make public. Merge functionality with
4457 sparc64_supply_rwindow.
4458 (sparc_fill_rwindow): Make public. Merge functionality with
4459 sparc64_fill_rwindow.
4460 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4461 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4462 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4463 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4464 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4465
7e6d0ac8
MK
4466 * reggroups.c: Add whitespace after declarations of local
4467 variables in functions.
4468
72e5f484
MC
44692003-08-21 Michael Chastain <mec@shout.net>
4470
4471 * gdbtypes.h: Change array bound type from an int to enum.
4472
435ac228
AC
44732003-08-21 Andrew Cagney <cagney@redhat.com>
4474
4475 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4476 * config/sparc/tm-sparc.h: Ditto.
4477 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4478 unconditionally.
4479 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4480
0d0e1a63
MK
44812003-07-13 Mark Kettenis <kettenis@gnu.org>
4482
4483 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4484 (register_objfile_data, set_objfile_data, objfile_data): New
4485 prototypes.
4486 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4487 prototypes.
4488 (allocate_objfile): Call objfile_alloc_data.
4489 (free_objfile): Call objfile_free_data.
4490 (struct objfile_data): New.
4491 (struct objfile_data_registration): New.
4492 (struct objfile_data_registry): New.
4493 (objfile_data_registry): New variable.
4494 (register_objfile_data): New function.
4495 (objfile_alloc_data, objfile_free_data): New functions.
4496 (set_objfile_data, objfile_data): New functions.
4497 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4498 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4499 (_initialize_dwarf2_frame): New function and prototype.
4500
d90cf509
AC
45012003-08-21 Andrew Cagney <cagney@redhat.com>
4502
4503 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4504 a specific architecture.
4505 * arch-utils.h (set_architecture_from_arch_mach): Delete
4506 declaration.
4507 (target_architecture_hook): Delete declaration.
4508 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4509 (default_float_format): Assume GDB_MULTI_ARCH.
4510 (default_double_format): Assume GDB_MULTI_ARCH.
4511 (set_endian_from_file): Delete function.
4512 (arch_ok): Delete function.
4513 (set_arch): Delete function.
4514 (set_architecture_from_arch_mach): Delete function.
4515 (set_architecture_from_file): Delete function.
4516 (set_architecture): Assume GDB_MULTI_ARCH.
4517 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4518
8b39fe56
MK
45192003-08-21 Mark Kettenis <kettenis@gnu.org>
4520
4521 Rewrite FreeBSD/sparc64 native configuration.
4522 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4523 * sparc64fbsd-nat.c: New file.
4524 * sparc64fbsd-tdep.c: New file.
4525 * sparc64-tdep.c sparc64-tdep.h: New files.
4526 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4527 sparc64fbsd-tdep.o): New dependencies.
4528 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4529 and sparc64fbsd-tdep.c.
4530 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4531 * config/sparc/fbsd.mh: Remove copyright notice.
4532 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4533 sparcbsd-nat.o.
4534 * config/sparc/fbsd.mt: Remove copyright notice.
4535 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4536 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4537 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4538 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4539 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4540 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4541 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4542 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4543 "sparc/tm-sp64.h".
4544 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4545 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4546
a7f19c79
MC
45472003-08-21 Michael Chastain <mec@shout.net>
4548
4549 * symtab.h: Add doco on the space critical structures and
4550 some measurements of space usage.
4551
da08ea5b
MS
45522003-08-21 Michael Snyder <msnyder@redhat.com>
4553
4554 * tracepoint.c (trace_dump_command): Trace break address
4555 is subject to DECR_PC_AFTER_BREAK.
4556 (set_traceframe_context): Make "trace_line" an int.
4557 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4558
6df2bf50
MS
45592003-08-20 Michael Snyder <msnyder@redhat.com>
4560
4561 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4562 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4563 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4564 argument passing.
a8f4cde1 4565 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4566 functions, replace sh_push_dummy_call.
4567 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4568
0955bbf0
MC
45692003-08-20 Michael Chastain <mec@shout.net>
4570
4571 * gdbtypes.h (struct main_type): Rearrange to save space.
4572
260a4188
MS
45732003-08-20 Michael Snyder <msnyder@redhat.com>
4574
4575 * trad-frame.c: Comment typo fix.
4576
8baa6f92
KB
45772003-08-20 Michael Snyder <msnyder@redhat.com>
4578 Kevin Buettner <kevinb@redhat.com>
4579
4580 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4581 (frv_frame_init_saved_regs): Add declaration.
4582 (frame_extra_info): Add new field ``saved_regs''.
4583 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4584 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4585 Update frame related code.
4586 (frv_extract_struct_value_address): Adjust formatting.
4587 * Makefile.in (frv-tdep.o): Update dependencies.
4588 * config/frv/tm-frv.h (target_insert_watchpoint)
4589 (target_remove_watchpoint, target_insert_hw_breakpoint)
4590 (target_remove_hw_breakpoint): Delete these macros.
4591 (remote_insert_watchpoint, remote_remove_watchpoint)
4592 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4593 these declarations.
4594
87193939
MC
45952003-08-20 Michael Chastain <mec@shout.net>
4596
4597 * defs.h (ENUM_BITFIELD): New macro.
4598 * symtab.h (ENUM_BITFIELD): Use it.
4599 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4600
062103ba
SA
46012003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4602
4603 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4604
8b148df9
AC
46052003-08-18 Andrew Cagney <cagney@redhat.com>
4606
4607 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4608 * gdbarch.h, gdbarch.c: Re-generate.
4609 * infcall.c (call_function_by_hand): Adjust the SP by
4610 frame_red_zone_size before allocating any stack space.
4611 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4612 * x86-64-tdep.c (x86_64_frame_align): New function.
4613 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4614
4615 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4616 Remove code adjusting SP so that it skips over the Red Zone.
4617
954a4db8
MK
46182003-08-18 Mark Kettenis <kettenis@gnu.org>
4619
4620 * NEWS (New native configurations): Mention FreeBSD/amd64.
4621
1a241548
AC
46222003-08-18 Andrew Cagney <cagney@redhat.com>
4623
4624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4625 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4626 "m68k_frame_p".
4627 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4628
f82b2acd
MK
46292003-08-18 Mark Kettenis <kettenis@gnu.org>
4630
4631 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4632
4056d258
ML
46332003-08-18 Michal Ludvig <mludvig@suse.cz>
4634
4635 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4636 Define.
4637 * i386-linux-nat.c: Include "linux-nat.h".
4638 (child_post_startup_inferior): New function.
a8f4cde1 4639
99ab4326
MK
46402003-08-18 Mark Kettenis <kettenis@gnu.org>
4641
4642 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4643 at the start of a frameless function. This probably fixes PR
4644 backtrace/1338.
4645
c8d5f0d6
MC
46462003-08-17 Michael Chastain <mec@shout.net>
4647
4648 * symfile.c (find_sym_fns): Remove special case for apollo target.
4649
9016a515
DJ
46502003-08-17 Daniel Jacobowitz <drow@mvista.com>
4651
4652 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4653 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4654 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4655 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4656 (linux_supports_tracevforkdone): New function.
4657 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4658 TRACEVFORKDONE.
4659 (child_follow_fork): Handle vfork.
4660 (linux_handle_extended_wait): Likewise. Also handle exec.
4661 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4662 * NEWS: Mention fork tracing.
4663
c538c11c
DJ
46642003-08-17 Daniel Jacobowitz <drow@mvista.com>
4665
4666 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4667
4de4c07c
DJ
46682003-08-17 Daniel Jacobowitz <drow@mvista.com>
4669
4670 * Makefile.in (i386-linux-nat.o): Update dependencies.
4671 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4672 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4673 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4674 * i386-linux-nat.c: Include "linux-nat.h".
4675 (child_post_startup_inferior): New function.
4676 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4677 * infptrace.c (kill_inferior): Wrap in #ifdef.
4678 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4679 attaching to each LWP.
4680 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4681 (init_lin_lwp_ops): Fill in some more operations.
4682 * linux-nat.h (linux_enable_event_reporting)
4683 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4684 prototypes.
4685 * linux-nat.c (linux_enable_event_reporting): New function.
4686 (child_post_attach, linux_child_post_startup_inferior)
4687 (child_post_startup_inferior, child_follow_fork)
4688 (linux_handle_extended_wait, kill_inferior): New functions.
4689
7996bcec
AC
46902003-08-16 Andrew Cagney <cagney@redhat.com>
4691
4692 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4693 * gdbarch.h, gdbarch.c: Re-generate.
4694
3d48a7a0
MK
46952003-08-16 Mark Kettenis <kettenis@gnu.org>
4696
4697 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4698
7989c619
AC
46992003-08-16 Andrew Cagney <cagney@redhat.com>
4700
4701 * NEWS: Mention that "set prompt-escape-char" was deleted.
4702 * top.c (get_prompt_1): Delete function.
4703 (gdb_prompt_escape):
4704 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4705 prompt-escape-char" command.
4706 (MAX_PROMPT_SIZE): Delete macro.
4707 (get_prompt): Simplify, do not call get_prompt_1.
4708
07978cd8
AC
47092003-08-16 Andrew Cagney <cagney@redhat.com>
4710
4711 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4712 -Werror. -Wformat-nonliteral problems.
4713
3ff7cf9e
JB
47142003-08-15 J. Brobecker <brobecker@gnat.com>
4715
4716 Further multiarching work mostly for hppa64-*-hpux11:
4717 * hppa-tdep.h: New file.
4718 * hppa-tdep.c: #include hppa-tdep.c.
4719 (hppa32_num_regs): Renamed from hppa_num_regs.
4720 (hppa64_num_regs): New constant.
4721 (hppa64_call_dummy_breakpoint_offset): New constant.
4722 (hppa32_call_dummy_length): New constant.
4723 (hppa64_call_dummy_length): New constant.
4724 (hppa32_stack_align): Make name 32bit explicit.
4725 (hppa32_register_virtual_type): Likewise.
4726 (hppa32_extract_return_value): Likewise.
4727 (hppa32_use_struct_convention): Likewise.
4728 (hppa32_store_return_value): Likewise.
4729 (hppa64_register_virtual_type): New function.
4730 (hppa64_extract_return_value): New function.
4731 (hppa64_use_struct_convention): New function.
4732 (hppa64_store_return_value): New function.
4733 (hppa_frame_locals_address): Remove declaration, function does
4734 not exist anymore.
4735 (hppa_register_byte): Add support for PA64 ABI.
4736 (hppa_gdbarch_init): Add support for PA64 ABI.
4737 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4738 Make name 32bit explicit.
4739 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4740 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4741 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4742 (hppa64_hpux_frame_base_before_sigtramp): New function.
4743 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4744 * config/pa/tm-hppa64.h: Remove macros that are no longer
4745 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4746 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4747 * config/pa/tm-hppah.h: Update function calls in macros
4748 following the function renaming in hppa-hpux-tdep.c.
4749 * Makefile.in (hppa_tdep_h): New variable.
4750 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4751
5d05ca6d
MS
47522003-08-14 Michael Snyder <msnyder@redhat.com>
4753
4754 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4755
37ba2569
JB
47562003-08-13 J. Brobecker <brobecker@gnat.com>
4757
4758 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4759 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4760 routine.
4761
aed7f26a
MS
47622003-08-13 Michael Snyder <msnyder@redhat.com>
4763
4764 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4765 (frv_saved_pc_after_call): Use deprecated ftype.
4766 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4767 (frv_remote_translate_xfer_address): Remove.
4768 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4769
752d4ac1
JB
47702003-08-13 J. Brobecker <brobecker@gnat.com>
4771
4772 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4773 initialization after the common gdbarch initialization, not before.
4774
1426ac1d
JB
47752003-08-13 J. Brobecker <brobecker@gnat.com>
4776
4777 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4778 (ADDR_BITS_REMOVE): Remove, redundant.
4779
b6fbdd1d
JB
47802003-08-13 J. Brobecker <brobecker@gnat.com>
4781
4782 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4783 gdbarch method to clear the 2 low bits of text addresses.
4784
44160db3
AC
47852003-08-12 Andrew Cagney <cagney@redhat.com>
4786
4787 * Makefile.in (dsrec.o): Update dependencies.
4788 * dsrec.c: Include "gdb_assert.h".
4789 (make_srec): Use snprintf instead of sprintf, use a literal format
4790 string.
4791
bcf7d3ca
AC
47922003-08-12 Andrew Cagney <cagney@redhat.com>
4793
4794 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4795 FRAME_OBSTACK_ZALLOC.
4796
49ed40de
KB
47972003-08-12 Kevin Buettner <kevinb@redhat.com>
4798
4799 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4800 SSE registers.
4801
b246147c
MK
48022003-08-10 Mark Kettenis <kettenis@gnu.org>
4803
4804 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4805 amd64fbsd_sc_reg_offset): Add extern declarations.
4806 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4807 declarations.
4808
d95fdc0d
BE
48092003-08-11 Ben Elliston <bje@wasabisystems.com>
4810
4811 * MAINTAINERS (write after approval): Update my mail address.
4812
cf6a0e73
AC
48132003-08-10 Andrew Cagney <cagney@redhat.com>
4814
4815 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4816
f837910f
MK
48172003-08-10 Mark Kettenis <kettenis@gnu.org>
4818
e2dbbd2d
MK
4819 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4820 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4821 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4822 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4823 i386bsd_sc_reg_offset): Add extern declarations.
4824 * i386obsd-nat.c: Include "i386-tdep.h"
4825 (_initialize_i386obsd_nat): Remove extern declarations.
4826 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4827 declarations.
4828 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4829 declarations.
4830
f837910f
MK
4831 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4832 instead of frame_read_register.
4833 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4834 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4835 SP_REGNUM.
4836 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4837 instead of frame_unwind_unsigned_register. Use
4838 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4839 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4840 instead of read_register. Use builtin_type_void_data_ptr instead
4841 of builtin_type_void_func_ptr when extracting the address of the
4842 jmp_buf.
4843 (i386_extract_return_value, i386_store_return_value,
4844 i386_pseudo_register_read, i386_pseudo_register_write): Use
4845 register_size instead REGISTER_RAW_SIZE.
4846
edcf254d
AC
48472003-08-10 Andrew Cagney <cagney@redhat.com>
4848
4849 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4850 sprintf. Make "name" constant.
4851
26604a34
MK
48522003-08-10 Mark Kettenis <kettenis@gnu.org>
4853
192285c6
MK
4854 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4855 instead of frame_read_register.
f837910f
MK
4856 (i387_print_float_info): Use get_frame_register and
4857 get_frame_register_unsigned instead of frame_register_read.
192285c6 4858
f0925262
MK
4859 * i386fbsd-nat.c: Include "i386-tdep.h".
4860 (child_resume): Make `eflags' an ULONGEST. Use
4861 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4862 instead of register_read and register_write.
4863
a144416f
MK
4864 * i386bsd-nat.c (fetch_inferior_registers,
4865 store_inferior_registers): Don't use && at the end of a line.
4866 (_initialize_i386bsd_nat): Fix typo.
4867
fec74868
MK
4868 * frame.c (_initialize_frame): Add missing backslash.
4869
87232496
MK
4870 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4871 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4872 and supply_register instead of manipulating the register buffer
4873 directly.
4874
c9b9de0b
MK
4875 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4876 * config/i386/nm-i386sol2.h
4877 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4878
26604a34
MK
4879 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4880 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4881 instructions that GCC likes to mingle into the prologue. Fixes
4882 gdb/1253 and gdb/1255.
4883
25d29d70
AC
48842003-08-09 Andrew Cagney <cagney@redhat.com>
4885
4886 Fix GDB PR cli/926.
4887 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4888 * command.h (add_setshow_uinteger_cmd): Declare.
4889 * frame.c (set_backtrace_cmd): New function.
4890 (show_backtrace_cmd): New function.
4891 * frame.c (_initialize_frame): Replace "set/show
4892 backtrace-below-main" with "set/show backtrace past-main". Add
4893 command "set/show backtrace limit".
4894 (backtrace_past_main): Rename "backtrace_below_main".
4895 (backtrace_limit): New variable.
4896 (get_prev_frame): Update. Check the backtrace_limit.
4897
9ebf4acf
AC
48982003-08-09 Andrew Cagney <cagney@redhat.com>
4899
4900 * defs.h (xstrprintf): Declare.
4901 * utils.c (xstrprintf): New function.
4902 * breakpoint.c (insert_breakpoints): Replace sprintf and
4903 non-literal format strings, with xstrprintf and cleanups.
4904 (delete_breakpoint,breakpoint_re_set): Ditto.
4905 (commands_command, insert_breakpoints): Ditto.
4906 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4907 (break_at_finish_command_1): Ditto.
4908
3771659b
AC
49092003-08-09 Andrew Cagney <cagney@redhat.com>
4910
4911 * MAINTAINERS (language support): List Adam Fedor as Objective C
4912 maintainer.
4913
b4263afa
JB
49142003-08-08 J. Brobecker <brobecker@gnat.com>
4915
4916 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4917 are now multiarched.
4918
d84defb1
JB
49192003-08-08 J. Brobecker <brobecker@gnat.com>
4920
4921 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4922 longer necessary now that hppa64 is partially multiarch'ed.
4923
f786f615
AC
49242003-08-08 Andrew Cagney <cagney@redhat.com>
4925
4926 * interps.c (interp_set): Check for a NULL "old_interp".
4927
c938e9b0
L
49282003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4929
4930 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4931 (install-only): Support DESTDIR.
4932 (uninstall): Likewise.
4933 (install-gdbtk): Likewise.
4934
9a146a11
EZ
49352003-08-08 Elena Zannoni <ezannoni@redhat.com>
4936
4937 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4938 contains something meaningful at all times.
4939
4940Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4941
62599e99 4942 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4943
56296155
BC
4944Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4945
62599e99 4946 * MAINTAINERS (write after approval): Added self.
56296155 4947
9710e734
AC
49482003-08-07 Andrew Cagney <cagney@redhat.com>
4949
4950 * inferior.h (AT_SYMBOL): Define.
4951 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4952 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4953 * mips-tdep.c (mips_call_dummy_address): Delete function.
4954 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4955 set call_dummy_address.
4956
98b3ab73
AC
49572003-08-07 Andrew Cagney <cagney@redhat.com>
4958
4959 * language.c (op_error): Delete function.
4960 (binop_type_check): Delete function.
4961 * language.h (type_op_error, range_op_error): Delete macros.
4962 (op_error): Delete declaration.
4963
2fcf52f0
AC
49642003-08-07 Andrew Cagney <cagney@redhat.com>
4965
4966 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4967
abd4220e 49682003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4969
abd4220e 4970 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4971 (x86_64_push_arguments): Skip the red zone.
abd4220e 4972
9dd5f34f
AC
49732003-08-05 Andrew Cagney <cagney@redhat.com>
4974
4975 * reggroups.c (reggroup_next): Check for the final entry.
4976
e5e78edc
AC
49772003-08-04 Andrew Cagney <cagney@redhat.com>
4978
ab4e3d93
AC
4979 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4980 * cli/cli-script.c (define_command): Call query directly, instead
4981 of passing it a buffer.
4982 * ocd.c (ocd_error): Pass error a constant format string.
4983 * remote-mips.c (mips_error): Use fputs_filtered.
4984
1062ca82
AC
4985 * solib-svr4.c (_initialize_svr4_solib): Update
4986 register_gdbarch_data call.
4987 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4988
fcc1c85c
AC
4989 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4990 (register_gdbarch_data): Delete "free" parameter. Update
4991 comments.
4992 * gdbarch.h, gdbarch.c: Re-generate.
4993 * reggroups.c (_initialize_reggroup): Update.
4994 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4995 * frame-base.c (_initialize_frame_base): Update.
4996 * frame-unwind.c (_initialize_frame_unwind): Update.
4997 * user-regs.c (_initialize_user_regs): Update.
4998 * remote.c (_initialize_remote): Update.
4999 * regcache.c (_initialize_regcache): Update.
5000
116f06ea
AC
5001 * regcache.c (xfree_regcache_descr): Delete function.
5002 (_initialize_regcache): Update call to register_gdbarch_data.
5003 (init_regcache_descr, init_legacy_regcache_descr): Use
5004 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
5005
e5e78edc
AC
5006 * remote.c (free_remote_state): Delete function.
5007 (_initialize_remote): Update register_gdbarch_data.
5008 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
5009 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
5010
6c7d17ba
AC
50112003-08-04 Andrew Cagney <cagney@redhat.com>
5012
5013 * reggroups.c (struct reggroup_el): Define.
5014 (struct reggroups): Delete field "nr_group". Replace array
5015 "group" with a "first" to "last" linked list.
5016 (reggroups_init): Update. Allocate using gdbarch's obstack.
5017 (reggroups_free): Delete function.
5018 (add_group): Update. Add "el" parameter.
5019 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
5020 (default_groups): Update.
5021 (reggroup_next): Replace reggroups.
5022 (reggroups_dump): Update.
5023 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
5024 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
5025 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
5026
89b7795b
DJ
50272003-08-04 Daniel Jacobowitz <drow@mvista.com>
5028
5029 * Makefile.in (tui-interp.o): Update dependencies.
5030
306d9ac5
DC
50312003-08-04 David Carlton <carlton@kealia.com>
5032
5033 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
5034 to internal_error call.
5035 * source.c (forward_search_command): Add "%s" format argument.
5036 (reverse_search_command): Ditto.
5037 * top.c (quit_confirm): Ditto.
5038 * cli/cli-setshow.c (do_setshow_command): Ditto.
5039 * cp-valprint.c (cp_print_class_method): Replace
5040 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
5041 (cp_print_class_member): Ditto.
5042 * event-top.c (command_line_handler): Ditto.
5043 * linux-proc.c (linux_info_proc_cmd): Ditto.
5044 * p-typeprint.c (pascal_type_print_base): Ditto.
5045 * p-valprint.c (pascal_object_print_class_method): Ditto.
5046 (pascal_object_print_class_member): Ditto.
5047 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
5048 * remote.c (remote_cisco_section_offsets): Ditto.
5049 * top.c (command_line_input): Ditto.
5050 * utils.c (vwarning,error_stream,quit): Ditto.
5051 * valprint.c (print_floating,print_binary_chars)
5052 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
5053
57bfe177
AC
50542003-08-04 Andrew Cagney <cagney@redhat.com>
5055
5056 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
5057
e546b999
AC
50582003-08-02 Andrew Cagney <cagney@redhat.com>
5059
5060 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
5061 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5062 amd64fbsd-nat.c.
5063
91092ee5
AC
50642003-08-02 Andrew Cagney <cagney@redhat.com>
5065
5066 * Makefile.in: Update all dependencies and definitions.
5067
889f28e2
AF
50682003-08-02 Adam Fedor <fedor@gnu.org>
5069
5070 * linespec.c (is_objc_method_format): New function
5071 (decode_line_1, locate_first_half): Use it.
5072 Fixes PR objc/1298
5073
880bc914
AC
50742003-08-01 Andrew Cagney <cagney@redhat.com>
5075
5076 * NEWS: Mention that m32r is multi-arch.
5077 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5078 * configure.tgt: Recognize m32r-*-*.
5079 * config/m32r/tm-m32r.h: Delete file.
5080 * config/m32r/m32r.mt: New file.
a8f4cde1 5081 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
5082 gethostname succeeds, in order to avoid a compilation
5083 warning.
5084 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5085 compiler warning.
5086
19f59343
MS
50872003-08-01 Michael Snyder <msnyder@redhat.com>
5088
5089 * sh-tdep.c (sh_frame_align): New gdbarch method.
5090 (sh_gdbarch_init): Set up frame_align method.
5091
4e7d7511
MS
50922003-07-31 Michael Snyder <msnyder@redhat.com>
5093
5094 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5095 which is already covered by the new frames infrastructure.
5096
63022984
AC
50972003-07-31 Andrew Cagney <cagney@redhat.com>
5098
5099 * user-regs.c (struct user_reg): Add "next" link.
5100 (struct user_regs): Replace "user" with "first" and "last" links.
5101 (append_user_reg): Add pre-allocated "reg" parameter.
5102 (builtin_user_regs): Provide initial value for "last".
5103 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5104 (user_regs_init): Allocate memory from the gdbarch obstack.
5105 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5106 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5107 linked list.
5108 (usernum_to_user_reg): New function.
5109 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5110 (value_of_user_reg): Use usernum_to_user_reg.
5111 (user_regs_free): Delete function.
5112 (_initialize_user_regs): Update register_gdbarch_data call.
5113
7cf6e574
DJ
51142003-07-31 Daniel Jacobowitz <drow@mvista.com>
5115
5116 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5117
c48a845b
MS
51182003-07-30 Michael Snyder <msnyder@redhat.com>
5119
4e7d7511 5120 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 5121 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
5122 value_being_returned.
5123 * infcmd.c (print_return_value): Pass zero as struct_addr.
5124 * values.c (value_being_returned): If struct_addr is passed,
5125 use it instead of trying to recover it from the inferior.
5126
f0d8db19
KB
51272003-07-30 Kevin Buettner <kevinb@redhat.com>
5128
5129 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5130 the prologue analyzer won't need to attempt to extract the pc
5131 value from the woefully incomplete dummy frame.
5132 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5133 possible. Disable code which modifies the frame.
5134
e5c113a1
AC
51352003-07-28 Andrew Cagney <cagney@redhat.com>
5136
5137 * annotate.c (annotate_breakpoints_headers): Restrict annotation
5138 to level 2.
5139 (annotate_breakpoints_table, annotate_record): Ditto.
5140 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5141 (annotate_field_name_end, annotate_field_value): Ditto.
5142 (annotate_field_end, annotate_frame_source_begin): Ditto.
5143 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5144 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5145 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5146 (annotate_frame_address_end, annotate_frame_address): Ditto.
5147 (annotate_frame_args, annotate_frame_end): Ditto.
5148 (annotate_frame_where, annotate_arg_begin): Ditto.
5149 (annotate_arg_name_end, annotate_arg_value): Ditto.
5150 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5151 (annotate_function_call, annotate_signal_name): Ditto.
5152 (annotate_signal_string, annotate_signal_name_end): Ditto.
5153 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5154 (annotate_value_begin, annotate_value_history_value): Ditto.
5155 (annotate_value_history_end, annotate_value_end): Ditto.
5156 (annotate_display_begin, annotate_display_number_end): Ditto.
5157 (annotate_display_format, annotate_display_expression): Ditto.
5158 (annotate_display_expression_end, annotate_display_value): Ditto.
5159 (annotate_display_end, annotate_array_section_begin): Ditto.
5160 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5161 (annotate_elt, annotate_array_section_end): Ditto.
5162
bb1db049
AC
51632003-07-28 Andrew Cagney <cagney@redhat.com>
5164
5165 * regcache.c (struct regcache_descr): Update comments on
5166 nr_raw_registers.
5167 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5168 sizeof_raw_register_valid_p.
5169 (init_regcache_descr): Set nr_raw_registers and
5170 sizeof_raw_register_valid_p before calling
5171 init_legacy_regcache_descr.
5172
20e6603c
AC
51732003-07-28 Andrew Cagney <cagney@redhat.com>
5174
5175 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5176 MOD NUM_REGS.
5177
db742940
DJ
51782003-07-28 Daniel Jacobowitz <drow@mvista.com>
5179
5180 * thread.c (info_threads_command): Use get_selected_frame ().
5181 Check that there is at least one non-sentinel frame.
5182
ce7f4371
SC
51832003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5184
5185 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5186 (m68hc11_pop_frame): Remove.
5187 (m68hc11_frame_saved_pc): Remove.
5188 (m68hc11_frame_chain): Remove.
5189 (m68hc11_frame_init_saved_regs): Remove.
5190 (m68hc11_init_extra_frame_info): Remove.
5191 (m68hc11_store_struct_return): Remove.
5192 (m68hc11_saved_pc_after_call): Remove.
5193
1ea653ae
SC
51942003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5195
5196 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5197 frame unwind information.
5198 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5199 and adapted for frame unwinding.
5200 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5201 (m68hc11_unwind_pc): New function.
5202 (m68hc11_frame_unwind_cache): New function to analyze frames.
5203 (m68hc11_frame_this_id): New function to create new frame struct.
5204 (m68hc11_frame_prev_register): New function to unwind a register from
5205 the frame.
5206 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5207 (m68hc11_frame_p): New function for the above.
5208 (m68hc11_frame_base_address): New function to return fp of frame.
5209 (m68hc11_frame_args_address): Update for frame.
5210 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5211 (m68hc11_unwind_sp): New function.
5212 (m68hc11_unwind_dummy_id): New function.
5213 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5214 calls.
5215
c8a7f6ac
SC
52162003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5217
5218 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5219 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5220 when we are beyond the current pc.
5221
3dc990bf
SC
52222003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5223
5224 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5225 from m68hc11_push_arguments.
5226 (m68hc11_push_arguments): Remove.
5227 (m68hc11_push_return_address): Remove.
5228 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5229 handlers; remove deprecated_extra_stack_alignment_needed.
5230
222e5d1d
AC
52312003-07-27 Andrew Cagney <cagney@redhat.com>
5232
5233 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5234 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5235 REAL_PC and not the pointer.
5236 * hppa-hpux-tdep.c: Include frame.h
5237
a7e9a47e
AC
52382003-07-27 Andrew Cagney <cagney@redhat.com>
5239
5240 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5241 GDB_MULTI_ACH_PARTIAL.
5242
7e3dd49e
AC
52432003-07-27 Andrew Cagney <cagney@redhat.com>
5244
5245 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5246 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5247 operator at start and not end of line.
5248 (decode_prologue): Ditto.
5249 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5250 frame_unwind_register_unsigned instead of
5251 frame_unwind_unsigned_register.
5252 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5253 read_register.
5254 (m32r_push_dummy_call): Use register_size instead of
5255 REGISTER_RAW_SIZE.
5256 (m32r_frame_sniffer): Replace m32r_frame_p.
5257 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5258 * m32r-rom.c (report_transfer_performance): Delete extern
5259 declaration.
5260 (m32r_load, m32r_upload_command): Use print_transfer_performance
5261 instead of report_transfer_performance.
5262 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5263 / add_show_from_set.
5264
0880807f
AC
52652003-07-26 Andrew Cagney <cagney@redhat.com>
5266
5267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5268 store_return_value and extract_struct_value_address.
5269
64ae9269
DJ
52702003-07-26 Daniel Jacobowitz <drow@mvista.com>
5271
5272 PR c++/1267
5273 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5274 NULL, default to the section containing PC.
5275
e286caf2
SC
52762003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5277
5278 * NEWS: Mention "regs" deprecated for m68hc11 too.
5279
5280 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5281 (m68hc11_print_register): New function to print out one register.
5282 (m68hc11_print_registers_info): New function to print registers.
5283 (show_regs): Deprecate and use the above.
5284 (m68hc11_gdbarch_init): Install the print_registers_info.
5285
705b278b
JJ
52862003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5287
5288 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5289 that we have a SIGTRAP before returning non-zero.
5290
63cd4198
EZ
52912003-07-23 Michal Ludvig <mludvig@suse.cz>
5292 Elena Zannoni <ezannoni@redhat.com>
5293
a8f4cde1 5294 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5295 find_function_start_sal() returns empty record.
5296
6926787d
AS
52972003-07-23 Andreas Schwab <schwab@suse.de>
5298
5299 * ia64-tdep.c (ia64_print_insn): New function.
5300 (ia64_gdbarch_init): Set print_insn to it.
5301 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5302 deprecated_tm_print_insn_info.
5303
708cc1b6
MS
53042003-07-22 Michael Snyder <msnyder@redhat.com>
5305
5306 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5307 handle 8-bit returns (long long).
5308 (h8300h_extract_return_value): Ditto.
5309 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5310
aebd7893
AC
53112003-07-22 Andrew Cagney <cagney@redhat.com>
5312
5313 * gdbarch.c Include "gdb_obstack.h".
5314 (struct gdbarch): Add an "obstack".
5315 (alloc_gdbarch_data): Allocate the gdbarch data using
5316 GDBARCH_OBSTACK_CALLOC.
5317 (free_gdbarch_data): Delete function.
5318 (gdbarch_obstack_zalloc): New function.
5319 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5320 Assert that the architecture is not initialized.
5321 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5322 vector from the obstack.
5323 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5324 architecture obstack.
5325 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5326 (set_gdbarch_data): Assert that the data is not initialized.
5327 (struct gdbarch_data): Delete member "free".
5328 (register_gdbarch_data): Do not initialize "free".
5329 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5330
153721e6
AC
53312003-07-22 Andrew Cagney <cagney@redhat.com>
5332
5333 * configure.in (build_warnings): Add -Wformat-nonliteral.
5334 * configure: Re-generate.
5335
c193f044 53362003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5337
5338 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5339
c3228f12
EZ
53402003-07-22 Elena Zannoni <ezannoni@redhat.com>
5341
5342 * findvar.c (read_var_value): Remove case for thread local storage
5343 variables. It is now entirely handled by the dwarf2 location
5344 expression code.
5345 * printcmd.c (address_info): Ditto.
5346 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5347 enumeration value.
5348 (struct symbol): Remove objfile field, which was used by
5349 LOC_THREAD_LOCAL_STATIC only.
5350 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5351 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5352 usage of objfile pointer.
5353 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5354 thread local variables.
5355 Add include of objfiles.h.
5356 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5357 storage variables.
5358 * Makefile.in (dwarf2loc.o): Update dependencies.
5359
aef9bcd2
AC
53602003-07-22 Andrew Cagney <cagney@redhat.com>
5361
5362 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5363 get_frame_base.
5364 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5365 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5366 (struct value): Add opaque declaration.
5367 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5368
d95a8903
AC
53692003-07-21 Andrew Cagney <cagney@redhat.com>
5370
5371 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5372 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5373
4db73d49
SC
53742003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5375
a8f4cde1 5376 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5377 regcache_cooked_read_unsigned instead of read_register.
5378 (m68hc11_saved_pc_after_call): Likewise.
5379 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5380 instead of write_register.
5381 (m68hc11_register_type): New function.
5382 (m68hc11_register_virtual_type): Remove.
5383 (m68hc11_store_return_value): Convert to use the regcache.
5384 (m68hc11_extract_struct_value_address): Likewise.
5385 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5386 m68hc11_register_type; undeprecate store_return_value and
5387 extract_struct_value_address.
5388
ef2b8fcd
SC
53892003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5390
5391 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5392 and translate to use regcache.
5393 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5394
625b0b97
AC
53952003-07-18 Andrew Cagney <cagney@redhat.com>
5396
5397 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5398 * gdbarch.h, gdbarch.c: Re-generate.
5399 * i386-tdep.c (i386_gdbarch_init): Do not set
5400 DWARF2_BUILD_FRAME_INFO.
5401 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5402 unconditionally.
5403 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5404 DWARF2_BUILD_FRAME_INFO.
5405
22b0d388
AC
54062003-07-18 Andrew Cagney <cagney@redhat.com>
5407
5408 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5409 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5410
1ce5d6dd
AC
54112003-07-18 Andrew Cagney <cagney@redhat.com>
5412
5413 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5414 frame_unwind_address_in_block, instead of frame_pc_unwind.
5415 (dwarf2_frame_cache): Ditto.
5416
e6e5e94c
AC
54172003-07-18 Andrew Cagney <cagney@redhat.com>
5418
5419 * user-regs.h (struct gdbarch): Declare opaque.
5420 * ui-out.h (struct ui_file): Declare opaque.
5421 * dwarf2-frame.h (struct frame_info): Declare opaque.
5422
5483d879
KW
54232003-07-18 Kris Warkentin <kewarken@qnx.com>
5424
5425 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5426 #include "...".
5427 (procfs_meminfo): Change strerror to safe_strerror.
5428 (procfs_can_run): Remove K&R badness.
5429
278a7cf7
MS
54302003-07-17 Michael Snyder <msnyder@redhat.com>
5431
5432 * remote-sim.c: Comment typo fix.
5433
606e3b82
AC
54342003-07-17 Andrew Cagney <cagney@redhat.com>
5435
5436 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5437 configure.
5438 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5439 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5440 GDB_MULTI_ARCH_PARTIAL.
5441
c43af07c
EZ
54422003-07-17 Elena Zannoni <ezannoni@redhat.com>
5443
5444 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5445 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5446 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5447
3b85b0f1
TR
54482003-07-16 Theodore A. Roth <troth@openavr.org>
5449
5450 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5451 found.
5452 (avr_frame_unwind_cache): Don't unwind FP for main.
5453 Update a comment.
5454 Save the computed prev_sp.
5455 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5456 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5457 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5458
336d1bba
AC
54592003-07-16 Andrew Cagney <cagney@redhat.com>
5460
5461 * frame-base.h (frame_base_p_ftype): Delete definition.
5462 (frame_base_append_predicate): Delete declaration.
5463 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5464 (frame_unwind_append_predicate): Delete declaration.
5465 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5466 (append_predicate): Delete parameter "p".
5467 (frame_unwind_append_predicate): Delete function.
5468 (frame_unwind_append_sniffer): Update call to append_predicate.
5469 (frame_unwind_free): Delete function.
5470 (_initialize_frame_unwind): Pass NULL as "free" to
5471 register_gdbarch_data.
5472 (frame_unwind_init): Append the dummy_frame_sniffer.
5473 (frame_unwind_find_by_frame): Simplify.
5474 * frame-base.c (struct frame_base_table): Delete field "p".
5475 (append_predicate): Delete parameter "p".
5476 (frame_base_append_predicate): Delete function.
5477 (frame_base_append_sniffer): Update call to append_predicate.
5478 (frame_base_free): Delete function.
5479 (frame_base_find_by_frame): Simplify.
5480 (_initialize_frame_base): Pass NULL as "free" to
5481 register_gdbarch_data.
5482 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5483 (x86_64_sigtramp_frame_sniffer): Replace
5484 "x86_64_sigtramp_frame_p".
5485 (x86_64_init_abi): Set the frame unwind sniffers.
5486 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5487 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5488 (m68k_gdbarch_init): Set the frame unwind sniffers.
5489 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5490 "i386_sigtramp_frame_p".
5491 (i386_frame_sniffer): Replace "i386_frame_p".
5492 (i386_gdbarch_init): Set the frame unwind sniffers.
5493 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5494 (avr_gdbarch_init): Set the frame unwind sniffers.
5495 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5496 "alpha_sigtramp_frame_p"
5497 (alpha_heuristic_frame_sniffer): Replace
5498 "alpha_heuristic_frame_p".
5499 (alpha_gdbarch_init): Set the frame unwind sniffers.
5500 (alpha_dwarf2_init_abi): Ditto.
5501 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5502 "alpha_debug_frame_p".
5503 (alpha_mdebug_frame_base_sniffer): Replace
5504 "alpha_mdebug_frame_base_p".
5505 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5506 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5507 (d10v_gdbarch_init): Set the frame unwind sniffer.
5508 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5509 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5510 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5511 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5512 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5513 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5514
48db5a3c
CV
55152003-07-16 Michael Snyder <msnyder@redhat.com>
5516
5517 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5518 should go thru sh_dsp_register_sim_regno, else the dsp regs
5519 will not get the right values.
5520
55212003-07-16 Corinna Vinschen <vinschen@redhat.com>
5522
5523 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5524 deprecated_store_floating by call to store_typed_floating.
5525 (sh_sh4_register_convert_to_raw): Substitute call to
5526 deprecated_extract_floating by call to extract_typed_floating.
5527
55282003-07-16 Corinna Vinschen <vinschen@redhat.com>
5529
5530 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5531
55322003-07-16 Corinna Vinschen <vinschen@redhat.com>
5533
5534 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5535 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5536 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5537 as possible.
5538 (do_pseudo_register): Remove.
5539 (sh_push_dummy_code): New function.
5540 (sh64_store_struct_return): Rename from sh_store_struct_return.
5541 Only called for sh64 now.
5542 (sh_extract_struct_value_address): Regcache'ify.
5543 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5544 and accomodate new tasks.
5545 (sh64_push_return_address): Rename from sh_push_return_address.
5546 Only called for sh64 now.
5547 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5548 Regcache'ify.
5549 (sh3e_sh4_extract_return_value): Regcache'ify.
5550 (sh_default_store_return_value): Ditto.
5551 (sh3e_sh4_store_return_value): Ditto.
5552 (sh_default_register_byte): Remove.
5553 (sh_sh4_register_byte): Remove.
5554 (sh_default_register_raw_size): Remove.
5555 (sh_sh4_register_raw_size): Remove.
5556 (sh_register_virtual_size): Remove.
5557 (sh_sh3e_register_virtual_type): Remove.
5558 (sh_sh3e_register_type): New function.
5559 (sh_sh4_register_virtual_type): Remove.
5560 (sh_sh4_register_type): New function.
5561 (sh_default_register_virtual_type): Remove.
5562 (sh_default_register_type): New function.
5563 (do_fv_register_info): Add parameters to accomodate call from
5564 sh_print_registers_info.
5565 (do_dr_register_info): Ditto.
5566 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5567 Add parameters to accomodate call from sh_print_registers_info.
5568 (sh_do_fp_register): Ditto.
5569 (sh64_do_pseudo_register): Call do_dr_register_info,
5570 do_fv_register_info and sh_do_fp_register with default parameters.
5571 (sh_do_register): Add parameters to accomodate call from
5572 sh_print_registers_info.
5573 (sh_print_register): Ditto.
5574 (sh_print_registers_info): Rename from sh_do_registers_info.
5575 Add parameters to be used as gdbarch_print_registers_info
5576 implementation. Accomodate removed do_pseudo_register function
5577 pointer.
5578 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5579 function pointer. Call sh_print_register with default parameters.
5580 (sh64_do_registers_info): Call sh_print_registers_info instead of
5581 sh_do_registers_info.
5582 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5583 detection of deprecated vs. non-deprecated functionality.
5584 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5585 function pointer assignments by direct function calls.
5586
e8a89fe2
AC
55872003-07-15 Andrew Cagney <cagney@redhat.com>
5588
5589 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5590 (frame_register_unwind, create_new_frame): Ditto.
5591 (legacy_get_prev_frame, get_frame_type): Ditto.
5592 (get_frame_base_address): Use frame_base_find_by_frame.
5593 (get_frame_locals_address): Use frame_base_find_by_frame.
5594 (get_frame_args_address): Use frame_base_find_by_frame.
5595 * frame-base.h (frame_base_sniffer_ftype): Declare.
5596 (frame_base_append_sniffer): Declare.
5597 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5598 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5599 (frame_base_append_sniffer): New function.
5600 (frame_base_append_predicate): Add a NULL sniffer.
5601 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5602 (struct frame_base_table): Add "sniffer".
5603 (frame_base_free): Free the "sniffer" table.
5604 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5605 (frame_unwind_append_sniffer): Declare.
5606 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5607 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5608 (struct frame_unwind_table): Add "sniffer", delete "middle".
5609 (append_predicate): Add "sniffer" parameter, append the sniffer.
5610 (frame_unwind_init): Update append_predicate call.
5611 (frame_unwind_append_sniffer): New function.
5612 (frame_unwind_append_predicate): Update append_predicate call.
5613 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5614
0714963c
AC
56152003-07-15 Andrew Cagney <cagney@redhat.com>
5616
5617 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5618 before code inhibiting repeated unwind attempts. Add to
5619 commentary on that test's problems.
5620 * blockframe.c (inside_main_func): Look for "main" in the minimal
5621 symbol table.
5622 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5623 identical.
5624
d9170e22
AC
56252003-07-15 Andrew Cagney <cagney@redhat.com>
5626
5627 * complaints.c (struct explanation): Define.
5628 (struct complaints): Change type of "explanation" to "struct
5629 explanation".
5630 (symfile_explanations): Convert to a "struct explanation" table.
5631 (vcomplaint): Update.
5632
eba29c8c
ML
56332003-07-15 Michal Ludvig <mludvig@suse.cz>
5634
5635 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5636 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5637 x86_64_linux_(fill,supply)_gregset functions.
5638 * x86-64-linux-tdep.c (USER_*): New defines.
5639 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5640 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5641 New functions.
5642 (fetch_core_registers): Ditto.
5643 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5644 * x86-64-linux-tdep.h: New file.
5645 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5646 and core-regset.o.
5647 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5648
68cc0bfb
MK
56492003-07-13 Mark Kettenis <kettenis@gnu.org>
5650
88a115f7
MK
5651 * x86-64-tdep.c (x86_64_store_return_value): Use
5652 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5653
68cc0bfb
MK
5654 * configure.host: Add x86_64-*-freebsd*.
5655 * configure.tgt: Add x86_64-*-freebsd*.
5656 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5657 * amd64fbsd-nat.c: New file.
5658 * amd64fbsd-tdep.c: New file.
5659 * config/i386/nm-fbsd64.h: New file.
5660 * config/i386/fbsd64.mh: New file.
5661 * config/i386/fbsd64.mt: New file.
5662
138e7be5
MK
56632003-07-11 Mark Kettenis <kettenis@gnu.org>
5664
5665 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5666 `sc_regs_offset' and `sc_fpregs_offset'.
5667 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5668 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5669 (alpha_sigtramp_register_address): Rewrite to use new members of
5670 `struct gdbarch_tdep'.
5671 (alpha_gdbarch_init): Initialize new members of struct
5672 gdbarch_tdep'.
5673 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5674 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5675 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5676 (alphafbsd_pc_in_sigtramp): Implement.
5677 (alphafbsd_sigtramp_offset): New function.
5678 (alphafbsd_sigcontext_addr): New function.
5679 (alphafbsd_init_abi): Initialize signal trampoline related members
5680 of `struct gdbarch_tdep'.
5681 (_initialize_alphafbsd_tdep): Add prototype.
5682
95303a68
TR
56832003-07-11 Theodore A. Roth <troth@openavr.org>
5684
ba292e4c
TR
5685 * Makefile.in (install-only): Quote sed expression when generating
5686 transformed_name.
95303a68 5687
6896c0c7
RH
56882003-07-11 Richard Henderson <rth@redhat.com>
5689
5690 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5691 * dwarf2-frame.c: Include complaints.h.
5692 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5693 variable initialization; return NULL on error.
5694 (decode_frame_entry): New.
5695
8edd5d01
AC
56962003-07-11 Andrew Cagney <cagney@redhat.com>
5697
c4a09524
AC
5698 * frame.h (frame_address_in_block): Delete declaration.
5699 * blockframe.c (frame_address_in_block): Delete function.
5700 (get_frame_block): Use get_frame_address_in_block.
5701 (block_innermost_frame): Ditto.
5702 * stack.c (print_frame, backtrace_command_1): Ditto.
5703
8edd5d01
AC
5704 * frame.h (get_frame_address_in_block): Declare.
5705 (frame_unwind_address_in_block): Declare.
5706 * frame.c (frame_unwind_address_in_block): New function.
5707 (get_frame_address_in_block): New function.
5708
f7968451
AC
57092003-07-10 Andrew Cagney <cagney@redhat.com>
5710
5711 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5712 pre-default. Note: re-generate has no effect.
a8f4cde1 5713
ae99b398
AC
57142003-07-10 Andrew Cagney <cagney@redhat.com>
5715
5716 * gdbarch.sh: When a variable, but not a function, compare against
5717 0. Fix problem in previous patch.
5718 * gdbarch.c: Re-generate.
a8f4cde1 5719
956ac328
AC
57202003-07-10 Andrew Cagney <cagney@redhat.com>
5721
5722 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5723 functions against NULL, not 0.
5724 * gdbarch.c: Re-generate.
a8f4cde1 5725
287c3240
FF
57262003-07-10 Fred Fish <fnf@ninemoons.com>
5727
5728 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5729 null string instead of a null pointer.
5730 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5731
32f63c4b
MS
57322003-07-09 Michael Snyder <msnyder@redhat.com>
5733
5734 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5735
402ecd56
MK
57362003-07-09 Mark Kettenis <kettenis@gnu.org>
5737
5738 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5739 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5740 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5741 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5742 * x86-64-tdep.c: ... from here.
5743
c481dac7
AS
57442003-07-09 Andreas Schwab <schwab@suse.de>
5745
5746 * m68k-tdep.h (enum struct_return): Define.
5747 (struct gdbarch_tdep): Add struct_return.
5748 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5749 bytes are padded to the right, not to the left. Pass struct value
5750 address in register %a1, not on stack.
5751 (m68k_use_struct_convention): New function.
5752 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5753 struct_return in tdep to pcc_struct_return.
5754 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5755 reg_struct_return.
5756
a8f4cde1 57572003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5758
a8f4cde1 5759 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5760
96a4ee76
AC
57612003-07-09 Andrew Cagney <cagney@redhat.com>
5762
5763 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5764 Add comments about the checks.
5765
1517c6d1
AC
57662003-07-08 Andrew Cagney <cagney@redhat.com>
5767
5768 * Makefile.in: Make dependency section headers consistent.
5769 (config_h): Move to $BUILD headers section.
5770 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5771 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5772 (ada-exp.tab.c): Move to YACC/LEX section.
5773 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5774 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5775
dc5dd1eb
KW
57762003-07-08 Kris Warkentin <kewarken@qnx.com>
5777
5778 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5779 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5780 of strerror with safe_strerror, use ISO C function definitions,
5781 and replace instances of sprintf with snprintf.
dc5dd1eb 5782
612dde91
AC
57832003-07-07 Andrew Cagney <cagney@redhat.com>
5784
5785 * frame.c (get_prev_frame): Enable check for identical frames.
5786 Update comments. Update error messages.
5787
492c11d3
JB
57882003-07-07 Joel Brobecker <brobecker@gnat.com>
5789
5790 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5791
376a5a49
JB
57922003-07-07 Joel Brobecker <brobecker@gnat.com>
5793
5794 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5795 sort_symtab_syms, no longer necessary.
5796
22b4a9ad
JB
57972003-07-07 Joel Brobecker <brobecker@gnat.com>
5798
5799 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5800
5bbcb741
JB
58012003-07-07 Joel Brobecker <brobecker@gnat.com>
5802
5803 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5804 (mips_register_byte): Likewise.
5805
c139e7d9
DJ
58062003-07-07 Daniel Jacobowitz <drow@mvista.com>
5807
5808 * Makefile.in (sparc_tdep_h): New.
5809 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5810 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5811 * sparc-linux-nat.c: Include "sparc-tdep.h".
5812 * sparc-nat.c: Likewise.
5813 * sparc-tdep.c: Likewise.
5814 * sparc64nbsd-nat.c: Likewise.
5815 * sparcnbsd-nat.c: Likewise.
5816 * sparcnbsd-tdep.c: Likewise.
5817 * sparc-tdep.h: New file.
5818 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5819 and sparc_npc_regnum.
5820
fd8f87c5
DJ
58212003-07-07 Daniel Jacobowitz <drow@mvista.com>
5822
5823 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5824 (mips_linux_cannot_store_register): List supported instead of
5825 unsupported registers.
5826
13adf674
DJ
58272003-07-07 Daniel Jacobowitz <drow@mvista.com>
5828
5829 * disasm.c (dump_insns): Separate instructions from addresses.
5830
8de307e0
AS
58312003-07-07 Andreas Schwab <schwab@suse.de>
5832
5833 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5834 dependencies.
5835 * m68k-tdep.c (NUM_FREGS): Delete.
5836 (SIG_PC_FP_OFFSET): Delete.
5837 (TARGET_M68K): Delete.
5838 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5839 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5840 P_MOVEL_SP, P_MOVEML_SP): Define.
5841 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5842 P_TRAP): Delete.
5843 (m68k_register_raw_size): Delete.
5844 (m68k_register_virtual_size): Delete.
5845 (m68k_register_type): Renamed from m68k_register_virtual_type and
5846 add gdbarch argument.
5847 (m68k_store_struct_return): Delete.
5848 (m68k_deprecated_extract_return_value): Delete.
5849 (m68k_deprecated_extract_struct_value_address): Delete.
5850 (m68k_frame_chain): Delete.
5851 (m68k_frame_saved_pc): Delete.
5852 (m68k_fix_call_dummy): Delete.
5853 (m68k_push_dummy_frame): Delete.
5854 (m68k_pop_frame): Delete.
5855 (m68k_extract_return_value): New function.
5856 (m68k_store_return_value): Rewrite using regcache.
5857 (m68k_extract_struct_value_address): Rewrite using regcache.
5858 (m68k_push_dummy_call): New function.
5859 (struct m68k_frame_cache): Define.
5860 (m68k_alloc_frame_cache): New function.
5861 (m68k_analyze_frame_setup): New function.
5862 (m68k_analyze_register_saves): New function.
5863 (m68k_analyze_prologue): New function.
5864 (m68k_skip_prologue): Rewrite using above functions.
5865 (m68k_unwind_pc): New function.
5866 (m68k_frame_cache): New function.
5867 (m68k_frame_this_id): New function.
5868 (m68k_frame_prev_register): New function.
5869 (m68k_frame_unwind): New variable.
5870 (m68k_frame_p): New function.
5871 (m68k_sigtramp_frame_cache): New function.
5872 (m68k_sigtramp_frame_this_id): New function.
5873 (m68k_sigtramp_frame_prev_register): New function.
5874 (m68k_sigtramp_frame_unwind): New variable.
5875 (m68k_sigtramp_frame_p): New function.
5876 (m68k_frame_base_address): New function.
5877 (m68k_frame_base): New function.
5878 (m68k_unwind_dummy_id): New function.
5879 (fill_gregset): Use regcache_collect.
5880 (fill_fpregset): Likewise.
5881 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5882 defined.
5883 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5884 deprecated_init_frame_pc, deprecated_store_struct_return,
5885 deprecated_extract_return_value, deprecated_store_return_value,
5886 deprecated_frame_chain, deprecated_frame_saved_pc,
5887 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5888 deprecated_register_virtual_size,
5889 deprecated_max_register_raw_size,
5890 deprecated_max_register_virtual_size,
5891 deprecated_register_virtual_type, deprecated_register_size,
5892 deprecated_register_byte, deprecated_register_bytes,
5893 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5894 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5895 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5896 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5897 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5898 deprecated_push_dummy_frame, deprecated_pop_frame,
5899 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5900 only if SYSCALL_TRAP is defined. Set extract_return_value,
5901 store_return_value, extract_struct_value_address, register_type,
5902 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5903 predicates.
5904 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5905 M68K_MAX_REGISTER_SIZE): Define.
5906 (struct m68k_sigtramp_info): Define.
5907 (struct gdbarch_tdep): Add get_sigtramp_info.
5908 * m68klinux-nat.c (fetch_register): Use register_size instead of
5909 REGISTER_RAW_SIZE. Don't put assignment in if.
5910 (store_register): Likewise.
5911 (fetch_inferior_registers): Likewise.
5912 (store_inferior_registers): Likewise.
5913 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5914 (m68k_linux_frame_saved_pc): Delete.
5915 (m68k_linux_sigcontext_reg_offset,
5916 m68k_linux_ucontext_reg_offset): Define.
5917 (m68k_linux_get_sigtramp_info): New function.
5918 (m68k_linux_extract_return_value): Rewrite using regcache.
5919 (m68k_linux_store_return_value): Likewise.
5920 (m68k_linux_extract_struct_value_address): Likewise.
5921 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5922 Don't set deprecated_frame_saved_pc,
5923 deprecated_extract_return_value, deprecated_store_return_value,
5924 deprecated_extract_struct_value_address. Set
5925 extract_return_value, store_return_value,
5926 extract_struct_value_address.
5927
eb8bc282
AC
59282003-07-07 Andrew Cagney <cagney@redhat.com>
5929
5930 * expprint.c: Include "user-regs.h" instead of "frame.h".
5931 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5932 frame_map_regnum_to_name.
5933 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5934 (frame_map_name_to_regnum): Simplify, call
5935 user_reg_map_name_to_regnum.
5936 (frame_map_regnum_to_name): Simplify, call
5937 user_reg_map_regnum_to_name.
5938 (frame_register_unwind): Update.
5939 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5940 (_initialize_frame_reg): Call user_reg_add_builtin.
5941 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5942 (value_of_register): Use value_of_user_reg.
5943 * eval.c (evaluate_subexp_standard): Update.
5944 * parse.c (write_dollar_variable): Update.
5945 * d10v-tdep.c (d10v_print_registers_info): Update.
5946 * infcmd.c (registers_info): Update.
5947 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5948 (builtin_regs_h): Delete macro.
5949 (user_regs_h): Define.
5950 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5951 (builtin-regs.o): Delete target.
5952 (user-regs.o): Specify dependencies.
5953 (expprint.o): Update dependencies.
5954 (findvar.o): Update dependencies.
5955 (frame.o): Update dependencies.
5956 (std-regs.o): Update dependencies.
5957
9f476a01
CF
59582003-07-06 Christopher Faylor <cgf@redhat.com>
5959
5960 * win32-nat.c (solib_symbols_add): Use one variable for all section
5961 address stuff. Pass variable rather than address of variable to
5962 safe_symbol_file_add.
5963
a731b831
AS
59642003-07-06 Andreas Schwab <schwab@suse.de>
5965
5966 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5967
9f83329d
JB
59682003-07-04 Joel Brobecker <brobecker@gnat.com>
5969
5970 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5971
27e28cc5
KW
59722003-07-04 Kris Warkentin <kewarken@qnx.com>
5973
5974 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5975
59762003-07-04 Kris Warkentin <kewarken@qnx.com>
5977
5978 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5979 * config/i386/nto.mh: New file.
5980 * config/i386/nm-nto.h: New file.
5981 * configure.host: Add i[3456]86-*-nto*.
5982
100f2e98
JB
59832003-07-03 Joel Brobecker <brobecker@gnat.com>
5984
5985 * remote-vx.c (vx_add_symbols): Fix compilation error.
5986
e23457df
AC
59872003-07-03 Andrew Cagney <cagney@redhat.com>
5988
5989 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5990 * gdbarch.h, gdbarch.c: Re-generate.
5991 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5992 (legacy_register_name): Declare.
5993 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5994 (REGISTER_NAME): Define.
5995 * sparc-tdep.c (legacy_register_name): New function.
5996 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5997 (REGISTER_NAME): Define.
5998 (hppa64_register_name): Declare.
5999 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
6000 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
6001 (hppa64_register_name): New function.
6002 (hppa_register_name): New function.
6003 * arch-utils.c (legacy_register_name): Delete.
6004 * arch-utils.h (legacy_register_name): Delete.
6005
38caaeec
DJ
60062003-07-03 Daniel Jacobowitz <drow@mvista.com>
6007
6008 * cli/cli-interp.c (cli_interpreter_resume): Update the
6009 cli_uiout's stream to gdb_stdout.
6010
dadd712e
AC
60112003-07-03 Andrew Cagney <cagney@redhat.com>
6012
6013 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
6014 predicate.
6015 * gdbarch.h, gdbarch.c: Re-generate.
6016 * regcache.c (init_regcache_descr): Use legacy code when either
6017 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
6018
c7f1390e
DJ
60192003-07-02 Daniel Jacobowitz <drow@mvista.com>
6020
6021 * NEWS: Move "set logging" entry into GDB 6.0 section.
6022
4bc8c588
JB
60232003-07-02 Jim Blandy <jimb@redhat.com>
6024
a9dd42f1
JB
6025 * s390-tdep.c (struct frame_extra_info): new member:
6026 'stack_bought_valid'.
6027 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
6028 initialize fextra_info->stack_bought.
6029 (s390_frameless_function_invocation): Don't trust the value of
6030 fextra_info_ptr->stack_bought unless
6031 fextra_info->stack_bought_valid is set.
6032
4bc8c588
JB
6033 New S390 prologue analyzer.
6034 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
6035 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
6036 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
6037 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
6038 compute_x_addr, s390_on_stack, s390_store,
6039 s390_get_signal_frame_info): New functions.
6040 (S390_NUM_SPILL_SLOTS): New macro.
6041 (s390_get_frame_info): Rewritten.
6042 (is_arg_reg): Deleted.
6043
6044 Break out the decoding of S/390 instructions into separate
6045 functions, to make it more legible, and easier to check
6046 against the spec.
6047 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
6048 is_rx, is_rxe): New functions.
6049 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
6050 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
6051 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
6052 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
6053 enums for opcode values. (Is this an improvement?)
6054
fd13a04a
AC
60552003-07-02 Andrew Cagney <cagney@redhat.com>
6056
6057 * i386-tdep.c: Revert change committed as part of trad-frame code
6058 below.
6059
3f8091c1
DJ
60602003-07-02 Daniel Jacobowitz <drow@mvista.com>
6061
6062 * breakpoint.c (insert_catchpoint): Make static.
6063
8dd5115e
AS
60642003-07-02 Andreas Schwab <schwab@suse.de>
6065
6066 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6067 former ia64_push_arguments and ia64_push_return_address, and use
6068 regcache functions instead of read/write_register.
6069 (ia64_gdbarch_init): Set push_dummy_call instead of
6070 deprecated_push_arguments and deprecated_push_return_address.
6071
a2229c23
AJ
60722003-07-01 Andreas Jaeger <aj@suse.de>
6073
6074 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6075 before the call.
6076 Set %rax only to number of SSE registers used.
6077
3b3850e8
AC
60782003-07-01 Andrew Cagney <cagney@redhat.com>
6079
6080 * trad-frame.h: Update comments, a -1 .addr is reserved.
6081 (trad_frame_value_p, trad_frame_addr_p): Declare.
6082 (trad_frame_reg_p): Declare.
6083 (trad_frame_set_value): Rename trad_frame_register_value.
6084 (trad_frame_set_unknown): Declare.
6085 * trad-frame.c (trad_frame_realreg_p): New function.
6086 (trad_frame_addr_p, trad_frame_value_p): New function.
6087 (trad_frame_set_unknown): New function.
6088 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6089 (trad_frame_prev_register): Use trad_frame_realreg_p,
6090 trad_frame_addr_p and trad_frame_value_p.
6091 (trad_frame_set_value): Rename trad_frame_register_value.
6092 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6093 and trad_frame_set_value.
a2229c23 6094
4d819d0e
JB
60952003-06-30 Jim Blandy <jimb@redhat.com>
6096
6097 Patch from IBM (authors unspecified, probably Ulrich Weigand and
6098 Gerhard Tonn) for argument passing on the S/390 and S/390x:
6099 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6100 for 16 registers, and then 32 more bytes.
6101 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6102 New macros.
6103 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6104 Move up in the file, since it's now used by is_simple_arg.
6105 (is_simple_arg): Don't assume registers are four bytes long.
6106 Exclude all double arguments. Extended floats are not simple
6107 args.
6108 (is_power_of_two): New function.
6109 (pass_by_copy_ref): Call is_power_of_two, and check that the
6110 length fits in a register, rather than listing all the acceptable
6111 sizes. Extended floats are not passed by reference.
6112 (s390_push_arguments): Don't assume registers are four bytes long.
6113 Reserve an argument register to point to the buffer for structures
6114 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
6115 S390_STACK_FRAME_OVERHEAD.
6116
1ad828f1
AS
61172003-06-30 Andreas Schwab <schwab@suse.de>
6118
6119 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6120 format error message.
6121
39b00981
JB
61222003-06-30 Joel Brobecker <brobecker@gnat.com>
6123
6124 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6125
b2a7f303
DC
61262003-06-30 David Carlton <carlton@kealia.com>
6127
6128 Band-aid for PR c++/1245.
6129 * Makefile.in (cp-support.o): Depend on complaints_h.
6130 * cp-support.c: Include complaints.h. Add declaration for
6131 find_last_component.
6132 (cp_find_first_component): Separate code into
6133 cp_find_first_component_aux.
6134 (cp_find_first_component_aux): Call demangled_name_complaint.
6135 (demangled_name_complaint): New.
6136
a257b5bb
AC
61372003-06-30 Andrew Cagney <cagney@redhat.com>
6138
6139 * remote.c (remote_write_bytes): Explicitly compute and then use
6140 the payload size. Update comments to reflect. Fixes problem of
6141 GDB not sending small packets as found by Fred Fish.
6142
0a2cfde4
AC
61432003-06-30 Andrew Cagney <cagney@redhat.com>
6144
6145 * remote.c (remote_async_wait): Fix -Wformat problem.
6146
3fcb8548
AC
61472003-06-29 Andrew Cagney <cagney@redhat.com>
6148
6149 * remote.c (remote_wait): Call error, and not warning, when the
6150 packet is corrupt.
6151 (remote_async_wait): Ditto.
6152
9f9970a3
DJ
61532003-06-29 Daniel Jacobowitz <drow@mvista.com>
6154
6155 * sparc-tdep.c (sparc_y_regnum): Make external again.
6156
83a8ccca
DJ
61572003-06-29 Daniel Jacobowitz <drow@mvista.com>
6158
6159 * cli/cli-logging.c (pop_output_files): Add void to function
6160 definition.
6161
d2cf594a
AC
61622003-06-29 Andrew Cagney <cagney@redhat.com>
6163
6164 * frame.c (frame_register_unwind): Use unsigned char when dumping
6165 the buffer contents.
6166
0fac0b41
DJ
61672003-06-28 Daniel Jacobowitz <drow@mvista.com>
6168
6169 * cli/cli-logging.c: New file.
6170 * cli-out.c (struct ui_out_data): Add original_stream.
6171 (cli_redirect): New function.
6172 (cli_ui_out_impl): Add cli_redirect.
6173 (cli_out_new): Initialize original_stream.
6174 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6175 (uo_redirect, ui_out_redirect): New.
6176 * ui-out.h (struct ui_out_impl): Add redirect member.
6177 (redirect_ftype): New.
6178 (ui_out_redirect): Add prototype.
6179 * Makefile.in: Add rules for cli-logging.c.
6180 * NEWS: Mention "set logging".
6181
88a07d7c
EZ
61822003-06-27 Elena Zannoni <ezannoni@redhat.com>
6183
6184 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6185
4eb58876
AC
61862003-06-27 Andrew Cagney <cagney@redhat.com>
6187
6188 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6189 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6190 * avr-tdep.c (avr_call_dummy_address): Delete function.
6191 (avr_gdbarch_init): Do not set call_dummy_address.
6192
1549f619
EZ
61932003-06-27 Elena Zannoni <ezannoni@redhat.com>
6194
6195 * symfile.c (syms_from_objfile): Move variables to inner block.
6196 Move the checks for the non-mainline case a bit earlier to avoid
6197 doing some useless computations.
6198
3cb3398d
EZ
61992003-06-27 Elena Zannoni <ezannoni@redhat.com>
6200
6201 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6202
3799ccc6
EZ
62032003-06-26 Elena Zannoni <ezannoni@redhat.com>
6204
6205 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6206 sections.
6207
ce1f6491
MC
62082003-06-26 Michael Chastain <mec@shout.net>
6209
6210 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6211 gdb/testsuite/gdb.c++/pr-1210.exp.
6212
d958dfd0
AC
62132003-06-26 Andrew Cagney <cagney@redhat.com>
6214
6215 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6216 altivec_expression.h and altivec_registers.h.
6217
d31431ed
AC
62182003-06-26 Andrew Cagney <cagney@redhat.com>
6219
6220 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6221 info->mach when MIPS16. Patch suggested by Fred Fish.
6222
714b1282
AC
62232003-06-26 Andrew Cagney <cagney@redhat.com>
6224
6225 * utils.c (internal_vproblem): Print the problem to a reason
6226 buffer and then pass to query. Make the msg variable more local.
6227
42efa47a
AC
62282003-06-26 Andrew Cagney <cagney@redhat.com>
6229
6230 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6231 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6232 * gdbarch.h, gdbarch.c: Re-generate.
6233 * frame-base.c (default_frame_args_address): Update. Use
6234 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6235 not available.
6236 (default_frame_locals_address): Ditto for
6237 DEPRECATED_FRAME_LOCALS_ADDRESS.
6238 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6239 (vax_frame_num_args): Update.
6240 (vax_gdbarch_init): Update.
6241 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6242 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6243 * mcore-tdep.c (mcore_gdbarch_init): Update.
6244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6245 * ia64-tdep.c (ia64_gdbarch_init): Update.
6246 * symtab.h (address_class): Update comments.
6247 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6248 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6249 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6250 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6251 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6252 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6253 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6254 * alpha-mdebug-tdep.c: Update.
6255 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6256
8ffd9b1b
AJ
62572003-06-26 Andreas Jaeger <aj@suse.de>
6258
6259 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6260 of SSE registers so that varargs functions work. Rework handling
6261 of passing arguments on the stack.
6262 (x86_64_store_return_value): Return double and float values in SSE
6263 register.
6264
e8ac10a6
MC
62652003-06-24 Michael Chastain <mec@shout.net>
6266
6267 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6268 the "constructor breakpoints ignored" bug.
6269
986af8e6
DC
62702003-06-25 David Carlton <carlton@kealia.com>
6271
6272 * MAINTAINERS: Update e-mail address.
6273
d64558a5
JB
62742003-06-24 Jim Blandy <jimb@redhat.com>
6275
e538d2d7
JB
6276 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6277
02631ec0
JB
6278 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6279 function.
6280 (ppc_linux_init_abi): Register it as the
6281 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6282
e716d87a
JB
6283 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6284 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6285 method.
6286
d64558a5
JB
6287 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6288 (ppc64_standard_linkage_target): Use it.
6289
449a5da4
AC
62902003-06-23 Andrew Cagney <cagney@redhat.com>
6291
6292 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6293 for 0 "int0" and 4 "int32" sized registers.
6294 * gdbtypes.c (builtin_type_int0): Define.
6295 (build_gdbtypes): Initialize builtin_type_int0.
6296 * gdbtypes.h (builtin_type_int0): Declare.
6297
b2a02dda
SC
62982003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6299
6300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6301 as characters are unsigned.
6302
fba3138e
DJ
63032003-06-22 Daniel Jacobowitz <drow@mvista.com>
6304
6305 PR gdb/1179
6306 * dwarfread.c (struct_type): Skip static fields without crashing.
6307
f6c8180b
AC
63082003-06-22 Andrew Cagney <cagney@redhat.com>
6309
6310 GDB 6.0 branch created.
f2c06f52
AC
6311 * README: Update.
6312 * PROBLEMS: Update. Empty.
6313 * NEWS: Update.
f6c8180b 6314
ae822768
DJ
63152003-06-22 Daniel Jacobowitz <drow@mvista.com>
6316
6317 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6318 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6319
261de166
AC
63202003-06-22 Andrew Cagney <cagney@redhat.com>
6321
6322 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6323 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6324 Velikov.
6325
30e94205
DJ
63262003-06-22 Daniel Jacobowitz <drow@mvista.com>
6327
6328 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6329 compilers.
6330
9e14d721
DJ
63312003-06-21 Daniel Jacobowitz <drow@mvista.com>
6332
6333 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6334 argument of val_print.
6335 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6336 to the address argument of baseclass_offset or target_read_memory.
6337 Do add it to the argument of cp_print_value_fields.
6338
a4b8ebc8
AC
63392003-06-21 Andrew Cagney <cagney@redhat.com>
6340
6341 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6342 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6343 instead of 0..NUM_REGS.
6344 (mips_register_reggroup_p): New function.
6345 (mips_pseudo_register_write): New function.
6346 (mips_pseudo_register_read): New function.
6347 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6348 based on the register's type.
6349 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6350 cooked.
6351 (mips_get_saved_register): Simplify. Assert that REGNO is a
6352 pseudo / cooked.
6353 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6354 (mips_register_type): Replace mips_register_virtual_type. Map
6355 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6356 when available.
6357 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6358 that the register is cooked / virtual.
6359 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6360 Only get the extra info when needed.
6361 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6362 (mips32_heuristic_proc_desc): Fetch the cooked register.
6363 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6364 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6365 (mips_print_register): Use gdbarch_register_type, instead of
6366 REGISTER_VIRTUAL_TYPE.
6367 (print_gp_register_row): Use gdbarch_register_type, instead of
6368 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6369 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6370 Print the pseudo / cooked registers.
6371 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6372 Print the pseudo / cooked registers.
6373 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6374 REG_NUM is pseudo / cooked.
6375 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6376 (mips_n32n64_xfer_return_value): Ditto.
6377 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6378 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6379 (mips_register_sim_regno): New function.
6380 (mips_gdbarch_init): Set deprecated_register_byte,
6381 register_group_p, pseudo_register_write, pseudo_register_read,
6382 register_sim_regno, and num_pseudo_regs. Set register_type,
6383 instead of register_virtual_type.
6384 * Makefile.in (mips-tdep.o): Update dependencies.
6385 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6386 REGISTER_VIRTUAL_TYPE.
6387 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6388 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6389 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6390 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6391 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6392
325ed089
DJ
63932003-06-21 Daniel Jacobowitz <drow@mvista.com>
6394
6395 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6396 * cli/cli-cmds.c: Include "gdb_vfork.h".
6397 (shell_escape): Use vfork.
6398
f0e7d0e8
AC
63992003-06-21 Andrew Cagney <cagney@redhat.com>
6400
c57bb9fa
AC
6401 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6402 32 bit floating-point register saves.
6403
6e51443a
AC
6404 * frame.h (deprecated_unwind_get_saved_register): Delete.
6405 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6406 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6407 and deprecated_get_next_frame_hack instead of
6408 deprecated_unwind_get_saved_register.
6409
ed183c7c
AC
6410 * mips-tdep.c (mips_dump_tdep): Do not print
6411 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6412
f0e7d0e8
AC
6413 * frame.c (get_frame_register): New function.
6414 (frame_unwind_register_signed): New function.
6415 (get_frame_register_signed): New function.
6416 (frame_unwind_register_unsigned): New function.
6417 (get_frame_register_unsigned): New function.
6418 * frame.h: Add comments on naming schema.
6419 (get_frame_register, frame_unwind_register_signed): Declare.
6420 (get_frame_register_signed, get_frame_register_signed): Declare.
6421 (frame_unwind_register_unsigned): Declare.
6422 (get_frame_register_unsigned): Declare.
6423
2224d941
TR
64242003-06-20 Theodore A. Roth <troth@openavr.org>
6425
6426 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6427
8619218d
TR
64282003-06-20 Theodore A. Roth <troth@openavr.org>
6429
6430 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6431 (avr_read_sp): Ditto.
6432
0b1b50c0
DJ
64332003-06-20 Daniel Jacobowitz <drow@mvista.com>
6434
6435 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6436 * config/arm/nm-linux.h: Likewise.
6437 * config/arm/tm-linux.h: Likewise.
6438 * config/ia64/nm-linux.h: Likewise.
6439 * config/ia64/tm-ia64.h: Likewise.
6440 * config/s390/tm-linux.h: Likewise.
6441 * config/s390/tm-s390.h: Likewise.
6442 * s390-nat.c: Likewise.
6443 * s390-tdep.c: Likewise.
6444
6445 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6446 * config/ia64/linux.mt: Likewise.
6447 * config/m68k/linux.mh: Likewise.
6448 * config/mips/linux.mt: Likewise.
6449 * config/powerpc/linux.mh: Likewise.
6450 * config/sh/linux.mt: Likewise.
6451
c8c18e65
KW
64522003-06-19 Kris Warkentin <kewarken@qnx.com>
6453
6454 * solib.c (solib_open): Change tests for whether to search
6455 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6456 comments.
6457
dcccef2e
TR
64582003-06-19 Theodore A. Roth <troth@openavr.org>
6459
6460 * avr-tdep.c (avr_frame_address): Delete function.
6461 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6462 set_gdbarch_frame_args_address.
6463
5861a190
AC
64642003-06-19 Andrew Cagney <cagney@redhat.com>
6465
6466 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6467 (REGISTER_CONVERT_FROM_TYPE): Delete.
6468 (mips_register_convert_to_type): Delete declaration.
6469 (mips_register_convert_from_type): Delete declaration.
6470 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6471 kernel/.
6472
0274a8ce
MS
64732003-06-19 Michael Snyder <msnyder@redhat.com>
6474
6475 * linux-nat.h: New file.
6476 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6477 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6478 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6479 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6480 (linux_make_note_section): Iterate over lwps instead of threads.
6481 (linux_do_thread_registers): Use lwp instead of merged pid.
6482 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6483 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6484 Add dependency on linux_nat_h.
6485
adf5f719
TR
64862003-06-19 Theodore A. Roth <troth@openavr.org>
6487
6488 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6489
6766a268
DJ
64902003-06-19 Daniel Jacobowitz <drow@mvista.com>
6491
6492 * varobj.c (get_type, get_target_type): Use check_typedef.
6493
1171114a
DJ
64942003-06-19 Daniel Jacobowitz <drow@mvista.com>
6495
6496 * breakpoint.c (insert_catchpoint): Call internal_error.
6497
adcf68a2
TR
64982003-06-19 Theodore A. Roth <troth@openavr.org>
6499
6500 * avr-tdep.c (avr_push_dummy_code): Delete function.
6501 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6502
ea67f13b
DJ
65032003-06-19 Daniel Jacobowitz <drow@mvista.com>
6504
6505 * arch-utils.c (default_prepare_to_proceed): Remove.
6506 (generic_prepare_to_proceed): Remove.
6507 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6508 (generic_prepare_to_proceed): Remove prototype.
6509 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6510 * gdbarch.c: Regenerate.
6511 * gdbarch.h: Regenerate.
6512 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6513 * hppah-nat.c (hppa_switched_threads): Remove.
6514 * infrun.c (prepare_to_proceed): New static function, copied from
6515 generic_prepare_to_proceed. Remove select_it argument.
6516 (proceed): Call prepare_to_proceed.
6517 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6518 variables.
6519 (ptrace_wait): Don't set the removed variables.
6520 (hppa_switched_threads): Remove.
6521 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6522 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6523 (lin_lwp_prepare_to_proceed): Remove prototype.
6524 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6525 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6526
4add8633
TR
65272003-06-18 Theodore A. Roth <troth@openavr.org>
6528
6529 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6530 trad-frame.h.
6531 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6532 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6533 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6534 (AVR_PROLOGUE_*): Enumerate prologue types.
6535 (struct frame_extra_info): Remove.
6536 (struct avr_unwind_cache): Define.
6537 (avr_write_sp): Delete function.
6538 (avr_read_fp): Ditto.
6539 (avr_init_extra_frame_info): Ditto.
6540 (avr_pop_frame): Ditto.
6541 (avr_frame_saved_pc): Ditto.
6542 (avr_saved_pc_after_call): Ditto.
6543 (avr_push_return_address): Ditto.
6544 (avr_frame_chain): Ditto.
6545 (avr_store_struct_return): Ditto.
6546 (avr_push_arguments): Ditto.
6547 (avr_scan_prologue): Update comments. Changed to set up the info for
6548 cache unwinding. Now returns end of prologue PC.
6549 (avr_skip_prologue): Better handling of functions lacking a prologue
6550 by using avr_scan_prologue.
6551 (avr_scan_arg_moves): New function.
6552 (avr_saved_regs_unwinder): Ditto.
6553 (avr_frame_unwind_cache): Ditto.
6554 (avr_unwind_pc): Ditto.
6555 (avr_frame_this_id): Ditto.
6556 (avr_frame_prev_register): Ditto.
6557 (avr_frame_p): Ditto.
6558 (avr_frame_base_address ): Ditto.
6559 (avr_unwind_dummy_id): Ditto.
6560 (avr_push_dummy_code): Ditto.
6561 (push_stack_item): Ditto.
6562 (pop_stack_item): Ditto.
6563 (avr_push_dummy_call): Ditto.
6564 (struct stack_item): Define.
6565 (avr_frame_unwind): Declare structure.
6566 (avr_frame_base): Ditto.
6567 (avr_gdbarch_init): Remove calls to
6568 set_gdbarch_deprecated_init_frame_pc,
6569 set_gdbarch_deprecated_target_read_fp,
6570 set_gdbarch_deprecated_dummy_write_sp,
6571 set_gdbarch_deprecated_fp_regnum,
6572 set_gdbarch_deprecated_push_arguments,
6573 set_gdbarch_deprecated_push_return_address,
6574 set_gdbarch_deprecated_pop_frame,
6575 set_gdbarch_deprecated_store_struct_return,
6576 set_gdbarch_deprecated_frame_init_saved_regs,
6577 set_gdbarch_deprecated_init_extra_frame_info,
6578 set_gdbarch_deprecated_frame_chain,
6579 set_gdbarch_deprecated_frame_saved_pc,
6580 set_gdbarch_deprecated_saved_pc_after_call.
6581 Add calls to set_gdbarch_push_dummy_call,
6582 set_gdbarch_push_dummy_code,
6583 frame_unwind_append_predicate,
6584 frame_base_set_default,
6585 set_gdbarch_unwind_dummy_id,
6586 set_gdbarch_unwind_pc.
6587 Wrap a long line.
6588
7be04a68
MS
65892003-06-18 Corinna Vinschen <vinschen@redhat.com>
6590
6591 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6592 registers for H8/300S.
6593 (h8300_print_registers_info): Ditto.
8ffd9b1b 6594 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6595
ae087d01
DJ
65962003-06-18 Daniel Jacobowitz <drow@mvista.com>
6597
6598 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6599 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6600 (lin_lwp_wait): Likewise. Update comments.
6601 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6602 (pull_pid_from_list, linux_record_stopped_pid): New.
6603
07d8f827
SC
66042003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6605
6606 * ada-lang.c (scan_discrim_bound): Name first argument.
6607 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6608 declared by ALL_BLOCK_SYMBOLS.
6609
7cb47b14
SC
66102003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6611
6612 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6613 ("regcache.h"): Include it.
6614 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6615
6ad8ae5c
DJ
66162003-06-17 Daniel Jacobowitz <drow@mvista.com>
6617
6618 * NEWS: Mention gdbserver detach change and "disconnect" command.
6619 * infcmd.c (disconnect_command): New function.
6620 (_initialize_infcmd): Add ``disconnect'' command.
6621 * remote.c (remote_async_detach): Delete.
6622 (remote_detach): Merge remote_async_detach.
6623 (remote_disconnect): New.
6624 (init_remote_ops): Set to_disconnect.
6625 (init_remote_cisco_ops): Likewise.
6626 (init_remote_async_ops): Likewise. Use remote_detach.
6627 * target.c (cleanup_target): Default to_disconnect.
6628 (update_current_target): Inherit to_disconnect.
6629 (target_disconnect, debug_to_disconnect): New functions.
6630 (setup_target_debug): Set to_disconnect.
6631 * target.h (struct target_ops): Add to_disconnect.
6632 (target_disconnect): Add prototype.
6633
687595f9
DJ
66342003-06-17 Daniel Jacobowitz <drow@mvista.com>
6635
6636 * breakpoint.c (insert_catchpoint): New function.
6637 (insert_breakpoints): Use catch_exceptions to call
6638 insert_catchpoint. Disable catchpoints if they fail to insert.
6639
29239a8f
DJ
66402003-06-17 Daniel Jacobowitz <drow@mvista.com>
6641
6642 * symfile.c (reread_symbols): Clear sym_private.
6643
2cdf3c63
AC
66442003-06-17 Andrew Cagney <cagney@redhat.com>
6645
6646 * trad-frame.h (struct frame_info): Add opaque declaration.
6647 * remote-fileio.h (struct cmd_list_element): Add opaque
6648 declaration.
6649 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6650 comments.
6651
cf0e1e0d
DJ
66522003-06-17 Daniel Jacobowitz <drow@mvista.com>
6653
6654 * remote.c (remote_prepare_to_store): Replace call to
6655 deprecated_read_register_bytes with multiple regcache_raw_read
6656 calls.
6657
192cdb19
KW
66582003-06-17 Kris Warkentin <kewarken@qnx.com>
6659
6660 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6661 (nto_find_and_open_solib): Likewise.
6662 (nto_init_solib_absolute_prefix): Likewise.
6663 (_initialize_nto_tdep): Fix indentation.
6664
89929b45
KW
66652003-06-17 Kris Warkentin <kewarken@qnx.com>
6666
6667 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6668
46019f27
KW
66692003-06-17 Kris Warkentin <kewarken@qnx.com>
6670
6671 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6672
1a38736e
JB
66732003-06-17 Jim Blandy <jimb@redhat.com>
6674
6675 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6676
3605c34a
TR
66772003-06-16 Theodore A. Roth <troth@openavr.org>
6678
6679 * avr-tdep.c (avr_extract_return_value): New function.
6680 (avr_gdbarch_init): Set extract_return_value method.
6681
870b3035
AC
66822003-06-16 Andrew Cagney <cagney@redhat.com>
6683
6684 * frame.h (deprecated_get_next_frame_hack): Declare.
6685 * frame.c (legacy_saved_regs_prev_register): Only require
6686 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6687 there are always saved regs.
6688 (deprecated_generic_get_saved_register): Do not require
6689 DEPRECATED_FRAME_INIT_SAVED_REGS.
6690 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6691 use frame ID unwind instead.
6692 (deprecated_get_next_frame_hack): New function.
6693
63d47a7d
CV
66942003-06-16 Corinna Vinschen <vinschen@redhat.com>
6695
6696 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6697 (h8300_push_dummy_call): ...this function. Some minor optimization.
6698 (h8300_push_return_address): Remove.
6699 (h8300_gdbarch_init): Remove calls to
6700 set_gdbarch_deprecated_dummy_write_sp,
6701 set_gdbarch_deprecated_push_arguments and
6702 set_gdbarch_deprecated_push_return_address.
6703 Add call to set_gdbarch_push_dummy_call.
6704
4bb1dc5e
CV
67052003-06-16 Corinna Vinschen <vinschen@redhat.com>
6706
6707 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6708 (E_PSEUDO_EXR_REGNUM): Ditto.
6709 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6710 registers into safe registers.
4bb1dc5e
CV
6711 (h8300_skip_prologue): Check for stm instruction to push registers
6712 used for register variables onto stack.
6713 (gdb_print_insn_h8300): Remove.
6714 (h8300_examine_prologue): Add a comment.
6715 (h8300_register_name): Take pseudo registers into account.
6716 (h8300s_register_name): Ditto.
6717 (h8300sx_register_name): Ditto.
6718 (h8300_print_register): Ditto.
6719 (h8300_print_registers_info): Define "nice" printing order.
6720 (h8300_saved_pc_after_call): Take pseudo registers into account.
6721 (h8300_register_type): Ditto. Return type used for remote connection
6722 when requesting real CCR or EXR register, return actual type when
6723 requesting pseudo CCR or EXR.
6724 (h8300_pseudo_register_read): New function.
6725 (h8300_pseudo_register_write): Ditto.
6726 (h8300_dbg_reg_to_regnum): Ditto.
6727 (h8300s_dbg_reg_to_regnum): Ditto.
6728 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6729 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6730 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6731 set_gdbarch_print_insn architecture dependent.
6732 Call set_gdbarch_pseudo_register_read and
6733 set_gdbarch_pseudo_register_write.
6734 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6735
a59fe496
AC
67362003-06-16 Andrew Cagney <cagney@redhat.com>
6737
6738 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6739 * gdbarch.h, gdbarch.c: Re-generate.
6740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6741 * s390-tdep.c (s390_gdbarch_init): Update.
6742 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6743 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6744 * mips-tdep.c (mips_gdbarch_init): Update.
6745 * mcore-tdep.c (mcore_gdbarch_init): Update.
6746 * cris-tdep.c (cris_gdbarch_init): Update.
6747 * infcall.c (call_function_by_hand): Update.
6748 * ia64-tdep.c (ia64_push_arguments): Update comment.
6749 * frame.c (legacy_get_prev_frame): Do not assume
6750 SAVE_DUMMY_FRAME_TOS_P.
6751 * dummy-frame.c (find_dummy_frame): Update comment.
6752
6f4e5a41
AC
67532003-06-16 Andrew Cagney <cagney@redhat.com>
6754
6755 * regcache.c (do_cooked_read): Do not use register_valid_p.
6756
72fab697
TR
67572003-06-15 Theodore A. Roth <troth@openavr.org>
6758
6759 * avr-tdep.c (avr_register_type): Remove a blank line.
6760 (avr_scan_prologue): Correct some comments.
6761
e3d8b004
TR
67622003-06-15 Theodore A. Roth <troth@openavr.org>
6763
6764 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6765 prologue types.
8ffd9b1b 6766 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6767 option.
6768 Add code to scan -mcall-prologues for mega devices.
6769
866b76ea
TR
67702003-06-15 Theodore A. Roth <troth@openavr.org>
6771
6772 * avr-tdep.c (avr_register_byte): Delete function.
6773 (avr_register_raw_size): Delete function.
6774 (avr_register_virtual_size): Delete function.
6775 (avr_register_virtual_type): Delete function.
6776 (avr_register_type): New function.
6777 (avr_address_to_pointer): Remove unused code.
6778 (avr_read_fp): Need to read FP as two separate bytes due to change to
6779 avr_register_type() usage.
6780 (avr_gdbarch_init): Don't set deprecated_register_size.
6781 Don't set deprecated_register_bytes.
6782 Don't set deprecated_register_byte.
6783 Don't set deprecated_register_raw_size.
6784 Don't set deprecated_max_register_raw_size.
6785 Don't set deprecated_register_virtual_size.
6786 Don't set deprecated_max_register_virtual_size.
6787 Don't set deprecated_register_virtual_type.
6788 Set register_type method.
6789
3993f6b1
DJ
67902003-06-15 Daniel Jacobowitz <drow@mvista.com>
6791
6792 * Makefile.in (linux-nat.o): Add rule.
6793 * linux-nat.c: New file.
6794 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6795 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6796 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6797 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6798 * config/arm/linux.mh (NATDEPFILES): Likewise.
6799 * config/i386/linux.mh (NATDEPFILES): Likewise.
6800 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6801 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6802 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6803 * config/mips/linux.mh (NATDEPFILES): Likewise.
6804 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6805 * config/s390/s390.mh (NATDEPFILES): Likewise.
6806 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6807
786a90bb
MK
68082003-06-15 Mark Kettenis <kettenis@gnu.org>
6809
6810 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6811 replace out-of-date comment.
6812
3bd3f01e
AC
68132003-06-15 Andrew Cagney <cagney@redhat.com>
6814
6815 * rdi-share/host.h (Fail): Change to a varargs function.
6816 * remote-rdi.c (Fail): Update.
8ffd9b1b 6817
de5b9bb9
MK
68182003-06-15 Mark Kettenis <kettenis@gnu.org>
6819
6820 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6821 (i386_convert_register_p, i386_register_to_value,
6822 i386_register_from_value): Handle types longer than 8 bytes.
6823
d532c08f
MK
68242003-06-15 Mark Kettenis <kettenis@gnu.org>
6825
6826 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6827 Move floating-point code to new function in i387-tdep.c.
6828 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6829 New functions containing code moved here from i386-tdep.c.
6830 * i387-tdep.h: Add opaque declaration for `struct type'.
6831 (i387_register_to_value, i387_value_to_register): New prototypes.
6832 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6833 (x86_64_init_abi): Set convert_register_p, register_to_value and
6834 value_to_register here.
8ffd9b1b 6835
42c466d7
AC
68362003-06-14 Andrew Cagney <cagney@redhat.com>
6837
6838 * mips-tdep.c (mips_register_to_value): Make static.
6839 (mips_value_to_register): Make static.
6840 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6841 * ia64-tdep.c (ia64_register_raw_size): Make static.
6842 (ia64_register_virtual_size): Make static.
6843 (ia64_register_byte): Make static.
6844 * i387-tdep.c: Include "i387-tdep.h".
6845 (print_387_control_word): Delete function.
6846 (print_387_status_word): Delete function.
6847 (print_387_status_bits): Delete function.
6848 (print_387_control_bits): Delete function.
6849 * Makefile.in (i387-tdep.o): Update dependencies.
6850 * rdi-share/host.h (Fail): Declare.
6851 * remote-rdi.c (Fail): Update to match declaration.
6852
2a9cda49
AC
68532003-06-14 Andrew Cagney <cagney@redhat.com>
6854
6855 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6856 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6857 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6858 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6859 * README: Delete reference to remote-array.
6860 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6861 (remote-array.o): Delete target.
6862 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6863 * remote-array.c: Delete file.
6864
ff2e87ac
AC
68652003-06-14 Andrew Cagney <cagney@redhat.com>
6866 Mark Kettenis <kettenis@gnu.org>
6867
6868 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6869 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6870 parameter with "frame".
6871 * gdbarch.h, gdbarch.c: Re-generate.
6872 * frame.h (put_frame_register): Declare.
6873 * frame.c (put_frame_register): New function.
6874 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6875 (legacy_register_to_value): Rewrite, use "frame" to get the
6876 register value.
6877 (legacy_value_to_register): Rewrite, use "frame" to find the
6878 register's location before storing.
6879 * arch-utils.h (legacy_convert_register_p): Update.
6880 (legacy_register_to_value, legacy_value_to_register): Update.
6881 * findvar.c (value_from_register): Rewrite, eliminate use of
6882 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6883 "frame" to REGISTER_TO_VALUE.
6884 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6885 lval_reg_frame_relative + lval_register branch of the switch. Do
6886 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6887 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6888 I386_EDI_REGNUM): New defines.
6889 (i386_next_regnum, i386_convert_register_p,
6890 i386_register_to_value, i386_value_to_register): New functions.
6891 (i386_register_convertible, i386_register_convert_to_virtual,
6892 i386_convert_to_raw): Remove functions.
6893 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6894 value_to_register instead of register_convertible,
6895 register_convert_to_virtual and register_convert_to_raw.
6896 * mips-tdep.c (mips_convert_register_p): New function.
6897 (mips_value_to_register): Replace mips_register_convert_from_type.
6898 (mips_register_to_value): Replace mips_register_convert_to_type.
6899 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6900 register_to_value.
6901 * alpha-tdep.c (alpha_convert_register_p): Update.
6902 (alpha_value_to_register): Update, store the register.
6903 (alpha_register_to_value): Update, fetch the register.
6904
98be1e77
TR
69052003-06-14 Theodore A. Roth <troth@openavr.org>
6906
6907 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6908 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6909 Don't set deprecated_call_dummy_words.
6910 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6911 Don't set remote_translate_xfer_address.
6912 (avr_io_reg_read_command): Remove commented out debug printf.
6913 Wrap a long line.
6914
57bc6122
TR
69152003-06-14 Theodore A. Roth <troth@openavr.org>
6916
6917 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6918 causes gdb to seg fault.
6919
eb01fc62
DJ
69202003-06-14 Daniel Jacobowitz <drow@mvista.com>
6921
6922 * sparc-nat.c (fetch_inferior_registers): Correct
6923 a reference to "registers".
6924
3b3e6bee
DJ
69252003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6926
6927 * Makefile.in (exc_request_U_h): Define
6928 (exc_request_S_h): Likewise.
6929 (msg_reply_S_h): Likewise.
6930 (msg_U_h): Likewise.
6931 (notify_S_h): Likewise.
6932 (process_reply_S_h): Likewise.
6933 (gnu-nat.o): Depend on gdb_obstack_h
6934 * gnu-nat.c: Include "gdb_obstack.h".
6935
b8de8283
AC
69362003-06-13 Andrew Cagney <cagney@redhat.com>
6937
6938 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6939 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6940
f3be58bc
AC
69412003-06-13 Andrew Cagney <cagney@redhat.com>
6942
6943 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6944 when deprecated REGISTER macros can be deleted.
6945 * gdbarch.h, gdbarch.c: Re-generate.
6946
4c0122c8
JB
69472003-06-13 Jim Blandy <jimb@redhat.com>
6948
6949 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6950 Linux entry point symbols for _dl_debug_state, too.
6951
3e210248
AC
69522003-06-13 Andrew Cagney <cagney@redhat.com>
6953
6954 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6955 available, do not use the FP register, and always save the TOS.
6956 * dummy-frame.c (dummy_frame_this_id): Do not assert
6957 SAVE_DUMMY_FRAME_TOS.
6958 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6959 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6960 (i386_push_dummy_call): Add 8 to the returned SP.
6961 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6962 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6963 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6964 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6965 (x86_64_push_dummy_call): Return "sp + 16".
6966 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6967 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6968 save_dummy_frame_tos.
6969
0b65af49
JB
69702003-06-13 Jim Blandy <jimb@redhat.com>
6971
6972 * frv-tdep.c (frv_use_struct_convention): Delete static
6973 declaration for function deleted in my change of 2003-06-12.
6974
4ea2465e
TR
69752003-06-13 Theodore A. Roth <troth@openavr.org>
6976
6977 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6978 (avr_pointer_to_address): Shift code addrs left 1 bit.
6979 (avr_convert_from_func_ptr_addr): Delete function since operation is
6980 better handled by avr_address_to_pointer and avr_pointer_to_address.
6981 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6982
1581182a
MK
69832003-06-13 Mark Kettenis <kettenis@gnu.org>
6984
6985 From Kelley Cook <kelleycook@wideopenwest.com>:
6986 * configure.host: Accept i[34567]86 variants.
6987 * configure.tgt: Likewise.
6988 * nlm/configure.in: Likewise.
6989 * nlm/configure: Regenerated.
6990
7aa1783e
RE
69912003-06-13 Richard Earnshaw <rearnsha@arm.com>
6992
6993 * arm-tdep.c (solib-svr4.h): Dont' include it.
6994 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6995 * arm-linux-tdep.c: ... here. Make static.
6996 (arm_linux_init_abi): Register it.
6997 (solib-svr4.h): Include it.
6998 * Makefile.in: Update dependencies.
6999 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7000 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
7001
0261a0d0
CV
70022003-06-13 Corinna Vinschen <vinschen@redhat.com>
7003
7004 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
7005 indicate registers used for return values.
7006 (struct frame_extra_info): Drop args_pointer and locals_pointer.
7007 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
7008 members.
7009 (h8300_init_extra_frame_info): Ditto.
7010 (h8300_frame_locals_address): Removed.
7011 (h8300_frame_args_address): Removed.
7012 (h8300_extract_return_value): Use new regcache structure. Only care
7013 for 16 bit CPUs.
7014 (h8300h_extract_return_value): Same function for 32 bit CPUs.
7015 (h8300_store_return_value): Use new regcache structure. Only care
7016 for 16 bit CPUs.
7017 (h8300h_store_return_value): Same function for 32 bit CPUs.
7018 (h8300_store_struct_return): Removed.
7019 (h8300_extract_struct_value_address): Use new regcache structure.
7020 (h8300h_extract_struct_value_address): Removed.
7021 (h8300_push_dummy_code): New function.
7022 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
7023 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
7024 set_gdbarch_store_return_value architecture dependent.
7025 Call set_gdbarch_push_dummy_code and
7026 set_gdbarch_extract_struct_value_address.
7027 Remove calls to set_gdbarch_frame_args_address,
7028 set_gdbarch_frame_locals_address,
7029 set_gdbarch_deprecated_store_struct_return,
7030 set_gdbarch_deprecated_extract_return_value,
7031 set_gdbarch_deprecated_extract_struct_value_address,
7032 set_gdbarch_deprecated_call_dummy_words and
7033 set_gdbarch_deprecated_sizeof_call_dummy_words.
7034
055c394a
CV
70352003-06-13 Corinna Vinschen <vinschen@redhat.com>
7036
7037 * h8300-tdep.c (h8300_register_byte): Remove.
7038 (h8300h_register_byte): Remove.
7039 (h8300_register_virtual_type): Remove. Substitute by...
7040 (h8300_register_type): New function.
7041 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
7042 (h8300h_extract_struct_value_address): Ditto.
7043 (h8300_gdbarch_init): Drop calls to
7044 set_gdbarch_deprecated_register_byte and
7045 set_gdbarch_deprecated_register_virtual_type.
7046 Add call to set_gdbarch_register_type.
7047
9c04cab7
AC
70482003-06-13 Andrew Cagney <cagney@redhat.com>
7049
7050 * gdbarch.sh: Update comments on registers.
7051 (deprecated_register_byte): Rename register_byte.
7052 (deprecated_register_raw_size): Rename register_raw_size.
7053 (deprecated_register_virtual_size): Rename register_virtual_size.
7054 (deprecated_register_virtual_type): Rename register_virtual_type.
7055 * gdbarch.h, gdbarch.c: Re-generate.
7056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7057 * vax-tdep.c (vax_gdbarch_init): Update.
7058 * v850-tdep.c (v850_gdbarch_init): Update.
7059 * sparc-tdep.c (sparc_gdbarch_init): Update.
7060 * sh-tdep.c (sh_gdbarch_init): Update.
7061 * s390-tdep.c (s390_gdbarch_init): Update.
7062 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7063 * ns32k-tdep.c: Update.
7064 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7065 * mips-tdep.c (mips_gdbarch_init): Update.
7066 * mcore-tdep.c (mcore_gdbarch_init): Update.
7067 * m68k-tdep.c (m68k_gdbarch_init): Update.
7068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7069 * ia64-tdep.c (ia64_gdbarch_init): Update.
7070 * hppa-tdep.c (hppa_gdbarch_init): Update.
7071 * h8300-tdep.c (h8300_gdbarch_init): Update.
7072 * frv-tdep.c (frv_gdbarch_init): Update.
7073 * cris-tdep.c (cris_gdbarch_init): Update.
7074 * avr-tdep.c (avr_gdbarch_init): Update.
7075 * alpha-tdep.c (alpha_gdbarch_init): Update.
7076 * arm-tdep.c (arm_gdbarch_init): Update.
7077
b060cbea
AC
70782003-06-13 Andrew Cagney <cagney@redhat.com>
7079
7080 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7081 mips_o32_use_struct_convention with always_use_struct_convention.
7082
0fc9922a
DC
70832003-06-12 David Carlton <carlton@kealia.com>
7084
7085 * cp-namespace.c (cp_set_block_scope): Comment out
7086 processing_has_namespace_info branch.
7087
1fd35568
JB
70882003-06-12 Jim Blandy <jimb@redhat.com>
7089
f470a70a
JB
7090 Recognize and skip 64-bit PowerPC Linux linkage functions.
7091 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7092 insn_pattern, insns_match_pattern, d_field, ds_field): New
7093 functions, macros, and types for working with PPC instructions.
7094 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7095 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7096 ppc64_skip_trampoline_code): New functions, variables, and macros
7097 for recognizing and skipping linkage functions.
7098 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7099 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7100
49ff75ad
JB
7101 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7102 register offsets for both the 32- and 64-bit interfaces.
7103
bd918c83
JB
7104 Actually finish the job started by my change of 2003-05-29.
7105 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7106 other #definition of this.
7107 (ppc_linux_skip_trampoline_code): Remove declaration.
7108 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7109 static.
7110 (ppc_linux_init_abi): Register it as the skip_trampoline_code
7111 method for GDBARCH.
7112
7113 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7114 'long' on ppc64-*-linux*.
7115
f8c59253
JB
7116 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7117 isn't #defined, assume the register doesn't exist: act as if
7118 tdep->ppc_mq_regnum were -1.
7119
8fbb30b1
JB
7120 * configure.host, configure.tgt: Add entries for
7121 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7122 powerpc/linux.mt.
7123 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7124 New files.
7125
1fd35568
JB
7126 * arch-utils.c (always_use_struct_convention): New function.
7127 * arch-utils.h (always_use_struct_convention): New prototype.
7128 * alpha-tdep.c (alpha_use_struct_convention): Delete.
7129 (alpha_gdbarch_init): Register always_use_struct_convention,
7130 instead of alpha_use_struct_convention.
7131 * cris-tdep.c (cris_use_struct_convention): Delete.
7132 (cris_gdbarch_init): Register always_use_struct_convention,
7133 instead of cris_use_struct_convention.
7134 * frv-tdep.c (frv_use_struct_convention): Delete.
7135 (frv_gdbarch_init): Register always_use_struct_convention,
7136 instead of frv_use_struct_convention.
7137 * h8300-tdep.c (h8300_use_struct_convention): Delete.
7138 (h8300_gdbarch_init): Register always_use_struct_convention,
7139 instead of h8300_use_struct_convention.
e3305dd9 7140 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
7141 (mips_o32_gdbarch_init): Register always_use_struct_convention,
7142 instead of mips_o32_use_struct_convention.
7143
e14e6e9c
AC
71442003-06-12 Andrew Cagney <cagney@redhat.com>
7145
7146 * wince.c: Include "mips-tdep.h".
7147 * mips-tdep.h (mips_next_pc): Declare.
7148 * mcore-tdep.c: Make more local functions static.
7149 * Makefile.in (wince.o): Update dependencies.
7150
2335f48e
DC
71512003-06-12 David Carlton <carlton@kealia.com>
7152
7153 * symtab.c (lookup_symbol_aux_minsyms): Replace
7154 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7155 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7156 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7157 SYMBOL_NATURAL_NAME.
7158
f70a7d61
AS
71592003-06-12 Andreas Schwab <schwab@suse.de>
7160
7161 * Makefile.in (tuiDisassem.o): Update dependencies.
7162
b6429628
DC
71632003-06-12 David Carlton <carlton@bactrian.org>
7164
7165 * symtab.h: Delete declaration of make_symbol_overload_list.
7166 Add declaration of lookup_partial_symbol.
7167 * symtab.c (remove_params): Move to cp-support.c.
7168 (overload_list_add_symbol, make_symbol_overload_list)
7169 (sym_return_val_size, sym_return_val_index): Ditto.
7170 (lookup_partial_symbol): Make extern.
7171 * cp-support.h: Add declaration of make_symbol_overload_list.
7172 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7173 symtab.h, and block.h.
7174 (remove_params): Move here from symtab.c.
7175 (overload_list_add_symbol, make_symbol_overload_list)
7176 (sym_return_val_size, sym_return_val_index): Ditto.
7177 * valops.c: Include cp-support.h.
7178 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7179 frame_h, and block_h.
7180 (valops.o): Depend on cp_support_h.
7181
084edea5
CV
71822003-06-12 Corinna Vinschen <vinschen@redhat.com>
7183
7184 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7185 substitute by NUM_REGS throughout.
7186 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7187 (h8300s_register_name): New function for H8S registers.
7188 (h8300sx_register_name): Ditto for H8SX registers.
7189 (h8300_print_register): Revise register printing, avoid depending
7190 on 32 bit long.
0261a0d0 7191 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
7192 (h8300h_register_byte): New function for any other architecture.
7193 (h8300_register_raw_size): Remove.
7194 (h8300_register_virtual_type): Revise to return actually useful
7195 type.
7196 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7197 (h8300h_extract_struct_value_address): New function for any other
7198 architecture.
7199 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7200 set_gdbarch_register_name, set_gdbarch_register_byte,
7201 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7202 Remove calls to set_gdbarch_deprecated_register_size,
7203 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7204 set_gdbarch_deprecated_max_register_raw_size,
7205 set_gdbarch_register_virtual_size and
7206 set_gdbarch_deprecated_max_register_virtual_size entirely.
7207 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7208 set_gdbarch_long_double_bit.
7209
06194148
JJ
72102003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7211
8ffd9b1b
AJ
7212 * doublest.c (convert_doublest_to_floatformat): When dealing
7213 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
7214 processing a full 32 bits of mantissa.
7215
de4f826b
DC
72162003-06-11 David Carlton <carlton@bactrian.org>
7217
7218 * dictionary.h: New.
7219 * dictionary.c: New.
7220 * block.h: Add opaque declaration for struct dictionary.
7221 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7222 'sym' members.
7223 (BLOCK_DICT): New macro.
7224 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7225 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7226 BLOCK_SHOULD_SORT.
7227 (ALL_BLOCK_SYMBOLS): Update definition.
7228 * Makefile.in (SFILES): Add dictionary.c.
7229 (dictionary_h): New.
7230 (COMMON_OBS): Add dictionary.o.
7231 (dictionary.o): New.
7232 (ada-lang.o): Depend on dictionary_h.
7233 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7234 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7235 (mi-cmd-stack.o): Ditto.
7236 (gdbtk-cmds.o): Update dependencies.
7237 (gdbtk-stack.o): Ditto.
7238 * ada-lang.c: Include dictionary.h.
7239 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7240 (fill_in_ada_prototype, debug_print_block): Ditto.
7241 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7242 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7243 'is_sorted'.
7244 * mdebugread.c: Include dictionary.h.
7245 (struct parse_stack): Delete 'maxsyms' member.
7246 (parse_symbol): Update calls to new_block. Delete calls to
7247 shrink_block. Use dictionary methods.
7248 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7249 Update calls to new_symtab. Don't maintain maxsyms data.
7250 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7251 (add_symbol): Just call dict_add_symbol.
7252 (new_symtab): Delete 'maxsyms' argument.
7253 (new_symtab): Update calls to new_block.
7254 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7255 (shrink_block): Delete function.
7256 (fixup_sigtramp): Update call to new_block. Add symbol via
7257 dict_add_symbol.
7258 * jv-lang.c: Include dictionary.h.
7259 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7260 appropriately. Set class_symtab->free_func. Make sure the
7261 blockvector is big enough to hold two blocks.
7262 (add_class_symtab_symbol): Use dictionary methods.
7263 (free_class_block): New function.
7264 (type_from_class): Replace explicit iteration by
7265 ALL_BLOCK_SYMBOLS.
7266 * symtab.h (struct symtab): Replace 'free_ptr' method by
7267 'free_func'.
7268 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7269 sort_symtab_syms.
7270 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7271 sort_symtab_syms.
7272 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7273 Include dictionary.h.
7274 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7275 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7276 sort_symtab_syms.
7277 * objfiles.c: Include dictionary.h.
7278 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7279 * buildsym.c: Include dictionary.h.
7280 (finish_block): Use dictionary methods.
7281 (end_symtab): Set free_func to NULL, not free_ptr.
7282 * tracepoint.c: Include dictionary.h.
7283 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7284 (scope_info): Ditto.
7285 * stack.c: Include dictionary.h.
7286 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7287 (print_block_frame_labels, print_frame_arg_vars)
7288 (print_frame_args): Ditto.
7289 * symmisc.c (free_symtab_block): Use dictionary methods.
7290 (dump_symtab): Ditto.
7291 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7292 Include dictionary.h.
7293 * symfile.h: Delete declarations of sort_block_syms,
7294 sort_symtab_syms.
7295 * symfile.c (sort_block_syms): Delete.
7296 (sort_symtab_syms): Delete.
7297 * symtab.c: Include dictionary.h.
7298 (lookup_block_symbol): Use dictionary iterators.
7299 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7300 (search_symbols, make_symbol_completion_list): Ditto.
7301 (make_symbol_overload_list): Ditto.
7302 * valops.c (value_of_local): Use dict_empty.
7303 Include dictionary.h.
7304
a31f978c
JB
73052003-06-11 J. Brobecker <brobecker@gnat.com>
7306
7307 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7308
526e70c0
DC
73092003-06-11 David Carlton <carlton@bactrian.org>
7310
7311 * block.h (BLOCK_SHOULD_SORT): Delete.
7312 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7313 blocks.
7314 * ada-lang.c (ada_add_block_symbols): Ditto.
7315 * symfile.c (sort_block_syms): Delete.
7316 (sort_symtab_syms): Ditto.
7317 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7318 declarations.
7319 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7320 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7321 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7322 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7323 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7324 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7325 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7326
33c08150
JJ
73272003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7328
8ffd9b1b 7329 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7330 bits to 128.
7331
781a750d
AC
73322003-06-11 Andrew Cagney <cagney@redhat.com>
7333
7334 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7335 REGISTER_CONVERTIBLE.
7336 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7337 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7338 * gdbarch.h, gdbarch.c: Re-generate.
7339 * arch-utils.h (deprecated_register_convertible_not): Rename
7340 generic_register_convertible_not.
7341 * arch-utils.c (deprecated_register_convertible_not): Rename
7342 generic_register_convertible.
7343 (legacy_convert_register_p, legacy_register_to_value): Update.
7344 * sh-tdep.c (sh64_push_arguments): Update.
7345 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7346 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7347 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7348 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7349 * arch-utils.c (legacy_value_to_register): Update.
7350 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7351 (rs6000_register_convert_to_raw): Make parameter "from" const.
7352 * mips-tdep.c (mips_gdbarch_init): Update.
7353 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7354 * infcmd.c (default_print_registers_info): Update.
7355 * ia64-tdep.c (ia64_gdbarch_init): Update.
7356 (ia64_register_convert_to_raw): Make parameter "from" const.
7357 * i386-tdep.c (i386_gdbarch_init): Update.
7358 (i386_register_convert_to_raw): Update.
7359
cd90e54f
AC
73602003-06-11 Andrew Cagney <cagney@redhat.com>
7361
7362 * remote-fileio.c: Include "remote-fileio.h".
7363 * Makefile.in (remote-fileio.o): Update dependencies.
7364 (remote_fileio_h): Fix typo.
7365
a78f21af
AC
73662003-06-11 Andrew Cagney <cagney@redhat.com>
7367
7368 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7369 (xstormy16_save_dummy_frame_tos): Make static.
7370 (_initialize_xstormy16_tdep): Add declaration.
7371 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7372 * v850-tdep.c: Make local functions static.
7373 (_initialize_v850_tdep): Add declaration.
7374 * sparc-tdep.c: Make local functions static.
7375 (_initialize_sparc_tdep): Add declaration.
7376 * sh-tdep.c: Make local functions static.
7377 (_initialize_sh_tdep): Add declaration.
7378 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7379 * s390-tdep.c: Make local functions static.
7380 (_initialize_s390_tdep): Add declaration.
7381 * dbxread.c (find_stab_function_addr): Make static.
7382 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7383 * ocd.c (_initialize_remote_ocd): Add declaration.
7384 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7385 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7386 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7387 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7388 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7389 * remote-array.c (_initialize_array): Add declaration.
7390 (_initialize_remote_monitors): Add declaration.
7391 * remote-mips.c: Make local functions static.
7392 (_initialize_remote_mips): Add declaration.
7393 * mcore-tdep.c: Make all local functions static.
7394 (_initialize_mcore_tdep): Add declaration.
7395 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7396 * abug-rom.c (_initialize_abug_rom): Add declaration.
7397 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7398 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7399 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7400 * remote-est.c (_initialize_est): Add declaration.
7401 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7402 (m68hc11_call_dummy_address): Make static.
7403 * ia64-tdep.c: Make local functions static.
7404 (_initialize_ia64_tdep): Add declaration.
7405 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7406 * monitor.c (monitor_wait_filter): Make static.
7407 (_initialize_remote_monitors): Add declaration.
7408 * remote-hms.c (_initialize_remote_hms): Add declaration.
7409 * remote-e7000.c (fetch_regs_from_dump): Make static.
7410 (expect_n): Make static.
7411 (_initialize_remote_e7000): Add declaration.
7412 * ser-e7kpc.c: Always include "defs.h".
7413 (_initialize_ser_e7000pc): Add declaration.
7414 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7415 * cris-tdep.c: Make all but one function static.
7416 (_initialize_cris_tdep): Add declaration.
7417 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7418 * solib.c (update_solib_list): Make static.
7419 (_initialize_solib): Add declaration.
7420 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7421 (_initialize_avr_tdep): Add declaration.
7422 * remote-rdi.c (voiddummy): Make static.
7423 (_initialize_remote_rdi): Add declaration.
7424 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7425 * remote-rdp.c (send_rdp): Make static.
7426 (_initialize_remote_rdp): Add declaration.
7427 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7428
cbcdb1f5
CV
74292003-06-11 Corinna Vinschen <vinschen@redhat.com>
7430
7431 * remote-fileio.c: Make ari happy.
7432
a191ea8d
JB
74332003-06-10 J. Brobecker <brobecker@gnat.com>
7434
7435 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7436 fetching the trailing bytes of the buffer we are about to write.
7437
0ef75e11
AC
74382003-06-10 Andrew Cagney <cagney@redhat.com>
7439
7440 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7441 * Makefile.in (remote-fileio.o): Update dependencies.
7442 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7443 include <setjmp.h>, or <sys/types.h> conditional on USG.
7444 (remote_fio_jmp_buf): Delete global variable.
7445
449092f6 74462003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7447 Martin M. Hunt <hunt@redhat.com>
449092f6 7448
559fa028
AC
7449 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7450 (SFILES): Add remote-fileio.c.
7451 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7452 dependencies for building remote.o.
449092f6
CV
7453 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7454 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7455 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7456 static storage class.
7457 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7458 'F' packet.
7459 (_initialize_remote): Call initialize_remote_fileio().
7460 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7461 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7462 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7463 (captured_main): Initialize new ui_files.
7464 * ui-file.c: Add read and fgets input functions.
7465 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7466 (null_file_read): New function.
7467 (ui_file_read): New function.
7468 (set_ui_file_read): New function.
7469 (stdio_file_read): New function.
7470 * ui-file.h: New type ui_file_read_ftype.
7471 (set_ui_file_read): Declare.
7472 (ui_file_read): Declare.
7473
248de703
AC
74742003-06-09 Andrew Cagney <cagney@redhat.com>
7475
7476 * frame.h (deprecated_unwind_get_saved_register): Rename
7477 generic_unwind_get_saved_register, update comments.
7478 * mips-tdep.c (mips_get_saved_register): Update.
7479 * frame.c (deprecated_unwind_get_saved_register): Update.
7480
0ed8aa57
AC
74812003-06-09 Andrew Cagney <cagney@redhat.com>
7482
7483 * vax-tdep.c (vax_frame_locals_address): Delete function.
7484 (vax_gdbarch_init): Do not set frame_locals_address.
7485 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7486 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7487 * s390-tdep.c (s390_frame_args_address): Delete function.
7488 (s390_gdbarch_init): Do not set frame_args_address or
7489 frame_locals_address.
7490 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7491 (ns32k_gdbarch_init): Do not set frame_locals_address.
7492 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7493 (hppa_frame_locals_address): Delete function.
7494 (hppa_gdbarch_init): Do not set frame_args_address, or
7495 frame_locals_address.
7496 * arm-tdep.c (arm_frame_args_address): Delete.
7497 (arm_frame_locals_address): Delete.
7498 (arm_gdbarch_init): Do not set frame_args_address, or
7499 frame_locals_address.
7500
983a287a
AC
75012003-06-09 Andrew Cagney <cagney@redhat.com>
7502
7503 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7504 * gdbarch.h, gdbarch.c: Re-generate.
7505 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7506 * arch-utils.c (frame_num_args_unknown): Delete function.
7507 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7508 (frame_info): Use FRAME_NUM_ARGS_P.
7509 * arm-tdep.c (arm_frame_num_args): Delete function.
7510 (arm_gdbarch_init): Do not set frame_num_args.
7511 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7512 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7513 (hppa_gdbarch_init): Do not set frame_num_args.
7514 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7516 frame_num_args to default frame_num_args_unknown.
7517 * v850-tdep.c (v850_gdbarch_init): Ditto.
7518 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7519 * sh-tdep.c (sh_gdbarch_init): Ditto.
7520 * s390-tdep.c (s390_gdbarch_init): Ditto.
7521 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7522 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7523 * mips-tdep.c (mips_gdbarch_init): Ditto.
7524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7525 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7527 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7528 * i386-tdep.c (i386_gdbarch_init): Ditto.
7529 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7530 * frv-tdep.c (frv_gdbarch_init): Ditto.
7531 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7532 * cris-tdep.c (cris_gdbarch_init): Ditto.
7533 * avr-tdep.c (avr_gdbarch_init): Ditto.
7534 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7535
8d3b0994
AC
75362003-06-09 Andrew Cagney <cagney@redhat.com>
7537
7538 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7539 (print_frame_args): Moved to "stack.c".
7540 * stack.c: Include "gdb_assert.h".
7541 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7542 (print_frame_args): Moved from "printcmd.c".
7543 * frame.h (print_frame_args): Delete declaration.
7544 * Makefile.in (stack.o): Update dependencies.
7545
25e3a86b
AC
75462003-06-08 Andrew Cagney <cagney@redhat.com>
7547
7548 * frame.c (get_prev_frame): Remove reference to
7549 frame_args_address_correct in comments.
7550 * frame-base.c (default_frame_args_address): Delete code
7551 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7552 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7553 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7554 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7555 (vax_frame_args_address_correct): Delete declaration.
7556
a9e5fdc2
AC
75572003-06-08 Andrew Cagney <cagney@redhat.com>
7558
7559 * gdbarch.sh (UNWIND_SP): Add.
7560 * gdbarch.h, gdbarch.c: Re-generate.
7561 * frame.c (frame_sp_unwind): New function.
7562 (get_frame_sp): New function.
7563 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7564 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7565 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7566 value.
7567 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7568 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7569
8983bd83
AC
75702003-06-08 Andrew Cagney <cagney@redhat.com>
7571
7fec2c59
AC
7572 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7573 REMOTE_BREAKPOINT.
7574 * remote.c: Update.
7575 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7576 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7577 * config/m68k/tm-sun3.h: Update.
7578 * config/m68k/tm-m68klynx.h: Update.
7579 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7580
8983bd83
AC
7581 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7582 trad_frame". Update comments.
7583 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7584 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7585 (trad_frame_register_value, trad_frame_prev_register): Update.
7586
b9362cc7
AC
75872003-06-08 Andrew Cagney <cagney@redhat.com>
7588
7589 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7590 from GCC's acinclude.m4.
7591 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7592 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7593 * main.c (error_init): Delete declaration.
7594 * defs.h (error_init): Declare.
7595 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7596 (rs6000_convert_from_func_ptr_addr): Make static.
7597 (_initialize_rs6000_tdep): Add declaration.
7598 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7599 (show_commands, set_verbose, show_history): Delete declaration.
7600 * top.h (set_verbose): Add declaration.
7601 (show_history, set_history, show_commands): Add declaration.
7602 (do_restore_instream_cleanup): Add declaration.
7603 * objc-lang.c (specialcmp): Make static.
7604 (print_object_command): Make static.
7605 (find_objc_msgsend): Make static.
7606 (find_objc_msgcall_submethod_helper): Make static.
7607 (find_objc_msgcall_submethod): Make static.
7608 (_initialize_objc_language): Add declaration.
7609 (find_implementation_from_class): Make static.
7610 (find_implementation): Make static.
7611 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7612 * objc-lang.h (lookup_struct_typedef): Add declaration.
7613 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7614 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7615 (do_restore_user_call_depth): Make static.
7616 (do_restore_instream_cleanup): Delete declaration.
7617 (dont_repeat): Delete declaration.
7618 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7619 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7620 * reggroups.c (_initialize_reggroup): Add declaration.
7621 * cp-support.c (_initialize_cp_support): Add declaration.
7622 * cp-abi.c (_initialize_cp_abi): Add declaration.
7623 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7624 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7625 (_initialize_gnu_v3_abi): Add declaration.
7626 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7627 (_initialize_gnu_v2_abi): Add declaration.
7628 * frame-base.c (_initialize_frame_base): Add declaration.
7629 * doublest.c (floatformat_from_length): Make static.
7630 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7631 * frame.c (create_sentinel_frame): Make static.
7632 (_initialize_frame): Add declaration.
7633 * top.c (do_catch_errors): Make static.
7634 (gdb_rl_operate_and_get_next_completion): Make static.
7635 * typeprint.c: Include "typeprint.h".
7636 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7637 (sentinel_frame_this_id): Make static.
7638 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7639 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7640 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7641 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7642 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7643 * maint.c (maintenance_print_architecture): Make static.
7644 * signals/signals.c (_initialize_signals): Add declaration.
7645 * std-regs.c (_initialize_frame_reg): Add declaration.
7646 * jv-exp.y (push_variable): ISO C definition.
7647 (push_qualified_expression_name): Ditto.
7648 * memattr.c (_initialize_mem): Add declaration.
7649 * remote.c (remote_check_watch_resources): Make static.
7650 (remote_stopped_by_watchpoint): Make static.
7651 (remote_stopped_data_address): Make static.
7652 * d10v-tdep.c (nr_dmap_regs): Make static.
7653 (a0_regnum): Make static.
7654 (d10v_frame_unwind_cache): Make static.
7655 (d10v_frame_p): Make static.
7656 * osabi.c (show_osabi): Make static.
7657 (_initialize_gdb_osabi): Add extern declaration.
7658 * gdbtypes.c (make_qualified_type): Make static.
7659 (safe_parse_type): Make static.
7660 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7661 * macrotab.c (macro_bcache_free): Make static.
7662 * interps.c (interp_set_quiet): Make static.
7663 (interpreter_exec_cmd): Make static.
7664 * stack.h (select_frame_command): New file.
7665 * stack.c: Include "stack.h".
7666 (select_frame_command_wrapper): Delete function.
7667 (select_frame_command): Make global.
7668 * infcall.c: Include "infcall.h".
7669 * linespec.c: Include "linespec.h".
7670 * symfile.c (sections_overlap): Make static.
7671 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7672 * charset.c (_initialize_charset): Add missing prototype.
7673 * regcache.c (init_legacy_regcache_descr): Make static.
7674 (do_regcache_xfree): Make static.
7675 (regcache_xfer_part): Make static.
7676 (_initialize_regcache): Add missing prototype.
7677 * breakpoint.c (parse_breakpoint_sals): Make static.
7678 (breakpoint_sals_to_pc): Make static.
7679 * interps.h (clear_interpreter_hooks): ISO C declaration.
7680 * Makefile.in (stack_h): Define.
7681 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7682 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7683
a0f267c7
AC
76842003-06-08 Andrew Cagney <cagney@redhat.com>
7685
7686 * Makefile.in (d10v-tdep.o): Update dependencies.
7687 (SFILES): Add trad-frame.c.
7688 (trad_frame_h): Define.
7689 (COMMON_OBS): Add trad-frame.o.
7690 (trad-frame.o): Specify dependencies.
7691 * d10v-tdep.c: Include "trad-frame.h".
7692 (saved_regs_unwinder): Delete function.
7693 (d10v_frame_prev_register): Use trad_frame_prev_register.
7694 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7695 trad_frame", delete "regs" and "prev_sp".
7696 (prologue_find_regs): Use trad-frame.
7697 * trad-frame.h, trad-frame.c: New files.
7698
4538b4f4
MK
76992003-06-08 Mark Kettenis <kettenis@gnu.org>
7700
7701 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7702
a0273b2f
AF
77032003-06-07 Adam Fedor <fedor@gnu.org>
7704
7705 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7706 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7707 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7708 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7709 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7710 Use it.
7711
3a6c3343
AC
77122003-06-07 Andrew Cagney <cagney@redhat.com>
7713
7714 * symfile.h: Re-indent, clean up comments.
7715
b46e02f6
AC
77162003-06-07 Andrew Cagney <cagney@redhat.com>
7717
7718 * inferior.h (deprecated_write_sp): Replace
7719 generic_target_write_sp.
7720 * regcache.c (deprecated_write_sp): Replace
7721 generic_target_write_sp.
7722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7723 * vax-tdep.c (vax_gdbarch_init): Update.
7724 * v850-tdep.c (v850_gdbarch_init): Update.
7725 * sparc-tdep.c (sparc_gdbarch_init): Update.
7726 * sh-tdep.c (sh_gdbarch_init): Update.
7727 * s390-tdep.c (s390_gdbarch_init): Update.
7728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7729 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7730 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7731 * mcore-tdep.c (mcore_gdbarch_init): Update.
7732 * m68k-tdep.c (m68k_gdbarch_init): Update.
7733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7734 * ia64-tdep.c (ia64_gdbarch_init): Update.
7735 * h8300-tdep.c (h8300_gdbarch_init): Update.
7736 * frv-tdep.c (frv_gdbarch_init): Update.
7737 * cris-tdep.c (cris_gdbarch_init): Update.
7738 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7739
a42e117c
AC
77402003-06-07 Andrew Cagney <cagney@redhat.com>
7741
7742 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7743 Assert that PC_REGNUM is valid.
7744 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7745
bd1ce8ba
AC
77462003-06-07 Andrew Cagney <cagney@redhat.com>
7747
7748 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7749 * gdbarch.h, gdbarch.c: Regenerate.
7750 * mn10300-tdep.c: Include "gdb_assert.h".
7751 (mn10300_read_fp): New function.
7752 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7753 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7754 * ia64-tdep.c: Include "gdb_assert.h".
7755 (ia64_read_fp): New function.
7756 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7757 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7758 * regcache.c (generic_target_read_sp): Delete function.
7759 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7760 * inferior.h (generic_target_read_sp): Delete declaration.
7761 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7762 generic_target_read_sp.
7763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
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 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7768
ec5cbaec
AC
77692003-06-07 Andrew Cagney <cagney@redhat.com>
7770
7771 * gdbarch.sh: Comment each field of startup_gdbarch.
7772 * gdbarch.h, gdbarch.c: Re-generate.
7773
cde9ea48
AC
77742003-06-07 Andrew Cagney <cagney@redhat.com>
7775
7776 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7777 * gdbarch.h, gdbarch.c: Re-generate.
7778 * regcache.c: Update comments on read_pc et.al.
7779 (generic_target_read_pc): Delete function.
7780 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7781 * inferior.h (generic_target_read_pc): Delete declaration.
7782 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7783 generic_target_read_pc.
7784 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7785 * sh-tdep.c (sh_gdbarch_init): Ditto.
7786 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7788
9a90a780
AC
77892003-06-07 Andrew Cagney <cagney@redhat.com>
7790
7791 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7792 "index" with "special_local_sect". Use strcmp instead of STREQ.
7793 Append period to coments.
7794
a39a16c4
MM
77952003-06-06 Mark Mitchell <mark@codesourcery.com>
7796
7797 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7798 (elfstab_offset_sections): Likewise.
7799 * gdb-stabs.h (stab_section_info): Likewise.
7800 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7801 * objfiles.c (objfile_relocate): Likewise.
7802 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7803 * remote.c (get_offsets): Likewise.
7804 (remote_cisco_objfile_relocate): Likewise.
7805 * somread.c (som_symfile_offsets): Likewise.
7806 * symfile.c (alloc_section_addr_info): New function.
7807 (build_section_addr_info_from_section_tab): Use it.
7808 (free_section_addr_info): Adjust.
7809 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7810 (syms_from_objfile): Allocate local_addr dynamically.
7811 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7812 dynamically.
7813 (add_symbol_file_command): Allocate sect_opts dynamically.
7814 (reread_symbols): Avoid use of SECT_OFF_MAX.
7815 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7816 (alloc_section_addr_info): Declare it.
7817 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7818 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7819 dynamically.
7820 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7821
20c6c2f8
AC
78222003-06-06 Andrew Cagney <cagney@redhat.com>
7823
7824 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7825 (d10v_frame_unwind_cache): Do not set "return_pc".
7826
884a26c8
MS
78272003-06-06 Michael Snyder <msnyder@redhat.com>
7828
7829 * h8300-tdep.c: Make tidy (long lines).
7830
088ce440
ML
78312003-06-06 Michal Ludvig <mludvig@suse.cz>
7832
8ffd9b1b 7833 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7834 to regcache_collect().
7835
7d773d96
JB
78362003-06-05 J. Brobecker <brobecker@gnat.com>
7837
7838 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7839 pc_in_sigtramp multiarch method.
7840 (hppa_hpux_som_init_abi): Use it.
7841 (hppa_hpux_elf_init_abi): Likewise.
7842 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7843 macro has been multiarched.
7844 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7845 macro here, as hppa64 isn't multiarched yet.
7846
1df6926e
AC
78472003-06-05 Andrew Cagney <cagney@redhat.com>
7848
7849 * Makefile.in (value_h): Add $(frame_h).
7850 * value.h: Include "frame.h".
7851 (struct value): Replace "frame_addr" with "frame_id".
7852 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7853 * values.c (allocate_value): Use VALUE_FRAME_ID.
7854 (value_copy): Use VALUE_FRAME_ID.
7855 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7856 * valops.c (value_assign): Update. Use frame_find_by_id.
7857
6b53acc6
ML
78582003-06-05 Michal Ludvig <mludvig@suse.cz>
7859
7860 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7861 in each pass.
7862
4d9850d3
JJ
78632003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7864
7865 * thread-db.c (check_event): For create/death event breakpoints,
7866 loop through all messages to ensure that we read the message
7867 corresponding to the breakpoint we are at.
7868
8efca6ba
MS
78692003-06-04 Michael Snyder <msnyder@redhat.com>
7870
7871 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7872
0912c7f2
MK
78732003-06-04 Mark Kettenis <kettenis@gnu.org>
7874
7875 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7876 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7877 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7878 when handling .eh_frame sections.
7879
4e370325
JB
78802003-06-04 J. Brobecker <brobecker@gnat.com>
7881
7882 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7883 prepare_to_proceed procedure instead of the hppa-specific one.
7884 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7885
b757528f 78862003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7887
b757528f
JJ
7888 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7889 * config.in: Regenerated.
7890 * configure.in: Add test for syscall function and check for
7891 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7892 * configure: Regenerated.
7893 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7894 <sys/syscall.h>.
7895 (kill_lwp): New function that uses tkill syscall or
7896 uses kill, depending on whether threading model is nptl or not.
7897 All callers of kill() changed to use kill_lwp().
7898 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7899 see if all threads have already exited in the nptl model.
7900 (stop_and_resume_callback): New callback function used by the
7901 lin_lwp_wait thread exit handling code.
7902 (stop_wait_callback): Check for threads already having exited and
7903 delete such threads fromt the lwp list when discovered.
7904 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7905
b757528f
JJ
7906 Roland McGrath <roland@redhat.com>
7907 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7908 nptl libthread_db.
7909
087779b1
RH
79102003-06-03 Richard Henderson <rth@redhat.com>
7911
b21fd293
RH
7912 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7913 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7914 (alpha_sigtramp_frame_prev_register): Likewise.
7915 (alpha_heuristic_frame_prev_register): Likewise.
7916 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7917
8ffd9b1b 7918 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7919 alpha-specific register id names.
7920 (alpha_mdebug_frame_unwind_cache): Likewise.
7921 (alpha_mdebug_frame_prev_register): Likewise.
7922
baa490c4
RH
79232003-06-03 Richard Henderson <rth@redhat.com>
7924
7925 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7926 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7927 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7928 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7929 unwind routines.
7930 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7931 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7932 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7933
7934 * alpha-linux-tdep.c: Remove unnecessary includes.
7935 * Makefile.in (alpha-linux-tdep.o): Update.
7936
79372003-06-03 Richard Henderson <rth@redhat.com>
7938
7939 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7940 (alphabsd_fill_fpreg): Likewise.
7941
f534e522
JB
79422003-06-03 J. Brobecker <brobecker@gnat.com>
7943
7944 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7945 references to struct frame_info fields by calls to the equivalent
7946 accessors. Necessary now that frame_info is opaque.
7947
4035536b
JB
79482003-06-03 J. Brobecker <brobecker@gnat.com>
7949
7950 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7951 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7952 structure, field no longer exists.
7953
0bd79c5c
JB
79542003-06-03 J. Brobecker <brobecker@gnat.com>
7955
7956 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7957 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7958
37bb6d9f
JB
79592003-06-03 J. Brobecker <brobecker@gnat.com>
7960
7961 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7962 references to struct frame_info fields by calls to the equivalent
7963 accessors. Necessary now that frame_info is opaque.
7964
852ee05c
JB
79652003-06-03 J. Brobecker <brobecker@gnat.com>
7966
7967 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7968 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7969 structure, field no longer exists.
7970
7d58c67d
TR
79712003-06-03 Theodore A. Roth <troth@openavr.org>
7972
8ffd9b1b 7973 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7974 accumulation of the size of all registers instead of blindly using
7975 DEPRECATED_REGISTER_BYTES.
7976
0a48e7e8
MS
79772003-06-03 Michael Snyder <msnyder@redhat.com>
7978
7979 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7980 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7981 for h8300sx.
7982
9798ab0d
JB
79832003-06-03 J. Brobecker <brobecker@gnat.com>
7984
7985 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7986 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7987
00b037e2
AC
79882003-06-03 Andrew Cagney <cagney@redhat.com>
7989
7990 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7991 (sparc_convert_to_raw): Delete function.
7992 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7993 register_convert_to_virtual.
7994
043b2f77
JJ
79952003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7996
7997 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7998 layer if not dealing with a statically-linked threaded program.
7999
f43caff8
KW
80002003-06-03 Kris Warkentin <kewarken@qnx.com>
8001
8002 * solib.c (solib_open): Update comment to reflect actual search order.
8003
ae1e7417
AC
80042003-06-03 Andrew Cagney <cagney@redhat.com>
8005
8006 * frame.c (get_frame_memory_signed): New function.
8007 (get_frame_memory, get_frame_memory_unsigned): New function.
8008 (get_frame_arch): New function.
8009 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
8010 (get_frame_memory, get_frame_unsigned_memory): Declare.
8011 * d10v-tdep.c (d10v_frame_unwind_cache): Use
8012 get_frame_memory_unsigned and get_frame_arch.
8013 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
8014
cb123844
RG
80152003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
8016
8017 * MAINTAINERS (write after approval): Add myself.
8018
1bb792e9
JB
80192003-06-03 Jim Blandy <jimb@redhat.com>
8020
8021 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
8022 elements of gregset_t are 64 bits each, but access registers
8023 are still 32 bits, so they're packed two per gregset_t
8024 element. Unpack/pack them properly.
8025
aee8d8ba
DC
80262003-06-02 David Carlton <carlton@bactrian.org>
8027
8028 * linespec.c (find_methods): Break out code into
8029 add_matching_methods and add_constructors.
8030 (add_matching_methods): New.
8031 (add_constructors): Ditto.
8032
bf7488d2
AC
80332003-06-02 Andrew Cagney <cagney@redhat.com>
8034
bf7488d2
AC
8035 * sparc-tdep.c (sparc_print_registers): Delete call to
8036 REGISTER_CONVERTIBLE.
8037 (sparc_gdbarch_init): Do not set register_convertible.
8038 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8039 * frv-tdep.c (frv_gdbarch_init): Ditto.
8040 * cris-tdep.c (cris_gdbarch_init): Ditto.
8041
adedef68
EZ
80422003-06-02 Elena Zannoni <ezannoni@redhat.com>
8043
8ffd9b1b 8044 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
8045 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
8046 (syms_from_objfile): Ditto.
8047
650fcc91
AS
80482003-06-03 Andreas Schwab <schwab@suse.de>
8049
8050 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
8051 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
8052
df4a182b
RH
80532003-06-02 Richard Henderson <rth@redhat.com>
8054
8055 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
8056 a member of all_reggroup.
8057
c483c494
RH
80582003-06-02 Richard Henderson <rth@redhat.com>
8059
8060 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
8061 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8062 (alpha_lds, alpha_sts): New.
8063 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 8064 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
8065 restructure and fail for type sizes other than 4 or 8.
8066 (alpha_value_to_register): Similarly.
8067 (alpha_extract_return_value): Use alpha_sts.
8068 (alpha_store_return_value): Use alpha_lds.
8069 (alpha_gdbarch_init): Update hooks.
8070
b38b6be2
RH
80712003-06-02 Richard Henderson <rth@redhat.com>
8072
8073 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8074 regnum identifiers.
8075 (alpha_sigtramp_register_address): Likewise.
8076
98a8e1e5
RH
80772003-06-02 Richard Henderson <rth@redhat.com>
8078
8079 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8080 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8081 * alpha-tdep.h: Declare them.
8082
8083 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8084 Remove zerobuf. Don't error on UNIQUE.
8085 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8086 (ALPHA_REGSET_UNIQUE): Provide default.
8087 (supply_gregset): Use alpha_supply_int_regs.
8088 (fill_gregset): Use alpha_fill_int_regs.
8089 (supply_fpregset): Use alpha_supply_fp_regs.
8090 (fill_fpregset): Use alpha_fill_fp_regs.
8091 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8092 (alphabsd_supply_reg): Use alpha_supply_int_regs.
8093 (alphabsd_fill_reg): Use alpha_fill_int_regs.
8094 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8095 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8096 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8097
67dfac52
RH
80982003-06-02 Richard Henderson <rth@redhat.com>
8099
f75d70cc
RH
8100 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8101
67dfac52
RH
8102 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8103 (alpha_store_return_value): Likewise.
8104
0cf566ec
DC
81052003-06-02 David Carlton <carlton@math.stanford.edu>
8106
8107 * block.c (contained_in): Add 'const' to arguments.
8108 (block_function): Ditto.
8109 * block.h: Update declarations for block_function and
8110 contained_in.
8111
cdef89d0
DC
81122003-06-02 David Carlton <carlton@math.stanford.edu>
8113
8114 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8115 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8116 * p-valprint.c (pascal_val_print): Ditto.
8117 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8118
72667056
RH
81192003-06-02 Richard Henderson <rth@redhat.com>
8120
98a8e1e5
RH
8121 * alpha-tdep.c (alpha_push_dummy_call): Use
8122 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 8123
8ffd9b1b 8124 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
8125 sign-extension of 32-bit values.
8126 (alpha_store_return_value): Similarly.
0ede8eca 8127
98a8e1e5
RH
8128 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8129 (alpha_extract_return_value): Likewise.
8130 (alpha_store_return_value): Likewise.
7b5e1cb3 8131
98a8e1e5
RH
8132 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8133 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 8134
98a8e1e5
RH
8135 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8136 (alpha_extract_struct_value_address): Likewise.
8137 (alpha_store_return_value): Likewise.
8138 (alpha_store_struct_return): Remove.
8139 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 8140
98a8e1e5
RH
8141 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8142 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8143 macros where appropriate.
8144 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8145 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 8146
98a8e1e5
RH
8147 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8148 for SP, GP; void_func_ptr for PC; non-language-specific types
8149 for all others.
8150 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 8151
6dd77b81
RH
81522003-06-02 Richard Henderson <rth@redhat.com>
8153
8154 * top.h (lim_at_start): Declare.
8155 * main.c (captured_main): Set it.
8156 * top.c (lim_at_start): Define.
8157 (command_loop): Use it instead of &environ.
8158 * event-top.c (command_handler): Likewise.
8159
f4dbdb54
JT
81602003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8161
8162 * mipsnbsd-tdep.c: Update copyright years.
8163 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8164
8f285956
RH
81652003-06-01 Richard Henderson <rth@redhat.com>
8166
98a8e1e5
RH
8167 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8168 (alpha-linux-tdep.o): Update dependencies.
8169 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8170 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 8171
615967cb
RH
81722003-06-01 Richard Henderson <rth@redhat.com>
8173
98a8e1e5
RH
8174 * alpha-tdep.c (alpha_register_reggroup_p): New.
8175 (alpha_gdbarch_init): Register it.
615967cb 8176
b59661bd
AC
81772003-06-02 Andrew Cagney <cagney@redhat.com>
8178
8179 * dwarfread.c: Eliminate "register"
8180 (decode_die_type): Eliminate assignment within "if".
8181 (struct_type, decode_array_element_type): Ditto.
8182 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8183 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8184 (decode_modified_type, completedieinfo): Ditto.
8185 * block.c: Eliminate "register".
8186 (blockvector_for_pc_sect): Eliminate assignment within "if".
8187 * cp-support.h (struct symbol): Opaque declaration.
8188 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8189
5ef165c2
RH
81902003-06-01 Richard Henderson <rth@redhat.com>
8191
98a8e1e5
RH
8192 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8193 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 8194
143985b7
AF
81952003-06-01 Adam Fedor <fedor@gnu.org>
8196
8197 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8198 * gdbarch.[ch]: Regenerate.
8199 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8200 (hppa_gdbarch_init): Set it in the gdbarch vector.
8201 * i386-tdep.c (i386_fetch_pointer_argument): New
8202 (i386_gdbarch_init): Set it into gdbarch.
8203 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8204 (rs6000_gdbarch_init): Set it in gdbarch.
8205 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8206 (sparc_gdbarch_init): Set it in gdbarch.
8207
ae0167b9
AC
82082003-06-01 Andrew Cagney <cagney@redhat.com>
8209
7c0b4a20
AC
8210 * defs.h (extract_address): Delete declaration.
8211 * findvar.c (extract_address): Delete function.
8212 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8213 extract_address with the inline equivalent,
8214 extract_unsigned_integer.
8215 (xstormy16_extract_struct_value_address): Ditto.
8216 (xstormy16_pointer_to_address): Ditto.
8217 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8218 * v850-tdep.c (v850_push_arguments): Ditto.
8219 (v850_extract_return_value): Ditto.
8220 (v850_extract_struct_value_address): Ditto.
8221 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8222 (sparcnbsd_get_longjmp_target_64): Ditto.
8223 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8224 (get_longjmp_target): Ditto.
8225 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8226 (sh64_extract_struct_value_address): Ditto.
8227 (sh_push_arguments): Ditto.
8228 (sh64_push_arguments): Ditto.
8229 * remote-vxsparc.c (vx_read_register): Ditto.
8230 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8231 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8232 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8233 * mipsv4-nat.c (get_longjmp_target): Ditto.
8234 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8235 * mips-nat.c (get_longjmp_target): Ditto.
8236 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8237 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8238 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8239 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8240 * irix5-nat.c (get_longjmp_target): Ditto.
8241 * irix4-nat.c (get_longjmp_target): Ditto.
8242 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8243 (ia64_push_arguments): Ditto.
8244 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8245 * h8300-tdep.c (h8300_push_arguments): Ditto.
8246 (h8300_store_return_value): Ditto.
8247 (h8300_extract_struct_value_address): Ditto.
8248 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8249 (frv_push_arguments): Ditto.
8250 * avr-tdep.c (avr_pointer_to_address): Ditto.
8251 (avr_push_arguments): Ditto.
8252 * arm-tdep.c (arm_push_dummy_call): Ditto.
8253 (arm_get_longjmp_target): Ditto.
8254 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8255 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8256 (alpha_get_longjmp_target): Ditto.
8257
ae0167b9
AC
8258 * solib-irix.c (extract_mips_address): Inline extract_address,
8259 replacing it with extract_signed_integer.
8260 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8261 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8262 (first_link_map_member, open_symbol_file_object): Ditto.
8263 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8264 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8265 (LM_NEXT, LM_NAME): Ditto.
8266
44d88583
RH
82672003-06-01 Richard Henderson <rth@redhat.com>
8268
98a8e1e5
RH
8269 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8270 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8271 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8272 (alpha_cannot_store_register): Likewise.
8273 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8274 * alpha-nat.c (supply_gregset): Likewise.
8275 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8276
310e9b6a
AC
82772003-06-01 Andrew Cagney <cagney@redhat.com>
8278
8279 * infcall.c (call_function_by_hand): Update comment on
8280 DEPRECATED_DUMMY_WRITE_SP.
8281
8282 * mips-tdep.c (mips_gdbarch_init): Do not set
8283 deprecated_dummy_write_sp.
8284 (mips_eabi_push_dummy_call): Set the SP register.
8285 (mips_o64_push_dummy_call): Set the SP register.
8286 (mips_o32_push_dummy_call): Set the SP register.
8287 (mips_n32n64_push_dummy_call): Set the SP register.
8288
5ab84872
RH
82892003-06-01 Richard Henderson <rth@redhat.com>
8290
98a8e1e5
RH
8291 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8292 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8293 (supply_gregset): Likewise.
8294 * alpha-tdep.c (alpha_store_return_value): Likewise.
8295 (alpha_get_longjmp_target): Likewise.
8296 (alpha_register_name): Constify array.
8297 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8298 deprecated_register_size, deprecated_register_bytes,
8299 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8300 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8301 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8302
09cc52fd
RH
83032003-06-01 Richard Henderson <rth@redhat.com>
8304
8305 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8306 from arg_reg_buffer to regcache to avoid double conversion.
8307
c7f16359
MK
83082003-06-01 Mark Kettenis <kettenis@gnu.org>
8309
8310 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8311 SP_REGNUM.
8312 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8313 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8314
7131cb6e
RH
83152003-06-01 Richard Henderson <rth@redhat.com>
8316
98a8e1e5
RH
8317 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8318 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8319
f3e0f90b
RH
83202003-06-01 Richard Henderson <rth@redhat.com>
8321
98a8e1e5
RH
8322 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8323 not overlapping PC_REGNUM.
f3e0f90b 8324
c88e30c0
RH
83252003-06-01 Richard Henderson <rth@redhat.com>
8326
98a8e1e5
RH
8327 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8328 alpha_push_arguments. Don't dump argument register data to
8329 the target stack. Fix float and 128-bit long double semantics.
8330 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8331 (alpha_fix_call_dummy): Remove.
8332 (alpha_call_dummy_words): Remove.
8333 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8334
f1a559ae
RH
83352003-06-01 Richard Henderson <rth@redhat.com>
8336
8337 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8338
5e045346
AC
83392003-06-01 Andrew Cagney <cagney@redhat.com>
8340
95404a3e
AC
8341 * mips-tdep.c (is_mips16_addr): New function.
8342 (make_mips16_addr, unmake_mips16_addr): New functions.
8343 (pc_is_mips16, mips_fetch_instruction): Use.
8344 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8345 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8346 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8347 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8348 TARGET_MIPS.
8349 * config/mips/tm-mips.h: Update copyright.
8350 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8351 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8352 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8353 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8354 (TM_PRINT_INSN_MACH): Delete.
8355 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8356
5e045346
AC
8357 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8358 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8359 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8360 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8361 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8362 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8363 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8364 mips*-*-riscos* and mips*-*-sysv* onto mips.
8365 * config/mips/mips64.mt: New file.
8366 * config/mips/mips.mt: New file.
8367 * config/mips/littlemips.mt: Delete file.
8368 * config/mips/decstation.mt: Delete file.
8369 * config/mips/vr4300el.mt: Delete file.
8370 * config/mips/vr5000el.mt: Delete file.
8371 * config/mips/vr5000.mt: Delete file.
8372 * config/mips/vr4100.mt: Delete file.
8373 * config/mips/vr4xxxel.mt: Delete file.
8374 * config/mips/vr4300.mt: Delete file.
8375 * config/mips/vr4xxx.mt: Delete file.
8376 * config/mips/bigmips.mt: Delete file.
8377 * config/mips/bigmips64.mt: Delete file.
8378 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8379 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8380 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8381 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8382 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8383 "tm-bigmips.h".
8384 * config/mips/tm-irix3.h: Ditto.
8385 * config/mips/tm-mipsv4.h: Ditto.
8386 * config/mips/tm-embed.h: Ditto.
8387 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8388 "tm-bigmips64.h".
8389 * config/mips/tm-vr5000el.h: Delete file.
8390 * config/mips/tm-tx39l.h: Delete file.
8391 * config/mips/tm-vr4300el.h: Delete file.
8392 * config/mips/tm-vr4xxxel.h: Delete file.
8393 * config/mips/tm-vr4300.h: Delete file.
8394 * config/mips/tm-vr4100.h: Delete file.
8395 * config/mips/tm-vr4xxx.h: Delete file.
8396 * config/mips/tm-vr5000.h: Delete file.
8397 * config/mips/tm-embedl64.h: Delete file.
8398 * config/mips/tm-embedl.h: Delete file.
8399 * config/mips/tm-embed64.h: Delete file.
8400 * config/mips/tm-bigmips64.h: Delete file.
8401 * config/mips/tm-bigmips.h: Delete file.
8402
2473a4a9
MK
84032003-06-01 Mark Kettenis <kettenis@gnu.org>
8404
97a5b208
MK
8405 Fix gdb/1216.
8406 * shnbsd-nat.c: Include "sh-tdep.h".
8407
2473a4a9
MK
8408 From Richard Henderson <rth@redhat.com>:
8409 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8410
e0f7ec59
AC
84112003-05-31 Andrew Cagney <cagney@redhat.com>
8412
8413 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8414 forward declaration.
8415 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8416 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8417 (mips_find_saved_regs): Use set_reg_offset.
8418 (mips_frame_init_saved_regs): Delete function.
8419 (mips_pop_frame): Call mips_find_saved_regs instead of
8420 DEPRECATED_FRAME_INIT_SAVED_REGS.
8421
68dcc709
AC
84222003-05-31 Andrew Cagney <cagney@redhat.com>
8423
8424 * mips-tdep.c (mips_gdbarch_init): Do not set
8425 deprecated_max_register_raw_size, register_virtual_size, and
8426 deprecated_max_register_virtual_size.
8427
cfc14b3a
MK
84282003-05-31 Mark Kettenis <kettenis@gnu.org>
8429
6405b0a6
MK
8430 * i386-tdep.c: Include "dwarf2-frame.h".
8431 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8432 * Makefile.in (i386-tdep.o): Update dependencies.
8433
cfc14b3a
MK
8434 * dwarf2-frame.c, dwarf2-frame.h: New files.
8435 * Makefile.in (SFILES): Add dwarf2-frame.c.
8436 (dwarf2_frame_h): Define.
8437 (COMMON_OBS): Add dwarf2-frame.o.
8438 (dwarf2-frame.o): Add dependencies.
8439
6a2751d2
AJ
84402003-05-31 Andreas Jaeger <aj@suse.de>
8441
8442 * x86-64-linux-nat.c: Fix comment.
8443
1c3545ae
MK
84442003-05-31 Mark Kettenis <kettenis@gnu.org>
8445
10f93086
MK
8446 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8447 function signature.
8448
1c3545ae
MK
8449 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8450 have a sigcontext_addr handler.
8451 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8452 sigcontext_addr handler.
8453
e11c53d2
AC
84542003-05-31 Andrew Cagney <cagney@redhat.com>
8455
8456 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8457 (print_fp_register_row): Replace do_fp_register_row.
8458 (mips_print_fp_register): Add "file" and "frame" parameters.
8459 (mips_print_register): Add "file" and "frame" parameters.
8460 (mips_print_registers_info): Replace mips_do_registers_info.
8461 (mips_gdbarch_init): Set print_registers_info instead of
8462 deprecated_do_registers_info.
8463 (mips_read_fp_register_single): Add "frame" parameter.
8464 (mips_read_fp_register_double): Add "frame" parameter.
8465
a3386186
MK
84662003-05-31 Mark Kettenis <kettenis@gnu.org>
8467
70913449
MK
8468 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8469 Fixes a bug where GDB would print the wrong register names for
8470 targets without SSE.
8471
2b5e0749
MK
8472 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8473 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8474 registers.
8475
8476 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8477 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8478 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8479 TDEP->sc_sp_offset.
8480
a3386186
MK
8481 From Michal Ludvig <mludvig@suse.cz>:
8482 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8483 and `sc_num_regs'.
8484 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8485 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8486 I386_ST0_REGNUM): Move here from...
8487 * i386-tdep.c: ... here.
8488 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8489 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8490 registers if possible.
8491 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8492 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8493 Remove variables.
8494 (i386bsd_sc_reg_offset): New variable.
8495 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8496 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8497 TDEP->sc_sp_offset.
8498 (i386fbsd_sc_reg_offset): New variable.
8499 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8500 TDEP->sc_num_regs.
8501 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8502 variables.
8503 (i386fbsd4_sc_reg_offset): New variable.
8504 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8505 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8506 TDEP->sc_sp_offset.
8507 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8508 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8509 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8510 Remove variables.
8511 (i386nbsd_sc_reg_offset): New variable.
8512 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8513 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8514 TDEP->sc_sp_offset.
8515 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8516 Remove variables.
8517 (i386obsd_sc_reg_offset): New variable.
8518 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8519 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8520 TDEP->sc_sp_offset.
8521 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8522 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8523 for frame pointer offset in `struct sigcontext'.
8524
25ab4790
AC
85252003-05-31 Andrew Cagney <cagney@redhat.com>
8526
8527 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8528 architecture methods call_dummy_words, sizeof_call_dummy_words,
8529 push_return_address, store_struct_return, and fix_call_dummy. Set
8530 push_dummy_call instead of deprecated_push_arguments.
8531 (mips_store_struct_return): Delete function.
8532 (mips_fix_call_dummy): Delete function.
8533 (mips_push_return_address): Delete function.
8534 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8535 RA_REGNUM and T9_REGNUM.
8536 (mips_n32n64_push_dummy_call): Ditto for
8537 mips_n32n64_push_arguments.
8538 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8539 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8540
6a65450a
AC
85412003-05-31 Andrew Cagney <cagney@redhat.com>
8542
8543 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8544 "dummy_addr" to "bp_addr".
8545 * infcall.c (call_function_by_hand): Pass "funaddr" to
8546 gdbarch_push_dummy_call.
8547 * gdbarch.h, gdbarch.c: Re-generate.
8548 * i386-tdep.c (i386_push_dummy_call): Update.
8549 * arm-tdep.c (arm_push_dummy_call): Update.
8550 * d10v-tdep.c (d10v_push_dummy_call): Update.
8551
c4f35dd8
MK
85522003-05-31 Mark Kettenis <kettenis@gnu.org>
8553
8554 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8555 variable declarations.
8556 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8557 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8558 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8559 x86_64_init_frame_pc, x86_64_init_frame_pc,
8560 x86_64_function_has_prologue): Remove prototypes.
8561 (X86_64_NUM_GREGS): New define.
8562 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8563 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8564 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8565 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8566 XMM1_REGNUM): Remove defines.
8567 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8568 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8569 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8570 X86_64_XMM1_REGNUM): New defines.
8571 (struct x86_64_register_info): Renamed from `struct
8572 register_info'. Remove `size' member.
8573 (x86_64_register_info_table): Remove variable.
8574 (x86_64_register_info): New variable.
8575 (X86_64_NUM_REGS): New define.
8576 (X86_64_NUM_GREGS): Remove define.
8577 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8578 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8579 Remove variables.
8580 (x86_54_dwarf2_reg_to_regnum): Remove function.
8581 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8582 (x86_64_dwarf_reg_to_regnum): New function.
8583 (x86_64_register_name): Rewrite.
8584 (x86_64_register_raw_size): Remove function.
8585 (x86_64_register_byte_table): Remove variable.
8586 (x86_64_register_byte): Remove function.
8587 (x86_64_register_virtual_type): Remove function.
8588 (x86_64_register_type): New function.
8589 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8590 x86_64_register_convert_to_raw): Remove functions.
8591 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8592 (x86_64_use_struct_convention): Make static. Adjust for renamed
8593 defines.
8594 (x86_64_frame_init_saved_regs): Remove function.
8595 (x86_64_push_arguments): Make static. Change to accept a regcache
8596 as argument.
8597 (x86_64_store_return_value, x86_64_extract_return_value): Make
8598 static. Rewrite based on i386 counterparts.
8599 (x86_64_push_dummy_call): New function.
8600 (X86_64_NUM_SAVED_REGS): New define.
8601 (x86_64_register_number): Remove function.
8602 (x86_64_store_struct_return): Remove function.
8603 (x86_64_frameless_function_invocation,
8604 x86_64_function_has_prologue): Remove functions.
8605 (PROLOG_BUFSIZE): Remove define.
8606 (struct x86_64_frame_cache): New structure.
8607 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8608 x86_64_frame_cache, x86_64_frame_this_id,
8609 x86_64_frame_prev_register, x86_64_frame_p,
8610 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8611 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8612 functions.
8613 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8614 variables.
8615 (x86_64_skip_prologue): Rewrite in terms of
8616 x86_64_analyze_prologue.
8617 (x86_64_frame_base_address): New function.
8618 (x86_64_frame_base): New variable.
8619 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8620 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8621 set deprecated_fp_regnum, deprecated_register_size,
8622 deprecated_register_bytes, register_raw_size, register_byte,
8623 register_virtual_type, register_convertiable,
8624 register_convert_to_virtual, convert_to_raw,
8625 deprecated_get_saved_register, deprecated_target_read_fp,
8626 deprecated_push_arguments, deprecated_push_return_address,
8627 deprecated_pop_frame, deprecated_store_struct_return,
8628 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8629 frameless_function_invocation, deprecated_frame_saved_pc,
8630 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8631 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8632 deprecated_init_frame_pc and virtual_frame_pointer. Call
8633 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8634 and x86_64_frame_p. Call frame_base_set_default to register
8635 x86_64_frame_base.
8636 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8637 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8638 (_initialize_x86_64_tdep): Remove function.
8639 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8640 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8641 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8642 define.
8643 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8644 (x86_64_linux_sigcontext_addr): Rewrite.
8645 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8646 x86_64_linux_frame_saved_pc): Remove functions.
8647 (x86_64_linux_pc_in_sigtramp): Renamed from
8648 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8649 trampoline.
8650 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8651 Remove_functions.
8652 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8653 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8654 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8655 (x86_64_regmap): Rename to regmap.
8656 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8657 x86_64_num_gregs.
8658 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8659 x86_64_regmap.
8660 (x86_64_fxsave_offset): Remove function.
8661 (supply_fpregset): Simply call x86_64_supply_fxsave.
8662 (fill_fpregset): Simply call x86_64_fill_fxsave.
8663 (fetch_inferior_registers, store_inferior_registers): Avoid
8664 asignment in if-statement.
8665 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8666 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8667 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8668 (fetch_core_registers): Remove function.
8669 (linux_elf_core_fns): Remove.
8670 (offsetoff): Don't define.
8671 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8672 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8673 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8674 add core-regset.o.
8675 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8676 protection against multiple includes instead of NM_X86_64_h. Add
8677 various comments. Include "config/nm-linux.h". Don't include
8678 <signal.h>.
8679 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8680 GET_THREAD_SIGNALS): Remove defines.
8681 (x86_64_register_u_addr, kernel_u_size,
8682 lin_thread_get_thread_signals): Remove prototypes.
8683 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8684 [HAVE_LINK_H]: Don't include "solib.h".
8685 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8686 * config/i386/tm-x86-64linux.h: Fix comments.
8687 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8688 x86-64-tdep.o): Update dependencies.
8689
c25083af
AC
86902003-05-30 Andrew Cagney <cagney@redhat.com>
8691
c8f55a7b
AC
8692 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8693 Change parameter type to a "struct regcache *".
8694
c25083af
AC
8695 * gdbarch.sh: Regardless of the multi-arch level, always define
8696 the macro when not already defined.
8697 * gdbarch.h, gdbarch.c: Re-generate.
8698
fbe586ae
RH
86992003-05-30 Richard Henderson <rth@redhat.com>
8700
8701 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8702 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8703 (alpha_mdebug_frame_this_id): Likewise.
8704 (alpha_mdebug_frame_prev_register): Likewise.
8705 (alpha_mdebug_frame_base_address): Likewise.
8706 (alpha_mdebug_frame_locals_address): Likewise.
8707 (alpha_mdebug_frame_args_address): Likewise.
8708 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8709 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8710 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8711 loop increment.
8712 (alpha_heuristic_frame_this_id): Make static.
8713 (alpha_heuristic_frame_prev_register): Likewise.
8714 (alpha_heuristic_frame_base_address): Likewise.
8715 * alpha-tdep.h: Update.
8716
acd5c798
MK
87172003-05-30 Mark Kettenis <kettenis@gnu.org>
8718
8719 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8720 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8721 defenitions.
8722 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8723 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8724 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8725 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8726 I386_ST0_REGNUM): New defines.
8727 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8728 codestream_get): Remove define.
8729 (codestream_next_addr, condestream_addr, condestream_buf,
8730 codestream_off, codestream_cnt): Remove variables.
8731 (codestream_fill, codestream_seek, codestream_read): Remove
8732 functions.
8733 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8734 functionality.
8735 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8736 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8737 i386_frame_saved_pc, i386_saved_pc_after_call,
8738 i386_frame_num_args, i386_frame_init_saved_regs,
8739 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8740 i386_push_arguments): Remove functions.
8741 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8742 functionality. Use i386_analyze_prologue instead of
8743 i386_get_frame_setup.
8744 (I386_NUM_SAVED_REGS): New define.
8745 (struct i386_frame_cache): New structure.
8746 (i386_alloc_frame_cache, i386_analyze_struct_return,
8747 i386_skip_probe, i386_analyze_frame_setup,
8748 i386_analyze_register_saves, i386_analyze_prologue,
8749 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8750 i386_frame_prev_register, i386_sigtramp_frame_cache,
8751 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8752 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8753 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8754 New functions.
8755 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8756 New variables.
8757 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8758 I386_EAX_REGNUM and I386_EDX_REGNUM.
8759 (i386_extract_return_value, i386_store_return_value): Use
8760 I386_ST0_REGNUM where appropriate.
8761 (i386_extract_struct_value_address): Rewrite to use extract_address.
8762 (i386_svr4_pc_in_sigtramp): Add comment.
8763 (i386_svr4_sigcontext_addr): Rewrite.
8764 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8765 TDEP->sc_sp_offset.
8766 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8767 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8768 of new defines. Set push_dummy_call, don't set
8769 deprecated_push_arguments, deprecated_push_return_address,
8770 deprecated_pop_frame. Don't set parm_boundary. Don't set
8771 deprecated_frame_chain, deprecated_frame_saved_pc,
8772 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8773 save_dummy_frame_tos, unwind_pc. Call
8774 frame_unwind_append_predicate and frame_base_set_default. Don't
8775 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8776 Don't set frameless_function_invocation. Don't set
8777 deprecated_register_bytes, deprecated_register_size,
8778 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8779 * i386-linux-tdep.c: Fix formatting in some comments.
8780 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8781 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8782 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8783 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8784 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8785 redundant parentheses.
8786 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8787 (i386_linux_sigcontext_addr): Use it. Rewrite.
8788 (find_minsym_and_objfile): Change name of second argument.
8789 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8790 changed. Use frame_pc_unwind instead of
8791 DEPRECATED_SAVED_PC_AFTER_CALL.
8792 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8793 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8794 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8795 unwinder.
8796 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8797 "dummy-frame.h".
8798 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8799 (_initialize_i386_cygwin_tdep): New prototype.
8800 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8801 deprecated_frame_chain_valid.
8802 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8803 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8804 Rely on the SVR4 defaults.
8805 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8806 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8807
c89b70f1
AC
88082003-05-30 Andrew Cagney <cagney@redhat.com>
8809
8810 * infcall.c (call_function_by_hand): Always call
8811 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8812
85b32d22
RH
88132003-05-30 Richard Henderson <rth@redhat.com>
8814
c89b70f1
AC
8815 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8816 increment.
85b32d22 8817
bfe51b1e
JB
88182003-05-29 Jim Blandy <jimb@redhat.com>
8819
8820 Use gdbarch methods for solib stuff on PowerPC Linux.
8821 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8822 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8823 show through.
8824 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8825 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8826 giving the same effect as the #definitions above.
8827
1abf022c
AF
88282003-05-29 Adam Fedor <fedor@gnu.org>
8829
8830 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8831 (find_implementation_from_class): Replace it with the standard
8832 case i.e. do nothing.
8833
d2427a71
RH
88342003-05-29 Richard Henderson <rth@redhat.com>
8835
8836 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8837 (alpha_linux_sigtramp_offset): Use it. Make static.
8838 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8839 update for new frame model.
8840 * alpha-mdebug-tdep.c: New file.
8841 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8842 (alpha_osf1_init_abi): Install it.
8843 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8844 (linked_proc_desc_table): Remove.
8845 (alpha_frame_past_sigtramp_frame): Remove.
8846 (alpha_dynamic_sigtramp_offset): Remove.
8847 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8848 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8849 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8850 (push_sigtramp_desc): Remove.
8851 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8852 (alpha_cannot_store_register): Likewise.
8853 (alpha_sigcontext_addr): Remove.
8854 (alpha_find_saved_regs): Remove.
8855 (alpha_frame_init_saved_regs): Remove.
8856 (alpha_init_frame_pc_first): Remove.
8857 (read_next_frame_reg): Remove.
8858 (alpha_frame_saved_pc): Remove.
8859 (alpha_saved_pc_after_call): Remove.
8860 (temp_proc_desc, temp_saved_regs): Remove.
8861 (alpha_about_to_return): Remove.
8862 (cached_proc_desc): Remove.
8863 (alpha_frame_chain): Remove.
8864 (alpha_print_extra_frame_info): Remove.
8865 (alpha_init_extra_frame_info): Remove.
8866 (alpha_frame_locals_address): Remove.
8867 (alpha_frame_args_address): Remove.
8868 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8869 (alpha_push_dummy_frame): Remove.
8870 (alpha_pop_frame): Remove.
8871 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8872 (alpha_read_insn): New.
8873 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8874 for different insn encodings.
8875 (alpha_in_lenient_prologue): Remove.
8876 (struct alpha_sigtramp_unwind_cache): New.
8877 (alpha_sigtramp_frame_unwind_cache): New.
8878 (alpha_sigtramp_register_address): New.
8879 (alpha_sigtramp_frame_this_id): New.
8880 (alpha_sigtramp_frame_prev_register): New.
8881 (alpha_sigtramp_frame_unwind): New.
8882 (alpha_sigtramp_frame_p): New.
8883 (struct alpha_heuristic_unwind_cache): New.
8884 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8885 don't count nop insns that occur between functions.
8886 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8887 heuristic_proc_desc, but without the mdebug wrapping.
8888 (alpha_heuristic_frame_this_id): New.
8889 (alpha_heuristic_frame_prev_register): New.
8890 (alpha_heuristic_frame_unwind): New.
8891 (alpha_heuristic_frame_p): New.
8892 (alpha_heuristic_frame_base_address): New.
8893 (alpha_heuristic_frame_base): New.
8894 (alpha_unwind_dummy_id): New.
8895 (alpha_unwind_pc): New.
8896 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8897 frame related deprecated initializations; install replacements.
8898 (alpha_dump_tdep): Remove.
8899 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8900 (alpha_read_insn, alpha_after_prologue,
8901 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8902 alpha_heuristic_frame_prev_register,
8903 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8904 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8905 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8906 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8907
93ec1121
AC
89082003-05-29 Andrew Cagney <cagney@redhat.com>
8909
8910 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8911 dependant on the availability of ASSERT_FUNCTION.
8912 (ASSERT_FUNCTION): Do not define when there is no function name.
8913
98f08d3d
KB
89142003-05-29 Kevin Buettner <kevinb@redhat.com>
8915
8916 From Jimi X <jimix@watson.ibm.com>:
8917 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8918
0897f59b
JB
89192003-05-28 Jim Blandy <jimb@redhat.com>
8920
8921 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8922 argument to ptrace to int; the system headers should give it the
8923 right type, and pointers don't fit in ints on powerpc64-*-*.
8924
14898363
L
89252003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8926
8927 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8928 DW_TAG_catch_block.
8929
a7a48797
EZ
89302003-05-26 Elena Zannoni <ezannoni@redhat.com>
8931
8932 * stabsread.c (dbx_lookup_type): Make static.
8933 (read_type): Ditto.
8934 (add_undefined_type): Ditto.
8935 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8936 not export.
8937
f5479e9c
EZ
89382003-05-26 Elena Zannoni <ezannoni@redhat.com>
8939
8940 * hpread.c (hpread_has_name): Make static.
8941 (hpread_psymtab_to_symtab): Ditto.
8942 (file_exists): Ditto.
8943 (hpread_call_pxdb): Ditto.
8944 (hpread_pxdb_needed): Ditto.
8945 (hpread_quick_traverse): Ditto.
8946 (hpread_get_header): Ditto.
8947 (hpread_get_lntt): Ditto.
8948 (hpread_get_slt): Ditto.
8949 (class_of): Ditto.
8950
eb2e12d7
AS
89512003-05-25 Andreas Schwab <schwab@suse.de>
8952
78bf922a
AS
8953 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8954 stack_align and deprecated_extra_stack_alignment_needed.
8955 (m68k_stack_align): Delete.
8956
eb2e12d7
AS
8957 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8958 (m68k_register_virtual_size): Likewise.
8959 (altos_skip_prologue): Remove obsolete function.
8960 (isi_frame_num_args): Likewise.
8961 (news_frame_num_args): Likewise.
8962 (m68k_fix_call_dummy): Make static.
8963 (m68k_push_dummy_frame): Likewise.
8964 (m68k_pop_frame): Likewise.
8965 (m68k_skip_prologue): Likewise.
8966 (m68k_frame_init_saved_regs): Likewise.
8967 (m68k_saved_pc_after_call): Likewise.
8968 (m68k_get_longjmp_target): Make multi-arch.
8969 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8970 structure. Register m68k_get_longjmp_target if enabled.
8971 * m68k-tdep.h (struct gdbarch_tdep): Define.
8972 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8973
8974 * Makefile.in (config.status): Also depend on configure.tgt
8975 and configure.host.
8976 (m68klinux-tdep.o): Update dependencies.
8977 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8978 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8979 (M68K_LINUX_JB_PC): Define.
8980 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8981 and take additional parameter.
8982 (m68k_linux_sigtramp_saved_pc): Update.
8983 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8984 m68k_linux_pc_in_sigtramp, in_plt_section,
8985 find_solib_trampoline_target.
8986 * config/m68k/tm-linux.h: Don't include any tm headers.
8987 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8988 (JB_ELEMENT_SIZE): Likewise.
8989 (JB_PC): Likewise.
8990 (GET_LONGJMP_TARGET): Likewise.
8991 (IN_SIGTRAMP): Likewise.
8992 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8993
eb2c22dc
MK
89942003-05-25 Mark Kettenis <kettenis@gnu.org>
8995
8996 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8997 (sparc32_push_arguments): Re-implement by calling
8998 sparc32_do_push_arguments.
8999
44b7b84e
MK
90002003-05-25 Mark Kettenis <kettenis@gnu.org>
9001
9002 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
9003 SPARC_O1_REGNUM): New defines.
9004 (sparc32_extract_return_value): Rewrite to operate on a regcache.
9005 (sparc32_store_return_value): New function.
9006 (sparc_extract_struct_value_address): Rewrite to operate on a
9007 regcache.
9008 (sparc_gdbarch_init): Don't set
9009 deprecated_extract_struct_value_address. Set
9010 extract_struct_value_address instead. Don't set
9011 deprecated_extract_return_value and deprecated_store_return_value
9012 for 32-bit targets. Set extract_return_value and
9013 store_return_value instead.
9014 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 9015 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
9016 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
9017 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
9018 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
9019 (sparc_store_return_value): Remove prototype.
9020 (sparc32_store_return_value): New prototype.
9021 (sparc32_extract_return_value, sparc_extract_struct_value_address):
9022 Adjust prototypes.
9023
f6ad61e3
MK
90242003-05-24 Mark Kettenis <kettenis@gnu.org>
9025
9026 * sparcnbsd-tdep.c: Include "gdb_string.h".
9027
b276f1bb
AC
90282003-05-23 Andrew Cagney <cagney@redhat.com>
9029
9030 * p-valprint.c (pascal_val_print): Replace extract_address with
9031 the inline equivalent extract_unsigned_integer.
9032 * jv-valprint.c (java_value_print): Ditto.
9033 * ada-valprint.c (ada_val_print_1): Ditto.
9034 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
9035
e76c5fcc
TR
90362003-05-23 Theodore A. Roth <troth@openavr.org>
9037
9038 * blockframe.c (frameless_look_for_prologue): Remove unused
9039 after_prologue variable.
9040
2cdd89cb
MK
90412003-05-23 Mark Kettenis <kettenis@gnu.org>
9042
9043 * blockframe.c (get_pc_function_start): Rewrite to avoid
9044 asignments in if-statements.
9045
182d43bc
EZ
90462003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
9047
9048 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 9049 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
9050 files, don't relocate absolute symbols (and do use mst_abs).
9051
e8f3fcdd
AC
90522003-05-23 Andrew Cagney <cagney@redhat.com>
9053
9054 * objc-lang.c: Include "gdb_assert.h".
9055 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
9056 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
9057 (gdb_check, gdb_check_fatal): Delete functions.
9058 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
9059 gdb_assert.
9060 (parse_selector, parse_method, find_methods, find_imps): Ditto.
9061 * Makefile.in (objc-lang.o): Update dependencies.
9062
3c23e6fb
ILT
90632003-05-22 Ian Lance Taylor <ian@airs.com>
9064
9065 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9066 with fprintf_filtered, not fprintf_unfiltered.
9067
af1342ab
AC
90682003-05-22 Andrew Cagney <cagney@redhat.com>
9069
9070 * stack.c (frame_info): Inline extract_address, replacing it with
9071 extract_unsigned_integer.
9072 * findvar.c (unsigned_pointer_to_address): Ditto.
9073 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9074 * dwarf2expr.c (dwarf2_read_address): Ditto.
9075 * frame.c (frame_pc_unwind): Update comment.
9076 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9077
47e242ec
JJ
90782003-05-22 Jeff Johnston <jjohnstn@redhat.com>
9079
9080 * infptrace.c (detach): Call print_sys_errmsg rather than
9081 perror_with_name to issue warning message when errno is non-zero
9082 after calling ptrace detach.
9083
e2ac8128
JB
90842003-05-21 J. Brobecker <brobecker@gnat.com>
9085
9086 * config/pa/tm-hppa.h: Delete some unused macros. Move some
9087 macro definitions from here...
9088 * hppa-tdep.c: ...to there.
9089
92b3541e
KB
90902003-05-20 Kevin Buettner <kevinb@redhat.com>
9091
9092 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9093 register_ptrace_addr(). Fix all callers.
9094
55809acb
AS
90952003-05-21 Andreas Schwab <schwab@suse.de>
9096
9097 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9098 dependencies.
9099 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9100 end.
9101 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9102 (_initialize_m68k_linux_tdep): New function.
9103 (m68k_linux_frame_saved_pc): Make static.
9104 (m68k_linux_extract_return_value): Likewise.
9105 (m68k_linux_store_return_value): Likewise.
9106 (m68k_linux_extract_struct_value_address): Likewise.
9107 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9108 Remove.
9109 (DEPRECATED_STORE_RETURN_VALUE): Remove.
9110 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9111 (DEPRECATED_FRAME_SAVED_PC): Remove.
9112
0fbc10f7
KW
91132003-05-20 Kris Warkentin <kewarken@qnx.com>
9114
9115 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9116 regset numbering rather than our own.
9117
58da2eb2
DC
91182003-05-19 David Carlton <carlton@bactrian.org>
9119
9120 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9121
1fcb5155
DC
91222003-05-19 David Carlton <carlton@bactrian.org>
9123
9124 Partial fix for PR c++/827.
9125 * cp-support.h: Include symtab.h.
9126 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9127 * cp-namespace.c: Update contributors.
9128 (cp_lookup_symbol_nonlocal): New.
9129 (lookup_namespace_scope, cp_lookup_symbol_namespace)
9130 (lookup_symbol_file): Ditto.
9131 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9132 * block.h: Declare block_scope, block_using, block_global_block.
9133 * block.c (block_scope): New.
9134 (block_using, block_global_block): Ditto.
9135 * Makefile.in (cp_support_h): Depend on symtab_h.
9136 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9137
5f9a71c3
DC
91382003-05-19 David Carlton <carlton@bactrian.org>
9139
9140 * language.h (struct language_defn): Add 'la_value_of_this'
9141 and 'la_lookup_symbol_nonlocal' members.
9142 * symtab.h: Declare basic_lookup_symbol_nonlocal,
9143 lookup_symbol_static, lookup_symbol_global,
9144 lookup_symbol_aux_block.
9145 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9146 if we should search fields of this and how to do static/global
9147 lookup.
9148 (lookup_symbol_aux_block): Make extern.
9149 (basic_lookup_symbol_nonlocal): New.
9150 (lookup_symbol_static, lookup_symbol_global): Ditto.
9151 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9152 'la_lookup_symbol_nonlocal' members.
9153 * c-lang.c (c_language_defn, cplus_language_defn)
9154 (asm_language_defn, minimal_language_defn): Ditto.
9155 * jv-lang.c (java_language_defn): Ditto.
9156 * language.c (unknown_language_defn, auto_language_defn)
9157 (local_language_defn): Ditto.
9158 * m2-lang.c (m2_language_defn): Ditto.
9159 * objc-lang.c (objc_language_defn): Ditto.
9160 * scm-lang.c (scm_language_defn): Ditto.
9161 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9162 * p-lang.c (pascal_language_defn): Ditto for both.
9163 * Makefile.in (f-lang.o): Depend on value_h.
9164 (p-lang.o): Ditto.
9165
89a9d1b1
DC
91662003-05-19 David Carlton <carlton@bactrian.org>
9167
9168 * block.h: Declare block_static_block.
9169 * block.c (block_static_block): New.
9170 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9171 lookup_symbol_aux_local, calling block_static_block instead.
9172 (lookup_symbol_aux_local): Delete 'static_block' argument.
9173
eed3f8ab
DC
91742003-05-19 David Carlton <carlton@bactrian.org>
9175
9176 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9177
a09d8bda
ML
91782003-05-19 Michal Ludvig <mludvig@suse.cz>
9179
9180 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9181 register numbers mapping.
9182
69636828
AF
91832003-05-18 Adam Fedor <fedor@gnu.org>
9184
9185 * symtab.c (completion_list_objc_symbol): New function.
9186 (make_symbol_completion_list): Use it to add ObjC symbols
9187 when looking though the list.
9188 (language_search_unquoted_string): New function.
9189 (make_file_symbol_completion_list): Use it.
9190
55baeb84
AS
91912003-05-18 Andreas Schwab <schwab@suse.de>
9192
d0b45d99
AS
9193 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9194 dependencies.
9195 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9196 as m68k_linux_extract_return_value.
9197 (DEPRECATED_STORE_RETURN_VALUE): Define as
9198 m68k_linux_store_return_value.
9199 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9200 m68k_linux_extract_struct_value_address.
9201 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9202 get_next_frame, get_frame_base, get_frame_pc.
9203 (m68k_linux_frame_saved_pc): Use get_frame_base.
9204 (m68k_linux_extract_return_value): New function.
9205 (m68k_linux_store_return_value): New function.
9206 (m68k_linux_extract_struct_value_address): New function.
9207 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9208
55baeb84
AS
9209 * c-exp.y (typebase): Remove duplicate occurence of
9210 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 9211 of lookup_signed_typename.
55baeb84 9212
b6b08ebf
MK
92132003-05-18 Mark Kettenis <kettenis@gnu.org>
9214
9215 * dwarf2loc.c (find_location_expression): Change type of second
9216 argument to `size_t *'.
9217 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9218 for size variable.
9219
5ad1c190
DC
92202003-05-18 David Carlton <carlton@bactrian.org>
9221
9222 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9223 'linkage_name'. Add comment.
9224 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9225 'linkage_name'.
9226 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9227 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9228 (lookup_block_symbol): Ditto.
9229
b8b527c5
AC
92302003-05-16 Andrew Cagney <cagney@redhat.com>
9231
9232 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9233 * gdbarch.h, gdbarch.c: Re-generate.
9234 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9235 * TODO (REGISTER_BYTES): Delete reference.
9236 * alpha-tdep.c (alpha_gdbarch_init): Update.
9237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9238 * x86-64-tdep.c (x86_64_init_abi): Update.
9239 * vax-tdep.c (vax_gdbarch_init): Update.
9240 * v850-tdep.c (v850_gdbarch_init): Update.
9241 * sparc-tdep.c (sparc_gdbarch_init): Update.
9242 * sh-tdep.c (sh_gdbarch_init): Update.
9243 * s390-tdep.c (s390_gdbarch_init): Update.
9244 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9245 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9246 (ns32k_gdbarch_init_32382): Update.
9247 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9248 * mcore-tdep.c (mcore_gdbarch_init): Update.
9249 * m68k-tdep.c (m68k_gdbarch_init): Update.
9250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9251 * ia64-tdep.c (ia64_gdbarch_init): Update.
9252 * i386-tdep.c (i386_gdbarch_init): Update.
9253 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9254 * hppa-tdep.c (hppa_gdbarch_init): Update.
9255 * h8300-tdep.c (h8300_gdbarch_init): Update.
9256 * frv-tdep.c (frv_gdbarch_init): Update.
9257 * cris-tdep.c (cris_gdbarch_init): Update.
9258 * avr-tdep.c (avr_gdbarch_init): Update.
9259 * arm-tdep.c (arm_gdbarch_init): Update.
9260 * sparc-tdep.c (sparc_pop_frame): Update.
9261 * rs6000-tdep.c (rs6000_pop_frame): Update.
9262 * remote.c (init_remote_state): Update.
9263 (remote_prepare_to_store): Update.
9264 * remote-vx.c (vx_prepare_to_store): Update.
9265 * remote-sds.c (sds_fetch_registers): Update.
9266 (sds_prepare_to_store): Update.
9267 * remote-array.c: Update.
9268 * regcache.c (init_legacy_regcache_descr): Update.
9269 (init_regcache_descr): Update.
9270 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9271 (mips_o64_extract_return_value): Update.
9272 * irix5-nat.c (fetch_core_registers): Update.
9273 * irix4-nat.c (fetch_core_registers): Update.
9274 * i386-tdep.h: Update.
9275 * hppa-tdep.c (pa_do_registers_info): Update.
9276 (pa_do_strcat_registers_info): Update.
9277 * cris-tdep.c (cris_register_bytes_ok): Update.
9278 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9279 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9280 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9281 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9282 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9283 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9284 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9285 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9286 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9287 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9288 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9289 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9290 (REGISTER_BYTES_OK): Update.
9291 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9292 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9293
ee2842e2
ILT
92942003-05-16 Ian Lance Taylor <ian@airs.com>
9295
9296 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9297 (vax_print_insn, print_insn_arg): Remove static functions.
9298 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9299 print_insn_vax from opcodes library.
9300 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9301
973177d3
AC
93022003-05-15 Andrew Cagney <cagney@redhat.com>
9303
aaab4dba
AC
9304 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9305 * target.h (memory_breakpoint_from_pc): Delete declaration.
9306 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9307 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9308 * monitor.c (monitor_insert_breakpoint): Use
9309 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9310 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9311 * gdbarch.h, gdbarch.c: Re-generate.
9312 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9313 (sparc_gdbarch_init): Set breakpoint_from_pc to
9314 sparc_breakpoint_from_pc.
9315 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9316 (BREAKPOINT_FROM_PC): Define.
9317 (sparc_breakpoint_from_pc): Declare.
9318 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9319 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9320 (BREAKPOINT_FROM_PC): Define.
9321 (BREAKPOINT): Delete macro.
9322 * target.h: Update comment.
9323 * s390-tdep.c (s390_gdbarch_init): Update comments.
9324 * remote.c: Update comments.
9325 * remote-mips.c: Update comments.
9326 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9327 * mem-break.c: Update comment.
9328 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9329 (ia64_memory_insert_breakpoint): Update.
9330 * config/sparc/tm-sparc.h: Update comment.
9331 * config/pa/tm-hppa64.h: Update comment.
9332 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9333 (rs6000_breakpoint_from_pc): Update.
9334 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9335 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9336 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9337 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9338 (mips_breakpoint_from_pc): Update.
9339 (mips_dump_tdep): Update.
9340
e06963ff
AC
9341 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9342 * minsyms.c (lookup_minimal_symbol): Inline
9343 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9344
973177d3
AC
9345 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9346 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9347 * p-lang.c (pascal_printstr): Ditto.
9348 * objc-lang.c (objc_printstr): Ditto.
9349 * m2-lang.c (m2_printstr): Ditto.
9350 * jv-valprint.c (java_print_value_fields): Ditto.
9351 * f-lang.c (f_printstr): Ditto.
9352 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9353 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9354 for repeat_count_threshold.
9355 * Makefile.in (cp-valprint.o): Update dependencies.
9356
5ea2bd7f 93572003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9358
5ea2bd7f
JJ
9359 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9360 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9361 they start with mov r2,r12. Support skipping over indirect stores
9362 of the input registers. Upon hitting a non-nop branch instruction
9363 or predicated instruction, bail out by setting lim_pc to the current
9364 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9365 beyond our calculated value and we have trust_limit set,
9366 use the lim_pc value.
9367
cc8c88f3
AC
93682003-05-15 Andrew Cagney <cagney@redhat.com>
9369
9370 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9371 generic_find_dummy_frame.
9372 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9373 (deprecated_generic_find_dummy_frame): Update.
9374 (deprecated_read_register_dummy): Update.
9375 * frame.c (deprecated_generic_get_saved_register): Update.
9376
909cd28e
TR
93772003-05-15 Theodore A. Roth <troth@openavr.org>
9378
9379 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9380 (avr_gdbarch_init): Set breakpoint_from_pc method.
9381
b923b08d
AC
93822003-05-15 Andrew Cagney <cagney@redhat.com>
9383
9384 * regcache.c (build_regcache): Set deprecated_register_valid
9385 directly.
9386 (deprecated_grub_regcache_for_register_valid): Delete function.
9387 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9388 declaration.
9389
ae2f03ac 93902003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9391
9392 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9393 * symtab.c (lookup_symbol_aux): Delete calls to
9394 lookup_symbol_aux_minsyms.
9395 (lookup_symbol_aux_minsyms): Comment out function and
9396 prototype. Delete lookup by mangled name.
ae2f03ac 9397
18ec9831
KB
93982003-05-14 Kevin Buettner <kevinb@redhat.com>
9399
9400 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9401 correctly indicate an empty stack and ``stack_allocated'' to the
9402 indicate the number of elements initially allocated.
9403 (dwarf_expr_grow_stack): Simplify method for computing new
9404 stack size. Don't loop infinitely if ``stack_len'' is zero.
9405 (execute_stack_op): Move ``ctx->in_reg'' initialization
9406 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9407 be used in conjuction with DW_OP_piece. Revise error message
9408 accordingly.
9409
de18ac1f
TR
94102003-05-14 Theodore A. Roth <troth@openavr.org>
9411
9412 * MAINTAINERS: Update my email address.
9413 * avr-tdep.c: Ditto.
9414
176620f1
EZ
94152003-05-14 Elena Zannoni <ezannoni@redhat.com>
9416
9417 * symtab.h (enum domain_enum): Rename from namespace_enum.
9418 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9419 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9420 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9421 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9422 TYPES_NAMESPACE, METHODS_NAMESPACE.
9423 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9424 (struct symbol, struct partial_symbol): Rename field
9425 'namespace_enum namespace' to 'domain_enum domain'.
9426 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9427 Delete old define kludge for namespace.
9428
9429 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9430 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9431 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9432 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9433 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9434 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9435 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9436 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9437 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9438 occurrences of the above.
9439
b7f31508
ILT
94402003-05-14 Ian Lance Taylor <ian@airs.com>
9441
9442 * Makefile.in (install-only): Use $(SHELL) when running
9443 mkinstalldirs.
9444
2fdbdd39
ILT
94452003-05-13 Ian Lance Taylor <ian@airs.com>
9446
a208d82c
ILT
9447 * MAINTAINERS (write after approval): Add myself.
9448
2fdbdd39
ILT
9449 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9450 second and third arguments.
9451 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9452 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9453
fbd9dcd3
AC
94542003-05-13 Andrew Cagney <cagney@redhat.com>
9455
9456 * defs.h (store_address): Delete declaration.
9457 findvar.c (store_address): Delete function.
9458 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9459 store_unsigned_integer.
9460 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9461 * v850-tdep.c (v850_push_arguments): Ditto.
9462 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9463 * sh-tdep.c (sh64_get_saved_register): Ditto.
9464 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9465 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9466 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9467 (mips_get_saved_register): Ditto.
9468 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9469 (find_func_descr, ia64_push_arguments): Ditto.
9470 * i386-tdep.c (i386_push_arguments): Ditto.
9471 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9472 * frv-tdep.c (frv_push_arguments): Ditto.
9473 * frame.c (legacy_saved_regs_prev_register): Ditto.
9474 (deprecated_generic_get_saved_register): Ditto.
9475 * findvar.c (unsigned_address_to_pointer): Ditto.
9476 * dwarf2read.c (dwarf2_const_value): Ditto.
9477 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9478 * alpha-tdep.c (alpha_push_arguments): Ditto.
9479
6760f9e6
JB
94802003-05-12 J. Brobecker <brobecker@gnat.com>
9481
9482 * NEWS: Mention that the hppa-hpux port has been partially
9483 multiarched (32bit ABIT only, so far).
9484
30e221b4
AC
94852003-05-11 Andrew Cagney <cagney@redhat.com>
9486
9487 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9488 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9489 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9490 sim/testsuite/sim/arm/misaligned2.ms, and
9491 sim/testsuite/sim/arm/misaligned3.ms.
9492 * disasm.h (struct ui_file): Add opaque struct declaration.
9493 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9494 * frame.h (struct ui_file): Ditto.
9495
dea7f9ba
MK
94962003-05-11 Mark Kettenis <kettenis@gnu.org>
9497
9498 * value.h: Pretty print.
9499
01986c48
MK
95002003-05-10 Mark Kettenis <kettenis@gnu.org>
9501
9502 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9503
123a958e
AC
95042003-05-08 Andrew Cagney <cagney@redhat.com>
9505
9506 * regcache.h (max_register_size): Delete declaration.
9507 * regcache.c (max_register_size): Delete function.
9508 (struct regcache_descr): Delete field "max_register_size".
9509 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9510 registers fit in MAX_REGISTER_SIZE.
9511 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9512 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9513 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9514 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9515 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9516 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9517 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9518 * dve3900-rom.c, hppa-tdep.c: Ditto.
9519
eb294659
DC
95202003-05-08 David Carlton <carlton@math.stanford.edu>
9521
9522 * valops.c (push_word): Fix typo.
9523
d9d9c31f
AC
95242003-05-08 Andrew Cagney <cagney@redhat.com>
9525
9526 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9527 * gdbarch.h: Re-generate.
9528 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9529 (legacy_max_register_raw_size): Delete declaration.
9530 * regcache.c (legacy_max_register_raw_size): Delete function.
9531 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9532 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9533 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9534 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9535 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9536 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9537 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9538 * findvar.c, dwarf2cfi.c: Ditto.
9539
22540ece
AC
95402003-05-08 Andrew Cagney <cagney@redhat.com>
9541
9542 * mips-tdep.c (read_signed_register): New function, moved to here
9543 from "regcache.c".
9544 (read_signed_register_pid): Ditto.
9545 * regcache.c (read_signed_register_pid): Delete function, moved to
9546 "mips-tdep.c".
9547 (read_signed_register): Ditto.
9548 * regcache.h (read_signed_register): Delete declaration.
9549 (read_signed_register_pid): Delete declaration.
9550
0c92afe8
AC
95512003-05-08 Andrew Cagney <cagney@redhat.com>
9552
9553 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9554 * gdbarch.h: Re-generate.
9555 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9556 (legacy_max_register_virtual_size): Delete declaration.
9557 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9558 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9559 * tracepoint.c (memrange_sortmerge): Ditto.
9560 * sparc-tdep.c (sparc_print_registers): Ditto.
9561 * regcache.c (legacy_max_register_virtual_size): Delete function.
9562
6037b830
JB
95632002-05-08 J. Brobecker <brobecker@gnat.com>
9564
9565 * fork-child.c (escape_bang_in_quoted_argument): New function.
9566 (fork_inferior): Escape '!' characters in quoted arguments
9567 only when needed.
9568
5d62c8b1
JB
95692003-05-08 J. Brobecker <brobecker@gnat.com>
9570
9571 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9572 the language of the CU is not currently supported by GDB.
9573
20a0e81d
JB
95742003-05-08 J. Brobecker <brobecker@gnat.com>
9575
9576 * defs.h (language): Add language_minimal enum value.
9577 * c-lang.c (minimal_language_defn): New language definition.
9578 (_initialize_c_language): Add the new minimal language to the list
9579 of languages known to GDB.
9580
710ee10a
KB
95812003-05-08 Kevin Buettner <kevinb@redhat.com>
9582
9583 * frame.c (get_frame_type): Don't attempt to lazily initialize
9584 frame's unwinder for legacy frames.
9585
1750fa04
AC
95862003-05-07 Andrew Cagney <cagney@redhat.com>
9587
9588 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9589 and "regcache" parameters.
9590 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9591
ddf9f258 95922003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9593
9594 * dwarf2read.c (dwarf_decode_lines): Only use output of
9595 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9596 the current address.
9597
87767c29
AC
95982003-05-07 Andrew Cagney <cagney@redhat.com>
9599
9600 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9601 code.
9602
5e7b2f39
JB
96032003-05-07 Jim Blandy <jimb@redhat.com>
9604
9605 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9606 'maint info symtabs' and 'maint info psymtabs'.
9607 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9608 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9609 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9610 Declarations updated.
9611 * maint.c (maintenance_list_command): Delete.
9612 (_initialize_maint_cmds): Update calls to add_cmd.
9613 * gdbcmd.h (maintenancelistlist): Delete declaration.
9614 * cli/cli-cmds.c (maintenancelistlist): Delete.
9615 (init_cmd_lists): Don't initialize it.
9616 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9617
f6684c31
AC
96182003-05-07 Andrew Cagney <cagney@redhat.com>
9619
9620 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9621 "regcache".
9622 (d10v_print_registers_info): Update.
9623 (d10v_dmap_register, d10v_imap_register): Delete functions.
9624 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9625 and "imap_register".
9626 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9627 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9628 * arch-utils.c (generic_remote_translate_xfer_address): Add
9629 "regcache" and "gdbarch" parameters.
9630 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9631 parameter. Change class to multi-arch.
9632 * gdbarch.h, gdbarch.c: Re-generate.
9633 * remote.c (remote_xfer_memory): Use
9634 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9635
e4846b08
JJ
96362003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9637
9638 * infrun.c (prev_pc): Move declaration ahead of proceed().
9639 (proceed): Refresh prev_pc value before resuming.
9640 (stop_stepping): Remove code to refresh prev_pc.
9641
6b71b8ac
KW
96422003-05-06 Kris Warkentin <kewarken@qnx.com>
9643
9644 * nto-tdep.c: Removed stray comment.
9645
47979a4b
KW
96462003-05-06 Kris Warkentin <kewarken@qnx.com>
9647
9648 * i386-nto-tdep.c: Fix old K&R function definitions.
9649 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9650 Also change add_show_from_set() call to add_setshow_cmd().
9651 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9652
00905d52
AC
96532003-05-05 Andrew Cagney <cagney@redhat.com>
9654
9655 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9656 (fprint_dummy_frames): New function.
9657 (maintenance_print_dummy_frames): New function.
9658 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9659 * frame.c (fprint_frame_id): Make global.
9660 * frame.h (fprint_frame_id): Declare.
9661 * Makefile.in (dummy-frame.o): Update dependencies.
9662
b1e29e33
AC
96632003-05-05 Andrew Cagney <cagney@redhat.com>
9664
9665 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9666 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9667 SIZEOF_CALL_DUMMY_WORDS.
9668 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9669 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9670 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9671 CALL_DUMMY_BREAKPOINT_OFFSET.
9672 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9673 CALL_DUMMY_START_OFFSET.
9674 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9675 * gdbarch.h, gdbarch.c: Re-generate.
9676 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9677 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9678 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9679 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9680 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9681 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9682 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9683 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9684 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9685 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9686 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9687 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9688 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9689 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9690 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9691
96922003-05-05 Kris Warkentin <kewarken@qnx.com>
9693
9694 * configure.tgt: Add i[3456]86-*-nto*.
9695 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9696 * nto-tdep.c: New file. Neutrino target support routines.
9697 * nto-tdep.h: New file. Neutrino target header.
9698 * config/tm-qnxnto.h: New file.
9699 * config/i386/i386nto.mt: New file.
9700 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9701
0ce3d317
AC
97022003-05-04 Andrew Cagney <cagney@redhat.com>
9703
9704 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9705 (load_infrun_state): Ditto.
9706 (struct thread_info): Drop "prev_func_name" field.
9707 * thread.c (load_infrun_state): Update.
9708 (save_infrun_state): Update.
9709 * infrun.c (prev_func_name): Delete variable.
9710 (init_wait_for_inferior): Do not clear prev_func_name.
9711 (stop_stepping, keep_going, context_switch): Do not swap
9712 prev_func_name.
9713 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9714 instead of PC_IN_SIGTRAMP.
9715
46654a5b
AC
97162003-05-04 Andrew Cagney <cagney@redhat.com>
9717
9718 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9719 REGISTER_BYTE with register_offset_hack.
9720 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9721 that REGISTER_BYTE is consistent with the regcache.
9722 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9723 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9724
14b08c1b
MK
97252003-05-04 Mark Kettenis <kettenis@gnu.org>
9726
04c8243f
MK
9727 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9728 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9729
14b08c1b
MK
9730 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9731
c7a11e01
JB
97322003-05-03 J. Brobecker <brobecker@gnat.com>
9733
9734 From Thierry Schneider <tpschneider1@yahoo.com>
9735 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9736 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9737 (mi-cmd-symbol.o): Add rule.
9738
7043d8dc
AC
97392003-05-03 Andrew Cagney <cagney@redhat.com>
9740
9741 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9742 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9743 * gdbarch.h, gdbarch.c: Re-generate.
9744 * d10v-tdep.c (d10v_push_dummy_code): New function.
9745 (d10v_gdbarch_init): Set push_dummy_code.
9746 * infcall.c (legacy_push_dummy_code): New function.
9747 (generic_push_dummy_code): New function.
9748 (push_dummy_code): New function.
9749 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9750 instead of dummy_addr, to push_dummy_call. Move call to
9751 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9752 switch.
9753 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9754
92bf2b80
AC
97552003-05-03 Andrew Cagney <cagney@redhat.com>
9756
9757 * disasm.h (print_insn): Declare.
9758 * disasm.c (init_gdb_disassemble_info): New function.
9759 (gdb_disassembly): Call init_gdb_disassemble_info.
9760 (gdb_print_insn): New function.
9761 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9762 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9763 * mcore-tdep.c: Include "disasm.h"
9764 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9765 * d10v-tdep.c: Include "disasm.h".
9766 (display_trace): Call gdb_print_insn, instead of print_insn.
9767 (print_insn): Delete function.
9768 * printcmd.c: Include "disasm.h".
9769 (print_insn): Delete function.
9770 (print_formatted): Call gdb_print_insn, instead of print_insn.
9771 * Makefile.in (printcmd.o): Update dependencies.
9772 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9773
27d94c49
AC
97742003-05-02 Andrew Cagney <cagney@redhat.com>
9775
82de1e5b
AC
9776 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9777 PC_REGNUM, re-indent.
9778 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9779 PC_REGNUM isn't set.
9780
27d94c49
AC
9781 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9782 * gdbarch.h, gdbarch.c: Re-generate.
9783 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9784 register_virtual_size, pc_regnum, or register_bytes.
9785 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9786 (d10v_register_type): Use D10V_PC_REGNUM.
9787 (d10v_print_registers_info, d10v_read_pc): Ditto.
9788 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9789 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9790
a9c0dc7f
DC
97912003-05-02 David Carlton <carlton@bactrian.org>
9792
9793 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9794 the name with mstrsave.
9795
e33d66ec
EZ
97962003-05-02 Elena Zannoni <ezannoni@redhat.com>
9797
9798 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9799 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9800 (host_charset_name, target_charset_name): New vars for use by
9801 set/show commands.
9802 (host_charset_enum, target_charset_enum): New enums for set/show
9803 commands.
9804 (set_charset_sfunc, set_host_charset_sfunc,
9805 set_target_charset_sfunc): New functions.
9806 (set_host_charset, set_target_charset): Make static.
9807 (list_charsets, set_host_charset_command,
9808 set_target_charset_command): Delete functions.
9809 (show_charset_command): Rewrite as....
9810 (show_charset): Hook this up with the set/show command mechanism.
9811 (_initialize_charset): Change names of charsets to match the
9812 set/show enums. Use host_charset_name and target_charset_name.
9813 Use set/show mechanism for charset, host-charset, target-charset
9814 commands. Do not make 'show host-charset' and 'show
9815 target-charset' be aliases of 'show charset'.
9816
9817 * charset.h (set_host_charset, set_target_charset): Don't export,
9818 they are not used outside the file.
9819
2b6fd0d8
AC
98202003-05-01 Andrew Cagney <cagney@redhat.com>
9821
9822 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9823 (gdb_disassembly): Make "di" non static, always initialize and
9824 cleanup. Always use dis_asm_read_memory.
9825 (gdb_dis_asm_read_memory): Delete function.
9826
6ae2f580
AC
98272003-05-01 Andrew Cagney <cagney@redhat.com>
9828
9829 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9830 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9831
810ecf9f
AC
98322003-04-30 Andrew Cagney <cagney@redhat.com>
9833
9834 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9835 "tm_print_insn_info".
9836 (TARGET_PRINT_INSN_INFO): Delete macro.
9837 (dis_asm_read_memory): Delete function declaration.
9838 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9839 (tm_print_insn_info): Delete variable definition.
9840 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9841 * gdbarch.h, gdbarch.c: Re-generate.
9842 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9843 "deprecated_tm_print_insn_info".
9844 * mcore-tdep.c (mcore_dump_insn): Ditto.
9845 * mips-tdep.c (mips_gdbarch_init): Ditto.
9846 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9847 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9848 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9849 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9850 instead of TARGET_PRINT_INSN_INFO, add comment.
9851 * s390-tdep.c (s390_get_frame_info): Instead of
9852 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9853 (s390_check_function_end, s390_is_sigreturn): Ditto.
9854 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9855 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9856 * disasm.c: Include "gdbcore.h".
9857 (_initialize_disasm): New function, initialize
9858 "deprecated_tm_print_insn_info".
9859 (deprecated_tm_print_insn_info): New variable.
9860 (dis_asm_read_memory): Moved from "corefile.c", made static.
9861 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9862 * Makefile.in (disasm.o): Update dependencies.
9863
07020390
AC
98642003-04-30 Andrew Cagney <cagney@redhat.com>
9865
9866 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9867
a9fa03de
AF
98682003-04-29 Adam Fedor <fedor@gnu.org>
9869
9870 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9871 * infcall.c (find_function_addr): Make non-static.
9872 * infcall.h (find_function_addr): Declare.
9873 * Makefile.in (eval.o): Update dependencies.
9874
1bae87b9
AF
98752003-04-28 Adam Fedor <fedor@gnu.org>
9876
9877 * symtab.c (symbol_find_demangled_name): Check for and demangle
9878 ObjC symbols.
9879 (symbol_init_demangled_name): Init for language_objc as well.
9880
0ba6dca9
AC
98812003-04-28 Andrew Cagney <cagney@redhat.com>
9882
9883 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9884 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9885 * gdbarch.h, gdbarch.c: Re-generate.
9886 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9887 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9888 * inferior.h (deprecated_read_fp): Rename read_fp.
9889 (generic_target_read_fp): Delete declaration.
9890 * regcache.c (generic_target_read_fp): Delete function.
9891 (deprecated_read_fp): Replace read_fp, use
9892 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9893 * d10v-tdep.c (d10v_read_fp): Delete function.
9894 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9895
9896 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9897 deprecated_target_read_fp to generic_target_read_fp.
9898 * sh-tdep.c (sh_gdbarch_init): Ditto.
9899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9901 * frv-tdep.c (frv_gdbarch_init): Ditto.
9902
9903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9904 deprecated_fp_regnum.
9905 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9906 * vax-tdep.c (vax_gdbarch_init): Ditto.
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 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9914 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9916 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9917 * i386-tdep.c (i386_gdbarch_init): Ditto.
9918 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9919 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9920 * frv-tdep.c (frv_gdbarch_init): Ditto.
9921 * cris-tdep.c (cris_gdbarch_init): Ditto.
9922 * avr-tdep.c (avr_gdbarch_init): Ditto.
9923 * arm-tdep.c (arm_gdbarch_init): Ditto.
9924 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9925
9926 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9927 * v850-tdep.c (v850_gdbarch_init): Ditto.
9928 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9929 * sh-tdep.c (sh_gdbarch_init): Ditto.
9930 * s390-tdep.c (s390_gdbarch_init): Ditto.
9931 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9932 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9933 * mips-tdep.c (mips_gdbarch_init): Ditto.
9934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9935 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9936 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9937 * frv-tdep.c (frv_gdbarch_init): Ditto.
9938 * avr-tdep.c (avr_gdbarch_init): Ditto.
9939 * arm-tdep.c (arm_gdbarch_init): Ditto.
9940
9941 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9942 DEPRECATED_FP_REGNUM.
9943 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9944 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9945 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9946 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9947 (sparc32_register_virtual_type): Ditto.
9948 * sh-tdep.c (sh64_frame_chain): Ditto.
9949 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9950 (sh_nofp_frame_init_saved_regs): Ditto.
9951 (sh64_nofp_frame_init_saved_regs): Ditto.
9952 (sh_fp_frame_init_saved_regs): Ditto.
9953 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9954 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9955 * procfs.c (procfs_fetch_registers): Ditto.
9956 (procfs_store_registers): Ditto.
9957 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9958 (store_inferior_registers, fetch_core_registers): Ditto.
9959 (fetch_kcore_registers, clear_regs): Ditto.
9960 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9961 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9962 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9963 * nlm/i386.c (do_status): Ditto.
9964 * mipsv4-nat.c (supply_gregset): Ditto.
9965 * mips-tdep.c: Ditto for comments.
9966 * mips-nat.c (fetch_inferior_registers): Ditto.
9967 (store_inferior_registers, fetch_core_registers): Ditto.
9968 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9969 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9970 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9971 (i386_do_pop_frame, i386_register_type): Ditto.
9972 * hppa-tdep.c (hppa_frame_chain): Ditto.
9973 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9974 (hppa_pop_frame, hppa_read_fp): Ditto.
9975 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9976 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9977 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9978 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9979 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9980 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9981 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9982 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9983 * blockframe.c: Ditto for comments.
9984 * arch-utils.h: Ditto for comments.
9985 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9986 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9987 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9988 * alpha-tdep.h: Ditto for comments.
9989 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9990 (alpha_cannot_store_register): Ditto.
9991 (alpha_push_dummy_frame): Ditto.
9992 * alpha-nat.c (supply_gregset): Ditto.
9993
9994 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9995 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9996 * config/sparc/tm-sparc.h: Update comment.
9997
9998 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9999 deprecated_read_fp instead of TARGET_READ_FP.
10000 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
10001 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
10002 * sparc-tdep.c (sparc_init_extra_frame_info): Use
10003 deprecated_read_fp instead of read_fp.
10004 * s390-tdep.c (s390_push_arguments): Ditto.
10005 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10006 * frame.h: Ditto in comments.
10007 * frame.c (legacy_get_prev_frame): Ditto.
10008 * dummy-frame.c (dummy_frame_this_id): Ditto.
10009 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10010
d7a27068
AC
100112003-04-28 Andrew Cagney <cagney@redhat.com>
10012
10013 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
10014 * gdbarch.h, gdbarch.c: Re-generate.
10015 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
10016 * vax-tdep.c (_initialize_vax_tdep): Update.
10017 * v850-tdep.c (_initialize_v850_tdep): Update.
10018 * sparc-tdep.c (_initialize_sparc_tdep): Update.
10019 * s390-tdep.c (_initialize_s390_tdep): Update.
10020 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
10021 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
10022 * mips-tdep.c (_initialize_mips_tdep): Update.
10023 * mcore-tdep.c (_initialize_mcore_tdep): Update.
10024 * m68k-tdep.c (_initialize_m68k_tdep): Update.
10025 * ia64-tdep.c (_initialize_ia64_tdep): Update.
10026 * hppa-tdep.c (_initialize_hppa_tdep): Update.
10027 * h8300-tdep.c (_initialize_h8300_tdep): Update.
10028 * frv-tdep.c (_initialize_frv_tdep): Update.
10029 * cris-tdep.c (cris_delayed_get_disassembler): Update.
10030 (_initialize_cris_tdep): Update.
10031 * arch-utils.c (legacy_print_insn): Update.
10032 * alpha-tdep.c (_initialize_alpha_tdep): Update.
10033
d2630e69
AF
100342003-04-26 Adam Fedor <fedor@gnu.org>
10035
10036 * linespec.c (decode_objc): New function to decode ObjC calls
10037 (decode_line_1): Check for ObjC calls (using decode_objc)
10038 * Makefile (linespec.o): Update dependencies.
10039
3086aeae
DJ
100402003-04-26 Daniel Jacobowitz <drow@mvista.com>
10041
10042 * breakpoint.h (struct breakpoint_ops): New.
10043 (struct breakpoint): Add ops member.
10044
10045 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
10046 (mention): Use new breakpoint ops member.
10047 (set_raw_breakpoint): Initialize ops field to NULL.
10048 (print_exception_catchpoint, print_one_exception_catchpoint)
10049 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
10050 (gnu_v3_exception_catchpoint_ops): New.
10051 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
10052
1fbec6c3
AF
100532003-04-25 Adam Fedor <fedor@gnu.org>
10054
10055 * Makefile.in (COMMON_OBS): Add objc-lang.o
10056
0ef21242
AC
100572003-04-25 Andrew Cagney <cagney@redhat.com>
10058
10059 * d10v-tdep.c (print_insn): Delete function.
10060 (display_trace): Use TARGET_PRINT_INSN.
10061 (_initialize_d10v_tdep): Do not set tm_print_insn.
10062 (d10v_gdbarch_init): Set print_insn.
10063
f75493ed
AC
100642003-04-25 Andrew Cagney <cagney@redhat.com>
10065
10066 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10067 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10068 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10069 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10070 (nr_dmap_regs, a0_regnum): ... new functions.
10071 (d10v_print_registers_info): Use a0_regnum, use register_size.
10072 (d10v_register_byte): Delete function.
10073 (d10v_register_raw_size): Delete function.
10074 (d10v_register_type): Use a0_regnum.
10075 (d10v_print_registers_info): Use a0_regnum.
10076 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10077 (d10v_gdbarch_init): Do not set register_byte or
10078 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10079 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10080 extract_address.
10081 (trace_command): Use XCALLOC.
10082 (print_insn): Delete reference to tm_print_insn.
10083 (saved_regs_unwinder): Use store_unsigned_integer instead of
10084 store_address.
10085 * frame.h (FRAME_OBSTACK_CALLOC): Define
10086
2202b100
DC
100872003-04-25 David Carlton <carlton@bactrian.org>
10088
10089 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10090
4e45ca2e
AF
100912003-04-24 Adam Fedor <fedor@gnu.org>
10092
10093 * objc-lang.c: Include "valprint.h"
10094 * Makefile.in (objc-lang.o): Update dependencies.
10095
93de3e7f
AF
100962003-04-24 Adam Fedor <fedor@gnu.org>
10097
8ffd9b1b 10098 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
10099 architecture dependant compilation and mark as unimplemented
10100 (until they get put in the gdbarch vector).
10101
0f20eeea
DC
101022003-04-23 David Carlton <carlton@bactrian.org>
10103
10104 * cp-support.c (cp_find_first_component): Accept 'operator' in
10105 more locations.
10106
74cfe982
AC
101072003-04-23 Andrew Cagney <cagney@redhat.com>
10108
10109 * infcall.c (call_function_by_hand): Eliminate redundant
10110 indentation. Move "saved_async" and "old_cleanups" to where they
10111 are needed.
8ffd9b1b 10112
52557533
AC
101132003-04-23 Andrew Cagney <cagney@redhat.com>
10114
10115 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10116 and "buffer". Move the "name" code to where it is needed.
10117
158775de
AC
101182003-04-23 Andrew Cagney <cagney@redhat.com>
10119
10120 * infcall.c (call_function_by_hand): Move variables "start_sp",
10121 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10122 code to ON_STACK switch branch.
8ffd9b1b 10123
ebc7896c
AC
101242003-04-23 Andrew Cagney <cagney@redhat.com>
10125
10126 * infcall.c (call_function_by_hand): Make declaration of "i",
10127 "sal", "bpt" and "old_sp" more local to their use. Delete #if
10128 lint.
10129
d727590f
AC
101302003-04-23 Andrew Cagney <cagney@redhat.com>
10131
10132 * infcall.c (call_function_by_hand): Delete variable
10133 "n_method_args". Localize "param_type"'s declaration to the loop
10134 that it is used. Reinstate code assigning to said variable -
10135 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
10136 Rationalize code using "param_type".
10137
d585e13a
AC
101382003-04-22 Andrew Cagney <cagney@redhat.com>
10139
10140 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10141 compute the breakpoint address. Only call FIX_CALL_DUMMY when
10142 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
10143 to DEPRECATED_PUSH_RETURN_ADDRESS.
10144
051caad9
KB
101452003-04-22 Kevin Buettner <kevinb@redhat.com>
10146
10147 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10148 on the DWARF2 register number prior to fetching a register.
10149
77296879
JB
101502003-04-22 J. Brobecker <brobecker@gnat.com>
10151
10152 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10153 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 10154 this macro was always set to 0.
77296879
JB
10155 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10156 considering the fact that this macro was always set to 0.
10157 * hppa-tdep.h (hppa_store_return_value): Likewise.
10158 (hppa_extract_return_value): Likewise.
10159
4252f1df
JB
101602003-04-22 J. Brobecker <brobecker@gnat.com>
10161
10162 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10163 the hppa-pro target only.
10164
14604c6b
JB
101652003-04-21 J. Brobecker <brobecker@gnat.com>
10166
10167 Ongoing multi-arch conversion effort for HP/UX:
10168 * config/pa/tm-hppa.h: Move all macro that are no longer
10169 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10170 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10171
77eb01d1
JB
101722003-04-21 J. Brobecker <brobecker@gnat.com>
10173
10174 * config/pa/tm-hppa.h: Obsolete a section that was only used
10175 for hppa-pro.
10176
61995b3b
JB
101772003-04-21 J. Brobecker <brobecker@gnat.com>
10178
10179 Ongoing multi-arch conversion for HP/UX.
10180 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10181 if already defined (allows hppa64 to stay non-multiarched for now).
10182 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10183
4aa79dcc
AC
101842003-04-21 Andrew Cagney <cagney@redhat.com>
10185
10186 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10187
0f751ff2
AC
101882003-04-21 Andrew Cagney <cagney@redhat.com>
10189
10190 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10191 "i386_num_mmx_regs".
10192
04714b91
AC
101932003-04-21 Andrew Cagney <cagney@redhat.com>
10194
10195 * infcall.c: New file.
10196 * infcall.h: New file.
10197 * valarith.c: Include "infcall.h".
10198 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10199 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10200 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10201 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10202 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10203 (SFILES): Add "infcall.c"
10204 (COMMON_OBS): Add "infcall.o".
10205 (infcall.o): Specify dependencies.
10206 * value.h (call_function_by_hand): Delete declaration.
10207 * inferior.h (run_stack_dummy): Delete declaration.
10208 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10209 (run_stack_dummy): Move to "infcall.c", merged into
10210 call_function_by_hand.
10211 * valops.c (call_function_by_hand): Moved to "infcall.c".
10212 (find_function_addr, value_arg_coerce): Ditto.
10213 (unwindonsignal_p, coerce_float_to_double): Ditto.
10214 (_initialize_valops): Move "set/show coerce-float-to-double", and
10215 "set/show unwindonsignal" commands to "infcall.c".
10216 * v850-tdep.c, target.h: Update comments.
10217 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10218 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10219 (sh64_init_extra_frame_info): Update comments.
10220 * mn10300-tdep.c: Update comments.
10221 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10222 * config/sparc/tm-sparc.h: Update comments.
10223 * breakpoint.h: Update comments.
10224 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10225 * arm-tdep.c: Update comment.
10226
f9d3c2a8
MK
102272003-04-19 Mark Kettenis <kettenis@gnu.org>
10228
c40e1eab
MK
10229 * i386-tdep.c (i386_num_register_names): New variable.
10230 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10231 (MM0_REGNUM): Remove redundant parentheses in define.
10232 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10233 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10234 i386_mxcsr_regnum_p): Remove redundant parentheses.
10235 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 10236
94ea66b3
MK
10237 * i386-tdep.c (i386_extract_return_value,
10238 i386_store_return_value): Correct check for availability of
10239 floating-point registers.
10240
54299a1d
MK
10241 * i386-tdep.c (i386_frame_num_args): Remove function.
10242 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10243
c86c27af
MK
10244 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10245 mmx_regnum_to_fp_regnum. Adjust all callers.
10246
f9d3c2a8
MK
10247 * i386-tdep.c (i386_get_longjmp_target): Use
10248 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10249 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10250 extract_address.
10251
94ba74a9
MK
102522003-04-19 Mark Kettenis <kettenis@gnu.org>
10253
10254 * core-regset.c: Update comments to reflect reality. Re-order
10255 includes.
10256 (fetch_core_registers): Use switch instead of if. Remove
10257 redundant prototype.
10258
4074e13c
JB
102592003-04-18 Jim Blandy <jimb@redhat.com>
10260
10261 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 10262 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 10263
e3ab4aba
RH
102642003-04-17 Richard Henderson <rth@redhat.com>
10265
10266 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10267
627bf7c1
EZ
102682003-04-17 Michael Snyder <msnyder@redhat.com>
10269 Karen Bennet <bennet@redhat.com>
10270
10271 Committed by Elena Zannoni <ezannoni@redhat.com>
10272 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10273
514621a9
EZ
102742003-04-17 Elena Zannoni <ezannoni@redhat.com>
10275
10276 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10277 value if the return type is void.
514621a9 10278
b4acd559
JJ
102792003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10280
10281 * thread-db.c: Reindented.
8ffd9b1b 10282
530b167e 102832003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10284
10285 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10286 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10287 as types.
10288
0a48e7e8
MS
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
8ffd9b1b 10312
ab9fe00e
KB
103132003-04-16 Kevin Buettner <kevinb@redhat.com>
10314
610a3745 10315 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10316 the size of ``long double'' to 16, instead of 8.
10317
e64a344c
MK
103182003-04-16 Mark Kettenis <kettenis@gnu.org>
10319
10320 * i386-linux-nat.c: Add some whitespace to make things more
10321 readable.
10322 (fetch_register, store_register, fetch_inferior_registers,
10323 store_inferior_registers): Get rid of assignment in if-statement.
10324 (store_register): Fix typo in error message.
10325
25d41031
AC
103262003-04-16 Andrew Cagney <cagney@redhat.com>
10327
10328 * utils.c (xmmalloc): Always allocate something, matches
10329 libiberty/xmalloc's semantics.
10330 (xmrealloc, xmcalloc): Ditto.
10331
c50901fd
AC
103322003-04-16 Andrew Cagney <cagney@redhat.com>
10333
10334 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10335 update comments.
10336 (get_frame_type): Initialize unwind and type when needed.
10337 (get_frame_id, frame_register_unwind): Ditto.
10338
f81824a9
AC
103392003-04-16 Andrew Cagney <cagney@redhat.com>
10340
10341 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10342 obsolete.
10343 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10344 * sparcl-stub.c: Obsolete file.
10345 * config/sparc/tm-sparclet.h: Obsolete file.
10346 * sparclet-stub.c: Obsolete file.
10347 * sparclet-rom.c: Obsolete file.
10348 * sparcl-tdep.c: Obsolete file.
10349 * config/sparc/tm-sparclite.h: Obsolete file.
10350 * config/sparc/sparclite.mt: Obsolete file.
10351 * config/sparc/sparclet.mt: Obsolete file.
10352 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10353 sparc86x-*-* obsolete.
10354
9219021c
DC
103552003-04-15 David Carlton <carlton@math.stanford.edu>
10356
10357 * Makefile.in (SFILES): Add cp-namespace.c.
10358 (COMMON_OBS): Add cp-namespace.o.
10359 (block.o): Depend on gdb_obstack_h and cp_support_h.
10360 (buildsym.o): Depend on cp_support_h.
10361 (cp-namespace.o): New.
10362 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10363 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10364 (dwarf2read.o): Depend on cp_support_h.
10365 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10366 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10367 processing_current_namespace.
10368 (read_namespace): Update processing_current_namespace; check for
10369 anonymous namespaces.
10370 (dwarf2_name): New function.
10371 (dwarf2_extension): Ditto.
10372 * cp-support.h: Update copyright, contributors.
10373 Add inclusion guards.
10374 Add opaque declaration for structs obstack, block, symbol.
10375 (struct using_direct): New struct.
10376 Add declarations for cp_find_first_component,
10377 cp_entire_prefix_len, processing_has_namespace_info,
10378 processing_current_namespace, cp_is_anonymous,
10379 cp_add_using_directive, cp_initialize_namespace,
10380 cp_finalize_namespace, cp_set_block_scope,
10381 cp_scan_for_anonymous_namespaces.
10382 * cp-namespace.c: New file.
10383 * cp-support.c: Update copyright.
10384 Include ctype.h, gdb_assert.h, gdbcmd.h.
10385 New variable maint_cplus_cmd_list.
10386 (cp_find_first_component): New function.
10387 (cp_entire_prefix_len, maint_cplus_command)
10388 (first_component_command, _initialize_cp_support): Ditto.
10389 * buildsym.c: Include cp-support.h.
10390 New variable using_list.
10391 (add_symbol_to_list): Check for anonymous namespaces.
10392 (finish_block): Set block's scope.
10393 (start_symtab): Initialize C++ namespace support.
10394 (end_symtab): Finalize C++ namespace support.
10395 * block.h: Add opaque declarations for structs
10396 block_namespace_info, using_direct, and obstack.
10397 Add declarations for block_set_scope and block_set_using.
10398 (struct block): Add 'language_specific' member.
10399 (BLOCK_NAMESPACE): New macro.
10400 * block.c: Include gdb_obstack.h and cp-support.h.
10401 (struct block_namespace_info): New struct.
10402 (block_set_scope): New function.
10403 (block_set_using, block_initialize_namespace): Ditto.
10404
d5a921c9
KB
104052003-04-14 Kevin Buettner <kevinb@redhat.com>
10406
10407 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10408 (locate_base): Return early if there aren't any link map offsets.
10409 (svr4_solib_create_inferior_hook): Warn if shared library support
10410 is unavailable.
10411
d2a52b27
DC
104122003-04-14 David Carlton <carlton@math.stanford.edu>
10413
10414 * symtab.c (symbol_set_names): Add prefix when storing Java names
10415 in hash table. Fix for PR java/1039.
10416
980cae7a
DC
104172003-04-14 David Carlton <carlton@math.stanford.edu>
10418
10419 * symtab.c (symbol_set_names): Rename 'name' arg to
10420 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10421 * symtab.h: Change 'name' argument in declaration of
10422 symbol_set_names to 'linkage_name'.
10423 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10424
e227b13c
AC
104252003-04-14 Andrew Cagney <cagney@redhat.com>
10426
10427 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10428 return the fully sign-extended register value.
10429 (get_frame_pointer): Ditto.
10430 (mips_pop_frame): Initialize "proc_desc" after checking for a
10431 dummy frame.
10432
36712a20
AC
104332003-04-14 Andrew Cagney <cagney@redhat.com>
10434
10435 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10436 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10437 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10438 (mips_push_register): Delete function.
10439 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10440 PUSH_FP_REGNUM.
10441
44ea7b70
JB
104422003-04-14 Jim Blandy <jimb@redhat.com>
10443
10444 * symmisc.c: #include "gdb_regex.h".
10445 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10446 functions.
10447 * maint.c (maintenance_list_command): New function.
10448 (_initialize_maint_cmds): Register the above as commands.
10449 * symtab.h (maintenance_list_symtabs,
10450 maintenance_list_psymtabs): New declarations.
10451 * cli/cli-cmds.c (maintenancelistlist): New variable.
10452 (init_cmd_lists): Initialize it.
10453 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10454 * gdbcmd.h (maintenancelistlist): New declaration.
10455 * Makefile.in (symmisc.o): Update dependencies.
10456
2d0c7962
EZ
104572003-04-14 Elena Zannoni <ezannoni@redhat.com>
10458
10459 * s390-nat.c: Include asm/types.h for addr_t.
10460
1947a811
CV
104612003-04-14 Corinna Vinschen <vinschen@redhat.com>
10462
10463 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10464 actually incoming type.
10465
adb616d7
AC
104662003-04-13 Andrew Cagney <cagney@redhat.com>
10467
10468 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10469 get_next_frame and get_frame_saved_regs.
10470
9b5e151c
AC
104712003-04-13 Andrew Cagney <cagney@redhat.com>
10472
10473 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10474 of gdbarch_num_regs.
10475
ef6e7e13
AC
104762003-04-13 Andrew Cagney <cagney@redhat.com>
10477
10478 * frame.h: Mention what replaced what in "struct frame_info".
10479 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10480 deprecated_update_frame_base_hack and
10481 deprecated_update_frame_pc_hack.
10482 * hppa-tdep.c: Ditto.
10483
61fbb938
DJ
104842003-04-13 Daniel Jacobowitz <drow@mvista.com>
10485
10486 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10487 to read_reg and update its comment. Remove regnum member.
10488 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10489 Don't call read_reg when setting in_reg. Call read_reg to get
10490 the frame base if it's in a register. Return the register number
10491 on the stack instead of in the context. Remove extra arguments
10492 to read_reg.
10493 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10494 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10495 the register number on the expression stack.
10496 (needs_frame_read_reg): Remove extra arguments.
10497
0d53c4c4
DJ
104982003-04-13 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10501 made non-static.
10502 (execute_stack_op): All callers updated.
10503 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10504 * dwarf2loc.c (find_location_expression): New function.
10505 (dwarf_expr_frame_base): Call it.
10506 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10507 (dwarf2_tracepoint_var_ref): New function, broken out from
10508 locexpr_tracepoint_var_ref.
10509 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10510 Make static.
10511 (loclist_read_variable, loclist_read_needs_frame): New functions.
10512 (loclist_describe_location, loclist_tracepoint_var_ref): New
10513 functions.
10514 (dwarf2_loclist_funcs): New struct location_funcs.
10515 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10516 (struct dwarf2_locexpr_baton): Add comments.
10517 (dwarf2_loclist_funcs): New extern.
10518 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10519 base_address and base_known.
10520 (dwarf_loc_buffer): New variable.
10521 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10522 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10523 (dwarf2_has_info): Initialize dwarf_loc_offset.
10524 (dwarf2_build_psymtabs): Read in .debug_loc.
10525 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10526 DWARF_LOC_SIZE.
10527 (psymtab_to_symtab_1): Likewise. Move base address calculation
10528 here, from...
10529 (dwarf2_get_pc_bounds): ... here. Use the base address from
10530 cu_header.
10531 (dwarf2_symbol_mark_computed): Handle location lists.
10532
6aca59a3
DJ
105332003-04-13 Daniel Jacobowitz <drow@mvista.com>
10534
10535 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10536 if the linkage name demangled successfully.
10537
aca1fcd0
MK
105382003-04-13 Mark Kettenis <kettenis@gnu.org>
10539
97095916
MK
10540 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10541 disassmbly_flavour): Removed.
10542
aca1fcd0
MK
10543 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10544
562a961f
MK
105452003-04-13 Mark Kettenis <kettenis@gnu.org>
10546
10547 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10548
bd013d54
AC
105492003-04-12 Andrew Cagney <cagney@redhat.com>
10550
10551 * frame.h (struct frame_info): Move definition from here ...
10552 * frame.c (struct frame_info): ... to here.
10553
167ef8b1
AC
105542003-04-12 Andrew Cagney <cagney@redhat.com>
10555
10556 * gdbthread.h (save_infrun_state): Delete parameter
10557 "prev_func_start".
10558 (struct thread_info): Delete field "prev_func_start".
10559 (load_infrun_state): Ditto.
10560 * thread.c (load_infrun_state, save_infrun_state): Update.
10561 * infrun.c (prev_func_start): Delete variable.
10562 (context_switch, init_wait_for_inferior): Update.
10563 (stop_stepping, keep_going): Update.
10564
da3331ec
AC
105652003-04-12 Andrew Cagney <cagney@redhat.com>
10566
10567 * gdbarch.sh: Add missing opaque declarations.
10568 * gdbarch.h: Regnerate.
10569 * symtab.h: Add missing opaque declarations.
10570 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10571 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10572 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10573 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10574 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10575 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10576 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10577 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10578 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10579 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10580 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10581 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10582 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10583
18adea3f
AC
105842003-04-11 Andrew Cagney <cagney@redhat.com>
10585
10586 * frame.c (get_frame_id): Return this frame's "id".
10587 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10588 function start.
10589 (legacy_saved_regs_this_id): Replace function body with
10590 internal-error.
10591 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10592 FRAME_OBSTACK_ZALLOC.
10593 (create_new_frame): Mark the frame ID as valid.
10594
2252e863
AO
105952003-04-11 Alexandre Oliva <aoliva@redhat.com>
10596
10597 * Makefile.in (libbfd_h): Added missing setting.
10598 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10599 according to the selected ABI.
10600
a8245ab8
JJ
106012003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10602
10603 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10604
6913c89a
AC
106052003-04-11 Andrew Cagney <cagney@redhat.com>
10606
10607 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10608 SAVED_PC_AFTER_CALL.
10609 * gdbarch.h, gdbarch.c: Regenerate.
10610 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10611 * x86-64-tdep.c (x86_64_init_abi): Update.
10612 * vax-tdep.c (vax_gdbarch_init): Update.
10613 * v850-tdep.c (v850_gdbarch_init): Update.
10614 * sparc-tdep.c (sparc_gdbarch_init): Update.
10615 * sh-tdep.c (sh_gdbarch_init): Update.
10616 * s390-tdep.c (s390_gdbarch_init): Update.
10617 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10618 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10619 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10620 * mips-tdep.c (mips_gdbarch_init): Update.
10621 * mcore-tdep.c (mcore_gdbarch_init): Update.
10622 * m68k-tdep.c (m68k_gdbarch_init): Update.
10623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10624 * ia64-tdep.c (ia64_gdbarch_init): Update.
10625 (ia64_saved_pc_after_call): Update declaration.
10626 * i386ly-tdep.c (i386lynx_init_abi): Update.
10627 * i386-tdep.c (i386_gdbarch_init): Update.
10628 * hppa-tdep.c (hppa_gdbarch_init): Update.
10629 * h8300-tdep.c (h8300_gdbarch_init): Update.
10630 * frv-tdep.c (frv_gdbarch_init): Update.
10631 * cris-tdep.c (cris_gdbarch_init): Update.
10632 * avr-tdep.c (avr_gdbarch_init): Update.
10633 * arm-tdep.c (arm_gdbarch_init): Update.
10634 * alpha-tdep.c (alpha_gdbarch_init): Update.
10635 * ns32knbsd-nat.c (frame_num_args): Update.
10636 * ns32k-tdep.c (umax_frame_num_args): Update.
10637 * mips-tdep.c (mips_init_frame_pc_first): Update.
10638 * infrun.c (step_over_function): Update.
10639 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10640 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10641 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10642 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10643 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10644 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10645 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10646 * arch-utils.c (init_frame_pc_default): Update.
10647 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10648 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10649 declaration.
8ffd9b1b 10650
38edeab8
AC
106512003-04-11 Andrew Cagney <cagney@redhat.com>
10652
10653 * i387-tdep.c: Update copyright.
10654 (i387_to_double): Delete function.
10655 (double_to_i387): Delete function.
10656
81f8a206
AC
106572003-04-10 Andrew Cagney <cagney@redhat.com>
10658
10659 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10660 frame's function's address. Simplify.
10661 (d10v_frame_unwind_cache): Check that the frame's function is
10662 non-zero.
10663
6e691f7a
JB
106642003-04-10 Jim Blandy <jimb@redhat.com>
10665
10666 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10667 call to set_gdbarch_deprecated_push_arguments.
10668
7f78e237
AC
106692003-04-10 Andrew Cagney <cagney@redhat.com>
10670
10671 * frame.c (fprint_frame_id): New function.
10672 (fprint_frame_type, fprint_frame): New function.
10673 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10674 (create_sentinel_frame, get_frame_id): Ditto.
10675 (frame_id_p, frame_id_eq): Ditto.
10676 (frame_id_inner, create_new_frame): Ditto.
10677 (legacy_get_prev_frame, get_prev_frame): Ditto.
10678 (deprecated_update_frame_pc_hack): Ditto.
10679 (frame_register_unwind): Ditto.
10680 (deprecated_update_frame_base_hack): Ditto.
10681
f870b49b
CV
106822003-04-10 Corinna Vinschen <vinschen@redhat.com>
10683
10684 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10685 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10686 frame_chain function.
10687 * Makefile.in: Add dependencies due to above change.
10688
7c86889b
CV
106892003-04-10 Corinna Vinschen <vinschen@redhat.com>
10690
10691 * blockframe.c (legacy_frame_chain_valid): Move call to
10692 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10693 inside_entry_file.
10694
d0a55772
AC
106952003-04-09 Andrew Cagney <cagney@redhat.com>
10696
10697 * frame.h (struct frame_id): Replace "pc" and "base" with
10698 "stack_addr" and "code_addr". Update comments.
10699 (frame_id_build): Update parameter names and comment.
10700 (struct frame_info): Replace "id_p" and "id" with "this_id".
10701 * dummy-frame.c (dummy_frame_this_id): Update.
10702 * breakpoint.c (print_one_breakpoint): Update.
10703 * frame.c (get_frame_id): Update.
10704 (get_frame_base, frame_id_build): Update.
10705 (create_sentinel_frame, legacy_get_prev_frame): Update.
10706 (deprecated_update_frame_base_hack): Update.
10707 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10708 (frame_id_inner): Ditto.
10709
ac16bf07
AC
107102003-04-09 Andrew Cagney <cagney@redhat.com>
10711
10712 * defs.h (gdb_print_host_address): Make "addr" parameter a
10713 pointer constant.
10714 * utils.c (gdb_print_host_address): Update.
10715
366cfc9e
KB
107162003-04-09 Kevin Buettner <kevinb@redhat.com>
10717
10718 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10719 register number for R0 is 0.
10720
cd983b5c
JB
107212003-04-09 J. Brobecker <brobecker@gnat.com>
10722
10723 * frame.h (struct gdbarch): Add opaque structure definition
10724 to avoid a compilation warning on LynxOS 4.0.
10725
d1340264
AC
107262003-04-09 Andrew Cagney <cagney@redhat.com>
10727
10728 * frame.h (struct frame_info): Delete field "pc". Replace
10729 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10730 structure.
10731 * frame.c (frame_pc_unwind): Update.
10732 (create_sentinel_frame): Do not set "pc".
10733 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10734 (get_frame_pc): Call frame_pc_unwind.
10735 (deprecated_update_frame_pc_hack): Update.
10736 (create_new_frame): Use "pc" not "->pc".
10737
90a6fffb
AC
107382003-04-09 Andrew Cagney <cagney@redhat.com>
10739
10740 * frame.c (get_frame_id): Eliminate code updating "frame".
10741 (legacy_get_prev_frame): Ditto.
10742 (get_frame_base): Return id.base directly.
10743 (deprecated_update_frame_base_hack): Update "id.base".
10744 * frame.h (struct frame_info): Delete field "frame".
10745
2fbce691
AC
107462003-04-09 Andrew Cagney <cagney@redhat.com>
10747
10748 * NEWS: Mention that the "Sequent family" is obsolete.
10749 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10750 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10751 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10752 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10753 * config/i386/tm-ptx4.h: Obsolete file.
10754 * config/i386/tm-ptx.h: Obsolete file.
10755 * symm-tdep.c: Obsolete file.
10756 * config/i386/symmetry.mt: Obsolete file.
10757 * config/i386/tm-symmetry.h: Obsolete file.
10758 * symm-nat.c: Obsolete file.
10759 * config/i386/nm-symmetry.h: Obsolete file.
10760 * config/i386/xm-symmetry.h: Obsolete file.
10761 * config/i386/symmetry.mh: Obsolete file.
10762 * config/i386/nm-ptx4.h: Obsolete file.
10763 * config/i386/ptx4.mh: Obsolete file.
10764 * config/i386/ptx.mt: Obsolete file.
10765 * config/i386/ptx.mh: Obsolete file.
10766 * config/i386/xm-ptx4.h: Obsolete file.
10767 * config/i386/xm-ptx.h: Obsolete file.
10768
78c43945
AC
107692003-04-09 Andrew Cagney <cagney@redhat.com>
10770
10771 Obsolete mips*-*-mach3*.
10772 * NEWS: Mention that mips*-*-mach3* is obsolete.
10773 * m3-nat.c: Obsolete file.
10774 * config/nm-m3.h: Obsolete file.
10775 * config/mips/tm-mipsm3.h: Obsolete file.
10776 * config/mips/mipsm3.mt: Obsolete file.
10777 * config/mips/mipsm3.mh: Obsolete file.
10778 * config/mips/xm-mipsm3.h: Obsolete file.
10779 * mipsm3-nat.c: Obsolete file.
10780 * configure.host: Obsolete mips-dec-mach3*.
10781 * configure.tgt: Obsolete mips*-*-mach3*.
10782
f1908289
AC
107832003-04-09 Andrew Cagney <cagney@redhat.com>
10784
10785 * doublest.h: Update copyright.
10786 (deprecated_store_floating, deprecated_extract_floating): Rename
10787 store_floating and extract_floating. Update comments.
10788 * doublest.c: Update copyright.
10789 (extract_floating_by_length): Replace extract_floating.
10790 (store_floating_by_length): Replace store_floating.
10791 (deprecated_extract_floating): New function.
10792 (deprecated_store_floating): New function.
10793 (extract_typed_floating): Call extract_floating_by_length.
10794 (store_typed_floating): Call store_floating_by_length.
10795 * x86-64-tdep.c (x86_64_store_return_value): Update.
10796 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10797 (sh64_extract_return_value): Update.
10798 (sh_sh4_register_convert_to_virtual): Update.
10799 (sh_sh64_register_convert_to_virtual): Update.
10800 (sh_sh4_register_convert_to_raw): Update.
10801 (sh_sh64_register_convert_to_raw): Update.
10802 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10803 (rs6000_register_convert_to_raw): Update.
10804 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10805 (ia64_register_convert_to_raw): Update.
10806 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10807 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10808 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10809 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10810 (alpha_register_convert_to_raw): Update.
10811
4443bd83
AC
108122003-04-08 Andrew Cagney <cagney@redhat.com>
10813
10814 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10815 * gdbarch.h, gdbarch.c: Re-generate.
10816 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10817 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10818 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10819 conditionally, use frame_pc_unwind as an alternative. Add
10820 comments.
10821 * arch-utils.c (init_frame_pc_default): Only call
10822 SAVED_PC_AFTER_CALL when available.
10823
c0236d92
EZ
108242003-04-08 Elena Zannoni <ezannoni@redhat.com>
10825
fbe586ae 10826 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10827 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10828 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10829 (start_remote): Ditto.
10830 (handle_inferior_event): Ditto.
10831 (save_inferior_status): Ditto.
10832 (restore_inferior_status): Ditto.
10833 * infcmd.c (attach_command): Ditto.
10834 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10835 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10836 * alpha-tdep.c (heuristic_proc_start): Ditto.
10837 * mips-tdep.c (heuristic_proc_start): Ditto.
10838 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10839 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10840 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10841 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10842 * remote-vx.c (vx_create_inferior): Ditto.
10843
108442003-04-08 Elena Zannoni <ezannoni@redhat.com>
10845
10846 * infrun.c (stop_soon_quietly): Make it an enum, to better
10847 override the default behavior of handle_inferior_event.
10848 (clear_proceed_status): Update uses of stop_soon_quietly to
10849 reflect that it is now an enum.
10850 (start_remote): Ditto.
10851 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10852 is set to handle the new GNU/Linux kernel behavior for
10853 attach/sigstop. Update uses of stop_soon_quietly.
10854 * inferior.h (enum stop_kind): New enum.
10855 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10856 Reset normal handle_inferior_event behavior, afterwards.
10857 * fork-child.c (startup_inferior): Update.
10858 * alpha-tdep.c (heuristic_proc_start): Update.
10859 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10860 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10861 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10862 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10863 * remote-vx.c (vx_create_inferior): Update.
10864 * mips-tdep.c (heuristic_proc_start): Update.
10865
1211bce3
EZ
108662003-04-07 Elena Zannoni <ezannoni@redhat.com>
10867
10868 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10869 be freed more than once, causing wild memory corruptions.
1211bce3 10870 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10871 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10872 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10873 with the "core" target.
1211bce3 10874
f0ef6b29
KB
108752003-04-07 Kevin Buettner <kevinb@redhat.com>
10876
10877 * mips-tdep.c (mips_print_fp_register): New function, created from
10878 do_fp_register_row(). Registers are now (also) printed as hex.
10879 Only one register is printed per row.
10880 (mips_print_register, do_fp_register_row): Print floating point
10881 registers with mips_print_fp_register().
10882
8cf71652
AC
108832003-04-06 Andrew Cagney <cagney@redhat.com>
10884
5e488a7b
AC
10885 * valprint.h (inspect_it): Add extern declaration.
10886 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10887 (selectors_info, classes_info): Ditto.
10888 (find_objc_msgcall): Fix indentation.
10889 (objc_printstr): Delete extern declarations.
10890
8cf71652
AC
10891 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10892
e6ba3bc9
AC
108932003-04-06 Andrew Cagney <cagney@redhat.com>
10894
10895 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10896 Update comment.
10897 * frame.c (legacy_saved_regs_this_id): Update.
10898 (legacy_get_prev_frame): Update.
10899 * xstormy16-tdep.c: Update comment.
10900 * sparc-tdep.c (sparc_frame_chain): Update comment.
10901 * blockframe.c (legacy_frame_chain_valid): Update.
10902
55e1d7e7
AC
109032003-04-06 Andrew Cagney <cagney@redhat.com>
10904
996179ee
AC
10905 * valprint.c (val_print_type_code_int): Delete #ifdef
10906 PRINT_TYPELESS_INTEGER code.
10907
55e1d7e7
AC
10908 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10909 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10910 multi-arch definition.
10911 * gdbarch.h: Re-generate.
10912
43bd9a9e
AC
109132003-04-05 Andrew Cagney <cagney@redhat.com>
10914
10915 Eliminate FRAME_FIND_SAVED_REGS.
10916 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10917 Change FSR parameter to a pointer.
10918 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10919 Assume FSR parameter is a pointer.
10920 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10921 Make fsr a pointer.
10922 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10923 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10924 saved_regs a pointer.
10925 (hppa_frame_saved_pc): Ditto.
10926 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10927 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10928 pointer.
10929 (restore_pc_queue): Make fsr a pointer.
10930 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10931 (hppa_frame_chain): Make saved_regs a pointer, call
10932 hppa_frame_init_saved_regs.
10933 * sparc-tdep.c: Include "gdb_assert.h".
10934 (sparc_frame_find_saved_regs): Replace internal_error with
10935 gdb_assert.
10936 * remote-vxsparc.c (vx_read_register): Delete reference to
10937 FRAME_FIND_SAVED_REGS.
10938 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10939 * gdbarch.h: Regenerate.
10940 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10941 (deprecated_get_frame_saved_regs): Delete declaration.
10942 (struct frame_saved_regs): Delete definition.
10943 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10944 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10945 (hppa_frame_find_saved_regs): Delete declaration.
10946 (FRAME_FIND_SAVED_REGS): Delete macro.
10947 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10948 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10949 FRAME_FIND_SAVED_REGS in comment.
10950
be41e9f4
AC
109512003-04-05 Andrew Cagney <cagney@redhat.com>
10952
10953 * frame.c (frame_func_unwind, get_frame_func): New functions.
10954 * frame.h (get_frame_func, frame_func_unwind): Declare.
10955 (struct frame_info): Add field "prev_func" for caching the
10956 previous frame's function address.
10957 * arm-tdep.c (arm_frameless_function_invocation): Combine
10958 get_pc_function_start and get_frame_pc into get_frame_func.
10959 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10960 (sh64_nofp_frame_init_saved_regs): Ditto.
10961 * s390-tdep.c (s390_function_start): Ditto.
10962 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10963 (rs6000_frameless_function_invocation): Ditto.
10964 (rs6000_frame_saved_pc): Ditto.
10965 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10966 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10967 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10968 (i386_frame_init_saved_regs): Ditto.
10969 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10970 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10971 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10972 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10973 * blockframe.c (frameless_look_for_prologue): Ditto.
10974
a01dd7cc
AC
109752003-04-05 Andrew Cagney <cagney@redhat.com>
10976
10977 * frame.c (legacy_get_prev_frame): Link prev to next at the
10978 function start. Update comments.
10979
5e5592e6
AC
109802003-04-05 Andrew Cagney <cagney@redhat.com>
10981
10982 * frame.c (get_frame_id): Update comment.
10983 (legacy_get_prev_frame): Update comment.
10984 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10985 * gdbarch.h: Regenerate.
10986 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10987 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10988
6fba5002
AC
109892003-04-05 Andrew Cagney <cagney@redhat.com>
10990
10991 * stack.c (print_frame_info): Use get_frame_pc.
10992
7df05f2b
AC
109932003-04-04 Andrew Cagney <cagney@redhat.com>
10994
10995 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10996 the frame's type from the unwinder.
10997 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10998 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10999 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
11000 (get_frame_base_address): Use get_frame_type.
11001 (get_frame_locals_address, get_frame_args_address): Ditto.
11002 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
11003 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
11004 (struct frame_info): Add comment explaining why the frame contains
11005 a "type" field.
11006 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
11007 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
11008 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
11009 NORMAL_FRAME.
11010 * frame-unwind.h: Include "frame.h".
11011 (struct frame_unwind): Add "type" field.
11012 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 11013
11889732
AC
110142003-04-04 Andrew Cagney <cagney@redhat.com>
11015
11016 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
11017 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
11018 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
11019 get_frame_base.
11020 (d10v_unwind_dummy_id): Use frame_id_build.
11021 * frame.c (find_frame_sal): Use get_frame_pc.
11022 (create_new_frame): Use deprecated_update_frame_pc_hack and
11023 deprecated_update_frame_base_hack.
11024 (create_sentinel_frame): Add comment about ->pc going away.
11025 (get_prev_frame): Add comment about ->pc going away.
11026 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
11027 frame_id_build, deprecated_update_frame_pc_hack and
11028 deprecated_update_frame_base_hack.
11029 (select_frame): Use get_frame_pc.
11030 (legacy_saved_regs_this_id): Use frame_id_build.
11031
50c46a0d
EZ
110322003-04-04 Elena Zannoni <ezannoni@redhat.com>
11033
fbe586ae
RH
11034 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
11035 signed integer case.
11036 (classify_argument): Handle enumerations and references.
50c46a0d 11037
50bbdbd9
AC
110382003-04-04 Andrew Cagney <cagney@redhat.com>
11039
11040 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
11041 ID to NULL.
11042
36018d2e
AF
110432003-04-01 Adam Fedor <fedor@gnu.org>
11044
11045 * gdb/objc-lang.c (selectors_info): Replace calls to
11046 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
11047 SYMBOL_NATURAL_NAME.
11048 (classes_info, find_methods): Likewise.
11049
35cec841
KB
110502003-04-03 Kevin Buettner <kevinb@redhat.com>
11051
11052 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
11053 ``mach'' to the value determined by bfd_default_set_arch_mach().
11054
43136899
BR
110552003-04-02 Bob Rossi <bob_rossi@cox.net>
11056
11057 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
11058 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
11059 (mi-cmd-file.o): Update dependencies.
11060
040b99fd
KB
110612003-04-01 Kevin Buettner <kevinb@redhat.com>
11062
11063 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11064 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11065
9a3d7dfd
AF
110662003-04-01 Adam Fedor <fedor@gnu.org>
11067
11068 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11069 * language.h (struct language_defn): Add la_demangle.
11070 (language_demangle): Declare.
11071 * language.c (language_demangle): New function.
11072 (unk_lang_demangle): Likewise.
11073 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 11074 Add ukn_lang_demangle.
9a3d7dfd 11075 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 11076 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
11077 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11078 (cplus_language_defn): Add cplus_demangle for la_demangle element.
11079 * jv-lang.c (java_demangle): New function
11080 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
11081 * objc-lang.c (objc_demangle): Add options argument
11082 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
11083 * maint.c (maintenance_demangle): Replace switch with
11084 call to language_demangle.
11085 * utils.c (fprintf_symbol_filtered): Likewise.
11086
5e074003
AC
110872003-04-01 Andrew Cagney <cagney@redhat.com>
11088
11089 * printcmd.c (print_frame_nameless_args): Delete #ifdef
11090 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11091 PRINT_TYPELESS_INTEGER.
11092 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11093 PUSH_RETURN_ADDRESS.
11094
270cb5d6
AC
110952003-04-01 Andrew Cagney <cagney@redhat.com>
11096
11097 * Makefile.in (d10v-tdep.o): Update dependencies.
11098 * d10v-tdep.c: Include "frame-base.h".
11099 (d10v_frame_unwind): Make constant.
11100 (d10v_frame_base_address): New function.
11101 (d10v_frame_base): New variable.
11102 (d10v_gdbarch_init): Set frame_base default.
11103 (struct d10v_unwind_cache): Add the field "prev_sp". Update
11104 comment for base.
11105 (d10v_frame_unwind_cache): Set and use "prev_sp".
11106 (d10v_frame_this_id): Use the previous frame's inner most stack
11107 address and this frame's func address for the frame ID. Use
11108 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 11109
6bfb3e36
AC
111102003-04-01 Andrew Cagney <cagney@redhat.com>
11111
11112 * frame.h (get_frame_locals_address, get_frame_args_address):
11113 Refer to the base address, instead of the address of the first
11114 local or parameter.
8ffd9b1b 11115
da62e633
AC
111162003-04-01 Andrew Cagney <cagney@redhat.com>
11117
11118 Add frame debug info addresses:
11119 * frame-base.c: New file.
11120 * frame-base.h: New file.
11121 * frame.h (struct frame_base): Add opaque declaration.
11122 (get_frame_base): Update comment.
11123 (get_frame_base_address): Declare.
11124 (get_frame_locals_address): Declare.
11125 (get_frame_args_address): Declare.
11126 (struct frame_info): Add "base" and "base_cache". Update
11127 comments on the unwinder.
11128 * frame.c: Include "frame-base.h".
11129 (get_frame_locals_address): New function.
11130 (get_frame_base_address): New function.
11131 (get_frame_args_address): New function.
11132 * findvar.c (read_var_value): Use get_frame_locals_address and
11133 get_frame_args_address.
11134 * stack.c (frame_info): Use get_frame_locals_address and
11135 get_frame_args_address.
11136 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11137 moved to "frame-base.c".
11138 * printcmd.c (print_frame_nameless_args): Ditto.
11139 * symtab.h (address_class): Update comments.
11140 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11141 get_frame_base_address.
11142 * dwarf2expr.c (execute_stack_op): Ditto.
11143 * Makefile.in (frame_base_h): Define.
11144 (frame.o): Update dependencies.
11145 (frame-base.o): Add dependencies.
11146 (SFILES): Add frame-base.c.
11147 (COMMON_OBS): Add frame-base.o.
11148
3d30e9c2
AC
111492003-04-01 Andrew Cagney <cagney@redhat.com>
11150
11151 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11152 CALL_DUMMY_LENGTH): Ditto.
11153 * gdbarch.c: Re-generate.
11154 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11155 (CALL_DUMMY_LENGTH): Delete macro.
11156 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11157 * arm-tdep.c (arm_gdbarch_init): Ditto.
11158 * avr-tdep.c (avr_gdbarch_init): Ditto.
11159 * cris-tdep.c (cris_gdbarch_init): Ditto.
11160 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11161 * frv-tdep.c (frv_gdbarch_init): Ditto.
11162 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11163 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11164 * i386-tdep.c (i386_gdbarch_init): Ditto.
11165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11167 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11168 * mips-tdep.c (mips_gdbarch_init): Ditto.
11169 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11170 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11171 * s390-tdep.c (s390_gdbarch_init): Ditto.
11172 * sh-tdep.c (sh_gdbarch_init): Ditto.
11173 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11174 * v850-tdep.c (v850_gdbarch_init): Ditto.
11175 * vax-tdep.c (vax_gdbarch_init): Ditto.
11176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11177
ce0c7262
CV
111782003-04-01 Corinna Vinschen <vinschen@redhat.com>
11179
11180 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11181
73dd234f
AC
111822003-04-01 Andrew Cagney <cagney@redhat.com>
11183
11184 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11185 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11186 * gdbarch.h, gdbarch.c: Re-generate.
11187 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11188 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11189 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11190 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11191 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11192 * infcmd.c (run_stack_dummy): Simplify assuming
11193 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11194 * infrun.c (handle_inferior_event): Ditto.
11195 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11196 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11197 * arm-tdep.c (arm_gdbarch_init): Ditto.
11198 * avr-tdep.c (avr_gdbarch_init): Ditto.
11199 * cris-tdep.c (cris_gdbarch_init): Ditto.
11200 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11201 * frv-tdep.c (frv_gdbarch_init): Ditto.
11202 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11203 * i386-tdep.c (i386_gdbarch_init): Ditto.
11204 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11206 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11207 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11208 * mips-tdep.c (mips_gdbarch_init): Ditto.
11209 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11210 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11211 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11212 * s390-tdep.c (s390_gdbarch_init): Ditto.
11213 * sh-tdep.c (sh_gdbarch_init): Ditto.
11214 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11215 * v850-tdep.c (v850_gdbarch_init): Ditto.
11216 * vax-tdep.c (vax_gdbarch_init): Ditto.
11217 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11218
97606a13
DJ
112192003-04-01 Daniel Jacobowitz <drow@mvista.com>
11220
11221 * symfile.c (symfile_relocate_debug_section): Update call to
11222 bfd_simple_get_relocated_section_contents.
11223
e8ab51f7
AC
112242003-03-31 Andrew Cagney <cagney@redhat.com>
11225
11226 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11227 * gdbarch.h, gdbarch.c: Regenerate.
11228 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11229 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11230 available.
11231 * frame.h (generic_fix_call_dummy): Delete declaration.
11232 * dummy-frame.h: Update comment.
11233 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11234 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11235 fix_call_dummy.
11236 * sh-tdep.c (sh_gdbarch_init): Ditto.
11237 * s390-tdep.c (s390_gdbarch_init): Ditto.
11238 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11241 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11242 * i386-tdep.c (i386_gdbarch_init): Ditto.
11243 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11244 * frv-tdep.c (frv_gdbarch_init): Ditto.
11245 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11246 * cris-tdep.c (cris_gdbarch_init): Ditto.
11247 * avr-tdep.c (avr_gdbarch_init): Ditto.
11248 * arm-tdep.c (arm_gdbarch_init): Ditto.
11249
018d1b48
JB
112502003-03-31 J. Brobecker <brobecker@gnat.com>
11251
11252 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11253 (INIT_FRAME_AP): Likewise.
11254 (EXTRA_FRAME_INFO): Likewise.
11255
e9a2674e
AC
112562003-03-31 Andrew Cagney <cagney@redhat.com>
11257
11258 * gdbarch.sh: Include "symfile.h".
11259 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11260 * gdbarch.h, gdbarch.c: Re-generate.
11261 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11263 call_dummy_address, the default is at entry_point_address.
11264 * v850-tdep.c (v850_gdbarch_init): Ditto.
11265 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11266 * sh-tdep.c (sh_gdbarch_init): Ditto.
11267 * s390-tdep.c (s390_gdbarch_init): Ditto.
11268 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11269 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11270 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11271 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11272 * i386-tdep.c (i386_gdbarch_init): Ditto.
11273 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11274 * frv-tdep.c (frv_gdbarch_init): Ditto.
11275 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11276 * cris-tdep.c (cris_gdbarch_init): Ditto.
11277 * arm-tdep.c (arm_gdbarch_init): Ditto.
11278
e8a8712a
AC
112792003-03-31 Andrew Cagney <cagney@redhat.com>
11280
11281 * gdbarch.sh (CALL_DUMMY_P): Delete.
11282 * gdbarch.h, gdbarch.c: Re-generate.
11283 * inferior.h (CALL_DUMMY_P): Delete macro.
11284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11285 * vax-tdep.c (vax_gdbarch_init): Update.
11286 * v850-tdep.c (v850_gdbarch_init): Update.
11287 * sparc-tdep.c (sparc_gdbarch_init): Update.
11288 * sh-tdep.c (sh_gdbarch_init): Update.
11289 * s390-tdep.c (s390_gdbarch_init): Update.
11290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11291 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11292 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11293 * mips-tdep.c (mips_gdbarch_init): Update.
11294 * mcore-tdep.c (mcore_gdbarch_init): Update.
11295 * m68k-tdep.c (m68k_gdbarch_init): Update.
11296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11297 * ia64-tdep.c (ia64_gdbarch_init): Update.
11298 * i386-tdep.c (i386_gdbarch_init): Update.
11299 * h8300-tdep.c (h8300_gdbarch_init): Update.
11300 * frv-tdep.c (frv_gdbarch_init): Update.
11301 * d10v-tdep.c (d10v_gdbarch_init): Update.
11302 * cris-tdep.c (cris_gdbarch_init): Update.
11303 * breakpoint.c (deprecated_frame_in_dummy): Update.
11304 * avr-tdep.c (avr_gdbarch_init): Update.
11305 * alpha-tdep.c (alpha_gdbarch_init): Update.
11306 * arm-tdep.c (arm_gdbarch_init): Update.
11307 * dummy-frame.c (dummy_frame_this_id): Update comments.
11308 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11309 * frame.c (legacy_get_prev_frame): Ditto.
11310 * valops.c (call_function_by_hand): Delete function.
11311 (hand_function_call): Rename to call_function_by_hand
11312
ed234cf8
AC
113132003-03-30 Andrew Cagney <cagney@redhat.com>
11314
11315 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11316 * value.h (struct value): Update comment.
ed234cf8 11317
06c77151
AC
113182003-03-30 Andrew Cagney <cagney@redhat.com>
11319
6c2b5168
AC
11320 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11321 D10V_FP_REGNUM.
11322 (d10v_gdbarch_init): Do not set fp_regnum.
11323
06c77151
AC
11324 * frame.c (get_frame_base): Force ID initialization.
11325 (get_prev_frame): Move computation of the frame ID from here ...
11326 (get_frame_id): ... to here.
11327 (legacy_get_prev_frame): Mark the frame ID as valid.
11328 * frame.h (struct frame_info): Add field "id_p".
11329
97a1a11c
MK
113302003-03-30 Mark Kettenis <kettenis@gnu.org>
11331
11332 * i386-tdep.c (i386_store_struct_return): Removed.
11333 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11334
6c0e89ed
AC
113352003-03-30 Andrew Cagney <cagney@redhat.com>
11336
11337 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11338 * gdbarch.h, gdbarch.c: Regenerate.
11339 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11340 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11341 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11342 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11343 * i386-tdep.c (i386_gdbarch_init): Ditto.
11344 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11345 * cris-tdep.c (cris_gdbarch_init): Ditto.
11346 * vax-tdep.c (vax_gdbarch_init): Ditto.
11347 * s390-tdep.c (s390_gdbarch_init): Ditto.
11348 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11349 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11350 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11351 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11352 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11353 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11354 * sparc-tdep.c (sparc_gdbarch_init): Update.
11355 * sh-tdep.c (sh_gdbarch_init): Update.
11356 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11357 * mips-tdep.c (mips_gdbarch_init): Update.
11358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11359 * ia64-tdep.c (ia64_gdbarch_init): Update.
11360 * frv-tdep.c (frv_gdbarch_init): Update.
11361 * avr-tdep.c (avr_gdbarch_init): Update.
11362 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11363 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11364 instead of when push_dummy_call is not available.
8ffd9b1b 11365
f7dd6af2
AC
113662003-03-30 Andrew Cagney <cagney@redhat.com>
11367
11368 * infttrace.c: Include "gdbthread.h".
11369 (parent_attach_all): Fix function signature.
11370 (call_ptrace): Update call.
11371 * Makefile.in (infttrace.o): Update dependencies.
11372
28f617b3
AC
113732003-03-30 Andrew Cagney <cagney@redhat.com>
11374
11375 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11376 PUSH_RETURN_ADDRESS.
11377 * gdbarch.h, gdbarch.c: Regenerate.
11378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11379 * x86-64-tdep.c (x86_64_init_abi): Update.
11380 * v850-tdep.c (v850_gdbarch_init): Update.
11381 * sparc-tdep.c (sparc_gdbarch_init): Update.
11382 * sh-tdep.c (sh_gdbarch_init): Update.
11383 * s390-tdep.c (s390_gdbarch_init): Update.
11384 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11385 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11386 * mips-tdep.c (mips_gdbarch_init): Update.
11387 * mcore-tdep.c (mcore_gdbarch_init): Update.
11388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11389 * ia64-tdep.c (ia64_gdbarch_init): Update.
11390 * i386-tdep.c (i386_gdbarch_init): Update.
11391 * h8300-tdep.c (h8300_gdbarch_init): Update.
11392 * frv-tdep.c (frv_gdbarch_init): Update.
11393 * cris-tdep.c (cris_gdbarch_init): Update.
11394 * avr-tdep.c (avr_gdbarch_init): Update.
11395 * arm-tdep.c (arm_gdbarch_init): Update.
11396 * valops.c (hand_function_call): Update.
11397
4d628cd7
AC
113982003-03-29 Andrew Cagney <cagney@redhat.com>
11399
11400 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11401 sizeof_call_dummy_words.
11402 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11403 define.
11404 * gdbarch.h: Regenerate.
8ffd9b1b 11405
65e82032
AC
114062003-03-29 Andrew Cagney <cagney@redhat.com>
11407
11408 * infttrace.h: New file.
11409 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11410 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11411 (hpread_read_doc_function_type): Detect an initialized type1.
11412 (hpread_quick_traverse): Initialize mod_name_string.
11413 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11414 (som_solib_get_solib_by_pc): Declare.
11415 (so_lib_thread_start_addr): Declare.
11416 (no_shared_libraries): Declare.
11417 * somread.c (init_import_symbols): Make static. Add forward
11418 declaration.
11419 * config/pa/nm-hppah.h: Include "infttrace.h" for
11420 parent_attach_all.
11421 (hppa_insert_hw_watchpoint): Declare.
11422 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11423 * hppah-nat.c: Include "gdb_string.h".
11424 (parent_attach_all): Delete extern declaration, moved to
11425 "infttrace.h".
11426 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11427 int.
11428 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11429 * Makefile.in (infttrace_h): Define.
11430 (hpread.o): Update dependencies.
11431 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11432 * hppa-hpux-tdep.c: Include "gdb_string.h".
11433 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11434 * infrun.c (handle_inferior_event): Always initialize
11435 stepped_after_stopped_by_watchpoint. Add default and remove
11436 fallthrough in switch statement.
11437 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11438 parameter to int.
11439 (hppa_remove_hw_watchpoint): Ditto.
11440
2c3bbe77
AC
114412003-03-29 Andrew Cagney <cagney@redhat.com>
11442
11443 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11444 offset.
11445
2dd604e7
RE
114462003-03-29 Richard Earnshaw <rearnsha@arm.com>
11447
11448 * arm-tdep.c (arm_push_arguments): Delete.
11449 (struct stack_item): New type.
11450 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11451 (arm_store_struct_return): Delte.
11452 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11453 arm_push_arguments or arm_store_struct_return.
11454
e8933a55
AC
114552003-03-28 Andrew Cagney <cagney@redhat.com>
11456
11457 * Makefile.in (d10v-tdep.o): Update dependencies.
11458 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11459 * d10v-tdep.c: Include "remote.h".
11460 (target_resume_hook): Delete extern declaration.
11461 (target_wait_loop_hook): Ditto.
11462 (tdisassemble_command): Eliminate assignment in "if" conditional.
11463 (d10v_ts2_register_sim_regno): Eliminate call to
11464 legacy_register_sim_regno.
11465 (d10v_ts3_register_sim_regno): Ditto.
11466
6949171e
JJ
114672003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11468
11469 * thread.c: Reindented.
11470 * lin-lwp.c: Ditto.
11471 * linux-proc.c: Ditto.
11472
98c7071f
BR
114732003-03-28 Bob Rossi <bob_rossi@cox.net>
11474
fbe586ae 11475 * MAINTAINERS (write after approval): Add myself.
98c7071f 11476
5edc9ca6
TR
114772003-03-27 Theodore A. Roth <troth@openavr.org>
11478
11479 * objc-exp.y: Add missing semi-colons.
11480
378bfd1b
AC
114812003-03-27 Andrew Cagney <cagney@redhat.com>
11482
11483 * regcache.c (write_sp): Delete function and references.
11484 * inferior.h (write_sp): Delete declaration.
11485 * valops.c (hand_function_call): Replace write_sp with
11486 TARGET_WRITE_SP.
11487 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11488 (sparc_pop_frame): Ditto.
8ffd9b1b 11489
56056df7
AC
114902003-03-27 Andrew Cagney <cagney@redhat.com>
11491
11492 * NEWS: Mention removal of support for hppa*-*-bsd* and
11493 hppa*-*-osf* natives, and hppa*-*-pro* target.
11494 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11495 * config/pa/xm-pa.h: Obsolete file.
11496 * config/pa/xm-hppab.h: Obsolete file.
11497 * config/pa/nm-hppab.h: Obsolete file.
11498 * config/pa/tm-hppab.h: Obsolete file.
11499 * config/pa/tm-hppao.h: Obsolete file.
11500 * config/pa/nm-hppao.h: Obsolete file.
11501 * config/pa/tm-pro.h: Obsolete file.
11502 * config/pa/hppaosf.mt: Obsolete file.
11503 * config/pa/hppaosf.mh: Obsolete file.
11504 * config/pa/hppapro.mt: Obsolete file.
11505 * config/pa/hppabsd.mt: Obsolete file.
11506 * config/pa/hppabsd.mh: Obsolete file.
11507 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11508 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11509 hppa*-*-osf*.
11510
5873a88d
AC
115112003-03-27 Andrew Cagney <cagney@redhat.com>
11512
11513 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11514 push_arguments. Don't set push_return_address or write_sp.
11515 (d10v_push_dummy_call): Replace d10v_push_arguments.
11516 (d10v_push_return_address, d10v_write_sp): Delete function,
11517 handled by push_dummy_call.
11518
b81774d8
AC
115192003-03-26 Andrew Cagney <cagney@redhat.com>
11520
11521 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11522 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11523 regcache and dummy_addr parameters.
11524 * gdbarch.h, gdbarch.c: Re-generate.
11525 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11526 available; assume it will handle stack alignment and return
11527 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11528 legacy_push_arguments.
11529 (legacy_push_arguments): Rename default_push_arguments.
11530 * value.h (legacy_push_arguments): Rename default_push_arguments.
11531 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11532 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11533 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11534 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11535 * config/i386/tm-symmetry.h: Update.
11536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11537 * x86-64-tdep.c (x86_64_init_abi): Update.
11538 * v850-tdep.c (v850_gdbarch_init): Update.
11539 * sparc-tdep.c (sparc_gdbarch_init): Update.
11540 * sh-tdep.c (sh_gdbarch_init): Update.
11541 * s390-tdep.c (s390_gdbarch_init): Update.
11542 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11543 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11544 * mips-tdep.c (mips_gdbarch_init): Update.
11545 * mcore-tdep.c (mcore_gdbarch_init): Update.
11546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11547 * ia64-tdep.c (ia64_gdbarch_init): Update.
11548 * i386-tdep.c (i386_gdbarch_init): Update.
11549 * hppa-tdep.c (hppa_gdbarch_init): Update.
11550 * h8300-tdep.c (h8300_gdbarch_init): Update.
11551 * frv-tdep.c (frv_gdbarch_init): Update.
11552 * d10v-tdep.c (d10v_gdbarch_init): Update.
11553 * cris-tdep.c (cris_gdbarch_init): Update.
11554 * avr-tdep.c (avr_gdbarch_init): Update.
11555 * arm-tdep.c (arm_gdbarch_init): Update.
11556 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11557 * alpha-tdep.c (alpha_gdbarch_init): Update.
11558
f541410f
DJ
115592003-03-26 Daniel Jacobowitz <drow@mvista.com>
11560
11561 * signals/signals.c (do_target_signal_to_host): Correct realtime
11562 signal range test.
11563
69f567ae
DJ
115642003-03-26 Daniel Jacobowitz <drow@mvista.com>
11565
11566 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11567 (struct sal_chain, map_catch_names): Remove.
11568 (catch_exception_command_1): Don't call
11569 handle_gnu_4_16_catch_command.
11570
d5d14a5a
DJ
115712003-03-26 Daniel Jacobowitz <drow@mvista.com>
11572
11573 From Mark Dettinger <dettinge@de.ibm.com>:
11574 * dwarf2cfi.c (read_2u): Increment pointer by two.
11575
bdd73e22
DJ
115762003-03-26 Daniel Jacobowitz <drow@mvista.com>
11577
11578 * signals/signals.c: Fix typos in last change.
11579
960cb555
DJ
115802003-03-26 Daniel Jacobowitz <drow@mvista.com>
11581
11582 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11583 not already defined. Use __SIGRTMIN if available.
11584 (target_signal_from_host): Remove SIGRTMIN block.
11585 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11586 the signal is within the realtime range.
11587
f636b87d
AF
115882003-03-25 Adam Fedor <fedor@gnu.org>
11589
11590 * Makefile.in (infrun.o): Add $(language_h)
11591 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11592 for language specific trampolines.
11593 * language.h (struct language_defn): Add skip_trampoline.
11594 (skip_language_trampoline): Declare.
11595 * language.c (unk_lang_trampoline, skip_language_trampoline):
11596 New functions.
11597 (unknown_language_defn, auto_language_defn, local_language_defn):
11598 Add ukn_lang_trampoline.
11599 * ada-lang.c (ada_language_defn): Add NULL for language
11600 specific skip_trampoline.
11601 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11602 scm-lang.c: Likewise.
11603 * objc-lang.c (objc_skip_trampoline): New function.
11604 (objc_language_defn): Add objc_skip_trampoline.
11605
28f617b3 116062003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11607
11608 * frame.c (get_prev_frame): Delay validating a frame's ID -
11609 non-NULL, didn't go backwards - until an attempt to unwind it to
11610 the previous frame.
11611
f933a9c5
AC
116122003-03-25 Andrew Cagney <cagney@redhat.com>
11613
11614 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11615 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11616 * gdbarch.h, gdbarch.c: Re-generate.
11617 * config/sparc/tm-sparc.h
11618 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11619 * sparc-tdep.c (sparc_gdbarch_init): Set
11620 deprecated_extra_stack_alignment_needed.
11621 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11622 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11623 extra_stack_alignment_needed.
11624 * v850-tdep.c (v850_gdbarch_init): Ditto.
11625 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11626 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11627 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11628 * cris-tdep.c (cris_gdbarch_init): Ditto.
11629 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11631
4183d812
AC
116322003-03-25 Andrew Cagney <cagney@redhat.com>
11633
11634 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11635 STORE_STRUCT_RETURN.
11636 * gdbarch.h, gdbarch.c: Regenerate.
11637 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11638 (d10v_push_arguments): Set the struct return register.
11639 (d10v_gdbarch_init): Update.
11640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11641 * x86-64-tdep.c (x86_64_init_abi): Update.
11642 * vax-tdep.c (vax_gdbarch_init): Update.
11643 * v850-tdep.c (v850_gdbarch_init): Update.
11644 * sparc-tdep.c (sparc_gdbarch_init): Update.
11645 * sh-tdep.c (sh_gdbarch_init): Update.
11646 * s390-tdep.c (s390_gdbarch_init): Update.
11647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11648 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11649 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11650 * mips-tdep.c (mips_gdbarch_init): Update.
11651 * mcore-tdep.c (mcore_gdbarch_init): Update.
11652 * m68k-tdep.c (m68k_gdbarch_init): Update.
11653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11654 * ia64-tdep.c (ia64_gdbarch_init): Update.
11655 * i386-tdep.c (i386_gdbarch_init): Update.
11656 * hppa-tdep.c (hppa_gdbarch_init): Update.
11657 * h8300-tdep.c (h8300_gdbarch_init): Update.
11658 * frv-tdep.c (frv_gdbarch_init): Update.
11659 * cris-tdep.c (cris_gdbarch_init): Update.
11660 * avr-tdep.c (avr_gdbarch_init): Update.
11661 * arm-tdep.c (arm_gdbarch_init): Update.
11662 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11663
1bf6d5cc
AC
116642003-03-25 Andrew Cagney <cagney@redhat.com>
11665
11666 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11667 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11668 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11669 * gdbarch.h, gdbarch.c: Regenerate.
11670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11671 call_dummy_stack_adjust_p.
11672 * vax-tdep.c (vax_gdbarch_init): Ditto.
11673 * v850-tdep.c (v850_gdbarch_init): Ditto.
11674 * sh-tdep.c (sh_gdbarch_init): Ditto.
11675 * s390-tdep.c (s390_gdbarch_init): Ditto.
11676 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11677 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11678 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11679 * mips-tdep.c (mips_gdbarch_init): Ditto.
11680 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11681 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11683 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11684 * i386-tdep.c (i386_gdbarch_init): Ditto.
11685 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11686 * frv-tdep.c (frv_gdbarch_init): Ditto.
11687 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11688 * cris-tdep.c (cris_gdbarch_init): Ditto.
11689 * avr-tdep.c (avr_gdbarch_init): Ditto.
11690 * arm-tdep.c (arm_gdbarch_init): Ditto.
11691 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11692 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11693 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11694 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11695 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11696 call_dummy_stack_adjust_p.
11697 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11698 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11699 * sparc-tdep.c (sparc32_push_arguments): Update.
11700 * valops.c (hand_function_call): Update.
11701
71c08af0
CV
117022003-03-25 Corinna Vinschen <vinschen@redhat.com>
11703
11704 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11705 set_gdbarch_char_signed.
11706
30757f90
RE
117072003-03-25 Richard Earnshaw <rearnsha@arm.com>
11708
11709 PR cli/548
11710 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11711
03d48a7d
RE
117122003-03-25 Richard Earnshaw <rearnsha@arm.com>
11713
11714 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11715 (_initialize_arm_tdep): Don't set tm_print_insn.
11716
2cf6873c
AF
117172003-03-24 Adam Fedor <fedor@gnu.org>
11718
11719 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11720 * objc-lang.h: Add multiple inclusion protection.
11721 (start_msglist, add_msglist, end_msglist): Additional declarations.
11722
17c0759e
RE
117232003-03-24 Richard Earnshaw <rearnsha@arm.com>
11724
11725 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11726 value was renamed to ARM_FLOAT_SOFT_FPA.
11727
618ce49f
AC
117282003-03-23 Andrew Cagney <cagney@redhat.com>
11729
11730 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11731 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11732 * gdbarch.h, gdbarch.c: Regenerate.
11733 * valops.c (hand_function_call): Update.
11734 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11735 * frame.c (legacy_saved_regs_this_id): Update.
11736 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11737 * dummy-frame.h: Update.
11738 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11739 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11740 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11741 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11742 * config/m68k/tm-sun3.h: Update.
11743 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11744 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11745 * x86-64-tdep.c (x86_64_init_abi): Update.
11746 * vax-tdep.c (vax_gdbarch_init): Update.
11747 * v850-tdep.c (v850_gdbarch_init): Update.
11748 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11749 * sh-tdep.c (sh_gdbarch_init): Update.
11750 * s390-tdep.c (s390_gdbarch_init): Update.
11751 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11752 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11753 (frame_get_saved_regs): Update.
11754 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11755 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11756 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11757 * mips-tdep.c (mips_gdbarch_init): Update.
11758 * mcore-tdep.c (mcore_gdbarch_init): Update.
11759 * m68k-tdep.c (m68k_gdbarch_init): Update.
11760 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11761 * ia64-tdep.c (ia64_gdbarch_init): Update.
11762 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11763 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11764 (i386_interix_back_one_frame): Update.
11765 * hppa-tdep.c (hppa_gdbarch_init): Update.
11766 (hppa_init_extra_frame_info): Update.
11767 * h8300-tdep.c (h8300_gdbarch_init): Update.
11768 * frv-tdep.c (frv_gdbarch_init): Update.
11769 * cris-tdep.c (cris_gdbarch_init): Update.
11770 * avr-tdep.c (avr_gdbarch_init): Update.
11771 * arm-tdep.c (arm_gdbarch_init): Update.
11772 * alpha-tdep.c (alpha_gdbarch_init): Update.
11773
fd50bc42
RE
117742003-03-22 Richard Earnshaw <rearnsha@arm.com>
11775
11776 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11777 (arm_get_fp_model): Declare.
11778 * arm-tdep.c (fp_model_strings): New string array.
11779 (arm_fp_model, current_fp_model): New variables.
11780 (arm_get_fp_model): New function.
11781 (arm_set_fp): New function.
11782 (set_fp_model_sfunc): New function.
11783 (show_fp_model): New function.
11784 (_initialize_arm_tdep): Add new command to set/show the FPU.
11785 (arm_extract_return_value): Use arm_get_fp_model.
11786 (arm_store_return_value): Likewise.
11787 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11788 to initialize the floating-point data types.
11789 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11790 model is FPA.
11791
26304000
RE
117922003-03-22 Richard Earnshaw <rearnsha@arm.com>
11793
11794 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11795 the current setting of each value.
11796 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11797 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11798 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11799 commands and add new version as subcommands of "set/show arm".
11800
afd7eef0
RE
118012003-03-22 Richard Earnshaw <rearnsha@arm.com>
11802
11803 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11804 (set_arm_command, show_arm_command): New functions.
11805 (_initialize_arm_tdep): Add them.
11806 (num_disassembly_options): Renamed from num_flavor_options.
11807 (valid_disassembly_styles): Renamed from valid_flavors.
11808 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11809 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11810 set_disassembly_flavor_sfunc.
11811 (set_disassembly_style): Renamed from set_disassembly_flavor.
11812 (arm_othernames): Updated.
11813 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11814 command. Add "set/show arm disassembly" commands. Deprecate
11815 "othernames" command.
11816
299a7944
RE
118172003-03-22 Richard Earnshaw <rearnsha@arm.com>
11818
11819 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11820 (arm-tdep.o): Depend on elf_arm_h.
11821
c1dac9e6
RE
118222003-03-22 Richard Earnshaw <rearnsha@arm.com>
11823
11824 * Makefile.in (coff_internal_h): Define.
11825 (arm-tdep.o): Update dependencies.
11826
2702d96c
RE
118272003-03-22 Richard Earnshaw <rearnsha@arm.com>
11828
11829 * arm-tdep.c (prologue_cache): Delete.
11830 (check_prologue_cache, save_prologue_cache): Delete.
11831 (arm_scan_prologue): Don't check or update the prologue_cache.
11832 (arm_gdb_arch_init): Don't initialize it.
11833 (_initialize_arm_tdep): Likewise.
11834
27d5d74b
SC
118352003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11836
11837 * MAINTAINERS (tui): Maintainer of tui code.
11838
1762d96d
CV
118392003-03-21 Corinna Vinschen <vinschen@redhat.com>
11840
11841 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11842 (i386-cygwin-tdep.o): Add dependencies.
11843 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11844 * i386-cygwin-tdep.c: New file.
11845 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11846 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11847
4c2e2391
AC
118482003-03-20 Andrew Cagney <cagney@redhat.com>
11849
f20d38b7
AC
11850 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11851 (handle_inferior_event): Remove code calling
11852 DYNAMIC_TRAMPOLINE_NEXTPC.
11853
0022b738
AC
11854 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11855 already has a full path.
11856
864dbc90
AC
11857 * main.c (gdb_main): Return 1.
11858 (captured_main): Call error to report an invalid interpreter.
11859
4c2e2391
AC
11860 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11861 * alpha-osf1-tdep.c: Include "gdb_string.h".
11862
5ef7553b
JB
118632003-03-19 J. Brobecker <brobecker@gnat.com>
11864
11865 Continuing work to convert the hppa targets to multiarch partial.
11866
11867 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11868 method, now that hppa_push_dummy_frame has a conformant prototype.
11869 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11870 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11871 for the switch to multiarch partial.
11872
7bde8967
KB
118732003-03-19 Kevin Buettner <kevinb@redhat.com>
11874
11875 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11876 when iss is issNull.
11877
b006a9e9
KB
118782003-03-18 Kevin Buettner <kevinb@redhat.com>
11879
11880 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11881 NUM_REGS bounds check.
11882
5e2e9765
KB
118832003-03-18 Kevin Buettner <kevinb@redhat.com>
11884
11885 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11886 * mips-tdep.c (gdb_assert.h): Include.
11887 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11888 (mips_register_name): Handle integer registers explicitly. Add
11889 bounds checking.
11890 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11891 (mips_lsi33k_reg_names): Don't list integer registers; they're
11892 handled by mips_register_name() now.
11893 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11894 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11895 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11896 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11897 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11898
a2867626
AC
118992003-03-18 Andrew Cagney <cagney@redhat.com>
11900
11901 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11902 a void pointer.
11903 * gdbtypes.h (print_scalar_formatted): Update declaration.
11904 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11905
06600e06
JB
119062003-03-18 J. Brobecker <brobecker@gnat.com>
11907
11908 * infrun.c (observer.h): Add #include.
11909 (normal_stop): Add call to observer_notify_normal_stop.
11910 * Makefile.in (infrun.o): Add dependency on observer.h.
11911
7daf4f5b
JB
119122003-03-18 J. Brobecker <brobecker@gnat.com>
11913
11914 Continuing work to convert the hppa targets to multiarch partial.
11915 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11916 parameter. Reformat comment.
11917 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11918 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11919 to match new profile.
11920
3371ccc0
JB
119212003-03-18 J. Brobecker <brobecker@gnat.com>
11922
11923 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11924 appear to be working in any case.
11925
4fbe891e
JB
119262003-03-18 J. Brobecker <brobecker@gnat.com>
11927
11928 * observer.c (observer_test_first_observer): New static variable.
11929 (observer_test_second_observer): Likewise.
11930 (observer_test_third_observer): Likewise.
11931 (observer_test_first_notification_function): New static function.
11932 (observer_test_second_notification_function): Likewise.
11933 (observer_test_third_notification_function): Likewise.
11934
a7ff40e7
JB
119352003-03-17 J. Brobecker <brobecker@gnat.com>
11936
11937 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11938 * somsolib.c (gdb_assert.h): Likewise.
11939 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11940 (somsolib.o): Likewise.
11941
26ca4152
AC
119422003-03-17 Andrew Cagney <cagney@redhat.com>
11943
11944 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11945 BFD. Simplify setting of di.endian.
11946
0a613259
AC
119472003-03-17 Andrew Cagney <cagney@redhat.com>
11948
11949 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11950 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11951
11952 From Elena Zannoni <ezannoni@redhat.com>
11953 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11954 vector and floating-point parameters.
11955 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11956 convention.
11957 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11958
1132738f
FN
119592003-03-17 Fernando Nasser <fnasser@redhat.com>
11960
11961 * MAINTAINERS: Remove my name from several maintainership roles.
11962
6dc42492
AC
119632003-03-17 Andrew Cagney <cagney@redhat.com>
11964
11965 Fix frame off-by-one bug.
11966 * frame-unwind.h (frame_this_id_ftype): Replace
11967 frame_unwind_id_ftype.
11968 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11969 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11970 with "prev_register".
11971 * frame-unwind.c (frame_unwind_find_by_pc): Return
11972 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11973 comment.
11974 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11975 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11976 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11977 (dummy_frame_unwind): Update.
11978 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11979 sentinel_frame_register_unwind.
11980 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11981 (sentinel_frame_unwinder): Update.
11982 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11983 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11984 * frame.c (create_sentinel_frame): Update. Initialize
11985 "prologue_cache" instead of "unwind_cache".
11986 (frame_register_unwind): Call this frame's prev_register with the
11987 next frame and this frame's prologue cache.
11988 (get_prev_frame): Simplify. Always call prev frame's this_id with
11989 this frame and prev frame's prologue cache. Document that this
11990 call is shifted one to the left when compared to the
11991 frame_register_unwind call.
11992 (legacy_saved_regs_prev_register): Replace
11993 frame_saved_regs_register_unwind.
11994 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11995 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11996 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11997 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11998 (d10v_frame_unwind): Update.
11999 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
12000 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
12001 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
12002 "saved_regs" with "this_saved_regs".
12003
efd710d6
AC
120042003-03-16 Andrew Cagney <cagney@redhat.com>
12005
12006 * frame.c (frame_pop): Don't call target_store_registers. Fix
12007 problem reported by Mark Kettenis.
12008
4e259f09
MK
120092003-03-16 Mark Kettenis <kettenis@gnu.org>
12010
12011 * i386-tdep.c (i386_register_type): Renamed from
12012 i386_register_virtual_type. Adjust function signature.
12013 (i386_gdbarch_init): Set register_type instead of
12014 deprecated_max_register_raw_size,
12015 deprecated_max_register_virtual_size and register_virtual_type.
12016
055bb976
AC
120172003-03-14 Andrew Cagney <cagney@redhat.com>
12018
12019 * frame.c (get_prev_frame): When a legacy frame, always call
12020 legacy_get_prev_frame. Simplify unwind code using assumption that
12021 the unwinder is new.
12022 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
12023 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
12024 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12025
ac2adee5
AC
120262003-03-14 Andrew Cagney <cagney@redhat.com>
12027
12028 * frame.c (get_saved_register): Delete function.
12029 * frame.h (get_saved_register): Delete declaration.
12030 * xstormy16-tdep.c: Update comment.
12031 * regcache.h: Update comments.
12032 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
12033 get_saved_register and extract_address, use
12034 frame_read_unsigned_register.
12035 (sparc_frame_saved_pc): Ditto.
12036 (sparc_get_saved_register): Instead of get_saved_register, use
12037 frame_register.
12038 (sparc_pop_frame): Ditto.
12039 * findvar.c: Update comments.
12040 (value_of_register): Call frame_register instead of
12041 get_saved_register.
12042 (value_from_register): Ditto.
12043 * config/sparc/tm-sparc.h: Update comment.
12044 * breakpoint.c: Update comment.
12045
129c1cd6
AC
120462003-03-14 Andrew Cagney <cagney@redhat.com>
12047
12048 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
12049 GET_SAVED_REGISTER.
12050 * gdbarch.h, gdbarch.c: Re-generate.
12051 * frame.h: Update comments.
12052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12053 * x86-64-tdep.c (x86_64_init_abi): Update.
12054 * sparc-tdep.c (sparc_gdbarch_init): Update.
12055 * sh-tdep.c (sh_gdbarch_init): Update.
12056 * mips-tdep.c (mips_gdbarch_init): Update.
12057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12058 * cris-tdep.c (cris_gdbarch_init): Update.
12059 * ia64-tdep.c (ia64_gdbarch_init): Update.
12060 * frame.c (frame_register): Update.
12061 (get_saved_register): Update.
12062 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 12063
749b82f6
AC
120642003-03-13 Andrew Cagney <cagney@redhat.com>
12065
12066 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12067 * gdbarch.h, gdbarch.c: Regenerate.
12068 * valops.c (hand_function_call): Update comment.
12069 * stack.c (return_command): Update comment.
12070 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12071 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12073 * x86-64-tdep.c (x86_64_init_abi): Update.
12074 * vax-tdep.c (vax_gdbarch_init): Update.
12075 * v850-tdep.c (v850_gdbarch_init): Update.
12076 * sparc-tdep.c (sparc_gdbarch_init): Update.
12077 * sh-tdep.c (sh_gdbarch_init): Update.
12078 * s390-tdep.c (s390_gdbarch_init): Update.
12079 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12080 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12081 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12082 * mips-tdep.c (mips_gdbarch_init): Update.
12083 * mcore-tdep.c (mcore_gdbarch_init): Update.
12084 * m68k-tdep.c (m68k_gdbarch_init): Update.
12085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12086 * ia64-tdep.c (ia64_gdbarch_init): Update.
12087 * i386-tdep.c (i386_gdbarch_init): Update.
12088 * hppa-tdep.c (hppa_gdbarch_init): Update.
12089 * h8300-tdep.c (h8300_gdbarch_init): Update.
12090 * frv-tdep.c (frv_gdbarch_init): Update.
12091 * cris-tdep.c (cris_gdbarch_init): Update.
12092 * avr-tdep.c (avr_gdbarch_init): Update.
12093 * arm-tdep.c (arm_gdbarch_init): Update.
12094 * alpha-tdep.c (alpha_gdbarch_init): Update.
12095
1594fa56
AC
120962003-03-13 Andrew Cagney <cagney@redhat.com>
12097
12098 * frame.c (legacy_frame_p): New function.
12099 (get_prev_frame): Use legacy_frame_p.
12100 * frame.h (legacy_frame_p): Declare.
12101
7717fda3
V
121022003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12103
fbe586ae 12104 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
12105 listing corrected.
12106
0c67cbe9
V
121072003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12108
fbe586ae 12109 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 12110
03febf99
AC
121112003-03-12 Andrew Cagney <cagney@redhat.com>
12112
12113 * frame.c (get_prev_frame): Rename the frame parameter to
12114 "this_frame".
12115 (get_next_frame, legacy_get_prev_frame): Ditto.
12116
0a1e1ca1
AC
121172003-03-12 Andrew Cagney <cagney@redhat.com>
12118
12119 * frame.c (get_current_frame): Check target_has_registers before
12120 checking target_has_stack.
12121 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12122 instead of deprecated_selected_frame.
12123 * findvar.c (value_of_register): Pass "frame", not
12124 deprecated_selected_frame, to value_of_builtin_reg.
12125
a66a9c23
AC
121262003-03-12 Andrew Cagney <cagney@redhat.com>
12127
12128 * regcache.c (regcache_cooked_write_signed): New function.
12129 (regcache_cooked_write_unsigned): New function.
12130 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12131 (regcache_cooked_read_signed): Fix regnum in range assertion.
12132 * regcache.h (regcache_cooked_write_signed): Declare.
12133 (regcache_cooked_write_unsigned): Declare.
12134
8bedc050
AC
121352003-03-12 Andrew Cagney <cagney@redhat.com>
12136
12137 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12138 * gdbarch.h, gdbarch.c: Re-generate.
12139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12140 * x86-64-tdep.h: Update.
12141 * x86-64-tdep.c (x86_64_init_abi): Update.
12142 * v850-tdep.c (v850_gdbarch_init): Update.
12143 * sparc-tdep.c (sparc_gdbarch_init): Update.
12144 * sh-tdep.c (sh_gdbarch_init): Update.
12145 * s390-tdep.c (s390_gdbarch_init): Update.
12146 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12147 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12148 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12149 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12150 * mips-tdep.c (mips_gdbarch_init): Update.
12151 * mcore-tdep.c (mcore_gdbarch_init): Update.
12152 * m68k-tdep.c (m68k_gdbarch_init): Update.
12153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12154 * ia64-tdep.c (ia64_gdbarch_init): Update.
12155 * i386-tdep.c (i386_gdbarch_init): Update.
12156 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12157 * hppa-tdep.c (hppa_gdbarch_init): Update.
12158 * h8300-tdep.c (h8300_gdbarch_init): Update.
12159 * frv-tdep.c (frv_gdbarch_init): Update.
12160 * cris-tdep.c (cris_gdbarch_init): Update.
12161 * avr-tdep.c (avr_gdbarch_init): Update.
12162 * arm-tdep.c (arm_gdbarch_init): Update.
12163 * alpha-tdep.c (alpha_gdbarch_init): Update.
12164 * sh-tdep.c (sh_init_extra_frame_info): Update.
12165 (sh64_init_extra_frame_info): Update.
12166 * ns32knbsd-nat.c (frame_num_args): Update.
12167 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12168 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12169 (xstormy16_frame_chain_valid): Update.
12170 * vax-tdep.c (vax_saved_pc_after_call): Update.
12171 * v850-tdep.c (v850_frame_chain): Update.
12172 (v850_pop_frame): Update.
12173 (v850_init_extra_frame_info): Update.
12174 * sparc-tdep.c (setup_arbitrary_frame): Update.
12175 * ns32k-tdep.c (umax_frame_num_args): Update.
12176 * s390-tdep.c (s390_pop_frame_regular): Update.
12177 * mn10300-tdep.c (mn10300_frame_chain): Update.
12178 (mn10300_pop_frame_regular): Update.
12179 (mn10300_init_extra_frame_info): Update.
12180 * mips-tdep.c (mips_init_frame_pc_first): Update.
12181 (mips_frame_chain): Update.
12182 (mips_pop_frame): Update.
12183 * mcore-tdep.c (mcore_frame_chain): Update.
12184 (mcore_pop_frame): Update.
12185 (mcore_init_extra_frame_info): Update.
12186 * arch-utils.c (init_frame_pc_default): Update.
12187 * m68k-tdep.c (isi_frame_num_args): Update.
12188 (delta68_frame_num_args): Update.
12189 (news_frame_num_args): Update.
12190 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12191 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12192 (alpha_frame_chain): Update.
12193 (alpha_pop_frame): Update.
12194 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12195 (hppa_init_extra_frame_info): Update.
12196 (hppa_frame_chain): Update.
12197 (hppa_frame_chain_valid): Update.
12198 * cris-tdep.c (cris_init_extra_frame_info): Update.
12199 * avr-tdep.c (avr_init_extra_frame_info): Update.
12200 * arm-tdep.c (arm_frame_chain_valid): Update.
12201 (arm_init_extra_frame_info): Update.
12202 (arm_pop_frame): Update.
12203 * frame.c (frame_pc_unwind): Update.
12204 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12205 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12206 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12207 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12208 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12209 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12210
7a25a7c1
AC
122112003-03-12 Andrew Cagney <cagney@redhat.com>
12212
12213 Eliminate the need for POP_FRAME.
12214 * frame.c (do_frame_unwind_register): New function.
12215 (frame_pop): When no POP_FRAME, pop the frame using register
12216 unwind and a scratch regcache.
12217 (frame_saved_regs_pop): Delete function.
12218 (trad_frame_unwinder): Update.
12219 * d10v-tdep.c (d10v_frame_pop): Delete function.
12220 (d10v_frame_unwind): Update.
12221 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12222 (sentinel_frame_unwinder): Update.
12223 * dummy-frame.c (dummy_frame_pop): Delete function.
12224 (dummy_frame_unwind): Update.
12225 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12226 (struct frame_unwind): Update.
12227
2f38ef89
KB
122282003-03-11 Kevin Buettner <kevinb@redhat.com>
12229
12230 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12231 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12232 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12233 Do range checks on register number obtained from debugging info.
12234 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12235 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12236 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12237 mapping function.
12238 (do_fp_register_row): Fix typo which caused double type to be
12239 used when attempting to unpack a float.
12240
552f4abf
JB
122412003-03-11 J. Brobecker <brobecker@gnat.com>
12242
12243 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12244
e0d2ae16
AC
122452003-03-11 Andrew Cagney <cagney@redhat.com>
12246
12247 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12248 frame. Problem found by Corinna Vinschen.
12249
ddbfdd06
PM
122502003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12251
12252 * doublest.c (floatformat_from_length): Accept also
12253 the real size of 'long double' type.
12254
088b2ddc 122552003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 12256
088b2ddc 12257 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
12258 * breakpoint.c (bpstat_copy): Copy the command lines as well
12259 as the old value, to match what is freed in bpstat_clear.
12260
f56f77c1
DC
122612003-03-10 David Carlton <carlton@math.stanford.edu>
12262
12263 * minsyms.c (add_minsym_to_hash_table): Replace
12264 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12265 (compare_minimal_symbols, compact_minimal_symbols)
12266 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12267 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12268 of DEPRECATED_SYMBOL_MATCHES_NAME.
12269 (lookup_minimal_symbol_solib_trampoline): Ditto.
12270
5602984a
AC
122712003-03-10 Andrew Cagney <cagney@redhat.com>
12272
12273 * regcache.h (regcache_cooked_read_ftype): Define.
12274 (regcache_save, regcache_restore): Add a cooked_read parameter.
12275 * regcache.c (regcache_save, regcache_restore): Update.
12276 (do_cooked_read): New function.
12277 (regcache_cpy): Pass do_cooked_read to regcache_save and
12278 regcache_restore.
12279
8bedc050
AC
122802003-03-10 Andrew Cagney <cagney@redhat.com>
12281
12282 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12283 * gdbarch.h, gdbarch.c: Re-generate.
12284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12285 * x86-64-tdep.h: Update.
12286 * x86-64-tdep.c (x86_64_init_abi): Update.
12287 * v850-tdep.c (v850_gdbarch_init): Update.
12288 * sparc-tdep.c (sparc_gdbarch_init): Update.
12289 * sh-tdep.c (sh_gdbarch_init): Update.
12290 * s390-tdep.c (s390_gdbarch_init): Update.
12291 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12292 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12293 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12294 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12295 * mips-tdep.c (mips_gdbarch_init): Update.
12296 * mcore-tdep.c (mcore_gdbarch_init): Update.
12297 * m68k-tdep.c (m68k_gdbarch_init): Update.
12298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12299 * ia64-tdep.c (ia64_gdbarch_init): Update.
12300 * i386-tdep.c (i386_gdbarch_init): Update.
12301 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12302 * hppa-tdep.c (hppa_gdbarch_init): Update.
12303 * h8300-tdep.c (h8300_gdbarch_init): Update.
12304 * frv-tdep.c (frv_gdbarch_init): Update.
12305 * cris-tdep.c (cris_gdbarch_init): Update.
12306 * avr-tdep.c (avr_gdbarch_init): Update.
12307 * arm-tdep.c (arm_gdbarch_init): Update.
12308 * alpha-tdep.c (alpha_gdbarch_init): Update.
12309 * sh-tdep.c (sh_init_extra_frame_info): Update.
12310 (sh64_init_extra_frame_info): Update.
12311 * ns32knbsd-nat.c (frame_num_args): Update.
12312 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12313 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12314 (xstormy16_frame_chain_valid): Update.
12315 * vax-tdep.c (vax_saved_pc_after_call): Update.
12316 * v850-tdep.c (v850_frame_chain): Update.
12317 (v850_pop_frame): Update.
12318 (v850_init_extra_frame_info): Update.
12319 * sparc-tdep.c (setup_arbitrary_frame): Update.
12320 * ns32k-tdep.c (umax_frame_num_args): Update.
12321 * s390-tdep.c (s390_pop_frame_regular): Update.
12322 * mn10300-tdep.c (mn10300_frame_chain): Update.
12323 (mn10300_pop_frame_regular): Update.
12324 (mn10300_init_extra_frame_info): Update.
12325 * mips-tdep.c (mips_init_frame_pc_first): Update.
12326 (mips_frame_chain): Update.
12327 (mips_pop_frame): Update.
12328 * mcore-tdep.c (mcore_frame_chain): Update.
12329 (mcore_pop_frame): Update.
12330 (mcore_init_extra_frame_info): Update.
12331 * arch-utils.c (init_frame_pc_default): Update.
12332 * m68k-tdep.c (isi_frame_num_args): Update.
12333 (delta68_frame_num_args): Update.
12334 (news_frame_num_args): Update.
12335 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12336 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12337 (alpha_frame_chain): Update.
12338 (alpha_pop_frame): Update.
12339 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12340 (hppa_init_extra_frame_info): Update.
12341 (hppa_frame_chain): Update.
12342 (hppa_frame_chain_valid): Update.
12343 * cris-tdep.c (cris_init_extra_frame_info): Update.
12344 * avr-tdep.c (avr_init_extra_frame_info): Update.
12345 * arm-tdep.c (arm_frame_chain_valid): Update.
12346 (arm_init_extra_frame_info): Update.
12347 (arm_pop_frame): Update.
12348 * frame.c (frame_pc_unwind): Update.
12349 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12350 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12351 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12352 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12353 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12354 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12355
12cc2063
AC
123562003-03-10 Andrew Cagney <cagney@redhat.com>
12357
12358 * gdbarch.sh (gdbarch_unwind_pc): New method.
12359 * gdbarch.h, gdbarch.c: Regenerate.
12360 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12361 but use read_pc and FRAME_SAVED_PC as fall backs.
12362 (frame_saved_regs_pc_unwind): Delete function.
12363 (trad_frame_unwinder): Update.
12364 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12365 (struct frame_unwind): Update.
12366 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12367 (dummy_frame_unwind): Update.
12368 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12369 (sentinel_frame_unwinder): Update.
12370 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12371 (d10v_frame_unwind): Update.
12372 (d10v_unwind_pc): New function.
12373 (d10v_gdbarch_init): Set unwind_pc.
12374
ef840a37
AC
123752003-03-10 Andrew Cagney <cagney@redhat.com>
12376
a2ce2e56
AC
12377 * gdbarch.h: Re-generate.
12378
ef840a37
AC
12379 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12380 PC.
12381 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12382 the PC register.
12383
08f3424b
MK
123842003-03-08 Mark Kettenis <kettenis@gnu.org>
12385
12386 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12387
1248ede2
AC
123882003-03-08 Andrew Cagney <cagney@redhat.com>
12389
12390 * cli-out.c: Update copyright.
12391 (cli_out_data): Define typedef. Use instead of ui_out_data.
12392
f49bacc8
AC
123932003-03-08 Andrew Cagney <cagney@redhat.com>
12394
12395 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12396 the result.
12397
9b05f993
AC
123982003-03-07 Andrew Cagney <cagney@redhat.com>
12399
12400 * gdbarch.sh: Don't generate two macro definitions when an
12401 undefined macro taking no arguments.
12402 * gdbarch.h: Regenerate.
8ffd9b1b 12403
166f4c7b
ML
124042002-03-07 Michal Ludvig <mludvig@suse.cz>
12405
12406 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12407 (x86_64_unwind_dummy_id): New functions.
12408 (x86_64_init_abi): Register these two new functions.
12409
6d686a84
ML
124102003-03-07 Michal Ludvig <mludvig@suse.cz>
12411
12412 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12413 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12414 separate function.
12415 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12416
6314f104
AC
124172003-03-05 Andrew Cagney <cagney@redhat.com>
12418
12419 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12420 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12421 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12422 to use unwind_dummy_id when a dummy frame.
12423 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12424 predicate.
12425 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12426
ceea5145
AC
124272003-03-05 Andrew Cagney <cagney@redhat.com>
12428
12429 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12430 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12431 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12432 values.
12433
0d843116
AC
124342003-03-05 Andrew Cagney <cagney@redhat.com>
12435
12436 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12437 (struct d10v_unwind_cache): Delete field "frameless". Replace
12438 "next_addr" with "sp_offset". Add "r11_offset".
12439 (d10v_frame_unwind_cache): Update.
12440 (prologue_find_regs): Update. When "mv r11, sp", save the
12441 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12442 RN was saved in r11_offset.
12443
b2579786
AC
124442003-03-05 Andrew Cagney <cagney@redhat.com>
12445
12446 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12447 cached PC value in the next frame.
12448
218e5956
AC
124492003-03-05 Andrew Cagney <cagney@redhat.com>
12450
12451 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12452 "id_unwind_cache" with "id".
12453 (frame_id_unwind): Delete declaration.
12454 * frame.c (frame_id_unwind): Delete function.
12455 (get_prev_frame): Call the frame id unwind method directly. Store
12456 the returned next frame's ID value in NEXT_FRAME. Note that there
12457 is a problem with the wrong unwind ID being called with the wrong
12458 unwind cache.
12459
ed363b1b
DJ
124602003-03-05 Daniel Jacobowitz <drow@mvista.com>
12461
12462 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12463
fe1f4a5e
DJ
124642003-03-05 James Ingham <jingham@apple.com>
12465 Daniel Jacobowitz <drow@mvista.com>
12466
12467 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12468 (auto_cp_abi): New variable.
12469 (current_cp_abi, num_cp_abis): Make static.
12470 (CP_ABI_MAX): Define.
12471 (cp_abis): Turn into an array.
12472 (value_virtual_fn_field): Fix formatting.
12473 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12474 takes a pointer.
12475 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12476 (list_cp_abis, _initialize_cp_abi): New functions.
12477 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12478 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12479 switch_to_cp_abi. Update prototype for register_cp_abi.
12480 * Makefile.in (cp-abi.o): Update dependencies.
12481 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12482 instead of switch_to_cp_abi.
12483 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12484 register_cp_abi.
12485 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12486 register_cp_abi.
12487 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12488
e4adbba9
DJ
124892003-03-05 Daniel Jacobowitz <drow@mvista.com>
12490
12491 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12492 * dwarf2loc.c: Include "regcache.h".
12493 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12494 register_size.
12495 * Makefile.in (dwarf2loc.o): Update dependencies.
12496
91ccbfc1
TR
124972003-03-04 Theodore A. Roth <troth@openavr.org>
12498
12499 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12500 number of io registers reported by remote target is not a multiple of
12501 step.
12502
3d4e8fd2
DC
125032003-03-04 David Carlton <carlton@math.stanford.edu>
12504
12505 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12506 (lookup_symbol_aux_psymtabs): Update call to
12507 lookup_partial_symbol.
12508 (lookup_transparent_type, find_main_psymtab)
12509 (make_symbol_overload_list): Ditto.
12510
ed42d87b
KH
125112003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12512
12513 * MAINTAINERS (Write after approval): Update my email address.
12514
a0ed5532
AC
125152003-03-03 Andrew Cagney <cagney@redhat.com>
12516
12517 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12518 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12519 predicate. Replace MAX_REGISTER_RAW_SIZE.
12520 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12521 MAX_REGISTER_VIRTUAL_SIZE.
12522 * regcache.c (legacy_max_register_raw_size): New function.
12523 (legacy_max_register_virtual_size): New function.
12524 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12525 (MAX_REGISTER_RAW_SIZE): Define.
12526 (legacy_max_register_raw_size): Declare.
12527 (legacy_max_register_virtual_size): Declare.
12528 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12529 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12530 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12531 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12532 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12533 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12534 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12535 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12536 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12538 * vax-tdep.c (vax_gdbarch_init): Update.
12539 * v850-tdep.c (v850_gdbarch_init): Update.
12540 * sparc-tdep.c (sparc_gdbarch_init): Update.
12541 * sh-tdep.c (sh_gdbarch_init): Update.
12542 * s390-tdep.c (s390_gdbarch_init): Update.
12543 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12544 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12545 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12546 * mips-tdep.c (mips_gdbarch_init): Update.
12547 * mcore-tdep.c (mcore_gdbarch_init): Update.
12548 * m68k-tdep.c (m68k_gdbarch_init): Update.
12549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12550 * ia64-tdep.c (ia64_gdbarch_init): Update.
12551 * i386-tdep.c (i386_gdbarch_init): Update.
12552 * hppa-tdep.c (hppa_gdbarch_init): Update.
12553 * h8300-tdep.c (h8300_gdbarch_init): Update.
12554 * frv-tdep.c (frv_gdbarch_init): Update.
12555 * cris-tdep.c (cris_gdbarch_init): Update.
12556 * avr-tdep.c (avr_gdbarch_init): Update.
12557 * arm-tdep.c (arm_gdbarch_init): Update.
12558 * alpha-tdep.c (alpha_gdbarch_init): Update.
12559 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12560 max_register_raw_size or max_register_virtual_size.
12561
8e437497
DC
125622003-03-03 David Carlton <carlton@math.stanford.edu>
12563
12564 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12565 SYMBOL_MATCHES_NAME, add comment.
12566 (SYMBOL_MATCHES_NATURAL_NAME): New.
12567 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12568 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12569 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12570 * symtab.c (lookup_partial_symbol): Use
12571 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12572 unhelpful comment.
12573 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12574 SYMBOL_MATCHES_NAME.
12575 Fix for PR c++/33.
12576
25120b0d
DC
125772003-03-03 David Carlton <carlton@math.stanford.edu>
12578
12579 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12580 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12581 by regexp matching against SYMBOL_NATURAL_NAME.
12582
78a11fb4
DC
125832003-03-03 David Carlton <carlton@math.stanford.edu>
12584
12585 * linespec.c (find_method): Extract code into collect_methods.
12586 (collect_methods): New.
12587
645dd519
MK
125882003-03-02 Mark Kettenis <kettenis@gnu.org>
12589
b4700d91
MK
12590 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12591 get_frame_base.
12592
645dd519
MK
12593 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12594 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12595
0aa7e1aa
SC
125962003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12597
8ffd9b1b 12598 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12599 and not regnum when summing the size of all registers up to regnum.
12600
f30ee0bc
AC
126012003-03-01 Andrew Cagney <cagney@redhat.com>
12602
12603 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12604 FRAME_INIT_SAVED_REGS.
12605 * gdbarch.h, gdbarch.c: Regenerate.
12606 * stack.c (frame_info): Update.
12607 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12608 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12609 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12610 * ns32k-tdep.c (ns32k_pop_frame): Update.
12611 * mips-tdep.c (mips_pop_frame): Update.
12612 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12613 * ia64-tdep.c (ia64_frame_chain): Update.
12614 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12615 (ia64_frameless_function_invocation): Update.
12616 (ia64_init_extra_frame_info): Update.
12617 (ia64_pop_frame_regular): Update.
12618 * frame.h (struct frame_info): Update comment.
12619 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12620 * frame.c (frame_saved_regs_register_unwind): Update.
12621 (frame_saved_regs_register_unwind): Update.
12622 (deprecated_generic_get_saved_register): Update.
12623 * cris-tdep.c: Update comment.
12624 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12625 Rename macro.
12626 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12627 * x86-64-tdep.c (x86_64_init_abi): Update.
12628 * vax-tdep.c (vax_gdbarch_init): Update.
12629 * v850-tdep.c (v850_gdbarch_init): Update.
12630 * sparc-tdep.c (sparc_gdbarch_init): Update.
12631 * sh-tdep.c (sh_gdbarch_init): Update.
12632 * s390-tdep.c (s390_gdbarch_init): Update.
12633 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12634 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12635 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12636 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12637 * mips-tdep.c (mips_gdbarch_init): Update.
12638 * mcore-tdep.c (mcore_gdbarch_init): Update.
12639 * m68k-tdep.c (m68k_gdbarch_init): Update.
12640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12641 * ia64-tdep.c (ia64_gdbarch_init): Update.
12642 * i386-tdep.c (i386_gdbarch_init): Update.
12643 * frv-tdep.c (frv_gdbarch_init): Update.
12644 * avr-tdep.c (avr_gdbarch_init): Update.
12645 * arm-tdep.c (arm_gdbarch_init): Update.
12646 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12647
42fa7c0f
AC
126482003-03-01 Andrew Cagney <cagney@redhat.com>
12649
12650 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12651 option enum and switch. When no windows, set the interpreter to
12652 INTERP_CONSOLE.
8ffd9b1b 12653
49c7e338
AC
126542003-03-01 Andrew Cagney <cagney@redhat.com>
12655
12656 * main.c (captured_main): Replace magic option characters with an
12657 enum.
12658
e9582e71
AC
126592003-03-01 Andrew Cagney <cagney@redhat.com>
12660
12661 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12662 INIT_EXTRA_FRAME_INFO.
12663 * gdbarch.h, gdbarch.c: Regenerate.
12664 * arm-tdep.c: Update comments.
12665 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12666 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12667 * frame.h, avr-tdep.c: Ditto.
12668 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12669 (create_new_frame, legacy_get_prev_frame): Ditto.
12670 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12671 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12672 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12673 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12674 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12675 * v850-tdep.c (v850_gdbarch_init): Ditto.
12676 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12677 * sh-tdep.c (sh_gdbarch_init): Ditto.
12678 * s390-tdep.c (s390_gdbarch_init): Ditto.
12679 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12680 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12681 * mips-tdep.c (mips_gdbarch_init): Ditto.
12682 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12684 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12685 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12686 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12687 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12688 * frv-tdep.c (frv_gdbarch_init): Ditto.
12689 * cris-tdep.c (cris_gdbarch_init): Ditto.
12690 * avr-tdep.c (avr_gdbarch_init): Ditto.
12691 * arm-tdep.c (arm_gdbarch_init): Ditto.
12692 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12693 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12694
35cac7cf
AC
126952003-03-01 Andrew Cagney <cagney@redhat.com>
12696
12697 * gdbarch.sh (register_type): New function with predicate.
12698 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12699 * gdbarch.h, gdbarch.c: Re-generate.
12700 * arch-utils.c (generic_register_byte): Use generic_register_size.
12701 (generic_register_size): When available, use
12702 gdbarch_register_type.
12703 * regcache.c (init_regcache_descr): When available, initialize the
12704 register type array using gdbarch_register_type. If the
12705 architecture supplies gdbarch_register_type, do not use the legacy
12706 regcache layout.
12707 * d10v-tdep.c (d10v_register_type): Replace
12708 d10v_register_virtual_type.
12709 (d10v_gdbarch_init): Set register_type instead of
12710 register_virtual_type.
12711
7b83296f
AC
127122003-03-01 Andrew Cagney <cagney@redhat.com>
12713
12714 * Makefile.in (ax-gdb.o): Update dependencies.
12715 * ax-gdb.c: Include "regcache.h".
12716 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12717 * findvar.c (value_of_register): Ditto.
12718 * infcmd.c (default_print_registers_info): Ditto.
12719
eadc1c87
MK
127202003-03-01 Mark Kettenis <kettenis@gnu.org>
12721
12722 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12723 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12724
14143612
MK
127252003-03-01 Mark Kettenis <kettenis@gnu.org>
12726
12727 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12728 of STREQ.
12729
a55cc764
DJ
127302003-02-28 Daniel Jacobowitz <drow@mvista.com>
12731
12732 * Makefile.in (dwarf2loc.o): Update dependencies.
12733 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12734 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12735 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12736 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12737 (locexpr_tracepoint_var_ref): New function.
12738 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12739
08a617da
AC
127402003-02-28 Andrew Cagney <cagney@redhat.com>
12741
12742 * regcache.c (register_size): New function.
12743 * regcache.h (register_size): Declare
12744 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12745 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12746
4224873a
DC
127472003-02-28 David Carlton <carlton@math.stanford.edu>
12748
12749 * linespec.c (decode_compound): Extract code into find_method.
12750 (find_method): New.
12751
ccdc5d7f
JB
127522003-02-28 J. Brobecker <brobecker@gnat.com>
12753
12754 * Makefile.in: Add rules to build and link in observer.o.
12755
974e8ced
JB
127562003-02-27 J. Brobecker <brobecker@gnat.com>
12757
12758 * observer.c: Minor comments edits.
12759
7a28f973
JB
127602003-02-27 J. Brobecker <brobecker@gnat.com>
12761
12762 * observer.h, observer.c: New file.
12763
27cddce2
AC
127642003-02-27 Andrew Cagney <cagney@redhat.com>
12765
12766 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12767
b94a41a1
SC
127682003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12769
12770 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12771 (M6812_OP_STS_EXT): Likewise.
12772 (m6811_prologue): Use the above to recognize prologue.
12773 (m6812_prologue): Likewise.
12774
c8be8951
DC
127752003-02-27 David Carlton <carlton@math.stanford.edu>
12776
12777 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12778 SYMBOL_PRINT_NAME.
12779 (compare_psymbols): Ditto.
12780 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12781
d05bb1fc
MS
127822003-02-27 Michael Snyder <msnyder@redhat.com>
12783
4e845cd3
MS
12784 * f-lang.c (build_fortran_types): New function.
12785 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12786 * doublest.c (extract_floating): Fix warning text.
12787
f3824013
AC
127882003-02-27 Andrew Cagney <cagney@redhat.com>
12789
12790 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12791 predicate. Replaces PUSH_DUMMY_FRAME.
12792 * gdbarch.h, gdbarch.c: Regnerate.
12793 * valops.c (hand_function_call): Update. Call
12794 generic_push_dummy_frame directly.
12795 * vax-tdep.c (vax_gdbarch_init): Update.
12796 * sparc-tdep.c (sparc_gdbarch_init): Update.
12797 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12798 * m68k-tdep.c (m68k_gdbarch_init): Update.
12799 * hppa-tdep.c (hppa_gdbarch_init): Update.
12800 * alpha-tdep.c (alpha_gdbarch_init): Update.
12801 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12802 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12803 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12805 push_dummy_frame to generic_push_dummy_frame.
12806 * v850-tdep.c (v850_gdbarch_init): Ditto.
12807 * sh-tdep.c (sh_gdbarch_init): Ditto.
12808 * s390-tdep.c (s390_gdbarch_init): Ditto.
12809 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12810 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12811 * mips-tdep.c (mips_gdbarch_init): Ditto.
12812 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12814 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12815 * i386-tdep.c (i386_gdbarch_init): Ditto.
12816 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12817 * frv-tdep.c (frv_gdbarch_init): Ditto.
12818 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12819 * cris-tdep.c (cris_gdbarch_init): Ditto.
12820 * avr-tdep.c (avr_gdbarch_init): Ditto.
12821 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12822
ad188201
KB
128232003-02-26 Kevin Buettner <kevinb@redhat.com>
12824
12825 * mips-tdep.c (show_mips_abi): New function.
12826 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12827 command ``show mips abi''.
12828
6b37567a 128292003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12830
6b37567a 12831 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12832 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12833 more sline entries have been seen for the function.
12834
d3e0a5bf
MC
128352003-02-26 Michael Chastain <mec@shout.net>
12836
12837 * configure: Regenerate with autoconf 000227.
12838
18972eea
MC
128392003-02-26 Michael Chastain <mec@shout.net>
12840
12841 Close PR build/660.
12842 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12843 for old libc5/glibc.
12844 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12845
0bbde931
KW
128462003-02-26 Kris Warkentin <kewarken@qnx.com>
12847
12848 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12849 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12850
27ca5dad
MC
128512003-02-26 Michael Chastain <mec@shout.net>
12852
12853 * configure.in: New variable HAVE_UINTPTR_T.
12854 * configure, config.in: Regenerated.
12855
6f88d630
DJ
128562003-02-26 Daniel Jacobowitz <drow@mvista.com>
12857
12858 Fix PR build/1097.
12859 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12860
b14185ce
AC
128612003-02-25 Andrew Cagney <cagney@redhat.com>
12862
12863 * frame.c (get_prev_frame): Add comment on check for
12864 inside_entry_func. Only check for inside_entry_file when not a
12865 dummy and not a sentinel. Check that the new frame is not inner
12866 to the old frame.
12867
ac2bd0a9
AC
128682003-02-25 Andrew Cagney <cagney@redhat.com>
12869
12870 * frame.c (frame_debug): New variable.
12871 (_initialize_frame): Add "set/show debug frame" command.
12872 (get_prev_frame): When frame_debug, print reason why unwind
12873 failed.
12874
b18a0fd2
MC
128752003-02-25 Michael Chastain <mec@shout.net>
12876
12877 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12878 to avoid uintptr_t definition problems.
12879
22abf04a
DC
128802003-02-25 David Carlton <carlton@math.stanford.edu>
12881
12882 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12883 (SYMBOL_LINKAGE_NAME): Ditto.
12884 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12885 SYMBOL_LINKAGE_NAME.
12886 (struct general_symbol_info): Expand comment.
12887 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12888 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12889 (SYMBOL_MATCHES_REGEXP): Ditto.
12890 * symtab.c (symbol_natural_name): New function.
12891 * objfiles.h: Replace all uses of SYMBOL_NAME by
12892 DEPRECATED_SYMBOL_NAME.
12893 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12894 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12895 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12896 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12897 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12898 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12899 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12900 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12901 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12902 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12903 * ada-exp.y: Ditto.
12904 * ada-exp.y: Update copyright.
12905 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12906 * cp-valprint.c: Ditto.
12907
1a5848f6
JJ
129082003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12909
12910 * infptrace.c (detach): Do not flag error if ptrace detach fails
12911 and errno is set to ESRCH.
12912
7343d46a
AC
129132003-02-24 Andrew Cagney <cagney@redhat.com>
12914
12915 * infptrace.c (udot_info): Change type of udot_off to long. Use
12916 paddr when printing udot_off's value.
12917
49fa1dc2
DC
129182003-02-24 David Carlton <carlton@math.stanford.edu>
12919
12920 * symtab.c (make_symbol_overload_list): Only read in partial
12921 symtabs containing a matching partial symbol.
12922
0fe19209
DC
129232003-02-24 David Carlton <carlton@math.stanford.edu>
12924
12925 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12926 do the comparison, not strcmp.
12927 * symfile.c (compare_psymbols): Ditto.
12928 * defs.h: Declare strcmp_iw_ordered.
12929 * utils.c (strcmp_iw_ordered): New function.
12930
8e3ee7b5
JB
129312003-02-24 Jim Blandy <jimb@redhat.com>
12932
12933 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12934 support, shared libs): Remove my name from here, to better reflect
12935 reality.
12936
7df1a324
KW
129372003-02-24 Kris Warkentin <kewarken@qnx.com>
12938
12939 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12940 (target_ops): Add to_have_continuable_watchpoint.
12941 * target.c (update_current_target): Add INHERIT line for
12942 to_have_continuable_watchpoint.
12943 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12944 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12945 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12946 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12947
d1c76907
EZ
129482003-02-24 Elena Zannoni <ezannoni@redhat.com>
12949
12950 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12951 maintainership.
12952
2610b0bf
KW
129532003-02-24 Kris Warkentin <kewarken@qnx.com>
12954
f46169db
KW
12955 * solib.c (solib_open): Call target defined search function after
12956 failing with solib-search-path.
12957 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12958 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12959
9a3c34fe
KW
129602003-02-24 Kris Warkentin <kewarken@qnx.com>
12961
f46169db 12962 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12963
2417dd25
SC
129642003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12965
12966 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12967
b631436b
SC
129682003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12969
12970 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12971 (m68hc11_add_reggroups): New function.
12972 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12973 (m68hc11_gdbarch_init): Install the reggroups.
12974 (_initialize_m68hc11_tdep): Initialize them.
12975
0aa8c1e4
JW
129762003-02-21 James E Wilson <wilson@tuliptree.org>
12977
12978 * MAINTAINERS: Update my email address.
12979
50ceaba5
DC
129802003-02-21 David Carlton <carlton@math.stanford.edu>
12981
12982 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12983
4c2df51b
DJ
129842003-02-21 Daniel Jacobowitz <drow@mvista.com>
12985
12986 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12987 * symtab.h: Add opaque declarations of struct axs_value and
12988 struct agent_expr.
12989 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12990 (struct location_funcs): New type.
12991 (struct symbol): Add "loc" to aux_value.
12992 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12993 * dwarf2read.c: Include "dwarf2expr.h".
12994 (dwarf2_symbol_mark_computed): New function.
12995 (read_func_scope): Use it.
12996 (var_decode_location): New function.
12997 (new_symbol): Use it.
12998 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12999
13000 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
13001 (dwarf2expr_h, dwarf2loc_h): New variables.
13002 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
13003 (dwarf2expr.o, dwarf2loc.o): New rules.
13004 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
13005 * buildsym.c (finish_block): Handle LOC_COMPUTED and
13006 LOC_COMPUTED_ARG.
13007 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
13008 * m2-exp.y (yylex): Likewise.
13009 * printcmd.c (address_info, print_frame_args): Likewise.
13010 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
13011 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
13012 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
13013 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
13014 * symtab.c (lookup_block_symbol): Likewise.
13015
5784d15e
AF
130162003-02-20 Adam Fedor <fedor@gnu.org>
13017
13018 * symtab.h: Remove objc_specific struct
13019 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
13020 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
13021 Have language_objc use cplus_specific struct.
13022
d4cad8db
TT
130232003-02-20 Tom Tromey <tromey@redhat.com>
13024
13025 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
13026 TYPE_NAME, when printing a String value. PR java/1075.
13027
2f9a90b4
AF
130282003-02-20 Adam Fedor <fedor@gnu.org>
13029
d38074a8 13030 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 13031 * objc-lang.c (find_methods): Make static.
2f9a90b4 13032
6f17862b
CF
130332003-02-20 Christopher Faylor <cgf@redhat.com>
13034
13035 * win32-nat.c (get_image_name): Check return value from
13036 ReadProcessMemory.
13037 (child_xfer_memory): Ditto.
13038
715d1656
AO
130392003-02-20 Alexandre Oliva <aoliva@redhat.com>
13040
13041 * configure.in (TARGET_SYSTEM_ROOT): Set default to
13042 ${exec_prefix}/${target_alias}/sys-root. Match explicit
13043 '${exec_prefix}' (in addition to the expansion thereof) as
13044 relocatable.
13045 * configure: Rebuilt.
13046
b1262a02
DC
130472003-02-20 David Carlton <carlton@math.stanford.edu>
13048
13049 * symtab.c (search_symbols): Revert the search_symbols part of my
13050 2002-12-23 patch. Add comment.
13051
7134143f
DJ
130522002-02-20 Daniel Jacobowitz <drow@mvista.com>
13053
13054 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
13055 * dbxread.c (elfstab_build_psymtabs): Don't call
13056 install_minimal_symbols.
13057 (stabsect_build_psymtabs): Likewise.
13058 * elfread.c (elf_symfile_read): Call install_minimal_symbols
13059 earlier.
13060 * somread.c (som_symfile_read): Call install_minimal_symbols
13061 and do_cleanups earlier.
13062 * nlmread.c (nlm_symfile_read): Likewise.
13063 * mdebugread.c (elfmdebug_build_psymtabs): Call
13064 install_minimal_symbols and make appropriate cleanups.
13065
cf466558
KB
130662003-02-20 Kevin Buettner <kevinb@redhat.com>
13067
13068 * solib.c (reload_shared_libraries): New function.
13069 (_initialize_solib): Add callbacks for ``set solib-search-path''
13070 and ``set solib-absolute-prefix''.
13071
de5ad195
DC
130722003-02-20 David Carlton <carlton@math.stanford.edu>
13073
13074 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13075 expand comment.
13076 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13077 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13078 * ada-typeprint.c (ada_typedef_print): Ditto.
13079 * ax-gdb.c (gen_var_ref): Ditto.
13080 * breakpoint.c (print_one_breakpoint): Ditto.
13081 * buildsym.c (finish_block): Ditto.
13082 * c-valprint.c (c_val_print): Ditto.
13083 * expprint.c (print_subexp): Ditto.
13084 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
13085 * infcmd.c (jump_command): Ditto.
13086 * linespec.c (decode_line_2, decode_compound): Ditto.
13087 * maint.c (maintenance_translate_address): Ditto.
13088 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
13089 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13090 Ditto.
8ffd9b1b
AJ
13091 * p-valprint.c (pascal_val_print): Ditto.
13092 * stabsread.c (define_symbol): Ditto.
de5ad195 13093 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
13094 (print_frame_arg_vars, return_command): Ditto.
13095 * symfile.c (compare_symbols, compare_psymbols): Ditto.
13096 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
13097 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13098 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
13099 (rbreak_command): Ditto.
13100 * tracepoint.c (tracepoints_info): Ditto.
13101 * typeprint.c (typedef_print): Ditto.
13102 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
13103 * cli/cli-cmds.c (edit_command, list_command): Ditto.
13104 * ada-typeprint.c: Update Copyright.
13105 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13106 * tracepoint.c, cli/cli-cmds.c: Ditto.
13107
f796e4be
KB
131082003-02-20 Kevin Buettner <kevinb@redhat.com>
13109
13110 * frame.c (generic_unwind_get_saved_register): Make non-static.
13111 * frame.h (generic_unwind_get_saved_register): Declare.
13112 * mips-tdep.c (read_next_frame_reg): Fetch register from
13113 current regcache when frame is NULL.
13114 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13115 that must be NULL.
13116 (mips_get_saved_register): Call generic_unwind_get_saved_register()
13117 instead of frame_register_unwind().
13118
836cc9f4
AC
131192003-02-20 Andrew Cagney <ac131313@redhat.com>
13120
13121 * remote-sim.c (gdbsim_insert_breakpoint)
13122 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13123 code.
13124
501eef12
AC
131252003-02-20 Andrew Cagney <ac131313@redhat.com>
13126
13127 * remote.c (_initialize_remote): Add commands "set/show remote
13128 hardware-watchpoint-limit" and "set/show remote
13129 hardware-breakpoint-limit".
13130 (remote_hw_watchpoint_limit): Initialize to -1.
13131 (remote_hw_breakpoint_limit): Ditto.
13132 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13133
1b6bc7e0
CF
131342003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
13135
13136 * coff-pe-read.c: New file - support reading of minimal symbols from a
13137 portable executable using the export table.
13138 * coff-pe-read.h: New file.
13139 * coffread.c: Include coff-pe-read.h.
13140 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13141 debugging symbols found.
13142 * Makefile.in (SFILES): Add coff-pe-read.o.
13143 (coff_pe_read_h): Define.
13144 (COMMON_OBS): Add coff-pe-read.o.
13145 (coffread.o): Add coff_pe_read_h dependency.
13146 (coff-pe-read.o): New target.
13147
fe898f56
DC
131482003-02-19 David Carlton <carlton@math.stanford.edu>
13149
13150 * Makefile.in (SFILES): Add block.c.
13151 (block_h): New.
13152 (COMMON_OBS): Add block.o.
13153 (block.o): New.
13154 (x86-64-tdep.o): Add $(block_h).
13155 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13156 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13157 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13158 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13159 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13160 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13161 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13162 * value.h: Add opaque declaration for struct block.
13163 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13164 * ada-lang.h: Ditto.
13165 * x86-64-tdep.c: #include "block.h"
13166 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13167 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13168 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13169 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13170 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13171 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13172 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13173 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13174 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13175 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13176 * symtab.c (block_function): Ditto.
13177 (contained_in): Ditto.
13178 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13179 block.h. Add opaque declaration for struct block.
13180 * symtab.h: Move block_function and contained_in declarations to
13181 block.h. Add opaque declarations for struct block, struct
13182 blockvector.
13183 (struct block): Move to block.h.
13184 (struct blockvector): Ditto.
13185 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13186 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13187 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13188 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13189 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13190 Ditto.
13191 * block.c: New file.
13192 * block.h: New file.
13193
173345b5
TR
131942003-02-19 Theodore A. Roth <troth@openavr.org>
13195
13196 * avr-tdep.c (avr_extract_return_value): Remove function.
13197 (avr_store_return_value): Remove function.
13198 (avr_extract_struct_value_address): Remove function.
13199 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13200
338ef23d
AC
132012003-02-19 Andrew Cagney <ac131313@redhat.com>
13202
13203 * rs6000-tdep.c: Include "gdb_assert.h".
13204 (registers_e500): Add "acc" and "spefscr".
13205 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13206 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13207 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13208 really is "r0".
13209 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13210
5412f5f3
KS
132112003-02-18 Keith Seitz <keiths@redhat.com>
13212
13213 * Makefile.in: Add gdbtk-interps.c.
13214
881324eb
KB
132152003-02-18 Kevin Buettner <kevinb@redhat.com>
13216
13217 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13218 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13219
6a2f5abf
AC
132202003-02-18 Andrew Cagney <cagney@redhat.com>
13221
13222 * symtab.h (struct objfile): Add opaque declaration.
13223
54c7009d
EZ
132242003-02-18 Elena Zannoni <ezannoni@redhat.com>
13225
13226 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
13227 * dbxread.c (process_one_symbol): Use last_function_start rather
13228 than function_start_offset to find the real beginning of the
13229 current function. The latter is just the text section offset on
13230 some systems, the former is always the real function start.
54c7009d 13231
7ee6d7eb
AC
132322003-02-17 Andrew Cagney <cagney@redhat.com>
13233
13234 * configure.in: Revert ${target} != ${host}.
13235
2846da9b
AC
132362003-02-17 Andrew Cagney <ac131313@redhat.com>
13237
13238 * configure.in (Makefile): Use the test ${target} != ${host},
13239 instead of the absence of the "nm.h" file, to determine of the
13240 configuration non-native.
13241 * configure: Regenerate.
8ffd9b1b 13242
3b27aeea
EZ
132432003-02-14 Elena Zannoni <ezannoni@redhat.com>
13244
fbe586ae 13245 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
13246
13247 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13248 conditionalize tui_active test.
13249 (lookup_cmd_1): Ditto.
13250
b0b1c2c0
MK
132512003-02-14 Mark Kettenis <kettenis@gnu.org>
13252
13253 * configure.in: Add check for _etext.
13254 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13255 available.
13256 * config.in, configure: regenerated.
13257
8f05cde5
DJ
132582003-02-14 Daniel Jacobowitz <drow@mvista.com>
13259
13260 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13261
021e7609
AC
132622003-02-14 Andrew Cagney <ac131313@redhat.com>
13263
13264 * main.c (tui_version): Delete variable.
13265 (captured_main): When --tui, set interpreter_p to "tui" instead of
13266 enabling tui_version.
13267 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13268 tui_version.
13269 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13270 * cli/cli-cmds.c (disassemble_command): Ditto.
13271 * defs.h (tui_version): Delete declaration.
13272 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13273 (tui-interp.o): Add rules.
13274 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13275
e325dcec
CF
132762003-02-14 Christopher Faylor <cgf@redhat.com>
13277
36ffb041 13278 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13279 just-loaded dll.
13280
c4f90d87
JM
132812003-02-12 Jason Molenda (jmolenda@apple.com)
13282
fbe586ae
RH
13283 * symmisc.c (print_objfile_statistics): Include information about
13284 the number of psymtabs and symtabs in each object file.
c4f90d87 13285
e46e5ccd
KS
132862003-02-13 Keith R Seitz <keiths@redhat.com>
13287
13288 * main.h (struct captured_main_args): Add interpreter_p.
13289 * main.c (captured_main): Initialize interpreter_p from context.
13290 * gdb.c (main): Set interpreter_p argument.
13291 * Makefile.in (gdb.o): Add dependency for interps.h.
13292
fe97fe9c
AC
132932003-02-12 Andrew Cagney <ac131313@redhat.com>
13294
13295 * event-top.c (cli_command_loop): Delete declaration.
13296 (_initialize_event_loop): Delete function setting event_loop_hook.
13297 * event-top.h (cli_command_loop): Declare. Update copyright.
13298 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13299 * interps.c (current_interp_command_loop): When event_loop_p, call
13300 cli_command_loop.
13301
1cdac4ef
AC
133022003-02-12 Andrew Cagney <ac131313@redhat.com>
13303
13304 * interps.h (interp_command_loop_ftype): Change return type to
13305 void.
13306
48037ead
ML
133072003-02-12 Michal Ludvig <mludvig@suse.cz>
13308
13309 * x86-64-tdep.c (x86_64_extract_return_value)
13310 (x86_64_store_return_value): Use regcache instead of regbuf.
13311 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13312 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13313
033afc63
AC
133142003-02-11 Andrew Cagney <ac131313@redhat.com>
13315
13316 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13317 * aclocal.m4: Regenerate.
13318 * configure: Regenerate.
13319
13320 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13321 TCL_LD_SEARCH_FLAGS.
13322
40d02bca
ML
133232003-02-10 Michal Ludvig <mludvig@suse.cz>
13324
13325 * dwarf2cfi.c: Reindented.
13326
11308a41
AC
133272003-02-09 Andrew Cagney <ac131313@redhat.com>
13328
13329 * interps.c (clear_interpreter_hooks): Convert function definition
13330 to ISO C.
13331
e1c1c0f6
DC
133322003-02-07 David Carlton <carlton@math.stanford.edu>
13333
13334 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13335
ab5d3da6
KB
133362003-02-07 Kevin Buettner <kevinb@redhat.com>
13337
13338 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13339 (struct type): ...to here.
13340 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13341 field.
13342 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13343 (replace_type): Set length on all type variants for a given type.
13344
b8a92b82
AC
133452003-02-07 Andrew Cagney <ac131313@redhat.com>
13346
13347 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13348 <sys/stat.h>.
13349 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13350
5cb316ef
AC
133512003-02-06 Andrew Cagney <ac131313@redhat.com>
13352
2555fe1a
AC
13353 * Makefile.in (symm-nat.o): Update dependencies.
13354 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13355 (lynx-nat.o, ia64-linux-nat.): Ditto.
13356 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13357 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13358 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13359
44270758
AC
13360 * Makefile.in (inflow_h): Define.
13361 (procfs.o, inflow.o, procfs.o): Update dependencies.
13362 * inftarg.c (child_stop): Delete extern declaration of
13363 inferior_process_group. Include "inflow.h".
13364 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13365 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13366 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13367 (our_process_group, inferior_process_group): Extern declarations.
13368
df8f7274
AC
13369 * procfs.c: Include "gdb_assert.h".
13370
5cb316ef
AC
13371 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13372 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13373 * jv-typeprint.c (java_type_print_base): Ditto.
13374 * typeprint.c (typedef_print): Eliminate STREQ.
13375 * cli/cli-script.c (define_command, define_command): Ditto.
13376 * main.c (captured_main): Ditto.
13377 * values.c (lookup_internalvar): Ditto.
13378 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13379 within `if' conditional.
13380 * linespec.c (decode_line_2): Ditto.
13381 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13382 (bfd_openw_with_cleanup): Ditto.
13383
2a28ccea
MK
133842003-02-07 Mark Kettenis <kettenis@gnu.org>
13385
13386 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13387 legacy_extract_return_value and store_return_value to
13388 legacy_return_value.
13389
786b8124
CF
133902003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13391
13392 * win32-nat.c (get_relocated_section_addrs): New function. Find
13393 section load addresses for symbol handling in relocated DLLs.
13394 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13395
b871e4ec
FF
133962003-02-05 Fred Fish <fnf@intrinsity.com>
13397
13398 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13399 '=' and '!='.
13400 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13401 with '&' and '=='.
13402 (angel_RDI_info): Ditto.
13403 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13404 with '&' and '!='.
13405 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13406
4389a95a 134072003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13408 Keith Seitz <keiths@redhat.com>
13409 Elena Zannoni <ezannoni@redhat.com>
13410 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13411
13412 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13413 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13414 (SUBDIR_MI_OBS): Add "mi-interp.o".
13415 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13416 (SFILES): Add "interps.c".
13417 (COMMON_OBS): Add "interps.o".
13418 (interps_h, mi_main_h): Define.
13419 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13420 (mi-main.o, main.o, event-top.o): Update dependencies.
13421 * cli/cli-interp.c: New file.
13422 * interps.h, interps.c: New files.
13423 * top.c: (gdb_init): Don't install the default interpreter, handed
13424 by captured_main.
13425 * main.c: Include "interps.h".
13426 (interpreter_p): Note that it should malloc'ed.
13427 (captured_command_loop): Call current_interp_command_loop.
13428 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13429 xfree and xstrdup when updating interpreter_p. Install the
13430 default interpreter. Add hack to stop mi1's copyright notice
13431 being encoded.
13432 * event-top.h (gdb_setup_readline): Declare.
13433 (gdb_disable_readline): Declare.
13434 * event-top.c: Include "interps.h".
13435 (display_gdb_prompt): Call current_interp_display_prompt_p.
13436 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13437 gdb_stdlog, and gdb_stdtarg.
13438 (_initialize_event_loop): Don't call gdb_setup_readline.
13439 * cli-out.c (cli_out_set_stream): New function.
13440 * cli-out.h (cli_out_set_stream): Declare.
13441
ff3b5810
MK
134422003-02-06 Mark Kettenis <kettenis@gnu.org>
13443
13444 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13445 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13446 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13447 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13448 config/i386/i386v42mp.mt: Removed.
13449
5b729aa5
MK
134502003-02-05 Mark Kettenis <kettenis@gnu.org>
13451
13452 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13453 GDB_OSABI_SOLARIS.
13454
8cc15142
MC
134552003-02-05 Michael Chastain <mec@shout.net>
13456
13457 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13458 2.12.1 and earlier versions.
13459
5aa5d4b9
AC
134602003-02-05 Andrew Cagney <ac131313@redhat.com>
13461
13462 Remove orphaned hosts, targets and files.
13463 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13464 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13465 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13466 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13467 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13468 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13469 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13470 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13471 * config/sparc/tm-sp64sim.h: Delete.
13472 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13473 hosts.
13474 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13475 mips*-dec-mach3* targets.
13476
b68767c1
MC
134772003-02-04 Michael Chastain <mec@shout.net>
13478
13479 * NEWS: Fix typo: sepcifying -> specifying.
13480
5ae7ca1d
MC
134812003-02-04 Michael Chastain <mec@shout.net>
13482
13483 * dwarfread.c: Add documentation on the state of dwarf-1,
13484 looking towards obsoletion.
13485
d08a4280
MC
134862003-02-03 Michael Chastain <mec@shout.net>
13487
13488 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13489 gdb/testsuite/gdb.c++/pr-1023.exp.
13490
e9be73e4
AC
134912003-02-04 Andrew Cagney <ac131313@redhat.com>
13492
13493 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13494 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13495
13496 * utils.c (init_page_info): Delete reference to MPW in comments.
13497 * main.c (captured_main): Delete #ifdef MPW.
13498
05d57f6f
AC
134992003-02-04 Andrew Cagney <ac131313@redhat.com>
13500
8ffd9b1b 13501 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13502 * monitor.c (monitor_expect): Obsolete reference to m32r.
13503 * configure.tgt: Mark m32r-*-elf* as obsolete.
13504 * MAINTAINERS: Mark m32k as obsolete.
13505 * m32r-rom.c: Obsolete file.
13506 * config/m32r/m32r.mt: Obsolete file.
13507 * config/m32r/tm-m32r.h: Obsolete file.
13508 * m32r-stub.c: Obsolete file.
13509 * m32r-tdep.c: Obsolete file.
13510
8b0e5691
AC
135112003-02-04 Andrew Cagney <ac131313@redhat.com>
13512
13513 * NEWS: Mention that the z8k-zilog-none is obsolete.
13514 * MAINTAINERS: Mark z8k as obsolete.
13515 * configure.tgt: Obsolete the z8k-*-coff* target.
13516 * config/z8k/z8k.mt: Obsolete file.
13517 * config/z8k/tm-z8k.h: Obsolete file.
13518 * z8k-tdep.c: Obsolete file.
13519
67f16606
AC
135202003-02-04 Andrew Cagney <ac131313@redhat.com>
13521
13522 * NEWS: Mention that the mn10200-elf is obsolete.
13523 * configure.tgt: Obsolete mn10200-*-* target.
13524 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13525 mention that the mn10200 is obsolete.
13526 * breakpoint.h: Ditto.
13527 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13528 * config/mn10200/mn10200.mt: Obsolete file.
13529 * config/mn10200/tm-mn10200.h: Obsolete file.
13530 * mn10200-tdep.c: Obsolete file.
13531
fd2299bd
AC
135322003-02-04 Andrew Cagney <ac131313@redhat.com>
13533
13534 * MAINTAINERS: Mark h8500 as obsolete.
13535 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13536 * findvar.c (value_from_register): Ditto.
13537 * h8500-tdep.c: Mark file as obsolete.
13538 * config/h8500/h8500.mt: Ditto.
13539 * config/h8500/tm-h8500.h: Ditto.
13540 * NEWS: Mention that h8500 is obsolete.
13541
eb9a305d
DC
135422003-02-04 David Carlton <carlton@math.stanford.edu>
13543
13544 * objfiles.c (allocate_objfile): Always set name. Add comment at
13545 start of function.
13546 * jv-lang.c (get_dynamics_objfile): Add comment.
13547
406fc7fb
DC
135482003-02-04 David Carlton <carlton@math.stanford.edu>
13549
13550 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13551 * printcmd.c (build_address_symbolic): Replace uses of
13552 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13553 SYMBOL_NAME, and asm_demangle.
13554 Update copyright.
13555
93d91629
DC
135562003-02-04 David Carlton <carlton@math.stanford.edu>
13557
13558 * linespec.c (decode_compound): Extract code into
13559 lookup_prefix_sym.
13560 (lookup_prefix_sym): New function.
13561
1c5cb38e
DC
135622003-02-04 David Carlton <carlton@math.stanford.edu>
13563
13564 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13565 FLOAT_COERCION_BADNESS.
13566 * gdbtypes.c (rank_one_type): Replace all uses of
13567 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13568
0cf824c9
JB
135692003-02-04 Jim Blandy <jimb@redhat.com>
13570
13571 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13572 section, let dwarf_macinfo_section point to it, not
13573 dwarf_loc_section.
13574
a2d356b0
DJ
135752003-02-04 Daniel Jacobowitz <drow@mvista.com>
13576
13577 Pointed out by Anton Blanchard <anton@samba.org>.
13578 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13579 (ppc_linux_at_sigtramp_return_path): Use it.
13580
2de7ced7
DJ
135812003-02-04 Daniel Jacobowitz <drow@mvista.com>
13582
13583 * defs.h (streq): Add prototype.
13584 * utils.c (streq): New function.
13585
13586 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13587 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13588 * mdebugread.c (new_symbol): Likewise.
13589 * stabsread.c (define_symbol): Likewise.
13590 * coffread.c (process_coff_symbol): Likewise.
13591 * dwarfread.c (new_symbol): Likewise.
13592
13593 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13594 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13595 here.
13596 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13597 SYMBOL_INIT_DEMANGLED_NAME.
13598 * objfiles.c: Include "hashtab.h".
13599 (allocate_objfile): Call htab_set_functions_ex for the
13600 demangled_names_hash.
13601 (free_objfile): Call htab_delete for the demangled_names_hash.
13602 * objfiles.h (struct htab): Add declaration.
13603 (struct objfile): Add demangled_names_hash.
13604 * symfile.c: Include "hashtab.h".
13605 (reread_symbols): Call htab_delete for the demangled_names_hash.
13606 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13607 SYMBOL_NAME in the bcache.
13608 * symtab.c: Include "hashtab.h". Update comments.
13609 (create_demangled_names_hash, symbol_set_names): New functions.
13610 (symbol_find_demangled_name): New function, broken out from
13611 symbol_init_demangled_names.
13612 (symbol_init_demangled_names): Use it.
13613 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13614 (SYMBOL_SET_NAMES): New macro.
13615 (symbol_set_names): Add prototype.
13616
15831452
JB
136172003-02-03 Jim Blandy <jimb@redhat.com>
13618
13619 Use a single, consistent representation for an empty minimal
13620 symbol table in an objfile.
13621 * objfiles.c (terminate_minimal_symbol_table): New function.
13622 (allocate_objfile): Call it.
13623 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13624 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13625 non-NULL.
15831452
JB
13626 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13627 objfile has minimal symbols, compare minimal_symbol_count to zero,
13628 instead of comparing msymbols with NULL.
13629 * objfiles.c (have_minimal_symbols): Same.
13630 * solib-sunos.c (solib_add_common_symbols): Call
13631 terminate_minimal_symbol_table.
13632 * symfile.c (reread_symbols): Same.
8ffd9b1b 13633
ffc65945
KB
136342003-02-03 Kevin Buettner <kevinb@redhat.com>
13635
13636 * s390-tdep.c (s390_address_class_type_flags)
13637 (s390_address_class_type_flags_to_name)
13638 (s390_address_class_name_to_type_flags): New functions.
13639 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13640 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13641
f211c6d4
MS
136422003-02-03 Michael Snyder <msnyder@redhat.com>
13643
13644 * arm-tdep.c: Fix spell-o in comment.
13645
659b0389
ML
136462003-02-03 Michal Ludvig <mludvig@suse.cz>
13647
13648 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13649 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13650 error messages to contain BFD filename.
659b0389 13651
3b31d625
EZ
136522003-02-02 Elena Zannoni <ezannoni@redhat.com>
13653
997b089a 13654 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13655 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13656 (do_mixed_source_and_assembly): Use
13657 make_cleanup_ui_out_tuple_begin_end and
13658 make_cleanup_ui_out_tuple_begin_end.
13659 (do_mixed_source_and_assembly): Ditto.
13660 * thread.c (do_captured_list_thread_ids): Ditto.
13661 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13662 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13663 ui_out_tuple_end): Delete prototypes.
13664 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13665 ui_out_list_end, ui_out_tuple_end): Delete.
13666
13667 From Kevin Buettner <kevinb@redhat.com>:
13668 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13669 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13670 (do_cleanup_table_end): New functions.
13671 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13672 Use cleanups to invoke_ui_out_tuple_end().
13673 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13674 * cli/cli-setshow.c (cmd_show_list): Use
13675 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13676
5b181d62
AC
136772003-02-02 Andrew Cagney <ac131313@redhat.com>
13678
13679 * frame.c (frame_unwind_register): New function.
13680 (frame_unwind_unsigned_register): Use.
13681 (frame_unwind_signed_register): Use.
13682 (frame_read_register): New function.
13683 * frame.h (frame_unwind_register): Declare.
13684 (frame_read_register): Declare.
13685
13686 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13687 and frame_unwind_register instead of read_memory, write_register
13688 and deprecated_write_register_bytes.
13689
5f601589
AC
136902003-02-02 Andrew Cagney <ac131313@redhat.com>
13691
13692 * frame.h: Note that namelen can be negative.
13693 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13694 NAME's length.
13695
13696 * NEWS: Mention that the d10v's `regs' command is deprecated.
13697 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13698 (d10v_print_registers_info): New function.
13699 (show_regs): Call d10v_print_registers_info.
13700 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13701
6a3fe0a4
MK
137022003-02-02 Mark Kettenis <kettenis@gnu.org>
13703
13704 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13705 lost in the previous patch.
13706
075559bc
AC
137072003-02-01 Andrew Cagney <ac131313@redhat.com>
13708
13709 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13710 * stack.c (print_frame_info_base): Output complete FRAME tuple
13711 for synthesized frames.
075559bc 13712
6789195b
AC
137132003-02-02 Andrew Cagney <ac131313@redhat.com>
13714
13715 * mips-nat.c (zerobuf): Delete.
13716 (fetch_inferior_registers): Alloc local zerobuf.
13717 (fetch_core_registers): Alloc local zerobuf.
13718 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13719 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13720 * thread-db.c (thread_db_store_registers): Ditto.
13721 * sh-tdep.c (sh_do_register): Ditto.
13722 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13723 * remote-sim.c (gdbsim_store_register): Ditto.
13724 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13725 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13726 * monitor.c (monitor_supply_register): Ditto.
13727 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13728 * mips-nat.c (fetch_inferior_registers): Ditto.
13729 * m68klinux-nat.c (fetch_register): Ditto.
13730 * lynx-nat.c (fetch_inferior_registers): Ditto.
13731 (fetch_inferior_registers): Ditto.
13732 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13733 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13734 (hpux_thread_store_registers): Ditto.
13735 * hppah-nat.c (fetch_register): Ditto.
13736 * hppab-nat.c (fetch_register): Ditto.
13737 * hppa-tdep.c (pa_register_look_aside): Ditto.
13738 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13739 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13740
e669114a
AC
137412003-02-01 Andrew Cagney <ac131313@redhat.com>
13742
13743 * gdbarch.sh: Explictly specify all method levels. When a
13744 variable with an empty level, provide a non-multi-arch default.
13745 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13746 * gdbarch.h: Re-generate.
13747 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13748 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13749
9a043c1d
AC
137502003-02-01 Andrew Cagney <ac131313@redhat.com>
13751
13752 * defs.h (host_pointer_to_address): Delete declaration.
13753 (address_to_host_pointer): Delete declaration.
13754 * utils.c (host_pointer_to_address): Delete function.
13755 (address_to_host_pointer): Delete function.
13756 * procfs.c (procfs_address_to_host_pointer): New function.
13757 * procfs.c (proc_set_watchpoint): Use.
13758 (procfs_can_use_hw_breakpoint): Update comments.
13759 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13760 (som_solib_add): Use.
13761 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13762 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13763
7ca9f392
AC
137642003-02-01 Andrew Cagney <ac131313@redhat.com>
13765
94bbfd30
AC
13766 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13767 strlen d_name.
13768
7ca9f392
AC
13769 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13770 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13771 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13772 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13773 (define_symbol): Update.
13774 * symfile.c (generic_load): Remove references to nindy.
13775 * symtab.c: Remove references to nindy.
13776
31a85ea2
AC
137772003-02-01 Andrew Cagney <ac131313@redhat.com>
13778
13779 * infcmd.c (print_float_info): Delete code conditional on
13780 FLOAT_INFO.
13781 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13782 * config/m68k/nm-apollo68b.h: Ditto.
13783 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13784 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13785 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13786
f6e85fc8
MK
137872003-02-01 Mark Kettenis <kettenis@gnu.org>
13788
6015b6a0
MK
13789 * config/i386/tm-i386os9k.h: Removed.
13790
f7a30bdf
MK
13791 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13792 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13793 they're identical to i[3456]86-*-sysv* now.
13794 * config/i386/i386v32.mh: Removed.
13795 * config/i386/xm-i386v32.h: Removed.
13796 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13797
28d52111
MK
13798 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13799
4d3f6bce
MK
13800 * config/i386/i386dgux.mh: Removed.
13801 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13802
f6e85fc8
MK
13803 * configure.in: Fix typo.
13804 * configure: Regenerated.
13805
53955967
DC
138062003-01-31 David Carlton <carlton@math.stanford.edu>
13807
13808 * dwarf2read.c (dwarf2_locate_sections): Set
13809 dwarf_ranges_section.
13810
b1364885
AC
138112003-01-31 Andrew Cagney <ac131313@redhat.com>
13812
8dbb1c65
AC
13813 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13814 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13815
8731e58e
AC
13816 * utils.c: Re-indent.
13817
b1364885
AC
13818 * config/djgpp/fnchange.lst: Delete nindy files.
13819 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13820 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13821 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13822 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13823 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13824 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13825 * Makefile.in (init.c): Remove nindy references.
13826 (saber_gdb): Delete rule.
13827 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13828 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13829 and a68v-nat.c.
13830 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13831 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13832 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13833 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13834 nindy-share/stop.h.
13835 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13836 * saber.suppress: Delete file.
13837
086df311
DJ
138382003-01-31 Daniel Jacobowitz <drow@mvista.com>
13839
13840 * dbxread.c (stabs_data): New static variable.
13841 (fill_symbuf): Support an in-memory buffer for stabs data.
13842 (stabs_seek): New function.
13843 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13844 (read_ofile_symtab): Use stabs_seek.
13845 (elfstab_build_psymtabs): Take an asection* instead of
13846 an offset and size. Relocate the stabs data if necessary.
13847 Save the section* for dbx_psymtab_to_symtab.
13848 * dwarf2read.c: Add section variables for each debug section.
13849 (dwarf2_locate_sections): Fill them in.
13850 (dwarf2_read_section): Take an asection* argument.
13851 Relocate the section contents if necessary.
13852 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13853 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13854 it to dwarf2_read_section.
13855 (dwarf2_build_frame_info): Update callers.
13856 * elfread.c (elf_symfile_read): Update call to
13857 elfstab_build_psymtabs.
13858 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13859 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13860 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13861 * symfile.c (symfile_dummy_outputs): New function.
13862 (symfile_relocate_debug_section): New function.
13863 * symfile.h (symfile_relocate_debug_section): Add prototype.
13864
87d1b352
RH
138652003-01-31 Richard Henderson <rth@redhat.com>
13866
13867 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13868 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13869 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13870 * alpha-tdep.c (alpha_register_name): Add "unique".
13871 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13872 (ALPHA_UNIQUE_REGNUM): New.
13873 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13874
c48861fb
AC
138752003-01-31 Andrew Cagney <ac131313@redhat.com>
13876
13877 * README: Remove reference to Ericsson 1800 monitor.
13878 * Makefile.in (remote-es.o): Delete rule.
13879 (ALLDEPFILES): Delete remote-es.c.
13880 * remote-es.c: Delete file.
13881 * config/m68k/es1800.mt: Delete file.
13882 * config/djgpp/fnchange.lst: Update.
13883 * configure.tgt: Delete m68*-ericsson-* target.
13884
d764a824
AF
138852003-01-31 Adam Fedor <fedor@gnu.org>
13886
13887 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13888 Remove duplicate/shadowing variable of same name.
13889
fe36c4f4
JB
138902003-01-30 Jim Blandy <jimb@redhat.com>
13891
13892 * symfile.c (find_separate_debug_file): Assert that the objfile's
13893 directory name we compute ends with a slash, and then assume that
13894 that's so everywhere we use it.
13895
cb741690
DJ
138962003-01-30 Daniel Jacobowitz <drow@mvista.com>
13897
13898 * valops.c (value_assign): Flush frame cache after stores to memory
13899 also.
13900
96ee5227
AC
139012003-01-30 Andrew Cagney <ac131313@redhat.com>
13902
13903 * Makefile.in (mon960-rom.o): Delete rule.
13904 * mon960-rom.c: Delete file.
13905
7f6104a9
AC
139062003-01-30 Andrew Cagney <ac131313@redhat.com>
13907
13908 * d10v-tdep.c: Include "frame-unwind.h".
13909 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13910 list.
13911 (next_addr, uses_frame): Delete.
13912 (struct d10v_unwind_cache): Define.
13913 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13914 Use info instead of next_addr and uses_frame globals.
13915 (d10v_frame_init_saved_regs): Delete function.
13916 (d10v_init_extra_frame_info): Delete function.
13917 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13918 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13919 init_frame_pc or frame_saved_pc.
13920 (d10v_pop_frame): Delete function.
13921 (do_d10v_pop_frame): Delete function.
13922 (d10v_frame_chain): Delete function.
13923 (d10v_frame_chain_valid): Delete function.
13924 (d10v_frame_pc_unwind): New function.
13925 (d10v_frame_id_unwind): New function.
13926 (saved_regs_unwinder): New function.
13927 (d10v_frame_register_unwind): New function.
13928 (d10v_frame_pop): New function.
13929 (d10v_frame_unwind): New variable.
13930 (d10v_frame_p): New function.
13931 (d10v_frame_saved_pc): Delete function.
13932 * Makefile.in (d10v-tdep.o): Update dependencies.
13933
cad2e848
JB
139342003-01-30 J. Brobecker <brobecker@gnat.com>
13935
13936 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13937 causing some regressions due to a change in the default value
13938 for this macro.
13939
af34e669
DJ
139402003-01-29 Richard Henderson <rth@redhat.com>
13941 Elena Zannoni <ezannoni@redhat.com>
13942 Daniel Jacobowitz <drow@mvista.com>
13943
13944 Fix PR gdb/961.
8ffd9b1b 13945 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13946 variables.
13947 (RANGES_SECTION): New.
13948 (dwarf_ranges_buffer): New variable.
13949 (struct comp_unit_head): Add member "die".
13950 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13951 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13952 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13953 (dwarf2_locate_sections): Likewise.
13954 (dwarf2_build_psymtabs): Read .debug_ranges.
13955 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13956 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13957 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13958 Look for DW_AT_ranges and return the bounding box.
13959
baa93fa6
CF
139602003-01-29 Brian Ford <ford@vss.fsi.com>
13961
13962 * win32-nat.c (cygwin_pid): Removed as unused.
13963 (child_attach): Try fall back to Cygwin pid.
13964
c63f977f
JB
139652003-01-29 Jim Blandy <jimb@redhat.com>
13966
13967 * objfiles.h (struct objfile): Doc fix.
13968
d62d1979
AC
139692003-01-29 Andrew Cagney <ac131313@redhat.com>
13970
13971 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13972 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13973 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13974 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13975 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13976 (FRAME_SAVED_PC): Change to a function with predicate.
13977 * gdbarch.h, gdbarch.c: Re-generate.
13978
1ae18a04
AC
139792003-01-28 Andrew Cagney <ac131313@redhat.com>
13980
52287340
AC
13981 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13982
1ae18a04
AC
13983 * complaints.c (complain): Delete function.
13984 * complaints.h (struct deprecated_complaint): Delete definition.
13985 (complain): Delete declaration.
13986
f2c16bd6
KB
139872003-01-28 Kevin Buettner <kevinb@redhat.com>
13988
13989 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13990 dummy frames.
13991
a94dd1fd
AC
139922003-01-27 Andrew Cagney <ac131313@redhat.com>
13993
13994 * sentinel-frame.h, sentinel-frame.c: New files.
13995 * Makefile.in (frame.o): Update dependencies.
13996 (SFILES): Add sentinel-frame.c.
13997 (sentinel_frame_h): Define.
13998 (COMMON_OBS): Add sentinel-frame.o.
13999 (sentinel-frame.o): Specify dependencies.
14000 * frame.c: Include "sentinel-frame.h".
14001 (frame_register_unwind): Rewrite assuming that there is always a a
14002 ->next frame.
14003 (frame_register, generic_unwind_get_saved_register): Ditto.
14004 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
14005 (create_sentinel_frame, unwind_to_current_frame): New functions.
14006 (get_current_frame): Rewrite using create_sentinel_frame and
14007 unwind_to_current_frame. When possible, always create a frame.
14008 (create_new_frame): Set next to the sentinel frame.
14009 (get_next_frame): Rewrite. Don't go below the level 0 frame.
14010 (deprecated_update_frame_pc_hack): Update the next frame's PC and
14011 ID cache when necessary.
14012 (frame_saved_regs_id_unwind): Use frame_relative_level.
14013 (deprecated_generic_get_saved_register): Use frame_relative_level,
14014 get_frame_saved_regs, get_frame_pc, get_frame_base and
14015 get_next_frame.
14016 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
14017 frame_register.
14018
5378adc4
DJ
140192003-01-27 Daniel Jacobowitz <drow@mvista.com>
14020
14021 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
14022
51ee2ddc
DJ
140232003-01-27 Daniel Jacobowitz <drow@mvista.com>
14024
14025 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
14026 (maintenance_set_profile_cmd): Use error () instead of warning ().
14027
d9feb4e7
DJ
140282003-01-27 Daniel Jacobowitz <drow@mvista.com>
14029
14030 * configure.in: Check that -pg works if using --enable-profiling.
14031 Check for monstartup and _mcleanup regardless of --enable-profiling.
14032 * maint.c: Check for monstartup and _mcleanup before using them.
14033 * config.in: Regenerated.
14034 * configure: Regenerated.
14035
2d188dd3
NC
140362003-01-24 Nick Clifton <nickc@redhat.com>
14037
14038 * Add sh2e support:
14039
14040 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
14041
14042 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
14043 (sh2e_show_regs): New.
14044 (sh_gdbarch_init): Handle bfd_mach_sh2e.
14045 * config/sh/tm-sh.h: Added sh2e to comments.
14046
cb3c37b2
JB
140472003-01-23 Jim Blandy <jimb@redhat.com>
14048
14049 * symfile.c (syms_from_objfile): Don't print the "(no debugging
14050 symbols found)" message here; we haven't checked for a separate
14051 debug info file yet, so we don't know yet.
14052 (symbol_file_add_with_addrs_or_offsets): Print it here, after
14053 we've looked everywhere. Also, there's no need to print a special
14054 message when we're loading the separate debug info file: the one
14055 symbol_file_add prints is fine.
14056
5b5d99cf
JB
140572003-01-23 Alexander Larsson <alexl@redhat.com>
14058 Jim Blandy <jimb@redhat.com>
14059
14060 Add support for executables whose debug info has been separated
14061 out into a separate file, leaving only a link behind.
14062 * objfiles.h (struct objfile): New fields: separate_debug_objfile
14063 and separate_debug_objfile_backlink.
14064 (put_objfile_before): New declaration.
14065 * symfile.c: #include "filenames.h".
14066 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14067 debug info in a separate file, read that, too. Save the addrs
14068 argument, so we can use it again to read the separated debug info;
14069 syms_from_objfile modifies the table we pass it.
14070 (reread_symbols): After re-reading an objfile, call
14071 reread_separate_symbols to refresh its separate debug info
14072 objfile, if it has one.
14073 (reread_separate_symbols, find_separate_debug_file,
14074 get_debug_link_info, separate_debug_file_exists): New functions.
14075 (debug_file_directory): New global var.
14076 (_initialize_symfile): Initialize debug_file_directory, and
14077 provide the new `set debug-file-directory' command to let the user
14078 change it.
14079 * objfiles.c (free_objfile): If this objfile has its debug info in
14080 a separate objfile, free that one too. If this is itself a
14081 separate debug info objfile, clear our parent's backlink.
14082 (put_objfile_before): New function.
14083 * utils.c (gnu_debuglink_crc32): New function.
14084 * defs.h (gnu_debuglink_crc32): New declaration.
14085 * Makefile.in (symfile.o): Note dependency on "filenames.h".
14086 * configure.in: Handle --with-separate-debug-dir config option.
14087 * acinclude.m4 (AC_DEFINE_DIR): New macro.
14088 * acconfig.h (DEBUGDIR): New macro.
14089 * configure, aclocal.m4, config.in: Regenerated.
14090
7e8580c1
JB
140912003-01-22 Jim Blandy <jimb@redhat.com>
14092
7904e09f
JB
14093 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14094 like the old symbol_file_add, but taking new arguments: you can
14095 now pass in either a `struct section_addr_info' list to say where
14096 each section is loaded, or a `struct section_offsets' table. Pass
14097 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 14098 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
14099 with the appropriate quiescent values for the new arguments.
14100
7e8580c1
JB
14101 * symfile.c: #include "gdb_assert.h".
14102 (syms_from_objfile): Add the ability to pass in a section offset
14103 table directly, as an alternative to the section_addr_info table.
14104 Document arguments better.
14105 (symbol_file_add): Pass extra arguments to syms_from_objfile.
14106 * symfile.h (syms_from_objfile): Update declaration.
14107 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14108 syms_from_objfile.
14109 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14110
d28f9cdf
DJ
141112003-01-22 Daniel Jacobowitz <drow@mvista.com>
14112
14113 Original patch by Tom Tromey <tromey@cygnus.com> and
14114 Jason Molenda <jmolenda@apple.com>.
14115 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14116 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14117 * NEWS: Mention profiling.
14118 * configure.in (--enable-gdbtk): Fix typo.
14119 (--enable-profiling): New. Set PROFILE_CFLAGS.
14120 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14121 Fill in function.
14122 (profiling_state): New variable.
14123 (mcleanup_wrapper): New function.
14124 (_initialize_maint): Remove NOTYET, fix call to
14125 add_setshow_boolean_cmd for "maint set profile".
14126 * configure: Regenerated.
14127
df21e465
MH
141282003-01-21 Martin M. Hunt <hunt@redhat.com>
14129
14130 * Makefile.in (install-gdbtk): Install PNG images too.
14131
73c1f219
AC
141322003-01-21 Andrew Cagney <ac131313@redhat.com>
14133
14134 * exec.c (text_start): Delete global variable.
14135 (exec_file_attach): Make text_start local to the function.
14136 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14137 * valops.c (hand_function_call): Delete code that handles
14138 BEFORE_TEXT_END and AFTER_TEXT_END.
14139 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14140 of CALL_DUMMY_LOCATION.
14141 * gdbarch.c: Regenerate.
14142 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14143 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14144 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14145 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14146 (text_end): Delete extern declaration.
14147
eb4f72c5
AC
141482003-01-21 Andrew Cagney <ac131313@redhat.com>
14149
14150 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14151 * blockframe.c (backtrace_below_main): Move to "frame.c".
14152 (frame_chain_valid): Delete check for backtrace_below_main.
14153 (_initialize_blockframe): Delete initialization, move ``set
14154 backtrace-below-main'' command to "frame.c".
14155 (do_flush_frames_sfunc): Delete function.
14156 * frame.c: Include "command.h" and "gdbcmd.h".
14157 (frame_type_from_pc): New function.
14158 (create_new_frame): Use frame_type_from_pc.
14159 (legacy_get_prev_frame): New function.
14160 (get_prev_frame): Rewrite. When an old style frame, call
14161 legacy_get_prev_frame. Otherwize, unwind the PC first.
14162 (_initialize_frame): Add ``set backtrace-below-main'' command.
14163 * Makefile.in (frame.o): Update dependencies.
14164
778ce8cc
AC
141652003-01-19 Andrew Cagney <ac131313@redhat.com>
14166
14167 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14168 DEPRECATED_REGISTERS_INFO.
14169
01c193c8
AC
141702003-01-19 Andrew Cagney <ac131313@redhat.com>
14171
14172 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14173 Maintainers'. Update `Various Maintainers'.
14174
dedc2a2b
AC
141752003-01-19 Andrew Cagney <ac131313@redhat.com>
14176
14177 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14178 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14179 Suppress actual parameters when `-'.
14180 * gdbarch.h, gdbarch.c: Regenerate.
14181
b7261c70
AC
141822003-01-19 Andrew Cagney <ac131313@redhat.com>
14183
14184 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14185 code handling dummy frames.
14186
dbe9fe58
AC
141872003-01-19 Andrew Cagney <ac131313@redhat.com>
14188
14189 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14190 (struct frame_unwind): Add field pop.
14191 * frame.h (frame_pop): Declare.
14192 * frame.c (frame_saved_regs_pop): New function.
14193 (trad_frame_unwinder): Add frame_saved_regs_pop.
14194 (frame_pop): New function.
14195 * dummy-frame.c (dummy_frame_pop): New function.
14196 (discard_innermost_dummy): New function.
14197 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14198 (dummy_frame_unwind): Add dummy_frame_pop.
14199 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14200 * valops.c (hand_function_call): Ditto.
14201 * stack.c (return_command): Ditto.
14202
570b8f7c
AC
142032003-01-18 Andrew Cagney <ac131313@redhat.com>
14204
14205 * cris-tdep.c: Fix function declaration indentation.
14206 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14207 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14208 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14209 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14210 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14211 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14212
142132003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
14214
14215 * README (Unpacking and Installation -- quick overview):
14216 Warn against ".../gdb-5.3/gdb/configure".
14217
494cca16
AC
142182003-01-18 Andrew Cagney <ac131313@redhat.com>
14219
14220 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14221 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14222 (struct frame_unwind): Declare opaque.
14223 (dummy_frame_p): Declare function.
14224 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14225 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14226 * dummy-frame.c: Include "frame-unwind.h".
14227 (dummy_frame_p): New function.
14228 (dummy_frame_unwind): New variable.
14229 * frame.c: Include "frame-unwind.h".
14230 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14231 to use the new unwind field.
14232 (set_unwind_by_pc): Delete function.
14233 (create_new_frame, get_prev_frame): Set unwind field using
14234 frame_unwind_find_by_pc.
14235 (trad_frame_unwind, trad_frame_unwinder): New variables.
14236 * frame.h (trad_frame_unwind): Declare variable.
14237 (frame_id_unwind_ftype): Delete declaration.
14238 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14239 (struct frame_unwind): Declare opaque.
14240 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14241 register_unwind with a single unwind pointer.
14242 * frame-unwind.h, frame-unwind.c: New files.
14243 * Makefile.in (SFILES): Add frame-unwind.c.
14244 (frame_unwind_h): Define.
14245 (COMMON_OBS): Add frame-unwind.o.
14246 (frame-unwind.o): Specify dependencies.
14247 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 14248
4efb68b1
AC
142492003-01-18 Andrew Cagney <ac131313@redhat.com>
14250
14251 * ada-valprint.c: Eliminate PTR.
14252 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14253 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14254 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14255 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14256 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14257 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14258 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 14259
a84d24ee
AC
142602003-01-17 Andrew Cagney <ac131313@redhat.com>
14261
762f08a3
AC
14262 * main.c (captured_main): Don't use PTR.
14263 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14264 * gdbtypes.c (lookup_primitive_typename): Ditto.
14265 (lookup_struct_elt_type): Ditto.
14266 * f-valprint.c (info_common_command): Ditto.
14267 (list_all_visible_commons): Ditto.
14268 * jv-typeprint.c (java_type_print_base): Ditto.
14269
a84d24ee
AC
14270 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14271 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14272 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14273 i386-interix-nat.c and i386-interix-tdep.c. Rename
14274 m68klinux-nat.c and m68klinux-tdep.c. Rename
14275 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14276 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14277 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14278 * main.c (captured_main): Use xfree, not free.
14279
c170fb60
AC
142802003-01-16 Andrew Cagney <ac131313@redhat.com>
14281
14282 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14283 ID back using a parameter.
14284 * frame.c (frame_id_unwind): Update call.
14285 (frame_saved_regs_id_unwind): Update.
14286 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14287 * dummy-frame.h (struct frame_id): Add opaque declaration.
14288 (dummy_frame_id_unwind): Update declaration.
14289
867f3898
AC
142902003-01-15 Andrew Cagney <ac131313@redhat.com>
14291
14292 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14293
40622be8 142942003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14295
40622be8 14296 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14297
ae66c1fc
EZ
142982003-01-14 Elena Zannoni <ezannoni@redhat.com>
14299
997b089a 14300 Fix PR gdb/898
ae66c1fc
EZ
14301 * breakpoint.c (until_break_command): Add new argument. Use it to
14302 decide whether to stop only at the current frame or not.
14303 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14304 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14305 call.
14306 (advance_command): New function.
14307 (_initialize_infcmd): Update help string for 'until' command.
14308 Add new 'advance' command.
14309
a04257e6
DC
143102003-01-14 David Carlton <carlton@math.stanford.edu>
14311
14312 * linespec.c (decode_line_1): Normalize comments.
14313 (set_flags): Ditto.
14314 (locate_first_half): Ditto.
14315 (decode_compound): Ditto.
14316 (symtab_from_filename): Ditto.
14317 (decode_all_digits): Ditto.
14318 (decode_dollar): Ditto.
14319 (find_methods): Ditto.
14320 (find_toplevel_char): Ditto.
14321
1bac305b
AC
143222003-01-13 Andrew Cagney <ac131313@redhat.com>
14323
14324 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14325 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14326 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14327 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14328 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14329 * language.c, language.h, m32r-tdep.c: Update copyright.
14330 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14331 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14332 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14333 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14334 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14335 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14336
25caa7a8
EZ
143372003-01-13 Elena Zannoni <ezannoni@redhat.com>
14338
14339 * stabsread.h (process_later, resolve_cfront_continuation):
14340 Obsolete.
14341 Update copyright years.
14342 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14343 Update copyright year.
14344 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14345 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14346 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14347 Update copyright year.
14348 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14349 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14350 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14351 (parse_partial_symbols): Obsolete cfront support.
14352 * stabsread.c
14353 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14354 macros.
14355 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14356 read_cfront_baseclasses, read_cfront_member_functions,
14357 resolve_cfront_continuation,read_cfront_static_fields,
14358 copy_cfront_struct_fields): Obsolete functions.
14359 (define_symbol, read_one_struct_field): Obsolete cfront support.
14360 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14361 Update Copyright year.
14362
7789c6f5
EZ
143632003-01-13 Elena Zannoni <ezannoni@redhat.com>
14364
14365 * stack.c (print_frame_info, print_stack_frame_base_stub,
14366 print_stack_frame_base, show_and_print_stack_frame_stub,
14367 show_and_print_stack_frame, print_only_stack_frame_stub,
14368 print_only_stack_frame): Delete functions.
14369 (print_stack_frame_stub): Call print_frame_info instead of
14370 print_frame_info_base.
14371 (print_frame_info_base): Rename to print_frame_info.
14372 (backtrace_command_1): Call print_frame_info, instead of
14373 print_frame_info_base.
14374 (current_frame_command): Call print_stack_frame, instead of
14375 print_only_stack_frame.
14376 (frame_command): Call print_stack_frame, instead of
14377 show_and_print_stack_frame.
14378 (up_command): Ditto.
14379 (down_command): Ditto.
14380 * frame.h (print_only_stack_frame): Delete prototype.
14381 * infrun.c (normal_stop): Call print_stack_frame, instead of
14382 show_and_print_stack_frame.
14383 * thread.c (info_threads_command): Call print_stack_frame, instead
14384 of print_only_stack_frame.
14385
3f5a3016
AC
143862003-01-13 Andrew Cagney <ac131313@redhat.com>
14387
d99ba314
AC
14388 * README (Graphical interface to GDB): Update URL. Point at
14389 gdb/links/.
14390
3f5a3016
AC
14391 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14392 version match.
14393
083ae935
DJ
143942003-01-13 Daniel Jacobowitz <drow@mvista.com>
14395
14396 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14397 lines.
14398
5365276c
DJ
143992003-01-13 Daniel Jacobowitz <drow@mvista.com>
14400
14401 * thread-db.c (attach_thread): Prototype.
14402 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14403 thread information (ti), and valid flags (th_valid, ti_valid).
14404 (attach_thread): Move target_pid_to_str call to after the thread
14405 is added to GDB's list. Initialize the cache.
14406 (thread_get_info_callback, thread_db_map_id2thr)
14407 (thread_db_get_info): New functions.
14408 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14409 (thread_db_store_registers, thread_db_thread_alive)
14410 (thread_db_get_thread_local_address): Use them.
14411 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14412 of calling error() for threads in unknown state.
14413
14414 (clear_lwpid_callback): New function.
14415 (thread_db_resume): Use it to clear the cache.
14416
9fc30b6b
DJ
144172003-01-13 Daniel Jacobowitz <drow@mvista.com>
14418
14419 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14420 (resume_callback): Remove dead code.
14421
8f871025
AC
144222003-01-13 Andrew Cagney <ac131313@redhat.com>
14423
14424 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14425 predicate.
14426 * gdbarch.h, gdbarch.c: Regenerate.
14427 * stack.c (frame_info): Only initialize the saved registers when
14428 FRAME_INIT_SAVED_REGS_P.
14429 * frame.c (frame_saved_regs_register_unwind): Assert
14430 FRAME_INIT_SAVED_REGS_P.
14431 (deprecated_generic_get_saved_register): Ditto.
14432
3f565f1e
DJ
144332003-01-13 Daniel Jacobowitz <drow@mvista.com>
14434
14435 * source.c (openp): Squelch warning about "filename".
14436
072b1022
DJ
144372003-01-13 Daniel Jacobowitz <drow@mvista.com>
14438
14439 * source.c (openp): If the file does not exist don't necessarily
14440 search the path.
14441
973ccf8b
DJ
144422003-01-13 Daniel Jacobowitz <drow@mvista.com>
14443
14444 Fix PR gdb/872.
14445 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14446 (integer_types_same_name_p): New function.
14447 (rank_one_type): Use it.
14448 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14449
030292b7
DJ
144502003-01-13 Daniel Jacobowitz <drow@mvista.com>
14451
14452 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14453 variables.
14454 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14455 * configure.in: Add --with-sysroot.
14456 * configure: Regenerated.
14457 * main.c (gdb_sysroot): New variable.
14458 (captured_main): Initialize gdb_sysroot.
14459 * defs.h (gdb_sysroot): New extern declaration.
14460 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14461
afb5d334
MC
144622003-01-12 Michael Chastain <mec@shout.net>
14463
14464 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14465
751ceeb4
MC
144662003-01-12 Michael Chastain <mec@shout.net>
14467
14468 * top.c (print_gdb_version): Bump copyright year to 2003.
14469
94cd26f8
DC
144702003-01-12 David Carlton <carlton@bactrian.org>
14471
14472 * linespec.c (symtab_from_filename): Rename variable 's' to
14473 'file_symtab'.
14474
1ce79225
AC
144752003-01-12 Andrew Cagney <ac131313@redhat.com>
14476
14477 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14478 dummy frame.
14479 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14480
fa1fd571
AC
144812003-01-12 Andrew Cagney <ac131313@redhat.com>
14482
14483 * d10v-tdep.c: Include "gdb_assert.h".
14484 (d10v_store_return_value): Rewrite to match current interface.
14485 (d10v_extract_struct_value_address): Ditto.
14486 (d10v_extract_return_value): Ditto.
14487 (d10v_gdbarch_init): Set store_restore_value,
14488 extract_struct_value_address and extract_return_value.
14489
68b8d23e
JB
144902003-01-12 J. Brobecker <brobecker@gnat.com>
14491
14492 * hpread.c (set_namestring): New procedure replacing the
14493 SET_NAMESTRING macro.
14494 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14495 by calls to set_namestring.
14496
144972003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14498
14499 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14500 a compilation warning.
14501 (hpread_process_one_debug_symbol): Likewise.
14502
88d262ca
DC
145032003-01-10 David Carlton <carlton@math.stanford.edu>
14504
14505 * linespec.c (decode_line_1): Rename variable 's' to
14506 'file_symtab'.
14507 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14508 (decode_dollar): Ditto.
14509 (decode_variable): Ditto.
14510 (symbol_found): Ditto.
14511
86669319
MC
145122003-01-09 Michael Chastain <mec@shout.net>
14513
14514 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14515
616a9dc4
CV
145162003-01-07 Corinna Vinschen <vinschen@redhat.com>
14517
14518 * win32-nat.c (set_process_privilege): New function.
14519 (child_attach): Call set_process_privilege() to enable the
14520 SE_DEBUG_NAME user privilege if available in process token.
14521
3269bcfa
JB
145222003-01-10 J. Brobecker <brobecker@gnat.com>
14523
14524 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14525 compilation error in the previous revision.
14526
2b0ee454
DC
145272003-01-09 David Carlton <carlton@math.stanford.edu>
14528
14529 * linespec.c: Update copyright.
14530
b3ba1b44
DJ
145312003-01-09 Daniel Jacobowitz <drow@mvista.com>
14532
14533 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14534 than inferior_ptid.
14535 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14536
4ef3f3be
AC
145372003-01-09 Andrew Cagney <ac131313@redhat.com>
14538
479ab5a0
AC
14539 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14540 Update comments.
14541 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14542 (frame_saved_regs_zalloc): Update.
14543 (frame_saved_regs_register_unwind): Update.
14544 (create_new_frame): Update.
14545 (get_prev_frame): Update.
14546 (frame_extra_info_zalloc): Update.
14547 (deprecated_get_frame_saved_regs): Update.
14548 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14549 * cris-tdep.c: Update comment.
14550
bde58177
AC
14551 * somsolib.h: Fix function indentation.
14552 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14553 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14554 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14555 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14556 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14557
4ef3f3be
AC
14558 * infrun.c (follow_fork): Use ISO C definition.
14559 * expprint.c (print_subexp): Use xfree instead of free.
14560 * charset.c: Include "gdb_string.h" instead of <string.h>.
14561 (register_iconv_charsets): Use ISO C definition.
14562 (host_charset, target_charset): Ditto.
14563 * Makefile.in (charset.o): Update dependencies.
14564 (mi-cmd-env.o): Update dependencies.
14565
1c615f7a
AC
145662003-01-08 Andrew Cagney <cagney@redhat.com>
14567
14568 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14569 get_frame_base.
14570
c9a1dc08
AC
145712003-01-08 Andrew Cagney <ac131313@redhat.com>
14572
14573 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14574 build directories. Save edited gdb output in Mbuild.log. If a
14575 build fails, remove any final GDB executable.
14576
dbad9d94
AC
145772003-01-08 Andrew Cagney <ac131313@redhat.com>
14578
14579 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14580 replacing hex constants with function names and stripping leading
14581 file name directory prefixes.
14582
8d357cca
AC
145832003-01-08 Andrew Cagney <cagney@redhat.com>
14584
14585 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14586 get_frame_base.
14587
bca02a8a
DC
145882003-01-08 David Carlton <carlton@math.stanford.edu>
14589
14590 * linespec.c (decode_line_1): Move code into decode_variable.
14591 (decode_variable): New function.
14592
7f8ab3a0
AC
145932003-01-08 Andrew Cagney <ac131313@redhat.com>
14594
14595 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14596
7b5849cc
AC
145972003-01-08 Andrew Cagney <cagney@redhat.com>
14598
14599 * cris-tdep.c (cris_frame_init_saved_regs): Use
14600 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14601 saved_regs buffer.
14602 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14603 (sh64_nofp_frame_init_saved_regs): Ditto.
14604 (sh_fp_frame_init_saved_regs): Ditto.
14605 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14606 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14607 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14608 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14609
72a5efb3
DJ
146102003-01-08 Daniel Jacobowitz <drow@mvista.com>
14611
14612 * minsyms.c (lookup_minimal_symbol): Update comment.
14613 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14614 (lookup_minimal_symbol_solib_trampoline): Likewise.
14615
11c02a10
AC
146162003-01-08 Andrew Cagney <cagney@redhat.com>
14617
aab3ea25
AC
14618 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14619 frame_relative_level.
14620
da50a4b7
AC
14621 * alpha-tdep.c: Use get_frame_extra_info.
14622 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14623 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14624 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14625 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14626
11c02a10
AC
14627 * alpha-tdep.c: Use get_next_frame.
14628 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14629 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14630 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14631 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14632 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14633 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14634 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14635
1e2330ba
AC
146362003-01-07 Andrew Cagney <cagney@redhat.com>
14637
14638 * alpha-tdep.c: Use get_frame_base.
14639 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14640 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14641 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14642 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14643 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14644 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14645 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14646 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14647
2d75187b
AC
146482003-01-07 Andrew Cagney <cagney@redhat.com>
14649
14650 * frame.c (deprecated_get_frame_context): New function.
14651 (deprecated_set_frame_context): New function.
14652 * frame.h (deprecated_get_frame_context): Declare.
14653 (deprecated_set_frame_context): Declare.
14654 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14655 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14656
483d36b2
AC
146572003-01-07 Andrew Cagney <cagney@redhat.com>
14658
14659 * frame.c (deprecated_set_frame_next_hack): New function.
14660 (deprecated_set_frame_prev_hack): New function.
14661 * frame.h (deprecated_set_frame_next_hack): Declare.
14662 (deprecated_set_frame_prev_hack): Declare.
14663 * mcore-tdep.c (analyze_dummy_frame): Use
14664 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14665 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14666
14e91ac5
DC
146672003-01-07 David Carlton <carlton@math.stanford.edu>
14668
14669 * linespec.c (decode_line_1): Move code into decode_dollar.
14670 (decode_dollar): New function.
14671
b0c6b05c
AC
146722003-01-07 Andrew Cagney <cagney@redhat.com>
14673
14674 * arm-tdep.c (arm_init_extra_frame_info): Use
14675 deprecated_update_frame_base_hack.
14676 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14677 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14678 (fix_frame_pointer): Ditto.
14679 (mn10300_analyze_prologue): Ditto.
14680
a00a19e9
AC
146812003-01-07 Andrew Cagney <cagney@redhat.com>
14682
14683 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14684 extra_info using frame_extra_info_zalloc.
14685 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14686 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14687 (sh64_init_extra_frame_info): Ditto.
14688 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14689 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14690 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14691 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14692 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14693 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14694 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14695 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14696 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14697 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14698 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14699 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14700
14701 * mn10300-tdep.c (analyze_dummy_frame): Use
14702 deprecated_set_frame_extra_info_hack.
14703 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14704
1fb4c65b
JB
147052003-01-07 J. Brobecker <brobecker@gnat.com>
14706
14707 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14708 class is not scText. These do not define "real" procedures.
14709 (parse_partial_symbols): Likewise.
14710
9fe7d6bf
MS
147112003-01-06 Michael Snyder <msnyder@redhat.com>
14712
14713 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14714
f6c609c4
AC
147152003-01-06 Andrew Cagney <ac131313@redhat.com>
14716
14717 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14718 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14719 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14720 deprecated_frame_xmalloc_with_cleanup.
14721 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14722 deprecated_frame_xmalloc.
14723 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14724 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14725
d995ff4b
AC
147262003-01-06 Andrew Cagney <cagney@redhat.com>
14727
84dc46cb
AC
14728 * x86-64-linux-tdep.c: Include "osabi.h".
14729 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14730
d995ff4b
AC
14731 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14732
66140c26
AC
147332003-01-06 Andrew Cagney <cagney@redhat.com>
14734
14735 * MAINTAINERS (Target Instruction Set Architectures): Update
14736 arm-elf. Can be built with -Werror, has been multiarched.
14737
14738 * value.h (unpack_long): Make buffer parameter constant.
14739 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14740 * scm-lang.h (scm_parse): Ditto.
14741 * defs.h (extract_typed_address, extract_address): Ditto.
14742 (extract_long_unsigned_integer): Ditto.
14743 * inferior.h (unsigned_pointer_to_address): Ditto.
14744 (signed_pointer_to_address): Ditto.
14745 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14746 * gdbarch.h, gdbarch.c: Regenerate.
14747 * findvar.c (extract_long_unsigned_integer): Update.
14748 (extract_address): Update.
14749 (extract_typed_address): Update.
14750 (unsigned_pointer_to_address): Update.
14751 * values.c (unpack_long): Update.
14752 (unpack_double): Update.
14753 (unpack_pointer): Update.
14754 (unpack_field_as_long): Update.
14755 * d10v-tdep.c (d10v_pointer_to_address): Update.
14756 * avr-tdep.c (avr_pointer_to_address): Update.
14757 * scm-lang.c (scm_unpack): Update.
14758 * findvar.c (signed_pointer_to_address): Update.
14759
b089b3da
ML
147602003-01-06 Michal Ludvig <mludvig@suse.cz>
14761
8ffd9b1b 14762 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14763 since it is in i386-tdep.c.
14764
aff87235
JB
147652003-01-06 J. Brobecker <brobecker@gnat.com>
14766
14767 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14768 failure introduced in the previous change.
14769
34f5e845
MC
147702003-01-05 Michael Chastain <mec@shout.net>
14771
14772 * README: Remove references to deleted remote-*.c files:
14773 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14774 remote-nrom.c, remote-os9k.c, remote-udi.c.
14775
28bcfd30
MK
147762003-01-05 Mark Kettenis <kettenis@gnu.org>
14777
14778 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14779 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14780 i386_get_longjmp_target.
14781
15a5b3ee
AC
147822003-01-05 Andrew Cagney <ac131313@redhat.com>
14783
14784 * arm-tdep.c (prologue_cache): Change to a pointer.
14785 (_initialize_arm_tdep): Allocate prologue_cache.
14786 (check_prologue_cache): Update.
14787 (save_prologue_cache): Update.
14788 (arm_gdbarch_init): Update.
14789
c263362b
DJ
147902003-01-04 Daniel Jacobowitz <drow@mvista.com>
14791
14792 * stabsread.c (update_method_name_from_physname): Call complaint()
14793 instead of error.
14794
51603483
DJ
147952003-01-04 Daniel Jacobowitz <drow@mvista.com>
14796
14797 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14798 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14799 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14800
14801 * blockframe.c: Include "gdbcmd.h" and "command.h".
14802 (backtrace_below_main): New variable.
14803 (file_frame_chain_valid, func_frame_chain_valid)
14804 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14805 (generic_func_frame_chain_valid): Remove functions.
14806 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14807 (_initialize_blockframe): New function.
14808 * Makefile.in (blockframe.o): Update dependencies.
14809 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14810 comment. Call frame_chain_valid ().
14811 * frame.h: Remove old prototypes. Add prototype for
14812 frame_chain_valid and update comments to match.
14813 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14814 Remove old comment.
14815 * gdbarch.h: Regenerated.
14816 * gdbarch.c: Regenerated.
14817
14818 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14819 set_gdbarch_frame_chain_valid.
14820 * avr-tdep.c (avr_gdbarch_init): Likewise.
14821 * cris-tdep.c (cris_gdbarch_init): Likewise.
14822 * frv-tdep.c (frv_gdbarch_init): Likewise.
14823 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14824 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14825 (i386_nw_init_abi): Likewise.
14826 (i386_gdbarch_init): Likewise.
14827 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14828 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14829 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14830 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14831 * mips-tdep.c (mips_gdbarch_init): Likewise.
14832 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14833 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14834 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14835 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14836 * s390-tdep.c (s390_gdbarch_init): Likewise.
14837 * sh-tdep.c (sh_gdbarch_init): Likewise.
14838 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14839 * v850-tdep.c (v850_gdbarch_init): Likewise.
14840 * vax-tdep.c (vax_gdbarch_init): Likewise.
14841 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14842
14843 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14844 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14845 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14846 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14847 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14848 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14849 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14850 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14851
b00a8037
DJ
148522002-01-04 Daniel Jacobowitz <drow@mvista.com>
14853
14854 * Makefile.in (acconfig_h): Remove incorrect macro.
14855 (config_h): Define.
14856 (osabi.o): Update dependencies.
14857 * configure.tgt: Set gdb_osabi based on target triplet.
14858 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14859 * configure: Regenerated.
14860 * config.in: Regenerated.
14861 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14862 (GDB_OSABI_DEFAULT): Define if not already defined.
14863 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14864 (set_osabi_string): New variables.
14865 (gdbarch_register_osabi): Add new OS ABI to
14866 gdb_osabi_available_names.
14867 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14868 (set_osabi, show_osabi): New functions.
14869 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14870
4be87837
DJ
148712003-01-04 Daniel Jacobowitz <drow@mvista.com>
14872
14873 * arch-utils.c (gdbarch_info_init): Set osabi to
14874 GDB_OSABI_UNINITIALIZED.
14875 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14876 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14877 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14878 * gdbarch.c: Regenerated.
14879 * gdbarch.h: Regenerated.
14880 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14881 there's no BFD.
14882 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14883 * osabi.h (enum gdb_osabi): Move to defs.h.
14884 (gdbarch_init_osabi): Update prototype.
14885 * defs.h (enum gdb_osabi): Moved here.
14886 * Makefile.in: Update dependencies.
14887
14888 * alpha-tdep.h: Don't include "osabi.h".
14889 (struct gdbarch_tdep): Remove osabi member.
14890 * alpha-tdep.c: Include "osabi.h".
14891 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14892 iterate over arches. Update call to gdbarch_init_osabi.
14893 (alpha_dump_tdep): Don't dump osabi.
14894 * alpha-linux-tdep.c: Include "osabi.h".
14895 * alpha-osf1-tdep.c: Include "osabi.h".
14896 * alphafbsd-tdep.c: Include "osabi.h".
14897 * alphanbsd-tdep.c: Include "osabi.h".
14898
14899 * arm-tdep.h: Don't include "osabi.h".
14900 (struct gdbarch_tdep): Remove osabi member.
14901 * arm-tdep.c: Include "osabi.h".
14902 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14903 iterate over arches. Update call to gdbarch_init_osabi.
14904 (arm_dump_tdep): Don't dump osabi.
14905 * arm-linux-tdep.c: Include "osabi.h".
14906 * armnbsd-tdep.c: Include "osabi.h".
14907
14908 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14909 Update call to gdbarch_init_osabi.
14910
14911 * i386-tdep.h: Don't include "osabi.h".
14912 (struct gdbarch_tdep): Remove osabi member.
14913 * i386-tdep.c: Include "osabi.h".
14914 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14915 iterate over arches. Update call to gdbarch_init_osabi.
14916 (i386_dump_tdep): Don't dump osabi.
14917 * i386-linux-tdep.c: Include "osabi.h".
14918 * i386-sol2-tdep.c: Include "osabi.h".
14919 * i386bsd-tdep.c: Include "osabi.h".
14920 * i386gnu-tdep.c: Include "osabi.h".
14921 * i386ly-tdep.c: Include "osabi.h".
14922 * i386nbsd-tdep.c: Include "osabi.h".
14923 * i386obsd-tdep.c: Include "osabi.h".
14924
14925 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14926 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14927 check osabi when iterating over arches. Update call to
14928 gdbarch_init_osabi.
14929 (mips_dump_tdep): Don't dump osabi.
14930
14931 * ns32k-tdep.h: Don't include "osabi.h".
14932 (struct gdbarch_tdep): Remove.
14933 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14934 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14935 allocate tdep. Update call to gdbarch_init_osabi.
14936 (ns32k_dump_tdep): Remove.
14937 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14938 * ns32knbsd-tdep.c: Include "osabi.h".
14939
14940 * ppc-tdep.h: Don't include "osabi.h".
14941 (struct gdbarch_tdep): Remove osabi member.
14942 * rs6000-tdep.c: Include "osabi.h".
14943 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14944 osabi when iterating over arches. Update call to
14945 gdbarch_init_osabi.
14946 (rs6000_dump_tdep): Don't dump osabi.
14947 * ppc-linux-tdep.c: Include "osabi.h".
14948 * ppcnbsd-tdep.c: Include "osabi.h".
14949
14950 * sh-tdep.h: Don't include "osabi.h".
14951 (struct gdbarch_tdep): Remove osabi member.
14952 * sh-tdep.c: Include "osabi.h".
14953 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14954 iterate over arches. Update call to gdbarch_init_osabi.
14955 (sh_dump_tdep): Don't dump osabi.
14956 * shnbsd-tdep.c: Include "osabi.h".
14957
14958 * sparc-tdep.c: Include "osabi.h".
14959 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14960 iterate over arches. Update call to gdbarch_init_osabi.
14961 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14962 tdep structure.
14963
14964 * vax-tdep.h: Don't include "osabi.h".
14965 (struct gdbarch_tdep): Remove.
14966 * vax-tdep.c: Include "osabi.h".
14967 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14968 iterate over arches. Don't allocate tdep. Update call
14969 to gdbarch_init_osabi.
14970 (vax_dump_tdep): Remove.
14971 (_initialize_vax_tdep): Update call to gdbarch_register.
14972
a881cf8e
DJ
149732003-01-04 Daniel Jacobowitz <drow@mvista.com>
14974
14975 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14976 entirely.
14977 (breakpoint_re_set_one): Don't fetch the value for a disabled
14978 watchpoint.
14979
1e698235
DJ
149802003-01-04 Daniel Jacobowitz <drow@mvista.com>
14981
14982 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14983 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14984 (COERCE_FLOAT_TO_DOUBLE): Remove.
14985 * gdbarch.c: Regenerate.
14986 * gdbarch.h: Regenerate.
14987 * Makefile.in: Remove value_h from gdbarch_h.
14988 * valops.c (coerce_float_to_double): New variable.
14989 (default_coerce_float_to_double): Remove.
14990 (standard_coerce_float_to_double): Remove.
14991 (value_arg_coerce): Use coerce_float_to_double.
14992 (_initialize_valops): Add "set coerce-float-to-double".
14993 * value.h (default_coerce_float_to_double): Remove prototype.
14994 (standard_coerce_float_to_double): Remove prototype.
14995
14996 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14997 prototyped.
14998 * mdebugread.c (parse_symbol): Likewise.
14999 * stabsread.c (define_symbol): Mark all functions as prototyped.
15000
15001 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
15002 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
15003 set_gdbarch_coerce_float_to_double.
15004 * arm-tdep.c (arm_gdbarch_init): Likewise.
15005 * frv-tdep.c (frv_gdbarch_init): Likewise.
15006 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
15007 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
15008 * mips-tdep.c (mips_gdbarch_init): Likewise.
15009 (mips_coerce_float_to_double): Remove.
15010 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15011 (rs6000_coerce_float_to_double): Remove.
15012 * s390-tdep.c (s390_gdbarch_init): Likewise.
15013 * sh-tdep.c (sh_gdbarch_init): Likewise.
15014 (sh_coerce_float_to_double): Remove.
15015 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15016 (sparc_coerce_float_to_double): Remove.
15017 * v850-tdep.c (v850_gdbarch_init): Likewise.
15018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
15019 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15020 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
15021 (hppa_coerce_float_to_double): Remove prototype.
15022 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15023
f436a26a
DJ
150242003-01-04 Daniel Jacobowitz <drow@mvista.com>
15025
15026 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
15027
248f8055
DJ
150282003-01-04 Daniel Jacobowitz <drow@mvista.com>
15029
15030 Suggested by Stewart Brown <sb24@avaya.com>:
15031 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
15032 in recursive calls. Handle TYPE_CODE_TYPEDEF.
15033 (c_type_print_varspec_suffix): Likewise.
15034
72cfdc76
MK
150352003-01-04 Mark Kettenis <kettenis@gnu.org>
15036
bfd260bb
MK
15037 * configure.in: Don't set and AC_SUBST SUBDIRS.
15038 * configure: Regenerated.
15039
72cfdc76
MK
15040 * configure.in: Remove code dealing with shared libraries.
15041 * Makefile.in: Remove HLDFLAGS and HLDENV.
15042 * configure: Regenerated.
15043
c8b8a898
AC
150442003-01-04 Andrew Cagney <ac131313@redhat.com>
15045
15046 * frame.c (deprecated_frame_xmalloc): New function.
15047 (deprecated_set_frame_saved_regs_hack): New function.
15048 (deprecated_set_frame_extra_info_hack): New function.
15049 * frame.h (deprecated_frame_xmalloc): Declare.
15050 (deprecated_set_frame_saved_regs_hack): Declare.
15051 (deprecated_set_frame_extra_info_hack): Declare.
15052
14abd0fb
MK
150532003-01-04 Mark Kettenis <kettenis@gnu.org>
15054
8ee53726
MK
15055 * configure.in: Move code that provides the --enable-gdbtk option
15056 right after the code that handles the --enable-tui option, and
15057 polish it somewhat.
15058 * configure: Regenerated.
15059
14abd0fb
MK
15060 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
15061 AC_CHECK_FUNCS and remove the old check for pread64.
15062 * acinclude.m4 (AC_GNU_SOURCE): New macro.
15063 * acconfig.h (_GNU_SOURCE): Add.
15064 (HAVE_PREAD64): Remove.
15065 * configure, aclocal.m4, config.in: Regenerated.
15066
b2fb4676
AC
150672003-01-03 Andrew Cagney <ac131313@redhat.com>
15068
15069 * alpha-tdep.c: Use get_frame_saved_regs.
15070 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15071 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15072 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15073 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15074 * vax-tdep.c, xstormy16-tdep.c: Ditto.
15075
8dcde887
MK
150762003-01-03 Mark Kettenis <kettenis@gnu.org>
15077
15078 * configure.in: Remove all use of the SUBDIRS variable; add
15079 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
15080 code providing the --enable-multi-ice option, and move it right in
15081 front of the code that checks whether gdbserver is supported.
15082 Polish that too.
15083 * configure: Regenerated.
15084 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15085 @SUBDIRS@.
15086
8ccd593b
AC
150872003-01-03 Andrew Cagney <cagney@redhat.com>
15088
15089 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15090 * avr-tdep.c, cris-tdep.c: Ditto.
15091 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15092 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 15093
91151a06
MK
150942003-01-03 Mark Kettenis <kettenis@gnu.org>
15095
15096 * configure.in: Remove --enable-netrom option.
15097 * configure: Regenerated.
15098
8fe84d01
MK
150992003-01-03 Mark Kettenis <kettenis@gnu.org>
15100
15101 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15102 declaration for `struct re_pattern_buffer' instead.
15103 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15104
f0394be6
JB
151052003-01-03 J. Brobecker <brobecker@gnat.com>
15106
15107 * mdebugread.c (parse_symbol): Count until the stEnd matching
15108 the structure name.
15109
27e9bf90
MK
151102003-01-02 Mark Kettenis <kettenis@gnu.org>
15111
93d331ba
MK
15112 * configure.in: Remove --with-cpu option.
15113 subscripts. Remove evil changequotes here.
15114 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15115 * config.in, configure: Regenerated.
8ffd9b1b 15116
27e9bf90
MK
15117 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15118 * configure.in: Cleanup section that sources GDB and BFD configure
15119 subscripts. Remove evil changequotes here.
15120 * config.in, configure: Regenerated.
15121
50abf9e5
AC
151222003-01-02 Andrew Cagney <ac131313@redhat.com>
15123
15124 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15125 frame accessor methods.
15126 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15127 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15128 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15129 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15130 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15131 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15132 * z8k-tdep.c: Ditto.
8ffd9b1b 15133
287c1a40
MK
151342003-01-02 Mark Kettenis <kettenis@gnu.org>
15135
f5dbc56d
MK
15136 * configure.in: Remove UI_OUT configuration code.
15137 * ada-lang.c: Update assuming UI_OUT is always true.
15138 * Makefile.in (UIOUT_CFLAGS): Remove.
15139 * configure: Regenerated.
15140 * TODO: Remove blurb about elimination of -DUI_OUT.
15141
627af7ea
MK
15142 * configure.in: Move code that provides the --enable-gdbcli,
15143 --enable-gdbmi options right before the code that handles the
15144 --enable-tui option. Polish a bit.
15145 * configure: Regenerated.
15146
06825bd1
MK
15147 * configure.in: Rewrite check for GNU regex and the
15148 --without-included regex option, and move it into the "Checks for
15149 library functions" section. This makes us use the system regex
15150 again by default on systems with version 2 of the GNU C library.
15151 This was apparently broken.
15152 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15153 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15154 * config.in, configure: Regenerated.
15155
287c1a40
MK
15156 * configure.in: Move code that provides the --enable-tui option
15157 before the "Checks for libraries" section. Polish the code
15158 somewhat and set need_curses to yes if we build the TUI. Rewrite
15159 code that looks for a library providing termcap functionality to
15160 match more closely what's done in the Readline library, and move
15161 it into to the "Checks for libraries" section.
15162 * configure: Regenerated.
15163 * Makefile.in (TERMCAP): Remove variable.
15164 * config/i386/go32.mh (TERMCAP): Remove variable.
15165
684e56bf
AC
151662003-01-02 Andrew Cagney <ac131313@redhat.com>
15167
15168 * MAINTAINERS: Mention gdb_mbuild.sh.
15169 * gdb_mbuild.sh: Rewrite.
15170
e1ea1d75
MK
151712003-01-02 Mark Kettenis <kettenis@gnu.org>
15172
15173 * configure.in: Fix typo in last change.
15174 * config.in, configure: Regenerated.
15175
1b831c93
AC
151762003-01-02 Andrew Cagney <ac131313@redhat.com>
15177
15178 * valarith.c (value_binop): Delete obsolete code and comments.
15179 * configure.host: Ditto.
15180 * buildsym.h (make_blockvector): Ditto.
15181 * buildsym.c (make_blockvector): Ditto.
15182 * defs.h (enum language): Ditto.
15183 (chill_demangle): Ditto.
15184 * elfread.c (elf_symtab_read): Ditto.
15185 * dwarfread.c (CHILL_PRODUCER): Ditto.
15186 (set_cu_language): Ditto.
15187 (handle_producer): Ditto.
15188 * expprint.c (print_subexp): Ditto.
15189 * gdbtypes.c (chill_varying_type): Ditto.
15190 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15191 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15192 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15193 (chill_varying_type): Ditto.
15194 * language.h (_LANG_chill): Ditto.
15195 * language.c (binop_result_type, integral_type): Ditto.
15196 (character_type, string_type, structured_type): Ditto.
15197 (lang_bool_type, binop_type_check): Ditto.
15198 * stabsread.h (os9k_stabs): Ditto.
15199 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15200 (define_symbol, read_type, read_struct_fields): Ditto.
15201 (read_array_type, read_enum_type, read_huge_number): Ditto.
15202 (read_range_type, start_stabs): Ditto.
15203 * symfile.c (init_filename_language_table): Ditto.
15204 (add_psymbol_with_dem_name_to_list): Ditto.
15205 * symtab.c (symbol_init_language_specific): Ditto.
15206 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15207 * symtab.h (struct general_symbol_info): Ditto.
15208 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15209 * typeprint.c (typedef_print): Ditto.
15210 * utils.c (fprintf_symbol_filtered): Ditto.
15211 * valops.c (value_cast, search_struct_field, value_slice): Delete
15212 obsolete code.
15213 (varying_to_slice): Delete function.
15214 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15215 (varying_to_slice): Delete declaration.
15216 * MAINTAINERS: Update.
15217
8bb2c122
MK
152182003-01-02 Mark Kettenis <kettenis@gnu.org>
15219
97bf5e38
MK
15220 * configure.in: Reorganize "Checks for library functions section"
15221 a bit. Remove check for `btowc' and `isascii' functions.
15222 * configure: Regenerated.
15223
5ee754fc
MK
15224 * acconfig.h (_MSE_INT_H): Remove.
15225 * configure.in: Create "Checks for header files" section, and move
15226 appropriate tests there. Don't check for objlist.h, wchar.h,
15227 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15228 misdetection fix. Also add "Checks for types", "Checks for
15229 compiler characteristics" and "Checks for library functions"
15230 sections.
15231 * config.in, configure: Regenerated.
15232
8bb2c122
MK
15233 * configure.in: Create "Checks for programs" section, and move
15234 appropriate tests there.
15235
9a156167
MK
152362003-01-01 Mark Kettenis <kettenis@gnu.org>
15237
15238 * configure.in: Create "Checks for libraries" section, and move
15239 appropriate tests there. Cleanup check for wctype in libw. Use
15240 AC_SEARCH_LIBS to see whether we need libsocket.
15241 * configure: Regenerated.
15242
a80e2bcb 15243For older changes see ChangeLog-2002
c906108c
SS
15244\f
15245Local Variables:
15246mode: change-log
15247left-margin: 8
15248fill-column: 74
15249version-control: never
15250End:
This page took 1.255003 seconds and 4 git commands to generate.